:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #22352f;
  background: #f6f8f7;
  font-synthesis: none;
  --green: #205f46;
  --muted: #79857f;
  --line: #e3e9e5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: #788c80;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  font-weight: 620;
  margin-bottom: 9px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.65px;
}
code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  background: #edf2ef;
  padding: 3px 6px;
  border-radius: 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 35px;
  border-radius: 9px;
  color: #d4f9df;
  background: #295540;
  font-size: 25px;
  position: relative;
}
.brand-mark span {
  position: absolute;
  font-size: 15px;
  right: 1px;
  top: -5px;
}
.brand-tag {
  font-size: 8px;
  letter-spacing: 1px;
  border: 1px solid #426253;
  padding: 5px;
  border-radius: 4px;
  margin-left: 8px;
  color: #acbfaf;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  background: #15382c;
  color: #f0f7ef;
  padding: 44px 52px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-story .eyebrow {
  color: #9ebea8;
}
.story-copy {
  margin: auto 0;
}
.story-copy h1 {
  font-size: 65px;
  font-weight: 550;
  letter-spacing: -3px;
  line-height: 1.12;
  margin-top: 24px;
  margin-bottom: 25px;
}
.story-copy p {
  color: #b3c9ba;
  font-size: 16px;
  line-height: 1.9;
}
.network-art {
  max-width: 470px;
  margin: 24px 0 10px;
}
.login-story footer {
  font-size: 11px;
  color: #a0baaa;
  letter-spacing: 0.5px;
}
.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.login-form-wrap {
  width: 100%;
  max-width: 385px;
}
.login-form-wrap h2 {
  margin-top: 18px;
  margin-bottom: 12px;
  font-size: 29px;
}
.login-form-wrap form {
  margin-top: 35px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 19px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 9px;
  border: 1px solid #d7e0da;
  border-radius: 7px;
  background: white;
  color: #23392e;
  padding: 13px 14px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #418b65;
  box-shadow: 0 0 0 3px #2b855614;
}
input::placeholder {
  color: #a1aaa4;
  font-size: 13px;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 7px;
  padding: 11px 17px;
  font-weight: 600;
  font-size: 12px;
  min-height: 40px;
}
.primary {
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
}
.primary:hover {
  background: #194f39;
}
.primary:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: white;
  border: 1px solid #dbe3dd;
  color: #4b6255;
}
.full {
  width: 100%;
  justify-content: space-between;
  margin-top: 6px;
  padding: 14px 17px;
}
.setup-note {
  display: flex;
  gap: 13px;
  margin-top: 35px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.setup-note strong {
  font-size: 12px;
}
.setup-note p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 7px 0;
}
.note-icon {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 8px;
  height: 30px;
}
.login-endpoint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7b8980;
  font-size: 11px;
  margin-top: 15px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #4d8c62;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.offline {
  background: #bca15d;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 236px;
  background: #fdfefd;
  border-right: 1px solid var(--line);
  padding: 29px 18px 15px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  padding: 0 10px;
  font-size: 20px;
}
.workspace-label {
  font-size: 9px;
  color: #8d9b92;
  letter-spacing: 1.5px;
  margin: 44px 13px 16px;
  font-weight: 650;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-item {
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 12px 13px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #6e7b72;
  position: relative;
}
.nav-item svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item:hover {
  background: #f0f5f1;
}
.nav-item.active {
  color: #205a40;
  background: #e9f1eb;
  font-weight: 650;
}
.nav-item.active:after {
  content: "";
  position: absolute;
  right: 12px;
  width: 5px;
  height: 5px;
  background: #548d66;
  border-radius: 50%;
}
.nav-separator {
  height: 1px;
  background: var(--line);
  margin: 15px 12px;
}
.sidebar-bottom {
  margin-top: auto;
}
.endpoint-card {
  display: flex;
  gap: 10px;
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: center;
  margin-top: 30px;
}
.endpoint-card strong {
  font-size: 10px;
  font-weight: 600;
  display: block;
}
.endpoint-card small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-card {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 20px 8px 5px;
  text-align: left;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7eee6;
  color: #4d6d50;
  font-size: 12px;
}
.user-card strong {
  font-size: 10px;
  display: block;
  max-width: 136px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-card small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.user-card > span:last-child {
  margin-left: auto;
  color: #7b8a7f;
}
main {
  margin-left: 236px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 70px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
}
.breadcrumb {
  font-size: 11px;
  color: #8a978d;
}
.breadcrumb span {
  margin: 0 13px;
  color: #c1cbc3;
}
.breadcrumb strong {
  color: #4b6152;
  font-weight: 500;
}
.topbar-right {
  display: flex;
  gap: 15px;
  align-items: center;
}
.pill {
  font-size: 10px;
  border: 1px solid #e0e9e2;
  background: #f6faf6;
  border-radius: 20px;
  padding: 6px 10px;
  color: #637b69;
}
.icon-button {
  border: 0;
  background: transparent;
  font-size: 21px;
  color: #728578;
  padding: 4px 8px;
}
.page {
  padding: 37px 38px 20px;
  max-width: 1550px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading .eyebrow {
  margin-bottom: 12px;
}
.page-heading .muted {
  font-size: 12px;
  margin-bottom: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 26px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px 22px;
}
.stat-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #748579;
}
.stat-value {
  font-size: 31px;
  letter-spacing: -1px;
  margin: 15px 0 8px;
  font-weight: 600;
}
.stat-caption {
  font-size: 10px;
  color: #8c9a90;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 22px;
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 23px;
  border-bottom: 1px solid #edf0ed;
}
.panel-header h2 {
  font-size: 14px;
  letter-spacing: 0;
  margin: 0;
  font-weight: 650;
}
.panel-header p {
  font-size: 11px;
  color: #87958b;
  margin: 6px 0 0;
}
.panel-body {
  padding: 22px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
.empty {
  padding: 42px 25px;
  text-align: center;
}
.empty-symbol {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #f7faf7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: #829b87;
  font-size: 23px;
}
.empty strong {
  font-size: 13px;
  display: block;
  font-weight: 600;
}
.empty p {
  font-size: 11px;
  color: #8a998e;
  line-height: 1.8;
  max-width: 370px;
  margin: 9px auto 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8c9a90;
  background: #fbfcfb;
  font-weight: 600;
}
th,
td {
  padding: 15px 22px;
  border-bottom: 1px solid #eef2ee;
}
tr:last-child td {
  border-bottom: 0;
}
td .muted {
  font-size: 10px;
}
td strong {
  font-size: 11px;
  font-weight: 600;
}
.table-wrap {
  overflow: auto;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #dfe9df;
  background: #f1f7f0;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 9px;
  color: #51805a;
  white-space: nowrap;
}
.badge.warning {
  color: #9b8042;
  background: #fbf8ef;
  border-color: #ede5d1;
}
.badge.neutral {
  background: #f3f5f4;
  color: #86928a;
  border-color: #e4e9e6;
}
.error {
  background: #fff3ed;
  border: 1px solid #eed8c9;
  color: #9a543c;
  padding: 13px 16px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.65;
  margin: 15px 0;
}
.api-block {
  background: #17392c;
  color: #c3dccc;
  padding: 22px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: "Cascadia Code", Consolas, monospace;
}
.endpoint-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.endpoint-row code {
  background: transparent;
}
.method {
  font-size: 9px;
  font-weight: 700;
  color: #528564;
  min-width: 34px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  color: #9ba69f;
  font-size: 9px;
  padding: 15px 0;
}
.loading {
  padding: 60px;
  text-align: center;
  color: #87968c;
  font-size: 13px;
}
.node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.node-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.node-head h2 {
  font-size: 13px;
  margin: 0;
  overflow-wrap: anywhere;
}
.node-details {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 15px;
  color: #7f9184;
  font-size: 11px;
  line-height: 1.9;
}
.node-details code {
  word-break: break-all;
}
.inline-actions {
  display: flex;
  gap: 8px;
}
.small-button {
  padding: 5px 8px;
  font-size: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #647c69;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 27px;
  max-width: 510px;
  width: calc(100% - 32px);
  box-shadow: 0 25px 100px #142e2825;
}
dialog::backdrop {
  background: #132d264d;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
}
.dialog-header h2 {
  margin: 0;
  font-size: 20px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
textarea {
  min-height: 100px;
  font-family: Consolas, monospace;
  font-size: 12px;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.feature-note {
  padding: 20px;
  color: #7b8f80;
  font-size: 12px;
  line-height: 1.8;
  border: 1px dashed #cfdcd2;
  border-radius: 8px;
  margin-bottom: 22px;
}
.text-link {
  color: #3a7752;
  text-decoration: underline;
}
.stat-value.unknown {
  color: #a7b3aa;
}
.offline-panel {
  border-color: #e8ddc6;
}
.mono {
  font-family: Consolas, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 205px;
  }
  main {
    margin-left: 205px;
  }
  .page {
    padding: 30px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .login-story {
    padding: 35px;
  }
  .story-copy h1 {
    font-size: 52px;
  }
}
@media (max-width: 740px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 200px;
    padding: 25px;
  }
  .story-copy {
    display: none;
  }
  .login-story footer {
    margin-top: 30px;
  }
  .login-form-panel {
    padding: 35px 25px;
  }
  .sidebar {
    width: 65px;
    padding: 25px 8px;
  }
  .sidebar .brand {
    padding: 0;
    justify-content: center;
    font-size: 0;
  }
  .sidebar .brand-mark {
    font-size: 25px;
  }
  .workspace-label,
  .sidebar-bottom,
  .nav-item span {
    display: none;
  }
  .nav-item {
    justify-content: center;
    padding: 14px 8px;
  }
  .nav-item.active:after {
    display: none;
  }
  nav {
    margin-top: 30px;
  }
  main {
    margin-left: 65px;
  }
  .page {
    padding: 24px 16px;
  }
  .topbar {
    padding: 0 16px;
    height: 60px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .pill {
    display: none;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
  th,
  td {
    padding: 12px;
  }
  .primary,
  .secondary {
    padding: 9px 12px;
  }
  .node-grid {
    grid-template-columns: 1fr;
  }
}

/* Portal activity rail. Test Lab has its own workspace layout. */
.portal-shell { --navigation-width: 64px; }
.portal-shell[data-navigation="expanded"] { --navigation-width: 236px; }
.portal-shell > .sidebar {
  width: var(--navigation-width);
  padding: 16px 8px 12px;
  z-index: 20;
}
.portal-shell > main { margin-left: var(--navigation-width); min-width: 0; }
.portal-shell .brand { min-height: 36px; padding: 0 8px; white-space: nowrap; }
.portal-shell nav { min-height: 0; overflow-y: auto; scrollbar-width: thin; margin-top: 16px; }
.portal-shell .nav-item { min-height: 44px; flex-shrink: 0; }
.portal-shell .nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.rail-control {
  display: flex; align-items: center; gap: 12px; min-height: 40px;
  padding: 10px 13px; border: 0; border-radius: 7px;
  background: transparent; color: #65796b; font-size: 12px; cursor: pointer;
}
.rail-control svg, #signout svg {
  width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.rail-control:hover { background: #edf3ee; }
.sidebar-toggle { margin-top: 12px; }
.portal-shell .sidebar-bottom { display: block; padding-top: 12px; }
.portal-shell .sidebar-bottom .theme-toggle { width: 100%; border: 0; justify-content: flex-start; }
.portal-shell .endpoint-card { margin-top: 10px; }
.portal-shell #signout { display: flex; align-items: center; justify-content: center; gap: 6px; }
.portal-shell[data-navigation="expanded"] .user-card { flex-wrap: wrap; }
.portal-shell[data-navigation="expanded"] #signout { margin-left: 40px; }
.portal-shell[data-navigation="expanded"] .workspace-label { margin: 22px 13px 0; }
.portal-shell[data-navigation="compact"] .brand { padding: 0; justify-content: center; }
.portal-shell[data-navigation="compact"] .brand-mark { font-size: 25px; }
.portal-shell[data-navigation="compact"] :is(.brand-name, .workspace-label, .user-details) { display: none; }
.portal-shell[data-navigation="compact"] :is(.nav-item, .rail-control) { justify-content: center; padding: 10px; }
.portal-shell[data-navigation="compact"] :is(.nav-item, .rail-control, #signout) > span { display: none; }
.portal-shell[data-navigation="compact"] .nav-item.active { box-shadow: inset 3px 0 #548d66; }
.portal-shell[data-navigation="compact"] .nav-item.active:after { display: none; }
.portal-shell[data-navigation="compact"] .endpoint-card { justify-content: center; padding: 10px; border: 0; }
.portal-shell[data-navigation="compact"] .endpoint-card > div { display: none; }
.portal-shell[data-navigation="compact"] .user-card { flex-direction: column; gap: 8px; padding: 10px 0 0; }
.portal-shell[data-navigation="compact"] #signout { margin: 0; padding: 8px; width: 40px; }
.portal-shell :is(.nav-item, .rail-control, #signout):focus-visible { outline: 2px solid #548d66; outline-offset: -2px; }
@media (max-width: 740px) {
  .portal-shell > main { margin-left: 64px; }
  .portal-shell[data-navigation="expanded"] > .sidebar { box-shadow: 12px 0 28px #102b2226; }
  .portal-shell[data-navigation="expanded"] .brand-name { display: inline; font-size: 20px; }
  .portal-shell[data-navigation="expanded"] .nav-item { justify-content: flex-start; }
  .portal-shell[data-navigation="expanded"] .nav-item span { display: inline; }
}
