:root {
  --bg: #101214;
  --surface: #16191c;
  --surface2: #1c2024;
  --border: #2b3035;
  --text: #ecedee;
  --muted: #899198;
  --green: #9ad5ad;
  --amber: #e5b968;
  --red: #ee9292;
  --blue: #8cafe6;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
a {
  color: var(--green);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
button {
  color: inherit;
}
strong {
  font-weight: 550;
}
.sidebar {
  width: 236px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--border);
  padding: 32px 20px;
  background: #131619;
  display: flex;
  flex-direction: column;
}



.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 12px 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #272c30;
  border: 1px solid #384047;
  border-radius: 6px;
  font: 12px var(--mono);
  flex-shrink: 0;
}
.workspace strong {
  font-size: 12px;
  display: block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.nav-label,
.eyebrow {
  font: 10px var(--mono);
  letter-spacing: 1.6px;
  color: var(--muted);
}
.nav-label {
  margin: 0 12px 12px;
}
nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  border: 1px solid transparent;
  background: none;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px;
  border-radius: 5px;
  color: #a1a8ae;
  font-size: 12px;
}
.nav-item:hover {
  background: var(--surface2);
  color: white;
}
.nav-item.active {
  background: #242d28;
  color: #b6debe;
  border-color: #334438;
}
.nav-icon {
  font-size: 19px;
  width: 20px;
  line-height: 1;
}
.nav-count,
.nav-key {
  margin-left: auto;
  font: 10px var(--mono);
  color: var(--muted);
}
.nav-count {
  background: #24292d;
  padding: 1px 5px;
  border-radius: 3px;
}



.shell {
  margin-left: 236px;
}
.topbar {
  height: 69px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 15px;
}
.breadcrumb strong {
  color: #c9ced1;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.live {
  font: 10px var(--mono);
  letter-spacing: 1px;
}
.muted {
  color: var(--muted);
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  vertical-align: middle;
  margin-right: 7px;
}
.dot.ok {
  background: var(--green);
}
.dot.down {
  background: var(--red);
}
.dot.degraded {
  background: var(--amber);
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 37px 36px 20px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
h1 {
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.8px;
  margin: 9px 0 6px;
}
p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}
.button,
.icon-button {
  background: var(--surface2);
  border: 1px solid #373e43;
  border-radius: 5px;
  padding: 8px 13px;
  font-size: 12px;
}
.button:hover,
.icon-button:hover {
  background: #2a3035;
}
.button span {
  font-size: 17px;
  margin-right: 6px;
}
.icon-button {
  padding: 3px 9px;
  font-size: 16px;
}
.summary {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 31px;
}
.summary-item {
  padding: 21px 23px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.summary-item:last-child {
  border: 0;
}
.summary-item > span {
  font-size: 11px;
  color: #a0a8ae;
}
.summary-item > strong {
  display: block;
  font: 30px var(--mono);
  margin: 10px 0;
}
.summary-item strong.overall {
  font-size: 19px;
  line-height: 36px;
  letter-spacing: -0.3px;
  min-height: 36px;
}
.summary-item small {
  font-size: 10px;
  color: var(--muted);
}
.summary-item em {
  font-size: 18px;
  color: #626c73;
  font-style: normal;
}
.text-ok {
  color: var(--green);
}
.text-down {
  color: var(--red);
}
.text-degraded {
  color: var(--amber);
}
.text-unknown {
  color: var(--muted);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 26px 0 13px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.2px;
}
.count {
  font: 10px var(--mono);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}
.section-note {
  color: var(--muted);
  font-size: 11px;
}
.panel {
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
input,
select {
  background: #121619;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 11px;
  padding: 7px 10px;
}
input {
  width: 240px;
  max-width: 100%;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
  font-weight: 500;
  padding: 12px 18px;
  background: #181c1f;
}
td {
  padding: 19px 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
tbody tr:hover {
  background: #1c2124;
}
.node {
  display: flex;
  align-items: center;
  gap: 13px;
}
.node-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 36px;
  background: #21262a;
  border: 1px solid #353d43;
  border-radius: 5px;
  color: #9faab1;
  font-size: 20px;
}
.node-name {
  background: none;
  border: 0;
  padding: 0;
  font-weight: 550;
  text-align: left;
  font-size: 12px;
}
.node-name:hover {
  color: var(--green);
}
.node small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 3px 7px;
  font: 10px var(--mono);
  white-space: nowrap;
  background: #252a2e;
  color: #a7afb4;
}
.status.ok {
  background: #203129;
  color: var(--green);
}
.status.down {
  background: #382528;
  color: var(--red);
}
.status.degraded {
  background: #383024;
  color: var(--amber);
}
.status .dot {
  width: 5px;
  height: 5px;
  margin-right: 6px;
}
.mono {
  font: 11px var(--mono);
}
.meter {
  width: 78px;
}
.meter-value {
  font: 10px var(--mono);
  margin-bottom: 6px;
}
.meter-track {
  height: 3px;
  background: #30373c;
  border-radius: 1px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  background: #8fa8b7;
}
.meter-fill.hot {
  background: var(--amber);
}
.meter-fill.critical {
  background: var(--red);
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.app-card {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  overflow: hidden;
}
.app-top {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px;
}
.app-top .status {
  margin-left: auto;
}
.app-title {
  font-size: 14px;
  font-weight: 550;
}
.app-description {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.app-icon {
  display: grid;
  place-items: center;
  height: 36px;
  width: 36px;
  border: 1px solid #3a4449;
  border-radius: 7px;
  background: #232b30;
  color: #b5c7d2;
  font: 18px var(--mono);
}
.app-meta {
  padding: 0 20px 16px;
  display: flex;
  gap: 8px;
}
.tag {
  font: 9px var(--mono);
  color: #949fa7;
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 3px;
}
.components {
  border-top: 1px solid var(--border);
  padding: 4px 20px 10px;
}
.component {
  padding: 12px 0;
  border-bottom: 1px solid #262c30;
}
.component:last-child {
  border: 0;
}
.component-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.component-type {
  font: 9px var(--mono);
  color: var(--muted);
  width: 37px;
}
.component-line .status {
  margin-left: auto;
}
.latency {
  color: var(--muted);
  font: 9px var(--mono);
  min-width: 49px;
  text-align: right;
}
.children {
  padding: 8px 0 0 16px;
  margin: 5px 0 0 12px;
  border-left: 1px solid #36413c;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.child {
  font: 10px var(--mono);
  color: #a8b0b5;
  background: #1d2326;
  padding: 3px 7px;
  border-radius: 3px;
}
.component-message {
  font-size: 10px;
  color: var(--red);
  padding: 7px 0 0 47px;
}
.app-bottom {
  padding: 10px 20px;
  background: #191e21;
  font: 9px var(--mono);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.empty {
  padding: 36px;
  text-align: center;
}
.empty h3 {
  font-weight: 500;
  font-size: 15px;
  margin: 0 0 8px;
}
.empty p {
  max-width: 510px;
  margin: auto;
  line-height: 1.8;
}
.empty code {
  color: #b6c9bc;
}
.empty a {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
}
.notice {
  border: 1px solid #51452b;
  background: #29261e;
  color: #d5bc85;
  padding: 12px 16px;
  border-radius: 5px;
  font-size: 12px;
  margin-bottom: 22px;
}
.notice.error {
  border-color: #60373b;
  background: #2c1e21;
  color: #e7a8ab;
}
.notice[hidden] {
  display: none;
}
.notice a {
  float: right;
}
.issue-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.issue-row:last-child {
  border: 0;
}
.issue-row > span:last-child {
  margin-left: auto;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #76828b;
  font: 9px var(--mono);
  margin: 27px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--border);
}
dialog {
  color: var(--text);
  background: var(--bg);
  border: 1px solid #414b51;
  border-radius: 9px;
  width: min(880px, 94vw);
  max-height: 90vh;
  padding: 26px;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  font-size: 22px;
  margin-top: 8px;
}
.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.detail-metric {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
}
.detail-metric > strong {
  display: block;
  font: 25px var(--mono);
  margin: 9px 0;
}
.detail-metric small {
  color: var(--muted);
  font-size: 10px;
}
.chart {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 18px;
  background: var(--surface);
  margin-top: 15px;
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  font: 9px var(--mono);
  color: var(--muted);
}
.legend {
  display: flex;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 18px;
}
.legend i {
  display: inline-block;
  width: 15px;
  height: 2px;
  vertical-align: middle;
  margin-right: 7px;
}
.detail-error {
  padding: 24px;
  color: var(--red);
}
@media (min-width: 1500px) {
  main {
    padding-top: 45px;
  }
  .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 28px 12px;
  }
  .shell {
    margin-left: 205px;
  }
  main {
    padding: 27px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .summary-item {
    padding: 17px 15px;
  }
  .summary-item strong.overall {
    font-size: 16px;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 13px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  
  
  .workspace,
  .nav-label,
  .sidebar-bottom,
  .nav-key,
  .nav-count {
    display: none;
  }
  nav {
    display: flex;
    gap: 5px;
    overflow: auto;
    margin-top: 15px;
  }
  .nav-item {
    white-space: nowrap;
    font-size: 11px;
    padding: 7px;
  }
  .nav-icon {
    font-size: 16px;
    width: 16px;
  }
  .shell {
    margin: 0;
  }
  .topbar {
    height: 48px;
    padding: 0 18px;
  }
  main {
    padding: 25px 16px;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 23px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .button {
    font-size: 0;
    padding: 6px 10px;
  }
  .button span {
    font-size: 20px;
    margin: 0;
  }
  .summary {
    grid-template-columns: 1fr 1fr;
  }
  .summary-item:nth-child(2) {
    border-right: 0;
  }
  .summary-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .summary-item {
    padding: 16px;
  }
  .section-note {
    display: none;
  }
  .toolbar {
    padding: 10px;
    gap: 8px;
  }
  .toolbar input {
    min-width: 0;
    width: 100%;
  }
  .app-top {
    padding: 16px;
  }
  .components {
    padding-left: 16px;
    padding-right: 16px;
  }
  .notice a {
    float: none;
    display: block;
    margin-top: 8px;
  }
  footer {
    gap: 20px;
    line-height: 1.7;
  }
  .detail-metrics {
    gap: 7px;
  }
  .detail-metric {
    padding: 10px;
  }
  .detail-metric > strong {
    font-size: 19px;
  }
  dialog {
    padding: 17px;
  }
  .latency {
    min-width: 42px;
  }
  .summary-item strong.overall {
    font-size: 16px;
  }
}

.metric-missing { color: var(--muted); font-size: 10px; }

.node .metric-note { color: var(--amber); white-space: normal; max-width: 320px; }

a.nav-item { text-decoration: none; }
.install-page { max-width: 1100px; }
.guide-section { padding: 25px; margin-bottom: 20px; }
.guide-section h2 { margin-bottom: 15px; }
.guide-section p { line-height: 1.85; margin: 12px 0; font-size: 13px; }
.guide-section pre { background: #101416; padding: 17px; border: 1px solid var(--border); border-radius: 5px; overflow: auto; font: 12px/1.8 var(--mono); }
.guide-section code { overflow-wrap: anywhere; }
.guide-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; font-size: 12px; }
.guide-fields { display: flex; gap: 18px; flex-wrap: wrap; margin: 18px 0; }
.guide-fields label { display: grid; gap: 7px; font-size: 12px; color: var(--muted); }
.guide-fields label:first-child { flex: 1; min-width: 200px; }
.guide-fields input { width: 100%; }
#copy-status { margin-left: 12px; font-size: 12px; color: var(--green); }
@media(max-width:760px) { .guide-section { padding: 17px; } .guide-section .button { font-size: 12px; } }
