:root{color-scheme:light;--ink:#17243a;--muted:#53627a;--navy:#102548;--blue:#155eef;--gold:#f5b700;--green:#087443;--red:#b42318}
body:has(.market-banner){background:radial-gradient(ellipse at top,#dce9ff 0,#f4f7fc 44%,#eef3fa 100%)!important;color:var(--ink)!important}
body:has(.market-banner) .navbar{background:var(--navy)!important;box-shadow:0 5px 22px rgba(16,37,72,.2)!important}
body:has(.market-banner) .nav-links a{color:#fff!important}
body:has(.market-banner) .nav-links a:hover{color:#ffd45c!important}
body:has(.market-banner) .container{max-width:1280px!important}
body:has(.market-banner) .hero{background:linear-gradient(120deg,#102548 0%,#174ea6 63%,#176b87 100%)!important;border:1px solid rgba(255,255,255,.22);box-shadow:0 18px 42px rgba(16,37,72,.24)!important}
body:has(.market-banner) .hero-text h1{color:#fff!important}
body:has(.market-banner) .hero-text p{color:#e7efff!important}
body:has(.market-banner) .ticker-tape{background:#fff!important;border:1px solid #d7e0ed;box-shadow:0 8px 20px rgba(24,49,87,.08)!important}
body:has(.market-banner) .ticker-items span{color:#fff!important;text-shadow:none!important}
body:has(.market-banner) h2{color:var(--ink)!important}
body:has(.market-banner) .form-container{background:#fff!important;color:var(--ink)!important;border:1px solid #dbe4f0;box-shadow:0 12px 30px rgba(24,49,87,.1)!important}
body:has(.market-banner) .form-container h2{color:var(--ink)!important;text-shadow:none!important}
body:has(.market-banner) .form-container p{color:var(--muted)!important}
body:has(.market-banner) .form-container .button.primary,body:has(.market-banner) .hero-button{background:var(--gold)!important;color:#17243a!important;border:0!important;font-weight:800!important}
body:has(.market-banner) .form-container .button.secondary{background:#fff!important;color:#174ea6!important;border:2px solid #174ea6!important}
body:has(.market-banner) .assets-container{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;overflow:visible!important;background:transparent!important;padding:0!important;gap:16px!important}
body:has(.market-banner) .asset-card{min-width:0!important;flex:initial!important;background:#fff!important;color:var(--ink)!important;border:1px solid #dbe4f0;box-shadow:0 8px 22px rgba(24,49,87,.09)!important;border-radius:16px!important;padding:20px!important}
body:has(.market-banner) .asset-card:hover{transform:translateY(-4px)!important;box-shadow:0 14px 26px rgba(24,49,87,.15)!important}
body:has(.market-banner) .asset-card h3{color:var(--ink)!important;justify-content:center;gap:8px}
body:has(.market-banner) .asset-card p{color:var(--muted)!important}
body:has(.market-banner) .asset-card p:first-of-type{font-size:1.25rem!important;font-weight:800!important;color:var(--ink)!important}
body:has(.market-banner) .asset-card .variacao.positivo{color:var(--green)!important}
body:has(.market-banner) .asset-card .variacao.negativo{color:var(--red)!important}
body:has(.market-banner) .metal-card{border-top:4px solid var(--gold)!important}
body:has(.market-banner) .metal-card h3 span{color:#a36c00;font-size:1.3rem}
body:has(.market-banner) .metal-source{font-size:.78rem!important;color:#66758a!important}
body:has(.market-banner) .asset-card small{display:block;color:#53627a!important}
body:has(.market-banner) .message.erro{color:#8f1d16!important;background:#fff1ef!important;border:1px solid #f2b8b2}
body:has(.market-banner) .assets-container{display:block!important;background:transparent!important;padding:0!important}
body:has(.market-banner) .asset-section{margin:28px 0 36px}
body:has(.market-banner) .asset-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 2px 14px;border-bottom:1px solid #d4deeb;padding-bottom:10px}
body:has(.market-banner) .asset-section-heading h3{margin:0;color:var(--navy)!important;font-size:1.25rem;font-weight:800}
body:has(.market-banner) .asset-section-heading p{margin:0;color:var(--muted)!important;font-size:.9rem}
body:has(.market-banner) .asset-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}
body:has(.market-banner) .metals-section{margin-top:40px;padding:22px;border:1px solid #d5dfec;border-radius:20px;background:linear-gradient(135deg,#fff 0%,#f5f8fd 100%)}
body:has(.market-banner) .metals-grid{grid-template-columns:repeat(auto-fit,minmax(235px,1fr))}
body:has(.market-banner) .metal-card{border-top:4px solid #a36c00!important}
body:has(.market-banner) .metal-card.metal-prata{border-top-color:#61748e!important}
body:has(.market-banner) .metal-card.metal-uranio{border-top-color:#087443!important}
body:has(.market-banner) .metal-card-heading{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin-bottom:14px}
body:has(.market-banner) .metal-card-heading h3{justify-content:flex-start;margin:0;color:var(--ink)!important}
body:has(.market-banner) .metal-card-heading .metal-code{font-size:.76rem;color:var(--muted)!important;letter-spacing:.08em}
body:has(.market-banner) .metal-symbol{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:#fff4c2;color:#755000;font-weight:900}
body:has(.market-banner) .metal-prata .metal-symbol{background:#e8eef6;color:#44546b}
body:has(.market-banner) .metal-uranio .metal-symbol{background:#e5f6ec;color:#075b35}
body:has(.market-banner) .metal-card .metal-price{margin:8px 0 2px;color:var(--ink)!important;font-size:1.55rem!important;font-weight:900!important}
body:has(.market-banner) .metal-card .metal-reference{font-size:.9rem;color:#43536a!important}
body:has(.market-banner) .metal-classification{margin:12px 0;color:#43536a!important;font-size:.88rem}
body:has(.market-banner) .metal-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px 10px;border-top:1px solid #e1e7ef;padding-top:10px;color:#53627a;font-size:.74rem}
body:has(.market-banner) .metal-status{border-radius:99px;padding:3px 8px;font-weight:700}
body:has(.market-banner) .metal-status.current{background:#e5f6ec;color:#075b35}
body:has(.market-banner) .metal-status.stale{background:#fff0d1;color:#754900}
body:has(.market-banner) a:focus-visible,body:has(.market-banner) button:focus-visible{outline:3px solid #f5b700!important;outline-offset:3px}
@media(max-width:640px){body:has(.market-banner) .asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}body:has(.market-banner) .asset-card{padding:14px 10px!important}body:has(.market-banner) .metals-section{padding:15px 12px}body:has(.market-banner) .metals-grid{grid-template-columns:1fr!important}body:has(.market-banner) .asset-section-heading{align-items:flex-start;flex-direction:column;gap:3px}body:has(.market-banner) .metal-card .metal-price{font-size:1.35rem!important}body:has(.market-banner) .hero{padding:38px 16px!important}body:has(.market-banner) .button-group{flex-wrap:wrap}}
/* Em telas estreitas, mantém o texto principal livre dos marcadores animados. */
@media(max-width:850px){
 body:has(.market-banner) .price-pulses{display:none!important}
 body:has(.market-banner) .chart-line{display:none!important}
 body:has(.market-banner) .hero{min-height:270px;display:flex;align-items:center;justify-content:center;padding:42px 20px!important}
 body:has(.market-banner) .market-banner{width:100%}
 body:has(.market-banner) .hero-text{position:relative;z-index:3;max-width:56rem;margin:0 auto}
 body:has(.market-banner) .hero-text h1{font-size:clamp(1.7rem,5vw,2.25rem)!important;line-height:1.2;margin:0 auto 14px}
 body:has(.market-banner) .hero-text p{font-size:1rem!important;line-height:1.55;max-width:46ch;margin:0 auto 22px}
 body:has(.market-banner) .hero-button{position:relative;z-index:4;display:inline-flex;align-items:center;justify-content:center;min-height:48px}
}
/* Ações e criptos seguem o mesmo cartão de referência visual dos metais. */
body:has(.market-banner) .market-asset-card{display:flex;flex-direction:column;min-width:0;min-height:210px;border-top:4px solid #155eef!important}
body:has(.market-banner) .market-asset-card.stock-card{border-top-color:#155eef!important}
body:has(.market-banner) .market-asset-card.crypto-card{border-top-color:#087e8b!important}
body:has(.market-banner) .market-card-heading{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin-bottom:14px;min-width:0}
body:has(.market-banner) .market-card-heading h3{justify-content:flex-start;margin:0;color:var(--ink)!important;min-width:0;overflow-wrap:anywhere}
body:has(.market-banner) .market-card-code{font-size:.76rem;color:var(--muted)!important;letter-spacing:.04em}
body:has(.market-banner) .market-symbol-badge,body:has(.market-banner) .market-crypto-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;font-size:.74rem;font-weight:900}
body:has(.market-banner) .market-symbol-badge.badge-b3{background:#e5f6ec;color:#075b35}
body:has(.market-banner) .market-symbol-badge.badge-us{background:#e7efff;color:#174ea6}
body:has(.market-banner) .market-crypto-icon{display:block;object-fit:contain;background:#f1f5fa;padding:5px}
body:has(.market-banner) .market-asset-card .market-asset-price{margin:8px 0 2px;color:var(--ink)!important;font-size:1.55rem!important;font-weight:900!important;overflow-wrap:anywhere}
body:has(.market-banner) .market-asset-reference{font-size:.9rem;color:#43536a!important}
body:has(.market-banner) .market-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px 10px;margin-top:auto;border-top:1px solid #e1e7ef;padding-top:10px;color:#53627a;font-size:.74rem}
body:has(.market-banner) .market-card-meta time{color:#53627a;font-size:.72rem}
body:has(.market-banner) .market-change{border-radius:99px;padding:3px 8px;font-weight:800}
body:has(.market-banner) .market-change.positivo{background:#e5f6ec;color:#075b35!important}
body:has(.market-banner) .market-change.negativo{background:#fff0ed;color:#9b271d!important}
body:has(.market-banner) .market-change small{display:inline;color:inherit!important;font-size:.68rem}
@media(max-width:640px){body:has(.market-banner) .market-asset-card{min-height:205px}body:has(.market-banner) .market-asset-card .market-asset-price{font-size:1.3rem!important}body:has(.market-banner) .market-card-meta{gap:6px;padding-top:8px}body:has(.market-banner) .market-card-heading{gap:9px}}
/* Same market cards on the signed-in dashboard and trade page. */
.market-view{display:block!important;overflow:visible!important;background:transparent!important;padding:0!important;border:0!important;box-shadow:none!important}
.market-view .asset-section{margin:28px 0 36px}
.market-view .asset-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 2px 14px;border-bottom:1px solid rgba(212,222,235,.9);padding-bottom:10px}
.market-view .asset-section-heading h3{margin:0;color:#102548!important;font-size:1.25rem;font-weight:800}
.market-view .asset-section-heading p{margin:0;color:#53627a!important;font-size:.9rem}
.market-view .asset-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}
.market-view .metals-section{margin-top:40px;padding:22px;border:1px solid #d5dfec;border-radius:20px;background:linear-gradient(135deg,#fff 0%,#f5f8fd 100%)}
.market-view .metals-grid{grid-template-columns:repeat(auto-fit,minmax(235px,1fr))}
.market-view .asset-card,.market-view .market-asset-card{display:flex;flex-direction:column;min-width:0;min-height:210px;flex:initial;background:#fff!important;color:#17243a!important;border:1px solid #dbe4f0!important;border-top:4px solid #155eef!important;border-radius:16px!important;padding:20px!important;text-align:left!important;box-shadow:0 8px 22px rgba(24,49,87,.09)!important;backdrop-filter:none!important}
.market-view .asset-card:hover{transform:translateY(-4px);box-shadow:0 14px 26px rgba(24,49,87,.15)!important}
.market-view .stock-card{border-top-color:#155eef!important}
.market-view .crypto-card{border-top-color:#087e8b!important}
.market-view .market-card-heading,.market-view .metal-card-heading{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin-bottom:14px;min-width:0}
.market-view .market-card-heading h3,.market-view .metal-card-heading h3{justify-content:flex-start;min-width:0;margin:0;color:#17243a!important;overflow-wrap:anywhere;text-shadow:none!important}
.market-view .market-card-code,.market-view .metal-code{font-size:.76rem;color:#53627a!important;letter-spacing:.04em}
.market-view .market-symbol-badge,.market-view .market-crypto-icon,.market-view .metal-symbol{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;font-size:.74rem;font-weight:900;margin:0}
.market-view .market-symbol-badge.badge-b3{background:#e5f6ec;color:#075b35}
.market-view .market-symbol-badge.badge-us{background:#e7efff;color:#174ea6}
.market-view .market-crypto-icon{display:block;object-fit:contain;background:#f1f5fa;padding:5px}
.market-view .asset-card .market-asset-price,.market-view .metal-card .metal-price{margin:8px 0 2px;color:#17243a!important;font-size:1.55rem!important;font-weight:900!important;text-shadow:none!important;overflow-wrap:anywhere}
.market-view .market-asset-reference,.market-view .metal-reference{font-size:.9rem;color:#43536a!important}
.market-view .market-card-meta,.market-view .metal-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px 10px;margin-top:auto;border-top:1px solid #e1e7ef;padding-top:10px;color:#53627a;font-size:.74rem}
.market-view .market-card-meta time,.market-view .metal-meta time{color:#53627a;font-size:.72rem}
.market-view .market-change,.market-view .metal-status{border-radius:99px;padding:3px 8px;font-weight:800}
.market-view .market-change.positivo,.market-view .metal-status.current{background:#e5f6ec;color:#075b35!important}
.market-view .market-change.negativo,.market-view .metal-status.stale{background:#fff0ed;color:#9b271d!important}
.market-view .market-change small{display:inline;color:inherit!important;font-size:.68rem}
.market-view .metal-card{border-top-color:#a36c00!important}
.market-view .metal-card.metal-prata{border-top-color:#61748e!important}
.market-view .metal-card.metal-uranio{border-top-color:#087443!important}
.market-view .metal-card-heading .metal-symbol{background:#fff4c2;color:#755000}
.market-view .metal-card.metal-prata .metal-symbol{background:#e8eef6;color:#44546b}
.market-view .metal-card.metal-uranio .metal-symbol{background:#e5f6ec;color:#075b35}
.market-view .metal-card .metal-classification{margin:12px 0;color:#43536a!important;font-size:.88rem}
@media(max-width:640px){.market-view .asset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.market-view .metals-section{padding:15px 12px}.market-view .metals-grid{grid-template-columns:1fr}.market-view .asset-section-heading{align-items:flex-start;flex-direction:column;gap:3px}.market-view .asset-card,.market-view .market-asset-card{min-height:205px;padding:14px 10px!important}.market-view .asset-card .market-asset-price,.market-view .metal-card .metal-price{font-size:1.3rem!important}.market-view .market-card-heading,.market-view .metal-card-heading{gap:9px}.market-view .market-card-meta,.market-view .metal-meta{gap:6px;padding-top:8px}}
