/* Uma camada visual finita: sem bibliotecas, imagens remotas ou loops de animação. */
@keyframes invest-window-enter{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
@keyframes invest-backdrop-enter{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:no-preference){
  dialog[open],.assistant-widget #assistant-drawer:not([hidden]){animation:invest-window-enter .22s cubic-bezier(.2,.7,.2,1) both}
  .assistant-widget .assistant-tools-panel:not([hidden]){animation:invest-window-enter .16s ease-out both}
  dialog[open]::backdrop{animation:invest-backdrop-enter .2s ease-out both}
  .chart-active-point{transition:cx .1s ease-out,cy .1s ease-out}
}
.quote-provenance{margin-top:10px;padding-top:9px;border-top:1px solid var(--ui-border);font-size:12px;color:var(--ui-muted)}
.quote-provenance>summary{cursor:pointer;color:var(--ui-accent);width:fit-content;padding:4px 0}
.quote-provenance .source-line{display:block;margin-top:8px;line-height:1.6;overflow-wrap:anywhere}
.quote-reference-note{grid-column:1/-1;color:var(--ui-warning);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
:root {
  --ui-bg:#13191b;--ui-panel:#20282b;--ui-inset:#182123;--ui-raised:#2a3634;
  --ui-border:#42534d;--ui-border-strong:#60786d;--ui-text:#e5eeea;--ui-muted:#afc2b9;
  --ui-accent:#9bd5b8;--ui-accent-soft:#2a4438;--ui-button:#345b4c;
  --ui-plot:#1a2624;--ui-frame:#0d1413;--ui-positive:#7fd3a6;--ui-negative:#f09e9e;--ui-warning:#ddc18b;
  --ui-shadow:0 8px 20px #0003;
  --experience-focus:#b8a0d5;
  --experience-accent:#b5a0ce;
}
html[data-theme="dark"] {color-scheme:dark}
html[data-theme="light"] {
  color-scheme:light;
  --ui-bg:#eff3f5;--ui-panel:#ffffff;--ui-inset:#f3f6f7;--ui-raised:#e7efed;
  --ui-border:#cbd7d3;--ui-border-strong:#8baca0;--ui-text:#233731;--ui-muted:#526b63;
  --ui-accent:#426957;--ui-accent-soft:#e4f0e9;--ui-button:#356c56;
  --ui-plot:#f7faf9;--ui-frame:#e1eae6;--ui-positive:#176b47;--ui-negative:#a33843;--ui-warning:#81600d;
  --ui-shadow:0 6px 18px #213d3010;
  --ink:#233731;--muted:#526b63;--line:#cbd7d3;--paper:#eff3f5;--white:#ffffff;
  --navy:#e9efed;--blue:#356c56;--blue-soft:#e4f0e9;--mint:#356c56;--green:#176b47;--red:#a33843;--cyan:#246a75;
  --experience-focus:#765090;--experience-accent:#765090;
}
html[data-theme] body {
  background:radial-gradient(ellipse at 90% 0%,#997ab70b,transparent 48%),var(--ui-bg);
  color:var(--ui-text);
}
/* Estados visíveis, sem deslocar o conteúdo durante leitura ou rolagem. */
[data-theme-toggle] {
  display:inline-grid;place-items:center;flex:0 0 36px;min-width:36px;min-height:36px;
  border:1px solid var(--ui-border-strong);border-radius:9px;padding:5px;
  color:var(--ui-text);background:var(--ui-inset);font:600 20px/1 system-ui,sans-serif;cursor:pointer;
}
[data-theme-toggle]:hover{background:var(--ui-raised)}
html[data-theme] :is(button,a,summary,input,select,textarea):focus-visible {
  outline:2px solid var(--experience-focus);outline-offset:3px;
}
.experience-intro {
  --intro-cyan:#91e0cf;--intro-violet:#c0a9de;
  position:fixed;inset:0;z-index:1800;display:grid;place-items:center;overflow:hidden;
  background:radial-gradient(ellipse at 35% 46%,#579b9125,transparent 46%),radial-gradient(ellipse at 72% 30%,#9270b61f,transparent 50%),var(--ui-bg);
  color:var(--ui-text);pointer-events:none;user-select:none;contain:layout paint;
  animation:experience-opening 2.9s cubic-bezier(.4,0,.2,1) both;
}
.experience-intro-stage{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;width:min(400px,88vw);height:min(360px,88svh);isolation:isolate;animation:experience-stage 2.9s cubic-bezier(.22,.61,.36,1) both}
.experience-intro-stage::before{content:"";position:absolute;inset:4%;z-index:-2;border-radius:50%;background:radial-gradient(ellipse,#83cbb91a,transparent 67%);animation:experience-halo 2.9s ease-out both}
.experience-intro-stage::after{content:"";position:absolute;inset:10% 0;z-index:-2;border-radius:50%;background:radial-gradient(ellipse,#b8a0d522,transparent 65%);animation:experience-light-drift 2.9s ease-in-out both}
.experience-intro-geometry{position:absolute;inset:0;z-index:-1;display:grid;place-items:center;opacity:.65}
.experience-intro-orbit,.experience-intro-orbit-inner{position:absolute;width:240px;height:240px;border:1px solid var(--ui-border-strong);border-radius:28px;animation:experience-orbit 2.9s cubic-bezier(.22,.61,.36,1) both}
.experience-intro-orbit-inner{width:198px;height:198px;border-color:var(--intro-violet);border-radius:50%;animation-name:experience-orbit-inner}
.experience-intro-orbit::after,.experience-intro-orbit-inner::after{content:"";position:absolute;width:5px;height:5px;border-radius:50%;background:var(--intro-cyan);top:21%;right:0;box-shadow:0 0 10px #91e0cf80}
.experience-intro-orbit-inner::after{background:var(--intro-violet);top:auto;bottom:18%;left:4%;right:auto}
.experience-intro-signal{position:absolute;left:10%;top:25%;width:80%;height:100px;overflow:visible;color:var(--intro-cyan);opacity:.48}
.experience-intro-signal path{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-dasharray:1;animation:experience-signal 1.6s cubic-bezier(.25,.6,.25,1) .2s both}
.experience-intro-signal circle{fill:var(--intro-violet);transform-box:fill-box;transform-origin:center;animation:experience-signal-dot .65s ease both;animation-delay:calc(.5s + var(--signal-step)*.22s)}
.experience-intro-trace{position:absolute;width:292px;height:1px;top:37%;background:linear-gradient(90deg,transparent,var(--intro-cyan),transparent);transform:rotate(-19deg);animation:experience-trace 1.25s ease both}
.experience-intro-corner-a,.experience-intro-corner-b{position:absolute;width:24px;height:24px;border:1px solid var(--intro-cyan);animation:experience-corner 1s ease both}
.experience-intro-corner-a{left:34px;top:46px;border-right:0;border-bottom:0}
.experience-intro-corner-b{right:34px;bottom:46px;border-left:0;border-top:0;animation-delay:.12s}
.experience-intro-bars{position:absolute;inset:auto 12px 28px;display:flex;align-items:flex-end;justify-content:center;gap:10px;height:48px;opacity:.16}
.experience-intro-bars span{display:block;width:30px;height:calc(14px + var(--bar)*7px);background:linear-gradient(0deg,var(--intro-violet),var(--intro-cyan));border-radius:3px 3px 0 0;transform-origin:bottom;animation:experience-bars 1.7s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--bar)*65ms)}
.experience-intro-emblem{position:relative;display:grid;place-items:center;width:88px;height:88px;border-radius:23px;border:1px solid var(--ui-border-strong);background:linear-gradient(135deg,var(--ui-inset),var(--ui-panel));box-shadow:0 0 48px #80c9b818;animation:experience-emblem 1.2s cubic-bezier(.16,.85,.2,1) both}
.experience-intro-emblem::before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(125deg,transparent 15%,#bde9dc30 48%,transparent 78%);animation:experience-sheen 1.4s ease .45s both}
.experience-intro-emblem::after{content:"";position:absolute;inset:-1px;border-radius:23px;border:1px solid var(--intro-cyan);opacity:.6;animation:experience-emblem-light 1.8s ease both}
.experience-intro-mark {
  display:grid;place-items:center;color:var(--intro-cyan);font:800 58px/1 system-ui,sans-serif;
  animation:experience-mark .65s ease .48s both;
}
.experience-intro-piece{position:absolute;display:block;background:var(--intro-cyan);border-radius:2px;animation:experience-piece .85s cubic-bezier(.16,.8,.2,1) both}
.experience-intro-piece-top{width:24px;height:3px;top:22px;--piece-x:-90px;--piece-y:-28px;--piece-angle:-36deg}
.experience-intro-piece-stem{width:4px;height:39px;top:24px;--piece-x:100px;--piece-y:0px;--piece-angle:75deg;animation-delay:.08s}
.experience-intro-piece-bottom{width:24px;height:3px;bottom:22px;--piece-x:-55px;--piece-y:70px;--piece-angle:35deg;animation-delay:.16s}
.experience-intro-name{font:750 clamp(28px,6vw,36px)/1.2 system-ui,sans-serif;letter-spacing:-.055em;white-space:nowrap;animation:experience-title .85s cubic-bezier(.16,.8,.2,1) .5s both}
.experience-intro-ai{display:inline-block;color:var(--intro-cyan);animation:experience-ai 1s cubic-bezier(.2,.7,.2,1) .75s both}
.experience-intro-tagline{margin:0;color:var(--ui-muted);font:400 12px/1.5 system-ui,sans-serif;letter-spacing:.04em;animation:experience-title .8s cubic-bezier(.16,.8,.2,1) .72s both}
.experience-intro-progress{height:2px;width:100px;transform-origin:left;background:linear-gradient(90deg,var(--intro-cyan),var(--intro-violet));border-radius:2px;animation:experience-progress 2s cubic-bezier(.2,.6,.2,1) .3s both}
html[data-theme="light"] .experience-intro{--intro-cyan:#2c766e;--intro-violet:#805e9e;background:radial-gradient(ellipse at 35% 46%,#8bbfa22b,transparent 46%),radial-gradient(ellipse at 72% 30%,#b5a0cf20,transparent 50%),var(--ui-bg)}
@keyframes experience-opening {
  0%,68%{opacity:1}100%{opacity:0;visibility:hidden}
}
@keyframes experience-stage{0%{transform:translateY(14px) scale(.94)}36%,62%{transform:none}100%{transform:translateY(-12px) scale(1.055)}}
@keyframes experience-halo{0%{opacity:0;transform:scale(.55)}45%{opacity:1}100%{opacity:0;transform:scale(1.4)}}
@keyframes experience-light-drift{0%{opacity:0;transform:translate(-35px,24px) scale(.7)}45%{opacity:1}100%{opacity:0;transform:translate(40px,-26px) scale(1.15)}}
@keyframes experience-signal{from{stroke-dashoffset:1;opacity:0}25%{opacity:1}to{stroke-dashoffset:0;opacity:1}}
@keyframes experience-signal-dot{0%{opacity:0;transform:scale(0)}55%{opacity:1;transform:scale(1.8)}100%{opacity:.65;transform:scale(1)}}
@keyframes experience-ai{0%{opacity:0;transform:translateY(8px) scale(.9)}55%{opacity:1;transform:translateY(-2px) scale(1.035)}100%{opacity:1;transform:none}}
@keyframes experience-orbit{0%{opacity:0;transform:rotate(-38deg) scale(.76)}35%{opacity:.48}72%{opacity:.34}100%{opacity:0;transform:rotate(24deg) scale(1.12)}}
@keyframes experience-orbit-inner{0%{opacity:0;transform:rotate(30deg) scale(.78)}40%{opacity:.32}72%{opacity:.24}100%{opacity:0;transform:rotate(-24deg) scale(1.14)}}
@keyframes experience-trace{from{opacity:0;transform:rotate(-19deg) scaleX(.1)}to{opacity:.4;transform:rotate(-19deg) scaleX(1)}}
@keyframes experience-corner{from{opacity:0;transform:translateY(12px)}to{opacity:.4;transform:none}}
@keyframes experience-bars{0%{transform:scaleY(.1);opacity:0}48%{transform:scaleY(1.08);opacity:1}70%{transform:scaleY(.78)}100%{transform:scaleY(1);opacity:1}}
@keyframes experience-emblem{from{opacity:0;transform:scale(.82) rotate(-8deg)}to{opacity:1;transform:none}}
@keyframes experience-emblem-light{0%{opacity:0;transform:scale(.92)}55%{opacity:.8}100%{opacity:.1;transform:scale(1.1)}}
@keyframes experience-sheen{0%{opacity:0;transform:scaleX(.3);transform-origin:left}40%{opacity:1}100%{opacity:0;transform:scaleX(1);transform-origin:right}}
@keyframes experience-piece{0%{opacity:0;transform:translate(var(--piece-x),var(--piece-y)) rotate(var(--piece-angle))}45%{opacity:1}70%{opacity:.8;transform:none}100%{opacity:0;transform:none}}
@keyframes experience-mark{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}
@keyframes experience-title{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes experience-progress{0%{opacity:0;transform:scaleX(.02)}15%,80%{opacity:1}100%{opacity:0;transform:scaleX(1)}}
.view.active{animation:experience-view .5s cubic-bezier(.16,.75,.22,1)}
.view.active>.page-heading{animation:experience-title .5s cubic-bezier(.16,.75,.22,1) both}
.view.active>:is(.panel,.summary-grid,.dashboard-grid,.discovery-hero,.discovery-ribbon){animation:experience-surface .55s cubic-bezier(.16,.75,.22,1) both}
.view.active>:is(.panel,.summary-grid,.dashboard-grid):nth-child(2){animation-delay:35ms}
.view.active>:is(.panel,.summary-grid,.dashboard-grid):nth-child(3){animation-delay:70ms}
.view.active>:is(.panel,.summary-grid,.dashboard-grid):nth-child(4){animation-delay:105ms}
@keyframes experience-view{from{opacity:.25}to{opacity:1}}
@keyframes experience-surface{from{opacity:.3;transform:translateY(12px)}to{opacity:1;transform:none}}
:is(.chart-line,.dollar-chart-line){animation:experience-line .85s cubic-bezier(.2,.7,.2,1)}
.chart-area{animation:experience-chart .75s ease .1s both}
:is(.market-chart-frame,.chart-volume)>svg{animation:experience-chart .4s ease-out}
@keyframes experience-line{from{stroke-dasharray:1;stroke-dashoffset:1;opacity:.3}to{stroke-dasharray:1;stroke-dashoffset:0;opacity:1}}
@keyframes experience-chart{from{opacity:.1}to{opacity:1}}
svg:is(:hover,:focus-within) :is(.chart-line,.dollar-chart-line,.chart-area){animation:none}
.settings-heading-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
:is(.button-primary,.button-secondary,.chart-control,.nav-item,.mobile-nav-item,[data-theme-toggle]) {
  transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;
}
:is(.button-primary,.button-secondary,.chart-control):active:not(:disabled){transform:translateY(1px)}
.panel{box-shadow:var(--ui-shadow)}
.panel-heading{row-gap:12px}
.panel-heading :is(h2,p){overflow-wrap:anywhere}
.panel :is(.data-note,.source-line){max-width:100%;line-height:1.65}
.live-status{align-items:center;line-height:1.3}
.live-status i{display:block;flex:0 0 7px}
/* Tema claro: superfícies e contraste também nos componentes legados. */
html[data-theme="light"] :is(.sidebar,.topbar,.mobile-navigation-list) {
  background:linear-gradient(140deg,#fff,#edf3f0);color:var(--ui-text);border-color:var(--ui-border);box-shadow:0 3px 14px #213d300c;
}
html[data-theme="light"] .sidebar::before{opacity:.2}
html[data-theme="light"] :is(.brand,.mobile-brand,.sidebar-bottom strong){color:var(--ui-text)}
html[data-theme="light"] :is(.brand b,.mobile-brand b,.brand-mark){color:#246a75}
html[data-theme="light"] :is(.nav-caption,.nav-item,.mobile-nav-item,.sidebar-bottom small,.lock,.live-status){color:var(--ui-muted)}
html[data-theme="light"] :is(.nav-item,.mobile-nav-item):is(:hover,.active){background:var(--ui-accent-soft);color:var(--ui-text)}
html[data-theme="light"] :is(.nav-icon,.mobile-nav-icon){color:var(--ui-accent)}
html[data-theme="light"] .sidebar-bottom{border-color:var(--ui-border)}
html[data-theme="light"] :is(.user-avatar,.top-avatar,.metric-icon,.quick-icon,.asset-icon){background:var(--ui-accent-soft);color:var(--ui-accent)}
html[data-theme="light"] :is(.panel,.summary-card,.help-card,.access-card,.login-panel,.plan-card,.discovery-tool-card,.discovery-guide-card,.international-card) {
  background:linear-gradient(125deg,#9e87b808,transparent 70%),var(--ui-panel);border-color:var(--ui-border);color:var(--ui-text);
}
html[data-theme="light"] body :is(.main-content,.access-shell,.login-panel,dialog,.assistant-panel) :is(h1,h2,h3,h4,strong,b,dt) {color:var(--ui-text)}
html[data-theme="light"] body :is(.main-content,.access-shell,.login-panel,dialog,.assistant-panel) :is(p,small,dd,label,.field-label,.source-line,.data-note,.field-hint) {color:var(--ui-muted)}
html[data-theme="light"] :is(.eyebrow,.help-tag,.market-badge,.text-button){color:var(--ui-accent)}
html[data-theme="light"] a{color:#476d74}
html[data-theme="light"] :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  background:#fff!important;color:var(--ui-text)!important;border-color:#9db5ab!important;
}
html[data-theme="light"] :is(input,textarea)::placeholder{color:#637a70;opacity:1}
html[data-theme="light"] :is(input,select,textarea):focus{border-color:var(--experience-focus)!important;box-shadow:0 0 0 3px #76509014}
html[data-theme="light"] :is(.button-secondary,.icon-button,.chart-control,.chart-modes,.chart-periods,.asset-tab,.news-toggle,.calendar-page-button,.password-visibility,.privacy-toggle,.discovery-search-trigger,.platform-feedback-trigger) {
  background:var(--ui-inset);color:var(--ui-text);border-color:var(--ui-border-strong);
}
html[data-theme="light"] :is(.button-primary,.access-card .button-primary){background:#356c56;color:white}
html[data-theme="light"] :is(.button-primary,.access-card .button-primary) :is(span,strong,b){color:white}
html[data-theme="light"] :is(.button-primary:hover,.access-card .button-primary:hover){background:#285842}
html[data-theme="light"] :is(.chart-control.selected,.chart-control[aria-pressed=true],.asset-tab.selected,.calendar-page-button[aria-current=true],.privacy-toggle[aria-pressed=true]){background:var(--ui-accent-soft);color:#24523c;border-color:#638f75}
html[data-theme="light"] :is(.table-wrap,table,thead,tbody){background:transparent;color:var(--ui-text);scrollbar-color:#90aca0 #edf3f0}
html[data-theme="light"] :is(th,td){border-color:var(--ui-border);color:var(--ui-text)}
html[data-theme="light"] :is(thead,.movement-history-table thead){background:#e6eeea}
html[data-theme="light"] :is(.placeholder-card,.empty-state,.empty-inline,.analysis-result,.profile-result-card,.analysis-metric,.analysis-ranking li,.broker-chart-details>div,.ibovespa-stats>div,.dollar-overview>div,.quote-info>div,.audit-event,.snapshot-item,.research-confirmation,.access-tabs,.access-resend,.commercial-notice,.disclaimer,.validation-panel,.market-strip,.market-ribbon,.discovery-hero,.quick-action,.watch-item,.mover-card,.news-item,.discovery-news-item,.calendar-asset-panel,.calendar-asset-toggle,.calendar-event,.calendar-row,.dividend-summary-card,.alert-item,.access-preview-note,.alert-settings,.alert-check) {
  background:linear-gradient(115deg,#9e87b806,transparent 70%),var(--ui-inset);color:var(--ui-text);border-color:var(--ui-border);
}
html[data-theme="light"] :is(.news-item,.discovery-news-item,.watch-item,.mover-card):hover{background:#e6eee9}
html[data-theme="light"] :is(.market-chart-frame,.chart-volume,.quote-sparkline,.chart-window-controls,.chart-data-table,.chart-inspect-readout,.chart-inspect-tooltip){background:var(--ui-plot);color:var(--ui-text);border-color:var(--ui-border)}
html[data-theme="light"] :is(.chart-gridline,.chart-grid){stroke:#c9d7d0}
html[data-theme="light"] .chart-axis-label{fill:#526b63}
html[data-theme="light"] :is(.chart-line,.dollar-chart-line){stroke:#367b67}
html[data-theme="light"] :is(.chart-point,.dollar-chart-point){fill:#fff;stroke:#367b67}
html[data-theme="light"] :is(.data-dialog,.discovery-dialog,.platform-feedback-dialog,.assistant-panel,.assistant-dialog) {background:#f8fbf9;color:var(--ui-text);border-color:var(--ui-border-strong)}
html[data-theme="light"] :is(.assistant-message,.assistant-user-message,.assistant-response,.assistant-status,.assistant-sources,.assistant-panel details){background:var(--ui-inset);color:var(--ui-text);border-color:var(--ui-border)}
html[data-theme="light"] :is(.assistant-fab,.assistant-fab-mark){color:#214b3a;background:#dcece3;border-color:#729780}
html[data-theme="light"] :is(.access-page,.login-page,.legal-page,.access-shell){background:radial-gradient(ellipse at 6% 15%,#b6cec044,transparent 62%),var(--ui-bg);color:var(--ui-text)}
html[data-theme="light"] .access-tabs button{color:var(--ui-muted)}
html[data-theme="light"] .access-tabs button[aria-selected=true]{background:#dcece3;color:#214b3a}
html[data-theme="light"] :is(.access-card .text-button,.access-card a,.license-grid a,.chart-data-table summary){color:#426957}
html[data-theme="light"] .privacy-feedback,html[data-theme="light"] .chart-updating::after{background:#e7efeb;color:#2b5140;border-color:#8fb2a0}
html[data-theme="light"] :is(.positive,.quote-up,.quote-coverage.available,.form-message.success){color:#176b47}
html[data-theme="light"] :is(.negative,.quote-down,.form-message.error,.result-message.error){color:#a33843}
html[data-theme="light"] :is(.incomplete,.quote-coverage.stale,.calendar-coverage.stale){color:#81600d}
@media(hover:hover) and (pointer:fine){.quick-action:hover,.discovery-tool-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px #0002}}
@media(max-width:700px){[data-theme-toggle]{min-width:40px;min-height:40px}.experience-intro-stage{gap:15px}.experience-intro-orbit{width:210px;height:210px}.experience-intro-orbit-inner{width:170px;height:170px}}
@media(max-height:450px){.experience-intro-stage{gap:8px;height:88svh}.experience-intro-emblem{width:62px;height:62px;border-radius:17px}.experience-intro-mark{font-size:40px}.experience-intro-emblem::after{border-radius:17px}.experience-intro-name{font-size:26px}.experience-intro-tagline{font-size:11px}.experience-intro-orbit{width:170px;height:170px}.experience-intro-orbit-inner{width:140px;height:140px}.experience-intro-piece-top{top:13px}.experience-intro-piece-stem{top:14px;height:33px}.experience-intro-piece-bottom{bottom:13px}.experience-intro-bars{display:none}}
@media(prefers-reduced-motion:reduce){
  /* A abertura é automática; o restante mantém a preferência de movimento. */
  .view.active,.view.active>*,.chart-area,:is(.chart-line,.dollar-chart-line),:is(.market-chart-frame,.chart-volume)>svg{animation:none!important;transform:none!important}
  :is(.button-primary,.button-secondary,.chart-control,.nav-item,.mobile-nav-item,.quick-action,.discovery-tool-card,[data-theme-toggle]){transition:none!important;transform:none!important}
}

[data-theme-toggle]{min-width:44px;min-height:44px}

html[data-theme="light"] .text-button{color:#355f50}

/* Contraste claro: a mesma especificidade dos componentes legados, sem
   alterar o tema escuro ou inverter o texto dos botões de fundo escuro. */
html[data-theme="light"] body .main-content .view .summary-card {
  background:linear-gradient(120deg,#e8f1ed,#f7faf9);color:var(--ui-text);border-color:var(--ui-border);
}
html[data-theme="light"] body .main-content .view :is(
  .metric,.card-top,.watch-symbol-button,.watch-item-title,.international-symbol,
  .movement-history-ticker,.movement-history-gross,.quote-price,.simulation-headline,
  .broker-stat,.chart-labels,.chart-volume-details summary,.connection-details,
  .connection-details summary,.readiness-list,.csv-pagination,.compact-check
) {color:var(--ui-text)}
html[data-theme="light"] body .main-content .view :is(
  .metric-muted,.movement-fee-unknown,.quote-coverage.missing,.news-item small,
  .table-scroll-hint,.chart-zoom-note
) {color:var(--ui-muted)}
html[data-theme="light"] body .main-content .view :is(
  .button-secondary,.news-toggle,.asset-tab,.icon-button,.calendar-page-button,
  .chart-modes,.chart-periods,.chart-control,.chart-zoom button
) {background:var(--ui-inset);color:var(--ui-text);border-color:var(--ui-border-strong)}
html[data-theme="light"] body .main-content .view :is(
  .button-secondary,.news-toggle,.asset-tab,.chart-control,.chart-zoom button
):hover {background:#dfebe5;color:#233731}
html[data-theme="light"] body .main-content .view :is(
  .asset-tab.active,.asset-tab.selected,.chart-control.selected,.chart-control[aria-pressed=true],
  .calendar-page-button.active,.calendar-page-button.selected
) {background:#dcece3;color:#24523c;border-color:#638f75}
html[data-theme="light"] body .main-content .view .chart-axis-label,
html[data-theme="light"] body .main-content .view svg text {fill:#435d53}
html[data-theme="light"] body .main-content .view .discovery-tool-card .discovery-tool-number {
  color:#426957;background:#e4f0e9;border-color:#8baca0;
}
html[data-theme="light"] body :is(.brand-mark,.help-tag,.market-badge) {
  background:#e4f0e9;color:#2d6051;border-color:#8baca0;
}
html[data-theme="light"] body .main-content .view :is(.news-item a,.issuer-link,.connection-details a) {color:#355f64}
html[data-theme="light"] body .main-content .view :is(.news-item a,.issuer-link,.connection-details a):hover {color:#234d3d}
html[data-theme="light"] body .main-content .view :is(.movement-type-buy,.market-ribbon-change[data-direction=up]) {color:#176b47}
html[data-theme="light"] body .main-content .view :is(.movement-type-sell,.market-ribbon-change[data-direction=down]) {color:#a33843}
html[data-theme="light"] body .main-content .view .dividend-conflict td {background:#fff3d7!important;color:#6b4e12}
html[data-theme="light"] body .main-content .view .dividend-conflict .dividend-origin small {color:#6b4e12}
html[data-theme="light"] body :is(.main-content .view,.assistant-widget,.access-card,.login-panel,dialog) .button-primary {
  background:#356c56;color:#fff;border-color:#356c56;
}
html[data-theme="light"] body :is(.main-content .view,.assistant-widget,.access-card,.login-panel,dialog) .button-primary :is(span,strong,b) {color:#fff}
html[data-theme="light"] body :is(.main-content .view,.assistant-widget,.access-card,.login-panel,dialog) .button-primary:hover {background:#285842;color:#fff}

/* As abas também declaram tokens locais. Trocar apenas :root não substitui
   esses tons pastel herdados do modo escuro. */
html[data-theme="light"] body .main-content :is(#view-dashboard,#view-assets,#view-broker,#view-international,#view-portfolio,#view-simulator,#view-dividends,#view-news,#view-tools,#view-learn,#view-help,#view-plans,#view-account,#view-settings) {
  --ui-accent:#426957;--ui-accent-soft:#e4f0e9;--ui-button:#356c56;
}
html[data-theme="light"] body .main-content :is(#view-assets,#view-broker,#view-news) {--ui-accent:#346678;--ui-accent-soft:#e4eef3;--ui-button:#356376}
html[data-theme="light"] body .main-content :is(#view-international,#view-plans,#view-account,#view-tools) {--ui-accent:#70528d;--ui-accent-soft:#eee8f6;--ui-button:#684881}
html[data-theme="light"] body .main-content #view-simulator {--ui-accent:#96514a;--ui-accent-soft:#f7e8e6;--ui-button:#874b44}
html[data-theme="light"] body .main-content #view-dividends {--ui-accent:#806019;--ui-accent-soft:#fff3d7;--ui-button:#7b5917}
html[data-theme="light"] body .main-content #view-learn {--ui-accent:#795b38;--ui-accent-soft:#f4ecdf;--ui-button:#735431}
html[data-theme="light"] body .main-content #view-dashboard .news-panel {--ui-accent:#806019;--ui-accent-soft:#fff3d7}
html[data-theme="light"] body .main-content #view-dashboard .alert-panel {--ui-accent:#70528d;--ui-accent-soft:#eee8f6}
html[data-theme="light"] body .assistant-widget {--ui-accent:#426957;--ui-accent-soft:#e4f0e9;--ui-button:#356c56}
html[data-theme="light"] body .main-content .view :is(summary,.quick-arrow,.mover-change,#movement-history-count,.dividend-load-status) {color:var(--ui-accent)}
html[data-theme="light"] body .main-content .view :is(.analysis-allocation-content,.operations-events>li) {background:var(--ui-inset);color:var(--ui-text);border-color:var(--ui-border)}
html[data-theme="light"] body .main-content #view-account a {color:#70528d}
html[data-theme="light"][data-values-hidden=true] :is(#dividend-annual-chart,.analysis-allocation-content) {
  background:var(--ui-inset);border-color:var(--ui-border-strong);color:var(--ui-text);
}

/* Finite entrance for recently added workspaces, without moving the whole page. */
@media(prefers-reduced-motion:no-preference){
 .view.active>:is(.finance-summary,.finance-workspace,.finance-secondary-grid,.broker-workspace,.market-layout,.market-intelligence-grid){animation:experience-surface .42s cubic-bezier(.16,.75,.22,1) both}
 .view.active>:is(.finance-workspace,.broker-workspace,.market-layout){animation-delay:45ms}
 .view.active>.finance-secondary-grid{animation-delay:80ms}
 .finance-metric{animation:experience-metric .32s cubic-bezier(.16,.75,.22,1) both}
 .finance-metric:nth-child(2){animation-delay:25ms}.finance-metric:nth-child(3){animation-delay:50ms}.finance-metric:nth-child(4){animation-delay:75ms}
 .finance-bar i{transform-origin:left center;animation:experience-bar .42s cubic-bezier(.2,.7,.2,1) both}
 .finance-trend-row:nth-child(2) .finance-bar i{animation-delay:20ms}.finance-trend-row:nth-child(3) .finance-bar i{animation-delay:40ms}.finance-trend-row:nth-child(4) .finance-bar i{animation-delay:60ms}.finance-trend-row:nth-child(5) .finance-bar i{animation-delay:80ms}.finance-trend-row:nth-child(6) .finance-bar i{animation-delay:100ms}
}
@keyframes experience-metric{from{opacity:.25;transform:translateY(7px) scale(.99)}to{opacity:1;transform:none}}
@keyframes experience-bar{from{opacity:.3;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){.finance-metric,.finance-bar i{animation:none!important;transform:none!important}}

#simulator-result .simulation-headline{justify-content:flex-start;gap:10px 20px;flex-wrap:wrap;align-items:baseline}#simulator-result .simulation-headline>div{flex:0 1 auto;min-width:0}#simulator-result .simulation-headline>:is(.gain,.loss){white-space:nowrap;margin:0}

#simulator-result .simulation-metrics{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 14px}#simulator-result .simulation-metrics>:is(.gain,.loss){margin:0;white-space:nowrap;font-size:12px}
