:root {
  --blue: #0589d8;
  --ink: #0f172a;
  --muted: #526784;
  --line: #d8e6f4;
  --bg: #eef6fc;
  --card: #ffffff;
  --green: #079455;
  --red: #ef4444;
  --amber: #d97706;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, .16), transparent 32rem),
    linear-gradient(180deg, #eef7ff 0%, #f7fbff 45%, #eef6fc 100%);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--line);
  padding: 24px 18px;
}
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 32px; }
.brand span { display: block; color: var(--muted); font-size: 13px; }
.mark {
  width: 42px; height: 42px; border-radius: 8px;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, #0ea5e9, #075985);
  font-weight: 800;
}
nav { display: grid; gap: 8px; }
nav a {
  text-decoration: none;
  color: #35506f;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 650;
}
nav a.active, nav a:hover { background: #e7f4ff; color: #0476bd; }
.shell { margin-left: 248px; padding: 28px; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
h1, h2 { margin: 0; letter-spacing: 0; }
h1 { font-size: 34px; }
h2 { font-size: 20px; }
p { color: var(--muted); }
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 800;
  color: #0476bd;
  margin: 0 0 4px;
}
.panel, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}
.panel { padding: 22px; margin-bottom: 20px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.panel-head p { margin: 6px 0 0; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.card { padding: 18px; position: relative; overflow: hidden; }
.metric::after {
  content: "";
  position: absolute;
  inset: auto -24px -30px auto;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  opacity: .16;
  background: var(--blue);
}
.metric.good::after { background: var(--green); }
.metric.warn::after { background: var(--amber); }
.metric.proxy::after { background: #7c3aed; }
.card span { color: var(--muted); font-weight: 700; font-size: 13px; }
.card strong { display: block; margin-top: 8px; font-size: 30px; }
.card small { color: #6b7f9d; display: block; margin-top: 4px; font-weight: 650; }
.grid { display: grid; gap: 14px; align-items: end; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wide { grid-column: span 2; }
label { display: grid; gap: 7px; color: #36506f; font-size: 13px; font-weight: 750; }
input, textarea, select {
  width: 100%;
  border: 1px solid #bdd4ea;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { resize: vertical; }
.check { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.check input { width: auto; }
button, .secondary {
  border: 1px solid #b7d4ee;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
button:hover, .secondary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15, 23, 42, .08); }
.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.secondary { background: #f5fbff; color: #075c98; }
.ghost { background: #fff; color: #33506f; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.scan { background: #e9f7ff; color: #0369a1; }
.actions { display: flex; gap: 10px; align-items: center; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px; border-bottom: 1px solid #e7eef8; text-align: left; vertical-align: top; }
th { background: #f6f9fc; color: #35506f; font-size: 12px; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.badge { border-radius: 99px; padding: 4px 9px; font-size: 12px; font-weight: 800; display: inline-block; }
.Working, .completed, .Success { background: #dff8e9; color: var(--green); }
.Pending, .running, .Skipped { background: #eef6ff; color: #0369a1; }
.Error, .failed, .Failed { background: #ffe4e6; color: var(--red); }
.Protected { background: #ede9fe; color: #6d28d9; }
.Not { background: #fff3d6; color: var(--amber); }
.hidden { display: none !important; }
.hint { color: var(--muted); font-size: 13px; margin: -3px 0 12px; }
.job-strip {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  background: #f2f8ff;
  border: 1px solid #c8e2fb;
  color: #305071;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.muted-cell { color: #6b7f9d; }
.domain-title { font-weight: 800; }
.source { color: #59718f; font-size: 12px; margin-top: 3px; }
.error { color: var(--red); font-weight: 750; }
.toast {
  position: fixed; right: 24px; bottom: 24px;
  background: #0f172a; color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15,23,42,.2);
}
@media (max-width: 1000px) {
  .sidebar { position: static; width: auto; }
  .shell { margin-left: 0; padding: 18px; }
  .cards, .grid.two, .grid.three { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .panel-head { display: grid; }
}
