.theme-toggle{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:auto;margin:12px 0;padding:10px 12px;background:#12213a;border:1px solid #2d4565;border-radius:10px;color:#bcdbff;font-size:14px;text-align:left}.theme-toggle-icon{width:20px;text-align:center;font-size:21px;line-height:1;color:inherit}.theme-toggle:hover{background:#1d3559;color:#edf5ff}.theme-toggle-floating{position:fixed;right:20px;bottom:20px;z-index:30;box-shadow:0 6px 25px #0003}.theme-toggle-floating .theme-toggle-label{display:inline!important}.theme-toggle span{color:inherit}.sidebar-collapsed .theme-toggle{width:40px;padding:9px;gap:0}
.theme-toggle .theme-toggle-label{font-size:14px;line-height:1.4;font-weight:600}
.sidebar-bottom-controls{margin-top:auto;padding-top:20px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}.sidebar-bottom-controls .sidebar-logout{margin:0;width:100%}.sidebar-bottom-controls .theme-toggle{display:grid;place-items:center;width:38px;height:38px;margin:0;padding:8px;border:1px solid transparent;background:transparent;box-shadow:none;transform:none;color:#9ab1ce}.sidebar-bottom-controls .theme-toggle:hover{background:#1a2c45;border-color:#314b6d;color:#e2edfc}.sidebar-bottom-controls .theme-toggle .theme-toggle-label{display:none}.sidebar-bottom-controls .theme-toggle .theme-toggle-icon{font-size:20px;line-height:1;color:inherit}.sidebar-collapsed .sidebar-bottom-controls{align-items:center}
html[data-theme=light]{color-scheme:light;--primary:#142f50;--text:#142b47;--bg:#f4f7fc;--secondary:#536781;--panel:#fff;--panel-raised:#eaf1fa;--line:#ccdaea;--muted:#526a88;--blue:#2461b7;--accent:#2563eb}
html[data-theme=light] body{background:#f4f7fc;color:#142b47}
html[data-theme=light] :is(h1,h2,h3,h4,h5,strong,b,th){color:#162f4e!important}
html[data-theme=light] :is(p,label,legend,small,li,td,span,summary){color:#425b79!important}
html[data-theme=light] :is(a,.eyebrow,.asset-back-link,.asset-section-nav a,.block-settings>summary,.table-sources summary){color:#245eac}
html[data-theme=light] :is(.wallet-shell,.workspace-layout,.auth-shell,.landing-page){background:#f4f7fc}
html[data-theme=light] :is(.wallet-header,.auth-panel,.landing-hero,.landing-bottom){background:radial-gradient(ellipse at 80% 0%,#dceafb,#f4f7fc 65%);border-color:#d3dfed}
html[data-theme=light] :is(.app-sidebar,.auth-form,.visual-window,.visual-topbar,.feature-card,.floating-chip,.hero-visual,.landing-features,.landing-footer){background:#fff;border-color:#ccdbea;box-shadow:none}
html[data-theme=light] .app-sidebar{border-right-color:#ccdbea}
html[data-theme=light] :is(.sidebar-link,.sidebar-section-label,.sidebar-brand,.sidebar-brand span){color:#47617e}
html[data-theme=light] .sidebar-link.is-active{background:#e7f0fe;border-color:#a7c7f2;color:#174d96}
html[data-theme=light] :is(.sidebar-collapse,.mobile-menu-toggle,.theme-toggle){background:#eaf1fb;border-color:#c8d9ed;color:#245a9e}
html[data-theme=light] :is(.overview-card,.allocation-card,.target-card,.quote-card,.valuation-panel,.valuation-result,.fund-facts-panel,.fund-history-panel,.fund-portfolio-panel,.distribution-history,.asset-section,.asset-overview,.research-filter-panel,.research-list-section,.research-data-note,.research-fund-card,.alchemy-builder,.alchemy-howto>div,.alchemy-asset-chip,.notebook-manager,.evolution-card,.data-provenance,.scenario-card,.comparison-workspace,.metric-picker){background:#fff!important;border-color:#cddbea!important;box-shadow:0 3px 14px #213f6610}
html[data-theme=light] :is(input:not([type=range]):not([type=checkbox]),select,textarea,.alchemy-rich-editor,.research-input-wrap,.input-wrap,.alchemy-search-result){background:#f8faff!important;border-color:#bdcfe5!important;color:#193653!important;color-scheme:light}
html[data-theme=light] input::placeholder{color:#657c98}
html[data-theme=light] :is(.secondary-button,.text-button,.small-action,.block-drag-grip,.block-resize-handle){background:#eaf2fe;border-color:#bfd2ed;color:#245a9e}
html[data-theme=light] :is(.primary-action,.primary-link,button[type=submit],.primary-link span){background:#245fbd;color:#fff!important;border-color:#245fbd}
html[data-theme=light] :is(.primary-action,.primary-link,button[type=submit]) :is(span,b,strong){color:#fff!important}
html[data-theme=light] button:hover{filter:brightness(.97)}
html[data-theme=light] :is(.hint,.section-lede,.metric-description,.research-filter-hint,.analysis-chart-heading p,.analysis-chart-summary,.analysis-chart-footnote,.alchemy-footnote,.asset-data-caption){color:#536d8d}
html[data-theme=light] :is(.target-total-feedback,.asset-classification-strip,.asset-secondary-metrics,.asset-section-nav,.analysis-chart,.analysis-chart-value,.comparison-table thead th,.block-table-viewport thead th,.notebook-version){background:#edf3fc!important;border-color:#c9d9ed}
html[data-theme=light] :is(.analysis-chart-axis,.chart-label,.donut-total,.donut-total-value){fill:#526c8b}
html[data-theme=light] .analysis-chart-grid{stroke:#cfdaea}
html[data-theme=light] .analysis-chart-tooltip{background:#fff;border-color:#aec5e3;color:#1b375a;box-shadow:0 6px 20px #1b3c6620}
html[data-theme=light] .analysis-chart-empty{color:#536f91;border-color:#b8cce4}
html[data-theme=light] :is(.distribution-table th,.evolution-table th,.wallet-table th){background:#eaf2fc;border-color:#c9d8ea}
html[data-theme=light] :is(.wallet-table td,.distribution-table td,.evolution-table td,.comparison-table td,.comparison-table th){border-color:#d4dfed}
html[data-theme=light] .wallet-table tbody tr:hover{background:#eaf3ff}
html[data-theme=light] :is(.fund-tag,.research-fund-title>span,.research-active-filters span,.alchemy-series-picker label){background:#eaf2ff;border-color:#b7cdea;color:#255b9f}
html[data-theme=light] .metric-unavailable{color:#627892}
html[data-theme=light] .positive-value{color:#08764f!important}html[data-theme=light] .negative-value{color:#bb2949!important}
html[data-theme=light] .tax-toggle{color:#2b4668!important}
html[data-theme=light] :is(.valuation-status[data-state=cheap],.category-status[data-state=ok]){background:#e1f4ea;color:#146b4a}
html[data-theme=light] :is(.valuation-status[data-state=expensive],.category-status[data-state=over],.research-filter-error){background:#fff0f1;color:#a72d40;border-color:#e7a9b4}
html[data-theme=light] .alchemy-document{background:#eaf0f8;border-color:#bfd0e7;box-shadow:0 8px 35px #31527c12}
html[data-theme=light] :is(.alchemy-document-heading,.alchemy-document-footer){background:#f8fbff;border-color:#c8d8ec}
html[data-theme=light] .alchemy-document .alchemy-blocks>section{background:#fff;border-color:#bfd0e7;box-shadow:0 3px 12px #294b7510}
html[data-theme=light] :is(.block-settings,.block-size-controls,.alchemy-document .block-table-viewport){border-color:#d1deef}
html[data-theme=light] :is(.block-table-viewport tbody th,.metric-comparison-card){background:#f0f5fc;border-color:#c4d5eb}
html[data-theme=light] .block-table-viewport td[data-rank=highest]{background:#e5efff}
html[data-theme=light] .metric-value-bar{background:linear-gradient(90deg,#3978cb var(--metric-width),#dce7f7 var(--metric-width))}
html[data-theme=light] .metric-difference{color:#486b94}
html[data-theme=light] .document-save-badge{color:#126d4e;background:#e3f6ed;border-color:#a4d6be}
html[data-theme=light] :is(.metric-icon,.brand-mark){color:#2866b7;background:#e8f1ff;border-color:#bcd1ef}
html[data-theme=light] .analysis-chart-periods{background:#f6f9ff;border-color:#c2d3eb}
html[data-theme=light] .analysis-chart-periods button{color:#365d8d}
html[data-theme=light] .analysis-chart-periods button.active{background:#d9e9ff;color:#194e9a}
html[data-theme=light] :is(.landing-nav,.hero-proof,.features-heading,.hero-actions,.hero-copy,.visual-content){color:#2a466b}
html[data-theme=light] :is(.feature-card,.landing-footer,.notebook-actions){border-color:#ccdaec}
html[data-theme=light] .theme-toggle span{color:#245a9e}
html[data-theme=light] .analysis-chart-value>span{color:var(--series-color,#245eac)!important}
html[data-theme=light] .alchemy-howto b{background:#dfebfc;color:#245b9f!important}
html[data-theme=light] progress{background:#dde7f5}
html[data-theme=light] progress::-webkit-progress-bar{background:#dde7f5}
html[data-theme=light] .alchemy-search-results{background:#fff;border-color:#bdd0e8;box-shadow:0 8px 28px #2c507c26}
html[data-theme=light] .sidebar-bottom-controls .theme-toggle{background:transparent;border-color:transparent;color:#5e7796}html[data-theme=light] .sidebar-bottom-controls .theme-toggle:hover{background:#e8f0fc;border-color:#c5d6ed;color:#245b9f}
html[data-theme=light] .alchemy-document{background:#fff;border-color:#cedbeb}
html[data-theme=light] .alchemy-document .alchemy-blocks>section{background:transparent!important;border:0!important;box-shadow:none}
html[data-theme=light] .alchemy-document :is(.analysis-chart,.analysis-chart-value,.alchemy-rich-editor){background:transparent!important;box-shadow:none}
html[data-theme=light] .alchemy-document .alchemy-rich-editor{border:0!important}
html[data-theme=light] .document-block-tool-panel{background:#fff;border-color:#aac3e3;box-shadow:0 10px 35px #284d7c30}
html[data-theme=light] .document-block-tools>summary{background:#edf4ff;border-color:#b6cce7}
@media print{html body .alchemy-document,html body .alchemy-document :is(section,.analysis-chart,.analysis-chart-value,.alchemy-rich-editor){background:#fff!important;box-shadow:none!important}html body .alchemy-document .alchemy-blocks>section{border:0!important}}

/* Table surfaces must follow the theme, including transparent body cells. */
html[data-theme=light] .wallet-table-wrap{background:#fff;border-color:#c9d8ea}
html[data-theme=light] .wallet-table tbody th{background:transparent}
html[data-theme=light] .strategy-ceiling .table-status[data-state=cheap]{color:#08764f!important}
html[data-theme=light] .strategy-ceiling .table-status[data-state=fair]{color:#245eac!important}
html[data-theme=light] .strategy-ceiling .table-status[data-state=expensive]{color:#aa4331!important}
html[data-theme=light] .ceiling-meter i{background:#163f72;box-shadow:0 0 0 1px #fff}

/* Hover and focus share light surfaces throughout navigation and secondary actions. */
html[data-theme=light] :is(.sidebar-link,.sidebar-collapse,.mobile-menu-toggle,.asset-section-nav a,.secondary-button,.text-button,.small-action,.collapsible-trigger,.fii-result,.alchemy-search-result,.document-row,.document-insert-menu>summary,.block-resize-handle):is(:hover,:focus-visible){background:#e6effc;border-color:#b3cae9;color:#214f8d;box-shadow:none}
html[data-theme=light] .sidebar-link:is(:hover,:focus-visible) :is(svg,span){color:#245eac!important}html[data-theme=light] .sidebar-link.is-active:is(:hover,:focus-visible){background:#dceafa;border-color:#a9c4e8}
html[data-theme=light] :is(.ticker-link,.asset-back-link,.header-shortcut,.auth-form .back-home,.landing-nav nav a):hover{color:#174e98;text-decoration:underline;text-underline-offset:4px}
html[data-theme=light] :is(.chart-periods,.analysis-chart-periods) button:hover{background:#dfebfb;color:#254e83}html[data-theme=light] .comparison-asset-head button:hover,html[data-theme=light] .remove-button:hover{background:#fbe9ec;color:#a53851}
html[data-theme=light] .evolution-table tbody tr:hover{background:#eaf2fd}html[data-theme=light] .alchemy-editor-page #notebook-title:is(:hover,:focus){background:#edf4ff;border-color:#b2c9e7}
html[data-theme=light] .asset-page-content .asset-overview{background:transparent!important;box-shadow:none;border:0}html[data-theme=light] .asset-overview .quote-card{box-shadow:none;background:#fff!important}html[data-theme=light] .asset-overview .data-provenance{box-shadow:none}
html[data-theme=light] .category-allocation .goal-hover-detail{background:#fff!important;color:#29496f!important;opacity:1;box-shadow:0 8px 25px #294c7c30;border-color:#a8c1e1}

/* Surfaces used by all new and repaired components in both themes. */
:root{--wa-surface:#101c2c;--wa-raised:#14243a;--wa-inset:#0b1523;--wa-border:#30445f;--wa-text:#e3edfb;--wa-muted:#a0b4cf;--wa-accent:#86b7ff}
html[data-theme=light]{--wa-surface:#fff;--wa-raised:#f0f5fc;--wa-inset:#f6f9fe;--wa-border:#c7d7eb;--wa-text:#1e3857;--wa-muted:#5b718e;--wa-accent:#2864b3}
.fund-documents .document-row,.document-empty,.fund-identity,.gordon-scenario-panel,.rate-value{background:var(--wa-inset);border-color:var(--wa-border);color:var(--wa-text)}
.fund-documents .document-row:hover{background:var(--wa-raised);border-color:var(--wa-accent)}.fund-documents :is(.document-row time,.document-row small,.document-empty){color:var(--wa-muted)}
html[data-theme=light] .fund-avatar{background:#e9f2ff;border-color:#c3d6ef;color:#326ab0}html[data-theme=light] .asset-report-link{color:#245eac}html[data-theme=light] .asset-report-link small{color:#5e7390}html[data-theme=light] .asset-report-link:hover{color:#174c90}
html[data-theme=light] :is(.gordon-scenario-panel,.fund-identity){background:var(--wa-surface);border-color:var(--wa-border)}html[data-theme=light] .valuation-result .valuation-status[data-state=fair]{background:#e9f2ff;color:#285b9e!important;border-color:#bfd3ee}html[data-theme=light] .valuation-result .valuation-status[data-state=cheap]{background:#e5f5ed;color:#176f4b!important;border-color:#b9decb}html[data-theme=light] .valuation-result .valuation-status[data-state=expensive]{background:#fff0ef;color:#a73f3d!important;border-color:#e9c4c1}
html[data-theme=light] .valuation-result :is(.result-meta,.price-gauge){border-color:#c8d8eb}html[data-theme=light] .valuation-form .rate-value{background:var(--wa-inset);color:#2b5e9c;border-color:var(--wa-border)}html[data-theme=light] .fund-identity-grid span{background:transparent;color:var(--wa-muted)!important}html[data-theme=light] .valuation-error{color:#a93645!important}

html[data-theme=light] .portfolio-badge{background:#e5f4ec;color:#216548!important;border-color:#badbc9}html[data-theme=light] .icon-heading>.ui-icon{color:#3268ad}

.sidebar-logout .sidebar-link{width:100%;margin:0;box-shadow:none;border:0;background:transparent;font-weight:400;font-size:14px;justify-content:flex-start}.sidebar-account{margin-top:18px}.sidebar-collapsed .sidebar-logout .sidebar-link{width:40px;padding-inline:10px}html[data-theme=light] .sidebar-logout button[type=submit]{background:transparent;color:#47617e!important}html[data-theme=light] .sidebar-logout button[type=submit]:hover{background:#e6effc}

.sidebar-bottom-controls .sidebar-account{margin:0;width:100%}.sidebar-collapsed .sidebar-bottom-controls .sidebar-account{width:40px}.sidebar-bottom-controls{gap:6px}

html[data-theme=light] .sidebar-logout button[type=submit] span{color:inherit!important}
/* A vector cross has the same optical center in every font and dialog. */
body button:is([aria-label^="Fechar"],[aria-label^="Dispensar"]):not(.sidebar-scrim){display:grid!important;place-items:center!important;place-content:center!important;box-sizing:border-box;width:32px!important;height:32px!important;min-height:32px!important;flex:0 0 32px!important;padding:0!important;line-height:1!important;font-size:0!important;color:var(--wa-muted)!important;background:var(--wa-raised)!important;border:1px solid var(--wa-border)!important;border-radius:8px!important}
body button:is([aria-label^="Fechar"],[aria-label^="Dispensar"]):not(.sidebar-scrim)::before{content:'';display:block;width:16px;height:16px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}

html[data-theme=light] .position-editor{background:#fff;color:#20354c;border-color:#cedcec}html[data-theme=light] .positions-hub td:first-child a{color:#245a9e}html[data-theme=light] .risk-hero{background:#f0f4fb}html[data-theme=light] .risk-hero-number{color:#7951bd}html[data-theme=light] .risk-comparison-track{background:#e4eaf3}html[data-theme=light] .risk-comparison-track i{background:#7951bd}html[data-theme=light] .risk-comparison-track i[data-kind=index]{background:#087d9a}html[data-theme=light] :is(.risk-metric small,.analytics-method,.analytics-empty,.strategy-analytics .asset-section-heading label){color:#536982}html[data-theme=light] .correlation-cell{background:#edf2f9;color:#213750;border-color:#d3dfee}html[data-theme=light] .correlation-cell[data-sign=negative]{background:color-mix(in srgb,#61c7b6 calc(var(--correlation-strength)*65%),#f2f7fb)}html[data-theme=light] .correlation-cell[data-sign=positive]{background:color-mix(in srgb,#85a9eb calc(var(--correlation-strength)*65%),#f2f7fb)}html[data-theme=light] .analytics-empty{border-color:#c4d4e9}
