/* status.maxmold.com.br - mesma cara do site (visual-2026.css): fundo grafite, Inter,
   laranja de destaque. As cores de estado são as de toda página de status. */
:root {
  --bg: #101113;
  --bg2: #151618;
  --card: #1a1b1e;
  --card2: #222327;
  --border: #2d2f33;
  --border2: #44464b;
  --text: #f5f3ef;
  --muted: #acadb4;
  --muted2: #90929b;
  --accent: #ff8356;
  --accent2: #ffad82;
  --ok: #5fbf86;
  --lento: #e8b84a;
  --parcial: #e8b84a;
  --falha: #ef5b5b;
  --manutencao: #5aa2e6;
  --nd: #34363b;
  --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent2); }
a:hover { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pagina { max-width: 860px; margin: 0 auto; padding: 0 16px 40px; }

/* topo */
.topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0 18px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.marca img { height: 44px; width: auto; display: block; }
.marca-status {
  font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--muted);
  border-left: 1px solid var(--border2); padding-left: 12px;
}
.idioma select {
  background: var(--card); color: var(--text); border: 1px solid var(--border2);
  border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 14px; max-width: 200px;
}

/* faixa geral */
.geral {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border); margin: 6px 0 16px;
}
.geral h1 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 700; }
.geral-hora { margin: 2px 0 0; color: var(--muted2); font-size: 13.5px; }
.geral-icone {
  flex: none; width: 38px; height: 38px; border-radius: 50%; position: relative;
  background: var(--nd);
}
.geral-icone::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 8px;
  border-left: 3px solid #101113; border-bottom: 3px solid #101113;
  transform: translateY(-2px) rotate(-45deg); opacity: 0;
}
.estado-ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.estado-ok .geral-icone { background: var(--ok); }
.estado-ok .geral-icone::after { opacity: 1; }
.estado-parcial, .estado-lento { border-color: color-mix(in srgb, var(--parcial) 50%, var(--border)); }
.estado-parcial .geral-icone, .estado-lento .geral-icone { background: var(--parcial); }
.estado-falha { border-color: color-mix(in srgb, var(--falha) 55%, var(--border)); }
.estado-falha .geral-icone { background: var(--falha); }
.estado-manutencao { border-color: color-mix(in srgb, var(--manutencao) 50%, var(--border)); }
.estado-manutencao .geral-icone { background: var(--manutencao); }
.estado-parcial .geral-icone::after, .estado-lento .geral-icone::after,
.estado-falha .geral-icone::after, .estado-manutencao .geral-icone::after {
  opacity: 1; width: 3px; height: 16px; border: 0; background: #101113; transform: translateY(-3px);
  box-shadow: 0 13px 0 0 #101113; height: 12px; border-radius: 2px;
}
.estado-carregando .geral-icone { animation: pulsa 1.2s ease-in-out infinite; }
@keyframes pulsa { 50% { opacity: .45; } }

.aviso {
  background: color-mix(in srgb, var(--lento) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--lento) 45%, var(--border));
  border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: 14px;
}

/* incidente aberto (escrito à mão) */
.ativo {
  border-radius: var(--radius); border: 1px solid var(--border2); background: var(--card);
  padding: 16px 18px; margin: 0 0 16px; border-left: 4px solid var(--parcial);
}
.ativo.impacto-falha { border-left-color: var(--falha); }
.ativo.impacto-manutencao { border-left-color: var(--manutencao); }
.ativo h3 { margin: 0 0 4px; font-size: 16px; }
.ativo .quando { color: var(--muted2); font-size: 13px; }
.ativo p { margin: 8px 0 0; }

/* componentes */
.cartao {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 22px; margin: 0 0 16px;
}
.componentes { list-style: none; margin: 0; padding: 0; }
.comp { padding: 18px 0; border-bottom: 1px solid var(--border); }
.comp:last-child { border-bottom: 0; }
.comp-cabeca { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.comp-nome { font-weight: 650; font-size: 15.5px; }
.comp-desc { color: var(--muted2); font-size: 13px; margin: 1px 0 10px; }
.pilula { flex: none; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ok); }
.pilula.e-lento, .pilula.e-parcial { color: var(--parcial); }
.pilula.e-falha { color: var(--falha); }
.pilula.e-manutencao { color: var(--manutencao); }
.pilula.e-nd { color: var(--muted2); }
.barras { display: flex; gap: 2px; height: 34px; }
.barra {
  flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--ok); cursor: default;
  transition: opacity .15s;
}
.barra:hover, .barra.marcada { opacity: .65; }
.barra.b-amarelo { background: var(--parcial); }
.barra.b-vermelho { background: var(--falha); }
.barra.b-nd { background: var(--nd); }
.legenda { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted2); font-size: 12.5px; margin-top: 6px; }
.legenda .linha { flex: 1; height: 1px; background: var(--border); }
.so-celular { display: none; }
@media (max-width: 640px) {
  .barra:nth-child(-n+60) { display: none; }
  .so-pc { display: none; }
  .so-celular { display: inline; }
  .geral h1 { font-size: 18px; }
  .marca img { height: 34px; }
  .marca { gap: 8px; min-width: 0; }
  .marca-status { padding-left: 8px; font-size: 14px; }
  .idioma { flex: none; }
  .idioma select { max-width: 128px; padding: 6px 8px; font-size: 13.5px; }
  .cartao { padding: 4px 16px; }
}

/* dica das barras */
.dica {
  position: fixed; z-index: 10; pointer-events: none; max-width: 260px;
  background: var(--card2); border: 1px solid var(--border2); border-radius: 10px;
  padding: 9px 12px; font-size: 13px; box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
}
.dica b { display: block; margin-bottom: 2px; }

/* teste de conexão */
.teste { padding: 18px 22px 20px; }
.teste h2 { margin: 0 0 4px; font-size: 17px; }
.mudo { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.botao {
  display: inline-block; background: var(--accent); color: #17100c; border: 0; border-radius: 10px;
  padding: 11px 18px; font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none;
}
.botao:hover { background: var(--accent2); color: #17100c; }
.botao:disabled { opacity: .6; cursor: progress; }
.botao-2 { background: var(--card2); color: var(--text); border: 1px solid var(--border2); }
.botao-2:hover { background: var(--border); color: var(--text); }
.teste-linhas { list-style: none; padding: 0; margin: 16px 0 0; }
.teste-linhas li {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.teste-linhas li:last-child { border-bottom: 0; }
.teste-linhas .valor { font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.valor.sim { color: var(--ok); }
.valor.nao { color: var(--falha); }
.valor.esperando { color: var(--muted2); }
.veredito {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 14px;
  background: var(--card2); border: 1px solid var(--border2);
}
.veredito code {
  display: block; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--bg);
  font-size: 12.5px; overflow-wrap: anywhere; color: var(--text);
}
.teste-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* histórico */
.historico h2 { font-size: 17px; margin: 26px 0 10px; }
.dia { border-top: 1px solid var(--border); padding: 12px 0; }
.dia h3 { margin: 0 0 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.incidente { margin: 6px 0 10px; }
.incidente .tit { font-weight: 650; }
.incidente .tit.i-falha { color: var(--falha); }
.incidente .tit.i-parcial { color: var(--parcial); }
.incidente .tit.i-manutencao { color: var(--manutencao); }
.incidente .det { color: var(--muted2); font-size: 13px; }
.incidente p { margin: 4px 0 0; font-size: 14px; }
.vazio { color: var(--muted2); font-size: 14px; border-top: 1px solid var(--border); padding-top: 12px; }

.rodape { color: var(--muted2); font-size: 13px; text-align: center; margin-top: 34px; }
.rodape p { margin: 6px 0; }
.rodape-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
