/* status/estilo.css — página pública de Status (mesmos tokens do portal: preto decide, limão destaca). */
:root {
  --ink: #0F0F0F; --lime: #C7FF2E; --lime-soft: #F1FFD0; --bg: #F2F2EF; --surface: #FFFFFF; --border: #E6E6E3; --track: #E9E9E5; --muted: #6B6B66;
  --up: #2F7A1F; --up-bg: #E8F5DF; --warn: #B45309; --warn-bg: #FEF3C7; --down: #C0362C; --down-bg: #FDECEA;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #F4F4F2; --bg: #0B0B0B; --surface: #161616; --border: #2A2A2A; --track: #262626; --muted: #A0A09A; --lime-soft: #26300F; --up-bg: #13240E; --warn-bg: #2B1E0B; --down-bg: #2A1311; --up: #7BD06A; --down: #FF7A6E; --warn: #F2B04B; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; }
.pagina { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; display: grid; gap: 16px; }
.topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 4px; }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; }
.pilula { background: var(--lime); color: #0F0F0F; border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 700; }
.topo-link { color: var(--ink); font-weight: 600; font-size: 14px; text-underline-offset: 3px; }
.aviso { margin: 0; padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.aviso.bom { background: var(--lime-soft); }
.aviso.ruim { background: var(--down-bg); color: var(--down); }

.geral { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: 20px; background: #0F0F0F; color: #FFFFFF; animation: entra .4s ease both; }
.geral h1 { margin: 0; font-family: Manjari, Inter, sans-serif; font-size: clamp(24px, 4vw, 32px); line-height: 1.1; }
.geral p { margin: 6px 0 0; color: #BDBDBD; font-size: 14px; }
.geral-luz { width: 18px; height: 18px; flex: none; border-radius: 50%; background: #8A8A86; }
.geral-ok .geral-luz { background: var(--lime); box-shadow: 0 0 0 6px rgba(199, 255, 46, .2); animation: pulsa 2.4s ease-in-out infinite; }
.geral-atencao .geral-luz { background: #F2B04B; box-shadow: 0 0 0 6px rgba(242, 176, 75, .2); animation: pulsa 1.4s ease-in-out infinite; }
.geral-erro { background: #7A1F18; }
.geral-erro .geral-luz { background: #FFB4AA; box-shadow: 0 0 0 6px rgba(255, 180, 170, .2); animation: pulsa 1s ease-in-out infinite; }

.cartao { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; animation: entra .4s ease both; }
.cartao-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
h2 { margin: 0; font-size: 16px; font-weight: 600; }
.legenda { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legenda .d { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }

.servico { padding: 16px 0; border-top: 1px solid var(--border); }
.servico:first-of-type { border-top: 0; }
.servico-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.servico h3 { margin: 0; font-size: 15px; font-weight: 600; }
.servico-topo p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip-ok { background: var(--up-bg); color: var(--up); }
.chip-atencao { background: var(--warn-bg); color: var(--warn); }
.chip-erro { background: var(--down-bg); color: var(--down); }
.chip-erro i, .chip-atencao i { animation: pulsa 1.2s ease-in-out infinite; }
.chip-sem { background: var(--track); color: var(--muted); }

.barras { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; margin: 14px 0 8px; height: 34px; }
.barras .d { border-radius: 3px; transition: transform .15s ease, opacity .15s ease; }
.barras .d:hover { transform: scaleY(1.15); opacity: .8; }
.d.ok { background: var(--up); }
.d.parcial { background: #F2B04B; }
.d.ruim { background: var(--down); }
.d.sem { background: var(--track); }
.servico-pe { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.servico-pe b { color: var(--ink); }

.incidentes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.incidentes li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border-left: 3px solid var(--up); background: var(--bg); font-size: 14px; }
.incidentes li.aberto { border-left-color: var(--down); }
.incidentes span { color: var(--muted); font-size: 12.5px; }
.vazio { color: var(--muted); margin: 8px 0 0; }

.avisos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(min(100%, 320px), 1fr); gap: 16px; align-items: center; background: var(--lime-soft); border-color: transparent; }
.avisos p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.form { display: flex; gap: 8px; }
.form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; }
.form input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.form button { height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: #0F0F0F; color: var(--lime); font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s ease; }
.form button:hover { transform: translateY(-1px); }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rodape { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; padding: 4px 4px 0; }
.rodape a { color: var(--ink); font-weight: 600; }

@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulsa { 50% { opacity: .45; } }
@media (max-width: 640px) {
  .barras { grid-template-columns: repeat(45, minmax(0, 1fr)); }
  .barras .d:nth-child(-n+45) { display: none; }
  .avisos { grid-template-columns: 1fr; }
  .form { flex-direction: column; }
  .servico-pe span:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.marca-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.geral > div { min-width: 0; }
.geral h1 { overflow-wrap: anywhere; }
