/*
 * Comparador Figarin. Sistema de design (dez/2026).
 * Hierarquia visual (do que as pessoas mais procuram para o menos): preço > plano > hospitais > quarto, coparticipação,
 * carência, abrangência, reembolso > ação. Tokens com especificidade zero: o tema pode redefinir em :root.
 * Padrões de comparadores (Booking, Kayak, Amazon): busca numa linha, filtros numa coluna fixa, filtros rápidos e
 * ordenação numa barra, card com o preço e um botão principal à direita, bandeja de comparação e detalhe em painel.
 * Botão ciano = falar com a Figarin; botão escuro = buscar e navegar. Ciano e menta nunca são cor de texto sobre branco.
 */
:where(:root) {
	--ink: #131313; --cyan: #01FFFF; --mint: #08FFBE; --paper: #F9F9F9;
	--bg: #F2F6F6; --surface: #FFFFFF; --fg: #131313; --fg-2: #2F3A3A; --muted: #566363;
	--line: #DCE5E5; --line-2: #C3D0D0; --campo: #839696; --soft: #EAF1F1; --soft2: #F6F9F9;
	--accent-text: #00676C; --accent-soft: #DFF8F8; --on-accent: #131313;
	--good: #0A6446; --good-bg: #DDF7EC; --warn: #7A4B00; --warn-bg: #FFF3DA; --bad: #9B1C1C; --bad-bg: #FDE7E7;
	--hero: #0D1010; --hero-2: #151A1A; --hero-fg: #F7F9F9; --hero-muted: #AEBBBB; --hero-line: rgba(255,255,255,.14); --glass: rgba(255,255,255,.08);
	--shadow-sm: 0 1px 2px rgba(16,32,32,.06);
	--shadow: 0 1px 2px rgba(16,32,32,.05), 0 10px 28px rgba(16,40,40,.07);
	--shadow-lg: 0 28px 70px rgba(0,0,0,.34);
	--anel: 0 0 0 3px rgba(1,255,255,.45);
	--font: "Parkinsans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--r: 20px; --r-md: 14px; --r-sm: 10px;
	--sec: clamp(48px, 6.5vw, 80px);
	--cvf-topo: 64px; --cvf-adm: 0px;
	--cvf-seta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131313' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.cvf { font-family: var(--font); color: var(--fg); }
.cvf *, .cvf *::before, .cvf *::after { box-sizing: border-box; }
.cvf p { margin: 0; }
.cvf h1, .cvf h2, .cvf h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.cvf img { display: block; max-width: 100%; }
.cvf button, .cvf input, .cvf select { font: inherit; color: inherit; }
.cvf [hidden] { display: none !important; }
.cvf :focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; box-shadow: 0 0 0 4px var(--ink); }
.cvf svg { flex: none; }
.cvf-wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.cvf .muted { color: var(--muted); font-size: 14px; }
.cvf .op-logo { height: 28px; width: auto; max-width: 132px; object-fit: contain; object-position: left center; }
.cvf select { -webkit-appearance: none; appearance: none; background-image: var(--cvf-seta); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; cursor: pointer; text-overflow: ellipsis; }

/* Botões */
.cvf .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 999px; padding: 10px 22px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.cvf .btn:active { transform: translateY(1px); }
.cvf .btn svg { width: 18px; height: 18px; }
.cvf .btn.primary { background: var(--cyan); color: var(--on-accent); box-shadow: inset 0 0 0 1px rgba(0,80,84,.22), 0 8px 20px rgba(1,214,214,.26); }
.cvf .btn.primary:hover { background: var(--mint); box-shadow: inset 0 0 0 1px rgba(0,80,60,.24), 0 10px 24px rgba(8,230,170,.32); transform: translateY(-1px); }
.cvf .btn.ghost { background: var(--surface); border-color: var(--line-2); color: var(--fg); }
.cvf .btn.ghost:hover { border-color: var(--fg); background: var(--soft2); }
.cvf .btn.dark { background: var(--ink); color: var(--paper); }
.cvf .btn.dark:hover { background: #263131; }
.cvf .btn.lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.cvf .btn.block { width: 100%; }
.cvf .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.cvf .linkbtn { border: 0; background: transparent; color: var(--accent-text); cursor: pointer; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; justify-self: start; border-radius: 6px; }
.cvf .linkbtn:hover { text-decoration-thickness: 2px; }

/* ---------- Topo: título à esquerda, foto à direita (visível, ao lado do texto) e a busca numa linha embaixo.
   A foto ocupa uma faixa de altura fixa no alto: assim os rostos ficam sempre acima da busca, em qualquer largura. ---------- */
.cvf-hero { position: relative; overflow: hidden; color: var(--hero-fg); background: var(--hero); isolation: isolate; }
.cvf-hero .hero-bg { position: absolute; inset: 0 0 auto auto; width: 62%; height: 430px; object-fit: cover; object-position: 50% 62%; z-index: -2; }
.cvf-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
	linear-gradient(90deg, var(--hero) 0%, var(--hero) 38%, rgba(13,16,16,.6) 50%, rgba(13,16,16,.14) 66%, rgba(13,16,16,.04) 100%),
	linear-gradient(180deg, rgba(13,16,16,0) 0, rgba(13,16,16,0) 300px, var(--hero) 430px); }
.cvf-hero .hero-in { padding-block: 52px 30px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.cvf .hero-copy { display: grid; gap: 14px; max-width: 620px; }
.cvf .pill { justify-self: start; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--hero-line); background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 6px 14px 6px 10px; font-size: 14px; color: #D6DFDF; }
.cvf .pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(8,255,190,.2); flex: none; }
.cvf-hero h1 { font-size: clamp(31px, 4vw, 50px); line-height: 1.05; color: var(--hero-fg); }
.cvf-hero h1 em { font-style: normal; color: var(--cyan); }
.cvf-hero .lead { color: #D6DFDF; font-size: 18px; line-height: 1.5; max-width: 60ch; }
.cvf .trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; color: #D6DFDF; font-size: 15px; }
.cvf .trust li { display: inline-flex; gap: 8px; align-items: center; }
.cvf .trust svg { width: 18px; height: 18px; color: var(--mint); }
.cvf .trust b { color: var(--hero-fg); font-weight: 600; }
@media (max-width: 900px) {
	.cvf-hero .hero-bg { inset: 0; width: 100%; height: 100%; object-position: 72% 18%; }
	.cvf-hero::before { background: linear-gradient(180deg, rgba(9,12,12,.8), rgba(9,12,12,.95)); }
	.cvf-hero .hero-in { padding-block: 24px 26px; gap: 16px; }
	.cvf .hero-copy { gap: 10px; }
	.cvf-hero .lead { font-size: 16px; }
	.cvf .pill { font-size: 13px; }
}

/* Busca (no topo ou compacta). No computador: campo de texto e botão na 1ª linha, os quatro campos na 2ª. */
.cvf .search { background: var(--surface); color: var(--fg); border-radius: var(--r); padding: 14px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; box-shadow: var(--shadow-lg); }
.cvf-compacta { padding-block: 28px 0; }
.cvf-compacta .search { box-shadow: var(--shadow); border: 1px solid var(--line); }
.cvf .smart { grid-column: 1 / 4; grid-row: 1; display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: var(--r-md); padding: 0 16px; min-height: 56px; border: 1px solid transparent; cursor: text; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.cvf .smart:hover { border-color: var(--line-2); }
.cvf .smart:focus-within { border-color: var(--accent-text); background: var(--surface); box-shadow: var(--anel); }
.cvf .smart svg { width: 20px; height: 20px; color: var(--muted); }
.cvf .smart input { border: 0; background: transparent; outline: none; box-shadow: none; width: 100%; font-size: 16px; min-width: 0; padding: 12px 0; }
.cvf .smart input::placeholder { color: var(--muted); opacity: 1; }
.cvf .smart input::-webkit-search-cancel-button { cursor: pointer; }
.cvf .understood { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); align-items: center; padding-inline: 4px; }
.cvf .understood:empty { display: none; }
.cvf .understood b { font-weight: 500; color: var(--good); background: var(--good-bg); border-radius: 999px; padding: 3px 10px; }
.cvf .fields { display: contents; }
.cvf .search .f-enviar { grid-column: 4; grid-row: 1; border-radius: var(--r-md); min-height: 56px; padding-inline: 20px; }
.cvf .field { border: 1px solid var(--campo); border-radius: var(--r-md); padding: 8px 12px; display: grid; gap: 4px; min-width: 0; margin: 0; align-content: start; background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
.cvf .field:hover { border-color: var(--fg); }
.cvf .field:focus-within { border-color: var(--accent-text); box-shadow: var(--anel); }
.cvf .fl { font-size: 13px; color: var(--muted); font-weight: 600; padding: 0; line-height: 1.4; }
.cvf .field select { border: 0; background-color: transparent; background-position: right 0 center; font-size: 16px; min-height: 40px; padding: 0 26px 0 0; width: 100%; font-weight: 500; }
.cvf .field select:focus-visible { outline: none; box-shadow: none; }
.cvf .ages { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cvf .age { display: inline-flex; align-items: center; background: var(--soft); border-radius: 999px; padding: 0 2px 0 12px; min-height: 40px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.cvf .age button { border: 0; background: transparent; cursor: pointer; width: 34px; height: 40px; border-radius: 999px; color: var(--muted); display: grid; place-items: center; font-size: 19px; line-height: 1; padding: 0; }
.cvf .age button:hover { color: var(--bad); background: rgba(155,28,28,.08); }
.cvf .addage { display: inline-flex; align-items: center; gap: 6px; }
.cvf .addage input::-webkit-inner-spin-button, .cvf .addage input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cvf .addage input { -moz-appearance: textfield; appearance: textfield; width: 76px; height: 40px; border: 1px dashed var(--campo); border-radius: 999px; padding: 0 12px; background: transparent; font-size: 16px; }
.cvf .addage input::placeholder { color: var(--muted); opacity: 1; }
.cvf .addage input:focus-visible { outline: none; border-style: solid; border-color: var(--accent-text); box-shadow: var(--anel); }
.cvf .addage button { border: 0; background: var(--fg); color: var(--surface); border-radius: 50%; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; cursor: pointer; transition: background .15s ease; }
.cvf .addage button:hover { background: var(--accent-text); }
.cvf .seg { display: flex; flex-wrap: wrap; gap: 6px; }
.cvf .seg label { cursor: pointer; position: relative; }
.cvf .seg input { position: absolute; opacity: 0; pointer-events: none; }
.cvf .seg span { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 14px; font-size: 15px; font-weight: 500; background: var(--surface); white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.cvf .seg label:hover span { border-color: var(--fg); }
.cvf .seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.cvf .seg input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; box-shadow: 0 0 0 4px var(--ink); }
/* Seletor de 3 opções em bloco (como vai contratar, quarto, coparticipação) */
.cvf .f-perfil .seg, .cvf .seg-full { flex-wrap: nowrap; gap: 3px; background: var(--soft); border-radius: 12px; padding: 3px; }
.cvf .f-perfil .seg label, .cvf .seg-full label { flex: 1 1 auto; }
.cvf .f-perfil .seg span, .cvf .seg-full span { display: flex; width: 100%; min-height: 34px; border: 0; border-radius: 9px; padding: 0 8px; background: transparent; font-size: 14.5px; color: var(--fg-2); }
.cvf .f-perfil .seg label:hover span, .cvf .seg-full label:hover span { background: rgba(255,255,255,.7); }
.cvf .f-perfil .seg input:checked + span, .cvf .seg-full input:checked + span { background: var(--ink); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
@media (max-width: 1100px) {
	.cvf .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.cvf .smart { grid-column: 1 / -1; grid-row: auto; }
	.cvf .search .f-enviar { grid-column: 1 / -1; grid-row: auto; order: 9; min-height: 52px; }
}
@media (max-width: 600px) {
	.cvf .search { gap: 8px; }
	.cvf .smart { min-height: 52px; }
	.cvf .f-quem, .cvf .f-perfil, .cvf .f-hosp, .cvf .f-cidade { grid-column: 1 / -1; }
	.cvf .search { padding: 10px; }
	.cvf .field { padding-inline: 10px; }
	.cvf .age, .cvf .age button, .cvf .addage input, .cvf .addage button { min-height: 44px; height: 44px; }
	.cvf .age { padding-left: 10px; }
	.cvf .age button { width: 30px; }
	.cvf .addage { gap: 4px; }
	.cvf .addage input { width: 62px; padding: 0 8px; text-align: center; }
	.cvf .addage button { width: 44px; }
	.cvf .hero-copy { display: contents; }
	.cvf .hero-copy .pill { order: 5; }
	.cvf .hero-pe { order: 6; }
	.cvf-hero h1 { font-size: clamp(27px, 7.6vw, 31px); }
	.cvf-hero .hero-in { gap: 12px; padding-block: 20px 24px; }
	.cvf .search { margin-top: 4px; }
	.cvf .f-perfil .seg span { min-height: 40px; font-size: 15px; }
	.cvf .field select { min-height: 44px; }
	.cvf .f-hosp, .cvf .f-cidade { padding-block: 2px; }
	.cvf .f-hosp .fl, .cvf .f-cidade .fl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Busca de exemplo: a página abre com um exemplo; a marca some quando a pessoa mexe na busca ou informa as idades */
.cvf .ex-selo { display: none; margin-left: 6px; background: var(--ink); color: var(--mint); font-size: 12.5px; font-weight: 600; font-style: normal; line-height: 1.3; border-radius: 999px; padding: 1px 9px; vertical-align: 1px; }
.cvf .ex-dica { display: none; font-size: 13.5px; font-weight: 500; color: var(--accent-text); line-height: 1.35; }
.cvf .ex-sim, .cvf .ex-trocar { display: none; }
.cvf.is-exemplo .ex-selo { display: inline-block; }
.cvf.is-exemplo .ex-dica { display: block; }
.cvf.is-exemplo .ex-sim { display: inline; }
.cvf.is-exemplo .ex-nao { display: none; }
.cvf.is-exemplo .ex-trocar { display: inline-flex; }
.cvf.is-exemplo .f-quem { border-color: var(--accent-text); box-shadow: var(--anel); }
.cvf.is-exemplo .f-quem .age { background: var(--accent-soft); }
@media (max-width: 600px) { .cvf .ex-trocar { width: 100%; } }

/* Faixa de operadoras (logos em cor) */
.cvf .ops-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.cvf .ops-band .cvf-wrap { padding-block: 22px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.cvf .ops-band p { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.cvf .ops-band .logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; }
.cvf .ops-band a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 10px; transition: background .15s ease, transform .15s ease; }
.cvf .ops-band a:hover { background: var(--soft2); transform: translateY(-2px); }
.cvf .ops-band img { height: 28px; width: auto; max-width: 132px; object-fit: contain; }
@media (max-width: 640px) {
	.cvf .ops-band .cvf-wrap { padding-block: 14px 10px; gap: 6px; justify-items: stretch; }
	.cvf .ops-band .logos { flex-wrap: nowrap; justify-content: flex-start; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); scroll-snap-type: x proximity; }
	.cvf .ops-band .logos::-webkit-scrollbar { display: none; }
	.cvf .ops-band a { flex: none; scroll-snap-align: start; }
	.cvf .ops-band img { height: 24px; max-width: 104px; }
}

/* ---------- Resultados: coluna de filtros + lista ---------- */
.cvf .results { position: relative; padding-block: 32px var(--sec); background: var(--bg); }
.cvf:not(.is-ready):not(.is-offline) .results::before { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 34%; background: linear-gradient(90deg, rgba(1,255,255,0), var(--cyan), rgba(8,255,190,0)); animation: cvf-carga 1.1s ease-in-out 6 forwards; }
@keyframes cvf-carga { from { transform: translateX(-100%); opacity: 1; } to { transform: translateX(300%); opacity: 0; } }
.cvf .res-grid { display: grid; grid-template-columns: 304px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1100px) { .cvf .res-grid { grid-template-columns: minmax(0, 1fr); } }

/* Coluna de filtros */
.cvf .side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--cvf-topo) + var(--cvf-adm) + 16px); display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 18px 16px; max-height: calc(100vh - var(--cvf-topo) - var(--cvf-adm) - 32px); overflow: auto; overscroll-behavior: contain; box-shadow: var(--shadow-sm); scrollbar-width: thin; }
/* A coluna do filtro nunca fica mais larga que a caixa: sem isto, o controle "Todos | Enfermaria | Apartamento"
   (que não quebra linha) forçava a largura e tudo vazava para a direita, por cima da barra de rolagem. */
.cvf .side { grid-template-columns: minmax(0, 1fr); scrollbar-gutter: stable; }
.cvf .side > * { min-width: 0; }
.cvf .side .seg-full { min-width: 0; }
.cvf .side .seg-full label { flex: 1 1 auto; min-width: 0; }
.cvf .side .seg-full span { padding: 0 4px; overflow: hidden; text-overflow: ellipsis; }
.cvf .side-head .linkbtn { flex: none; }
.cvf .side-top, .cvf .side-foot { display: none; }
.cvf .side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.cvf .side-tit2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.cvf .side-head .linkbtn { font-size: 14px; }
.cvf .resumo { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cvf .resumo-quem { font-size: 16px; font-weight: 600; margin-top: 2px; }
.cvf .resumo .linkbtn { margin-top: 2px; }
.cvf .ft { display: block; font-size: 14px; font-weight: 600; color: var(--fg); }
.cvf .resumo .ft { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.cvf .fgroup { display: grid; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cvf .fgroup > p.ft { margin: 0; }
.cvf .fgroup select { width: 100%; min-height: 44px; border: 1px solid var(--campo); border-radius: 12px; padding: 0 36px 0 12px; background-color: var(--surface); font-size: 15px; font-weight: 500; transition: border-color .15s ease, box-shadow .15s ease; }
.cvf .fgroup select:hover { border-color: var(--fg); }
.cvf .fgroup select:focus-visible { outline: none; border-color: var(--accent-text); box-shadow: var(--anel); }
.cvf .seg-full span { min-height: 38px; font-size: 13.5px; }
.cvf .help { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.cvf .switch { display: flex; align-items: center; gap: 12px; min-height: 40px; cursor: pointer; font-size: 15px; font-weight: 500; position: relative; }
.cvf .switch input { position: absolute; opacity: 0; pointer-events: none; }
.cvf .switch .sw { width: 44px; height: 26px; border-radius: 999px; background: var(--campo); position: relative; transition: background .15s ease; flex: none; }
.cvf .switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s ease; }
.cvf .switch input:checked + .sw { background: var(--accent-text); }
.cvf .switch input:checked + .sw::after { transform: translateX(18px); }
.cvf .switch input:focus-visible + .sw { outline: 2px solid var(--cyan); outline-offset: 2px; box-shadow: 0 0 0 4px var(--ink); }
.cvf .check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; cursor: pointer; border-radius: 8px; }
.cvf .check input { width: 20px; height: 20px; accent-color: var(--accent-text); flex: none; margin: 0; cursor: pointer; }
.cvf .check.off { opacity: .55; cursor: default; }
.cvf .check.off input { cursor: not-allowed; }
.cvf .ops-list { display: grid; gap: 4px; }
.cvf .ops-list:empty::before { content: "Carregando operadoras…"; font-size: 14px; color: var(--muted); }
.cvf .check.op { align-items: center; padding: 6px 0; min-height: 48px; }
.cvf .op-n { display: grid; gap: 1px; min-width: 0; }
.cvf .op-n img { height: 20px; width: auto; max-width: 104px; object-fit: contain; object-position: left center; margin-bottom: 3px; }
.cvf .op-n > span { font-size: 14px; font-weight: 500; }
.cvf .op-n small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cvf .porque { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cvf .porque summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--fg); min-height: 32px; }
.cvf .porque .notes { display: grid; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.cvf .porque b { color: var(--fg); font-weight: 600; }
.cvf .side .fgroup:last-of-type { border-bottom: 0; padding-bottom: 4px; }

/* A coluna vira painel de tela cheia no celular */
.cvf .abrir-filtros { display: none; }
@media (max-width: 1100px) {
	.cvf .abrir-filtros { display: inline-flex; }
	.cvf .side { position: fixed; inset: 0; z-index: 60; max-height: none; border-radius: 0; border: 0; box-shadow: none; padding: env(safe-area-inset-top, 0px) max(18px, env(safe-area-inset-right, 0px)) 0 max(18px, env(safe-area-inset-left, 0px)); transform: translateX(-100%); transition: transform .25s ease, visibility .25s; visibility: hidden; align-content: start; }
	.cvf .side.aberta { transform: none; visibility: visible; }
	.cvf .side-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 3; }
	.cvf .side-tit { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
	.cvf .x-side { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); font-size: 22px; line-height: 1; cursor: pointer; }
	.cvf .side-head { position: static; justify-content: flex-end; padding: 6px 0; border-bottom: 0; }
	.cvf .side-tit2 { display: none; }
	.cvf .check { min-height: 44px; }
	.cvf .seg-full span { min-height: 42px; font-size: 14.5px; }
	.cvf .side-foot { display: block; position: sticky; bottom: 0; background: var(--surface); padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); margin-top: 12px; border-top: 1px solid var(--line); z-index: 3; }
	.cvf .side-foot .btn { min-height: 52px; font-size: 16px; }
	body.cvf-gaveta { overflow: hidden; }
}

/* Cabeçalho da lista, ordenação e filtros rápidos */
.cvf .res-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.cvf .res-head { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; justify-content: space-between; }
.cvf .res-head h2 { font-size: clamp(23px, 2.6vw, 30px); line-height: 1.12; }
.cvf .res-head .sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.cvf .res-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-width: 0; }
.cvf .res-bar { order: 2; display: flex; gap: 8px; align-items: center; flex: none; }
.cvf .chips { order: 1; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.cvf .chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 14.5px; font-weight: 500; color: var(--fg); cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.cvf .chip svg { width: 17px; height: 17px; color: var(--accent-text); }
.cvf .chip:hover { border-color: var(--fg); }
.cvf .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cvf .chip[aria-pressed="true"] svg { color: var(--cyan); }
.cvf .sort { display: flex; gap: 8px; align-items: center; }
.cvf .sort .muted { white-space: nowrap; }
.cvf .sort select { min-height: 40px; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 38px 0 16px; background-color: var(--surface); font-size: 14.5px; font-weight: 500; }
.cvf .sort select:hover { border-color: var(--fg); }
@media (min-width: 1101px) { .cvf .sort select { max-width: 210px; } }
@media (max-width: 1100px) {
	.cvf .res-tools { display: contents; }
	.cvf .res-bar { order: 0; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--cvf-topo) + var(--cvf-adm)); z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; background: var(--bg); margin: -6px calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 8px max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 10px 14px -14px rgba(16,40,40,.45); }
	.cvf .res-bar .btn, .cvf .sort select { min-height: 44px; width: 100%; font-size: 15px; }
	.cvf .sort { min-width: 0; }
	.cvf .sort .muted { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.cvf .chips { order: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 2px max(16px, env(safe-area-inset-left, 0px)); scroll-snap-type: x proximity; }
	.cvf .chips::-webkit-scrollbar { display: none; }
	.cvf .chip { min-height: 44px; scroll-snap-align: start; }
}

/* Acabamento nas larguras intermediárias: com o filtro ao lado e pouca largura, a ordenação fica só com o seletor
   (o rótulo "Ordenar por" continua para leitor de tela) e, se ainda faltar espaço, desce para a linha de baixo. */
@media (min-width: 1101px) {
	.cvf .res-tools { flex-wrap: wrap; }
	.cvf .res-bar { margin-left: auto; }
	.cvf .chips { flex: 1 1 auto; }
}
@media (min-width: 1101px) and (max-width: 1240px) {
	.cvf .sort .muted { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Destaques da busca */
.cvf .picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cvf .picks:empty { display: none; }
.cvf .pick { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px 12px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; text-align: left; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; width: 100%; position: relative; overflow: hidden; }
.cvf .pick::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--line-2); transition: background .15s ease; }
.cvf .pick:first-child::before { background: linear-gradient(180deg, var(--cyan), var(--mint)); }
.cvf button.pick:hover { border-color: var(--accent-text); transform: translateY(-2px); box-shadow: var(--shadow); }
.cvf button.pick:hover::before { background: linear-gradient(180deg, var(--cyan), var(--mint)); }
.cvf .pick .k { font-size: 13px; font-weight: 600; color: var(--accent-text); grid-column: 1 / -1; }
.cvf .pick .n { min-width: 0; }
.cvf .pick .op-logo { height: 22px; max-width: 100%; object-fit: contain; object-position: left center; }
.cvf .pick .v { font-size: 21px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cvf .pick .muted { grid-column: 1 / -1; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvf .pick.none { cursor: default; background: var(--soft2); box-shadow: none; }
@media (max-width: 860px) {
	.cvf .picks { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 2px max(16px, env(safe-area-inset-left, 0px)) 6px; }
	.cvf .picks::-webkit-scrollbar { display: none; }
	.cvf .pick { scroll-snap-align: center; }
}
.cvf .avisos { display: grid; gap: 8px; }
.cvf .avisos:empty { display: none; }
.cvf .note { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14.5px; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; }
.cvf .note svg { width: 18px; height: 18px; margin-top: 2px; }
.cvf .note.info { background: var(--accent-soft); color: var(--fg-2); }
.cvf .note.info svg { color: var(--accent-text); }
.cvf .note a { color: var(--accent-text); font-weight: 500; }

/* ---------- Card: operadora | plano, hospitais e características | preço e ação ---------- */
.cvf .list { display: grid; gap: 14px; }
.cvf .card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: grid; grid-template-columns: 150px minmax(0, 1fr) 256px; box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.cvf .card:hover { border-color: #9BCFD1; box-shadow: var(--shadow); }
.cvf .card.cmp-on { border-color: var(--accent-text); box-shadow: 0 0 0 2px var(--accent-text), var(--shadow); }
.cvf .card > div { padding: 20px; min-width: 0; }
.cvf .c-op { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; border-right: 1px solid var(--line); }
.cvf .c-op .op-logo { height: 32px; max-width: min(110px, 100%); object-fit: contain; object-position: left center; }
.cvf .op-link { display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; transition: transform .15s ease; }
.cvf a.op-link:hover { transform: translateY(-1px); }
.cvf .op-link:focus-visible { outline-offset: 4px; }
.cvf .c-op .linha { font-size: 13px; color: var(--muted); line-height: 1.35; }
.cvf .c-main { display: grid; gap: 12px; align-content: start; }
.cvf .ribbon { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; background: var(--ink); color: var(--mint); border-radius: 999px; padding: 5px 12px 5px 10px; line-height: 1.2; }
.cvf .ribbon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.cvf .c-main h3 { font-size: 22px; line-height: 1.15; }
.cvf .ribbon + h3 { margin-top: -2px; }
.cvf .rede { display: flex; gap: 10px; align-items: flex-start; }
.cvf .rede > svg { width: 20px; height: 20px; color: var(--accent-text); margin-top: 6px; }
.cvf .rede-txt { font-size: 15px; color: var(--fg-2); padding-top: 5px; }
.cvf .hpills { display: flex; flex-wrap: wrap; gap: 6px; }
.cvf .hpills span, .cvf .hpills a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; font-weight: 500; background: var(--soft); border-radius: 8px; padding: 4px 10px; color: var(--fg); text-decoration: none; transition: background .15s ease; }
.cvf .hpills a:hover { background: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.cvf .hpills .match { background: var(--cyan); color: var(--ink); font-weight: 600; }
.cvf .hpills a.match:hover { background: var(--mint); }
.cvf .hpills span.more { background: transparent; color: var(--muted); padding-inline: 4px; }
.cvf .attrs { list-style: none; padding: 12px 0 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); gap: 8px 18px; border-top: 1px solid var(--line); }
.cvf .attrs li { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; line-height: 1.35; color: var(--fg-2); min-width: 0; overflow-wrap: anywhere; }
.cvf .attrs li svg { width: 18px; height: 18px; color: var(--muted); margin-top: 1px; }
.cvf .attrs li.hi { color: var(--good); font-weight: 600; }
.cvf .attrs li.hi svg { color: var(--good); }
.cvf .c-price { border-left: 1px solid var(--line); background: var(--soft2); border-radius: 0 var(--r) var(--r) 0; display: grid; gap: 4px; align-content: start; }
.cvf .price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.cvf .price strong { font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.cvf .price strong small { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.cvf .price span { color: var(--muted); font-size: 15px; }
.cvf .per { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cvf .alt { font-size: 13.5px; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; padding-block: 3px; justify-self: start; }
.cvf .c-price .btn.primary { margin-top: 10px; min-height: 48px; }
.cvf .c-price .row { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: center; justify-content: space-between; margin-top: 2px; }
.cvf .lnk { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cvf .lnk:hover { color: var(--accent-text); }
.cvf button.lnk, .cvf button.alt { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; text-align: left; }
.cvf button.alt { font-size: inherit; color: inherit; }
.cvf .cmp { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14.5px; color: var(--fg-2); cursor: pointer; white-space: nowrap; }
.cvf .cmp input { accent-color: var(--accent-text); width: 20px; height: 20px; margin: 0; cursor: pointer; }
@media (max-width: 1180px) and (min-width: 1101px) { .cvf .card { grid-template-columns: 128px minmax(0, 1fr) 236px; } .cvf .card > div { padding: 18px; } }
@media (max-width: 860px) {
	.cvf .card { grid-template-columns: minmax(0, 1fr) 240px; }
	.cvf .c-op { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); padding-block: 8px !important; }
	.cvf .c-op .linha { text-align: right; }
	.cvf .c-price { border-radius: 0 0 var(--r) 0; }
}
@media (max-width: 620px) {
	.cvf .card { grid-template-columns: minmax(0, 1fr); }
	.cvf .card > div { padding: 16px; }
	.cvf .c-main h3 { font-size: 21px; }
	.cvf .c-price { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }
	.cvf .price { flex-wrap: nowrap; white-space: nowrap; }
	.cvf .price strong { font-size: 34px; }
	.cvf .c-price .btn.primary { min-height: 52px; font-size: 16px; }
	.cvf .attrs { display: flex; flex-wrap: wrap; gap: 8px 18px; }
	.cvf .attrs li { flex: 0 1 auto; }
}

.cvf .more { display: flex; justify-content: center; }
.cvf .more .btn { min-height: 48px; }
.cvf .cvf-aviso { font-size: 14px; color: var(--muted); text-align: center; max-width: 80ch; margin-inline: auto; }
.cvf .helpcard { background: linear-gradient(120deg, var(--hero), #123033); color: var(--hero-fg); border-radius: var(--r); display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; align-items: center; overflow: hidden; box-shadow: var(--shadow); }
.cvf .helpcard img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.cvf .helpcard .t { padding: 20px 24px; display: grid; gap: 8px; }
.cvf .helpcard h3 { font-size: 22px; color: var(--hero-fg); }
.cvf .helpcard p { color: var(--hero-muted); font-size: 15px; line-height: 1.5; max-width: 50ch; }
.cvf .helpcard .a { padding: 20px 24px; }
@media (max-width: 860px) { .cvf .helpcard { grid-template-columns: minmax(0, 1fr); } .cvf .helpcard img { max-height: 170px; } .cvf .helpcard .a { padding-top: 0; } .cvf .helpcard .a .btn { width: 100%; white-space: normal; } }
.cvf .empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 32px; display: grid; gap: 12px; justify-items: start; }
.cvf .empty h3 { font-size: 22px; }
.cvf .empty .muted { font-size: 16px; color: var(--fg-2); max-width: 60ch; }
.cvf .empty .row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) { .cvf .empty { padding: 22px 18px; } .cvf .empty .btn { width: 100%; white-space: normal; } }

/* WhatsApp flutuante e bandeja de comparação */
.cvf .fab { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 45; width: 58px; height: 58px; border-radius: 50%; background: var(--mint); color: var(--ink); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0,80,60,.22), 0 12px 30px rgba(0,0,0,.3); transition: bottom .2s ease, transform .15s ease; }
.cvf .fab:hover { transform: scale(1.06); }
.cvf .fab svg { width: 28px; height: 28px; }
body.cvf-has-tray .cvf .fab { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
/* O botão do assistente (chat.css) sobe junto com o do WhatsApp, para não tapar o botão da bandeja. */
body.cvf-has-tray .cvfc-lancar, body.cvf-has-tray .cvfc-dica { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.cvf .tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: var(--ink); color: var(--paper); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -10px 30px rgba(0,0,0,.25); border-top: 2px solid var(--cyan); animation: cvf-sobe .22s ease; }
@keyframes cvf-sobe { from { transform: translateY(100%); } to { transform: none; } }
.cvf .tray .cvf-wrap { display: flex; gap: 12px; align-items: center; padding-block: 12px; flex-wrap: wrap; }
.cvf .tray .sel { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 300px; min-width: 0; }
.cvf .tray .sel span { background: #262E2E; border-radius: 999px; padding: 0 4px 0 14px; min-height: 36px; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.cvf .tray .sel button { border: 0; background: transparent; color: var(--paper); cursor: pointer; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; line-height: 1; padding: 0; flex: none; }
.cvf .tray .sel button:hover { background: rgba(255,255,255,.14); }
.cvf .tray .hint { font-size: 14px; color: #B4C0C0; }
.cvf .tray .hint:empty { display: none; }
@media (max-width: 600px) {
	.cvf .tray .cvf-wrap { gap: 8px; padding-block: 10px; }
	.cvf .tray .sel { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex-basis: 100%; }
	.cvf .tray .sel span { white-space: nowrap; flex: none; max-width: none; }
	.cvf .tray .hint { flex: 1; }
	.cvf .tray .btn { flex: 1 1 auto; }
	body.cvf-has-tray .cvf .fab { bottom: calc(128px + env(safe-area-inset-bottom, 0px)); }
	body.cvf-has-tray .cvfc-lancar, body.cvf-has-tray .cvfc-dica { bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
}

/* Painéis: detalhe do plano e comparação */
.cvf dialog { border: 0; padding: 0; background: var(--surface); color: var(--fg); max-width: 100%; }
.cvf dialog::backdrop { background: rgba(6,10,10,.62); backdrop-filter: blur(2px); }
.cvf #detail { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(640px, 100%); border-radius: 0; box-shadow: var(--shadow-lg); }
.cvf #detail[open] { display: flex; flex-direction: column; animation: cvf-entra .22s ease; }
@keyframes cvf-entra { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.cvf .d-head { position: relative; background: linear-gradient(180deg, var(--hero), var(--hero-2)); color: var(--hero-fg); padding: calc(20px + env(safe-area-inset-top, 0px)) max(72px, env(safe-area-inset-right, 0px)) 20px 22px; display: grid; gap: 10px; }
.cvf .d-head .lg { background: #fff; border-radius: 10px; padding: 8px 12px; justify-self: start; }
.cvf .d-head .lg img { height: 26px; width: auto; max-width: 140px; }
.cvf .d-head .linha { color: var(--hero-muted); font-size: 14px; }
.cvf .d-head h2 { font-size: clamp(24px, 4vw, 30px); line-height: 1.1; color: var(--hero-fg); }
.cvf .d-head .tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.cvf .d-head .tags li { font-size: 13.5px; border: 1px solid var(--hero-line); background: rgba(255,255,255,.06); border-radius: 999px; padding: 4px 11px; color: #D6DFDF; }
.cvf .d-head .tags li.hi { background: var(--mint); color: var(--ink); border-color: var(--mint); font-weight: 600; }
.cvf .x { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hero-line); background: rgba(255,255,255,.06); color: var(--hero-fg); cursor: pointer; font-size: 22px; line-height: 1; padding: 0; transition: background .15s ease; }
.cvf .x:hover { background: rgba(255,255,255,.16); }
.cvf .d-body { overflow: auto; overscroll-behavior: contain; padding: 22px max(22px, env(safe-area-inset-right, 0px)) 28px 22px; display: grid; gap: 26px; align-content: start; flex: 1; }
.cvf .d-body a { color: var(--accent-text); }
.cvf .d-body p { color: var(--fg-2); }
.cvf .d-body p.muted { color: var(--muted); }
.cvf .d-sec { display: grid; gap: 10px; }
.cvf .d-links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 480px) { .cvf .d-links { grid-template-columns: minmax(0, 1fr); } }
.cvf .d-links a { display: grid; gap: 2px; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px 14px; text-decoration: none; color: var(--fg); transition: border-color .15s ease, background .15s ease; }
.cvf .d-links a:hover { border-color: var(--accent-text); background: var(--accent-soft); }
.cvf .d-links a span { font-weight: 600; font-size: 15px; color: var(--accent-text); }
.cvf .d-links a span::after { content: " →"; }
.cvf .d-links a small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.cvf .d-head a.lg { transition: transform .15s ease; }
.cvf .d-head a.lg:hover { transform: translateY(-1px); }
.cvf .d-sec h3 { font-size: 17px; font-weight: 600; color: var(--fg); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cvf .d-sum { background: var(--soft2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: grid; gap: 10px; }
.cvf .d-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cvf .d-price strong { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--fg); }
.cvf .people { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
.cvf .people li { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; border-top: 1px solid var(--line); padding: 8px 0; font-variant-numeric: tabular-nums; }
.cvf .vars { display: grid; gap: 8px; }
.cvf .var { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; min-height: 56px; background: transparent; cursor: pointer; text-align: left; width: 100%; font-size: 15px; transition: border-color .15s ease, background .15s ease; }
.cvf .var:hover { border-color: var(--fg); }
.cvf .var[aria-pressed="true"] { border-color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-text); background: var(--accent-soft); }
.cvf .var b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cvf .var small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.cvf .ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; color: var(--fg-2); }
.cvf .ticks li { display: flex; gap: 8px; align-items: baseline; }
.cvf .ticks li::before { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg) translateY(-3px); flex: none; }
.cvf .tbl-wrap { overflow-x: auto; }
.cvf table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.cvf th, .cvf td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cvf th { font-weight: 600; font-size: 13px; color: var(--muted); }
.cvf td.r, .cvf th.r { text-align: right; }
.cvf tr.you td { background: var(--good-bg); color: var(--good); font-weight: 600; }
.cvf tr.you td:first-child { box-shadow: inset 3px 0 0 var(--good); }
.cvf .d-cta { border-top: 1px solid var(--line); padding: 12px 22px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; flex-wrap: wrap; background: var(--surface); box-shadow: 0 -8px 20px rgba(16,40,40,.06); }
.cvf .d-cta .btn { flex: 1 1 220px; min-height: 50px; }
.cvf #compare { width: min(1100px, calc(100% - 24px)); max-height: calc(100% - 40px); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.cvf #compare[open] { display: flex; flex-direction: column; animation: cvf-sobe2 .2s ease; }
@keyframes cvf-sobe2 { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.cvf .cmp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.cvf .cmp-head h2 { font-size: 21px; }
.cvf .cmp-head .x { position: static; border-color: var(--line-2); background: var(--surface); color: var(--fg); flex: none; }
.cvf .cmp-head .x:hover { background: var(--soft); }
.cvf .cmp-body { overflow: auto; overscroll-behavior: contain; padding: 0 22px 22px; }
.cvf .cmp-body table { min-width: 640px; }
@media (min-width: 701px) { .cvf .cmp-body table { table-layout: fixed; } }
.cvf .cmp-body th[scope="row"] { width: 170px; font-size: 14px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.cvf .cmp-body thead th { font-size: 16px; color: var(--fg); padding-top: 18px; vertical-align: bottom; position: sticky; top: 0; background: var(--surface); z-index: 2; border-bottom-color: var(--line-2); }
.cvf .cmp-body thead .op-logo { height: 22px; margin-bottom: 6px; }
.cvf .cmp-body tbody tr:first-child td { font-size: 19px; }
.cvf .cmp-body tbody tr:last-child td, .cvf .cmp-body tbody tr:last-child th { border-bottom: 0; padding-top: 14px; }
.cvf .tag-min { display: inline-block; font-size: 12.5px; font-weight: 600; background: var(--ink); color: var(--mint); border-radius: 999px; padding: 3px 9px; margin-left: 8px; vertical-align: middle; }
@media (max-width: 700px) {
	.cvf #compare { width: 100%; height: 100%; max-height: 100%; border-radius: 0; margin: 0; }
	.cvf .cmp-head { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
	.cvf .cmp-body { padding: 0 0 20px 16px; }
	.cvf .cmp-body th[scope="row"] { width: 112px; min-width: 112px; padding-left: 0; box-shadow: 6px 0 8px -8px rgba(16,40,40,.3); }
	.cvf .cmp-body table { min-width: 0; width: max-content; }
	.cvf .cmp-body td, .cvf .cmp-body thead th { min-width: 172px; max-width: 220px; }
	.cvf .cmp-body thead th:first-child { min-width: 112px; left: 0; z-index: 3; }
}

/* Lista estática e tabelas de plano */
.cvf-lista .cvf-legenda { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.cvf-vazio { padding: 16px; border: 1px dashed var(--line-2); border-radius: 14px; }
.cvf .cvf-tabelas { display: grid; gap: 10px; }
.cvf .cvf-tabelas details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 16px; }
.cvf .cvf-tabelas details[open] { border-color: var(--line-2); }
.cvf .cvf-tabelas summary { cursor: pointer; padding: 14px 0; min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
.cvf .cvf-tabelas summary small { font-weight: 400; color: var(--muted); font-size: 13px; }
.cvf .cvf-tabelas table { margin-bottom: 14px; }

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

/* ---------- Ferramentas (simulador de empresa, portabilidade, calculadora) ----------
 * Campos à esquerda, em passos, uma decisão por linha; resultado ao lado (preso no alto no computador) com o próximo
 * passo. No celular: os passos, depois o resultado. Os scripts escrevem pelos ids; aqui é só desenho. */
.cvf .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fer { display: grid; gap: 28px; min-width: 0; }
.fer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px; align-items: start; min-width: 0; }
.fer-grid-calc { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.fer-form { display: grid; gap: 14px; min-width: 0; }
.fer-grid-calc .fer-form { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--cvf-topo, 64px) + var(--cvf-adm, 0px) + 16px); }

/* Campo: rótulo e controle */
.calc-campo { display: grid; gap: 6px; align-content: start; min-width: 0; }
.calc-campo label, .calc-campo .rot { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--fg); }
.calc-campo label span { color: var(--muted); font-weight: 400; }
.calc-campo input:not([type="radio"]), .calc-campo select { width: 100%; min-width: 0; height: 50px; border: 1px solid var(--campo); border-radius: 12px; background-color: var(--surface); color: var(--fg); padding: 0 14px; font-size: 17px; font-variant-numeric: tabular-nums; transition: border-color .15s ease, box-shadow .15s ease; }
.calc-campo input:not([type="radio"]):hover, .calc-campo select:hover { border-color: var(--fg); }
.calc-campo select { -webkit-appearance: none; appearance: none; background-image: var(--cvf-seta); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; cursor: pointer; text-overflow: ellipsis; }
.calc-campo input:not([type="radio"]):focus, .calc-campo select:focus { border-color: var(--accent-text); outline: none; box-shadow: var(--anel); }
.calc-rs { position: relative; }
.calc-rs span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.calc-rs input:not([type="radio"]) { padding-left: 42px; }

/* Passo: cartão com número; pergunta à esquerda, resposta à direita */
.sim-passo { display: block; margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); padding: 20px 22px 6px; }
.sim-passo legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.sim-passo legend + * { clear: both; }
.sim-passo legend span { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: var(--cyan); display: inline-grid; place-items: center; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.sim-passo .calc-campo { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); align-items: center; gap: 8px 20px; padding: 13px 0; border-top: 1px solid var(--line); }
.sim-passo .calc-campo input:not([type="radio"]), .sim-passo .calc-campo select { height: 48px; font-size: 16px; }
.sim-passo .calc-campo[hidden] { display: none !important; }
.sim-conta, .sim-dica { clear: both; border-top: 1px solid var(--line); padding: 12px 0 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.sim-conta b { color: var(--fg); font-size: 15px; }
.fer-grid-calc .sim-passo .calc-campo { grid-template-columns: minmax(0, 1fr); gap: 6px; }

/* Respostas curtas em botões (um toque, todas as opções à vista) */
.sim-tipos { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.sim-pill { position: relative; display: inline-flex; max-width: 100%; cursor: pointer; }
.sim-pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sim-pill span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 15px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 500; line-height: 1.25; text-align: center; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.sim-pill:hover span { border-color: var(--fg); }
.sim-pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.sim-pill input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; box-shadow: 0 0 0 4px var(--ink); }

/* Resultado ao lado */
.fer-res { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--cvf-topo, 64px) + var(--cvf-adm, 0px) + 16px); display: grid; gap: 14px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.fer-res-largo { position: static; padding: 22px; gap: 18px; }
.fer-res-tit { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.fer-res-tit span { font-size: 13.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.fer-sub { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.fer-prox { display: grid; gap: 8px; min-width: 0; background: var(--soft2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.fer-prox-tit { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.fer-prox-txt { font-size: 15px; line-height: 1.45; color: var(--fg-2); }
.fer-zap { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.calc-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-acoes .btn svg { width: 17px; height: 17px; flex: none; }
.fer-prox .calc-acoes { display: grid; gap: 8px; margin-top: 4px; }
.fer-prox .calc-acoes .btn { width: 100%; white-space: normal; text-align: center; padding-inline: 12px; }
.fer-res-largo .fer-prox .calc-acoes { display: flex; }
.fer-res-largo .fer-prox .calc-acoes .btn { width: auto; }
.calc-nota { font-size: 14px; line-height: 1.5; color: var(--muted); }
.fer-bloco { display: grid; gap: 14px; min-width: 0; }

/* Números do resultado */
.calc-res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.calc-destaque { background: var(--hero); color: var(--hero-fg); border-radius: var(--r-md); padding: 18px 20px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.calc-destaque .lbl { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.calc-destaque p { color: var(--hero-muted); font-size: 15px; line-height: 1.4; }
.calc-destaque-2 { background: var(--soft); color: var(--fg); }
.calc-destaque-2 .lbl { color: var(--accent-text); }
.calc-destaque-2 p { color: var(--muted); }
.calc-num { font-size: clamp(34px, 5vw, 46px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }

/* Calculadora: uma linha por mudança de faixa */
.calc-linha { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.calc-linha li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 70px 120px; gap: 14px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); font-variant-numeric: tabular-nums; }
.calc-linha li:nth-child(odd) { background: var(--soft2); }
.calc-linha li.prox { background: var(--good-bg); }
.calc-idade b { display: block; font-size: 15px; }
.calc-idade small { display: block; font-size: 13px; color: var(--muted); }
.calc-barra { height: 10px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.calc-barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--cyan)); border-radius: inherit; transition: width .25s ease; }
.calc-pct { font-weight: 600; text-align: right; }
.calc-val { text-align: right; font-weight: 600; font-size: 15px; }

/* Tabelas de faixas (curvas por operadora, custo por funcionário) */
.calc-tabela { overflow-x: auto; background-color: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.calc-tabela table { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 14px; font-variant-numeric: tabular-nums; }
.calc-tabela th, .calc-tabela td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.calc-tabela thead th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--soft2); }
.calc-tabela th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.calc-tabela thead th:first-child { background: var(--soft2); }
.calc-tabela tbody th { font-weight: 600; }
.calc-tabela tbody th a { color: var(--fg); }
.calc-tabela tr.todas td, .calc-tabela tr.todas th { background: var(--good-bg); }
.calc-tabela td.alto { color: #8A3B00; font-weight: 600; }
.calc-tabela tbody tr:last-child > * { border-bottom: 0; }

/* Tela baixa (notebook pequeno): o resultado preso nunca passa da altura da janela; se passar, rola por dentro */
@media (min-width: 1001px) {
	.fer-res:not(.fer-res-largo) { max-height: calc(100dvh - var(--cvf-topo, 64px) - var(--cvf-adm, 0px) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
	.fer-res:not(.fer-res-largo)::-webkit-scrollbar { display: none; }
}
/* O painel do resultado cabe na janela sem barra de rolagem própria: quanto mais baixa a janela, mais compacto
   ele fica. A rolagem por dentro (sem barra aparente) sobra só como último recurso, em janela muito baixa. */
@media (min-width: 1001px) and (max-height: 960px) {
	.fer-res:not(.fer-res-largo) { gap: 10px; padding: 14px; }
	.fer-res .sim-resumo .calc-destaque { padding: 14px 16px 15px; gap: 2px; }
	.fer-res .sim-resumo .calc-destaque .calc-num { font-size: 34px; }
	.fer-res .sim-resumo .calc-destaque p { font-size: 14px; }
	.fer-res .sim-resumo .calc-destaque-2 { padding: 10px 4px 9px; }
	.fer-res .sim-resumo .calc-destaque-2 p { font-size: 13.5px; }
	.fer-res .port-veredito { padding: 14px 16px; }
	.fer-res .fer-prox { padding: 12px 14px; gap: 6px; }
	.fer-res .fer-prox-txt { font-size: 14px; }
	.fer-res .fer-prox .calc-acoes { gap: 4px; margin-top: 2px; }
	.fer-res .fer-prox .calc-acoes .btn { min-height: 42px; padding-block: 8px; font-size: 14.5px; }
	.fer-res .fer-prox .calc-acoes .btn.ghost { min-height: 36px; padding-block: 4px; border-color: transparent; background: transparent; box-shadow: none; text-decoration: underline; text-underline-offset: 3px; }
	.fer-res .fer-zap { font-size: 13px; }
}
@media (min-width: 1001px) and (max-height: 760px) {
	.fer-res .fer-prox-txt, .fer-res .fer-zap { display: none; }
	.fer-res .sim-resumo .calc-destaque .calc-num { font-size: 30px; }
	.fer-res .sim-resumo .calc-destaque-2 { padding: 8px 4px 7px; }
}
@media (max-width: 1000px) {
	.fer-grid, .fer-grid-calc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.fer-res, .fer-grid-calc .fer-form { position: static; }
}
@media (max-width: 640px) {
	.fer { gap: 22px; }
	.sim-passo { padding: 16px 16px 2px; }
	.sim-passo legend { font-size: 17px; margin-bottom: 12px; }
	.sim-passo .calc-campo { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.sim-tipos .sim-pill { flex: 1 1 auto; }
	.sim-pill span { width: 100%; padding: 6px 14px; }
	.fer-res { padding: 14px; }
	.fer-prox { padding: 14px 12px; }
	.fer-prox .calc-acoes .btn { font-size: 14.5px; padding-inline: 10px; }
	.fer-res-largo { padding: 16px 14px; }
	.calc-res { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.calc-linha li { grid-template-columns: 82px minmax(0, 1fr) 58px; gap: 10px; padding: 10px; }
	.calc-linha .calc-val { grid-column: 2 / -1; text-align: left; font-size: 14px; margin-top: -4px; }
	.calc-acoes .btn, .fer-res-largo .fer-prox .calc-acoes .btn { width: 100%; white-space: normal; }
}

/* Logos quase quadrados (Care Plus, São Cristóvão): mais altos, para pesar igual aos horizontais */
.cvf .ops-band img[alt="Care Plus"], .cvf .ops-band img[alt="São Cristóvão Saúde"] { height: 42px; }
.cvf .c-op .op-logo[alt="Care Plus"], .cvf .c-op .op-logo[alt="São Cristóvão Saúde"] { height: 46px; }
.cvf .pick .op-logo[alt="Care Plus"], .cvf .pick .op-logo[alt="São Cristóvão Saúde"] { height: 32px; }
.cvf .op-n img[alt="Care Plus"], .cvf .op-n img[alt="São Cristóvão Saúde"] { height: 28px; }
.cvf .d-head .lg img[alt="Care Plus"], .cvf .d-head .lg img[alt="São Cristóvão Saúde"] { height: 38px; }

/* Simulador de plano de saúde para MEI e empresas */
.sim-alertas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.sim-alertas:empty { display: none; }
.sim-alerta { border: 1px solid var(--line); border-left: 4px solid var(--accent-text); border-radius: var(--r-sm); padding: 12px 14px; background: var(--surface); display: grid; gap: 4px; font-size: 14px; align-content: start; }
.sim-alerta b { font-size: 14.5px; }
.sim-alerta p { color: var(--fg-2); line-height: 1.5; }
.sim-alerta.aviso { border-left-color: var(--warn); background: var(--warn-bg); }
.sim-alerta.aviso p { color: var(--warn); }
.sim-alerta.bom { border-left-color: var(--good); }

/* Resumo: três números lado a lado (portabilidade) ou em recibo, um embaixo do outro (ao lado do simulador) */
.sim-resumo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sim-resumo:empty { display: none; }
.sim-resumo .calc-num { font-size: clamp(28px, 3.6vw, 38px); }
.fer-res .sim-resumo { grid-template-columns: minmax(0, 1fr); gap: 0; }
.fer-res .sim-resumo:empty { display: block; }
.fer-res .sim-resumo:empty::before { content: "Sem valor para mostrar com estas respostas."; display: block; padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--r-md); font-size: 15px; color: var(--muted); }
.fer-res .sim-resumo .calc-destaque { padding: 18px 20px 20px; }
.fer-res .sim-resumo .calc-destaque .calc-num { font-size: clamp(34px, 3.4vw, 42px); }
.fer-res .sim-resumo .calc-destaque-2 { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; background: transparent; border-radius: 0; border-bottom: 1px solid var(--line); padding: 14px 4px 13px; }
.fer-res .sim-resumo .calc-destaque-2:last-child { border-bottom: 0; padding-bottom: 4px; }
.fer-res .sim-resumo .calc-destaque-2 .lbl { font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--fg); }
.fer-res .sim-resumo .calc-destaque-2 .calc-num { font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
.fer-res .sim-resumo .calc-destaque-2 p { grid-column: 1 / -1; font-size: 14px; }

/* Lista: o plano mais barato de cada operadora */
.sim-res-head { display: grid; gap: 4px; }
.sim-res-head h3, .fer-bloco > h3, .port-eco h3 { margin: 0; font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -.015em; line-height: 1.2; }
.sim-res-head .muted { font-size: 15px; }
.sim-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sim-item { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 250px); gap: 6px 18px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease; }
.sim-item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.sim-item.top { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text) inset, var(--shadow); }
.sim-op { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.sim-op img { height: 30px; width: auto; max-width: 130px; object-fit: contain; object-position: left center; }
.sim-op img[alt="Care Plus"], .sim-op img[alt="São Cristóvão Saúde"] { height: 44px; }
.sim-op span { font-size: 13px; color: var(--muted); }
.sim-plano { display: grid; gap: 4px; min-width: 0; }
.sim-plano h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.sim-plano h3 a { color: var(--fg); text-decoration: none; }
.sim-plano h3 a:hover { text-decoration: underline; }
.sim-selo { justify-self: start; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--mint); background: var(--ink); border-radius: 999px; padding: 3px 10px; }
.sim-det { font-size: 14px; color: var(--muted); }
.sim-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px !important; }
.sim-tags i { font-style: normal; font-size: 13px; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--fg); }
.sim-tags i.ok { background: var(--good-bg); color: var(--good); }
.sim-tags i.aviso { background: var(--warn-bg); color: var(--warn); }
.sim-val { display: grid; gap: 2px; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; }
.sim-val b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.sim-val small { font-size: 14px; color: var(--muted); }
.sim-val .sim-div { color: var(--fg); }
.sim-pessoas { grid-column: 1 / -1; font-size: 14px; min-width: 0; }
.sim-pessoas summary { cursor: pointer; color: var(--accent-text); font-weight: 500; width: max-content; max-width: 100%; padding-block: 11px; }
.sim-pessoas table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.sim-pessoas th, .sim-pessoas td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.sim-pessoas th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--soft2); }
.sim-pessoas td:last-child, .sim-pessoas th:last-child { text-align: right; }
.sim-regras .sim-alerta { background: var(--surface); }
.sim-vazio { border: 1px dashed var(--line-2); border-radius: var(--r-md); padding: 18px; color: var(--muted); font-size: 15px; }
.sim-fora { font-size: 14px; }
.sim-fora summary { cursor: pointer; color: var(--muted); padding-block: 11px; width: max-content; max-width: 100%; }
.sim-fora ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }
.sim-fora b { color: var(--fg); font-weight: 600; }
@media (max-width: 900px) {
	.sim-resumo { grid-template-columns: minmax(0, 1fr); }
	.sim-item { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; }
	.sim-op { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
	.sim-plano { grid-column: 1 / -1; }
	.sim-val { grid-column: 1 / -1; text-align: left; border-top: 1px solid var(--line); padding-top: 10px; }
}
@media (max-width: 560px) {
	.sim-resumo .calc-destaque { padding: 14px 16px; }
	.sim-pessoas th, .sim-pessoas td { padding: 7px 6px; font-size: 13px; }
}

/* Simulador de portabilidade de carências */
.port-veredito { border-radius: var(--r-md); padding: 20px 22px; display: grid; gap: 6px; background: var(--soft); border: 1px solid var(--line); }
.port-veredito .lbl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.port-veredito .lbl::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.port-veredito h3 { margin: 0; font-size: clamp(22px, 2.8vw, 28px); letter-spacing: -.02em; line-height: 1.15; }
.port-veredito p { color: var(--fg-2); font-size: 15px; line-height: 1.55; }
.port-veredito.sim { background: var(--good-bg); border-color: transparent; }
.port-veredito.sim .lbl { color: var(--good); }
.port-veredito.espera, .port-veredito.especial { background: var(--warn-bg); border-color: transparent; }
.port-veredito.espera .lbl, .port-veredito.especial .lbl { color: var(--warn); }
.port-veredito.nao { background: var(--hero); color: var(--hero-fg); border-color: transparent; }
.port-veredito.nao .lbl { color: var(--cyan); }
.port-veredito.nao p { color: var(--hero-muted); }
.fer-res .port-veredito { padding: 18px 18px 20px; }
.fer-res .port-veredito h3 { font-size: 23px; }
.port-check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 10px; }
.port-check li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.port-check .ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.port-check .ok .ic { background: var(--good-bg); color: var(--good); }
.port-check .nao .ic { background: #FDE2E2; color: #9B1C1C; }
.port-check .talvez .ic { background: var(--warn-bg); color: var(--warn); }
.port-check .na .ic { background: var(--soft); color: var(--muted); }
.port-check b { display: block; font-size: 15px; }
.port-check p { color: var(--fg-2); font-size: 14px; line-height: 1.5; margin-top: 2px !important; }
.port-check small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.port-eco { display: grid; gap: 12px; }
.port-eco[hidden], .port-sec[hidden], .sim-regras[hidden] { display: none !important; }
.port-sec { display: grid; gap: 12px; }
.port-data[hidden] { display: none !important; }

/* ---------- Página do plano: filtros até a tabela exata (inc/plano.php, assets/js/plano.js) ---------- */
.cvf-plano { display: grid; gap: 16px; }
.cvf-plano .pf-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cvf-plano fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cvf-plano .pf-campo { grid-column: 1 / -1; min-width: 0; }
.cvf-plano .calc-campo.pf-campo { grid-column: auto; }
.cvf-plano legend { font-size: 14px; font-weight: 600; padding: 0; margin: 0 0 8px; }
.cvf-plano .calc-campo select:disabled { opacity: .65; cursor: not-allowed; }
.cvf-plano .pf-enviar { display: flex; }
.cvf-plano .pf-js .pf-enviar { display: none; }
.cvf-plano .pf-res { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 14px; box-shadow: var(--shadow-sm); }
.cvf-plano .pf-combo { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.cvf-plano .pf-aviso { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; line-height: 1.5; }
.cvf-plano .pf-total { display: grid; gap: 2px; background: var(--hero); color: var(--hero-fg); border-radius: var(--r-md); padding: 18px 20px; }
.cvf-plano .pf-total .muted { color: var(--hero-muted); }
.cvf-plano .pf-total .pf-pessoas li { border-top-color: var(--hero-line); }
.cvf-plano .pf-total .pf-pessoas small { color: var(--hero-muted); }
.cvf-plano .pf-total .lbl { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.cvf-plano .pf-total strong { font-size: clamp(32px, 4.4vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cvf-plano .pf-pessoas { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.cvf-plano .pf-pessoas li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; font-variant-numeric: tabular-nums; }
.cvf-plano .pf-pessoas small { color: var(--muted); }
.cvf-plano .pf-acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.cvf-plano .pf-todas { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 16px; }
.cvf-plano .pf-todas > summary { cursor: pointer; padding: 14px 0; min-height: 48px; font-weight: 600; }
.cvf-plano .pf-todas[open] > summary { margin-bottom: 4px; }
@media (max-width: 600px) {
	.cvf-plano .pf-form { grid-template-columns: minmax(0, 1fr); padding: 16px; }
	.cvf-plano .pf-res { padding: 16px; }
	.cvf-plano .pf-acoes .btn { flex: 1 1 100%; white-space: normal; }
}

/* ---------- Listas com o desenho do site (computador) ----------
 * O <select> fica na página, escondido; o botão .csel mostra o valor e abre o painel .csel-pop (posição fixa, numa
 * camada no fim do <body>). No celular nada disto entra: vale a lista nativa. */
.cvf .csel-nativo { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px; border: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; clip-path: inset(50%); }
.cvf .csel { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-width: 0; min-height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; }
.cvf .csel-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvf .csel-seta { width: 16px; height: 16px; flex: none; transition: transform .18s ease; }
.cvf .csel[aria-expanded="true"] .csel-seta { transform: rotate(180deg); }
.cvf .csel:disabled { cursor: not-allowed; color: var(--muted); }
.cvf .csel:disabled .csel-seta { opacity: .35; }
.cvf .field .csel:focus-visible { outline: none; box-shadow: none; }
.cvf .field.csel-aberta { border-color: var(--accent-text); box-shadow: var(--anel); }
.cvf .field:has(.csel:disabled) { background: var(--soft2); border-color: var(--line-2); cursor: not-allowed; }
.cvf .fgroup .csel { min-height: 44px; border: 1px solid var(--campo); border-radius: 12px; padding: 0 12px; background: var(--surface); font-size: 15px; transition: border-color .15s ease, box-shadow .15s ease; }
.cvf .fgroup .csel:hover:not(:disabled), .cvf .sort .csel:hover { border-color: var(--fg); }
.cvf .fgroup .csel:focus-visible, .cvf .fgroup .csel[aria-expanded="true"], .cvf .sort .csel:focus-visible, .cvf .sort .csel[aria-expanded="true"] { outline: none; border-color: var(--accent-text); box-shadow: var(--anel); }
.cvf .sort .csel { min-height: 40px; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 14px 0 16px; background: var(--surface); font-size: 14.5px; }
@media (min-width: 1101px) { .cvf .sort .csel { width: auto; min-width: 190px; max-width: 250px; } }
.cvf .csel-pop { position: fixed; z-index: 70; display: flex; flex-direction: column; padding: 6px; background: var(--surface); color: var(--fg); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 18px 44px rgba(10,30,30,.22), 0 2px 6px rgba(10,30,30,.08); overflow: hidden; transform-origin: top center; animation: cvf-lista .14s ease-out; }
.cvf .csel-pop.sobe { transform-origin: bottom center; }
@keyframes cvf-lista { from { opacity: 0; transform: translateY(-4px) scale(.985); } to { opacity: 1; transform: none; } }
.cvf .csel-busca { display: flex; align-items: center; gap: 8px; flex: none; min-height: 44px; margin: 2px 2px 6px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; background: var(--soft); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.cvf .csel-busca:focus-within { border-color: var(--accent-text); background: var(--surface); box-shadow: var(--anel); }
.cvf .csel-busca svg { width: 18px; height: 18px; color: var(--muted); }
.cvf .csel-busca input { width: 100%; min-width: 0; padding: 10px 0; border: 0; background: transparent; outline: none; box-shadow: none; font-size: 15px; }
.cvf .csel-busca input::placeholder { color: var(--muted); opacity: 1; }
.cvf .csel-lista { flex: 1 1 auto; min-height: 0; margin: 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; outline: none; box-shadow: none; }
.cvf .csel-lista:focus-visible { outline: none; box-shadow: none; }
.cvf .csel-lista li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; column-gap: 12px; row-gap: 1px; min-height: 42px; padding: 9px 12px; border-radius: 10px; font-size: 15px; line-height: 1.3; cursor: pointer; }
.cvf .csel-lista li > span { grid-column: 1; min-width: 0; }
.cvf .csel-lista li small { grid-column: 1; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.cvf .csel-lista li.ativo { background: var(--soft); }
.cvf .csel-lista li[aria-selected="true"] { font-weight: 600; }
.cvf .csel-lista li[aria-selected="true"]::after { content: ""; grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131313' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.cvf .csel-nada { margin: 0; padding: 14px 12px; font-size: 14.5px; color: var(--muted); }

/* ---------- Busca escrita lida pelo assistente ---------- */
.cvf .smart-ia svg { color: var(--accent-text); }
.cvf .search.is-buscando .smart { border-color: var(--accent-text); background: var(--surface); box-shadow: var(--anel); }
.cvf .search.is-buscando .smart input { color: var(--muted); }
.cvf .search.is-buscando .f-enviar { pointer-events: none; opacity: .7; }
.cvf .understood .lendo { display: inline-flex; gap: 4px; margin-right: 2px; }
.cvf .understood .lendo i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); animation: cvf-lendo 1s infinite ease-in-out; }
.cvf .understood .lendo i:nth-child(2) { animation-delay: .15s; }
.cvf .understood .lendo i:nth-child(3) { animation-delay: .3s; }
@keyframes cvf-lendo { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.cvf .note.ia { background: var(--surface); color: var(--fg-2); border: 1px solid var(--line-2); box-shadow: inset 3px 0 0 var(--cyan); }
.cvf .note.ia svg { color: var(--accent-text); }
.cvf .note.ia > div { display: grid; gap: 2px; min-width: 0; }
.cvf .note.ia .linkbtn { font-size: 14.5px; padding: 4px 0 0; }
