:root {
  color-scheme: dark;
  --bg: #0c1015;
  --panel: #121820;
  --line: #252d38;
  --text: #e8edf3;
  --muted: #8592a3;
  --accent: #b7ed83;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #34404d;
  border-radius: 7px;
  padding: 10px 15px;
  background: #1a222c;
  color: var(--text);
  transition: background 0.15s;
}
button:hover {
  background: #2a3745;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.primary {
  background: var(--accent);
  color: #182316;
  border-color: var(--accent);
  font-weight: 650;
}
.primary:hover {
  background: #cdf7a7;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
aside {
  position: fixed;
  width: 237px;
  inset: 0 auto 0 0;
  background: #10151c;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 21px;
  font-weight: 700;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: var(--muted);
  margin-top: 3px;
}
.brand-mark {
  width: 36px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #182316;
  font-weight: 900;
  font-size: 25px;
  border-radius: 9px;
  transform: skew(-7deg);
}
.muted {
  color: var(--muted);
}
.workspace {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 32px 0 25px;
  padding: 11px 8px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.pill {
  font-size: 10px;
  color: #a6b3bf;
  border: 1px solid var(--line);
  padding: 4px 7px;
  border-radius: 5px;
  letter-spacing: 0.6px;
  white-space: nowrap;
}
.pill .dot {
  margin-right: 5px;
}
nav {
  display: grid;
  gap: 8px;
}
nav a {
  display: flex;
  gap: 14px;
  padding: 11px 14px;
  color: #8c99aa;
  border-radius: 6px;
  font-size: 17px;
}
nav a span {
  font-size: 13px;
}
nav a:hover,
nav a.active {
  background: #202b23;
  color: var(--accent);
}
.sidebar-foot {
  margin-top: auto;
  font-size: 12px;
}
.sidebar-foot p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
main {
  margin-left: 237px;
  padding: 0 40px;
  max-width: 1750px;
}
header {
  height: 78px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  color: #aeb8c5;
  font-size: 12px;
}
.breadcrumb span {
  margin: 0 12px;
  color: #465363;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 34px 0 26px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--accent);
  font-weight: 650;
}
h1 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -1.2px;
  margin: 8px 0;
}
p {
  color: var(--muted);
  margin: 5px 0;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 4px 0;
}
h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stats article,
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
}
.stats article {
  padding: 20px;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: #98a5b5;
  display: flex;
  justify-content: space-between;
}
.stat-label span {
  font-size: 17px;
  color: #697989;
}
.stats h2 {
  font-size: 25px;
  font-weight: 550;
  margin: 13px 0 4px;
}
.stats p {
  font-size: 11px;
}
.grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
}
.card {
  padding: 23px;
  margin-bottom: 22px;
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 23px;
}
.card-head h2 {
  margin-top: 4px;
}
.server-visual {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
}
.server-icon {
  font-size: 36px;
  background: #233023;
  color: var(--accent);
  width: 64px;
  height: 64px;
  border: 1px solid #364d31;
  border-radius: 12px;
  text-align: center;
  line-height: 64px;
}
.server-visual code {
  font-size: 12px;
  color: var(--muted);
}
.server-visual .badge {
  margin-left: auto;
}
.badge {
  font-size: 10px;
  padding: 5px 8px;
  background: #232c36;
  color: #acb9c8;
  border-radius: 5px;
  white-space: nowrap;
}
.badge.good {
  background: #253723;
  color: var(--accent);
}
.flow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 15px 0 19px;
}
.flow span {
  background: #0e141b;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 11px;
}
.flow b {
  color: #53614f;
}
.help {
  font-size: 12px;
  line-height: 1.8;
  margin: 13px 0 18px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.release-name {
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 8px 0 23px;
}
.release-icon {
  font-size: 30px;
  width: 48px;
  height: 48px;
  text-align: center;
  background: #202a36;
  border-radius: 8px;
}
.release-name p {
  font-size: 12px;
}
label {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.digest {
  display: block;
  background: #0c1219;
  padding: 12px;
  border: 1px solid var(--line);
  font-size: 11px;
  overflow-wrap: anywhere;
  color: #b7c3d1;
  border-radius: 5px;
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.scenario-grid button {
  padding: 16px;
  text-align: left;
  background: #151d26;
}
.scenario-grid button.selected {
  border-color: #719754;
  background: #202d22;
}
.scenario-grid strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.scenario-grid span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.bottom {
  grid-template-columns: 1.55fr 1fr;
}
pre {
  height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #090e14;
  border: 1px solid #202934;
  border-radius: 6px;
  color: #a7b8c6;
  font:
    11px/1.8 Consolas,
    monospace;
  padding: 15px;
}
.events {
  height: 310px;
  overflow: auto;
}
.event {
  border-left: 1px solid #334234;
  padding: 0 0 19px 18px;
  margin-left: 5px;
  font-size: 12px;
  position: relative;
}
.event:before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  left: -3px;
  top: 7px;
}
.event time {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
select {
  background: #18212b;
  border: 1px solid var(--line);
  color: #abb8c8;
  padding: 7px;
  border-radius: 5px;
  font-size: 11px;
}
footer {
  padding: 8px 0 26px;
  color: #5f7082;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
#notice:not(:empty) {
  padding: 13px 17px;
  border: 1px solid #556c40;
  background: #263322;
  border-radius: 7px;
  margin-bottom: 20px;
}
#notice.error {
  border-color: #a25454;
  background: #352023;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.login form {
  width: min(430px, 90vw);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.login h1 {
  margin-top: 24px;
}
.login label {
  margin-top: 30px;
}
.login input {
  width: 100%;
  padding: 12px;
  background: var(--bg);
  border: 1px solid #3c4856;
  color: white;
  border-radius: 6px;
}
.login button {
  width: 100%;
  margin: 15px 0;
}
.login small {
  color: var(--muted);
  font-size: 11px;
}
#login-error {
  color: #f3a0a0;
}
@media (min-width: 1500px) {
  main {
    padding: 0 55px;
  }
}
@media (max-width: 1150px) {
  aside {
    width: 200px;
    padding: 25px 15px;
  }
  main {
    margin-left: 200px;
    padding: 0 24px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  aside {
    position: static;
    width: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .workspace,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 6px;
    margin-top: 18px;
  }
  nav a {
    padding: 7px;
    white-space: nowrap;
    font-size: 12px;
  }
  nav a span {
    font-size: 11px;
  }
  main {
    margin: 0;
    padding: 0 16px;
  }
  header {
    height: 60px;
  }
  .heading {
    padding: 24px 0;
    gap: 12px;
  }
  .heading h1 {
    font-size: 27px;
  }
  .heading p {
    font-size: 12px;
  }
  .heading button {
    font-size: 11px;
    padding: 8px;
  }
  .stats {
    gap: 10px;
  }
  .stats article {
    padding: 14px;
  }
  .stats h2 {
    font-size: 21px;
  }
  .card {
    padding: 18px;
  }
  .flow {
    gap: 5px;
  }
  .flow span {
    font-size: 9px;
    padding: 7px;
  }
  .scenario-grid {
    gap: 8px;
  }
  .scenario-grid button {
    padding: 12px;
  }
  .server-visual {
    flex-wrap: wrap;
  }
  .server-visual .badge {
    margin-left: 0;
  }
  footer span {
    max-width: 200px;
    text-align: right;
  }
  .card-head {
    flex-wrap: wrap;
  }
  h2 {
    font-size: 16px;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
input,
textarea {
  width: 100%;
  padding: 12px;
  background: #0c1219;
  border: 1px solid #34404d;
  color: #e8edf3;
  border-radius: 6px;
  font: 13px/1.5 system-ui;
}
textarea {
  resize: vertical;
  font-family: Consolas, monospace;
}
form label {
  font-size: 11px;
}
textarea:focus-visible {
  outline: 2px solid var(--accent);
}
.table-wrap {
  overflow: auto;
  margin: 18px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  max-width: 320px;
  overflow-wrap: anywhere;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
summary {
  cursor: pointer;
  color: var(--accent);
}
#trust-values {
  height: auto;
  max-height: 360px;
}
#events {
  height: 260px;
}
@media (max-width: 650px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .heading h1 {
    font-size: 25px;
  }
  table {
    min-width: 570px;
  }
}

select {
  width: 100%;
  padding: 12px;
  background: #0b1219;
  color: #dce2e7;
  border: 1px solid #29323d;
  border-radius: 6px;
  margin: 6px 0 18px;
}
.loader-row {
  padding: 18px;
  border: 1px solid #29323d;
  border-radius: 8px;
  margin: 16px 0;
}
.loader-row input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}
.pager {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
}
.pager button {
  width: auto;
}
