:root {
  color-scheme: dark;
  --bg: #0c121b;
  --panel: #131d29;
  --line: #253243;
  --text: #e4ebf4;
  --muted: #92a2b6;
  --teal: #57d7bf;
  --amber: #e9bc66;
  --red: #f18d93;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.55 system-ui,
    -apple-system,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 15px;
  background: var(--teal);
  color: #082720;
  font-weight: 650;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:hover {
  filter: brightness(1.12);
}
button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
input,
select {
  background: #0c1520;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  color: var(--text);
  min-width: 0;
}
input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
a {
  color: var(--teal);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: 7px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.2px;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: var(--muted);
}
.eyebrow,
.nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--muted);
}
.logo {
  display: inline-grid;
  place-content: center;
  background: var(--teal);
  color: #082720;
  font-size: 27px;
  font-weight: 850;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  grid-auto-flow: column;
  margin-bottom: 30px;
}
.logo span {
  color: #1e7162;
}
.logo.small {
  font-size: 22px;
  width: 42px;
  height: 42px;
  margin: 0;
  flex-shrink: 0;
}
.brand {
  display: flex;
  gap: 12px;
  color: var(--text);
  font-size: 17px;
  align-items: center;
  font-weight: 700;
  margin-bottom: 40px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.7px;
  margin-top: 3px;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  background: #0f1823;
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
nav a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
}
nav a.active {
  background: #19362f;
  color: var(--teal);
}
nav a:hover {
  background: #1b2938;
}
.aside-footer {
  margin-top: auto;
  font-size: 11px;
  color: var(--teal);
  padding-top: 25px;
}
.aside-footer p {
  color: var(--muted);
  margin: 9px 0 17px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 5px;
}
main {
  margin-left: 230px;
  padding: 32px 38px;
  max-width: 1850px;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 23px;
}
.header-right {
  display: flex;
  gap: 15px;
  align-items: center;
}
.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.5px;
  font-weight: 700;
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.protected,
.active {
  color: var(--teal);
  background: #18322e;
}
.review,
.warning,
.dormant {
  color: var(--amber);
  background: #332c1e;
}
.unknown,
.idle {
  color: #aebacf;
  background: #222d3d;
}
.safe {
  color: #8ed3f3;
  background: #1a3045;
}
.critical {
  color: var(--red);
  background: #38222c;
}
.scan-status {
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding: 13px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px;
}
.card .label {
  color: var(--muted);
  font-size: 12px;
}
.card .value {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 10px 0 5px;
}
.card .sub {
  font-size: 11px;
  color: var(--muted);
}
progress {
  width: 100%;
  height: 6px;
  border: none;
  border-radius: 3px;
  overflow: hidden;
  background: #283649;
  margin-top: 14px;
  accent-color: var(--teal);
}
progress::-webkit-progress-bar {
  background: #283649;
}
progress::-webkit-progress-value {
  background: var(--teal);
}
.grid-two {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}
.panel h2 {
  margin-bottom: 20px;
}
.category {
  display: grid;
  grid-template-columns: 130px 1fr 85px 80px;
  gap: 14px;
  align-items: center;
  margin: 14px 0;
  font-size: 12px;
}
.category progress {
  margin: 0;
}
.category small {
  text-align: right;
}
.legend {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.alert {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.alert .badge {
  margin-right: 8px;
}
.toolbar {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.toolbar #search {
  flex: 1;
  min-width: 200px;
}
.toolbar #min-size {
  width: 105px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  background: #172230;
}
th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  max-width: 460px;
  overflow: hidden;
  text-overflow: ellipsis;
}
tbody tr:hover {
  background: #1a2939;
}
td button.link {
  background: transparent;
  color: var(--text);
  padding: 0;
  text-align: left;
  font-weight: 500;
  max-width: 450px;
  overflow: hidden;
  text-overflow: ellipsis;
}
td small {
  display: block;
  font-size: 10px;
}
tr:last-child td {
  border: 0;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
footer {
  font-size: 10px;
  color: var(--muted);
  margin-top: 35px;
}
.empty {
  padding: 50px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 70% 20%, #17332e, transparent 60%);
}
.login form {
  width: min(400px, 90vw);
  padding: 38px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.login label {
  display: block;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
}
.login input {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.login button {
  width: 100%;
  margin: 5px 0 20px;
}
.login small {
  font-size: 10px;
}
#login-error,
#error {
  color: var(--red);
}
#error {
  border: 1px solid #59363c;
  padding: 15px;
  margin-bottom: 20px;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid #455a73;
  border-radius: 12px;
  width: min(1000px, 95vw);
  max-height: 90vh;
  padding: 28px;
}
dialog::backdrop {
  background: #0009;
}
.close {
  float: right;
}
dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  font-size: 12px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #b8c8dd;
  background: var(--bg);
  padding: 16px;
  font-size: 11px;
  border-radius: 7px;
}
.notice {
  font-size: 12px;
  color: var(--muted);
  padding: 12px 0;
}
.summary-number {
  font-size: 26px;
  margin: 5px 0 15px;
}
.section-spacer {
  margin-top: 24px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  aside {
    width: 195px;
    padding: 25px 14px;
  }
  main {
    margin-left: 195px;
    padding: 25px 20px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .header-right {
    flex-direction: column;
  }
  .category {
    grid-template-columns: 115px 1fr 75px 65px;
  }
}
@media (max-width: 720px) {
  aside {
    position: static;
    width: 100%;
    padding: 16px;
  }
  .brand {
    margin-bottom: 15px;
  }
  .nav-label,
  .aside-footer {
    display: none;
  }
  nav {
    flex-direction: row;
    overflow: auto;
  }
  nav a {
    white-space: nowrap;
  }
  main {
    margin: 0;
    padding: 22px 15px;
  }
  header {
    align-items: flex-start;
  }
  h1 {
    font-size: 24px;
  }
  .header-right .badge {
    display: none;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 15px;
  }
  .card .value {
    font-size: 25px;
  }
  .category {
    grid-template-columns: 95px 1fr 70px;
  }
  .category small:last-child {
    display: none;
  }
  dl {
    grid-template-columns: 100px 1fr;
  }
}
