:root {
  --page: #0c1318;
  --panel: #141e25;
  --muted: #8ea0ad;
  --accent: #50c69c;
  --line: #263640;
}
body {
  background: var(--page);
  color: #e2ebf1;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: #83e3bf;
}
.sidebar {
  width: 250px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #101a21;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #edf7f3;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.8px;
  margin-top: 4px;
}
.brand-icon {
  background: #183f33;
  color: #7fe0b7;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #627987;
  margin: 44px 12px 15px;
}
.nav-link {
  color: #a2b4bf;
  padding: 12px 13px;
  border-radius: 8px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.nav-link:hover,
.nav-link.active {
  color: #8be4bc;
  background: #1a302b;
}
.nav-link i {
  font-size: 17px;
}
.sidebar-foot {
  position: absolute;
  bottom: 30px;
  color: #a6b8c3;
  font-size: 11px;
  line-height: 1.9;
}
.sidebar-foot span {
  color: #657c8b;
}
.workspace {
  margin-left: 250px;
  padding: 30px 38px;
  max-width: 1800px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 25px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.6px;
  margin: 5px 0 0;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #7f9aa8;
}
.panel,
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
}
.metric {
  padding: 22px;
  position: relative;
}
.metric > i {
  position: absolute;
  right: 20px;
  top: 24px;
  font-size: 22px;
  color: #55796a;
}
.metric span {
  display: block;
  color: #90a6b3;
}
.metric strong {
  font-size: 35px;
  font-weight: 600;
  display: block;
  margin-top: 10px;
  line-height: 1.2;
}
.agent-row {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.agent-row:last-child {
  border: 0;
}
.agent-row > i {
  color: #779b8d;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.table {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--line);
  margin: 0;
  font-size: 13px;
}
.table td,
.table th {
  padding: 17px 20px;
}
.table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8da4b2;
  font-weight: 600;
}
.table td code {
  white-space: normal;
  word-break: break-word;
}
code {
  color: #93ceb9;
}
pre {
  background: #0e171d;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-top: 15px;
  color: #a7c5b8;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 550px;
  overflow: auto;
}
.form-control,
.form-select {
  background: #101a21;
  border-color: #2b3f4c;
  font-size: 13px;
  color: #e0e8ee;
}
.form-control:focus,
.form-select:focus {
  background: #101a21;
  border-color: #49997a;
  box-shadow: 0 0 0 0.15rem #49997a26;
  color: #e0e8ee;
}
.form-text,
.text-secondary {
  color: var(--muted) !important;
}
.form-label {
  font-size: 12px;
  color: #b7c7d1;
}
.btn {
  font-size: 12px;
  padding: 9px 15px;
  border-radius: 7px;
}
.btn-sm {
  padding: 6px 10px;
}
.btn-success {
  background: #236a4e;
  border-color: #2d7d5e;
}
.btn-success:hover {
  background: #2d825f;
}
.btn-outline-secondary {
  color: #a4bbc9;
  border-color: #354b59;
}
.badge {
  font-weight: 500;
  font-size: 10px;
  padding: 6px 8px;
}
.empty {
  padding: 35px !important;
  text-align: center;
  color: #8ea0ad;
}
.alert {
  font-size: 13px;
  border-radius: 10px;
}
.flow-event {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.permission-list {
  max-height: 300px;
  overflow: auto;
  background: #0e171d;
  padding: 15px;
  border-radius: 8px;
}
.permission-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
}
.permission-item small {
  display: block;
  color: #90a8b5;
  font-size: 11px;
}
.token-value {
  display: block;
  overflow-wrap: anywhere;
  user-select: all;
}
.filter-select {
  width: 190px;
}
.filter-input {
  width: 300px;
}
.catalog-search {
  max-width: 350px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 25%, #143329 0, transparent 60%);
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: #141e25;
  border: 1px solid var(--line);
  padding: 38px;
  border-radius: 16px;
}
.login-card h1 {
  margin-bottom: 15px;
}
.login-card .brand-icon {
  width: 52px;
  height: 52px;
}
.mobile-nav {
  display: none;
}
footer {
  font-size: 10px;
  color: #5f7989;
  padding: 30px 0 8px;
}
dt {
  color: #91aab8;
  font-weight: 500;
}
dd {
  margin-bottom: 18px;
}
.schema-editor {
  font-size: 12px;
}
.text-bg-warning {
  color: #241f11 !important;
}
@media (max-width: 991px) {
  .sidebar {
    display: none;
  }
  .mobile-nav {
    display: flex;
    background: #101a21;
  }
  .workspace {
    margin-left: 0;
    padding: 22px;
  }
  .topbar {
    margin-bottom: 20px;
  }
  .panel-heading {
    flex-wrap: wrap;
  }
  .table td,
  .table th {
    padding: 13px;
  }
  .filter-input {
    width: 220px;
  }
}
@media (max-width: 575px) {
  .workspace {
    padding: 16px;
  }
  .topbar h1 {
    font-size: 23px;
  }
  .topbar .eyebrow {
    font-size: 8px;
  }
  .toolbar > form {
    width: 100%;
  }
  .metric {
    padding: 16px;
  }
  .metric > i {
    right: 15px;
    top: 20px;
    font-size: 17px;
  }
  .metric span {
    font-size: 12px;
  }
  .metric strong {
    font-size: 30px;
  }
  .filter-input,
  .filter-select {
    width: 100%;
  }
  .panel-heading {
    padding: 18px;
  }
  .panel-heading > div {
    flex-wrap: wrap;
  }
  .login-card {
    padding: 25px;
  }
  .flow-event {
    gap: 10px;
    padding: 16px;
    font-size: 12px;
  }
}
