:root {
  /* Identidade AmbientA: azul-marinho #0B1D45 + cobre #C46A4A (medidos da logomarca oficial) */
  --bg: #f6f4f1; --card: #ffffff; --ink: #0b1d45; --muted: #5b6478; --line: #e4e0da;
  --brand: #0b1d45; --brand-ink: #ffffff; --brand-soft: #e9edf6; --brand-hover: #152b5e;
  --accent: #c46a4a; --accent-ink: #9c4a2e; --accent-soft: #f8ebe4;
  --warn: #8a5a00; --warn-soft: #fff3d6; --crit: #b3261e; --crit-soft: #fce8e6; --info-soft: #eaf0fa; --info: #2a4a8a;
  --ok: #0b1d45; --radius: 10px; --shadow: 0 1px 2px rgba(11,29,69,.06), 0 2px 10px rgba(11,29,69,.05);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); font-size: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; }
h2 { font-size: 1.1rem; } h3 { font-size: 1rem; }
a { color: var(--brand); }
button, .btn { font: inherit; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: .5rem .85rem; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
button:hover, .btn:hover { border-color: var(--accent); }
button.primario, .btn.primario { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
button.primario:hover, .btn.primario:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
h2, h3 { color: var(--brand); }
.rotulo { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; color: var(--muted); }
.estrela { color: var(--accent); }
button.perigo { color: var(--crit); border-color: #efc2be; }
button:disabled { opacity: .55; cursor: not-allowed; }
button.link { border: 0; background: none; padding: 0; color: var(--brand); text-decoration: underline; }
input, select, textarea { font: inherit; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
textarea { min-height: 70px; resize: vertical; }
input[type=checkbox] { width: auto; }
label { display: grid; gap: .25rem; font-size: .85rem; color: var(--muted); }
label > span { font-weight: 600; color: var(--ink); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.muted { color: var(--muted); } .pequeno { font-size: .82rem; }
.erro { color: var(--crit); } .oculto { display: none !important; }
.faixa-teste { background: repeating-linear-gradient(45deg, #ffe08a, #ffe08a 12px, #ffd45c 12px, #ffd45c 24px); color: #4a3800; text-align: center; font-weight: 700; padding: .35rem; font-size: .85rem; letter-spacing: .02em; }
.etiqueta { display: inline-block; padding: .12rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: #efede9; color: var(--muted); }
.st-aguardando_aceite, .st-pendente { background: var(--info-soft); color: var(--info); }
.st-confirmado, .st-aceito { background: var(--brand-soft); color: var(--brand); }
.st-em_atendimento { background: var(--accent-soft); color: var(--accent-ink); }
.st-concluido { background: var(--brand); color: #fff; }
.st-cancelado, .st-revogado, .st-encerrado, .st-recusado, .st-vencido, .st-acesso_expirado { background: #efede9; color: var(--muted); }
.st-alerta, .st-aberta { background: var(--crit-soft); color: var(--crit); }
.grade { display: grid; gap: .75rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.linha { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.entre { justify-content: space-between; }
.aviso { padding: .7rem .9rem; border-radius: 8px; background: var(--warn-soft); color: #5c3b00; }
.aviso.crit { background: var(--crit-soft); color: var(--crit); }
.aviso.ok { background: var(--brand-soft); color: var(--ok); }
.toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 50; box-shadow: var(--shadow); max-width: calc(100vw - 2rem); }
