:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #e6edf3;
  background: #0b111b;
  font-size: 15px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 78px;
  border-bottom: 1px solid #253143;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  background: #101925;
}
.brand {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
  text-decoration: none;
  color: #fff;
  margin-right: auto;
}
.brand span {
  color: #64dac3;
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 36px 24px 80px;
}
h1 {
  font-size: 36px;
  letter-spacing: -1.1px;
  line-height: 1.2;
  margin: 12px 0 26px;
}
h2 {
  font-size: 19px;
  margin: 0 0 18px;
}
p {
  line-height: 1.65;
  color: #b4c1d1;
}
.eyebrow {
  color: #64dac3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}
.card {
  background: #111d2c;
  border: 1px solid #28394e;
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 24px;
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
#auth:not([hidden]) {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 70px;
  align-items: center;
  min-height: 65vh;
}
.intro h1 {
  font-size: 52px;
}
.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.tags span,
.badge {
  border: 1px solid #30465c;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  background: #17283a;
}
.danger {
  color: #ff9b9b;
}
.muted {
  color: #8fa2b7;
  font-size: 13px;
}
label {
  display: block;
  margin-bottom: 18px;
  font-size: 13px;
  color: #b4c1d1;
}
input,
select {
  width: 100%;
  display: block;
  margin-top: 8px;
  padding: 12px;
  border-radius: 7px;
  border: 1px solid #32465f;
  background: #0c1623;
  color: #e6edf3;
  font: inherit;
}
input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid #64dac3;
  outline-offset: 3px;
}
button {
  cursor: pointer;
  border: 1px solid #364b63;
  background: #182b3f;
  border-radius: 7px;
  color: #e6edf3;
  padding: 10px 16px;
  font: inherit;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
}
button:hover:not(:disabled) {
  border-color: #64dac3;
  box-shadow: 0 3px 12px #0004;
  transform: translateY(-1px);
}
button:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}
button.active {
  background: #214d49;
  border-color: #64dac3;
  color: #a8f5e6;
}
button.busy {
  position: relative;
  padding-right: 40px;
  opacity: 0.8;
}
button.busy::after {
  content: "";
  position: absolute;
  right: 14px;
  top: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin 0.7s linear infinite;
}
@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
  button:hover:not(:disabled),
  button:active:not(:disabled) {
    transform: none;
  }
  button.busy::after {
    animation: none;
  }
}
.organization-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
.system-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #64dac3;
  color: #09271f;
  border-color: #64dac3;
  font-weight: 650;
}
.link {
  background: none;
  border: none;
  color: #64dac3;
  margin-top: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.metric strong {
  display: block;
  font-size: 32px;
  margin-top: 8px;
}
.metric {
  padding: 22px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
.table-wrap {
  overflow: auto;
}
th {
  color: #94a8be;
  font-weight: 500;
  padding: 14px 10px;
  border-bottom: 1px solid #36485e;
}
td {
  padding: 18px 10px;
  border-bottom: 1px solid #26384c;
  vertical-align: top;
  line-height: 1.6;
}
td button {
  padding: 6px 10px;
  font-size: 12px;
  margin: 3px;
}
td small {
  display: block;
  color: #91a6be;
}
.empty {
  padding: 30px;
  text-align: center;
  color: #91a6be;
}
code,
pre {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: #81d9c9;
}
#fingerprint {
  display: block;
  margin-top: 8px;
}
#token-form {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 18px;
  align-items: end;
}
#token-form button {
  margin-bottom: 18px;
}
#message {
  padding: 14px 18px;
  background: #26374b;
  border: 1px solid #516f8f;
  border-radius: 8px;
  margin-bottom: 24px;
  position: sticky;
  top: 12px;
  z-index: 20;
  box-shadow: 0 8px 24px #0005;
  border-left-width: 5px;
}
#message[data-kind="error"] {
  color: #ffe4e4;
  background: #4a1924;
  border-color: #ef6b7b;
}
#message[data-kind="success"] {
  color: #d3f9ed;
  background: #173d33;
  border-color: #64dac3;
}
.inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.inline input {
  width: auto;
  margin: 0;
}
a {
  color: #79d6ca;
}
footer {
  padding: 24px;
  text-align: center;
  border-top: 1px solid #253143;
  color: #8195ad;
  font-size: 12px;
}
#new-token {
  background: #0c1623;
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 20px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 780px) {
  #auth:not([hidden]) {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .intro h1 {
    font-size: 38px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  #token-form {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 28px;
  }
  header {
    padding: 0 20px;
    gap: 10px;
  }
  #identity {
    font-size: 12px;
  }
  main {
    padding: 24px 16px;
  }
  .card {
    padding: 18px;
  }
}
[hidden] {
  display: none !important;
}
.charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.chart canvas {
  display: block;
  max-width: 100%;
  margin: auto;
}
.chart ul {
  list-style: none;
  padding: 0;
  font-size: 13px;
}
.chart li {
  margin: 6px 0;
  padding-left: 14px;
  border-left: 6px solid;
}
.legend-0 {
  border-color: #d93f58 !important;
}
.legend-1 {
  border-color: #f28b36 !important;
}
.legend-2 {
  border-color: #edc84b !important;
}
.legend-3 {
  border-color: #46a991 !important;
}
.legend-4 {
  border-color: #478fd1 !important;
}
.legend-5 {
  border-color: #8794ab !important;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}
.filters label {
  flex: 1 1 180px;
}
.filters input[type="number"] {
  max-width: 160px;
}
.schedule {
  display: block;
  min-width: 170px;
}
.schedule input[type="number"] {
  width: 120px;
}
.schedule small {
  display: block;
  max-width: 220px;
}
.channel {
  border-top: 1px solid #dce2eb;
  padding: 12px 0;
}
summary {
  cursor: pointer;
  padding: 12px;
  font-weight: 600;
}
.severity {
  font-weight: 700;
}
.severity-critical {
  color: #ff8296;
}
.severity-high {
  color: #ffb470;
}
.severity-medium {
  color: #f4db78;
}
.severity-low {
  color: #6bddbf;
}
.severity-unknown {
  color: #a4b2c7;
}
.client-actions {
  white-space: normal;
  min-width: 230px;
}
.client-actions > button {
  margin: 4px 4px 4px 0;
}
.client-menu {
  display: inline-block;
  vertical-align: middle;
}
.client-menu > summary {
  list-style: none;
  border: 1px solid #30465c;
  border-radius: 8px;
  padding: 3px 12px;
  font-size: 24px;
  line-height: 1.2;
}
.client-menu > summary::-webkit-details-marker {
  display: none;
}
.client-menu[open] {
  display: block;
}
.client-menu-panel {
  border: 1px solid #30465c;
  background: #0b1522;
  border-radius: 10px;
  padding: 16px;
  margin-top: 8px;
  max-width: 300px;
}
.client-menu-panel .schedule {
  margin-top: 12px;
}
nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 16px;
  border: 1px solid #30465c;
  border-radius: 12px;
  background: #111d2c;
}
nav label {
  min-width: 220px;
}
nav button {
  align-self: center;
}
#invite-banner {
  width: 100%;
}
.pie {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: auto;
  overflow: visible;
}
.pie-segment {
  cursor: pointer;
  transform-origin: 140px 110px;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
  animation: pie-enter 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.pie-segment:hover,
.pie-segment:focus-visible {
  transform: scale(1.06);
  filter: brightness(1.2);
  outline: none;
  stroke: #e6edf3;
  stroke-width: 2;
}
.pie-delay-1 {
  animation-delay: 0.04s;
}
.pie-delay-2 {
  animation-delay: 0.08s;
}
.pie-delay-3 {
  animation-delay: 0.12s;
}
.pie-delay-4 {
  animation-delay: 0.16s;
}
.pie-delay-5 {
  animation-delay: 0.2s;
}
.pie-total {
  fill: #e6edf3;
  font: 700 24px system-ui;
  pointer-events: none;
}
.cve-link {
  display: inline-block;
  white-space: nowrap;
}
#message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.message-close {
  border: 0;
  background: transparent;
  padding: 2px 6px;
  color: inherit;
  font-size: 22px;
  flex: none;
}
@keyframes pie-enter {
  from {
    opacity: 0;
    transform: scale(0.75) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
.chart-legend {
  padding: 3px 4px;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
}
.chart-legend:hover {
  background: #203246;
}
.chart-legend:disabled {
  opacity: 0.55;
}
dialog {
  background: #111d2c;
  color: #e6edf3;
  border: 1px solid #30465c;
  border-radius: 16px;
  padding: 24px;
  width: min(500px, 90vw);
}
dialog::backdrop {
  background: #050b14b8;
}
dialog form {
  display: grid;
  gap: 14px;
}
textarea {
  font: inherit;
  color: #e6edf3;
  background: #0b1522;
  border: 1px solid #30465c;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
}
#system table {
  width: 100%;
}
#system .card {
  overflow-x: auto;
}
#system pre,
#account pre,
#cve code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.channel button {
  margin: 4px;
}
.channel select {
  max-width: 240px;
}
.channel label {
  margin-bottom: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .pie-segment {
    animation: none;
    transition: none;
  }
}

#language-switch {
  width: auto;
  min-width: 110px;
  margin: 0;
}
#auth.installing:not([hidden]) {
  display: block;
  max-width: 900px;
  margin: auto;
}
.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.settings-form > p,
.settings-form > h3,
.settings-form > button {
  grid-column: 1/-1;
}
.settings-form > button {
  justify-self: start;
  margin-bottom: 12px;
}
.download-link {
  display: inline-block;
  margin: 12px 20px 12px 0;
  color: #64dac3;
}
#client-downloads pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .settings-form {
    grid-template-columns: 1fr;
  }
  header {
    gap: 12px;
  }
  #language-switch {
    min-width: 90px;
    max-width: 110px;
  }
}

.configuration-panel {
  margin-bottom: 24px;
  border: 1px solid #28394e;
  border-radius: 14px;
  padding: 20px;
}
.configuration-panel > summary {
  cursor: pointer;
  color: #64dac3;
  font-weight: 600;
}
.configuration-panel[open] > summary {
  margin-bottom: 24px;
}
