:root{color-scheme:light;--ink:#142237;--muted:#718097;--line:#e6ebf1;--paper:#f5f7fa;--white:#fff;--navy:#0b1726;--blue:#3278d7;--blue-soft:#ebf3ff;--mint:#c7f4e5;--green:#18845f;--red:#b74c4c;font-family:Inter,"Segoe UI",system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-size:14px}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;padding:25px 16px 18px;background:var(--navy);color:#d5deeb;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;padding:0 10px;color:#f4f7fb;text-decoration:none;font-size:17px;font-weight:750;letter-spacing:-.04em}.brand b,.mobile-brand b{color:#60a0f4}.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#1a2a40;color:var(--mint);font-weight:800}.nav-caption{margin:43px 10px 12px;color:#74839a;font-size:9px;font-weight:800;letter-spacing:.14em}.sidebar nav{display:grid;gap:5px}.nav-item{height:43px;display:flex;align-items:center;gap:12px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:#aebbd0;text-align:left;font:600 12px inherit;cursor:pointer}.nav-item span{width:18px;color:#8498b5;text-align:center;font-size:17px}.nav-item:hover,.nav-item.active{background:#1a2b42;color:white}.nav-item.active{box-shadow:inset 3px 0 #55a0f6}.nav-item.active span{color:#76b1ff}.sidebar-bottom{margin-top:auto;display:flex;align-items:center;gap:10px;padding:14px 9px 2px;border-top:1px solid #26354a}.user-avatar,.top-avatar{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#dce9f8;color:#254c79;font-weight:750;font-size:12px}.sidebar-bottom strong,.sidebar-bottom small{display:block}.sidebar-bottom strong{font-size:11px;color:#eaf0f8}.sidebar-bottom small{margin-top:3px;color:#8291a8;font-size:9px}.lock{margin-left:auto;color:#8194ad;font-size:10px}.app-shell{min-height:100vh;margin-left:238px}.topbar{height:65px;padding:0 42px;display:flex;align-items:center;justify-content:flex-end;background:var(--white);border-bottom:1px solid var(--line)}.mobile-brand{display:none}.topbar-right{display:flex;align-items:center;gap:18px}.live-status{display:flex;align-items:center;gap:8px;color:#69788e;font-size:11px}.live-status i,.pulse-dot{width:7px;height:7px;border-radius:50%;background:#a0acbc}.top-avatar{width:30px;height:30px}.main-content{max-width:1440px;margin:0 auto;padding:36px 42px 30px}.view{display:none;animation:appear .18s ease}.view.active{display:block}@keyframes appear{from{opacity:.7;transform:translateY(3px)}to{opacity:1;transform:none}}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:24px}.eyebrow{margin:0 0 8px;color:#5181bc;font-size:9px;font-weight:800;letter-spacing:.15em}.page-heading h1{margin:0;font-size:clamp(25px,3vw,32px);line-height:1.2;letter-spacing:-.045em}.subheading{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.55}.date-chip{padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#63738a;font-size:10px;text-transform:capitalize}.market-strip{min-height:53px;margin:0 0 16px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border:1px solid #dce8f5;border-radius:10px;background:#edf4fb}.market-strip>div{display:flex;align-items:center;gap:9px;color:#697c95;font-size:10px}.market-strip strong{font-weight:600;color:#4a607d}.pulse-dot{background:#dcaa52}.text-button{border:0;padding:7px;background:transparent;color:var(--blue);font:700 10px inherit;cursor:pointer}.text-button b{margin-left:6px;font-size:15px}.summary-grid{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:13px;margin-bottom:16px}.summary-card,.panel{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--white);box-shadow:0 3px 12px #10284705}.summary-card{min-height:116px;padding:17px 18px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.dark-card{background:var(--navy);border-color:var(--navy);color:white}.card-top{width:100%;display:flex;align-items:center;justify-content:space-between;color:#748198;font-size:10px;font-weight:600}.dark-card .card-top,.dark-card small{color:#9eacc0}.metric{margin:10px 0 4px;font-size:25px;letter-spacing:-.04em}.summary-card small{color:#8390a2;font-size:9px}.dark-card .metric{color:#f7fafc}.metric-muted{color:#a6b0bd}.metric-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#25344a;color:#aad1ff;font-size:16px}.light-icon{background:#eff4fa;color:#6d88aa}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(255px,.9fr);gap:14px;align-items:start}.panel{padding:19px}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.panel-heading h2{margin:0;font-size:15px;letter-spacing:-.025em}.panel-heading .eyebrow{margin-bottom:6px}.positions-panel{min-height:285px}.table-wrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{padding:0 9px 11px;text-align:right;color:#8a96a7;font-size:9px;font-weight:650}th:first-child,td:first-child{padding-left:0;text-align:left}td{padding:12px 9px;border-top:1px solid #edf0f4;text-align:right;color:#56647a;font-size:10px}td:first-child{color:var(--ink);font-weight:650}.asset-symbol{display:flex;align-items:center;gap:8px}.asset-icon{width:25px;height:25px;border-radius:7px;display:grid;place-items:center;background:#edf4fb;color:#477ab8;font-size:8px;font-weight:750}.incomplete{color:#9a7020;font-size:8px}.empty-state{padding:42px 8px;text-align:center;color:#8491a3;font-weight:400;white-space:normal}.allocation-note{min-height:14px;margin:12px 0 0;color:#8a6a2c;font-size:9px;line-height:1.45}.quick-panel{padding:18px 14px}.quick-panel .panel-heading{padding:0 4px}.quick-action{width:100%;min-height:61px;padding:9px 5px;display:flex;align-items:center;gap:10px;border:0;border-top:1px solid #eff2f6;background:white;color:#8190a3;cursor:pointer;text-align:left}.quick-action>span:last-child{margin-left:auto;color:#7694b8;font-size:15px}.quick-action b,.quick-action small{display:block}.quick-action b{color:#34445a;font-size:10px}.quick-action small{margin-top:4px;color:#8995a6;font-size:9px}.quick-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:8px;background:#f1f6fc;color:#5284c1;font-size:16px}.disclaimer{display:flex;align-items:flex-start;gap:10px;margin-top:17px;padding:12px 14px;border:1px solid #dce7f2;border-radius:9px;background:#eef4f9;color:#63748b}.disclaimer p{margin:0;font-size:9px;line-height:1.55}.info-icon{flex:0 0 16px;width:16px;height:16px;display:grid;place-items:center;border:1px solid #8aa3bf;border-radius:50%;color:#6f8cac;font:600 10px Georgia,serif}.portfolio-grid{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.5fr);gap:15px;align-items:start}.form-panel{padding:20px}.field-label{display:block;margin:12px 0 6px;color:#43536a;font-size:10px;font-weight:700}input,select{width:100%;height:39px;border:1px solid #dce3ec;border-radius:7px;padding:0 10px;color:var(--ink);background:#fff;font:inherit;font-size:11px;outline:none}input:focus,select:focus{border-color:#6aa0e4;box-shadow:0 0 0 3px #2875d718}input::placeholder{color:#a1acba}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field-hint{margin:7px 0 2px;color:#7b8798;font-size:9px;line-height:1.45}.button-primary{min-height:41px;padding:0 14px;display:flex;justify-content:space-between;align-items:center;gap:25px;border:0;border-radius:7px;color:white;background:var(--blue);font:650 10px inherit;cursor:pointer;transition:background .15s,transform .15s}.button-primary:hover{background:#1e65c1;transform:translateY(-1px)}.button-primary:disabled{opacity:.6;cursor:wait;transform:none}.button-primary span{font-size:17px}.form-panel .button-primary{width:100%;margin-top:17px}.form-message{min-height:15px;margin:9px 0 0;color:var(--muted);font-size:10px}.form-message.error,.result-message.error{color:var(--red)}.form-message.success{color:var(--green)}.market-panel,.simulator-panel,.dividends-panel{padding:22px}.asset-tabs{display:flex;gap:7px;padding-bottom:17px;border-bottom:1px solid #edf0f4}.asset-tab{padding:8px 12px;border:1px solid transparent;border-radius:7px;background:transparent;color:#738198;font:600 10px inherit;cursor:pointer}.asset-tab.selected{border-color:#d9e7f8;background:#f1f6fc;color:#2868b4}.asset-tab.unavailable{color:#a7afba;cursor:not-allowed}.search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin-top:18px}.search-form input{height:43px;font-size:12px}.search-form .button-primary{min-width:145px}.data-note{margin:10px 0 0;color:#8290a3;font-size:9px;line-height:1.55}.result-area{margin-top:18px}.placeholder-card{min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px dashed #dbe3ed;border-radius:10px;background:#fbfcfe;color:#8793a4;text-align:center}.placeholder-card b{color:#52627a;font-size:11px}.placeholder-card span:last-child{font-size:9px}.placeholder-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#f0f5fb;color:#7292b8;font-size:19px}.result-message{padding:14px 4px;color:#67768b;font-size:11px}.quote-card,.simulation-card{padding:19px;border:1px solid #e5eaf0;border-radius:10px;background:#fff}.quote-title,.simulation-headline{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.quote-title h2{margin:0;font-size:17px}.quote-price,.simulation-headline strong{display:block;margin:19px 0;font-size:29px;letter-spacing:-.045em}.quote-info{display:flex;flex-wrap:wrap;gap:30px;padding:14px 0;border-top:1px solid #edf0f4}.quote-info small,.quote-info b{display:block}.quote-info small{margin-bottom:6px;color:#8a96a7;font-size:9px}.quote-info b{color:#35465d;font-size:10px}.source-line{display:block;margin-top:13px;color:#8a96a7;font-size:9px;line-height:1.5}.simulator-form{display:grid;grid-template-columns:1fr 1fr;gap:2px 12px;align-items:end}.simulator-form .button-primary{grid-column:1/-1;margin-top:15px}.simulator-panel>.data-note{margin-top:15px}.simulation-headline{align-items:center}.simulation-headline strong{margin:2px 0 0}.gain{color:var(--green);font-size:11px;font-weight:700}.loss{color:var(--red);font-size:11px;font-weight:700}.simulation-card>p:not(.eyebrow){color:#68778c;font-size:10px;line-height:1.65}.dividends-panel .search-form{margin-top:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1000px){.sidebar{width:210px}.app-shell{margin-left:210px}.main-content{padding:30px 25px}.topbar{padding:0 25px}.summary-grid{grid-template-columns:1fr 1fr}.summary-card:last-child{display:none}.dashboard-grid{grid-template-columns:1fr}.quick-panel{display:grid;grid-template-columns:repeat(3,1fr);gap:0 12px}.quick-panel .panel-heading{grid-column:1/-1}}
@media(max-width:700px){.sidebar{position:static;width:auto;height:auto;padding:13px 15px;display:block}.brand{padding:0}.sidebar .nav-caption,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:4px;margin-top:12px;overflow-x:auto}.nav-item{height:35px;flex:0 0 auto;padding:0 10px;font-size:10px}.nav-item span{display:none}.app-shell{margin-left:0}.topbar{height:45px;padding:0 16px}.topbar-right{gap:0}.live-status{font-size:9px}.top-avatar{display:none}.main-content{padding:25px 16px}.page-heading{align-items:flex-start}.page-heading h1{font-size:25px}.date-chip{display:none}.portfolio-grid{grid-template-columns:1fr}.portfolio-grid .positions-panel{order:2}.market-strip{padding:10px 12px;gap:5px}.market-strip>div{align-items:flex-start;flex-wrap:wrap}.market-strip strong{width:100%;padding-left:16px}.summary-card{min-height:102px;padding:13px}.metric{font-size:21px}.dashboard-grid{gap:11px}.quick-panel{display:block}.quick-action{min-height:55px}.asset-tabs{overflow-x:auto}.asset-tab{white-space:nowrap}.simulator-form{grid-template-columns:1fr 1fr}.search-form{grid-template-columns:1fr}.search-form .button-primary{width:100%}.quote-info{gap:18px}.quote-price{font-size:25px}}
@media(max-width:420px){.summary-grid{gap:8px}.summary-card{padding:11px}.summary-card small{line-height:1.4}.summary-card .metric{font-size:18px}.card-top{font-size:9px}.field-row{gap:7px}.panel{padding:16px 13px}.simulator-form{grid-template-columns:1fr}.simulator-form .button-primary{grid-column:auto}}
.market-help{margin-top:12px;padding:10px 12px;border:1px solid #e5ebf2;border-radius:8px;background:#fbfcfe;color:#65758c;font-size:10px}.market-help summary{color:#426b9c;font-weight:700;cursor:pointer}.market-help p{margin:9px 0 0;line-height:1.5}.market-help a{color:#3278d7}.market-help pre{overflow:auto;margin:8px 0;padding:10px;border-radius:6px;background:#101b2d;color:#e4edf8;font-size:10px;line-height:1.5}.market-help code{font-family:Consolas,"Courier New",monospace}

/* Polimento visual Invest AI · identidade corporativa e tecnológica */
:root{--ink:#142237;--muted:#6d7d91;--line:#e2e9f0;--paper:#f3f6fa;--navy:#0b1424;--blue:#1878c8;--blue-soft:#eaf4fc;--cyan:#56c7d8;--green:#138a6a;--red:#ba4a55;font-family:Aptos,"Segoe UI Variable",Inter,"Segoe UI",system-ui,sans-serif;font-optical-sizing:auto}body{background:radial-gradient(ellipse at 80% -20%,#e5f3fa 0,transparent 40%),var(--paper);letter-spacing:.005em}.sidebar{background:linear-gradient(165deg,#0c192b 0%,#0b1424 62%,#101e32 100%);box-shadow:8px 0 28px #07111e12}.brand-mark{background:linear-gradient(145deg,#153650,#1a2c42);color:#70d5df;box-shadow:inset 0 0 0 1px #67c6d52b}.brand b,.mobile-brand b{color:#5bd0db}.nav-item{transition:background .16s,color .16s}.nav-item.active{background:linear-gradient(90deg,#17324b,#182b41);box-shadow:inset 3px 0 #43c6d4}.nav-item.active span{color:#65d4de}.topbar{background:#ffffffed;backdrop-filter:blur(12px)}.main-content{padding-top:39px}.page-heading h1{font-weight:680;letter-spacing:-.04em}.eyebrow{color:#258aa4}.panel,.summary-card{border-color:#e3eaf1;border-radius:14px;box-shadow:0 8px 26px #16314b08}.panel{padding:21px}.dark-card{background:linear-gradient(140deg,#10233a,#0b1424 76%);border-color:#18334f;box-shadow:0 10px 25px #0b14241c}.dark-card .metric{color:#e9f7fb}.summary-grid{gap:15px}.market-strip{background:linear-gradient(105deg,#eaf4fa,#edf6f8);border-color:#d7e8ee;border-radius:12px}.market-strip .pulse-dot{background:#3bbca9;box-shadow:0 0 0 4px #3bbca91c}.button-primary{background:linear-gradient(120deg,#1779c7,#238eae);box-shadow:0 5px 14px #1678bb24;font-size:11px}.button-primary:hover{background:linear-gradient(120deg,#126bb4,#177f9d)}input,select{border-color:#d8e2ec;border-radius:8px;font-size:12px}input:focus,select:focus{border-color:#48b3ca;box-shadow:0 0 0 3px #48b3ca1c}th{font-size:10px;letter-spacing:.02em}td{font-size:11px}.asset-icon,.quick-icon{background:#edf6f8;color:#18859a}.quote-card,.simulation-card{border-color:#e0e9ef;border-radius:12px;background:linear-gradient(150deg,#fff,#fbfdff)}.quote-price,.simulation-headline strong{font-variant-numeric:tabular-nums}.source-line{color:#74859a}.asset-tab.selected{border-color:#cfe5eb;background:#edf7f8;color:#147c91}.disclaimer{background:#edf4f8;border-color:#dce8ef;border-radius:11px}.market-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,.8fr);gap:16px;align-items:start}.market-panel,.watchlist-panel{min-height:100%}.source-pill{display:flex;align-items:center;gap:7px;border:1px solid #dce9ef;border-radius:99px;background:#f4fafb;padding:7px 10px;color:#5d7488;font-size:10px}.source-pill i{width:7px;height:7px;border-radius:50%;background:#2ab99c;box-shadow:0 0 0 3px #2ab99c1d}.icon-button{width:34px;height:34px;border:1px solid #dce6ec;border-radius:9px;background:#f8fbfd;color:#23899b;font-size:19px;cursor:pointer}.icon-button:disabled{opacity:.55;cursor:wait}.icon-button.spinning{animation:rotate .8s linear infinite}@keyframes rotate{to{transform:rotate(360deg)}}.watchlist-note{margin:0 0 13px}.watchlist{display:grid;gap:8px}.watch-item{padding:12px;border:1px solid #e8eef2;border-radius:10px;background:linear-gradient(130deg,#fff,#f9fcfd)}.watch-item-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.watch-item-title b{font-size:12px;letter-spacing:.03em}.watch-item-title strong{font-size:13px;font-variant-numeric:tabular-nums}.watch-item>small{display:block;margin-top:7px;color:#8291a2;font-size:9px}.watch-remove{margin-top:8px;padding:0;border:0;background:transparent;color:#7890a2;font:600 9px inherit;cursor:pointer}.watch-remove:hover{color:#b54852}.empty-inline{padding:20px 8px;color:#8391a1;font-size:10px;line-height:1.6;text-align:center}.quote-actions{display:flex;justify-content:flex-start;padding-top:13px;border-top:1px solid #edf1f4}.button-secondary{min-height:36px;padding:0 12px;border:1px solid #cfe3e9;border-radius:8px;background:#f2f9fa;color:#187d91;font:650 10px inherit;cursor:pointer}.button-secondary:hover{background:#e6f4f5}.button-secondary:disabled{opacity:.6;cursor:default}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.calendar-toolbar h2,.panel-heading h2{font-size:16px;font-weight:650}.section-divider{height:1px;margin:23px 0;background:#e9eef2}.simulation-chart{margin:18px 0 13px;padding:14px 13px 9px;border:1px solid #e5edf2;border-radius:11px;background:linear-gradient(180deg,#f7fbfd,#fff)}.simulation-chart svg{display:block;width:100%;height:auto;overflow:visible}.chart-labels{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:9px;color:#8593a2;font-size:9px;font-variant-numeric:tabular-nums}.chart-legend{color:#278fa4}.simulation-units{margin:8px 0;color:#728297;font-size:10px}.market-help{border-color:#e4ebf0;background:#fbfdfe}.market-help summary{color:#317f91}.market-help code{font-family:Consolas,"Courier New",monospace}.field-label{font-size:11px}.summary-card small{font-size:10px}.summary-card:last-child{display:flex}@media(max-width:1000px){.market-layout{grid-template-columns:1fr}.watchlist-panel{min-height:unset}.watchlist{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.main-content{padding:25px 15px}.market-layout{gap:11px}.watchlist{grid-template-columns:1fr}.summary-card:last-child{display:flex}.summary-grid{grid-template-columns:1fr 1fr}.calendar-toolbar{align-items:flex-start;flex-direction:column}.calendar-toolbar .button-secondary{width:100%;justify-content:center}.source-pill{font-size:9px}.page-heading h1{font-size:24px}}
/* Paleta Invest AI V2: navy, azul elétrico e ciano */
:root{--navy:#0a1729;--blue:#1478d4;--blue-soft:#e9f5fb;--cyan:#42c5d4}
body{background:linear-gradient(135deg,#eff5f9 0%,#f7f9fc 50%,#edf5f8 100%);color:#12263b}
.sidebar{background:linear-gradient(180deg,#081426 0%,#0c1e35 55%,#0a1729 100%);border-right:1px solid #29445d;box-shadow:10px 0 32px #07172816}
.brand-mark{background:linear-gradient(145deg,#0d7791,#17405d);color:#a4f0ed;box-shadow:0 0 22px #40d3d426,inset 0 0 0 1px #72e0de45}
.brand b,.mobile-brand b{color:#58d4db}
.nav-caption{color:#69869c}
.nav-item{color:#b7c8d7}
.nav-item.active{background:linear-gradient(100deg,#0d3a54,#17344c);box-shadow:inset 3px 0 #40d1d7,0 4px 18px #06111d45}
.nav-item.active span{color:#75e0e2}
.topbar{border-top:3px solid #2dbbc8;background:#fbfdff}
.eyebrow{color:#087e94}
.page-heading h1{color:#10263d;font-weight:700;letter-spacing:-.045em}
.market-strip{background:linear-gradient(105deg,#dff4f5 0%,#e8f2fb 100%);border-color:#c5e6ea;box-shadow:0 5px 18px #0e72840c}
.market-strip .pulse-dot{background:#20b79e;box-shadow:0 0 0 5px #20b79e22}
.summary-card,.panel{border-color:#dce7ee;box-shadow:0 8px 28px #142d450d}
.summary-card{background:#ffffff}
.dark-card{background:linear-gradient(125deg,#0e3652 0%,#0a1729 78%);border-color:#16405a;box-shadow:0 10px 28px #0a172928}
.dark-card .metric{color:#f2fcff}
.metric-icon{background:#163b54;color:#79dfe5}
.light-icon,.quick-icon,.asset-icon{background:#e7f5f6;color:#087f92}
.button-primary{background:linear-gradient(115deg,#126cc2 0%,#078f9b 100%);box-shadow:0 6px 16px #087fa32b}
.button-primary:hover{background:linear-gradient(115deg,#0e5fae 0%,#087d89 100%)}
input:focus,select:focus{border-color:#26aebc;box-shadow:0 0 0 3px #26aebc24}
.asset-tab.selected,.button-secondary,.source-pill{border-color:#bde5e7;background:#eaf8f8;color:#087b8a}
.quote-card,.simulation-card{border-color:#dce9ef;box-shadow:0 8px 22px #142f450a}
.simulation-chart{background:linear-gradient(180deg,#edf8fa,#ffffff);border-color:#d5eaed}
.chart-legend{color:#087f90}
.disclaimer{background:#eaf3f7;border-color:#d2e5eb}
@media(max-width:700px){.sidebar{background:linear-gradient(100deg,#081426,#102b45)}.topbar{border-top-width:2px}}

/* Home Broker, notícias, alertas e gráficos */
:root{font-family:"Segoe UI Variable",Aptos,Inter,"Segoe UI",system-ui,sans-serif;font-size:14px;--ink:#13263a;--muted:#66798d;--cyan:#27aebb}
button,input,select{font-family:inherit}.nav-icon svg,.quick-icon svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.nav-icon{display:grid;place-items:center;flex:0 0 18px}.quick-icon{display:grid;place-items:center;flex:0 0 31px}.market-layout{margin-bottom:15px}.market-panel,.watchlist-panel{min-width:0}.watch-symbol-button{padding:0;border:0;background:transparent;color:#16324b;font:700 12px inherit;letter-spacing:.04em;cursor:pointer}.watch-symbol-button:hover{color:#078799}.treasury-quick{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:12px;padding:11px 12px;border:1px solid #dbe8ee;border-radius:10px;background:#f6fafc}.treasury-quick[hidden]{display:none}.treasury-quick>span{width:100%;color:#61758a;font-size:10px;font-weight:700}.treasury-quick button{padding:7px 10px;border:1px solid #d8e5eb;border-radius:7px;background:#fff;color:#34536d;font:600 10px inherit;cursor:pointer}.treasury-quick button:hover{border-color:#49b3c0;background:#effafb;color:#087c8a}.quote-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.55fr);gap:20px;align-items:center}.quote-main{min-width:0}.quote-sparkline{min-height:98px;display:grid;place-items:center;padding:10px;border:1px solid #e4edf1;border-radius:10px;background:linear-gradient(150deg,#f4fafb,#fff);color:#7c8c9d;font-size:9px;text-align:center}.quote-sparkline svg{display:block;width:100%;max-width:300px;height:auto}.quote-card .quote-info{gap:20px 26px}.market-intelligence-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.75fr);gap:15px;margin-top:15px;align-items:start}.news-panel,.alert-panel{min-width:0}.news-panel .panel-heading{margin-bottom:10px}.news-feed{max-height:380px;overflow:auto}.news-list{display:grid;gap:0}.news-item{padding:12px 2px;border-top:1px solid #eaf0f3}.news-item a{color:#1b3b54;text-decoration:none;font-size:12px;font-weight:620;line-height:1.5}.news-item a:hover{color:#087e93;text-decoration:underline}.news-item small{display:block;margin-top:6px;color:#8a98a8;font-size:9px}.alert-threshold{padding:6px 9px;border:1px solid #f0d9dc;border-radius:30px;background:#fff7f7;color:#ad4a54;font-size:9px;font-weight:700}.market-alerts .result-message{padding:10px 0;line-height:1.5}.alert-list{display:grid;gap:8px}.alert-item{display:flex;align-items:center;justify-content:space-between;padding:11px 12px;border:1px solid #f0dfe1;border-radius:9px;background:#fff9f9;color:#8c3945}.alert-item b{font-size:11px}.alert-item strong{font-size:12px;font-variant-numeric:tabular-nums}.broker-panel{margin-top:15px;padding:22px}.broker-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.broker-heading h2{margin:0;font-size:18px;letter-spacing:-.025em}.broker-heading .subheading{margin-top:5px}.chart-controls{display:grid;gap:8px;justify-items:end}.chart-modes,.chart-periods{display:flex;gap:4px;padding:3px;border:1px solid #e1e9ee;border-radius:9px;background:#f6f9fb}.chart-control{min-height:28px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:#718297;font:650 10px inherit;cursor:pointer}.chart-control.selected{background:#e6f5f6;color:#087d8e;box-shadow:0 1px 3px #0d405012}.broker-summary{display:flex;gap:28px;flex-wrap:wrap;margin:20px 0 12px;padding:13px 15px;border:1px solid #e5edf1;border-radius:10px;background:#f8fbfc}.broker-stat small,.broker-stat strong{display:block}.broker-stat small{margin-bottom:6px;color:#8492a2;font-size:9px}.broker-stat strong{color:#1e364c;font-size:13px;font-variant-numeric:tabular-nums}.broker-empty{color:#7c8b9b;font-size:10px}.market-chart{min-height:190px}.market-chart-frame{padding:12px 10px 7px;border:1px solid #e5edf1;border-radius:11px;background:linear-gradient(180deg,#fbfdfe,#fff)}.market-chart-frame svg{display:block;width:100%;height:auto;min-height:160px}.chart-gridline{stroke:#e8eef2;stroke-width:1}.chart-line{fill:none;stroke:#128ca1;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.chart-wick,.chart-tick{stroke-width:1.25}.chart-wick.up,.chart-tick.up{stroke:#158a72}.chart-wick.down,.chart-tick.down{stroke:#c25460}.chart-candle.up{fill:#168d72;stroke:#168d72}.chart-candle.down{fill:#c25460;stroke:#c25460}.broker-panel .source-line{margin-top:10px}.portfolio-grid .positions-panel{border-top:3px solid #1c98a5}.portfolio-grid .form-panel{border-top:3px solid #1f78b5}.portfolio-grid table th{padding-bottom:13px;color:#75869a;font-size:10px}.portfolio-grid table td{padding-top:14px;padding-bottom:14px;font-size:11px}.portfolio-grid .allocation-note{font-size:10px}.form-panel .panel-heading h2{font-size:16px}.date-chip{font-variant-numeric:tabular-nums}.summary-card .metric{font-variant-numeric:tabular-nums}@media(max-width:900px){.market-intelligence-grid{grid-template-columns:1fr}.news-feed{max-height:300px}.broker-heading{flex-direction:column}.chart-controls{width:100%;justify-items:start}.quote-overview{grid-template-columns:minmax(0,1fr) minmax(150px,.55fr)}}@media(max-width:700px){.quote-overview{grid-template-columns:1fr}.quote-sparkline{min-height:75px}.broker-panel{padding:16px 13px}.chart-controls{overflow-x:auto}.chart-control{padding:0 8px}.broker-summary{gap:16px}.market-chart-frame svg{min-height:120px}.market-intelligence-grid{gap:11px}}
.metric-icon svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.placeholder-icon svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.broker-movers{margin-bottom:16px;border-top:3px solid #2195a8}.broker-movers>.panel-heading{margin-bottom:9px}.broker-movers>.panel-heading .source-line{margin:0}.movers-grid{min-height:78px}.mover-cards{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.mover-card{min-width:0;min-height:112px;padding:12px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;border:1px solid #e4edf1;border-radius:10px;background:linear-gradient(155deg,#fff,#f7fbfc);color:#1d3448;text-align:left;cursor:pointer;transition:transform .15s,border-color .15s,box-shadow .15s}.mover-card:hover{transform:translateY(-2px);border-color:#8ccbd1;box-shadow:0 6px 18px #12334310}.mover-card strong{font-size:12px;letter-spacing:.03em}.mover-card small{overflow:hidden;max-width:100%;color:#8592a1;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.mover-card>b{margin-top:auto;font-size:11px;font-variant-numeric:tabular-nums}.mover-class{color:#23899b;font-size:8px;font-weight:800;letter-spacing:.12em}.mover-change{font-size:9px;font-weight:750}.broker-workspace{display:grid;grid-template-columns:minmax(255px,.35fr) minmax(0,1fr);gap:15px;align-items:start}.broker-sidebar{display:grid;gap:14px;position:sticky;top:16px}.broker-search-panel,.broker-watch-panel{padding:17px}.broker-search-panel .panel-heading,.broker-watch-panel .panel-heading{margin-bottom:11px}.broker-search-panel .panel-heading h2,.broker-watch-panel .panel-heading h2{font-size:14px}.broker-tabs{gap:2px;overflow-x:auto;padding:0 0 10px}.broker-tabs .asset-tab{padding:7px 9px;font-size:9px;white-space:nowrap}.broker-search-panel .search-form{grid-template-columns:minmax(0,1fr) auto;margin-top:11px}.broker-search-panel .search-form input{min-width:0;height:39px;font-size:10px}.broker-search-panel .search-form .button-primary{min-width:66px;min-height:39px;padding:0 10px;justify-content:center}.broker-main-column{display:grid;gap:14px;min-width:0}.broker-detail-panel{padding:21px}.broker-detail-panel .quote-card{padding:14px;border-color:#e7eef1;background:#fcfefe}.broker-detail-panel .quote-price{font-size:25px;margin:12px 0}.broker-detail-panel .quote-info{gap:12px 20px;padding:10px 0}.broker-detail-panel .quote-sparkline{min-height:76px}.broker-detail-panel .broker-summary{margin:14px 0 10px}.broker-chart-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.broker-chart-details>div{min-width:0;padding:10px;border:1px solid #e8eef2;border-radius:8px;background:#fbfcfd}.broker-chart-details small,.broker-chart-details strong{display:block}.broker-chart-details small{margin-bottom:6px;color:#8794a2;font-size:8px}.broker-chart-details strong{overflow:hidden;color:#344b60;font-size:10px;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}.chart-axis-label{fill:#8794a2;font-size:10px}.chart-point{fill:#fff;stroke:#147f94;stroke-width:1.5;cursor:crosshair}.chart-volume{margin-top:9px;padding:9px 10px 5px;border:1px solid #e9eef1;border-radius:9px;background:#fbfcfd}.chart-volume svg{display:block;width:100%;height:52px}.volume-title{display:block;margin-bottom:4px;color:#8593a2;font-size:8px}.volume-bar{fill:#7cb5be;opacity:.75}.broker-metrics-panel{padding:15px 19px}.broker-metrics-panel .panel-heading{margin-bottom:6px}.broker-metrics-panel p{max-width:900px}.movement-total{margin:10px 0 3px;padding:10px 11px;border:1px solid #dceaf0;border-radius:8px;background:#f4fafb;color:#244a60;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}.movement-price-note{padding:8px 9px;border-left:2px solid #54aebb;background:#f7fbfc}.help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.help-card{padding:19px 20px;border-top:2px solid #65b8c2}.help-tag{display:inline-block;margin-bottom:12px;color:#328c9a;font-size:8px;font-weight:800;letter-spacing:.12em}.help-card h2{margin:0 0 8px;color:#1d3347;font-size:16px}.help-card p{margin:0;color:#697b8c;font-size:11px;line-height:1.7}.help-glossary{margin-top:14px}.help-glossary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;margin:0}.help-glossary dl>div{padding:12px 0;border-top:1px solid #edf0f3}.help-glossary dt{color:#29465c;font-size:11px;font-weight:750}.help-glossary dd{margin:5px 0 0;color:#708093;font-size:10px;line-height:1.6}
@media(max-width:1180px){.mover-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.broker-workspace{grid-template-columns:minmax(220px,.4fr) minmax(0,1fr)}}
@media(max-width:900px){.broker-workspace{grid-template-columns:1fr}.broker-sidebar{position:static;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.broker-main-column{grid-row:1}.broker-watch-panel{align-self:start}.broker-movers .panel-heading{align-items:flex-start}.broker-movers>.panel-heading .source-line{max-width:160px;text-align:right}}
@media(max-width:700px){.broker-sidebar{grid-template-columns:1fr}.mover-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.broker-detail-panel{padding:15px 12px}.broker-chart-details{grid-template-columns:repeat(2,minmax(0,1fr))}.help-grid,.help-glossary dl{grid-template-columns:1fr}.broker-movers>.panel-heading{flex-direction:column}.broker-movers>.panel-heading .source-line{max-width:none;text-align:left}.broker-tabs{overflow-x:auto}.broker-tabs .asset-tab{flex:0 0 auto}}
.view.active{animation:view-enter .28s cubic-bezier(.2,.7,.25,1)}@keyframes view-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}.nav-item{transition:background .2s ease,color .2s ease,box-shadow .2s ease}.chart-fallback-note{margin:0 0 10px;padding:9px 11px;border-left:2px solid #d4a94f;border-radius:0 7px 7px 0;background:#fbf8ef;color:#806b3d;font-size:10px;line-height:1.5}.dividend-query-prompt{margin:0 0 11px;color:#32485e;font-size:12px;font-weight:650}.dividends-panel .search-form select{height:43px;font-size:12px}.dividends-panel .search-form button:disabled{opacity:.55;cursor:not-allowed}.news-toggle{display:flex;align-items:center;justify-content:center;width:100%;min-height:36px;margin-top:10px;border:1px solid #e0e9ef;border-radius:8px;background:#f8fbfc;color:#177e92;font:650 10px inherit;cursor:pointer;transition:background .18s,border-color .18s}.news-toggle:hover{background:#edf8f8;border-color:#bfe1e5}.news-toggle[hidden]{display:none}.news-item[hidden]{display:none}@media(prefers-reduced-motion:reduce){.view.active,.nav-item,.news-toggle{animation:none;transition:none}}
.dividend-watch-box{margin:0 0 21px;padding:16px;border:1px solid #dcebef;border-radius:10px;background:linear-gradient(135deg,#f6fbfc,#fff)}.dividend-watch-box h2{margin:0;color:#20374b;font-size:15px;letter-spacing:-.02em}.dividend-watch-box>div>p:last-child{margin:7px 0 0;color:#718294;font-size:10px;line-height:1.55}.dividend-watch-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin-top:13px}.dividend-watch-form input{min-width:0}.dividend-watch-form .button-primary{min-width:146px;justify-content:center;gap:8px}.dividend-watch-message{min-height:14px;margin:8px 0 0;color:#748397;font-size:9px;line-height:1.45}.dividend-watch-message.success{color:#18785d}.dividend-watch-message.error{color:#b74c4c}@media(max-width:700px){.dividend-watch-form{grid-template-columns:1fr}.dividend-watch-form .button-primary{width:100%;min-width:0}}
.calendar-assets-list{display:grid;gap:10px}.calendar-asset{overflow:hidden;border:1px solid #e1eaf0;border-radius:10px;background:#fff}.calendar-asset-toggle{width:100%;min-height:48px;padding:12px 15px;display:flex;align-items:center;justify-content:space-between;border:0;background:linear-gradient(100deg,#f5fafb,#fff);color:#1e4056;font-family:inherit;font-size:12px;font-weight:650;text-align:left;cursor:pointer}.calendar-asset-toggle:hover{background:#edf7f8;color:#127d90}.calendar-asset-panel{padding:14px;border-top:1px solid #e7eef1}.calendar-asset-panel[hidden]{display:none}.calendar-section-label{margin:0 0 9px;color:#687b8c;font-size:10px;font-weight:650}.calendar-pages{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.calendar-page-button{min-height:30px;padding:0 10px;border:1px solid #dce7ec;border-radius:7px;background:#fff;color:#526a7a;font-family:inherit;font-size:9px;font-weight:600;cursor:pointer}.calendar-page-button[aria-current="true"]{border-color:#298d9b;background:#edf8f8;color:#147d8d}.portfolio-insights-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:15px;align-items:start}.portfolio-analysis-panel,.profile-panel{min-width:0}.portfolio-analysis-panel>.panel-heading{align-items:center}.portfolio-analysis-panel>.panel-heading .button-primary{min-height:36px;gap:10px}.portfolio-analysis-panel>.data-note,.profile-panel>.data-note{line-height:1.55}.analysis-result{margin-top:14px;padding-top:12px;border-top:1px solid #e9eef2}.analysis-result>.empty-inline{margin:0}.analysis-summary h3,.profile-result-card h3{margin:15px 0 8px;color:#233c50;font-size:13px}.analysis-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.analysis-metric{padding:11px;border:1px solid #e5edf1;border-radius:9px;background:#f8fbfc}.analysis-metric strong,.analysis-metric small{display:block}.analysis-metric strong{color:#203a50;font-size:15px;font-variant-numeric:tabular-nums}.analysis-metric small{margin-top:5px;color:#7d8c9b;font-size:9px}.analysis-ranking{display:grid;gap:6px;margin:0;padding:0;list-style:none}.analysis-ranking li{display:flex;justify-content:space-between;padding:8px 10px;border:1px solid #edf1f3;border-radius:7px;color:#354d60;font-size:10px}.analysis-observation{padding:9px 10px;border-left:2px solid #d1a34d;background:#fbf8ef;color:#76633e;font-size:10px;line-height:1.5}.profile-form{display:grid;grid-template-columns:1fr 1fr;gap:3px 11px;align-items:end}.profile-form .field-label{line-height:1.4}.profile-form .button-primary{grid-column:1/-1;margin-top:10px}.profile-result-card{padding:13px;border:1px solid #dcebef;border-radius:9px;background:linear-gradient(140deg,#f3fafb,#fff)}.profile-result-card .eyebrow{margin:0;color:#308b97}.profile-result-card h3{margin:7px 0}.profile-result-card p:not(.eyebrow){margin:7px 0;color:#566d7e;font-size:10px;line-height:1.6}.profile-result-card small{color:#8493a1;font-size:9px;line-height:1.5}@media(max-width:900px){.portfolio-insights-grid{grid-template-columns:1fr}}@media(max-width:700px){.calendar-asset-panel{padding:10px}.calendar-pages{gap:5px}.calendar-page-button{padding:0 8px}.portfolio-analysis-panel>.panel-heading{align-items:flex-start;flex-direction:column}.portfolio-analysis-panel>.panel-heading .button-primary{width:100%;justify-content:center}.profile-form{grid-template-columns:1fr}.analysis-metrics{grid-template-columns:1fr 1fr}}
.analysis-allocation{margin:15px 0;padding:12px;border:1px solid #e4edf1;border-radius:9px;background:#fbfdfe}.analysis-allocation h3{margin:0 0 12px}.analysis-allocation-content{display:flex;align-items:center;gap:18px}.allocation-pie{width:132px;height:132px;flex:none;border:1px solid #e7edf1;border-radius:50%;box-shadow:inset 0 0 0 1px #fff}.allocation-legend{display:grid;gap:9px;flex:1;margin:0;padding:0;list-style:none}.allocation-legend li{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:8px;color:#526779;font-size:10px}.allocation-legend i{width:9px;height:9px;border-radius:3px}.allocation-legend b{color:#243c50;font-variant-numeric:tabular-nums}.analysis-allocation>.data-note{margin:10px 0 0;line-height:1.45}@media(max-width:480px){.analysis-allocation-content{gap:12px}.allocation-pie{width:105px;height:105px}}
.ibovespa-panel{margin:15px 0;border-top:3px solid #2195a8}.ibovespa-heading{align-items:flex-start;gap:18px}.ibovespa-heading h2{margin:0;font-size:18px}.ibovespa-heading .data-note{margin-top:6px}.ibovespa-controls{display:grid;gap:8px;justify-items:end}.ibovespa-controls .chart-modes,.ibovespa-controls .chart-periods{flex-wrap:wrap}.ibovespa-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0}.ibovespa-stats>div{padding:11px 12px;border:1px solid #e7edf1;border-radius:9px;background:#f9fbfc}.ibovespa-stats small,.ibovespa-stats strong{display:block}.ibovespa-stats small{margin-bottom:6px;color:#8391a1;font-size:9px}.ibovespa-stats strong{color:#203a50;font-size:14px;font-variant-numeric:tabular-nums}.ibovespa-chart .market-chart-frame{padding:10px 9px 6px}.ibovespa-chart .market-chart-frame svg{display:block;width:100%;height:auto;min-height:220px}.ibovespa-panel .chart-volume{margin-top:9px;padding:9px 10px 5px;border:1px solid #e9eef1;border-radius:9px;background:#fbfcfd}.ibovespa-panel .chart-volume svg{display:block;width:100%;height:58px}.ibovespa-panel .source-line{margin-top:10px}@media(max-width:900px){.ibovespa-heading{flex-direction:column}.ibovespa-controls{width:100%;justify-items:start}.ibovespa-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.ibovespa-panel{padding:16px 13px}.ibovespa-controls{overflow-x:auto}.ibovespa-controls .chart-modes,.ibovespa-controls .chart-periods{flex-wrap:nowrap}.ibovespa-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ibovespa-chart .market-chart-frame svg{min-height:160px}}
.fixed-income-panel{margin-top:15px;border-top:3px solid #46a89e}.fixed-income-panel>.data-note{max-width:1000px;line-height:1.55}.fixed-income-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 13px;align-items:end;margin:15px 0}.fixed-income-form input{width:100%}.fixed-income-form>.button-primary{min-height:42px;justify-content:center}.fixed-income-table-wrap{margin-top:14px}.fixed-income-table-wrap th{white-space:nowrap}.fixed-income-table-wrap td{vertical-align:middle}.fixed-income-dates{display:block;margin-top:4px;color:#8090a0;font-size:9px}.fixed-income-panel .text-button{font-size:10px;white-space:nowrap}@media(max-width:700px){.fixed-income-form{grid-template-columns:1fr}.fixed-income-table-wrap{overflow-x:auto}.fixed-income-table-wrap table{min-width:690px}}
.watch-category{display:grid;gap:7px}.watch-category>h3{margin:5px 0 0;padding:0 1px;color:#718297;font-size:9px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.watch-category-items{display:grid;gap:7px}.watch-category .watch-item{padding:9px 10px}.watch-category .watch-item-title{gap:5px}.watch-category .watch-symbol-button{font-size:10px;text-align:left}.watch-category .watch-item-title strong{font-size:11px}.watch-category .watch-item>small{font-size:8px}.sim-treasury-reference{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:5px 12px;align-items:center;padding:11px 12px;border:1px solid #dbe8ee;border-radius:9px;background:#f5fafb}.sim-treasury-reference[hidden]{display:none}.sim-treasury-reference>strong{color:#264a5e;font-size:11px}.sim-treasury-reference>small{grid-column:1;color:#76889a;font-size:9px;line-height:1.5}.sim-treasury-reference>.button-secondary{grid-column:2;grid-row:1/3;white-space:nowrap;font-size:9px}@media(max-width:600px){.sim-treasury-reference{grid-template-columns:1fr}.sim-treasury-reference>small,.sim-treasury-reference>.button-secondary{grid-column:1;grid-row:auto}.sim-treasury-reference>.button-secondary{width:100%;justify-content:center}}

/* Visual system refresh: measured geometry, cool neutrals and restrained motion. */
:root{--ink:#14283b;--muted:#687e91;--line:#dfe7ed;--paper:#f2f6f8;--white:#fff;--navy:#102238;--blue:#187c96;--blue-soft:#eaf5f7;--mint:#a8dfd5;--green:#19836e;--red:#ba5360;font-family:Inter,"Aptos","Segoe UI",system-ui,sans-serif;color-scheme:light}
body{background-color:var(--paper);background-image:radial-gradient(ellipse at 92% 3%,rgba(55,139,159,.08),transparent 30%),linear-gradient(135deg,rgba(20,72,102,.018) 25%,transparent 25%,transparent 75%,rgba(20,72,102,.018) 75%);background-size:auto,48px 48px}
.sidebar{background:linear-gradient(165deg,#142b41 0%,#102238 58%,#0d1b2b 100%);box-shadow:8px 0 28px rgba(10,34,52,.08);overflow:hidden}
.sidebar::before{content:"";position:absolute;z-index:-1;right:-100px;bottom:72px;width:260px;height:260px;border:1px solid rgba(95,184,195,.13);transform:rotate(35deg);border-radius:38px;background:linear-gradient(135deg,rgba(54,136,153,.07),transparent 65%)}
.brand-mark{border:1px solid rgba(129,201,204,.22);border-radius:9px;background:linear-gradient(145deg,#1d3d54,#183047);box-shadow:0 5px 18px rgba(0,0,0,.14)}
.nav-caption{color:#7891a5;letter-spacing:.17em}
.nav-item{position:relative;isolation:isolate;border-radius:9px;transition:background .2s ease,color .2s ease,transform .2s ease}
.nav-item::after{content:"";position:absolute;inset:7px auto 7px 0;width:2px;border-radius:2px;background:#5fc3c0;opacity:0;transform:scaleY(.4);transition:transform .22s ease,opacity .22s ease}
.nav-item:hover{transform:translateX(2px);background:#1b344a;color:#fff}
.nav-item.active{background:linear-gradient(100deg,rgba(56,136,157,.24),rgba(30,61,81,.24));box-shadow:inset 0 0 0 1px rgba(105,181,190,.11)}
.nav-item.active::after{opacity:1;transform:scaleY(1)}
.nav-item.active span{color:#7bd0ce}
.topbar{position:sticky;top:0;z-index:4;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);border-bottom-color:#dbe5eb}
.main-content{max-width:1540px;padding-top:34px}
.page-heading{position:relative;isolation:isolate;min-height:72px;margin-bottom:23px;padding-left:16px}
.page-heading::before{content:"";position:absolute;z-index:-1;left:0;top:2px;width:3px;height:53px;border-radius:4px;background:linear-gradient(180deg,#23a4a4,#247db3)}
.page-heading::after{content:"";position:absolute;z-index:-2;right:2px;top:-14px;width:68px;height:68px;border:1px solid rgba(36,128,151,.09);border-radius:18px;transform:rotate(30deg);box-shadow:16px 16px 0 -15px rgba(36,128,151,.2)}
.eyebrow{color:#278397;letter-spacing:.16em}
.page-heading h1{color:#12293d;letter-spacing:-.04em}
.subheading{color:#6c8091}
.date-chip{border-color:#dce7ec;background:rgba(255,255,255,.78);box-shadow:0 2px 8px rgba(26,61,80,.04)}
.panel,.summary-card{border-color:#dfe8ed;border-radius:14px;box-shadow:0 5px 18px rgba(19,49,67,.045);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.panel:hover{border-color:#d2e1e7;box-shadow:0 9px 24px rgba(19,49,67,.07)}
.panel-heading{padding-bottom:12px;margin-bottom:15px;border-bottom:1px solid #edf2f4}
.panel-heading h2{color:#17334a;font-size:15px;letter-spacing:-.02em}
.summary-card{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(145deg,#fff 0%,#f9fcfd 100%)}
.summary-card::after{content:"";position:absolute;z-index:-1;right:-18px;top:-25px;width:90px;height:90px;border:1px solid rgba(39,131,151,.13);border-radius:21px;transform:rotate(35deg);box-shadow:0 0 0 12px rgba(39,131,151,.025),0 0 0 25px rgba(39,131,151,.018)}
.summary-card.dark-card{background:linear-gradient(130deg,#12334a 0%,#102238 74%,#15384d 100%);border-color:#15364d}
.dark-card::after{border-color:rgba(137,213,211,.18);box-shadow:0 0 0 12px rgba(137,213,211,.035),0 0 0 25px rgba(137,213,211,.02)}
.card-top{color:#5d7385}
.metric{font-variant-numeric:tabular-nums;letter-spacing:-.035em}
.metric-icon{border-radius:9px}
.market-strip{border-color:#d3e5e9;border-radius:10px;background:linear-gradient(100deg,#eaf5f6,#f2f8fa 68%,#f5f8fa)}
.pulse-dot{background:#22a096;box-shadow:0 0 0 4px rgba(34,160,150,.11)}
.button-primary{border-radius:8px;background:linear-gradient(115deg,#147c92,#197f9a);box-shadow:0 3px 9px rgba(23,114,137,.14);transition:background .2s ease,transform .2s ease,box-shadow .2s ease}
.button-primary:hover{background:linear-gradient(115deg,#116d83,#176d86);box-shadow:0 6px 14px rgba(23,114,137,.22);transform:translateY(-1px)}
.button-secondary,.chart-control,.asset-tab,.calendar-page-button{transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.button-secondary:hover,.calendar-page-button:hover{transform:translateY(-1px);box-shadow:0 3px 9px rgba(19,49,67,.07)}
input,select{border-color:#d7e2e8;border-radius:8px;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
input:focus,select:focus{border-color:#4a9cac;box-shadow:0 0 0 3px rgba(36,139,158,.13)}
.asset-tab.selected,.chart-control.selected,.calendar-page-button[aria-current="true"]{border-color:#c2e0e4;background:#eaf5f6;color:#16798b}
table thead{background:linear-gradient(90deg,#f7fafb,#fbfcfd)}
thead th{color:#718596;letter-spacing:.04em;text-transform:uppercase;font-size:8px}
tbody tr{transition:background .15s ease}
tbody tr:hover{background:#f7fbfc}
.quote-card,.simulation-card,.profile-result-card{border-color:#dce7ec;border-radius:12px;box-shadow:0 4px 14px rgba(18,48,66,.035)}

/* Home Broker: market-terminal hierarchy with the Invest AI navy/cyan identity. */
.broker-movers{border-top:3px solid #258fa5;background:linear-gradient(145deg,#fff,#fbfdfe)}
.broker-movers .panel-heading{margin-bottom:13px}
.mover-card{position:relative;overflow:hidden;min-height:122px;padding:13px 14px;border-color:#e2ebf0;border-radius:11px;background:linear-gradient(155deg,#fff 0%,#f7fbfd 100%)}
.mover-card:after{position:absolute;right:-16px;bottom:-25px;width:78px;height:78px;border:1px solid #d7e9ed;border-radius:50%;content:"";pointer-events:none}
.mover-card:hover{border-color:#71bdc7;box-shadow:0 8px 20px #12334312}
.mover-card strong{font-size:13px}
.broker-detail-panel{padding:23px;border-color:#dce7ed;box-shadow:0 10px 30px #132c420b}
.broker-heading{padding-bottom:16px;border-bottom:1px solid #eaf0f3}
.broker-heading h2{font-size:20px;font-weight:680;letter-spacing:-.035em}
.chart-controls{gap:7px}
.chart-modes,.chart-periods{background:#f4f8fa;border-color:#dfe9ed}
.chart-control{min-height:30px}
.chart-control.selected{background:linear-gradient(120deg,#e5f4f6,#eaf3fa);color:#08788b}
.broker-detail-panel .result-area{margin-top:16px}
.broker-detail-panel .quote-card{padding:18px;border:1px solid #dfe9ed;border-left:3px solid #38a5b2;border-radius:11px;background:linear-gradient(125deg,#fff 0%,#fbfdfe 75%,#f5fafb 100%);box-shadow:0 4px 14px #16314b07}
.broker-detail-panel .quote-overview{grid-template-columns:minmax(0,1.2fr) minmax(190px,.8fr);gap:23px}
.broker-detail-panel .quote-title h2{font-size:15px;font-weight:650}
.broker-detail-panel .quote-title .eyebrow{margin-bottom:5px}
.broker-detail-panel .quote-price{margin:10px 0 12px;font-size:31px;font-weight:700;letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.broker-detail-panel .quote-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px 0 0;border-top:1px solid #eaf0f3}
.broker-detail-panel .quote-info>div{min-width:0;padding:8px 9px;border:1px solid #edf1f3;border-radius:8px;background:#fff}
.broker-detail-panel .quote-info small{margin-bottom:5px;font-size:9px}
.broker-detail-panel .quote-info b{overflow-wrap:anywhere;font-size:10px;font-variant-numeric:tabular-nums}
.broker-detail-panel .quote-sparkline{min-height:112px;border-color:#e1ecef;background:linear-gradient(150deg,#eff8f9,#fff)}
.broker-detail-panel .quote-actions{padding-top:12px;border:0}
.broker-detail-panel .source-line{margin-top:12px;padding-top:9px;border-top:1px solid #eaf0f3;font-size:9px}
.broker-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:15px 0 12px;padding:0;border:0;background:transparent}
.broker-stat{padding:12px;border:1px solid #e5edf1;border-radius:9px;background:#f9fbfc}
.broker-stat small{font-size:9px}
.broker-stat strong{font-size:14px}
.market-chart-frame{border-color:#e2ebef;background:linear-gradient(180deg,#fbfdfe,#fff)}
.broker-detail-panel .source-line{color:#738499}
@media(max-width:1100px){.broker-detail-panel .quote-overview{grid-template-columns:minmax(0,1fr) minmax(155px,.7fr)}.broker-detail-panel .quote-info{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.broker-detail-panel{padding:16px 13px}.broker-detail-panel .quote-overview{grid-template-columns:1fr;gap:12px}.broker-detail-panel .quote-sparkline{min-height:82px}.broker-detail-panel .quote-info{grid-template-columns:repeat(2,minmax(0,1fr))}.broker-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.broker-stat{padding:10px}.mover-card{min-height:112px}}
.market-chart-frame{border-color:#dce7ec;border-radius:12px;background:linear-gradient(180deg,#f8fbfc,#fff)}
.chart-gridline{stroke:#e4ecef}
.chart-line{stroke:#168b9d;stroke-width:2.5}
.view.active{animation:professional-tab-enter .32s cubic-bezier(.2,.72,.24,1) both}
@keyframes professional-tab-enter{from{opacity:0;transform:translate3d(0,9px,0);filter:blur(1px)}to{opacity:1;transform:translate3d(0,0,0);filter:blur(0)}}
:focus-visible{outline:3px solid rgba(26,139,158,.35);outline-offset:2px}
@media(max-width:700px){.page-heading{min-height:56px;padding-left:12px}.page-heading::after{width:46px;height:46px;right:3px;top:-6px}.panel-heading{gap:12px}.summary-card::after{width:67px;height:67px;right:-15px;top:-17px}}
@media(prefers-reduced-motion:reduce){*:not(.experience-intro, .experience-intro *),*:not(.experience-intro, .experience-intro *)::before,*:not(.experience-intro, .experience-intro *)::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
/* Information clarity and technical dividend center */
:root{--ink:#102b40;--muted:#5d7488;--line:#d8e3e9;--paper:#f0f5f7;--blue:#087f9c;--blue-soft:#e5f3f6}
.page-heading h1{font-size:clamp(28px,3.2vw,36px);font-weight:720;letter-spacing:-.045em}
.page-heading .subheading{font-size:13px;color:#526d81}
.eyebrow{font-size:9px;color:#087b91;font-weight:850;letter-spacing:.17em}
.panel-heading h2,.help-card h2,.help-glossary h2{font-size:16px;color:#102f47}
.panel-heading{border-bottom-color:#e5edf1}
.summary-card{min-height:126px;border-top:2px solid #d3e7eb}
.summary-card.dark-card{border-top-color:#38a5b1}
.summary-card .card-top{font-size:11px;color:#506b80}
.summary-card small{font-size:10px;color:#637b8e}
.summary-card .metric{font-size:27px;font-weight:730;color:#112f47}
.summary-card.dark-card .metric{color:#fff}
.market-strip{border-left:3px solid #128c9e}
.data-note,.field-hint{color:#5e7487;font-size:10px}
.source-line{color:#637c8e;font-size:9px}
.panel{box-shadow:0 6px 20px rgba(18,48,66,.055)}
.table-wrap th{color:#587287;font-size:9px;font-weight:750}
.table-wrap td{color:#38546a;font-size:11px}
.chart-control,.asset-tab,.button-secondary{color:#37596f}
.chart-control.selected{color:#08798f;font-weight:750;box-shadow:0 2px 6px rgba(8,127,156,.1)}
.help-card{position:relative;overflow:hidden;border-top:3px solid #248da0;background:linear-gradient(145deg,#fff 0%,#fbfdfe 100%)}
.help-card::after{content:"";position:absolute;right:-23px;bottom:-31px;width:76px;height:76px;border:1px solid rgba(22,130,151,.12);border-radius:18px;transform:rotate(35deg);pointer-events:none}
.help-tag{padding:4px 7px;border:1px solid #d5eaed;border-radius:20px;background:#eff8f9;color:#147b8c;font-size:8px;letter-spacing:.1em}
.help-card p,.help-glossary dd{position:relative;z-index:1;color:#4f697c;font-size:11px;line-height:1.7}
.help-glossary{border-top:3px solid #557c9a}
.help-glossary dt{color:#18394f;font-size:11px;font-weight:760}
.dividends-panel{border-top:3px solid #15899c}
.dividend-watch-box{border-color:#cfe4e9;background:linear-gradient(110deg,#e9f5f6,#f8fbfc 74%,#fff)}
.dividend-watch-box h2,.calendar-toolbar h2{color:#14374e;font-size:17px}
.dividend-load-status{margin:12px 0;color:#375f73;font-size:11px;font-weight:650}
.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:20px 0 10px;padding:13px 14px;border:1px solid #dce8ed;border-radius:10px;background:linear-gradient(110deg,#f2f8fa,#fff)}
.calendar-toolbar h2{margin:0}
.calendar-toolbar .eyebrow{margin-bottom:5px}
.calendar-toolbar .button-secondary{flex:none}
.dividend-annual-panel{position:relative;overflow:hidden;margin:14px 0 20px;padding:18px;border:1px solid #d3e5e9;border-radius:12px;background:linear-gradient(135deg,#f7fbfc,#fff 70%);box-shadow:inset 3px 0 #18899d,0 5px 16px rgba(19,49,67,.035)}
.dividend-annual-panel::after{content:"";position:absolute;right:-24px;top:-52px;width:156px;height:156px;border:1px solid rgba(24,137,157,.12);border-radius:30px;transform:rotate(35deg);pointer-events:none}
.dividend-annual-heading{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:8px}
.dividend-annual-heading h2{margin:0;color:#14374e;font-size:17px}
.dividend-annual-heading .data-note{margin-top:6px}
.dividend-annual-heading>strong{padding:10px 13px;border:1px solid #cde4e7;border-radius:9px;background:#edf7f7;color:#126c78;font-size:13px;text-align:right;font-variant-numeric:tabular-nums}
.dividend-annual-chart{min-height:170px;padding:8px 4px;border:1px solid #e0eaee;border-radius:10px;background:rgba(255,255,255,.8)}
.dividend-annual-chart svg{display:block;width:100%;height:auto;min-height:170px}
.dividend-bar{fill:#d9e8ec;transition:fill .2s ease}
.dividend-bar.has-value{fill:#178ca0}
.dividend-bar.has-value:hover{fill:#0e6e86}
.dividend-bar-label{fill:#31576c;font-size:9px;font-weight:700}
.dividend-upcoming-events{margin-top:11px}
.dividend-upcoming-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dividend-upcoming-item{position:relative;display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:11px 12px;border:1px solid #e0e9ed;border-radius:9px;background:#fff}
.dividend-upcoming-item strong{color:#173d53;font-size:11px}
.dividend-upcoming-item>span{grid-column:1/-1;color:#586f80;font-size:10px}
.dividend-upcoming-item>b{grid-column:2;grid-row:1;color:#137c81;font-size:12px;font-variant-numeric:tabular-nums}
.dividend-upcoming-item small{grid-column:1/-1;color:#6a8293;font-size:9px}
.dividend-upcoming-item.dividend-coverage-warning{border-color:#ecd9b6;border-left:3px solid #bd842e;background:#fffaf1}
.dividend-upcoming-item.dividend-coverage-warning strong{color:#805a20}
.dividend-upcoming-item.dividend-coverage-warning>span{color:#735d3b}
.dividend-upcoming-item.dividend-coverage-warning small{color:#826f50}
.calendar-assets-list{gap:9px}
.calendar-asset{border-color:#d8e5e9;border-radius:10px;box-shadow:0 3px 10px rgba(19,49,67,.025)}
.calendar-asset-toggle{min-height:53px;padding:13px 16px;background:linear-gradient(100deg,#edf6f7,#fbfdfe);color:#183f55;font-size:12px;font-weight:750}
.calendar-asset-toggle::after{content:"EVENTOS";margin-left:auto;margin-right:10px;padding:4px 7px;border:1px solid #d6e7e9;border-radius:5px;background:#fff;color:#557486;font-size:8px;letter-spacing:.08em}
.calendar-asset-panel{background:#fff}
.calendar-section-label{color:#36586c;font-size:10px;font-weight:700}
.dividends-panel table th{padding:10px 8px;background:#f1f7f8;color:#456479;text-align:left;white-space:normal}
.dividends-panel table td{min-width:95px;text-align:left;white-space:normal}
.dividends-panel table th:first-child,.dividends-panel table td:first-child{padding-left:9px}
.dividend-query-prompt{padding:11px 13px;border-left:3px solid #15899c;border-radius:0 8px 8px 0;background:#edf6f7;color:#20465d;font-size:12px}
.dividends-panel .search-form{padding:12px;border:1px solid #dbe7eb;border-radius:10px;background:#f8fbfc}
.dividends-panel .search-form select{border-color:#c8dbe2;background:#fff;font-size:12px}
@media(max-width:700px){.calendar-toolbar{align-items:flex-start;flex-direction:column}.calendar-toolbar .button-secondary{width:100%;justify-content:center}.dividend-annual-panel{padding:13px}.dividend-annual-heading{flex-direction:column}.dividend-annual-heading>strong{width:100%;text-align:left}.dividend-upcoming-list{grid-template-columns:1fr}.dividends-panel table{min-width:690px}.dividend-annual-chart svg{min-height:140px}}.dividend-upcoming-item.pending{border-left:3px solid #c18a35;background:#fffdfa}
.dividend-upcoming-item.pending>b{color:#9a6a1f}
.dividend-load-status{min-height:16px}
.calendar-asset-toggle[aria-expanded="true"]{background:linear-gradient(100deg,#e4f1f3,#f4f9fa);color:#0d6e83}
.dividend-add-form{margin:10px 0 3px;padding:12px;border:1px solid #dbe7eb;border-radius:10px;background:#f8fbfc}
.dividend-add-form input{min-width:0;flex:1;border:1px solid #c8dbe2;border-radius:7px;padding:10px 12px;background:#fff;color:var(--ink);font:inherit;font-size:11px;outline:none}
.dividend-add-form input:focus{border-color:#54a6b1;box-shadow:0 0 0 3px rgba(40,143,158,.12)}
.dividend-add-form .button-primary{flex:none}
#dividend-add-status{min-height:12px;margin:6px 0 10px;font-size:10px}
.calendar-remove-button{justify-self:start;margin:0 12px 10px;padding:5px 8px;border:1px solid #e5d7d1;border-radius:6px;background:#fff;color:#8b5e50;font:inherit;font-size:9px;cursor:pointer}
.calendar-remove-button:hover{border-color:#d6b3a5;background:#fff8f5}
@media(max-width:700px){.dividend-add-form{display:grid;grid-template-columns:1fr}.dividend-add-form .button-primary{width:100%;justify-content:center}}

.assistant-widget{position:fixed;right:24px;bottom:22px;z-index:50;display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.assistant-fab{min-height:46px;display:flex;align-items:center;gap:9px;padding:6px 15px 6px 7px;border:1px solid #0a6278;border-radius:24px;background:linear-gradient(135deg,#0b405b,#087f91);color:#fff;font-family:inherit;font-size:11px;font-weight:700;box-shadow:0 8px 24px rgba(8,56,75,.25);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.assistant-fab:hover{transform:translateY(-2px);box-shadow:0 11px 28px rgba(8,56,75,.3)}
.assistant-fab-mark{width:32px;height:32px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(255,255,255,.12);font-size:10px;letter-spacing:.04em}
.assistant-fab.is-open{background:#183f55}
.assistant-drawer{width:min(470px,calc(100vw - 30px));max-height:min(690px,calc(100vh - 105px));overflow:auto;padding:0;border:1px solid #cddfe4;border-radius:14px;background:#f8fbfc;box-shadow:0 18px 54px rgba(13,45,63,.27);animation:assistantDrawerIn .18s ease-out}
.assistant-drawer[hidden]{display:none}
.assistant-drawer .assistant-panel{max-width:none;margin:0;border:0;padding:17px}
.assistant-drawer .assistant-transcript{max-height:260px;min-height:150px}
.assistant-drawer .assistant-intro{padding-top:0}
.assistant-drawer .assistant-examples{margin:10px 0}
.assistant-drawer .disclaimer{margin-top:10px}
.dividend-news-panel{margin:18px 0;border-top:3px solid #758da2}
.dividend-news-panel .panel-heading{margin-bottom:4px}
.dividend-news-mentions{display:grid;gap:8px}
.dividend-mention-item{display:grid;gap:5px;border-left:3px solid #bd893e;background:#fffdf8}
.dividend-mention-item>strong{color:#886221;font-size:10px}
.dividend-mention-item>a{color:#254d63;font-size:11px;font-weight:700;line-height:1.5;text-decoration:none}
.dividend-mention-item>a:hover{text-decoration:underline}
.dividend-mention-item>p{margin:0;color:#786849;font-size:9px;line-height:1.55}
.dividend-mention-item>small{color:#788795;font-size:8px}
@keyframes assistantDrawerIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.assistant-widget{right:12px;bottom:12px}.assistant-drawer{width:calc(100vw - 24px);max-height:calc(100vh - 80px)}.assistant-drawer .assistant-panel{padding:13px 10px}.assistant-fab{min-height:44px}}

.assistant-panel{max-width:980px;padding:24px;border-top:3px solid #278f9e}
.assistant-intro{display:flex;align-items:center;gap:13px;padding:4px 0 16px;border-bottom:1px solid #e9eff2}
.assistant-mark{width:42px;height:42px;display:grid;place-items:center;border:1px solid #cce2e4;border-radius:12px;background:linear-gradient(145deg,#edf8f8,#f8fbfc);color:#147e8d;font-size:12px;font-weight:800;letter-spacing:.04em}
.assistant-intro h2{margin:0;color:#203b50;font-size:16px}
.assistant-intro p{margin:5px 0 0;color:#748697;font-size:10px;line-height:1.5}
.assistant-examples{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}
.assistant-examples button{min-height:31px;padding:0 10px;border:1px solid #dce8eb;border-radius:7px;background:#fbfdfd;color:#406273;font:600 9px inherit;cursor:pointer}
.assistant-examples button:hover{border-color:#9ccbd0;background:#f1f9f9;color:#147e8d}
.assistant-transcript{max-height:460px;min-height:188px;overflow-y:auto;display:grid;align-content:start;gap:10px;padding:14px;border:1px solid #e5edf0;border-radius:10px;background:#f8fbfc}
.assistant-empty{min-height:155px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:#7c8c9b}
.assistant-empty b{color:#40586c;font-size:12px}
.assistant-empty span{max-width:420px;font-size:10px;line-height:1.6}
.assistant-message{max-width:88%;padding:11px 13px;border:1px solid #e1eaf0;border-radius:10px;background:white;box-shadow:0 2px 8px rgba(16,44,63,.025)}
.assistant-message.assistant{animation:assistantReplyIn .24s cubic-bezier(.2,.7,.25,1) both}
#assistant-correction-list{display:grid;gap:10px;list-style:none;padding:0;min-width:0}
#assistant-correction-list li{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}
#assistant-correction-list p{margin:0}
.assistant-message.user{justify-self:end;border-color:#d7e9e9;background:#eff8f8}
.assistant-message>small:first-child{color:#438c96;font-size:8px;font-weight:800;letter-spacing:.1em}
.assistant-message p{margin:6px 0 0;color:#344d61;font-size:11px;line-height:1.7;white-space:pre-wrap}
.assistant-message.error{border-color:#efd6d6;background:#fff9f9}
.assistant-message.error p{color:#a44949}
.assistant-message .assistant-sources{display:block;margin-top:9px;padding-top:8px;border-top:1px solid #edf1f3;color:#788898;font-size:8px;line-height:1.5}
.assistant-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:13px}
.assistant-form textarea{width:100%;min-height:70px;resize:vertical;border:1px solid #dce5eb;border-radius:8px;padding:11px 12px;background:white;color:var(--ink);font:inherit;font-size:11px;line-height:1.5;outline:none}
.assistant-form textarea:focus{border-color:#54a6b1;box-shadow:0 0 0 3px rgba(40,143,158,.12)}
.assistant-form .button-primary{min-width:124px;justify-content:center;gap:15px}
.assistant-panel>.form-message{min-height:14px;margin:8px 0 0}
@media(max-width:700px){.assistant-panel{padding:16px 12px}.assistant-form{grid-template-columns:1fr}.assistant-form .button-primary{width:100%;justify-content:center}.assistant-message{max-width:100%}.assistant-examples{display:grid;grid-template-columns:1fr}.assistant-examples button{text-align:left}}
@keyframes assistantReplyIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.assistant-examples button{transition:none}.assistant-message.assistant{animation:none}}
.dollar-panel{margin:15px 0;border-top:3px solid #4c8db7}.dollar-panel>.data-note{margin:4px 0 0}.dollar-overview{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(130px,.7fr));gap:10px;margin:15px 0}.dollar-primary,.dollar-stat{min-width:0;padding:14px 15px;border:1px solid #e4edf1;border-radius:10px;background:linear-gradient(145deg,#fbfdfe,#f6fafc)}.dollar-primary small,.dollar-primary strong,.dollar-stat small,.dollar-stat strong{display:block}.dollar-primary small,.dollar-stat small{margin-bottom:7px;color:#8492a0;font-size:9px}.dollar-primary strong{color:#1d3e55;font-size:27px;font-variant-numeric:tabular-nums}.dollar-stat strong{color:#334c60;font-size:13px;font-variant-numeric:tabular-nums}.dollar-change{display:block;margin-top:7px;color:#718294;font-size:9px;line-height:1.5}.dollar-change.positive{color:#237b5a}.dollar-change.negative,.dollar-change.error{color:#b1474a}.dollar-panel .source-line{margin-top:3px}.dollar-panel .source-line a{color:#327d91;text-decoration:none}.dollar-panel .source-line a:hover{text-decoration:underline}@media(max-width:600px){.dollar-panel{padding:16px 13px}.dollar-panel>.panel-heading{align-items:flex-start;gap:9px}.dollar-overview{grid-template-columns:1fr 1fr}.dollar-primary{grid-column:1/-1}.dollar-primary strong{font-size:24px}}
.dollar-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:22px 0 8px;padding-top:16px;border-top:1px solid #edf0f4}.dollar-chart-heading h3{margin:0;color:#233c52;font-size:14px}.dollar-chart-heading .eyebrow{margin:0 0 4px}.dollar-chart-stats{display:flex;align-items:baseline;gap:10px;margin:7px 0;color:#75869a}.dollar-chart-stats strong{color:#258064;font-size:13px}.dollar-chart-stats span{font-size:9px}.dollar-chart .market-chart-frame{padding:7px 9px 5px}.dollar-chart .market-chart-frame svg{display:block;width:100%;height:auto;min-height:180px}.dollar-chart-line{fill:none;stroke:#3488a3;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}.dollar-chart-point{fill:#fff;stroke:#3488a3;stroke-width:1.8}.dollar-chart .chart-axis-label{font-size:12px;fill:#8795a5}@media(max-width:600px){.dollar-chart-heading{align-items:flex-start;flex-direction:column}.dollar-chart-heading .chart-periods{width:100%;overflow-x:auto}.dollar-chart .market-chart-frame svg{min-height:150px}}
/* Tema escuro Invest AI: azul-marinho, superfícies profundas e ciano controlado. */
:root{color-scheme:dark;--ink:#e8f0f7;--muted:#a3b3c3;--line:#293d52;--paper:#081421;--white:#112235;--navy:#0a1729;--blue:#1aa8c1;--blue-soft:#163849;--mint:#73e0d1;--green:#43c99b;--red:#f0787e;--cyan:#36c2d4}
body{background:radial-gradient(ellipse at 76% -8%,#12324a 0%,#0b1b2c 36%,#081421 76%);color:var(--ink)}
.sidebar{background:linear-gradient(180deg,#071321 0%,#0b1c2e 58%,#091725 100%);border-right:1px solid #20384d;box-shadow:10px 0 32px #02091266}
.brand b,.mobile-brand b{color:#43c6d5}.brand-mark{background:#123044;color:#76e0d2}
.nav-item:hover,.nav-item.active{background:#142c40;color:#f4fbff}.nav-item.active{box-shadow:inset 3px 0 #38c0d2}.nav-item.active span{color:#54ccdc}
.app-shell{background:transparent}.topbar{background:#0d1c2ced;border-color:#263b4e}.live-status{color:#a2b2c2}.top-avatar,.user-avatar{background:#18364a;color:#b7ecf0}
.main-content :is(h1,h2,h3,h4,p,small,span,label,strong,b,td,th,summary,a){color:var(--ink)}
.main-content :is(.eyebrow,.subheading,.data-note,.source-line,.field-hint,.allocation-note,.card-top,.summary-card>small,.quick-action small,.quote-info small,.quote-info b,.simulation-card>p,.empty-inline,.chart-axis-label,.chart-labels,.field-label,.live-status,.form-message,.result-message,.broker-stat small,.assistant-intro p,.assistant-sources,.calendar-note,.market-note){color:#a4b5c6}
.main-content .eyebrow{color:#52bfce}.main-content a{color:#54c8d7}.main-content .source-line a{color:#63cdd9}
.panel,.summary-card,.quote-card,.simulation-card,.assistant-panel,.assistant-drawer,.watch-item,.broker-quote-card,.asset-card,.calendar-card,.event-card,.news-item,.news-card,.alert-card,.analysis-card,.result-card{background:#102235;border-color:#293e52;color:var(--ink);box-shadow:0 8px 26px #020a132e}
.dark-card{background:linear-gradient(145deg,#0c2034,#102b40);border-color:#20455c;color:#f1f7fb}.dark-card .card-top,.dark-card small{color:#a9bdce}.dark-card .metric{color:#f1f7fb}
.card-top,.quick-action,.positions-panel td,.table-wrap td{color:#c1cfdb}.metric,.panel-heading h2,.page-heading h1,.quote-title h2,.simulation-headline strong,.dollar-primary strong,.dollar-stat strong{color:#f1f7fb}
.market-strip,.disclaimer,.market-help,.placeholder-card,.result-area>.placeholder-card{background:#10263a;border-color:#29445b;color:#c1cfdb}.market-strip strong{color:#d9e5ef}.market-strip>div{color:#a9bbca}.market-strip .pulse-dot{background:#44c5ab;box-shadow:0 0 0 4px #44c5ab20}
.quick-action{background:#102235;border-top-color:#263b4e;color:#b8c9d8}.quick-action b{color:#e6f0f7}.quick-action small{color:#a2b3c2}.quick-action>span:last-child{color:#50c4d2}.quick-icon,.asset-icon,.light-icon,.placeholder-icon{background:#173247;color:#63c7d4}
.table-wrap table{color:#d6e1ea}th{color:#9fb0c0}td{border-top-color:#293c4f;color:#b9c8d5}td:first-child{color:#edf5fa}.asset-icon{background:#173549;color:#76d4df}.empty-state{color:#a0b2c2}.allocation-note{color:#d6b873}
input,select,.assistant-form textarea{background:#0c1d2e;border-color:#31495e;color:#ecf3f8}input::placeholder,textarea::placeholder{color:#8296a8}input:focus,select:focus,.assistant-form textarea:focus{border-color:#42bdcf;box-shadow:0 0 0 3px #42bdcf24}
.button-primary,.button-primary span{background:linear-gradient(120deg,#168da9,#20aebb);color:#f5feff;box-shadow:0 5px 16px #0b9fb522}.button-primary:hover{background:linear-gradient(120deg,#137e9a,#1597a6)}
.button-secondary,.icon-button{background:#132d40;border-color:#2c5366;color:#74d0dc}.button-secondary:hover,.icon-button:hover{background:#18394e}.text-button{color:#66cbd7}
.asset-tabs,.asset-tabs+*{border-color:#2a3d50}.asset-tab{color:#a7b6c4}.asset-tab.selected{border-color:#28697a;background:#123446;color:#73d4df}.asset-tab.unavailable{color:#77899a}
.quote-card,.simulation-card,.watch-item{background:linear-gradient(145deg,#12283b,#0e2031);border-color:#2a4156}.quote-info{border-color:#2b4053}.quote-info small{color:#9fb0bf}.quote-info b{color:#d0dce5}.source-line{color:#9aabba}.data-note,.field-hint{color:#a0b1c0}.form-message.error,.result-message.error,.assistant-message.error p{color:#ff999d}.form-message.success{color:#64d8ac}.result-message{color:#c0cdd8}
.asset-tab,.chart-control,.chart-periods .chart-control,.chart-modes .chart-control{background:#10263a;border-color:#2b455a;color:#aebdca}.chart-control.selected,.chart-control:hover{background:#15394b;border-color:#287386;color:#73d5df}
.market-chart-frame,.simulation-chart,.chart-volume,.ibovespa-panel .chart-volume,.dollar-primary,.dollar-stat,.broker-chart-details>div,.assistant-transcript,.assistant-intro,.assistant-mark,.assistant-examples button,.assistant-message,.assistant-message.user,.market-help,.treasury-quick,.calendar-toolbar,.dividend-annual-panel,.dividend-news-mentions{background:#0d2031;border-color:#293f53;color:#dbe6ed}
.chart-gridline{stroke:#2a4054}.chart-axis-label{fill:#a2b4c3}.chart-line{stroke:#38bfd0}.chart-point{fill:#12283b;stroke:#5bcbd7}.chart-wick{stroke:#83a4b3}.chart-candle.up{fill:#41c69d;stroke:#41c69d}.chart-candle.down{fill:#eb7078;stroke:#eb7078}.chart-tick{stroke:#9cb2c1}.volume-bar{fill:#247e91}.chart-labels{color:#9dabb8}.dollar-chart-line{stroke:#46c4d1}.dollar-chart-point{fill:#112235;stroke:#69d4de}
.positive,.gain,.dollar-change.positive{color:#55d4a3}.negative,.loss,.dollar-change.negative{color:#ff888e}.dollar-change.error{color:#ff969c}.dollar-overview .dollar-primary,.dollar-overview .dollar-stat{background:linear-gradient(145deg,#122a3e,#0e2030);border-color:#2c4659}.dollar-primary small,.dollar-stat small{color:#a1b2c0}.dollar-primary strong,.dollar-stat strong{color:#ecf6fa}.dollar-chart-stats strong{color:#58d3aa}
.assistant-panel{background:#102235;border-color:#2a4155}.assistant-intro{border-color:#2a4052}.assistant-mark{background:#15364a;border-color:#2b6472;color:#70d4df}.assistant-intro h2{color:#e8f3f8}.assistant-intro p{color:#a5b5c2}.assistant-examples button{background:#122a3d;border-color:#2a4a5d;color:#bed0db}.assistant-examples button:hover{background:#17384b;border-color:#3a8897;color:#78d8e0}.assistant-transcript{background:#0a1a29;border-color:#2a4154}.assistant-empty,.assistant-empty span{color:#a5b5c2}.assistant-empty b{color:#e2edf4}.assistant-message{background:#12283a;border-color:#2b4256}.assistant-message.user{background:#163545;border-color:#286276}.assistant-message>small:first-child{color:#61c8d2}.assistant-message p{color:#dbe6ed}.assistant-message .assistant-sources{border-color:#293f51;color:#a4b3c1}
.market-help summary,.source-pill{color:#80cbd4}.source-pill{background:#122a3b;border-color:#2c4859}.source-pill i{background:#48c8a1}.section-divider{background:#293e51}.news-item,.news-card,.watch-item,.dividend-mention-item{background:#112638;border-color:#2a4054}.dividend-mention-item>strong{color:#dfbf7d}.dividend-mention-item>a{color:#c5e0e8}.dividend-mention-item>p,.dividend-mention-item>small{color:#abb8c1}
@media(prefers-reduced-motion:reduce){.view{animation:none}}
/* Cartões funcionais das áreas de carteira, simulador, proventos e ajuda. */
.main-content :is(.analysis-result,.portfolio-analysis-panel,.profile-panel,.fixed-income-panel,.sim-treasury-reference,.help-card,.help-glossary,.help-tag,.broker-empty,.broker-main-column,.broker-sidebar,.broker-search-panel,.broker-metrics-panel,.broker-detail-panel,.broker-watch-panel,.broker-movers,.dividend-watch-box,.dividend-annual-panel,.dividend-upcoming-events,.dividend-news-panel,.dividend-calendar,.dividend-query-prompt,.dividend-load-status,.movement-total){background:#102235;border-color:#293f53;color:#dce7ef}
.main-content :is(.analysis-result,.help-card,.help-glossary,.help-tag,.broker-empty,.broker-metric,.broker-detail,.dividend-upcoming-event,.dividend-calendar-item,.calendar-event,.fixed-income-item,.profile-result){box-shadow:0 6px 20px #020a1328}
.main-content .button-primary span{background:transparent;color:#f5feff}
.main-content :is(.watch-remove,.chart-legend,.simulation-units,.alert-threshold,.help-tag,.source-pill){color:#82cbd5}
.main-content :is(.chart-gridline,.section-divider,.quote-info,.quote-actions,.assistant-intro){border-color:#2a4054}
/* Reforço de superfícies para separar cartões e painéis do fundo escuro. */
.view .panel{background-color:#12283c;border-color:#304a61;box-shadow:0 10px 28px #0209124d}
.view .summary-card:not(.dark-card){background:linear-gradient(145deg,#18334a 0%,#142a3e 100%);border-color:#38566f;box-shadow:0 9px 24px #02091259,inset 0 1px #ffffff08}
.view .summary-card:not(.dark-card) .metric{color:#f4f9fc;text-shadow:0 1px 8px #06111d80}
.view .summary-card:not(.dark-card) .card-top{color:#c0ceda}
.view .summary-card:not(.dark-card)>small{color:#aebdca}
.view .summary-card.dark-card{background:linear-gradient(145deg,#123b50 0%,#102b41 100%);border-color:#286177;box-shadow:0 9px 26px #02091266,inset 0 1px #ffffff0a}
.view .date-chip{background:#142b40;border-color:#30495e;color:#c1d0dc}
.view :is(.quick-panel,.positions-panel,.watchlist-panel,.market-panel,.simulator-panel,.dividends-panel,.assistant-panel,.profile-panel,.fixed-income-panel,.portfolio-analysis-panel,.help-card,.help-glossary){background:#12283c;border-color:#304a61}
.view :is(.watch-item,.broker-detail-panel,.broker-metrics-panel,.broker-search-panel,.broker-watch-panel,.analysis-result,.dividend-annual-panel,.dividend-news-panel,.help-card,.help-glossary,.fixed-income-panel){background:#172f44;border-color:#38536a}
.view :is(.quick-action,.asset-card,.analysis-result,.help-card,.help-glossary,.watch-item,.broker-empty,.broker-metric,.broker-detail,.dividend-upcoming-event,.dividend-calendar-item,.calendar-event,.fixed-income-item,.profile-result){background-color:#172f44;border-color:#38536a}

/* High contrast for the Help glossary and learning cards in the dark theme. */
.view .help-card h2,.view .help-glossary h2{color:#f1f7fb}
.view .help-card p,.view .help-glossary dd{color:#bdcbd7}
.view .help-glossary dt{color:#e5f0f6}
.view .help-glossary dl>div{border-top-color:#38536a}
.view .help-tag{background:#12384b;border-color:#326477;color:#8ce0e5}
.view .quick-action:hover,.view .watch-item:hover{background:#1b3a51}
.view .panel-heading h2,.view .page-heading h1{color:#f4f8fb}
/* Acabamento escuro das áreas de gráfico, tabelas e controles que ainda tinham fundos claros. */
.view .chart-modes,.view .chart-periods,.view .chart-controls{background:#0d2031;border:1px solid #2a4054;border-radius:9px;padding:3px}
.view .ibovespa-controls .chart-control,.view .chart-modes .chart-control,.view .chart-periods .chart-control{background:#142a3e;border-color:#345168;color:#b6c6d3}
.view .ibovespa-controls .chart-control.selected,.view .chart-modes .chart-control.selected,.view .chart-periods .chart-control.selected{background:#164256;border-color:#3aa5b6;color:#8ae1e6;box-shadow:inset 0 0 0 1px #54c6d21f}
.view .ibovespa-controls .chart-control:hover,.view .chart-modes .chart-control:hover,.view .chart-periods .chart-control:hover{background:#193c51;border-color:#3b8798;color:#9be8eb}
#ibovespa-stats>div{background:#152c40;border-color:#304a60;box-shadow:inset 0 1px #ffffff08}
#ibovespa-chart,#dollar-chart{background:#0c1d2d;border:1px solid #293f53;border-radius:11px;padding:8px}
#ibovespa-chart .market-chart-frame,#dollar-chart .market-chart-frame,.ibovespa-chart .market-chart-frame,.dollar-chart .market-chart-frame,.market-chart-frame{background:#0c1d2d;border-color:#2b4154;box-shadow:none}
#ibovespa-volume,.ibovespa-panel .chart-volume,.chart-volume{background:#10263a;border-color:#2b4358}
.view table thead{background:#13283b}.view table th{background:transparent;color:#a9bbc9}.view table td{background:transparent;color:#c5d1db;border-color:#2a4054}
.view .chart-fallback-note{background:#332d1f;border-color:#60533a;color:#e3cea0}
.view :is(.quote-sparkline,.broker-summary,.broker-stat,.broker-detail-panel .quote-card,.broker-detail-panel .quote-info>div,.broker-detail-panel .quote-sparkline,.mover-card,.broker-movers,.treasury-quick button,.calendar-page-button,.calendar-remove-button,.profile-result-card){background:#172e42;border-color:#385168;color:#dce7ef}
.view :is(.calendar-asset,.calendar-asset-panel,.calendar-asset-toggle,.calendar-asset-toggle::after,.dividend-annual-chart,.dividend-upcoming-item,.dividend-upcoming-item.pending,.dividend-add-form,.dividends-panel .search-form,.dividends-panel .search-form select,.dividends-panel table th,.dividend-mention-item){background:#142a3d;border-color:#30495e;color:#dce7ef}
.view .calendar-asset-toggle[aria-expanded="true"]{background:#174054;color:#91e2e6}
.view .calendar-asset-toggle::after{background:#1a3649;color:#a9cbd2}
.view .dividend-upcoming-item.dividend-coverage-warning{background:#342c1e;border-color:#705c35;color:#e5d2a4}
.view .dividend-mention-item{border-left-color:#a17e44}.view .dividend-mention-item>a{color:#bfe5e9}.view .dividend-mention-item>p{color:#d1c29d}
.view .dividends-panel .search-form input,.view .dividends-panel .search-form select,.view .dividend-add-form input,.view .treasury-quick button,.view .calendar-remove-button{background:#0c1d2d;color:#e8f0f7;border-color:#334d62}
.view .calendar-remove-button:hover{background:#332521;border-color:#79564d}
/* Últimos estados e cartões com fundos claros nos módulos de carteira e assistência. */
.topbar{background:#0d1c2c;border-color:#2b4054}
.view :is(.alert-item,.alert-threshold){background:#321f27;border-color:#61333a;color:#ffc0c2}
.view :is(.movement-total,.movement-price-note,.news-toggle,.analysis-metric,.analysis-observation,.analysis-allocation,.sim-treasury-reference,.analysis-result,.portfolio-insights-grid>div,.broker-stat,.broker-chart-details>div){background:#172e42;border-color:#385168;color:#dce7ef}
.view .analysis-observation,.view .chart-fallback-note{background:#332d1f;border-color:#635238;color:#e7d5a8}
.view tbody tr:hover{background:#173248}
.view .news-toggle{background:#142a3d;border-color:#345064;color:#91d9df}
.assistant-drawer{background:#102235;border-color:#30495e}
.assistant-message.error{background:#321f27;border-color:#69363c}
.assistant-form textarea{background:#0c1d2e;border-color:#31495e;color:#ecf3f8}
.view .analysis-result :is(h2,h3,strong,b),.view .analysis-metric strong,.view .movement-total strong{color:#eff6fa}
.view .analysis-result :is(small,p),.view .movement-price-note,.view .watchlist-note{color:#aebdca}
/* Proventos: superfícies internas específicas, incluindo o fundo do gráfico mensal. */
#dividend-annual-chart{background:#0c1d2d;border:1px solid #30495e;border-radius:10px;box-shadow:inset 0 1px #ffffff08}
#dividend-annual-chart .empty-inline{color:#aebdca}
.view .dividend-annual-panel{background:#12283c;border-color:#385168;color:#dce7ef}
.view .dividend-annual-heading h2{color:#f1f7fb}
.view .dividend-annual-heading .eyebrow,.view .dividend-annual-heading .data-note,.view .dividend-annual-panel>.source-line{color:#b6c6d3}
.view .dividend-annual-heading>strong{background:#15364a;border-color:#326477;color:#8ce0e5}
.view #dividend-annual-chart{background:#0c1d2d;border-color:#30495e}
#dividend-annual-chart .chart-gridline{stroke:#2a4054}
#dividend-annual-chart .chart-axis-label{fill:#aebdca}
#dividend-annual-chart .dividend-bar-label{fill:#dce7ef}
#dividend-upcoming-events .dividend-upcoming-item{background:#172f44;border-color:#385168;color:#e3edf4}
#dividend-upcoming-events .dividend-upcoming-item.pending{background:#2b2b26;border-color:#665b3c;color:#e5d8b6}
#dividend-upcoming-events .dividend-coverage-warning{background:#342c1e;border-color:#705c35;color:#e7d5a9}
#dividend-calendar .calendar-assets-list .calendar-asset{background:#12283c;border-color:#30495e}
#dividend-calendar .calendar-asset-toggle{background:#172f44;border-color:#385168;color:#e3edf4}
#dividend-calendar .calendar-asset-toggle[aria-expanded="true"]{background:#174054;color:#91e2e6}
#dividend-calendar .calendar-asset-panel{background:#102235;color:#dce7ef}
#dividend-calendar table thead,#dividend-calendar table th{background:#142a3d;color:#b9cad5}
#dividend-calendar table td{background:transparent;color:#d4dfe7;border-color:#2b4154}

/* Refinamento geral do tema escuro, com prioridade à leitura e ao enquadramento. */
:root{color-scheme:dark}
body{background-color:#091827;background-image:radial-gradient(ellipse at 76% -8%,#12324a 0%,#0b1b2c 36%,#081421 76%),radial-gradient(ellipse at 8% 82%,#0d2938 0%,transparent 36%)}
.main-content,.view,.panel,.summary-card,.portfolio-grid,.broker-workspace,.broker-main-column,.broker-sidebar{min-width:0}
.page-heading>* ,.panel-heading>*{min-width:0}
.panel,.summary-card{transition:border-color .22s ease,box-shadow .22s ease}
.view .panel:hover,.view .summary-card:hover{border-color:#42677f;box-shadow:0 12px 32px #02091270,inset 0 1px #ffffff0b}
.nav-item,.button-primary,.button-secondary,.icon-button,.mover-card,.watch-item,.chart-control{transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.nav-item:hover,.button-secondary:hover,.icon-button:hover,.mover-card:hover{transform:translateY(-1px)}
.page-heading h1,.panel-heading h2{overflow-wrap:break-word;word-break:normal}
.watch-category>h3{color:#a8c6d3}
.watch-category .watch-item{background:linear-gradient(145deg,#1a354b,#142a3d);border-color:#3a586f}
.watch-category .watch-item-title{align-items:flex-start}
.watch-category .watch-symbol-button{min-width:0;max-width:100%;color:#f0f7fb;font-size:12px;font-weight:750;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.watch-category .watch-symbol-button:hover{color:#83e0e5}
.watch-category .watch-item-title strong{flex:0 0 auto;color:#e5f0f6;font-size:12px}
.watch-category .watch-item>small{color:#b6c6d3;font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.watch-category .watch-remove{color:#8dd1da}
.mover-card{min-width:0;border-color:#3b5b71;background:linear-gradient(145deg,#1b374d,#14293c);box-shadow:0 7px 18px #0209123d}
.mover-card>strong,.mover-card>b,.mover-card>small,.mover-card>.mover-change{min-width:0;overflow-wrap:anywhere}
.mover-card>strong{color:#f1f7fb;font-size:14px;line-height:1.35}
.mover-card>b{color:#e0ebf2}
.mover-card>small{color:#bdcbd7}
.mover-card>.mover-change{color:#82d8df}
.portfolio-grid .asset-symbol{min-width:0}
.movement-history-panel{margin-top:17px;border-top:3px solid #23a7b8}
.movement-history-panel>.panel-heading{align-items:flex-start}
.movement-history-panel>.panel-heading .data-note{margin:6px 0 0;line-height:1.5}
.movement-history-panel>.panel-heading .button-secondary{flex:none;white-space:nowrap}
.movement-history-controls{display:grid;grid-template-columns:1.15fr .9fr 1fr 1fr 1.05fr auto;gap:9px;align-items:end;margin:16px 0 10px}
.movement-history-controls>div{min-width:0}
.movement-history-controls .field-label{display:block;margin:0 0 5px;color:#aebdca;font-size:9px}
.movement-history-controls input,.movement-history-controls select{width:100%;min-width:0;min-height:37px;border:1px solid #39566d;border-radius:8px;background:#102235;color:#e7eff6;padding:8px 9px;font:inherit;font-size:10px}
.movement-history-controls>.button-secondary{min-height:37px;white-space:nowrap;font-size:9px}
.movement-history-summary{display:flex;justify-content:space-between;gap:12px;margin:11px 0;color:#9eb0c0;font-size:9px}
.movement-history-summary span:first-child{color:#6dd2da;font-weight:750}
.movement-history-table-wrap{overflow-x:auto;border:1px solid #2e465b;border-radius:9px}
.movement-history-table{min-width:760px;margin:0}
.movement-history-table th{white-space:nowrap}
.movement-history-table td{font-variant-numeric:tabular-nums;white-space:nowrap}
.movement-history-table .movement-history-ticker,.movement-history-table .movement-history-gross{font-weight:750;color:#e6f1f8}
.movement-history-table .movement-history-gross{color:#7cdae0}
.movement-history-table .movement-fee-unknown{color:#d4bd86;font-size:9px}
.movement-history-table .movement-type-buy,.movement-history-table .movement-type-sell{font-weight:700}
.movement-history-table .movement-type-buy{color:#74d8b5}
.movement-history-table .movement-type-sell{color:#f0a1a5}
.movement-history-panel .empty-state{padding:22px;text-align:center;color:#9eb0c0}
.portfolio-grid .asset-symbol>:last-child{min-width:0;overflow-wrap:anywhere;word-break:break-word}
.portfolio-grid .incomplete{flex:0 0 auto}
@media(max-width:980px){
  .main-content{padding:28px 20px 26px}
  .portfolio-grid{grid-template-columns:minmax(0,1fr)}
  .movement-history-controls{grid-template-columns:repeat(3,minmax(0,1fr))}
  .portfolio-grid .form-panel{order:1}
  .portfolio-grid .positions-panel{order:2}
  .portfolio-grid .table-wrap{overflow:visible}
  .portfolio-grid table{table-layout:fixed;white-space:normal}
  .portfolio-grid th,.portfolio-grid td{padding-left:5px;padding-right:5px;white-space:normal;overflow-wrap:anywhere}
  .portfolio-grid th:first-child,.portfolio-grid td:first-child{width:31%}
  .portfolio-grid th:nth-child(2),.portfolio-grid td:nth-child(2){width:20%}
  .portfolio-grid th:nth-child(3),.portfolio-grid td:nth-child(3){width:27%}
  .portfolio-grid th:nth-child(4),.portfolio-grid td:nth-child(4){width:22%}
  .broker-workspace{grid-template-columns:minmax(0,1fr)}
  .broker-sidebar{grid-template-columns:minmax(0,1fr)}
  .mover-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .portfolio-grid th:nth-child(2){font-size:8px;white-space:nowrap}
  .portfolio-grid .asset-symbol{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:6px;row-gap:3px}
  .portfolio-grid .asset-symbol .asset-icon{grid-row:1 / span 2}
  .portfolio-grid .incomplete{grid-column:2;grid-row:2;white-space:normal}
}
@media(max-width:520px){
  .main-content{padding:23px 13px 22px}
  .movement-history-panel>.panel-heading{flex-direction:column}
  .movement-history-panel>.panel-heading .button-secondary{width:100%;justify-content:center}
  .movement-history-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
  .movement-history-controls>.button-secondary{width:100%;grid-column:1/-1;justify-content:center}
  .movement-history-summary{flex-direction:column;gap:5px}
  .mover-cards{grid-template-columns:minmax(0,1fr)}
  .mover-card{min-height:0}
  .portfolio-grid th,.portfolio-grid td{font-size:9px}
  .portfolio-grid .asset-icon{flex:0 0 24px}
}
@media(max-width:900px){
  .assistant-widget{right:14px;bottom:14px}
  .assistant-fab{width:48px;min-height:48px;justify-content:center;padding:6px;gap:0}
  .assistant-fab>span:last-child{display:none}
  .assistant-fab-mark{flex:0 0 34px}
}
@media(prefers-reduced-motion:reduce){.view.active{animation:none}.panel,.summary-card,.nav-item,.button-primary,.button-secondary,.icon-button,.mover-card,.watch-item,.chart-control{transition:none}}
#dividend-calendar .empty-inline,#dividend-load-status{color:#aebdca}

/* Ferramentas locais, alertas configuráveis e valores de mercado da carteira. */
.positions-panel .table-wrap{overflow-x:auto}
.positions-panel table{min-width:700px}
.alert-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid #30495e}
.alert-settings label{display:grid;gap:5px;color:#c4d3de;font-size:11px;font-weight:650}
.alert-settings input:not([type=checkbox]){width:100%;min-width:0;border:1px solid #39566d;border-radius:8px;background:#102235;color:#eef5fa;padding:9px 10px;font:inherit}
.alert-settings .alert-check{grid-column:1/-1;display:inline-flex;width:fit-content;max-width:100%;min-height:36px;align-items:center;gap:8px;padding:7px 10px;border:1px solid #31495e;border-radius:8px;background:#102235;color:#c4d3de;cursor:pointer}
.alert-settings .alert-check input[type=checkbox]{width:16px;height:16px;min-width:16px;flex:0 0 16px;margin:0;padding:0;accent-color:#42c5d4}
.alert-settings button{justify-self:start}
.backup-panel{margin-top:18px}
.backup-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.backup-file-label{display:inline-flex;align-items:center;cursor:pointer}
.backup-panel .form-message{margin-bottom:0}
@media(max-width:520px){.alert-settings{grid-template-columns:minmax(0,1fr)}.alert-settings .alert-check{grid-column:auto}.backup-actions>*{width:100%;justify-content:center}}

/* Consulta progressiva e controles de dados financeiros. */
.quote-coverage{display:block;flex-basis:100%;font-size:10px;line-height:1.45;color:#9fb4c8;margin-top:4px;white-space:normal}
.quote-coverage.available{color:#86d7d0}.quote-coverage.stale,.calendar-coverage.stale{color:#e6bf78}.quote-coverage.missing{color:#aabacc}
.watch-item-title{flex-wrap:wrap;row-gap:2px}.watch-item-title .quote-coverage{margin-top:2px}
.calendar-coverage{display:block;padding:0 14px 9px;color:#a6bed0;font-size:11px}
.calendar-refresh-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.calendar-refresh-row .calendar-section-label{flex:1 1 200px;margin:0;font-size:12px}.calendar-refresh-row button{font-size:11px;min-height:34px}
.calendar-asset-toggle:focus-visible,.calendar-page-button:focus-visible,.text-button:focus-visible{outline:2px solid #52d6e8;outline-offset:3px}
.chart-updating{position:relative;min-height:120px}.chart-updating::after{content:'Atualizando…';position:absolute;right:14px;top:12px;background:#10273deb;border:1px solid #3c6a83;color:#c5e5f4;padding:5px 10px;border-radius:6px;font-size:11px;pointer-events:none}
.alert-settings select{width:100%;min-width:0;border:1px solid #39566d;border-radius:8px;background:#102235;color:#eef5fa;padding:8px;font:inherit}
.data-dialog{width:min(700px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid #42617b;border-radius:16px;padding:24px;background:#0d2032;color:#e4edf6;box-shadow:0 28px 90px #0009}
.data-dialog::backdrop{background:#020a14bb;backdrop-filter:blur(4px)}.data-dialog>h2{margin:0 0 16px;font-size:20px;color:#e9f5ff}.data-dialog>button{float:right;margin-bottom:12px}
.correction-form{clear:both;display:grid;grid-template-columns:1fr 1fr;gap:14px}.correction-form>.data-note,.correction-form>.form-message,.correction-form>button{grid-column:1/-1}.correction-form label{display:grid;gap:6px;font-size:12px;color:#c5d8e6}.correction-form input,.correction-form select{width:100%;min-width:0;color:#edf7ff;background:#102a40;border:1px solid #46657d;border-radius:7px;padding:8px;height:40px}.correction-form button{justify-self:start}.audit-events{clear:both;display:grid;gap:12px}.audit-event{border:1px solid #354f67;border-radius:10px;background:#10273b;padding:14px;overflow-wrap:anywhere}.audit-event h3{font-size:14px;color:#d2eafa}.audit-event p{font-size:12px;line-height:1.65}.analysis-summary>section+section{margin-top:18px;border-top:1px solid #334c63;padding-top:18px}
#historical-total,#open-cost-total{overflow-wrap:anywhere;line-height:1.35;font-size:clamp(19px,2vw,30px)}
@media(max-width:520px){.correction-form{grid-template-columns:1fr}.data-dialog{padding:18px}.calendar-refresh-row button{width:100%}.data-dialog>h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){.data-dialog::backdrop{backdrop-filter:none}}

/* A barra vira estática no celular: sua decoração absoluta não deve usar
   o documento como referência e criar rolagem lateral fora dos controles. */
@media(max-width:700px){.sidebar::before{content:none}}
.chart-data-table{width:100%;margin-top:10px;overflow:auto;color:#c9dbe7;font-size:12px}
.chart-data-table summary{padding:9px 0;cursor:pointer;color:#8adbe5;font-weight:650}
.chart-data-table summary:focus-visible{outline:2px solid #73dce8;outline-offset:3px}
.chart-data-table table{white-space:normal;margin-top:8px}
.chart-data-table th[scope=row]{text-align:left;text-transform:none;letter-spacing:normal;font-size:11px;color:#c9dbe7}

/* Leitura e enquadramento: valores completos, controles estáveis e rolagem local. */
.field-row,.simulator-form,.profile-form{grid-template-columns:repeat(2,minmax(0,1fr))}
:is(.field-row,.simulator-form,.profile-form,.fixed-income-form)>div{min-width:0}
input,select,textarea{min-width:0;max-width:100%}
.page-heading,.panel-heading{gap:12px;flex-wrap:wrap}
.panel-heading>div:first-child{flex:1 1 auto}
.panel-heading>:is(button,a){max-width:100%;white-space:normal;overflow-wrap:anywhere}
.movement-history-panel>.panel-heading .button-secondary{white-space:normal}
:is(.button-primary,.button-secondary){line-height:1.5;white-space:normal;overflow-wrap:anywhere;padding-top:9px;padding-bottom:9px}
.button-primary>span:last-child{flex:0 0 auto}
.placeholder-card{padding:20px 14px;overflow-wrap:anywhere}
.placeholder-card>span:last-child{font-size:11px;line-height:1.65}
.view :is(.field-hint,.form-message,.result-message,.allocation-note){font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.view .summary-card>small{font-size:11px;line-height:1.6}
.card-top{gap:9px;line-height:1.5}
.card-top .metric-icon{flex:0 0 27px}
.broker-chart-details strong{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;line-height:1.55}
.mover-card>small{overflow:visible;text-overflow:clip;white-space:normal;line-height:1.5}
:is(.ibovespa-stats,.broker-chart-details)>div{min-width:0}
:is(.ibovespa-stats,.broker-chart-details,.dollar-overview) strong{overflow-wrap:anywhere}
.table-wrap{max-width:100%;overscroll-behavior-x:contain;scrollbar-color:#42677f #102235;scrollbar-width:thin}
.table-wrap[tabindex]:focus-visible{outline:2px solid #80e8f0;outline-offset:4px;border-radius:6px}
.table-scroll-hint{display:none;margin:8px 0 0;color:#aebfce;font-size:11px;line-height:1.6}
.movement-history-table-wrap{max-height:clamp(320px,55vh,520px);overflow:auto}
.movement-history-table thead{position:sticky;top:0;z-index:1;background:#102538}
.movement-history-table th{padding-top:12px;padding-bottom:12px}
@media(max-width:700px){
  /* O tamanho também evita ampliar automaticamente campos pequenos em navegadores móveis. */
  html body :is(.main-content,.access-card,.login-panel) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px;min-height:44px;height:auto}
  .main-content :is(input:not([type=checkbox]):not([type=radio]),select){padding-block:10px}
  .main-content :is(.button-primary,.button-secondary,.asset-tab,.chart-control){min-height:40px}
  .sidebar .nav-item{min-height:44px;height:auto;padding-block:10px}
  .main-content :is(.market-strip,.quote-title,.simulation-headline){flex-wrap:wrap}
  .market-strip>.text-button{margin-left:auto;min-height:36px}
  .broker-sidebar{position:static}
  .view .chart-modes,.view .chart-periods{max-width:100%;flex-wrap:wrap}
  .chart-controls,.ibovespa-controls{max-width:100%;overflow:visible}
  .table-scroll-hint{display:block}
  .table-wrap{scroll-padding-inline:12px}
  .privacy-feedback{max-width:calc(100vw - 24px)}
}
@media(max-width:420px){
  .field-row,.simulator-form{grid-template-columns:minmax(0,1fr)}
  .simulator-form .button-primary{grid-column:1/-1}
  .summary-grid{grid-template-columns:minmax(0,1fr)}
  .summary-card{min-height:105px}
  .view .summary-card .metric{font-size:24px}
}

/* Textos longos não comprimem os ícones nem desencontram pares de campos. */
.main-content .view :is(.metric-icon,.quick-icon,.placeholder-icon,.asset-icon){flex-shrink:0}
.main-content .view .field-row{align-items:end}
