/* Shared semantic tokens. Light preserves each site's approved palette. */
:root,[data-theme="light"]{color-scheme:light;--bm-page-bg:#fff;--bm-surface:#f4f7f9;--bm-surface-raised:#fff;--bm-text:#212121;--bm-text-muted:#4b5d68;--bm-border:#d7e1e7;--bm-link:#034f72}
[data-theme="dark"]{color-scheme:dark;--bm-page-bg:#10191f;--bm-surface:#19252e;--bm-surface-raised:#22323e;--bm-text:#eff7fb;--bm-text-muted:#c0d0da;--bm-border:#3b505d;--bm-link:#7bd8ff;--background:207 32% 9%;--foreground:200 60% 96%;--card:206 30% 14%;--card-foreground:200 60% 96%;--popover:206 30% 14%;--popover-foreground:200 60% 96%;--secondary:207 29% 19%;--secondary-foreground:200 60% 96%;--muted-foreground:204 25% 78%;--border:203 22% 30%;--input:203 22% 30%;--bg:var(--bm-page-bg);--fg:var(--bm-text);--card-bg:var(--bm-surface);--muted:var(--bm-text-muted);--muted-2:#a8bbc7;--border-c:var(--bm-border);--gray-50:#19252e;--gray-100:#142029;--gray-300:var(--bm-border);--gray-400:#a8bbc7;--gray-700:var(--bm-text-muted);--ink-light:var(--bm-text-muted);--orange-text:#ffd27a;--orange-deep:#f4bd46;--success:#8dd7a4;--error:#ffaaaa}
.bm-theme-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;flex-shrink:0;padding:9px 12px;border:1px solid var(--bm-border)!important;border-radius:8px;background:var(--bm-surface-raised)!important;color:var(--bm-text)!important;font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;cursor:pointer;white-space:nowrap;text-decoration:none;box-shadow:none}
.bm-theme-toggle:hover{border-color:var(--bm-link)!important}.bm-theme-toggle:focus-visible{outline:3px solid #f4ad15;outline-offset:3px}.bm-theme-toggle svg{display:block;width:18px;height:18px;flex:none}.bm-theme-toggle--floating{position:fixed;top:18px;right:18px;z-index:110}.header__inner:has(>.bm-theme-toggle) .nav-desktop{gap:clamp(.75rem,1.4vw,1.5rem)}
html[data-theme="dark"] body{background-color:var(--bm-page-bg);color:var(--bm-text)}
html[data-theme="dark"] :is(.header,.legal-topo,.panel-top,.sidebar,.manual__head){background:var(--bm-surface);border-color:var(--bm-border)}
html[data-theme="dark"] :is(.card,.plan,.faq,.cot,.cot__item,.cot__aviso,.legal-doc,.sumario,.post-card,.post-mini,.manual,.cartao,.bloco,.penalidade,.lista,.guia-topo__voltar,.surface,.login,.hero-dash){background:var(--bm-surface);border-color:var(--bm-border)}
html[data-theme="dark"] :is(.section--alt,.nav-mobile,.post-mini:hover,.faq__q:hover,.manual__rodape,.panel-layout){background:var(--bm-page-bg)}
html[data-theme="dark"] :is(h1,h2,h3,h4,h5,h6,.hero__title,.perfil__hl,.plan__now,.plan__list li b,.check-list li b,.founder__bio p b,.faq__a-body b,.legal-doc strong,.blog-artigo h3,.post-mini__titulo,.card--post h3,.cot__nome,.sumario__titulo){color:var(--bm-text)}
html[data-theme="dark"] :is(.tag:not(.tag--amber),.post-card__cat,.card--post__cat){color:var(--bm-text)}
html[data-theme="dark"] :is(.btn--ghost,.legal-topo__voltar,.manual__rodape .btn--ghost){background:var(--bm-surface);border-color:var(--bm-border);color:var(--bm-text)}
html[data-theme="dark"] .text-gradient{background:linear-gradient(90deg,#ffd67a,#f4ad15);background-clip:text;-webkit-background-clip:text;color:transparent}
html[data-theme="dark"] :is(.plan--milheiro .plan__head,.plan--milheiro .plan__name,.plan--milheiro .plan__desc b,.btn--amber,.tag--amber,.perfil--milheiro .perfil__tag){color:#212121}
html[data-theme="dark"] :is(.section--dark,.footer,.legal-hero,.legal-rodape,.sac,.post-cta,.ticker,.cot__topo){background:#0c141a}
html[data-theme="dark"] :is(.logo-item,.marquee-item){background:#fff;border-color:#d7e1e7}
html[data-theme="dark"] .cot__logo{background:#fff;border-radius:6px;padding:3px;object-fit:contain}
/* A demonstration is UI too; original photographs, logos and screenshots are untouched. */
html[data-theme="dark"] :is(.radar,.radar__bar,.radar-msg,.radar__foot,.step,.em,.offer,.offer__right,.faq__item){background:var(--bm-surface);color:var(--bm-text);border-color:var(--bm-border)}
html[data-theme="dark"] :is(.tg-dash,.tg-top,.tg-input,.tg-msg--bot,.radar-msg__chip){background:var(--bm-surface);color:var(--bm-text);border-color:var(--bm-border)}
html[data-theme="dark"] .tg-top__name{color:var(--bm-text)}html[data-theme="dark"] .tg-chat{background-color:#13232c;background-image:none}html[data-theme="dark"] .tg-msg--user{background:#204333;color:#eff7fb}html[data-theme="dark"] .tg-kb span{background:#263b48;color:var(--bm-text)}
html[data-theme="dark"] body.guia{--azul:#60a5fa;--azul-forte:#9ac7ff;--azul-claro:#172d47;--azul-borda:#42688a;background:var(--bm-page-bg)}
html[data-theme="dark"] :is(.destaque,.alerta--laranja){background:#3b2b13;color:#ffe1a0}html[data-theme="dark"] .destaque strong{color:#ffe7b5}html[data-theme="dark"] :is(.alerta--vermelho,.status__item--grave){background:#3d2026;color:#ffc3c3;border-color:#a95b65}html[data-theme="dark"] .alerta--verde{background:#19382a;color:#b7e7c4;border-color:#4f9d6a}html[data-theme="dark"] .alerta--escuro strong{color:#bdd9ff}
html[data-theme="dark"] :is(input,textarea,select){background:var(--bm-page-bg);color:var(--bm-text);border-color:var(--bm-border)}html[data-theme="dark"] :is(.panel-top a,.sidebar a,.login a,.kpis strong,.sidebar nav button,.metric-row strong){color:var(--bm-link)}html[data-theme="dark"] :is(.sidebar nav button.active,.sidebar nav button:hover,.info){background:var(--bm-surface-raised);color:var(--bm-text)}html[data-theme="dark"] :is(button.ghost,.toolbar button){background:var(--bm-surface-raised);color:var(--bm-text);border-color:var(--bm-border)}
@media(max-width:640px){.bm-theme-toggle{padding:9px;min-width:44px;min-height:44px}.bm-theme-toggle__label{display:none}.legal-topo__inner{gap:10px;flex-wrap:wrap}.legal-topo__logo{margin-right:auto}.header__inner{gap:8px}.panel-top>.bm-theme-toggle{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.bm-theme-toggle{transition:none}}
/* BM_COMPONENT_REFINEMENTS_V3: surfaces, fields and genuine alternate logos. */
html[data-theme="dark"] :is(.logo,.legal-topo__logo,.guia-topo__logo){background:transparent}
img[data-bm-logo-dark]{object-fit:contain}
html[data-theme="dark"] :is(.radar,.radar__bar,.radar-msg,.radar__foot,.step,.em,.em__body,.offer,.offer__left,.offer__right,.faq__item,.stat,.demo-window,.demo-window--lg,.demo-input,.demo-input--filled,.demo-toggle,.demo-notif,.demo-search__tab,.demo-plane,.ticket-cia,.cal-cell,.cal-alert,.fee-row__in,.launch,.legal__body,.footer__social-link){background:var(--bm-surface)!important;color:var(--bm-text);border-color:var(--bm-border)}
html[data-theme="dark"] :is(.hero-dash__panel,.demo-brand__preview,.demo-brand__logo,.fees-result,.demo-cot__pdf,.ticket-linkbox,.demo-cot__row,.demo-row,.demo-cal,.cal-cell--head,.radar__avatar){background:var(--bm-surface-raised);color:var(--bm-text);border-color:var(--bm-border)}
html[data-theme="dark"] :is(.feature-card,.demo-btn-ghost,.demo-fin__chart,.demo-emi__table){background:var(--bm-surface);color:var(--bm-text);border-color:var(--bm-border)}
html[data-theme="dark"] :is(.ticket-linkbox__row>span:first-child,.demo-input[style],.fee-row__in[style],.em__body[style],.offer__left[style],.offer__right[style]){background:var(--bm-surface)!important;color:var(--bm-text)!important}
html[data-theme="dark"] :is(.stat__label,.em__label,.em__cia,.em__program,.em__prog,.em__miles small,.radar-msg__from,.radar-msg__miles small,.radar-msg__price small,.radar__foot,.offer__intro,.offer__feats,.offer__note,.demo-label,.demo-input,.demo-toggle,.demo-notif__sub,.demo-search__hint,.demo-plane span,.ticket-cia span:not(.ticket-dot),.ticket-hint,.ticket-sub,.cal-cell__n,.cal-side__title,.cal-alert__sub,.fee-row__x,.fee-row__in small,.fees-result__label,.fees-result__total small,.fees-result__parcel span,.hero-dash__subtitle,.footer__social-link){color:var(--bm-text-muted)}
html[data-theme="dark"] :is(.stat__num,.em__brl,.radar-msg__price,.ticket-pax,.fees-result__total,.fee-row__in.is-set,.hero-dash__badge,.card__icon--primary,.tool-row__list li i,.demo-notif__icon,.demo-notif__bell){color:var(--bm-link)}
html[data-theme="dark"] :is(.em__miles,.em__route,.offer__price,.offer__whole,.offer__price-value,.demo-notif__title,.hero-dash__title,.hero-dash__panel-title,.ticket-ok,.ticket-cia-head b,.cal-alert__name,.demo-brand__name){color:var(--bm-text)}
html[data-theme="dark"] :is(.em__place,.em__place h3,.em__place p,.em__flag--nac){color:#fff}
html[data-theme="dark"] :is(.logo-item--txt span,.marquee-item span){color:#212121}
html[data-theme="dark"] :is(input,textarea,select)::placeholder{color:var(--bm-text-muted);opacity:1}
html[data-theme="dark"] :is(input,textarea,select){border-color:#617785}
html[data-theme="dark"] :is(.faq__q,.faq__q[aria-expanded="true"],.faq__q[aria-expanded="false"],.faq__a,.faq__a p){color:var(--bm-text)}
html[data-theme="dark"] :is(.faq__q:hover,.faq__item.is-open,.faq__item.open){background:var(--bm-surface-raised)}

/* Emitto: every demonstration is a UI surface; metric colors retain their hue. */
html[data-theme="dark"][data-theme-brand^="emitto"]{--primary-c:#91caff}
html[data-theme="dark"][data-theme-brand^="emitto"] .logo{background:transparent;padding:0;border-radius:0}
html[data-theme="dark"][data-theme-brand^="emitto"] :is(.btn--primary,.demo-btn-mini,.demo-search__tab.is-active){background:#155f9e;color:#fff;border-color:#447daf}
html[data-theme="dark"][data-theme-brand^="emitto"] .stat__num{color:#91caff}
html[data-theme="dark"][data-theme-brand^="emitto"] .stat__label{color:#c0d0da}
html[data-theme="dark"][data-theme-brand^="emitto"] .demo-brand__slogan{color:#91caff}
html[data-theme="dark"][data-theme-brand^="emitto"] :is(.demo-brand__saved,.demo-cot__pdf>i,.ticket-ok i,.ticket-linkbox__label,.cal-ev--green,.cal-badge--green){color:#8dd7a4}
html[data-theme="dark"][data-theme-brand^="emitto"] :is(.demo-live,.demo-status--online,.demo-connected){color:#91dda8}
html[data-theme="dark"][data-theme-brand^="emitto"] :is(.cal-ev--blue,.cal-badge--blue){color:#91caff}
html[data-theme="dark"][data-theme-brand^="emitto"] :is(.cal-ev--orange,.cal-badge--orange,.cal-alert--urgent .cal-alert__top){color:#ffd27a}
html[data-theme="dark"][data-theme-brand^="emitto"] .cal-ev--red{color:#ffb1b1}
html[data-theme="dark"][data-theme-brand^="emitto"] .metric-card.g-blue{background:#17529a}
html[data-theme="dark"][data-theme-brand^="emitto"] .metric-card.g-orange{background:#8e3f15}
html[data-theme="dark"][data-theme-brand^="emitto"] .metric-card.g-pink{background:#9d245a}
html[data-theme="dark"][data-theme-brand^="emitto"] .metric-card.g-violet{background:#6335aa}
html[data-theme="dark"][data-theme-brand^="emitto"] .metric-card.g-amber{background:#744d0b}
html[data-theme="dark"][data-theme-brand^="emitto"] .metric-card.g-emerald{background:#11623f}
html[data-theme="dark"][data-theme-brand^="emitto"] .metric-card.g-cyan{background:#116477}
html[data-theme="dark"][data-theme-brand^="emitto"] .metric-card.g-red{background:#9a2b2b}
html[data-theme="dark"][data-theme-brand^="emitto"] :is(.metric-card__label,.metric-card__value,.metric-card__sub,.metric-card__icon){color:#eff7fb}
html[data-theme="dark"][data-theme-brand^="emitto"] :is(.btn--outline,.demo-input--filled){background:var(--bm-surface);color:var(--bm-text)}
html[data-theme="dark"][data-theme-brand^="emitto"] :is(.ticket-btn--link,.ticket-btn--pdf){background:#155f9e;color:#fff}
html[data-theme="dark"][data-theme-brand^="emitto"] :is(.demo-plane img,.ticket-cia img,.ticket-cia-head img){background:#fff;border-radius:4px;padding:2px;object-fit:contain}

/* iMiles: preserve text overlays on photographs, change the independent body. */
html[data-theme="dark"][data-theme-brand="imiles"] :is(.em__body,.offer__left,.offer__right){background:var(--bm-surface)!important;color:var(--bm-text)}
html[data-theme="dark"][data-theme-brand="imiles"] :is(.offer__badge,.em__flag--uni,.radar-msg__uni){color:#212121}
html[data-theme="dark"][data-theme-brand="imiles"] :is(.step__num,.step__icon,.hero__stat-num){color:#63dce3}
html[data-theme="dark"][data-theme-brand="imiles"] .offer__disc{background:#007988;color:#fff}
html[data-theme-brand="imiles"] .btn--gold{color:#212121}
html[data-theme="dark"][data-theme-brand="imiles"] .offer__once{color:#ffd27a}
html[data-theme="light"][data-theme-brand="imiles"]{--primary-c:#007988}
html[data-theme="light"][data-theme-brand="imiles"] :is(.btn--light,.tag){color:#007988}
html[data-theme-brand="imiles"] .offer__disc{background:#007988;color:#fff}

/* Light appearances keep their palette with darker text shades. */
html[data-theme="light"][data-theme-brand^="emitto"]{--primary-c:#0e65d4;--muted:#5f6d80;--muted-foreground:214 15% 44%}
html[data-theme="light"][data-theme-brand^="emitto"] .demo-brand__slogan{color:#0e65d4}
html[data-theme="light"][data-theme-brand^="emitto"] :is(.demo-live,.demo-status--online,.demo-connected,.cal-ev--green,.cal-badge--green,.demo-brand__saved,.demo-cot__pdf>i,.ticket-ok i,.ticket-linkbox__label){color:#087b55}
html[data-theme="light"][data-theme-brand^="emitto"] :is(.cal-ev--orange,.cal-badge--orange,.cal-alert--urgent .cal-alert__top){color:#a3440a}
html[data-theme="light"][data-theme-brand^="emitto"] .cal-ev--red{color:#b82d2d}

/* The map preview and expanded branches use independent light surfaces. */
html[data-theme="dark"][data-theme-brand="mapa"] :is(#mapa,.hero-preview,.preview-bar,.preview-foot,.preview-node,.mindmap-wrap,.map-toolbar,.mnode,.mramo__det,.mdetail,.vcard,.card-oferta,.gain){background:var(--bm-surface)!important;color:var(--bm-text);border-color:var(--bm-border)!important}
html[data-theme="dark"][data-theme-brand="mapa"] :is(.preview-node,.mnode__t,.mramo__det p,.map-toolbar strong,.preview-foot strong){color:var(--bm-text)}
html[data-theme="dark"][data-theme-brand="mapa"] :is(.mnode__n,.mnode__mais){background:var(--bm-surface-raised);color:var(--bm-link)}
html[data-theme="dark"][data-theme-brand="mapa"] .mramo.is-active .mnode{background:var(--bm-surface-raised)!important}
html[data-theme="dark"][data-theme-brand="mapa"] .mnode__n{background:var(--bm-surface-raised);color:var(--bm-link)!important}
html[data-theme="dark"][data-theme-brand="mapa"] .mdetail__label{color:var(--bm-text-muted)}
html[data-theme="dark"][data-theme-brand="mapa"] .vcard__cta.btn--amber{background:#f4ad15;color:#212121;border-color:#f4ad15}
html[data-theme="dark"][data-theme-brand="mapa"] .mdetail__n{background:#7544d5;color:#fff}
html[data-theme="dark"]:is([data-theme-brand="radar"],[data-theme-brand="alertas"]) .radar__badge{background:#3a2d16;color:#ffdf99}
html[data-theme="dark"][data-theme-brand="mapa"] :is(#dentro,#faq){background:var(--bm-page-bg)}
html[data-theme="dark"][data-theme-brand="mapa"] :is(.carousel-toggle,.prova__card,.oferta__selo,.mramo,.mnode__dot,.deliver__item){background:var(--bm-surface);color:var(--bm-text);border-color:var(--bm-border)}

html[data-theme="dark"][data-theme-brand="links"] :is(.card--destaque,.card--destaque:hover,.btn--contorno,.social){background:var(--bm-surface);color:var(--bm-text);border-color:var(--bm-border)}
html[data-theme="dark"][data-theme-brand="links"] .btn--solido{background:#f4ad15;color:#212121}
html[data-theme="dark"][data-theme-brand="links"] img.logo{background:transparent;padding:0}
/* BM_COMPONENT_REFINEMENTS_V3_END */


html[data-theme="dark"][data-theme-brand] {--success:123 52% 69%;}
html[data-theme="dark"][data-theme-brand^="emitto"] .text-gradient{background:linear-gradient(90deg,#80bfff,#7ce6ec);background-clip:text;-webkit-background-clip:text;color:transparent}
