/* Base compartilhada: fontes, cores e componentes comuns ao diagnostico e ao admin. */
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("/static/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url("/static/fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("/static/fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 300; font-display: swap; src: url("/static/fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("/static/fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  --tinta: #000000;
  --texto: #17191C;
  --texto-2: #565B63;
  --papel: #FFFFFF;
  --fundo: #ECEDEF;
  --suave: #F4F5F6;
  --linha: #CFD3D9;
  --foco: #1B4FD1;
  --baixo: #B42318;
  --medio: #A15C07;
  --bom: #0B7A4B;
  --baixo-fundo: #FDECEA;
  --medio-fundo: #FCF1DD;
  --bom-fundo: #E3F4EB;
  --raio: 10px;
  --fonte: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font-family: var(--fonte); font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.apoio { color: var(--texto-2); font-size: 15px; }

/* Botoes */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: var(--raio);
  border: 1.5px solid var(--tinta); background: var(--tinta); color: #fff;
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  touch-action: manipulation; user-select: none;
}
.botao:active { transform: translateY(1px); }
.botao[disabled] { opacity: .45; cursor: default; }
.botao.claro { background: var(--papel); color: var(--tinta); }
.botao.discreto { background: transparent; color: var(--tinta); border-color: transparent; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.botao.largo { width: 100%; }
.botao.pequeno { min-height: 40px; padding: 0 14px; font-size: 15px; }
.botao.perigo { background: var(--papel); color: var(--baixo); border-color: var(--baixo); }

/* Campos */
.campo { display: block; margin-top: 18px; }
.campo > .rotulo { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.campo .opcional { color: var(--texto-2); font-weight: 400; }
.campo input[type="text"], .campo input[type="tel"], .campo input[type="email"],
.campo input[type="password"], .campo input[type="search"], .campo select, .campo textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--raio);
  border: 1.5px solid var(--linha); background: var(--papel); font-size: 17px;
  appearance: none; -webkit-appearance: none;
}
.campo select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(27, 79, 209, .28); }
.campo input[disabled] { background: var(--suave); color: var(--texto-2); }
.campo.invalido input, .campo.invalido select { border-color: var(--baixo); }
.campo .erro { display: block; color: var(--baixo); font-size: 15px; margin-top: 6px; }
.campo .dica { display: block; color: var(--texto-2); font-size: 14px; margin-top: 6px; }
.moeda { position: relative; }
.moeda > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--texto-2); pointer-events: none; }
.moeda > input[type="text"] { padding-left: 46px; }

.aviso { border-radius: var(--raio); padding: 12px 14px; font-size: 15px; background: var(--suave); }
.aviso.erro { background: var(--baixo-fundo); color: var(--baixo); }
.aviso.ok { background: var(--bom-fundo); color: var(--bom); }

/* Assinatura Soul Consult (sempre sobre branco) */
.assinatura { display: flex; align-items: center; gap: 10px; color: var(--texto-2); font-size: 13px; text-decoration: none; }
.assinatura .simbolo { width: 30px; height: 30px; border-radius: 7px; background: #14213D; overflow: hidden; flex: none; }
.assinatura .simbolo svg { display: block; width: 30px; height: 30px; }
.assinatura .nome { font-family: "Jost", "Futura", "Century Gothic", Arial, sans-serif; font-size: 15px; line-height: 1; color: #14213D; white-space: nowrap; }
.assinatura .nome .sou { font-weight: 500; letter-spacing: .1em; }
.assinatura .nome .l, .assinatura .nome .tres { color: #A8861F; }
.assinatura .nome .tres { margin: 0 .15em; }
.assinatura .nome .consult { font-weight: 300; letter-spacing: .117em; }

dialog { border: 0; padding: 0; border-radius: 16px; width: min(440px, calc(100vw - 32px)); color: var(--texto); background: var(--papel); }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
dialog .dentro { padding: 22px 20px 20px; }
dialog h2 { font-size: 22px; }

.aviso-flutuante {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 15px;
  max-width: calc(100vw - 32px); z-index: 50; text-align: center;
}

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