:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #17212b;
  background: #edf2f5;
  --navy: #102b3f;
  --blue: #156b9b;
  --green: #267847;
  --amber: #9c6817;
  --red: #a93636;
  --border: #d3dee5;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  background: var(--navy);
  color: white;
  padding: .9rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.brand { font-weight: 850; font-size: 1.2rem; }
.subtitle { opacity: .75; font-size: .84rem; }
nav { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
nav a { color: #dff4ff; text-decoration: none; font-weight: 700; }
main { max-width: 1420px; margin: 0 auto; padding: 1rem; }
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: .9rem;
  box-shadow: 0 5px 18px rgba(16,43,63,.06);
}
.login { max-width: 500px; margin: 3rem auto; }
.heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .7rem;
}
.check {
  border: 1px solid var(--border);
  border-left: 6px solid var(--blue);
  border-radius: 9px;
  padding: .8rem;
}
.check.Healthy { border-left-color: var(--green); }
.check.Degraded { border-left-color: var(--amber); }
.check.Unhealthy { border-left-color: var(--red); }
.check strong { display: block; }
.meta { color: #607584; font-size: .84rem; }
label { display: block; font-weight: 700; margin-bottom: .8rem; }
input, select {
  display: block;
  width: 100%;
  margin-top: .3rem;
  padding: .65rem;
  border: 1px solid #b9c8d0;
  border-radius: 7px;
  font: inherit;
}
button {
  border: 0;
  border-radius: 7px;
  padding: .65rem .9rem;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
button.secondary { background: #e1eaf0; color: #173247; }
button.warning { background: var(--amber); }
button.danger { background: var(--red); }
.hidden { display: none !important; }
.message { min-height: 1.3rem; white-space: pre-wrap; }
.message.error { color: var(--red); }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { padding: .6rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: #f1f5f7; position: sticky; top: 0; }
.table-wrap { max-height: 480px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.status {
  display: inline-block;
  border-radius: 999px;
  padding: .16rem .5rem;
  font-weight: 800;
  background: #e6edf1;
}
.status.Healthy, .status.Succeeded, .status.Delivered, .status.Clean { background: #dff3e5; color: #1f6038; }
.status.Degraded, .status.RetryScheduled, .status.ScanSkipped { background: #fff0cf; color: #754b00; }
.status.Unhealthy, .status.DeadLetter, .status.Failed, .status.ThreatDetected { background: #fde3e3; color: #8b2424; }
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  header, .heading { align-items: flex-start; flex-direction: column; }
}
