/* Painel de briefings da Veddu. Uma família (Geist), tokens claros e escuros.
   Fonte no próprio servidor: nada é carregado de fora. */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(geist.woff2) format("woff2");
}

:root {
  --papel: oklch(97.6% 0.005 80);
  --folha: oklch(100% 0 0);
  --tinta: oklch(22% 0.085 270);
  --tinta-2: oklch(46% 0.04 270);
  --linha: oklch(90% 0.012 270);
  --linha-2: oklch(82% 0.02 270);
  --suave: oklch(95.6% 0.012 270);
  --escolhido: oklch(94.5% 0.028 70);
  --marca: oklch(70% 0.17 55);
  --botao: oklch(22% 0.085 270);
  --botao-texto: oklch(98% 0.005 80);
  --botao-sobre: oklch(32% 0.11 270);
  --foco: oklch(58% 0.17 45);
  --alerta-fundo: oklch(95.5% 0.05 85);
  --alerta-texto: oklch(38% 0.09 60);
  --perigo: oklch(50% 0.19 27);
  --perigo-sobre: oklch(43% 0.17 27);
  --s-novo: oklch(66% 0.18 50);
  --s-analise: oklch(58% 0.15 250);
  --s-producao: oklch(56% 0.17 300);
  --s-entregue: oklch(56% 0.13 155);
  --s-arquivado: oklch(60% 0.02 270);
  --raio: 6px;
  --topo: 56px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papel: oklch(17.5% 0.035 270);
    --folha: oklch(21% 0.04 270);
    --tinta: oklch(95% 0.01 80);
    --tinta-2: oklch(75% 0.025 270);
    --linha: oklch(31% 0.04 270);
    --linha-2: oklch(42% 0.045 270);
    --suave: oklch(25.5% 0.045 270);
    --escolhido: oklch(29% 0.05 270);
    --botao: oklch(95% 0.01 80);
    --botao-texto: oklch(20% 0.06 270);
    --botao-sobre: oklch(86% 0.02 80);
    --foco: oklch(76% 0.16 60);
    --alerta-fundo: oklch(30% 0.06 70);
    --alerta-texto: oklch(90% 0.08 85);
    --perigo: oklch(62% 0.19 27);
    --perigo-sobre: oklch(68% 0.18 27);
    --s-analise: oklch(70% 0.13 250);
    --s-producao: oklch(70% 0.14 300);
    --s-entregue: oklch(70% 0.13 155);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--papel); color: var(--tinta);
  font: 400 14.5px/1.5 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; border-radius: var(--raio); }
.icones { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--botao); border-radius: var(--raio); background: var(--botao); color: var(--botao-texto);
  font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
}
.botao:hover { background: var(--botao-sobre); border-color: var(--botao-sobre); }
.botao:disabled { opacity: .55; cursor: default; }
.botao--leve { background: transparent; border-color: var(--linha-2); color: var(--tinta); }
.botao--leve:hover { background: var(--suave); border-color: var(--linha-2); }
.botao--perigo { background: var(--perigo); border-color: var(--perigo); color: oklch(99% 0 0); }
.botao--perigo:hover { background: var(--perigo-sobre); border-color: var(--perigo-sobre); }
.botao--texto { border-color: transparent; background: transparent; color: var(--perigo); padding: 0 8px; }
.botao--texto:hover { background: var(--suave); border-color: transparent; }
@media (prefers-color-scheme: dark) { .botao--perigo { color: oklch(17% 0.04 27); } }

/* ------------------------------------------------- campo, diálogo, recado */
.dialogo { width: min(440px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--linha-2); border-radius: 10px; background: var(--folha); color: var(--tinta); }
.dialogo::backdrop { background: oklch(15% 0.04 270 / .55); }
.dialogo h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.dialogo p { color: var(--tinta-2); }
.campo { display: grid; gap: 6px; margin-top: 16px; }
.campo input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--linha-2); border-radius: var(--raio); background: var(--papel); }
.dialogo .erro { color: var(--perigo); margin-top: 8px; }
.dialogo__acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.recado { position: fixed; left: 50%; bottom: 24px; z-index: 30; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: var(--raio); background: var(--tinta); color: var(--papel); opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.recado--vivo { opacity: 1; transform: translate(-50%, 0); }

.campo > span:not(.senha), .campo > label { font-weight: 500; }
.campo small { color: var(--tinta-2); font-size: 13px; }
.erro { color: var(--perigo); }

@media (max-width: 820px) {
  .campo input { font-size: 16px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
