/* IPBX Quantum | ajustes finais do tema claro + landing | 2B.16 */
:root{color-scheme:light!important;--bg:#f5f7fb;--card:#fff;--line:#dbe4ef;--text:#16283f;--muted:#5e728d;--blue:#1d5dd0;--blue-soft:#eaf2ff;--green:#1b8e62;--red:#a33d4f}
html{background:var(--bg)!important;color-scheme:light!important}body{background:var(--bg)!important;color:var(--text)!important;background-image:none!important}
.sidebar,aside.sidebar,.top,.topbar,.header,.navbar,.topnav,main>.top{background:#fff!important;background-image:none!important;border-color:var(--line)!important;color:var(--text)!important}
.main,.content,.content-shell,.page{background:transparent!important}
.nav,.sidebar .nav,.sidebar a.nav,.sidebar button.nav{background:transparent!important;color:#425a78!important;text-decoration:none!important}
.nav.active,.nav:hover,.sidebar a.nav.active,.sidebar button.nav.active,.sidebar a.nav:hover,.sidebar button.nav:hover{background:#eaf2ff!important;color:var(--blue)!important}
.panel,.stat,.card,.formsection,.selector-card,.plan,.features article,.faq details,.mock,.mock-answer,.question,.tile,.section,.codebox,.note,.warn,.conversation,.chatbox,.chat-message,.hero,.kpi,.pricing-card,.planusage,.upload,.hintbox,.sourcebox,.message,.chat,.list,pre,code{background:#fff!important;background-image:none!important;border-color:var(--line)!important;color:var(--text)!important;box-shadow:0 6px 22px rgba(18,44,82,.05)!important}
.formsection.subtlebox,.credit-banner,.token-explain>div,.steps-section,.trust,.answer-card,.stat-box,.insetnote,.cta{background:#eff5fc!important;background-image:none!important;color:#193755!important;border-color:var(--line)!important}
.hero,.faqsection,.bottomcta,footer,.section,main,body.admin-guest,body:not(.portal){background-color:var(--bg)!important}
input:not([type=checkbox]):not([type=radio]),select,textarea{background:#fff!important;color:#18304e!important;border-color:#c2d0e2!important;box-shadow:none!important}
input::placeholder,textarea::placeholder{color:#7d8ea3!important}label,.formsection label,.selector label,.muted,.lead,.sub,.crumb,.hint,.note,.tdhint,.tdstack,.asidefoot,.sidehead,.plan>p,.steps p,.features p,.faq details p,p,small{color:var(--muted)!important}
h1,h2,h3,h4,h5,h6,strong,b,.heading h1,.panel h2,.sectitle h2{color:#152c49!important}
a:not(.btn):not(.nav){color:var(--blue)}
.btn.primary,.btn:not(.ghost):not(.secondary):not(.outline),button.primary{background:var(--blue)!important;color:#fff!important;border-color:var(--blue)!important}.btn.ghost,.btn.secondary,.btn.outline,button.secondary,.mini,.chip,.tag,.tabs button,.copy{background:var(--blue-soft)!important;color:var(--blue)!important;border-color:#cbdcf3!important}
.tabs button.active,.pill,.badge,.status,.statuschip{background:#e8f0ff!important;color:var(--blue)!important;border-color:#cbdcf3!important}
.status.indexed,.statuschip.ok,.status.ok,.info.ok,#alert.ok,#msg.ok{background:#ecfbf4!important;color:var(--green)!important;border-color:#bfe8d2!important}.status.failed,.statuschip.off,.info.error,#alert,#msg{background:#fff0f2!important;color:var(--red)!important;border-color:#f0cad1!important}
code,pre{background:#f1f5fb!important;color:#223c61!important}.hero .pill,.copy,.tabs button,.tabs .active,.codebox button.copy{box-shadow:none!important}
/* páginas de conteúdo com estilos internos escuros */
body main .hero, main .hero, .section[data-panel], .section[data-panel].section, .section .tile, .section .codebox, .section .note, .section .warn, .section .tabs button, .section .copy, .section .tile strong, .section .tile p, .section pre, .section code, .section table, .section td, .section th, #chat, #agents, #message, .panel pre, .panel code {background:#fff!important;color:#183253!important;border-color:var(--line)!important}
.tabs button.active{background:var(--blue)!important;color:#fff!important;border-color:var(--blue)!important}
.hero .muted, .hero p, .tile p, .section p, .section li, .section td, .section th, .question p, .mockfoot, .source small, .answer-title span{color:#61748d!important}
.question{background:#f8fbff!important;border-color:#dbe7f4!important}.mock-answer,.source{border-color:#e3edf8!important}.live{background:#ecfbf4!important;color:var(--green)!important;border-color:#bfe8d2!important}.pct{color:var(--green)!important}
.top .crumb strong,.eyebrow,.tier,.source,.textlink,.pct{color:var(--blue)!important}.logo small,.brand small,.stat span,.kpi span,.source small,.mockfoot,.price small,.disclaimer{color:#68809b!important}
/* neutraliza estilos inline escuros usados em cards antigos */
[style*="background:#0"],[style*="background: #0"],[style*="background:#1"],[style*="background: #1"],[style*="background:#2"],[style*="background: #2"],[style*="background:#091"],[style*="background:#101"],[style*="background:#131"],[style*="background:#172"]{background:#fff!important;color:#183253!important}
[style*="color:#fff"],[style*="color: #fff"],[style*="color:white"],[style*="color: white"]:not(.btn):not(button){color:#243d5a!important}
#quantum-store,.quantum-store{background:#fff!important;border-color:var(--line)!important}.store-card{background:#f8fbff!important;border-color:var(--line)!important}
img.quantum-login-logo-img,img.logo-wordmark,.logo img{background:transparent!important}
@media(max-width:720px){body{background:var(--bg)!important}}

/* 2B.18: legibilidade de cards herdados com cores escuras */
.hero,.tile,.section,.codebox,.panel,.pricing-card,.quantum-store,.store-card,.chatbox,.mock-answer{background:#fff!important;color:#172b49!important;border-color:#d9e4f0!important}
.hero h1,.hero h2,.tile strong,.section h2,.section h3,.panel h2{color:#142c4d!important}
.hero p,.tile p,.section p,.panel p,.section td,.section th{color:#435d7b!important}
.sidebar .nav,.sidebar a,.crumb{color:#395979!important}
