/* Base e componentes comuns do CRM v2 (botão, campo, chip, selo, avatar, cartão, modal, gaveta, aviso, menu suspenso) */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Cormorant (e todo o resto): algarismos alinhados e sem ligaduras comuns, em qualquer tela (ajuste 6).
   Com !important porque o atalho "font:" zera font-variant-* e font-feature-settings; assim nenhuma regra de tela
   volta a mostrar "15" como "I5" nem o "Th" ligado. Algarismo de tabela: font-feature-settings: "tnum" 1 (classe .num). */
*, *::before, *::after { font-variant-numeric: lining-nums !important; font-variant-ligatures: no-common-ligatures !important; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font: 400 var(--t-corpo)/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
/* ícone sem regra do contêiner fica do tamanho da letra (sem isto, um svg só com viewBox ocupa a largura inteira) */
svg.ic { width: 1.15em; height: 1.15em; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--ouro-suave); color: var(--tinta); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; border-radius: 6px; }

.so-leitor {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pular-conteudo {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 16px;
  background: var(--tinta); color: var(--tinta-inversa); border-radius: var(--r-2); text-decoration: none;
}
.pular-conteudo:focus { top: 12px; }

* { scrollbar-width: thin; scrollbar-color: var(--linha-forte) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--linha-forte); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- Tipografia ---------- */
.serif, .titulo-pagina, .titulo-secao, .nome-serif {
  font-family: var(--serif);
  font-variant-numeric: lining-nums; font-variant-ligatures: no-common-ligatures;
}
.titulo-pagina { font-weight: 600; font-size: var(--t-titulo); line-height: 1.05; letter-spacing: -.005em; color: var(--tinta); }
.titulo-secao { font-weight: 600; font-size: var(--t-secao); line-height: 1.15; color: var(--tinta); }
.sobretitulo {
  font: 600 var(--t-rotulo)/1.25 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--tinta-3);
}
.sobretitulo.ouro { color: var(--ouro-texto); }
.subtitulo { color: var(--tinta-2); font-size: var(--t-corpo); }
.apoio { color: var(--tinta-2); font-size: var(--t-apoio); }
.mudo { color: var(--tinta-3); }
.num { font-feature-settings: "tnum" 1; }
.forte { font-weight: 600; color: var(--tinta); }
.texto-atencao { color: var(--atencao); }
.texto-perigo { color: var(--perigo); }
.texto-ok { color: var(--ok); }
.texto-ouro { color: var(--ouro-texto); font-weight: 600; }
.bloco { display: block; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 16px; border-radius: var(--r-2);
  border: 1px solid transparent; background: transparent;
  font: 500 13.5px/1.1 var(--sans); letter-spacing: .005em;
  white-space: nowrap; text-decoration: none; user-select: none;
  transition: background var(--rapido), border-color var(--rapido), color var(--rapido), box-shadow var(--rapido);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primario { background: var(--tinta); color: var(--tinta-inversa); }
.btn-primario:hover { background: color-mix(in srgb, var(--tinta) 86%, var(--ouro)); }
.btn-secundario { background: var(--cartao); border-color: var(--linha-forte); color: var(--tinta); }
.btn-secundario:hover { border-color: var(--ouro); background: var(--cartao-2); }
.btn-fantasma { color: var(--tinta-2); }
.btn-fantasma:hover { background: var(--fundo-3); color: var(--tinta); }
.btn-ouro { background: var(--ouro-forte); color: #fff; }
[data-tema="escuro"] .btn-ouro { color: #151311; }
.btn-ouro:hover { filter: brightness(1.06); }
.btn-perigo { background: var(--perigo-fundo); color: var(--perigo); border-color: color-mix(in srgb, var(--perigo) 30%, transparent); }
.btn-perigo:hover { background: var(--perigo); color: #fff; }
[data-tema="escuro"] .btn-perigo:hover { color: #151311; }
.btn-ok { background: var(--ok); color: #fff; }
[data-tema="escuro"] .btn-ok { color: #151311; }
.btn-p { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-g { min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn-icone { width: 38px; padding: 0; }
.btn-icone.btn-p { width: 32px; }
.btn-bloco { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; opacity: .8; }

/* ---------- Campos ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo > label, .rotulo-campo { font: 500 12.5px/1.3 var(--sans); color: var(--tinta-2); }
.campo .obrig { color: var(--perigo); font-weight: 600; margin-left: 2px; }
.campo .ajuda { font-size: 12px; color: var(--tinta-3); }
.entrada, .selecao, .area-texto {
  width: 100%; min-height: 42px; padding: 0 14px;
  border: 1px solid var(--linha-campo); border-radius: var(--r-2);
  background: var(--cartao); color: var(--tinta); font: 400 14px/1.4 var(--sans);
  transition: border-color var(--rapido), box-shadow var(--rapido);
}
.area-texto { min-height: 84px; padding: 10px 14px; resize: vertical; }
.selecao {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--tinta-2) 50%), linear-gradient(135deg, var(--tinta-2) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.entrada::placeholder, .area-texto::placeholder { color: var(--tinta-3); }
.entrada:hover, .selecao:hover, .area-texto:hover { border-color: color-mix(in srgb, var(--linha-campo) 60%, var(--ouro)); }
.entrada:focus, .selecao:focus, .area-texto:focus { border-color: var(--ouro); box-shadow: 0 0 0 3px var(--ouro-lavado); outline: none; }
.entrada:focus-visible, .selecao:focus-visible, .area-texto:focus-visible { outline: 2px solid var(--foco); outline-offset: 1px; }
.entrada[aria-invalid="true"], .selecao[aria-invalid="true"], .area-texto[aria-invalid="true"] { border-color: var(--perigo); box-shadow: 0 0 0 3px var(--perigo-fundo); }
.entrada-p, .selecao-p { min-height: 36px; font-size: 13.5px; }
.campo-erro { color: var(--perigo); font-size: 12.5px; display: flex; gap: 6px; align-items: flex-start; }
.campo-erro svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.campo-icone { position: relative; }
.campo-icone > svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--tinta-3); pointer-events: none; }
.campo-icone > .entrada { padding-left: 38px; }
.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grade-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sem-borda { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Caixa de marcar e rádio: a área clicável tem pelo menos o alvo (24 px no computador, 44 px no toque) */
.caixa-marcar { display: inline-flex; align-items: center; gap: 10px; min-height: var(--alvo-min); cursor: pointer; font-size: 13.5px; color: var(--tinta-2); }
.caixa-marcar input { width: 20px; height: 20px; accent-color: var(--tinta); margin: 0; flex: none; }
.caixa-marcar input:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }

/* Interruptor (liga e desliga): 40 x 24 */
.interruptor { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: var(--alvo-min); cursor: pointer; user-select: none; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor .trilho { width: 42px; height: 24px; border-radius: 999px; background: var(--linha-campo); position: relative; transition: background var(--rapido); flex: none; }
.interruptor .trilho::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: translate var(--medio) var(--curva); }
.interruptor input:checked + .trilho { background: var(--ok); }
.interruptor input:checked + .trilho::after { translate: 18px 0; }
.interruptor input:focus-visible + .trilho { outline: 2px solid var(--foco); outline-offset: 2px; }

/* Controle segmentado */
.segmentos { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--fundo-3); border: 1px solid var(--linha); position: relative; max-width: 100%; }
.segmentos button {
  min-height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent;
  font: 500 13px/1.1 var(--sans); color: var(--tinta-2); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.segmentos button:hover { color: var(--tinta); }
.segmentos button[aria-pressed="true"], .segmentos button[aria-selected="true"] { background: var(--cartao); color: var(--tinta); box-shadow: var(--sombra-1); }

/* Grade de opções (motivo, impressão, alternativa) */
.opcoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opcoes.opcoes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opcao {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--linha-forte); background: var(--cartao); cursor: pointer; font-size: 13.5px; text-align: left; line-height: 1.3;
}
.opcao:hover { border-color: var(--ouro); }
.opcao input { accent-color: var(--tinta); margin: 0; width: 18px; height: 18px; flex: none; }
.opcao:has(input:checked) { border-color: var(--tinta); background: var(--cartao-2); box-shadow: inset 0 0 0 1px var(--tinta); }
.opcao:has(input:focus-visible) { outline: 2px solid var(--foco); outline-offset: 2px; }
.opcao:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.opcao small { display: block; font-size: 11.5px; color: var(--tinta-3); }

/* ---------- Chips e selos ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px;
  border-radius: var(--r-pilula); border: 1px solid var(--linha);
  background: var(--cartao-2); color: var(--tinta-2);
  font: 500 12px/1.1 var(--sans); white-space: nowrap; max-width: 100%;
}
.chip svg { width: 13px; height: 13px; flex: none; }
.chip-p { min-height: 21px; padding: 0 7px; font-size: 11.5px; gap: 5px; }
button.chip { cursor: pointer; }
button.chip-p { min-height: 24px; }
button.chip:hover { border-color: var(--linha-forte); color: var(--tinta); }
button.chip[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--tinta-inversa); }

/* Selo do espaço: cheio, na cor do espaço, nome sempre escrito (enxerto 1 e ajuste 5) */
.selo-espaco {
  display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border-radius: 5px;
  font: 700 10.5px/1.15 var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  background: var(--fundo-3); color: var(--tinta-2); border: 1px dashed var(--esp-definir);
}
.selo-espaco[data-espaco="grand_hall"] { background: var(--esp-gh); color: var(--esp-gh-texto); border: 0; }
.selo-espaco[data-espaco="espaco_raja"] { background: var(--esp-raja); color: var(--esp-raja-texto); border: 0; }
.selo-espaco[data-espaco="os_dois"] { background: linear-gradient(90deg, var(--esp-gh) 0 50%, var(--esp-raja) 50% 100%); color: #fff; border: 0; text-shadow: 0 0 2px rgba(0,0,0,.6); }

/* Etapa: ponto na rampa dourada + nome */
.etapa { background: var(--cartao); }
.etapa i { width: 8px; height: 8px; border-radius: 50%; background: var(--cor-etapa, var(--etapa-1)); flex: none; }
.etapa[data-etapa="fechado"] { background: var(--ok-fundo); border-color: transparent; color: var(--ok); }
.etapa[data-etapa="fechado"] i { background: var(--ok); }
.etapa[data-etapa="perdido"], .etapa[data-etapa="nao_lead"] { background: var(--fundo-3); border-color: transparent; color: var(--tinta-2); }
.etapa[data-etapa="perdido"] i, .etapa[data-etapa="nao_lead"] i { background: transparent; border: 1.5px solid var(--tinta-3); }
.etapa[data-etapa="futuro"] { border-style: dashed; }
.etapa[data-etapa="futuro"] i { background: transparent; border: 1.5px dashed var(--tinta-3); }

.selo { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 6px; font: 600 11px/1.3 var(--sans); letter-spacing: .03em; white-space: nowrap; }
.selo svg { width: 13px; height: 13px; flex: none; }
.selo-caixa { text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.selo-atencao { background: var(--atencao-fundo); color: var(--atencao); }
.selo-perigo { background: var(--perigo-fundo); color: var(--perigo); }
.selo-ok { background: var(--ok-fundo); color: var(--ok); }
.selo-info { background: var(--info-fundo); color: var(--info); }
.selo-ouro { background: var(--ouro-lavado); color: var(--ouro-texto); }
.selo-neutro { background: var(--fundo-3); color: var(--tinta-2); }
.selo-tracejado { background: transparent; color: var(--tinta-2); border: 1px dashed var(--linha-campo); }
button.selo { border: 0; cursor: pointer; min-height: 24px; }
button.selo:hover { filter: brightness(.96); text-decoration: underline; text-underline-offset: 2px; }

.contador {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--ouro-forte); color: #fff;
  font: 600 11px/1 var(--sans); font-feature-settings: "tnum" 1;
}
[data-tema="escuro"] .contador { color: #151311; }
.contador.neutro { background: var(--fundo-3); color: var(--tinta-2); }

/* Avatar com anel na cor do espaço */
.avatar {
  --anel: var(--linha-forte);
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--fundo-3); color: var(--tinta-2);
  font: 600 12.5px/1 var(--sans); letter-spacing: .02em;
  box-shadow: 0 0 0 2px var(--cartao), 0 0 0 3.5px var(--anel);
}
.avatar[data-espaco="grand_hall"] { --anel: var(--esp-gh-linha); }
.avatar[data-espaco="espaco_raja"] { --anel: var(--esp-raja-linha); }
.avatar-p { width: 26px; height: 26px; font-size: 10.5px; box-shadow: 0 0 0 1.5px var(--cartao), 0 0 0 3px var(--anel); }
.avatar-g { width: 48px; height: 48px; font-size: 16px; }
.avatar > svg { width: 52%; height: 52%; }
.avatar.robo { background: var(--ouro-lavado); color: var(--ouro-texto); }
.avatar.robo svg { width: 60%; height: 60%; }
.avatar.equipe { background: var(--tinta); color: var(--tinta-inversa); }

/* ---------- Cartões ---------- */
.cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--r-3); box-shadow: var(--sombra-1); }
.cartao-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.cartao-corpo { padding: 16px 20px 20px; }
.cartao-rodape { padding: 12px 20px; border-top: 1px solid var(--linha-suave); display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.link {
  color: var(--ouro-texto); font-weight: 500; text-decoration: none; display: inline-flex; gap: 6px; align-items: center;
  background: none; border: 0; padding: 2px 0; font-size: 13px; min-height: var(--alvo-min); cursor: pointer;
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link svg { width: 15px; height: 15px; }
.link-lead { background: none; border: 0; padding: 2px 0; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 4px; min-height: var(--alvo-min); }
.link-lead:hover { color: var(--ouro-texto); text-decoration: underline; text-underline-offset: 3px; }
.link-lead.forte { font-weight: 600; color: var(--tinta); }
.fio { height: 1px; background: var(--linha); border: 0; margin: 0; }

.vazio { padding: 32px 16px; text-align: center; color: var(--tinta-3); font-size: 13.5px; }
.vazio .serif { font-size: 21px; color: var(--tinta-2); display: block; margin-bottom: 4px; }

/* Esqueleto de carregamento (sem piscar: só na primeira carga) */
.esqueleto { border-radius: 8px; background: linear-gradient(90deg, var(--fundo-3), var(--fundo-2), var(--fundo-3)); background-size: 200% 100%; animation: esq 1.4s ease-in-out infinite; }
@keyframes esq { to { background-position: -200% 0; } }

/* Alertas dentro da ficha e dos modais */
.alerta { display: flex; gap: 10px; padding: 11px 13px; border-radius: 12px; font-size: 13px; line-height: 1.45; color: var(--tinta); }
.alerta > svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.alerta > div { min-width: 0; flex: 1; }
.alerta strong { font-weight: 600; }
.alerta-atencao { background: var(--atencao-fundo); } .alerta-atencao > svg { color: var(--atencao); }
.alerta-perigo { background: var(--perigo-fundo); } .alerta-perigo > svg { color: var(--perigo); }
.alerta-info { background: var(--info-fundo); } .alerta-info > svg { color: var(--info); }
.alerta-ok { background: var(--ok-fundo); } .alerta-ok > svg { color: var(--ok); }
.alerta-ouro { background: var(--ouro-lavado); } .alerta-ouro > svg { color: var(--ouro-texto); }
.alerta-neutro { background: var(--fundo-3); } .alerta-neutro > svg { color: var(--tinta-2); }
.alerta .bloco { color: var(--tinta-2); margin-top: 2px; }
.alerta-acoes { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Dica (tooltip) ---------- */
.dica-flutuante {
  position: fixed; z-index: 90; pointer-events: none;
  padding: 6px 10px; border-radius: 8px; background: var(--tinta); color: var(--tinta-inversa);
  font: 500 12px/1.3 var(--sans); box-shadow: var(--sombra-2); white-space: nowrap;
  opacity: 0; translate: 0 4px; transition: opacity var(--rapido), translate var(--rapido);
}
.dica-flutuante.visivel { opacity: 1; translate: 0 0; }

/* ---------- Avisos (toast) ---------- */
.avisos { position: fixed; z-index: 95; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.aviso {
  display: flex; align-items: center; gap: 14px; min-width: 280px; max-width: 440px; pointer-events: auto;
  padding: 10px 12px 10px 16px; border-radius: 12px;
  background: var(--tinta); color: var(--tinta-inversa); box-shadow: var(--sombra-3);
  font-size: 13.5px; animation: aviso-entra var(--medio) var(--curva);
}
.aviso > svg { width: 18px; height: 18px; color: var(--ouro-suave); flex: none; }
.aviso.erro > svg { color: #F2A99B; }
[data-tema="escuro"] .aviso > svg { color: #7E6230; }
[data-tema="escuro"] .aviso.erro > svg { color: #A3372A; }
.aviso .aviso-texto { flex: 1; }
.aviso button { background: none; border: 0; color: var(--ouro-suave); font-weight: 600; padding: 4px 8px; border-radius: 6px; min-height: 32px; }
[data-tema="escuro"] .aviso button { color: #6B5310; }
.aviso button:hover { text-decoration: underline; }
.aviso button:focus-visible { outline-color: var(--ouro-suave); }
@keyframes aviso-entra { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Modal e gaveta (dialog nativo: foco preso, Esc e o resto inerte) ---------- */
dialog { color: var(--tinta); }
dialog::backdrop { background: var(--veu); backdrop-filter: blur(2px); }
.modal {
  border: 1px solid var(--linha); border-radius: var(--r-4); padding: 0;
  width: min(var(--largura-modal, 560px), calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  background: var(--cartao-elevado); box-shadow: var(--sombra-3); overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: modal-entra var(--medio) var(--curva); }
@keyframes modal-entra { from { opacity: 0; translate: 0 12px; scale: .985; } to { opacity: 1; translate: 0 0; scale: 1; } }
.modal-forma { display: flex; flex-direction: column; min-height: 0; max-height: inherit; }
.modal-cab { padding: 22px 24px 6px; display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex: none; }
.modal-cab h2:focus { outline: none; }
.modal-cab h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.1; font-variant-numeric: lining-nums; }
.modal-cab .sobretitulo { margin-bottom: 8px; }
.modal-corpo { padding: 12px 24px 8px; display: flex; flex-direction: column; gap: 16px; overflow: auto; min-height: 0; }
.modal-rodape { padding: 14px 24px 22px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; flex: none; border-top: 1px solid var(--linha-suave); }
.modal-rodape .modal-rodape-esq { margin-right: auto; }

.gaveta {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(560px, 100vw); max-width: 100vw;
  border: 0; border-left: 1px solid var(--linha); border-radius: 0; padding: 0;
  background: var(--cartao-elevado); box-shadow: var(--sombra-3);
}
.gaveta[open] { animation: gaveta-entra var(--medio) var(--curva); display: flex; flex-direction: column; }
@keyframes gaveta-entra { from { translate: 40px 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }

/* Menu suspenso */
.suspenso {
  position: fixed; z-index: 80; min-width: 220px; max-width: calc(100vw - 16px); padding: 6px;
  background: var(--cartao-elevado); border: 1px solid var(--linha); border-radius: 12px; box-shadow: var(--sombra-3);
  animation: modal-entra var(--rapido) var(--curva); max-height: calc(100dvh - 16px); overflow: auto;
}
.suspenso button, .suspenso a {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 8px 10px; border: 0; border-radius: 8px;
  background: none; text-align: left; font-size: 13.5px; color: var(--tinta); text-decoration: none;
}
.suspenso button:hover, .suspenso a:hover, .suspenso button:focus-visible, .suspenso a:focus-visible { background: var(--fundo-3); outline: 2px solid var(--foco); outline-offset: -2px; }
.suspenso button:hover, .suspenso a:hover { outline: none; }
.suspenso button:disabled { opacity: .5; cursor: not-allowed; }
.suspenso svg { width: 16px; height: 16px; color: var(--tinta-3); flex: none; }
.suspenso .sep { height: 1px; background: var(--linha); margin: 6px 4px; }
.suspenso .rotulo-menu { padding: 8px 10px 4px; }
.suspenso .perigo { color: var(--perigo); }
.suspenso .perigo svg { color: var(--perigo); }
.suspenso [aria-checked="true"]::after { content: ''; margin-left: auto; width: 6px; height: 10px; border: solid var(--tinta); border-width: 0 2px 2px 0; rotate: 45deg; translate: -3px -2px; }

/* ---------- Toque e celular ---------- */
@media (pointer: coarse), (max-width: 760px) {
  .btn, .btn-p, .btn-g { min-height: 44px; }
  .btn-icone, .btn-icone.btn-p { width: 44px; }
  button.chip, button.chip.chip-p, button.selo { min-height: 44px; padding: 0 12px; font-size: 12.5px; }
  .link, .link-lead { min-height: 44px; }
  .opcao { min-height: 48px; }
  .suspenso button, .suspenso a { min-height: 44px; }
  .segmentos button { min-height: 44px; }
  .aviso button { min-height: 44px; }
  .entrada, .selecao { min-height: 46px; font-size: 16px; }
  .area-texto { font-size: 16px; }
}
@media (max-width: 600px) {
  .modal { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-4) var(--r-4) 0 0; max-height: 94dvh; border-bottom: 0; }
  .modal[open] { animation: folha-sobe var(--medio) var(--curva); }
  @keyframes folha-sobe { from { translate: 0 30px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
  .modal-cab { padding: 18px 18px 4px; }
  .modal-corpo { padding: 10px 18px 8px; }
  .modal-rodape { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
  .modal-rodape .btn { flex: 1 1 auto; }
  .opcoes, .opcoes.opcoes-3 { grid-template-columns: 1fr; }
  .grade-2, .grade-3 { grid-template-columns: 1fr; }
  .avisos { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
  .aviso { min-width: 0; max-width: none; }
}
