:root {
  color-scheme: dark;
  --ink: #ecf0ec;
  --muted: #858e87;
  --bg: #101210;
  --line: #2a2f2b;
  --green: #a3e3b7;
  --mint: #20372a;
  --sidebar: #111411;
  --white: #151815;
  --red: #efaaa2;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid var(--green);
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button {
  transition:
    background 0.16s,
    border-color 0.16s,
    color 0.16s;
}
::selection {
  color: #f4fff5;
  background: #396344;
}
.ui-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 25px;
  letter-spacing: -1.1px;
}
.brand strong {
  font-weight: 650;
}
.brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 29px;
  margin: 0;
  letter-spacing: 0;
  font-weight: 400;
}
.brand > span:not(.brand-mark) {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-left: 8px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 540;
  letter-spacing: -1.2px;
  margin-bottom: 9px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.6px;
  font-weight: 520;
  margin-bottom: 12px;
}
h3 {
  font-size: 14px;
  font-weight: 540;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.eyebrow,
.section-kicker,
.mini-label,
.nav-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 450;
  letter-spacing: 1.25px;
}
.eyebrow {
  color: var(--muted);
  margin-bottom: 12px;
}
small {
  font-size: 11px;
}
.fine {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 18px 0 0;
}
.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  min-height: 36px;
}
.primary {
  background: var(--green);
  color: #12281a;
  border-color: #b4ecc5;
  box-shadow: inset 0 1px 0 #ffffff30;
}
.primary:hover {
  background: #bceecb;
}
.secondary {
  background: #1b201c;
  color: #d5ddd6;
  border-color: #343c35;
}
.secondary:hover {
  background: #242c25;
  border-color: #526154;
}
.danger {
  background: #2a1e1b;
  color: var(--red);
  border-color: #4c302b;
}
.danger:hover {
  background: #39231f;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 8px 0;
  color: #abb7ac;
  font-size: 11px;
}
.text-button:hover {
  color: var(--green);
}
.full {
  width: 100%;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 450;
  color: #c0c9c2;
  margin: 22px 0;
}
input,
textarea,
select {
  width: 100%;
  display: block;
  border: 1px solid #343b34;
  background: #101310;
  color: var(--ink);
  border-radius: 6px;
  padding: 12px;
  margin-top: 9px;
  font-size: 13px;
}
input::placeholder,
textarea::placeholder {
  color: #646f66;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #85c797;
  box-shadow: 0 0 0 3px #94dbac0d;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 222px;
  flex-shrink: 0;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 26px 16px 18px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.sidebar .brand {
  padding: 0 11px;
}
.workspace-chip {
  margin: 32px 0 29px;
  padding: 11px 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #303730;
  background: #191e19;
  border-radius: 6px;
  position: relative;
}

.workspace-chip strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-chip small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
}
.avatar {
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25382b;
  color: #b8e5c3;
  border: 1px solid #3b5140;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}
.avatar.small {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #262f26;
}
.nav-label {
  display: flex;
  justify-content: space-between;
  color: #728073;
  padding: 0 12px;
  margin-bottom: 12px;
  font-size: 9px;
}
.nav-label span {
  color: #485449;
}
nav {
  display: grid;
  gap: 5px;
}
nav button {
  position: relative;
  border: 1px solid transparent;
  border-radius: 5px;
  text-align: left;
  padding: 10px 11px;
  color: #909c93;
  background: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  min-height: 39px;
}
nav button > span {
  display: flex;
  align-items: center;
}
nav .ui-icon {
  width: 16px;
  height: 16px;
}
nav button small {
  margin-left: auto;
  color: #839187;
  font-size: 10px;
}
nav button:hover {
  color: #d7e3d9;
  background: #1b221c;
}
nav button.active {
  color: #bce9c9;
  background: #203327;
  border-color: #314c39;
}
nav button.active::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px -17px;
  background: #a3e3b7;
  width: 2px;
}
nav button.active small {
  color: #b2d9bd;
}
.sidebar-footer {
  margin-top: auto;
  padding: 22px 10px 0;
  border-top: 1px solid #252c26;
}
.sidebar-footer div {
  font-size: 10px;
  color: #b3c1b6;
}
.status-dot {
  display: inline-block;
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #99d6ad;
  margin-right: 6px;
  box-shadow: 0 0 7px #a3e3b720;
}
.sidebar-footer small {
  display: block;
  font-size: 9px;
  color: #69786d;
  margin-top: 8px;
}
.sidebar-footer button {
  margin-top: 10px;
  font-size: 10px;
}
main {
  margin-left: 222px;
  width: calc(100% - 222px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  height: 58px;
  border-bottom: 1px solid var(--line);
  background: #111411;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 34px;
}
.breadcrumb {
  font-size: 10px;
  color: #718075;
}
.breadcrumb span {
  padding: 0 12px;
  color: #3d493f;
}
.breadcrumb strong {
  font-weight: 400;
  color: #ccd7ce;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-status {
  font-size: 9px;
  color: #92a095;
}
.content {
  padding: 34px;
  max-width: 1450px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-bottom: 28px;
}
.page-heading p {
  margin-bottom: 0;
  font-size: 12px;
}
.page-heading .eyebrow {
  font-size: 8px;
  color: #6f8374;
  letter-spacing: 1.8px;
}
footer {
  padding: 17px 34px;
  border-top: 1px solid #252b25;
  display: flex;
  gap: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #5c6d60;
}
footer span {
  letter-spacing: 0;
}
footer span:last-child {
  margin-left: auto;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #151915;
  margin-bottom: 24px;
  overflow: hidden;
}
.stat {
  padding: 18px 21px;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}
.stat-label {
  font-size: 10px;
  color: #99a79d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stat-label .ui-icon {
  width: 14px;
  height: 14px;
  color: #647a6a;
}
.stat-number {
  font-size: 30px;
  font-weight: 450;
  letter-spacing: -0.9px;
  margin: 14px 0 6px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat small {
  font-size: 9px;
  color: #728077;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 23px;
  margin-bottom: 22px;
  min-width: 0;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.card-heading h3 {
  margin: 0;
  font-size: 13px;
}
.card-heading small {
  color: var(--muted);
  font-size: 9px;
}
.card-heading p {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 0;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}
.overview-grid .card {
  margin-bottom: 0;
}
.section-kicker {
  color: #a7c7b1;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 1.3px;
}
.tiny-spark {
  color: var(--green);
  font-size: 17px;
}
.quick-compose {
  background: linear-gradient(120deg, #1b241d 0%, #161b17 65%, #151915 100%);
}
.quick-compose h2 {
  font-size: 24px;
  letter-spacing: -0.8px;
  margin-bottom: 9px;
}
.quick-compose > p {
  font-size: 11px;
  margin-bottom: 21px;
}
.quick-compose textarea {
  min-height: 84px;
  padding: 14px;
  resize: vertical;
  background: #101610;
  border-color: #334536;
  font-size: 12px;
  margin: 0;
  border-radius: 6px 6px 0 0;
  border-bottom: 0;
}
.quick-compose textarea:focus {
  box-shadow: none;
  border-color: #67896f;
}
.quick-compose-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #101610;
  border: 1px solid #334536;
  border-top: 1px solid #242e26;
  border-radius: 0 0 6px 6px;
}
.quick-compose-bottom > span {
  font-size: 9px;
  color: #8d9c90;
}
.quick-compose-bottom .primary {
  min-height: 31px;
  padding: 7px 11px;
  font-size: 10px;
}
.quick-compose-bottom .ui-icon {
  width: 14px;
  height: 14px;
}
.suggestion-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.suggestion-row > span {
  font-size: 9px;
  color: #6e7c72;
  margin-right: 3px;
}
.suggestion {
  font-size: 9px;
  color: #a7b5ab;
  background: #1b241d;
  border: 1px solid #303c32;
  padding: 5px 8px;
  border-radius: 4px;
}
.suggestion:hover {
  border-color: #698672;
  color: var(--green);
}
.network-card {
  overflow: hidden;
  background-image: radial-gradient(#6c927c15 0.7px, transparent 0.7px);
  background-size: 12px 12px;
}
.network-card .card-heading {
  margin-bottom: 10px;
}
.mini-label {
  color: #809987;
  border: 1px solid #344638;
  padding: 4px 5px;
  font-size: 8px;
  border-radius: 3px;
  letter-spacing: 1px;
}
.network-map {
  display: flex;
  align-items: center;
  flex-direction: column;
  height: 170px;
  padding-top: 4px;
}
.map-agent {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #97a89d;
}
.map-agent .ui-icon {
  width: 14px;
  height: 14px;
}
.map-trunk {
  height: 17px;
  width: 1px;
  background: #41614b;
}
.map-hub {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #53735c;
  padding: 9px 15px;
  background: #203026;
  border-radius: 5px;
  font-size: 16px;
  letter-spacing: -0.6px;
  box-shadow: 0 0 25px #5eaa7620;
  z-index: 1;
}
.relay-glyph {
  color: var(--green);
  font-size: 23px;
  line-height: 1;
}
.map-hub .status-dot {
  width: 4px;
  height: 4px;
  margin: 0 0 0 9px;
}
.map-branches {
  width: 68%;
  height: 23px;
  display: flex;
  justify-content: space-between;
  position: relative;
}
.map-branches::before {
  content: "";
  position: absolute;
  height: 12px;
  width: 100%;
  top: 11px;
  border: 1px solid #3f604a;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}
.map-branches span:nth-child(2) {
  height: 23px;
  width: 1px;
  background: #3f604a;
}
.map-services {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.map-services > div {
  padding: 7px 5px;
  background: #19231b;
  border: 1px solid #344638;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 31%;
  min-width: 0;
}
.map-services .ui-icon {
  color: #94bfa1;
  width: 14px;
  height: 14px;
}
.map-services span {
  max-width: 100%;
  font-size: 8px;
  color: #acbcb1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gateway-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111711;
  border: 1px solid #303d32;
  border-radius: 5px;
  padding: 1px 10px;
  margin-top: 11px;
  gap: 10px;
}
.gateway-address code {
  font-size: 9px;
  color: #8ea394;
  overflow-wrap: anywhere;
}
.gateway-address .text-button {
  font-size: 9px;
}
.gateway-link {
  font-size: 9px;
  width: 100%;
  padding: 10px 0 0;
}
.gateway-link .ui-icon {
  width: 12px;
  height: 12px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  gap: 12px;
}
.section-heading h2 {
  font-size: 13px;
  margin: 0;
  letter-spacing: -0.1px;
  font-weight: 500;
}
.count-label {
  display: inline-block;
  color: #84958a;
  background: #1e261f;
  border: 1px solid #2d3a30;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 9px;
  margin-left: 7px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}
.service-card,
.add-service {
  border: 1px solid var(--line);
  background: #151915;
  border-radius: 6px;
  padding: 16px;
  position: relative;
  text-align: left;
  color: var(--ink);
  min-width: 0;
}
.service-card:hover {
  border-color: #526b58;
  background: #19211a;
}
.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 6px;
}
.service-icon {
  width: 28px;
  height: 28px;
  background: #243329;
  color: #a6d6b4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #354b3b;
  border-radius: 6px;
}
.service-icon .ui-icon {
  width: 15px;
  height: 15px;
}
.service-card h3 {
  font-size: 11px;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-card p {
  color: #7e9084;
  font-size: 9px;
  margin: 0;
  overflow-wrap: anywhere;
}
.service-card p span {
  color: #465b4c;
  padding: 0 3px;
}
.service-arrow {
  position: absolute;
  bottom: 14px;
  right: 12px;
  color: #526b59;
  font-size: 12px;
}
.add-service {
  border-style: dashed;
  background: #111611;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 10px;
}
.add-service .ui-icon {
  color: #80a88d;
  width: 19px;
  height: 19px;
}
.add-service strong {
  font-size: 10px;
  font-weight: 450;
  color: #afc3b5;
}
.add-service > span {
  font-size: 8px;
  color: #6f8476;
  text-align: center;
}
.add-service:hover {
  border-color: #8cb599;
  background: #19251c;
}
.activity-card {
  padding: 0;
  overflow: hidden;
}
.activity-card > .card-heading {
  padding: 20px 21px 0;
}
.grid-two,
.endpoint-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.setup-step {
  display: flex;
  gap: 14px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.step-index,
.number-line span {
  border: 1px solid #395440;
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  flex-shrink: 0;
}
.step-index.done,
.number-line span {
  background: #203729;
  color: var(--green);
}
.setup-step strong {
  font-size: 12px;
  font-weight: 500;
}
.setup-step p {
  font-size: 11px;
  margin: 5px 0 0;
  color: var(--muted);
}
.setup-step button {
  margin-left: auto;
}
.gateway-card {
  background: #19271d;
  border-color: #344e3b;
}
.gateway-card p {
  font-size: 12px;
  color: #92ac9b;
}
.endpoint-box {
  font:
    11px/1.7 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  background: #101b13;
  border: 1px solid #344b3a;
  border-radius: 5px;
  padding: 13px;
  overflow-wrap: anywhere;
  margin: 20px 0;
  color: #abd2b7;
}
.path-map {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 25px;
  font-size: 10px;
  color: #8cab95;
  flex-wrap: wrap;
}
.path-map span {
  padding: 9px;
  border: 1px solid #38503d;
  border-radius: 4px;
}
.path-map b {
  font-weight: 400;
}
.empty {
  padding: 45px 25px;
  text-align: center;
}
.empty-icon {
  display: block;
  font-size: 28px;
  color: #86b292;
  margin-bottom: 18px;
}
.empty h3 {
  font-size: 16px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  max-width: 410px;
  margin: 0 auto 20px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
th {
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-weight: 450;
  letter-spacing: 1px;
  color: #718878;
  padding: 12px 17px;
  background: #121712;
  border-block: 1px solid #29352b;
  white-space: nowrap;
}
td {
  padding: 16px 17px;
  border-bottom: 1px solid #263028;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #19211a;
}
td strong {
  display: block;
  font-size: 11px;
  font-weight: 450;
  max-width: 440px;
  line-height: 1.7;
}
td small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 4px;
  background: #242b25;
  color: #91a396;
  border: 1px solid #354238;
  font-size: 9px;
  white-space: nowrap;
  font-weight: 400;
}
.badge::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.badge.ready,
.badge.success {
  background: #20372a;
  color: #a2d5b2;
  border-color: #314e3b;
}
.badge.failed,
.badge.error,
.badge.timed_out,
.badge.interrupted,
.badge.outcome_unknown {
  background: #332321;
  color: #d49b93;
  border-color: #52362f;
}
.badge.running,
.badge.syncing,
.badge.executing,
.badge.routing,
.badge.arguments {
  background: #283527;
  color: #c1d6a3;
  border-color: #43573a;
}
.badge.blocked {
  background: #342e20;
  color: #cdbb8b;
  border-color: #4e452e;
}
.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.row-actions button {
  padding: 6px 8px;
  min-height: 27px;
  font-size: 9px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.toolbar input {
  max-width: 350px;
  margin: 0;
}
.toolbar p {
  font-size: 11px;
  margin: 0;
}
.catalog-card {
  padding: 0;
  overflow: hidden;
}
.tool-description {
  max-width: 440px;
  min-width: 180px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.switch {
  border: 1px solid #3b443d;
  background: #222823;
  color: #8e9e93;
  padding: 6px 9px;
  border-radius: 4px;
  font-size: 10px;
}
.switch.on {
  background: #21372a;
  color: #b0dec0;
  border-color: #3a5944;
}
.compose textarea {
  background: #101610;
  min-height: 115px;
  margin-top: 9px;
}
.compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 17px;
}
.compose-footer p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.run-node {
  border-left: 1px solid #3f6149;
  padding: 0 0 20px 22px;
  margin-left: 8px;
  position: relative;
}
.run-node::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8ac19a;
  box-shadow: 0 0 0 4px #203328;
}
.run-node h3 {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 7px;
  font-size: 13px;
}
.run-node p {
  font-size: 12px;
  margin-bottom: 8px;
}
.run-node small {
  font-size: 10px;
  color: var(--muted);
}
pre {
  background: #0c110d;
  color: #b0cbb8;
  border: 1px solid #2d3c31;
  border-radius: 6px;
  padding: 18px;
  font:
    11px/1.8 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  overflow: auto;
  max-height: 430px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
code {
  font:
    11px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
details {
  margin: 12px 0;
}
summary {
  font-size: 11px;
  cursor: pointer;
  color: var(--green);
}
.callout {
  background: #1c2b20;
  border: 1px solid #344a3a;
  border-radius: 6px;
  padding: 15px;
  font-size: 11px;
  line-height: 1.7;
  margin: 18px 0;
  color: #a6c4b0;
}
.callout.error {
  background: #30221e;
  border-color: #52382f;
  color: #dfb0a1;
}
.setup-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.setup-callout > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-form {
  max-width: 660px;
}
.settings-form label small {
  font-weight: 400;
  color: var(--muted);
}
.number-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 12px;
}
.number-line h3 {
  margin: 0;
}
.token-result {
  margin-top: 20px;
}
dialog {
  border: 1px solid #3d5142;
  border-radius: 9px;
  background: #161d17;
  padding: 28px;
  max-width: 570px;
  width: calc(100% - 32px);
  color: var(--ink);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 100px #0008;
}
dialog::backdrop {
  background: #080e0bc2;
  backdrop-filter: blur(5px);
}
#detail-dialog {
  max-width: 800px;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.dialog-heading h2 {
  margin-bottom: 8px;
}
.icon-button {
  border: 0;
  background: none;
  font-size: 25px;
  color: var(--muted);
  padding: 0 4px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
#notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 48px));
  background: #253e2d;
  color: #dcefe1;
  border: 0 solid #4c7858;
  padding: 0;
  border-radius: 7px;
  box-shadow: 0 8px 40px #0005;
  font-size: 12px;
  line-height: 1.7;
}
#notice:not(:empty) {
  padding: 15px 20px;
  border-width: 1px;
}
.loading {
  padding: 40px;
  color: var(--muted);
  font-size: 12px;
}
.run-heading {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: flex-start;
}
.run-heading p {
  font-size: 13px;
}
.metrics-strip {
  display: flex;
  gap: 25px;
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0 25px;
}
.credentials-status {
  font-size: 11px;
  color: var(--green);
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: #101310;
}
.auth-panel {
  grid-column: 1;
  grid-row: 1;
  padding: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-panel form {
  width: 100%;
  max-width: 355px;
}
.auth-panel h2 {
  font-size: 27px;
  letter-spacing: -0.9px;
}
.auth-panel .primary {
  margin-top: 10px;
  padding: 13px;
}
.auth-panel .eyebrow {
  color: #b2ddbf;
}
.auth-panel .full.text-button {
  font-size: 11px;
}
.auth-panel label {
  margin: 20px 0;
}
.auth-panel > form > .fine:last-child {
  text-align: center;
  font-size: 10px;
}
.auth-story {
  grid-column: 2;
  grid-row: 1;
  margin: 22px 22px 22px 0;
  border: 1px solid #35513d;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 60% 15%, #477d4b30, transparent 50%),
    radial-gradient(ellipse at 25% 100%, #8cba6250, transparent 65%), #182e20;
  color: #e2f0e5;
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 700px;
  overflow: hidden;
  position: relative;
}
.auth-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#a6d3ad23 0.7px, transparent 0.7px);
  background-size: 17px 17px;
  pointer-events: none;
}
.auth-story > * {
  position: relative;
}
.auth-story .brand {
  font-size: 27px;
}
.auth-story .eyebrow {
  color: #8eb79b;
  font-size: 9px;
  margin-top: 25px;
}
.auth-story h1 {
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -1.9px;
  font-weight: 450;
}
.auth-story p {
  color: #9bbca7;
  max-width: 340px;
  font-size: 12px;
}
.auth-story small {
  color: #7f9d87;
  font-size: 10px;
}
.flow-visual {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 27px;
  font-size: 10px;
}
.flow-visual span {
  padding: 11px;
  border: 1px solid #41664c;
  border-radius: 5px;
  color: #afd0b8;
}
.flow-visual .relay-node {
  background: #a3e3b7;
  color: #1c3925;
  border-color: #b8edc9;
}
.flow-visual b {
  color: #739d80;
  font-weight: 400;
}
.auth-orbit {
  height: 190px;
  display: grid;
  place-items: center;
  position: relative;
  margin: 12px 0 25px;
}
.orbit-ring {
  position: absolute;
  width: 155px;
  height: 155px;
  border: 1px solid #83c29544;
  border-radius: 50%;
}
.orbit-two {
  width: 245px;
  height: 245px;
  border-style: dashed;
  border-color: #83c29525;
}
.orbit-three {
  width: 335px;
  height: 335px;
  border-color: #83c29510;
}
.orbit-core {
  display: grid;
  place-items: center;
  height: 70px;
  width: 70px;
  background: #a3e3b7;
  color: #20432b;
  font-size: 48px;
  border-radius: 15px;
  box-shadow: 0 0 75px #90d7a339;
}
.orbit-point {
  position: absolute;
  height: 9px;
  width: 9px;
  border: 1px solid #a1d3b1;
  border-radius: 50%;
  background: #2e5439;
  box-shadow: 0 0 0 5px #4d78552b;
}
.point-one {
  transform: translate(63px, -44px);
}
.point-two {
  transform: translate(-118px, 32px);
}
.point-three {
  transform: translate(103px, 65px);
}
@media (min-width: 1500px) {
  .content {
    padding-top: 42px;
  }
  .quick-compose {
    padding: 28px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 200px;
    padding-inline: 13px;
  }
  main {
    margin-left: 200px;
    width: calc(100% - 200px);
  }
  header,
  footer {
    padding-inline: 25px;
  }
  .content {
    padding: 28px 25px;
  }
  .overview-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 14px;
  }
  .overview-grid .card {
    padding: 18px;
  }
  .quick-compose h2 {
    font-size: 21px;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    padding: 17px 15px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stat small {
    font-size: 8px;
  }
  .endpoint-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .overview-grid,
  .grid-two {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .network-map {
    height: 180px;
    max-width: 320px;
    margin: auto;
  }
  .gateway-address {
    max-width: 400px;
    margin-inline: auto;
  }
  .auth-panel {
    padding: 35px;
  }
  .auth-story {
    padding: 28px;
  }
  .auth-story .brand > span:not(.brand-mark) {
    display: none;
  }
}
@media (max-width: 650px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 17px 16px 10px;
    gap: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    padding: 0 5px;
    font-size: 24px;
  }
  .workspace-chip,
  .nav-label,
  .sidebar-footer {
    display: none;
  }
  nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding-bottom: 5px;
  }
  nav button {
    flex-shrink: 0;
    padding: 8px;
    white-space: nowrap;
    font-size: 10px;
    min-height: 34px;
    gap: 6px;
  }
  nav button.active::before {
    display: none;
  }
  nav .ui-icon {
    width: 13px;
    height: 13px;
  }
  nav button small {
    margin-left: 1px;
  }
  main {
    margin: 0;
    width: 100%;
  }
  header {
    height: 48px;
    padding-inline: 18px;
  }
  .header-status {
    display: none;
  }
  .content {
    padding: 25px 17px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 22px;
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading .primary {
    padding: 9px 10px;
    font-size: 10px;
    margin-top: 20px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .stat {
    padding: 17px;
  }
  .stat-number {
    font-size: 29px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat small {
    font-size: 9px;
  }
  .card {
    padding: 19px;
  }
  .catalog-card,
  .activity-card {
    padding: 0;
  }
  .service-grid {
    gap: 10px;
  }
  .service-card {
    padding: 13px;
  }
  .service-card-top {
    gap: 3px;
  }
  .service-card .badge {
    font-size: 8px;
    padding: 4px;
  }
  .service-card h3 {
    font-size: 11px;
  }
  .service-card p {
    font-size: 8px;
  }
  .service-arrow {
    display: none;
  }
  .quick-compose h2 {
    font-size: 22px;
  }
  .section-heading .text-button {
    font-size: 10px;
  }
  .section-heading h2 {
    font-size: 12px;
  }
  .activity-card td strong {
    min-width: 170px;
  }
  .activity-card td,
  .activity-card th {
    padding-inline: 13px;
  }
  .compose-footer {
    align-items: flex-start;
  }
  .compose-footer p {
    max-width: 160px;
  }
  footer {
    padding: 17px;
    font-size: 8px;
    gap: 15px;
  }
  footer span:last-child {
    display: none;
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .toolbar input {
    max-width: none;
  }
  .setup-callout {
    flex-direction: column;
    align-items: flex-start;
  }
  .run-heading {
    flex-direction: column;
  }
  .auth-screen {
    grid-template-columns: 1fr;
  }
  .auth-story {
    grid-row: 1;
    grid-column: 1;
    margin: 12px;
    min-height: 260px;
    padding: 22px;
    gap: 25px;
  }
  .auth-story h1 {
    font-size: 34px;
    margin-bottom: 12px;
  }
  .auth-story .eyebrow {
    margin-top: 0;
  }
  .auth-story p {
    margin: 0;
  }
  .auth-story small,
  .auth-orbit,
  .flow-visual {
    display: none;
  }
  .auth-panel {
    grid-row: 2;
    grid-column: 1;
    padding: 28px 25px;
  }
  dialog {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.initial-loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  color: #91ac99;
  font-size: 12px;
}
.initial-loading .brand-mark {
  color: var(--green);
  font-size: 38px;
}
nav button {
  font-size: 12px;
}
.stat-label {
  font-size: 11px;
}
.stat small {
  font-size: 10px;
}
@media (max-width: 650px) {
  nav button {
    font-size: 10px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat small {
    font-size: 9px;
  }
}

/* Service picker: public provider metadata only; tokens stay on the server. */
.service-options { display: grid; gap: 10px; margin: 20px 0; }
.service-option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 17px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: inherit; }
.service-option:hover { border-color: var(--green); background: #a3e3b70a; }
.service-mark { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; color: var(--green); font-size: 19px; font-weight: 700; }
.service-copy { display: grid; gap: 5px; flex: 1; }
.service-copy strong { font-size: 15px; }
.service-copy > span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.service-action { font-size: 12px; white-space: nowrap; color: var(--green); }
.custom-service { width: 100%; margin-bottom: 12px; }
.connection-error { color: #ffb3a7; background: #522a2533; border: 1px solid #74423a; padding: 12px; border-radius: 8px; font-size: 13px; }
#back-to-services { margin-bottom: 14px; }
@media (max-width: 480px) { .service-option { gap: 10px; padding: 12px; flex-wrap: wrap; } .service-action { margin-left: 54px; } }

.quick-integrations { margin-bottom: 24px; }
.quick-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 850px) { .quick-service-grid { grid-template-columns: 1fr; } }

.service-mark img { display: block; width: 28px; height: 28px; object-fit: contain; border-radius: 4px; }

.connection-icon { width: 32px; height: 32px; object-fit: contain; border-radius: 7px; flex-shrink: 0; background: #ffffff; }
.connection-icon.small { width: 23px; height: 23px; border-radius: 5px; }
.connection-identity { display: flex; gap: 12px; align-items: center; }
.tool-server, .service-card h3 { display: inline-flex; gap: 9px; align-items: center; }

.integration-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:20px 0 28px; }
.integration-card { padding:22px; border:1px solid var(--line); border-radius:14px; background:var(--panel,#121714); min-width:0; }
.integration-heading { display:flex; align-items:center; gap:12px; }
.integration-heading img { object-fit:contain; border-radius:7px; background:#fff; }
.integration-heading h3 { margin:0 0 5px; font-size:16px; }
.free-label { font-size:11px; color:var(--green); }
.integration-card > p { color:var(--muted); line-height:1.6; min-height:48px; font-size:13px; margin:16px 0; }
.integration-card > small { color:var(--muted); font-size:11px; }
.integration-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:18px; }
.integration-actions .switch { white-space:normal; }
@media(max-width:700px) { .integration-grid { grid-template-columns:1fr; } }
