:root {
  color-scheme: dark;
  --bg: #101211;
  --sidebar: #0c0e0d;
  --panel: #191d1b;
  --raised: #222824;
  --line: #303731;
  --text: #eef2eb;
  --muted: #a0aaa0;
  --accent: #bce983;
  --accent-ink: #182210;
  --good: #8ed6ae;
  --bad: #f39696;
  --warn: #e2bb77;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.55 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
button:hover:not(:disabled),
.button:hover {
  filter: brightness(1.08);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.workspace-sidebar {
  width: 210px;
  padding: 28px 17px 22px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.workspace-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 5px 8px 34px;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: 2px;
}
.workspace-brand img {
  border-radius: 12px;
}
.workspace-brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
}
.nav-caption {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.4px;
  padding: 0 10px;
  margin-bottom: 12px;
}
.workspace-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.workspace-nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 12px;
}
.workspace-nav a.active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
}
.workspace-nav a:hover {
  background: var(--raised);
}
.workspace-nav a.active:hover {
  background: var(--accent);
}
.nav-icon {
  width: 19px;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}
.sidebar-foot {
  margin-top: auto;
  padding: 25px 10px 0;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 6px;
  height: 6px;
  background: var(--good);
  border-radius: 50%;
  display: inline-block;
}
.workspace-main {
  margin-left: 210px;
  flex: 1;
  min-width: 0;
}
.workspace-topbar {
  min-height: 74px;
  padding: 16px 30px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--text);
}
.environment {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 7px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.7px;
  font-weight: 700;
}
.workspace-content {
  padding: 28px 30px 48px;
  max-width: 1500px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin: 0 0 6px;
}
h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  font-weight: 630;
  margin: 0 0 10px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 12px;
}
h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
p {
  margin: 6px 0 14px;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 11px;
}
code {
  font:
    12px/1.5 ui-monospace,
    SFMono-Regular,
    monospace;
  word-break: break-all;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
  overflow: auto;
}
.tabs a {
  padding: 9px 0 13px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}
.tabs a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 23px;
  margin-bottom: 20px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.panel-head h2,
.panel-head p {
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 14px;
}
.metric {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.metric strong {
  display: block;
  font-size: 23px;
  font-weight: 550;
  margin: 5px 0;
}
.metric small {
  display: block;
}
.account {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.account-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.account-title strong {
  text-transform: capitalize;
}
.account-title img {
  width: 23px;
  height: 23px;
  border-radius: 7px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 20px;
  color: var(--muted);
}
.good {
  color: var(--good);
}
.warning {
  color: var(--warn);
}
.danger {
  color: var(--bad);
}
.account select {
  width: 100%;
  margin-top: 12px;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 7px;
  padding: 10px 11px;
  min-width: 0;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0 12px 0 0;
  flex-shrink: 0;
}
label {
  display: flex;
  gap: 7px;
  flex-direction: column;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
label.check {
  flex-direction: row;
  align-items: center;
  margin: 0;
  color: var(--text);
}
.ip-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0;
  cursor: pointer;
}
.ip-option:has(:checked) {
  border-color: var(--accent);
  background: #bce98308;
}
.ip-option code {
  font-size: 16px;
}
.right {
  margin-left: auto;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.notice {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 17px;
  margin-bottom: 20px;
  background: var(--raised);
  color: var(--warn);
}
.notice.error {
  color: var(--bad);
}
.hint {
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0;
}
.hint a {
  color: var(--accent);
  text-decoration: underline;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 600px;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.5px;
  font-weight: 500;
}
td,
th {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td small {
  display: block;
  margin-top: 4px;
}
.empty {
  padding: 22px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 9px;
}
.operation {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.operation:first-child {
  padding-top: 0;
}
.operation-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.operation ul {
  color: var(--muted);
  font-size: 12px;
  padding-left: 18px;
  margin-bottom: 8px;
}
.operation .actions {
  margin-top: 10px;
}
.operation .button {
  padding: 8px 12px;
  font-size: 12px;
}
.portal {
  max-width: 860px;
  margin: 45px auto;
  padding: 0 24px;
}
.portal header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
}
.portal header img {
  width: 36px;
}
.portal .secure-origin {
  color: var(--accent);
  font:
    12px ui-monospace,
    SFMono-Regular,
    monospace;
  display: block;
}
.portal fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.portal input,
.portal select,
.portal textarea {
  width: 100%;
}
.portal textarea {
  min-height: 130px;
  resize: vertical;
  font:
    12px ui-monospace,
    monospace;
}
.portal .grid {
  grid-template-columns: 1fr 1fr;
}
.portal .plan-details {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  font-size: 13px;
}
.portal .plan-details dt {
  color: var(--muted);
}
.portal .plan-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.portal .full {
  grid-column: 1/-1;
}
.portal code.origin {
  font-size: 13px;
}
.portal .plan-summary {
  font-size: 19px;
  margin: 12px 0;
}
.footer-note {
  color: var(--muted);
  font-size: 11px;
  margin-top: 20px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .workspace-sidebar {
    width: 185px;
    padding: 23px 12px;
  }
  .workspace-main {
    margin-left: 185px;
  }
  .workspace-content {
    padding: 22px 20px;
  }
  .workspace-topbar {
    padding: 16px 20px;
  }
  .panel {
    padding: 18px;
  }
  .workspace-brand {
    font-size: 22px;
    margin-left: 4px;
  }
  .panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 650px) {
  .workspace-sidebar {
    position: static;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 18px;
  }
  .workspace {
    display: block;
  }
  .workspace-main {
    margin: 0;
  }
  .workspace-brand {
    margin: 0;
    font-size: 22px;
  }
  .workspace-brand img {
    width: 32px;
    height: 32px;
  }
  .workspace-brand small,
  .nav-caption,
  .sidebar-foot {
    display: none;
  }
  .workspace-nav {
    flex-direction: row;
    overflow: auto;
    margin-top: 15px;
  }
  .workspace-nav a {
    white-space: nowrap;
    padding: 8px 11px;
  }
  .workspace-nav .nav-icon {
    display: none;
  }
  .workspace-nav
    a:not([href^="/network"]):not([href="/positions"]):not([href="/control"]) {
    display: none;
  }
  .workspace-topbar {
    display: none;
  }
  .workspace-content {
    padding: 24px 16px;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 26px;
  }
  .tabs {
    gap: 20px;
  }
  .panel-head .button {
    width: 100%;
  }
  .portal {
    margin: 24px auto;
    padding: 0 16px;
  }
  .portal .grid {
    grid-template-columns: 1fr;
  }
  .portal .plan-details {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .portal .plan-details dd {
    margin-bottom: 12px;
  }
}
