:root {
  color-scheme: dark;
  --bg: #080b0b;
  --panel: #101716;
  --panel2: #141e1b;
  --line: #26372f;
  --text: #e2ebe5;
  --muted: #9aaea1;
  --green: #b0ff65;
  --green-dark: #253d1e;
  --red: #ff9299;
  --amber: #f0cb7a;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #18251e;
  color: var(--text);
  padding: 10px 15px;
  transition: background 0.15s;
}
button:hover {
  background: #26392b;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--green);
  color: #14200e;
  border-color: var(--green);
  font-weight: 650;
}
button.primary:hover {
  background: #c5ff91;
}
button.danger {
  color: var(--red);
  border-color: #703c44;
  background: #2e191d;
}
button.subtle {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
a {
  color: var(--green);
  text-decoration: none;
}
input,
select,
textarea {
  width: 100%;
  background: #0a100d;
  color: var(--text);
  border: 1px solid #34483c;
  border-radius: 6px;
  padding: 11px 12px;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}
label input,
label select,
label textarea {
  margin-top: 7px;
  margin-bottom: 17px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 600;
  margin-bottom: 12px;
}
h2 {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
  font-weight: 550;
}
code,
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}
.accent {
  color: var(--green);
}
.muted,
.hint {
  color: var(--muted);
  line-height: 1.65;
}
.hint {
  font-size: 12px;
}
.eyebrow {
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 13px;
}
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 90% 0%, #71d13509, transparent 45%);
  z-index: -1;
}
.shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 34px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #0b100e;
}
.brand,
.login-brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.8px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
}
.brand small {
  display: block;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 3px;
  color: var(--muted);
  margin-top: 7px;
}
.alien {
  display: inline-flex;
  width: 49px;
  height: 58px;
  background: var(--green);
  border-radius: 48% 48% 48% 48% / 32% 32% 68% 68%;
  align-items: center;
  justify-content: center;
  gap: 5px;
  filter: drop-shadow(0 0 12px #adff6520);
  flex-shrink: 0;
}
.alien i {
  width: 17px;
  height: 10px;
  background: #11190c;
  border-radius: 10% 85%;
  transform: rotate(17deg);
  margin-top: -5px;
}
.alien i + i {
  transform: scaleX(-1) rotate(17deg);
}
.alien.small {
  width: 31px;
  height: 37px;
  gap: 3px;
}
.alien.small i {
  width: 11px;
  height: 7px;
}
.nav-label {
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 2px;
  color: #7c9183;
  margin: 55px 12px 16px;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  text-align: left;
  background: none;
  border-color: transparent;
  color: var(--muted);
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 13px 14px;
  font-size: 16px;
}
nav button span {
  font-size: 13px;
}
nav button.active {
  color: var(--green);
  background: #b0ff6510;
  border-color: #b0ff6528;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1px;
  color: var(--muted);
}
.sidebar-bottom p {
  font:
    13px ui-monospace,
    monospace;
  color: var(--text);
  margin: 14px 0;
}
.sidebar-bottom button {
  padding-left: 0;
  font-size: 11px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px #b0ff6540;
  margin-right: 8px;
}
.main {
  padding: 35px 42px 18px;
  min-width: 0;
  max-width: 1800px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
}
.topbar h1 {
  margin-bottom: 0;
}
.connection {
  font:
    11px ui-monospace,
    monospace;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 20px;
  overflow-wrap: anywhere;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar input {
  flex: 1;
  min-width: 170px;
}
.toolbar select {
  width: auto;
}
.tabs {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0d130f;
}
.tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 14px;
}
.tabs button.selected {
  background: #273825;
  color: var(--green);
}
.toolbar .timestamp {
  margin-left: auto;
  font:
    10px ui-monospace,
    monospace;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.panel,
.card {
  background: linear-gradient(130deg, #131d17, #101613);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
}
.card .label {
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--muted);
}
.card .value {
  font-size: 35px;
  letter-spacing: -1px;
  margin: 14px 0 9px;
  font-weight: 550;
}
.card .detail {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 0;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.panel h2 {
  margin-bottom: 5px;
}
.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.badge {
  display: inline-flex;
  font:
    10px ui-monospace,
    monospace;
  border: 1px solid #3f6332;
  background: #b0ff6509;
  color: var(--green);
  border-radius: 4px;
  padding: 4px 7px;
  white-space: nowrap;
}
.badge.warn {
  color: var(--amber);
  border-color: #66532d;
  background: #302616;
}
.badge.danger {
  color: var(--red);
  border-color: #713e43;
  background: #301b1e;
}
.badge.neutral {
  color: var(--muted);
  border-color: var(--line);
  background: #121b15;
}
.metric-list {
  margin: 0;
}
.metric-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #26372f88;
  font-size: 12px;
}
.metric-list div:last-child {
  border: 0;
}
.metric-list dt {
  color: var(--muted);
}
.metric-list dd {
  margin: 0;
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
}
.chart {
  width: 100%;
  height: 200px;
  display: block;
}
.chart text {
  fill: var(--muted);
  font:
    10px ui-monospace,
    monospace;
}
.chart .gridline {
  stroke: #27392e;
  stroke-dasharray: 3 5;
}
.chart .series {
  stroke: var(--green);
  stroke-width: 2;
  fill: none;
}
.table-panel {
  padding: 0;
  overflow: hidden;
  margin-bottom: 20px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: #131e17;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 15px 18px;
  border-bottom: 1px solid #25352b99;
  vertical-align: top;
  max-width: 380px;
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #b0ff6504;
}
td .muted {
  font-size: 11px;
  margin-top: 5px;
}
td button {
  font-size: 11px;
  padding: 6px 9px;
  margin: 0 5px 5px 0;
}
td details {
  white-space: pre-wrap;
}
summary {
  cursor: pointer;
  color: var(--green);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  font-size: 12px;
  color: var(--muted);
}
.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.notice,
#message {
  padding: 13px 16px;
  border: 1px solid #536331;
  background: #242b17;
  color: #d0e6a4;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
#message.error {
  background: #291b1f;
  border-color: #683a45;
  color: var(--red);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 30px;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1px;
  color: #91a395;
}
footer span {
  letter-spacing: 0;
}
.login-shell {
  max-width: 450px;
  margin: 9vh auto;
  padding: 20px;
}
.login-brand {
  justify-content: center;
  margin-bottom: 35px;
  font-size: 30px;
}
.login-panel {
  padding: 30px;
  border-top-color: #769e4d;
  box-shadow: 0 25px 100px #0007;
}
.login-panel h1 {
  font-size: 27px;
}
.login-panel form {
  margin-top: 28px;
}
.login-panel .primary {
  width: 100%;
  margin: 3px 0 22px;
}
.login-panel .hint {
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-bottom: 0;
}
.footnote {
  text-align: center;
  color: var(--muted);
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 2px;
  margin-top: 25px;
}
#login-message {
  color: var(--red);
  font-size: 12px;
  margin-top: 15px;
  margin-bottom: 0;
}
dialog {
  background: #111b15;
  border: 1px solid #40563c;
  border-radius: 12px;
  color: var(--text);
  width: min(580px, calc(100vw - 30px));
  max-height: 90vh;
  padding: 25px;
  box-shadow: 0 25px 150px #000;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  margin: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.preview-result {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.operation-id {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.nodes {
  display: grid;
  gap: 12px;
}
.node {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d140f;
}
.node strong {
  display: block;
  font:
    12px ui-monospace,
    monospace;
  margin-bottom: 8px;
}
.node .badge {
  float: right;
}
.node p {
  margin-bottom: 0;
  font-size: 11px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .main {
    padding-left: 60px;
    padding-right: 60px;
  }
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 13px;
  }
  .main {
    padding: 28px 23px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 17px;
  }
  .brand {
    font-size: 20px;
  }
  .nav-label {
    display: none;
  }
  nav {
    display: flex;
    overflow-x: auto;
    margin-top: 20px;
    gap: 4px;
  }
  nav button {
    padding: 10px;
    font-size: 12px;
    gap: 5px;
  }
  nav button span {
    font-size: 11px;
  }
  .sidebar-bottom {
    padding-top: 12px;
    font-size: 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .sidebar-bottom p {
    margin: 0;
  }
  .sidebar-bottom button {
    margin-left: auto;
  }
  .main {
    padding: 25px 16px;
  }
  .topbar {
    align-items: start;
    flex-direction: column;
  }
  h1 {
    font-size: 27px;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 17px;
  }
  .card .value {
    font-size: 30px;
  }
  .panel {
    padding: 18px;
  }
  .table-panel {
    padding: 0;
  }
  footer {
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .toolbar .timestamp {
    width: 100%;
    margin: 5px 0;
  }
  .login-shell {
    margin: 3vh auto;
  }
  .login-panel {
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  dialog::backdrop {
    backdrop-filter: none;
  }
}
