/*
 * Busca instantânea da área de acesso (dashboard e menu lateral), no visual
 * do site: Inter, laranja #F58634, cartões brancos arredondados.
 * Tudo dentro de .bm, para não brigar com o Bootstrap/AdminLTE das páginas.
 */

.bm {
    --bm-laranja: #f58634;
    --bm-laranja-esc: #e0732a;
    --bm-laranja-claro: #fff1e7;
    --bm-texto: #101828;
    --bm-texto-2: #475467;
    --bm-texto-3: #667085;
    --bm-borda: #e7eaf0;
    --bm-cinza: #f4f5f7;
    --bm-fundo: #f2f4f7;
    --bm-sombra: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
    --bm-sombra-alta: 0 12px 32px rgba(16, 24, 40, .10);
    color: var(--bm-texto);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}
.bm *, .bm *::before, .bm *::after { box-sizing: border-box; }
.bm a, .bm a:hover, .bm a:focus { color: inherit; text-decoration: none !important; }
.bm button { font: inherit; color: inherit; }
.bm mark { background: #ffe1c7; color: inherit; border-radius: 3px; padding: 0 1px; }
.bm [hidden] { display: none !important; }
.bm .dt-ico { width: 20px; height: 20px; flex: none; }
.bm :focus-visible { outline: 2px solid var(--bm-laranja); outline-offset: 2px; }

/* ── Campo de busca ───────────────────────────────────────────────────── */

.bm-busca { position: relative; display: block; margin: 0; font-weight: 400; }
.bm-busca .bm-lupa { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--bm-laranja); pointer-events: none; }
.bm-busca input {
    width: 100%; height: 58px; padding: 0 18px 0 54px; margin: 0;
    border: 1.5px solid #d0d5dd; border-radius: 14px; background: #fff;
    font-size: 18px; color: var(--bm-texto); outline: none; box-shadow: var(--bm-sombra);
    -webkit-appearance: none; appearance: none;
}
.bm-busca input:focus { border-color: var(--bm-laranja); box-shadow: 0 0 0 5px rgba(245, 134, 52, .15); }
.bm-busca input::placeholder { color: #98a2b3; }
.bm-busca input::-webkit-search-cancel-button {
    -webkit-appearance: none; width: 18px; height: 18px; cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bm-exemplos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--bm-texto-3); }
.bm-exemplos button {
    border: 0; border-radius: 999px; padding: 5px 11px; cursor: pointer;
    background: var(--bm-laranja-claro); color: #b85a17; font-size: 13px; font-weight: 600;
}
.bm-exemplos button:hover { background: #ffe1c7; }

.bm-carregando, .bm-vazio { margin: 18px 4px; color: var(--bm-texto-3); }
.bm-resumo { margin: 4px 4px 10px; font-size: 14px; color: var(--bm-texto-3); }
.bm-resumo--sep { margin-top: 22px; }
.bm-secao { display: flex; align-items: center; gap: 8px; margin: 18px 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bm-texto-3); }
.bm-secao:first-child { margin-top: 4px; }
.bm-secao .dt-ico { width: 16px; height: 16px; color: var(--bm-laranja); }

/* ── Resultado (cartão) ───────────────────────────────────────────────── */

.bm-res { background: #fff; border-radius: 14px; box-shadow: var(--bm-sombra); border: 1px solid var(--bm-borda); overflow: hidden; }
.bm-res + .bm-res { margin-top: 10px; }
.bm-res-topo { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.bm-res-topo::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--bm-laranja); }
.bm-res > .bm-res-topo:not(:last-child) { border-bottom: 1px solid var(--bm-borda); }
a.bm-res-topo:hover .bm-res-nome { color: var(--bm-laranja-esc); }
.bm-res-foto { width: 96px; height: 60px; flex: none; display: flex; align-items: center; justify-content: center; }
.bm-res-foto img { width: 100%; height: 100%; object-fit: contain; }
.bm-res-foto .dt-ico { width: 30px; height: 30px; color: #d0d5dd; }
.bm-capa { width: 52px; height: 68px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 8px; overflow: hidden; background: var(--bm-cinza); }
.bm-capa img { width: 100%; height: 100%; object-fit: cover; }
.bm-capa .dt-ico { width: 22px; height: 22px; color: #98a2b3; }
.bm-res-titulos { min-width: 0; flex: 1; }
.bm-res-nome { display: block; font-size: 16.5px; font-weight: 700; }
.bm-res-sub { display: block; font-size: 13.5px; color: var(--bm-texto-2); }
.bm-res-onde { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--bm-texto-3); }
.bm-seta { width: 18px !important; height: 18px !important; flex: none; color: #98a2b3; }
a:hover > .bm-seta { color: var(--bm-laranja); }

.bm-docs { list-style: none; margin: 0; padding: 6px 8px; }
.bm-doc { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; }
.bm-doc:hover, .bm-doc:focus-visible { background: var(--bm-laranja-claro); outline: none; }
.bm-doc-ico { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--bm-laranja-claro); color: var(--bm-laranja); }
.bm-doc:hover .bm-doc-ico { background: #fff; }
.bm-doc-ico .dt-ico { width: 19px; height: 19px; }
.bm-doc-textos { min-width: 0; flex: 1; }
.bm-doc-nome { display: block; font-weight: 500; }
.bm-doc-sub { display: block; font-size: 12.5px; color: var(--bm-texto-3); }
.bm-doc-trecho { display: -webkit-box; margin-top: 3px; font-size: 12.5px; color: var(--bm-texto-3); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bm-aulas { padding-top: 2px; }
.bm-mais { display: block; margin: 0 8px 10px; padding: 9px 10px; border-radius: 10px; color: var(--bm-laranja-esc) !important; font-weight: 600; font-size: 14px; }
.bm-mais:hover { background: var(--bm-laranja-claro); }

.bm-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; }
.bm-chip {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 8px;
    border: 1px solid var(--bm-borda); border-radius: 12px; background: #fff; font-weight: 600; font-size: 14px;
}
.bm-chip-ico { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--bm-laranja-claro); color: var(--bm-laranja); }
.bm-chip-ico .dt-ico { width: 16px; height: 16px; }
.bm-chip:hover, .bm-chip:focus-visible { border-color: var(--bm-laranja); color: var(--bm-laranja-esc); outline: none; }

/* fora do acesso */
.bm-cadeado {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
    background: var(--bm-cinza); color: var(--bm-texto-3); font-size: 12px; font-weight: 500; white-space: nowrap;
}
.bm-cadeado::before {
    content: ""; width: 9px; height: 10px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Crect y='5' width='10' height='7' rx='1.5'/%3E%3Cpath d='M2.5 5V3.5a2.5 2.5 0 0 1 5 0V5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Crect y='5' width='10' height='7' rx='1.5'/%3E%3Cpath d='M2.5 5V3.5a2.5 2.5 0 0 1 5 0V5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.bm-adquirir { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--bm-laranja); color: #fff; font-size: 12.5px; font-weight: 700; }
.bm-travado .bm-res-nome, .bm-travado .bm-doc-nome { color: var(--bm-texto-2); }

/* ── Navegação (sem texto) ────────────────────────────────────────────── */

.bm-bloco + .bm-bloco { margin-top: 22px; }
.bm-bloco-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 10px; }
.bm-bloco-titulo { font-size: 17px; font-weight: 700; }
.bm-bloco-desc { font-size: 13px; color: var(--bm-texto-3); }
.bm-trilha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 4px 12px; font-size: 14px; color: var(--bm-texto-3); }
.bm-trilha a { color: var(--bm-texto-2) !important; font-weight: 500; }
.bm-trilha a:hover { color: var(--bm-laranja) !important; }
.bm-trilha span { color: var(--bm-laranja); font-weight: 700; }
.bm-trilha .dt-ico { width: 14px; height: 14px; color: #98a2b3; }

.bm-montadoras { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.bm-montadora, .bm-serie {
    display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 14px;
    background: #fff; border: 1px solid var(--bm-borda); border-radius: 14px; box-shadow: var(--bm-sombra);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.bm-montadora:hover, .bm-serie:hover { border-color: #fbd5b5; box-shadow: var(--bm-sombra-alta); transform: translateY(-1px); }
.bm-montadora-logo { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--bm-cinza); }
.bm-montadora-logo img { width: 27px; height: 27px; object-fit: contain; }
.bm-montadora-logo .dt-ico { width: 18px; height: 18px; color: var(--bm-laranja); }
.bm-montadora-textos, .bm-serie-textos { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.bm-montadora-nome, .bm-serie-nome { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-serie-nome { white-space: normal; }
.bm-montadora-qtd, .bm-serie-qtd { font-size: 12.5px; color: var(--bm-texto-3); }

.bm-carros { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.bm-carro {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--bm-borda); border-radius: 14px; box-shadow: var(--bm-sombra);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.bm-carro:hover { border-color: #fbd5b5; box-shadow: var(--bm-sombra-alta); transform: translateY(-2px); }
.bm-carro-foto { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 8px 12px 0; background: #fff; }
.bm-carro-foto img { width: 100%; height: 100%; object-fit: contain; }
.bm-carro-foto .dt-ico { width: 44px; height: 44px; color: #d0d5dd; }
.bm-carro-info { padding: 8px 14px 14px; }
.bm-carro-nome { display: block; font-weight: 700; font-size: 16px; }
.bm-carro-qtd { display: block; font-size: 13px; color: var(--bm-texto-3); }

.bm-series { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.bm-serie-capas { display: flex; flex: none; }
.bm-serie-capas > * { width: 30px; height: 40px; border-radius: 5px; overflow: hidden; background: var(--bm-cinza); box-shadow: 0 0 0 2px #fff; display: flex; align-items: center; justify-content: center; }
.bm-serie-capas > * + * { margin-left: -10px; }
.bm-serie-capas img { width: 100%; height: 100%; object-fit: cover; }
.bm-serie-capas .dt-ico { width: 14px; height: 14px; color: #98a2b3; }
.bm-lista-cursos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.bm-lista-cursos .bm-res + .bm-res { margin-top: 0; }

/* ── Menu lateral: treinamentos por série ─────────────────────────────── */

.bm-gaveta { border: 1px solid var(--bm-borda); border-radius: 12px; background: #fff; margin-bottom: 8px; overflow: hidden; }
.bm-gaveta summary { display: flex; align-items: center; gap: 10px; padding: 11px 12px; cursor: pointer; list-style: none; }
.bm-gaveta summary::-webkit-details-marker { display: none; }
.bm-gaveta-nome { flex: 1; font-weight: 600; font-size: 14.5px; }
.bm-gaveta-qtd { font-size: 12px; color: var(--bm-texto-3); white-space: nowrap; }
.bm-gaveta summary .bm-seta { transition: transform .15s ease; }
.bm-gaveta[open] summary .bm-seta { transform: rotate(90deg); color: var(--bm-laranja); }
.bm-gaveta ul { list-style: none; margin: 0; padding: 0 6px 8px; border-top: 1px solid var(--bm-borda); }
.bm-gaveta-curso { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; }
.bm-gaveta-curso:hover { background: var(--bm-laranja-claro); }
.bm-capa--p { width: 34px; height: 44px; border-radius: 6px; }
.bm-gaveta-curso-nome { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.25; }
.bm-gaveta-curso-nome small { display: block; font-size: 12px; color: var(--bm-texto-3); font-weight: 400; }
.bm-gaveta-curso .bm-adquirir { padding: 4px 9px; font-size: 11.5px; }

/* ── Celular ──────────────────────────────────────────────────────────── */

@media (max-width: 760px) {
    .bm-busca input { height: 54px; font-size: 16.5px; padding-left: 50px; }
    .bm-busca .bm-lupa { left: 16px; }
    .bm-montadoras { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .bm-montadora { min-height: 54px; padding: 10px 12px; gap: 10px; }
    .bm-montadora .bm-seta { display: none; }
    .bm-carros { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .bm-carro-nome { font-size: 15px; }
    .bm-series, .bm-lista-cursos { grid-template-columns: minmax(0, 1fr); }
    .bm-res-topo { padding: 10px 12px; gap: 10px; }
    .bm-res-foto { width: 72px; height: 46px; }
    .bm-res-nome { font-size: 15.5px; }
    .bm-docs { padding: 4px; }
    .bm-doc { padding: 9px 8px; gap: 10px; }
    .bm-doc-ico { width: 32px; height: 32px; }
    .bm-chips { padding: 10px 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .bm *, .bm *::before, .bm *::after { transition: none !important; animation: none !important; }
}

/* ── Dashboard ────────────────────────────────────────────────────────── */

.bm-dash { position: relative; }

/* topo laranja compacto */
.bm-hero { background: linear-gradient(120deg, #f97316 0%, #f58634 45%, #ea580c 100%); padding: 22px 16px 78px; }
.bm-hero__in { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bm-hero__titulo { margin: 0; color: #fff; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.bm-hero__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bm-hero__badge { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; font-size: 12.5px; font-weight: 600; }
.bm-hero__acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-hero__botao {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px;
    background: #fff; color: #c2410c !important; font-weight: 700; font-size: 14.5px; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.bm-hero__botao svg { width: 17px; height: 17px; fill: #facc15; stroke: #eab308; stroke-width: 1.2; stroke-linejoin: round; }
.bm-hero__botao--forte { background: #9a3412; color: #fff !important; }
.bm-hero__botao:hover { transform: translateY(-1px); }

/* cartão da escolha, por cima do laranja */
.bm-escolha { max-width: 1100px; margin: -58px auto 0; padding: 0 8px; position: relative; z-index: 2; }
.bm-card { background: #fff; border-radius: 18px; box-shadow: 0 12px 40px rgba(16, 24, 40, .12); padding: 24px 26px 26px; }
.bm-pergunta { margin: 0 0 14px; font-size: 20px; font-weight: 800; color: var(--bm-texto); letter-spacing: -.01em; }
.bm-modos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bm-modo {
    display: flex; align-items: center; gap: 14px; padding: 18px 18px; text-align: left; cursor: pointer;
    background: #fff; border: 1.5px solid var(--bm-borda); border-radius: 16px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease;
}
.bm-modo:hover { border-color: #fbd5b5; box-shadow: var(--bm-sombra-alta); transform: translateY(-1px); }
.bm-modo__ico { width: 52px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--bm-laranja-claro); color: var(--bm-laranja); }
.bm-modo__ico .dt-ico { width: 26px; height: 26px; }
.bm-modo__txt { display: flex; flex-direction: column; min-width: 0; }
.bm-modo__nome { font-size: 18px; font-weight: 800; color: var(--bm-texto); }
.bm-modo__desc { font-size: 13.5px; color: var(--bm-texto-3); }
.bm-modo.is-ativo { border-color: var(--bm-laranja); background: var(--bm-laranja-claro); box-shadow: 0 0 0 3px rgba(245, 134, 52, .15); }
.bm-modo.is-ativo .bm-modo__ico { background: var(--bm-laranja); color: #fff; }

/* escolhido: a pergunta some e os botões viram um seletor mais baixo */
.bm-escolha.tem-modo .bm-pergunta { display: none; }
.bm-escolha.tem-modo .bm-modo { padding: 10px 14px; gap: 12px; border-radius: 14px; }
.bm-escolha.tem-modo .bm-modo__ico { width: 38px; height: 38px; border-radius: 10px; }
.bm-escolha.tem-modo .bm-modo__ico .dt-ico { width: 21px; height: 21px; }
.bm-escolha.tem-modo .bm-modo__nome { font-size: 15.5px; }
.bm-escolha.tem-modo .bm-modo__desc { font-size: 12.5px; }

.bm-painel { margin-top: 18px; }
.bm-resultados { margin-top: 14px; }
.bm-resultados:empty { display: none; }
.bm-navegar { margin-top: 20px; }
.bm-painel.is-buscando .bm-exemplos,
.bm-painel.is-buscando .bm-ferramentas { display: none; }

/* placa e OBD-II: pequenos, logo abaixo da busca */
.bm-ferramentas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; margin-top: 14px; }
.bm-ferramenta {
    display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; margin: 0; text-align: left;
    background: var(--bm-cinza); border: 1px solid var(--bm-borda); border-radius: 14px; cursor: pointer; width: 100%;
}
button.bm-ferramenta:hover, .bm-ferramenta[aria-expanded="true"] { border-color: var(--bm-laranja); background: var(--bm-laranja-claro); }
.bm-ferramenta__ico { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; color: var(--bm-laranja); }
.bm-ferramenta__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bm-ferramenta__txt, .bm-obd__campos { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bm-ferramenta__nome { font-weight: 700; font-size: 14.5px; color: var(--bm-texto); }
.bm-ferramenta__desc { font-size: 12.5px; color: var(--bm-texto-3); }
.bm-ferramenta__acao {
    flex: none; display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border: 0; border-radius: 10px;
    background: var(--bm-laranja); color: #fff !important; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.bm-ferramenta__acao:hover { background: var(--bm-laranja-esc); }
.bm-ferramenta.is-bloqueada { cursor: default; }
.bm-obd { cursor: default; }
.bm-obd__linha { display: flex; gap: 6px; margin-top: 5px; }
.bm .bm-obd select, .bm .bm-obd input {
    height: 36px; min-width: 0; margin: 0; padding: 0 10px; border: 1px solid #d0d5dd; border-radius: 10px;
    background: #fff !important; font-size: 13.5px; color: var(--bm-texto); box-shadow: none; outline: none;
}
.bm .bm-obd select { flex: 1 1 40%; }
.bm .bm-obd input { flex: 1 1 45%; text-transform: uppercase; }
.bm .bm-obd select:focus, .bm .bm-obd input:focus { border-color: var(--bm-laranja); }
.bm .bm-obd input:disabled { background: var(--bm-cinza) !important; }
.bm-obd .obd2-quick__btn:disabled { opacity: .5; cursor: default; }

/* painel da placa (o mesmo de antes) dentro do cartão */
.bm .pb-inline-panel.is-open { margin-top: 14px; }
.bm .pb-inline-body { box-shadow: none; border: 1px solid var(--bm-borda); padding: 20px; }

/* Assistente IA e o resto da página depois do cartão */
.bm-ia .ia-dash { margin-top: 18px !important; }
.bm-dash + .bm-ia + .recent-history, .bm-dash + .recent-history { margin-top: 22px; }

@media (max-width: 760px) {
    .bm-hero { padding: 16px 14px 70px; }
    .bm-hero__in { align-items: flex-start; }
    .bm-hero__botao { min-height: 38px; padding: 0 12px; font-size: 13.5px; }
    .bm-card { padding: 18px 14px 18px; border-radius: 16px; }
    .bm-pergunta { font-size: 18px; }
    .bm-modos { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .bm-modo { padding: 14px; }
    .bm-escolha.tem-modo .bm-modos { grid-template-columns: 1fr 1fr; gap: 8px; }
    .bm-escolha.tem-modo .bm-modo { padding: 9px 10px; gap: 8px; }
    .bm-escolha.tem-modo .bm-modo__ico { width: 32px; height: 32px; }
    .bm-escolha.tem-modo .bm-modo__desc { display: none; }
    .bm-escolha.tem-modo .bm-modo__nome { font-size: 14px; line-height: 1.2; }
    .bm-ferramentas { grid-template-columns: minmax(0, 1fr); }
}

/* ── O CSS antigo do dashboard força OpenSans 400 em tudo (até com !important):
      dentro da busca valem a fonte e os pesos daqui ──────────────────────── */
.bm, .bm p, .bm span, .bm a, .bm li, .bm button, .bm input, .bm select, .bm label,
.bm h1, .bm h2, .bm h3, .bm small, .bm mark, .bm summary {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 400 !important;
}
.bm .bm-hero__titulo, .bm .bm-pergunta, .bm .bm-modo__nome { font-weight: 800 !important; }
.bm .bm-res-nome, .bm .bm-bloco-titulo, .bm .bm-montadora-nome, .bm .bm-serie-nome, .bm .bm-carro-nome,
.bm .bm-ferramenta__nome, .bm .bm-ferramenta__acao, .bm .bm-adquirir, .bm .bm-secao, .bm .bm-trilha span,
.bm .bm-hero__botao { font-weight: 700 !important; }
.bm .bm-chip, .bm .bm-exemplos button, .bm .bm-mais, .bm .bm-hero__badge, .bm .bm-gaveta-nome { font-weight: 600 !important; }
.bm .bm-doc-nome, .bm .bm-trilha a, .bm .bm-cadeado, .bm .bm-gaveta-curso-nome { font-weight: 500 !important; }
.bm .bm-gaveta-curso-nome small { font-weight: 400 !important; }
.bm .bm-obd input::placeholder { text-transform: none; }
.bm .bm-obd .obd2-quick__btn:disabled { background: #d0d5dd; opacity: 1; }

/* Informações técnicas: Montadora → Veículo → Versão (três caixas na mesma linha) */
.bm-escolher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bm-combo { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; transition: opacity .15s; }
.bm-combo.is-desligado { opacity: .55; }
.bm-combo-titulo { font-weight: 700; font-size: 13px; color: var(--bm-texto-2); padding-left: 2px; }
.bm-combo-campo { position: relative; display: block; }
.bm-combo-campo select {
    width: 100%; height: 48px; padding: 0 50px 0 14px; border: 1.5px solid var(--bm-borda); border-radius: 12px;
    background: #fff; -webkit-appearance: none; -moz-appearance: none; appearance: none; box-shadow: var(--bm-sombra);
    font: inherit; font-size: 15px; font-weight: 600; color: var(--bm-texto); cursor: pointer; text-overflow: ellipsis;
    transition: border-color .15s, box-shadow .15s;
}
.bm-combo-campo select:disabled { cursor: not-allowed; background: var(--bm-cinza); }
.bm-combo-campo select:not(:disabled):hover { border-color: #fbd5b5; }
.bm-combo-campo select:focus { outline: none; border-color: var(--bm-laranja); box-shadow: 0 0 0 4px rgba(245, 134, 52, .15); }
.bm-combo-campo::after {
    content: ""; position: absolute; right: 8px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 9px;
    background: var(--bm-laranja) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    pointer-events: none;
}
.bm-combo.is-desligado .bm-combo-campo::after { background-color: #c5cad3; }
@media (max-width: 700px) { .bm-escolher { grid-template-columns: 1fr; } }

/* Informações técnicas / Cursos: seletor segmentado no alto do cartão (sem a faixa laranja) */
.bm-dash .bm-escolha { margin-top: 24px; }
.bm-modos-topo {
    display: flex; gap: 4px; margin: 0 0 16px; padding: 4px; border-radius: 12px; background: var(--bm-cinza); width: fit-content; max-width: 100%;
}
.bm .bm-modo-topo {
    display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border: 0; border-radius: 9px; cursor: pointer;
    background: transparent; color: var(--bm-texto-2) !important; font: inherit; font-size: 14px; font-weight: 600 !important; line-height: 1; white-space: nowrap;
    transition: background-color .18s, color .18s, box-shadow .18s;
}
.bm-modo-topo .dt-ico { width: 17px; height: 17px; }
.bm .bm-modo-topo:hover { color: var(--bm-texto) !important; }
.bm .bm-modo-topo[aria-selected="true"] { background: #fff; color: var(--bm-laranja-esc) !important; font-weight: 700 !important; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.bm-modo-topo:focus-visible { outline: 2px solid var(--bm-laranja); outline-offset: 2px; }
@media (max-width: 480px) { .bm-modos-topo { width: 100%; } .bm .bm-modo-topo { flex: 1; justify-content: center; padding: 0 8px; font-size: 13px; } }

/* versão escolhida mostrada na própria página inicial */
.bm-versao-area { margin-top: 16px; }
.bm-versao-area > .bm-carregando { padding: 18px; background: #fff; border-radius: 14px; }
.bm-versao-area .dt.dt-embutido { max-width: none; padding: 0; margin: 0; }

/* espaço em cima e embaixo da página inicial */
.bm-dash .bm-escolha { margin-top: 32px; padding-bottom: 48px; }
@media (max-width: 720px) { .bm-dash .bm-escolha { margin-top: 18px; padding-bottom: 32px; } }

/* "ou busque pela placa" logo abaixo das caixas */
.bm-ou-placa { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.bm-ou { font-size: 13px; color: var(--bm-texto-3); }
.bm .bm-placa-link {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; cursor: pointer; text-decoration: none;
    border: 1.5px dashed #f6b987; border-radius: 10px; background: var(--bm-laranja-claro);
    color: var(--bm-laranja-esc) !important; font: inherit; font-size: 14px; font-weight: 700 !important;
    transition: background-color .15s, border-color .15s;
}
.bm .bm-placa-link:hover { border-style: solid; border-color: var(--bm-laranja); }
.bm-placa-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.bm-placa-link small { font-weight: 500; color: var(--bm-texto-3); }
.bm-selecao .pb-inline-panel.is-open { margin-top: 14px; }

/* "Selecionar novo veículo" (só no celular, depois de escolher a versão): abre e fecha a seleção */
.bm-trocar-veiculo { display: none; }
@media (max-width: 720px) {
    .bm-painel.is-recolhido .bm-selecao { display: none; }
    .bm-painel.tem-versao .bm-trocar-veiculo {
        display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; cursor: pointer;
        border: 1.5px solid var(--bm-laranja); border-radius: 12px; background: var(--bm-laranja-claro);
        font: inherit; font-size: 15px; margin-bottom: 12px;
    }
    .bm .bm-painel.tem-versao .bm-trocar-veiculo { color: var(--bm-laranja-esc) !important; font-weight: 700 !important; }
    .bm-painel.is-recolhido .bm-trocar-veiculo { margin-bottom: 0; }
    .bm-trocar-veiculo .dt-ico { width: 19px; height: 19px; }
    .bm-trocar-seta { width: 18px; height: 18px; transition: transform .2s; }
    .bm-painel:not(.is-recolhido) .bm-trocar-seta { transform: rotate(180deg); }
    .bm-ou-placa { justify-content: center; }
}
@media (max-width: 480px) {
    .bm .bm-modo-topo { min-width: 0; padding: 0 6px; gap: 5px; font-size: 12.5px; }
    .bm-modo-topo .dt-ico { width: 15px; height: 15px; flex: none; }
}
@media (max-width: 380px) { .bm-modo-topo .dt-ico { display: none; } }

/* painel da placa embutido na página inicial: compacto e discreto */
.bm-selecao .pb-inline-panel.is-open { margin-top: 10px; }
.bm-selecao .pb-inline-body { max-width: 520px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--bm-borda); box-shadow: none; background: #fff; }
.bm-selecao .pb-tabs { display: inline-flex; gap: 2px; margin: 0 0 10px; padding: 3px; border: 0; border-radius: 9px; background: var(--bm-cinza); }
.bm .bm-selecao .pb-tab { height: 28px; padding: 0 10px; border: 0; border-radius: 7px; font-size: 12.5px !important; font-weight: 600 !important; color: var(--bm-texto-2) !important; background: transparent; margin: 0; }
.bm .bm-selecao .pb-tab.active { background: #fff; color: var(--bm-laranja-esc) !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }
.bm-selecao #pb-tab-digitar { display: flex; gap: 8px; align-items: center; }
.bm-selecao #pb-tab-digitar[style*="none"] { display: none !important; }
.bm-selecao .pb-input-wrap { flex: 1; margin: 0; }
.bm-selecao .pb-placa-input { height: 40px; padding: 0 12px 0 34px; font-size: 15px; letter-spacing: 2px; border-width: 1.5px; border-radius: 9px; box-shadow: none; }
.bm-selecao .pb-placa-input::placeholder { font-size: 14px; letter-spacing: 1.5px; }
.bm-selecao .pb-input-ico { left: 12px; font-size: 13px; }
.bm-selecao #pb-tab-digitar .pb-btn { width: auto; height: 40px; padding: 0 16px; margin: 0; font-size: 13.5px; border-radius: 9px; white-space: nowrap; }
.bm-selecao .pb-full-link { margin-top: 8px; padding-top: 0; border-top: 0; text-align: left; font-size: 12px; }
.bm-selecao .pb-full-link a { font-size: 12px; }
@media (max-width: 480px) { .bm-selecao .pb-inline-body { max-width: none; } }
.bm-selecao .pb-placa-input, .bm-selecao .pb-placa-input:focus { outline: none !important; box-shadow: none !important; } .bm-selecao .pb-placa-input:focus { box-shadow: 0 0 0 3px rgba(245, 134, 52, .15) !important; }

/* Cursos: faixa de séries que rola para o lado (sem capas) */
.bm-faixa-dica { margin: 4px 0 10px; text-align: center; font-size: 14px; color: var(--bm-texto-2); }
.bm-faixa-series {
    display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity;
    scrollbar-width: thin; scrollbar-color: #c5cad3 transparent;
}
.bm-faixa-series::-webkit-scrollbar { height: 6px; }
.bm-faixa-series::-webkit-scrollbar-thumb { background: #c5cad3; border-radius: 6px; }
.bm .bm-faixa-serie {
    flex: none; display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px; scroll-snap-align: start;
    background: #fff; border: 1px solid var(--bm-borda); border-radius: 12px; box-shadow: var(--bm-sombra);
    color: var(--bm-texto) !important; font-size: 15px; font-weight: 500 !important; white-space: nowrap; text-decoration: none;
    transition: border-color .15s, background-color .15s;
}
.bm .bm-faixa-serie:hover { border-color: #fbd5b5; }
.bm-faixa-ponto { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; }
.bm .bm-faixa-serie.is-ativa { background: var(--bm-laranja-claro); border-color: var(--bm-laranja); color: var(--bm-laranja-esc) !important; font-weight: 700 !important; }
.bm-faixa-serie.is-ativa .bm-faixa-ponto { background: var(--bm-laranja); }
.bm-faixa-cursos { margin-top: 14px; }
.bm-curso-sem-capa .bm-res-topo { padding-left: 16px; }

/* caixas de seleção pesquisáveis (digitar para filtrar) */
.cb-escondido { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; }
.bm-combo-campo .cb-entrada, .dt-combo-campo .cb-entrada {
    width: 100%; height: 48px; padding: 0 50px 0 14px; border: 1.5px solid #e7eaf0; border-radius: 12px; background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06); font: inherit; font-size: 15px; font-weight: 600; color: #101828;
    text-overflow: ellipsis; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.bm-combo-campo .cb-entrada::placeholder, .dt-combo-campo .cb-entrada::placeholder { color: #98a2b3; font-weight: 500; }
.bm-combo-campo .cb-entrada:hover:not(:disabled), .dt-combo-campo .cb-entrada:hover:not(:disabled) { border-color: #fbd5b5; }
.bm-combo-campo .cb-entrada:focus, .dt-combo-campo .cb-entrada:focus { outline: none; cursor: text; border-color: #f58634; box-shadow: 0 0 0 4px rgba(245, 134, 52, .15); }
.bm-combo-campo .cb-entrada:disabled, .dt-combo-campo .cb-entrada:disabled { cursor: not-allowed; background: #f4f5f7; }
.bm-combo-campo.is-aberto::after, .dt-combo-campo.is-aberto::after { transform: rotate(180deg); }
.cb-lista {
    position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); max-height: 300px; overflow-y: auto; margin: 0; padding: 6px;
    list-style: none; background: #fff; border: 1px solid #e7eaf0; border-radius: 12px; box-shadow: 0 16px 40px rgba(16, 24, 40, .16);
}
.cb-lista[hidden] { display: none; }
.cb-op { padding: 9px 12px; border-radius: 8px; font-size: 14.5px; color: #101828; cursor: pointer; line-height: 1.3; }
.cb-op.is-ativo { background: #fff1e7; }
.cb-op.is-sel { font-weight: 700; color: #e0732a; }
.cb-nada { padding: 10px 12px; font-size: 14px; color: #667085; }
.bm-escolher--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .bm-escolher--2 { grid-template-columns: 1fr; } }

/* capítulos do treinamento (abas Vídeos / Apostila) na página inicial */
.bm-curso-area { margin-top: 16px; padding: 20px 22px; background: #fff; border-radius: 18px; box-shadow: 0 12px 40px rgba(16, 24, 40, .08); scroll-margin-top: 80px; }
.bm-curso-area > .bm-carregando { margin: 0; }
.bm-curso-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bm .bm-curso-titulo { margin: 0; font-size: 20px; font-weight: 800 !important; color: var(--bm-texto); }
.bm-curso-sub { margin: 2px 0 0; font-size: 14px; color: var(--bm-texto-3); }
.bm .bm-curso-pagina { flex: none; font-size: 13px; font-weight: 600 !important; color: var(--bm-laranja-esc) !important; text-decoration: none; white-space: nowrap; }
.bm-curso-abas { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bm-cinza); width: fit-content; margin-bottom: 14px; }
.bm .bm-curso-abas button {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border: 0; border-radius: 9px; cursor: pointer;
    background: transparent; font: inherit; font-size: 14px; font-weight: 600 !important; color: var(--bm-texto-2) !important;
}
.bm-curso-abas button span { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: #e4e7ec; color: var(--bm-texto-2); }
.bm .bm-curso-abas button[aria-selected="true"] { background: #fff; color: var(--bm-laranja-esc) !important; font-weight: 700 !important; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.bm-curso-abas button[aria-selected="true"] span { background: var(--bm-laranja-claro); color: var(--bm-laranja-esc); }
.bm-cap { border: 1px solid var(--bm-borda); border-radius: 12px; margin-bottom: 8px; background: #fff; overflow: hidden; }
.bm-cap summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.bm-cap summary::-webkit-details-marker { display: none; }
.bm-cap-num { width: 28px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--bm-laranja-claro); color: var(--bm-laranja-esc); font-weight: 700; font-size: 13px; }
.bm .bm-cap-nome { flex: 1; min-width: 0; font-weight: 700 !important; font-size: 15px; color: var(--bm-texto); }
.bm-cap-qtd { font-size: 12px; color: var(--bm-texto-3); }
.bm-cap-seta { width: 18px; height: 18px; color: var(--bm-texto-3); transition: transform .2s; }
.bm-cap[open] .bm-cap-seta { transform: rotate(180deg); }
.bm-cap ul { list-style: none; margin: 0; padding: 0 8px 8px; border-top: 1px solid var(--bm-borda); }
.bm .bm-aula { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 8px; color: var(--bm-texto) !important; text-decoration: none; font-size: 14px; }
.bm .bm-aula:hover { background: var(--bm-laranja-claro); color: var(--bm-laranja-esc) !important; }
.bm-aula svg { width: 18px; height: 18px; flex: none; color: var(--bm-laranja); }
.bm-aula.is-travada { opacity: .55; cursor: not-allowed; }
.bm-curso-aviso { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--bm-laranja-claro); font-size: 14px; color: var(--bm-texto-2); }
.bm-curso-vazio { margin: 0; padding: 14px; color: var(--bm-texto-3); font-size: 14px; }
@media (max-width: 720px) { .bm-curso-area { padding: 14px; } .bm-curso-topo { flex-direction: column; gap: 4px; } }

.bm-curso-iniciar { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 16px; border: 1.5px dashed #f6b987; border-radius: 14px; background: var(--bm-laranja-claro); text-align: center; }
.bm-curso-iniciar p { margin: 0; font-size: 15px; color: var(--bm-texto-2); }
.bm .bm-curso-iniciar-btn { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer; background: var(--bm-laranja); color: #fff !important; font: inherit; font-size: 15px; font-weight: 700 !important; text-decoration: none; box-shadow: 0 6px 16px rgba(245, 134, 52, .3); }
.bm .bm-curso-iniciar-btn:disabled { opacity: .7; cursor: wait; }

/* player da aula na própria página inicial */
.bm-player { margin-bottom: 14px; border-radius: 14px; overflow: hidden; background: #0c1526; box-shadow: 0 12px 30px rgba(16, 24, 40, .18); scroll-margin-top: 80px; }
.bm-player[hidden] { display: none; }
.bm-player-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; color: #fff; font-size: 14px; font-weight: 600; }
.bm-player-fechar { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; font-size: 14px; }
.bm-player-video { position: relative; padding-top: 56.25%; }
.bm-player-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bm .bm-aula.is-tocando { background: var(--bm-laranja-claro); color: var(--bm-laranja-esc) !important; font-weight: 700; }
/* aula aberta por um resultado da busca */
.bm .bm-aula.is-achada { background: var(--bm-laranja-claro); color: var(--bm-laranja-esc) !important; font-weight: 700; box-shadow: inset 3px 0 0 var(--bm-laranja); scroll-margin: 90px 0; }
/* player menor */
.bm-player { max-width: 640px; }
.bm-player-topo { padding: 8px 12px; font-size: 13px; }
.bm-player-fechar { width: 26px; height: 26px; font-size: 12px; }
@media (max-width: 720px) { .bm-player { max-width: none; } }

/* carregando a aula */
.bm-player-carregando { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #0c1526; color: rgba(255, 255, 255, .85); font-size: 14px; }
.bm-player.is-carregando .bm-player-carregando { display: flex; }
.bm-girando { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .18); border-top-color: #f58634; animation: bm-gira .8s linear infinite; }
@keyframes bm-gira { to { transform: rotate(360deg); } }

/* aula/apostila de um treinamento fora do acesso (dashboard): o cadeado no fim; o clique leva à página do produto */
.bm .bm-aula .bm-aula-cadeado { margin-left: auto; width: 16px; height: 16px; flex: none; color: var(--bm-texto-3); }
