body.painel .remoto-ficha,
body.painel .remoto-ficha h2,
body.painel .heading h1,
body.painel .remoto-sessao {
  font-family: "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

body.painel .remoto-lista {
  display: grid;
  gap: 10px;
}
body.painel .remoto-sessao {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto 16px;
  gap: 12px 16px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #fffdf6;
  color: #142733;
  border: 1px solid #e0d3a4;
  border-left: 5px solid #c9a227;
  border-radius: 2px;
  min-height: 76px;
  padding: 14px 16px;
  font-weight: 400;
  filter: none;
}
body.painel .remoto-sessao.tunel {
  background: #f3faf5;
  border-color: #b7d8c4;
  border-left-color: #1f8a4c;
}
body.painel .remoto-sessao.urgente {
  background: #fdf4f4;
  border-color: #e3b6b6;
  border-left-color: #b23a3a;
}
body.painel .remoto-sessao:hover {
  filter: none;
  background: #fff;
  border-color: #142733;
}
body.painel .remoto-sessao-codigo {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
body.painel .remoto-sessao-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
body.painel .remoto-sessao-main strong { font-size: 15px; }
body.painel .remoto-sessao-main small { color: #536b7e; font-size: 13px; }
body.painel .remoto-sessao-estado {
  display: grid;
  justify-items: end;
  gap: 4px;
}
body.painel .remoto-chip {
  display: inline-block;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 650;
  border-radius: 2px;
  color: #6d5410;
  background: #f4e6b8;
}
body.painel .remoto-chip.tunel { background: #d7eee0; color: #145c38; }
body.painel .remoto-chip.espera { background: #f4e6b8; color: #6d5410; }
body.painel .remoto-sessao-timer {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: #536b7e;
}
body.painel .remoto-sessao.urgente .remoto-sessao-timer { color: #8a2a2a; font-weight: 650; }
body.painel .remoto-timer.urgente { color: #8a2a2a; font-weight: 650; }
body.painel .remoto-ficha {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
body.painel .remoto-topo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
  margin: 0;
}
body.painel .remoto-topo .fine { margin: 4px 0 0; }
body.painel .remoto-tunel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0;
}
body.painel .remoto-codigo {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.1;
}
body.painel .remoto-timer {
  margin: 0;
  font-variant-numeric: tabular-nums;
  color: #536b7e;
  font-size: 14px;
}
body.painel .remoto-ficha .resumo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
body.painel .remoto-ficha .resumo-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
}
body.painel .remoto-ficha .resumo-item > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
body.painel .remoto-ficha .resumo-item strong {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
}
body.painel .remoto-ficha .resumo-item span:not(.led) {
  font-size: 12px;
  line-height: 1.35;
}
body.painel .remoto-meio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 28px;
  align-items: start;
}
body.painel .remoto-col {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
body.painel .remoto-col-cabeca {
  display: grid;
  gap: 4px;
  min-height: 46px;
  align-content: start;
}
body.painel .remoto-col-cabeca h2 { margin: 0; }
body.painel .remoto-col-cabeca p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #536b7e;
}
body.painel .remoto-col-corpo {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
@supports (grid-template-rows: subgrid) {
  body.painel .remoto-meio {
    grid-template-rows: auto 1fr auto;
  }
  body.painel .remoto-meio > .remoto-col {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / span 3;
  }
}
body.painel dialog.wizard-ativar {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid #d5ddd6;
  background: #f7faf7;
  color: #142733;
}
body.painel dialog.wizard-ativar::backdrop { background: rgba(20, 39, 51, 0.45); }
body.painel .wizard-card { padding: 20px 22px 18px; }
body.painel .wizard-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
body.painel .wizard-topo h2 { margin: 0; font-size: 20px; }
body.painel .wizard-passos {
  list-style: none;
  margin: 16px 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}
body.painel .wizard-passos li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #d5ddd6;
}
body.painel .wizard-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8aa;
  flex: 0 0 auto;
}
body.painel .wizard-passos li.run .wizard-led { background: #d9b85c; }
body.painel .wizard-passos li.ok .wizard-led { background: #226347; }
body.painel .wizard-passos li.erro .wizard-led { background: #b23a3a; }
body.painel .wizard-passos li.ok { border-color: #b7d8c4; }
body.painel .wizard-passos li.erro { border-color: #e3b6b6; background: #fdf4f4; }
body.painel .wizard-msg { margin: 0; color: #536b7e; }
body.painel .wizard-fim { text-align: center; padding: 12px 0 4px; }
body.painel .wizard-check {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #226347;
  color: #fff;
  font-size: 28px;
  line-height: 52px;
}
body.painel .wizard-fim h3 { margin: 0 0 6px; }
body.painel .pontos { align-items: stretch; margin-bottom: 0; }
body.painel .ponto { display: grid; align-content: start; min-height: 100%; }
body.painel .remoto-ficha .led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8aa;
  flex: 0 0 auto;
}
body.painel .indicador.ok .led,
body.painel .resumo-item.ok .led { background: #226347; }
body.painel .indicador.falha .led,
body.painel .indicador.ausente .led,
body.painel .resumo-item.falha .led { background: #b23a3a; }
body.painel .indicador.sondando .led,
body.painel .indicador.sem-sonda .led { background: #d9b85c; }
body.painel .remoto-ficha h2 { margin: 0 0 8px; font-size: 13px; font-weight: 650; color: #536b7e; text-transform: uppercase; letter-spacing: 0.04em; }
body.painel .pontos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
body.painel .ponto {
  padding: 10px 12px 10px 14px;
  border-left: 3px solid #8aa;
  background: #f4f8f4;
}
body.painel .ponto.ok { border-color: #226347; }
body.painel .ponto.alerta { border-color: #d9b85c; background: #f7f1dc; }
body.painel .ponto.critico { border-color: #b23a3a; background: #f6e6e6; }
body.painel .ponto.info { border-color: #6a8496; }
body.painel .ponto strong { display: block; margin-bottom: 2px; }
body.painel .ponto p { margin: 0; font-size: 14px; }
body.painel .ponto small { display: block; margin-top: 4px; color: #536b7e; }
body.painel .remoto-bloco {
  margin: 0 0 8px;
  padding: 8px 0;
  border-top: 1px solid #d5ddd6;
}
body.painel .remoto-bloco summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
  list-style: none;
}
body.painel .remoto-bloco summary::-webkit-details-marker { display: none; }
body.painel .remoto-bloco summary::before { content: "› "; color: #536b7e; }
body.painel .remoto-bloco[open] summary::before { content: "▾ "; }
body.painel .grant-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
body.painel .grant-chip {
  padding: 4px 8px;
  border: 1px solid #c5d0c6;
  background: #f4f8f4;
  font-size: 12px;
}
body.painel .grant-chip.falta { border-color: #d7b0b0; background: #f6e6e6; color: #8a2a2a; }
body.painel .remoto-ficha textarea {
  width: 100%;
  min-height: 280px;
  margin: 0;
  font: 12px/1.45 ui-monospace, Menlo, monospace;
  padding: 10px 12px;
  border: 1px solid #c6d3de;
  background: #f7faf7;
  resize: vertical;
}
body.painel .logs-unico {
  max-height: 200px;
  overflow: auto;
  margin-top: 8px;
  font-size: 12px;
  white-space: pre-wrap;
}
body.painel .remoto-col .barra-acoes { margin: 0; }
body.painel .remoto-col > .remoto-bloco { margin: 0; padding: 8px 0 0; }

@media (max-width: 1100px) {
  body.painel .remoto-meio { grid-template-columns: 1fr; }
  body.painel .pontos { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body.painel .remoto-topo { grid-template-columns: 1fr auto; }
  body.painel .remoto-topo .secondary { grid-column: 1 / -1; }
  body.painel .remoto-ficha .resumo { grid-template-columns: 1fr 1fr; }
  body.painel .remoto-sessao { grid-template-columns: 1fr auto; }
  body.painel .remoto-sessao-codigo { grid-column: 1; }
  body.painel .remoto-sessao-main { grid-column: 1; }
  body.painel .remoto-sessao-estado { grid-column: 1; justify-items: start; }
  body.painel .remoto-sessao .chevron { grid-column: 2; grid-row: 1 / span 3; }
}
