/* ============================================================================
   ExpoPass — Design System · identidade visual v1.0 (out/2026)
   Manual: /marca · Tokens: /marca/tokens.css (marca fixa --ep-*, camada do evento --ev-*).
   Este arquivo traduz os tokens para os componentes da plataforma. Os nomes
   antigos (--expo-*, --fundo, --texto…) continuam valendo e apontam para a marca.
   O carimbo permanece na tinta vermelha #C8102E, âncora do ecossistema VisitePB.
   ========================================================================== */
@import url('/marca/tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Archivo:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* aliases que o tokens.css não define */
  --expo-roxo-2: color-mix(in srgb, var(--ev-primaria) 80%, #fff);
  --expo-vermelho: #E23A35;
  --expo-terra: #B45A29;

  /* tokens históricos do app, agora ligados à marca */
  --azul: #0E5AA7;             /* âncora VisitePB (links, credencial visitante) */
  --azul-escuro: #0A3D73;
  --verde: var(--ep-sucesso);
  --amarelo: var(--ep-ouro);
  --vermelho: var(--ep-erro);
  --fundo: var(--ep-creme);
  --cartao: #fff;
  --texto: var(--ep-grafite);
  --texto-2: var(--ep-nevoa);
  --borda: var(--ep-areia);

  --sombra: var(--ep-sombra-1);
  --sombra-alta: var(--ep-sombra-2);
  --raio: var(--ep-raio);
  --raio-s: var(--ep-raio-s);
  --fonte: var(--ep-fonte-texto);
  --fonte-display: var(--ep-fonte-titulo);

  /* texto sobre as cores do evento: branco ou noite, o que tiver mais contraste (ajustado em shared.js) */
  --on-destaque: #1B1033;
  --on-primaria: #fff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; font-family: var(--fonte); background: var(--fundo);
  color: var(--texto); line-height: 1.5; font-size: 16px;
  -webkit-font-smoothing: antialiased; accent-color: var(--ev-primaria);
}
::selection { background: color-mix(in srgb, var(--ev-destaque) 38%, #fff); color: var(--ep-noite); }
h1, h2, h3, h4 { margin: 0 0 .4em; font-family: var(--fonte-display); font-weight: 800; line-height: 1.15; color: var(--texto); }
p { margin: 0 0 1em; }
a { color: var(--expo-roxo); text-decoration: none; }
img, svg { max-width: 100%; }
/* ícone da marca: grade 24, traço 2 — herda a cor do texto.
   <svg class="ic"><use href="/marca/icones/icones.svg#ep-mapa"/></svg> */
.ic { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.p { width: 18px; height: 18px; } .ic.m { width: 20px; height: 20px; } .ic.g { width: 32px; height: 32px; } .ic.gg { width: 48px; height: 48px; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--expo-sol) 60%, white); outline-offset: 2px; }

/* ---- marca / decoração do evento ---- */
.faixa-padrao {
  height: 14px; background: url('/assets/padrao-expo.svg');
  background-size: auto 100%; background-repeat: repeat-x;
}
.fita { /* fita inclinada do banner oficial */
  display: inline-block; padding: 6px 18px; background: var(--expo-roxo); color: #fff;
  font-family: var(--fonte); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  transform: skewX(-8deg); border-radius: 6px;
}
.fita > span { display: inline-block; transform: skewX(8deg); }
.fita.laranja { background: linear-gradient(100deg, var(--expo-ouro), var(--expo-sol)); color: #fff; }
.fita.vermelha { background: var(--expo-vermelho); }
.logo-expopass { display: inline-flex; align-items: baseline; gap: 6px; line-height: 1; user-select: none; }
.logo-expopass .exp { font-family: var(--fonte-display); font-weight: 800; color: var(--expo-ouro); letter-spacing: -1px; }
.logo-expopass .inf { align-self: center; }
.logo-expopass .pass {
  font-weight: 800; background: var(--expo-roxo); color: #fff; letter-spacing: 4px;
  padding: .1em .45em .12em .55em; border-radius: .14em; transform: skewX(-8deg); display: inline-block;
}
.logo-expopass .pass > span { display: inline-block; transform: skewX(8deg); }

/* ---- componentes base ---- */
.card {
  background: var(--cartao); border-radius: var(--raio);
  box-shadow: var(--sombra); padding: 18px;
}
.btn {
  --b-bg: var(--ev-primaria); --b-fg: var(--on-primaria);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border: 0; border-radius: 14px;
  background: var(--b-bg); color: var(--b-fg); font: 800 16px/1.15 var(--fonte); letter-spacing: .005em;
  /* peso físico de carimbo: a sombra sólida some quando o botão é apertado */
  box-shadow: 0 3px 0 color-mix(in srgb, var(--b-bg) 66%, #000);
  cursor: pointer; text-decoration: none; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform var(--ep-d-rapido) var(--ep-ease), box-shadow var(--ep-d-rapido) var(--ep-ease), filter var(--ep-d-rapido), background var(--ep-d-normal);
}
.btn::before { /* brilho suave no topo */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 55%);
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 color-mix(in srgb, var(--b-bg) 66%, #000); filter: none; }
.btn:disabled, .btn[aria-disabled="true"] { --b-bg: var(--ep-areia); --b-fg: #9A8F82; box-shadow: none; cursor: not-allowed; filter: none; transform: none; }
.btn:disabled::before { display: none; }
.btn .ic { width: 20px; height: 20px; }
.btn.sol { --b-bg: var(--ev-destaque); --b-fg: var(--on-destaque); }
.btn.verde { --b-bg: var(--ep-sucesso); --b-fg: #fff; }
.btn.noite { --b-bg: var(--ev-escura); --b-fg: #fff; }
.btn.roxo { --b-bg: var(--ev-primaria); --b-fg: var(--on-primaria); }
.btn.perigo { --b-bg: var(--ep-tinta); --b-fg: #fff; }
.btn.fantasma { --b-bg: transparent; --b-fg: var(--ev-primaria); box-shadow: inset 0 0 0 2px currentColor; background: transparent; }
.btn.fantasma::before { display: none; }
.btn.fantasma:hover { background: color-mix(in srgb, var(--ev-primaria) 8%, transparent); filter: none; }
.btn.fantasma:active { transform: scale(.98); box-shadow: inset 0 0 0 2px currentColor; }
.btn.fantasma.claro { --b-fg: #fff; }
.btn.fantasma.claro:hover { background: rgba(255, 255, 255, .12); }
.btn.fantasma.perigo { --b-fg: var(--ep-tinta); background: transparent; }
.btn.mini { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 10px; box-shadow: 0 2px 0 color-mix(in srgb, var(--b-bg) 66%, #000); gap: 6px; }
.btn.mini:active { transform: translateY(2px); }
.btn.grande { min-height: 56px; padding: 12px 28px; font-size: 18px; border-radius: 16px; }
.btn.bloco { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: 999px; font-size: 13px; font-weight: 700;
  background: #F3ECFB; color: #5B4A80;
}
.chip.sol { background: #FDEEDA; color: #A85A08; }
.chip.verde { background: #e3f6ea; color: #147a3a; }
.chip.vermelho { background: #fdeaea; color: #b03030; }
.chip.noite { background: var(--expo-noite); color: var(--expo-ouro); }
.chip.roxo { background: var(--expo-roxo); color: #fff; }

.selo-evento {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px;
  background: var(--ev-destaque); color: var(--on-destaque); border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--ev-destaque) 66%, #000);
}
.selo-evento .ic { width: 14px; height: 14px; }

/* ---- formulários ---- */
.campo { margin-bottom: 16px; }
.campo label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--texto); }
.campo .dica { font-size: 12.5px; color: var(--texto-2); margin-top: 4px; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font-size: 16px;
  border: 1.5px solid var(--borda); border-radius: 12px; background: #fff;
  color: var(--texto); font-family: inherit; transition: border-color .15s;
}
.campo textarea { min-height: 84px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  border-color: var(--expo-sol); outline: none; box-shadow: 0 0 0 3px rgba(245, 130, 32, .16);
}
.campo.erro input { border-color: var(--vermelho); }
.campo .msg-erro { color: var(--vermelho); font-size: 13px; font-weight: 600; margin-top: 4px; }

.check-consent {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px;
  border: 1.5px solid var(--borda); border-radius: 12px; margin-bottom: 12px;
  cursor: pointer; transition: border-color .15s, background .15s; background: #fff;
}
.check-consent:has(input:checked) { border-color: var(--verde); background: #f4fbf7; }
.check-consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--verde); flex-shrink: 0; }
.check-consent b { display: block; font-size: 14.5px; }
.check-consent span { font-size: 13px; color: var(--texto-2); }

.grade-interesses { display: flex; flex-wrap: wrap; gap: 8px; }
.interesse {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px;
  border: 1.5px solid var(--borda); border-radius: 999px; background: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer; user-select: none;
  transition: all .15s; color: var(--texto);
}
.interesse input { display: none; }
.interesse:has(input:checked) {
  border-color: var(--cor, var(--expo-sol));
  background: color-mix(in srgb, var(--cor, var(--expo-sol)) 12%, white);
  color: color-mix(in srgb, var(--cor, var(--expo-sol)) 80%, black);
}

/* ---- selos de trilha e carimbos ---- */
.selo-trilha {
  width: 54px; height: 54px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
  background: color-mix(in srgb, var(--cor) 14%, white);
  border: 2.5px solid var(--cor); position: relative;
}
.selo-trilha.cheio { background: var(--cor); }
.progress-trilha { height: 8px; border-radius: 999px; background: #F1E8DB; overflow: hidden; }
.progress-trilha > i {
  display: block; height: 100%; border-radius: 999px;
  background: var(--cor, var(--expo-sol)); transition: width .5s cubic-bezier(.22,1,.36,1);
}

.carimbo-mini {
  width: 62px; height: 62px; border-radius: 50%; border: 2.5px solid var(--expo-carimbo);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--expo-carimbo); background: #fff; transform: rotate(-6deg);
  font-size: 8px; font-weight: 800; text-align: center; line-height: 1.1;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px color-mix(in srgb, var(--expo-carimbo) 40%, white);
}
.carimbo-mini .ico { font-size: 17px; }
.carimbo-vazio {
  width: 62px; height: 62px; border-radius: 50%; border: 2px dashed #D9CBB6;
  display: flex; align-items: center; justify-content: center; color: #C9BBA4; font-size: 20px;
}

.medalha {
  width: 72px; height: 80px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; position: relative; margin: 0 auto;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #FFD766, var(--expo-ouro));
}
.medalha.bloqueada { background: #E7DFD2; filter: grayscale(1); opacity: .75; }

/* ---- toast do carimbo ---- */
@keyframes carimbada {
  0% { transform: rotate(-8deg) scale(1.6); opacity: 0; }
  55% { transform: rotate(-8deg) scale(1.15); opacity: 1; }
  75% { transform: rotate(-8deg) scale(.97); }
  100% { transform: rotate(-8deg) scale(1); }
}
.toast-carimbo { animation: carimbada .35s cubic-bezier(.2,.8,.3,1) both; }
@media (prefers-reduced-motion: reduce) {
  .toast-carimbo { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%);
  background: var(--expo-noite); color: #fff; padding: 12px 20px;
  border-radius: 14px; font-weight: 700; font-size: 15px; z-index: 200;
  box-shadow: var(--sombra-alta); max-width: min(92vw, 480px); text-align: center;
  opacity: 0; transition: opacity .25s, translate .25s;
}
.toast.on { opacity: 1; translate: 0 -6px; }
.toast.erro { background: var(--vermelho); }
.toast.ok { background: var(--verde); }

/* ---- modal ---- */
.modal-fundo {
  position: fixed; inset: 0; background: rgba(30, 14, 66, .62); z-index: 150;
  display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(3px); animation: fadein .2s;
}
@keyframes fadein { from { opacity: 0; } }
.modal {
  background: var(--cartao); border-radius: 22px 22px 0 0; width: min(560px, 100%);
  max-height: 88vh; overflow: auto; padding: 22px; animation: sobe .28s cubic-bezier(.22,1,.36,1);
}
@keyframes sobe { from { transform: translateY(60px); opacity: .4; } }
@media (min-width: 640px) {
  .modal-fundo { align-items: center; padding: 20px; }
  .modal { border-radius: 22px; }
}

/* ---- tab bar (app) ---- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex; background: color-mix(in srgb, var(--cartao) 94%, transparent); border-top: 1px solid var(--borda);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(46, 23, 96, .06);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px 6px; font-size: 11px; font-weight: 700; color: var(--texto-2);
  min-height: 58px; justify-content: center; transition: color var(--ep-d-normal);
}
.tabbar a .ico {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 30px;
  border-radius: 99px; line-height: 1; font-size: 22px; transition: background var(--ep-d-normal) var(--ep-ease);
}
.tabbar a .ico .ic { width: 24px; height: 24px; }
.tabbar a.ativa { color: var(--ev-primaria); }
.tabbar a.ativa .ico { background: color-mix(in srgb, var(--ev-primaria) 13%, #fff); }
.tabbar a.destaque { color: var(--ep-grafite); }
.tabbar a.destaque .ico {
  width: 58px; height: 58px; margin-top: -30px; border-radius: 50%;
  background: var(--ev-destaque); color: var(--on-destaque);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--ev-destaque) 62%, #000), 0 10px 20px color-mix(in srgb, var(--ev-destaque) 45%, transparent), 0 0 0 5px var(--fundo);
  transition: transform var(--ep-d-rapido) var(--ep-ease), box-shadow var(--ep-d-rapido) var(--ep-ease);
}
.tabbar a.destaque .ico .ic { width: 28px; height: 28px; }
.tabbar a.destaque:active .ico { transform: translateY(4px); box-shadow: 0 1px 0 color-mix(in srgb, var(--ev-destaque) 62%, #000), 0 0 0 5px var(--fundo); }

/* ---- KPI / dashboard ---- */
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi .valor { font-family: var(--fonte-display); font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.kpi .rotulo { font-size: 13px; color: var(--texto-2); font-weight: 600; }
.kpi .delta { font-size: 12.5px; font-weight: 700; color: var(--verde); }

.tabela { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tabela th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--texto-2); padding: 8px 10px; border-bottom: 2px solid var(--borda);
}
.tabela td { padding: 9px 10px; border-bottom: 1px solid var(--borda); }
.tabela tr:hover td { background: #FCF7EE; }

.skeleton {
  background: linear-gradient(90deg, #F3EBDD 25%, #FAF4E9 50%, #F3EBDD 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px;
  color: transparent !important; user-select: none;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- barra de logos institucionais ---- */
.logos-institucionais {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 28px; padding: 18px 16px; background: var(--expo-noite); border-radius: var(--raio);
  border-top: 5px solid var(--expo-sol);
}
.logos-institucionais img { height: 44px; width: auto; object-fit: contain; }
.logos-institucionais img.grande { height: 58px; }
.logos-institucionais img.clara { background: #fff; padding: 6px 10px; border-radius: 10px; height: 46px; }
.logos-institucionais.plana { background: transparent; border-radius: 0; border-top: 0; }

/* util */
.linha { display: flex; align-items: center; gap: 12px; }
.entre { justify-content: space-between; }
.centro { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.texto-2 { color: var(--texto-2); }
.mini { font-size: 13px; }
.oculto { display: none !important; }
.grade { display: grid; gap: 14px; }
/* item de grade encolhe até a largura da coluna (senão tabela ou gráfico largo empurra a página no celular) */
.grade > * { min-width: 0; }
@media (min-width: 720px) {
  .grade.c2 { grid-template-columns: 1fr 1fr; }
  .grade.c3 { grid-template-columns: repeat(3, 1fr); }
  .grade.c4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------------------------------------------------------------------
   C2 — estados de erro, vazio e conexão
   Toda tela que busca dados na API precisa saber dizer "não deu, tente de novo"
   sem deixar a pessoa olhando para um bloco em branco.
   --------------------------------------------------------------------------- */
.estado {
  display: grid; gap: 10px; justify-items: center; text-align: center;
  padding: 28px 18px; border: 1px dashed var(--borda); border-radius: var(--raio);
  background: #FFFDF9; color: var(--texto-2);
}
.estado .estado-icone { font-size: 30px; line-height: 1; }
.estado .estado-titulo { font-family: var(--fonte-titulo, inherit); font-weight: 700; color: var(--texto); font-size: 17px; }
.estado p { margin: 0; font-size: 14px; max-width: 42ch; }
.estado.erro { border-color: #F0C4C2; background: #FFF7F6; }
.estado.erro .estado-icone { color: var(--vermelho); }

/* aviso fixo de conexão — some sozinho quando a internet volta */
.barra-conexao {
  position: fixed; inset: auto 0 0 0; z-index: 900;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; font-size: 14px; font-weight: 600;
  background: var(--expo-noite); color: #fff;
  transform: translateY(110%); transition: transform .25s ease;
}
.barra-conexao.on { transform: none; }
.barra-conexao.sincronizando { background: var(--expo-sol); color: #241206; }

/* C3 — selo de carimbo aguardando internet */
.selo-fila {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: #FFF0D8; color: #8A5200; border: 1px solid #F2D49A;
}

/* M6 — botão ocupado: bloqueia o clique duplo e mostra que está trabalhando */
button[data-ocupado], .btn[data-ocupado] {
  opacity: .65; pointer-events: none; position: relative;
}
button[data-ocupado]::after, .btn[data-ocupado]::after {
  content: ''; width: 13px; height: 13px; margin-left: 8px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  display: inline-block; vertical-align: -2px; animation: girando .7s linear infinite;
}
@keyframes girando { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  button[data-ocupado]::after, .btn[data-ocupado]::after { animation: none; }
  .skeleton { animation: none; }
}

/* M5 — foco sempre visível (teclado e leitores de tela) */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--expo-sol); outline-offset: 2px; border-radius: 6px;
}
.pular-para-conteudo {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--expo-noite); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.pular-para-conteudo:focus { left: 8px; }

/* ---- melhorias 2026-09: Hora de Ouro, missões, palco ---- */
.card-ouro {
  background: linear-gradient(135deg, #2E1760, #4B2590 70%); color: #fff;
  border: 1.5px solid #FBBB2166; position: relative; overflow: hidden;
}
.card-ouro::after {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 160px; height: 160px;
  background: radial-gradient(circle, #FBBB2155, transparent 70%); pointer-events: none;
}
.card-ouro .mini { color: #DCD2F2; }
.ouro-item {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 11px;
  background: #ffffff14; border-radius: 12px; color: #fff;
}
.ouro-item b { color: #fff; }
.missao { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.missao .ico-missao {
  width: 40px; height: 40px; border-radius: 12px; background: #FDEEDA; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.missao.feita .ico-missao { background: #e3f6ea; }
.anel-ouro { animation: anel-ouro 1.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes anel-ouro { 50% { opacity: .35; transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .anel-ouro { animation: none; } }

/* .grade.c2 = "duas colunas em tela larga": no celular vira uma, mesmo quando a
   página ajusta a proporção com style inline (ex.: 1.3fr 1fr) */
@media (max-width: 719px) {
  .grade.c2 { grid-template-columns: 1fr !important; }
}

/* movimento da marca: os raios do sol giram devagar (some com "reduzir movimento") */
@keyframes girar { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .cabecalho::before, #splash::before { animation: none !important; } }

/* logo de um evento (feito para fundo claro) aplicado onde a página é escura: ganha uma pílula branca */
.logo-evento-pill { background: #fff; border-radius: 14px; padding: 6px 12px; object-fit: contain; }

/* selo de ícone no começo de um título (enfeitarTitulos, em shared.js) */
.h-ic { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: .42em; margin-right: .45em; vertical-align: -.28em; background: var(--ep-noite); color: var(--ep-ouro); }
.h-ic .ic { width: .88em; height: .88em; }
.cabecalho .h-ic, .card-ouro .h-ic { background: rgba(255, 255, 255, .16); color: var(--ev-secundaria); }

/* ícone no começo de botões e chips (enfeitarTitulos, em shared.js) */
.b-ic { display: inline-flex; align-items: center; flex: none; }
.b-ic .ic { display: block; }
.btn.mini .b-ic .ic, .chip .b-ic .ic { width: 15px; height: 15px; }
.btn.so-icone { padding-left: 12px; padding-right: 12px; }
.btn.mini.so-icone { padding-left: 9px; padding-right: 9px; min-width: 36px; }
.chip .b-ic { margin-right: -1px; }
.campo input.invalido, .campo textarea.invalido { border-color: var(--ep-erro); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ep-erro) 18%, transparent); }
h3 .h-ic { width: 1.5em; height: 1.5em; vertical-align: -.3em; }

/* voltar nas sub-telas do app (adicionarVoltar, em app.html) */
.voltar { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #fff; opacity: .9; margin-bottom: 8px; padding: 4px 10px 4px 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.voltar .ic { width: 16px; height: 16px; }
