/* Graphite is the product identity, independent of legacy profile colors. */
:root,body,body.dark,body.uix2{color-scheme:dark;--bg:#101113!important;--card:#1a1c20!important;--text:#f4f5f7!important;--muted:#a6abb5!important;--line:#30333a!important;--brand:#4388ff!important;--good:#56ce99!important;--bad:#ff7b83!important;--info:#c1c6d0!important;--warn:#c1c6d0!important;--sidebar:#141518!important;--sidebar-text:#c1c6d0!important;--sidebar-muted:#9298a3!important;--sidebar-active:#243651!important;--sidebar-active-text:#f4f5f7!important;--ui-bg:#101113!important;--ui-surface:#1a1c20!important;--ui-surface-soft:#22252b!important;--ui-text:#f4f5f7!important;--ui-muted:#a6abb5!important;--ui-line:#30333a!important;--ui-brand:#4388ff!important}
body{background:var(--bg)!important;color:var(--text)!important;font-family:Inter,'Segoe UI',sans-serif}
body :is(.card,.box,.loginbox,.investmentCard,.assetCard,.uiModal,.uiCommandPalette,.mobileNavDrawer,.mobileTop,.mobileBottomNav){background:var(--card)!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:none!important}
body :is(.login,.content,.shell){background:var(--bg)!important}
body :is(.balanceHero,.txSummary,.drop,.notice,.pill,.wealthEmptyState,.wealthInsightEmpty,.investmentIcon,.assetTypeBadge,.goalLinkBadge,.uiCommandResultIcon,.month-only-picker,.close,.moregrid button){background:#22252b!important;color:var(--text)!important;border-color:var(--line)!important;background-image:none!important}
body :is(input,select,textarea,.control){background:#14161a!important;color:var(--text)!important;border-color:var(--line)!important}
body :is(.btn,.btn.green,.btn.red,.btn.orange,.bottomCreate){background:#377bf0!important;color:#fff!important;border:1px solid #568ff2!important;background-image:none!important;box-shadow:none!important}
body :is(.btn.gray,.btn.small.gray){background:#282c33!important;border-color:#414650!important;color:var(--text)!important}
body :is(.side,.mobileNavDrawer){background:#141518!important}
body :is(.nav button,.mobileNav button){color:#c1c6d0!important;background:transparent!important}
body :is(.nav button.active,.mobileNav button.active,.sectionTabs button.active,.wealthTabs button.active){background:#243651!important;color:#dceaff!important;border-color:#4388ff!important}
body :is(.nav button:hover,.mobileNav button:hover){background:#22252b!important}
body :is(h1,h2,h3,.sectionTitle,.v,.balanceHero .v,.moneyValue){color:var(--text)}
body :is(.sub,.k,.metricHint,small){color:var(--muted)}
body .good{color:var(--good)!important}body .bad{color:var(--bad)!important}body :is(.info,.warn){color:var(--muted)!important}
body :is(th,thead,.listrow,.investmentCardTop,.wealthTabs,.sectionTabs){background-color:transparent!important;border-color:var(--line)!important}
body :is(td,th){border-color:var(--line)!important;color:var(--text)}
body :is(.progress,.allocationTrack){background:#30343c!important}body :is(.progress span,.allocationTrack span){background:#4388ff!important}
body :is(.badge,.statusBadge,.txStatusBadge){background:#282c33!important;color:#cbd0d9!important;border-color:#414650!important}
body .card{border:1px solid var(--line);border-radius:14px}
body .balanceHero{border:1px solid #363a43!important;border-radius:16px!important;padding:24px!important}
body :focus-visible{outline:2px solid #80b0ff!important;outline-offset:3px}
.graphiteEyebrow{font-size:11px;letter-spacing:.14em;color:#a6abb5;margin-bottom:8px}
.marketToday{width:100%;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;cursor:pointer;padding:16px!important}.marketToday small{display:block;margin-top:4px}.marketToday strong{color:#f4f5f7;font-variant-numeric:tabular-nums}
.marketWatch{margin-bottom:18px}.marketWatch label{display:block;font-weight:650;margin-bottom:12px}.marketWatch input{min-width:180px;flex:1}.marketGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-bottom:20px}.marketQuote{padding:18px}.marketQuote h3{margin:0 0 6px}.marketQuote .marketPrice,.marketIndex .marketPrice{font-size:28px;font-weight:700;margin:12px 0;font-variant-numeric:tabular-nums}.marketQuote p{margin:6px 0}.marketQuote small{display:block;font-size:11px;line-height:1.5}.marketSpark{width:100%;height:54px;margin-top:12px;color:#a6abb5}.marketIndex{margin-bottom:24px;padding:24px!important}.marketIndex .marketSpark{max-width:600px;height:72px}.marketRankings{margin:14px 0}.marketPosition{display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}.marketPosition span,.marketPosition small{display:block;margin-bottom:5px}.marketPosition b{font-variant-numeric:tabular-nums}.marketPositionList{overflow:auto}#wealthMarketCard{margin-bottom:18px}#wealthMarketCard .btn{margin-top:14px}
.graphiteNavIcon{display:inline-flex;width:25px;justify-content:center;font-size:19px;filter:grayscale(1)}.graphiteNavLabel{margin-left:10px}.nav button{position:relative}.graphiteTooltip{display:none}
@media(min-width:901px){body .shell{display:grid!important;grid-template-columns:244px minmax(0,1fr)!important}body .side{display:flex!important;width:244px!important;flex-direction:column;position:sticky;top:0;height:100dvh}body .content{min-width:0;width:100%;margin-left:0!important}body .mobileTop,body .mobileBottomNav{display:none!important}}
@media(min-width:901px) and (max-width:1200px){body .shell{grid-template-columns:76px minmax(0,1fr)!important}body .side{width:76px!important;padding:14px 10px!important;overflow:visible!important}body .side .brand{padding:12px 0!important}body .side .brandrow>div,body .side .nav h6,body .side .appVersion{display:none!important}body .side .nav{overflow:visible!important}body .side .nav button{display:flex;justify-content:center;padding:12px 8px!important}body .side .graphiteNavLabel{display:none}body .side .brandrow{justify-content:center}.sideUtilityBar{flex-direction:column!important}.nav button:hover .graphiteTooltip,.nav button:focus-visible .graphiteTooltip{display:block;position:absolute;left:62px;top:8px;z-index:1000;background:#30343c;color:#fff;padding:9px 12px;border-radius:8px;white-space:nowrap;font-size:12px;box-shadow:0 4px 18px #0008}}
@media(max-width:900px){body .shell{display:block!important}body .side{display:none!important}body .content{margin:0!important;min-width:0;padding-top:18px!important}body .mobileTop{display:flex!important;position:sticky;top:0;z-index:35}body .mobileNavDrawer{width:min(320px,88vw)!important;max-height:100dvh;overflow:auto}body.mobileMenuOpen{overflow:hidden}.marketPosition{grid-template-columns:1fr 1fr}.marketPosition>div:first-child{grid-column:1/-1}.marketToday{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
body .graphiteAppearance .form,body .graphiteAppearance .settingsCardActions{display:none}
body .graphiteAppearance:after{content:'Graphite · fundo grafite, superfícies carbono e ações azuis.';display:block;padding:12px 0;color:#c1c6d0}
body .balanceHero:after{display:none!important}
.marketIndex small{display:block;line-height:1.6}.marketSpark{display:block}.marketIndex{min-width:0}
.uixQuickSheet:not(.open){visibility:hidden;pointer-events:none}
body :is(.utilityIconGlyph,.uixQuickActions .uixQuickActionIcon,.mobileBottomNav span){filter:grayscale(1)}
body :is(.mobileNav h6,.mobileVersion,.nav h6){color:var(--muted)!important}
body #settingsAppearanceCard.graphiteAppearance .form,body #settingsAppearanceCard.graphiteAppearance .settingsCardActions{display:none!important}
body .profilePreview{background:#22252b!important}
body :is(.utilityDotBadge,.notificationBadge){background:#4388ff!important}
body .shell.hidden{display:none!important}
@media(min-width:901px) and (max-width:1200px){body .side .nav button{min-height:36px;padding:8px!important;margin:1px 0!important}body .side .brand{padding:8px 0!important}body .side .sideUtilityBar{margin-top:10px!important}}
.marketChart{color:#8798ad;min-width:0;position:relative;margin:16px 0 12px}.marketChart-up{color:#4bd4a0}.marketChart-down{color:#ef7885}.marketChart svg{display:block;width:100%;height:auto;overflow:visible}.marketChartLine{fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.marketChartLarge{margin-top:28px;padding-top:12px;border-top:1px solid var(--line);outline-offset:6px;border-radius:4px}.marketChartLarge svg{touch-action:pan-y}.marketChartLarge .marketChartLine{stroke-width:2.5}.marketChartLarge:focus-visible{outline:2px solid var(--brand-accent,#2388ff)}.marketChartGrid{stroke:#8798ad;stroke-opacity:.13;stroke-dasharray:3 6;vector-effect:non-scaling-stroke}.marketChartLabel{fill:#96a1ad;font:12px 'Segoe UI',sans-serif}.marketChartCaption{display:flex;justify-content:space-between;gap:12px;color:var(--muted,#96a1ad);font-size:11px;padding:8px 0 4px}.marketChartCursor line{stroke:#b9c3ce;stroke-opacity:.5;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}.marketChartCursor circle{fill:currentColor;stroke:#191c20;stroke-width:3}.marketChartTooltip{position:absolute;top:0;transform:translateX(-50%);background:#262d35;border:1px solid #404a55;border-radius:8px;color:#f6f8fc;box-shadow:0 6px 24px #0005;padding:8px 12px;font-size:12px;pointer-events:none;white-space:nowrap;font-variant-numeric:tabular-nums}.marketChartEmpty{padding:24px 0;color:var(--muted);font-size:12px}.marketIndex h3{margin:0 0 6px}.marketIndex>.marketChartLarge{max-width:none}.marketQuote .marketChart{margin-bottom:16px}@media(max-width:600px){.marketChartLarge{margin-top:20px}.marketChartCaption{flex-direction:column;gap:4px}.marketChartLabel{font-size:15px}.marketChartTooltip{font-size:11px;padding:6px 8px}}
