:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  color: #192b29;
  background: #f5f7f6;
  font-size: 14px;
  --green: #116451;
  --muted: #72817e;
  --line: #e3e9e6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  border: 0;
  border-radius: 7px;
  padding: 11px 18px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: white;
  border: 1px solid #d5dfda;
  color: #29413b;
}
.text-button {
  background: none;
  color: inherit;
  padding: 0;
}
.muted,
small {
  color: var(--muted);
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green);
  font-weight: 700;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 17px;
}
h3 {
  font-size: 14px;
  margin: 27px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
p {
  color: var(--muted);
  line-height: 1.8;
}
aside {
  width: 224px;
  background: #102c25;
  color: #d4e4db;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 35px;
  letter-spacing: -2px;
  color: #fff;
  text-decoration: none;
  font-weight: 750;
}
.brand span {
  font-size: 11px;
  margin-left: 10px;
  letter-spacing: 3px;
  color: #93b7a6;
}
.sidebar-caption {
  font-size: 11px;
  color: #9ab7aa;
  margin-top: 14px;
  line-height: 1.8;
}
nav {
  display: grid;
  gap: 8px;
  margin-top: 44px;
}
.nav {
  text-align: left;
  background: transparent;
  color: #a9c1b5;
  font-weight: 500;
}
.nav.active {
  background: #23473b;
  color: #fff;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 11px;
  color: #8caa9c;
  line-height: 2.5;
}
.sidebar-bottom button {
  display: block;
  margin-top: 14px;
}
.live-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: #89c99d;
  border-radius: 50%;
  margin-right: 6px;
}
.workspace {
  margin-left: 224px;
  padding: 34px 40px;
  max-width: 1800px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
header h1 {
  margin-top: 8px;
}
.header-right {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.intro h2 {
  font-size: 24px;
  margin: 12px 0 8px;
}
.badge {
  font-size: 11px;
  border-radius: 4px;
  background: #e3eee8;
  color: #27634e;
  padding: 5px 8px;
  display: inline-block;
}
.flow {
  padding: 20px 24px;
  color: #305849;
  font-size: 13px;
  white-space: nowrap;
}
.flow span {
  padding: 0 16px;
  color: #a3b8ad;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.card-label {
  font-size: 12px;
  color: var(--muted);
}
.card-value {
  font-size: 31px;
  font-weight: 650;
  letter-spacing: -1px;
  margin-top: 12px;
}
.card-detail {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 22px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 15px;
  margin: 0;
}
dt {
  color: var(--muted);
  font-size: 12px;
}
dd {
  margin: 0;
  text-align: right;
  font-size: 13px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 500;
  color: var(--muted);
  padding: 12px;
  background: #f7f9f8;
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid #edf0ee;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 30px;
  font-size: 13px;
}
.state-line {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #edf0ee;
  font-size: 12px;
}
.state-line strong {
  font-size: 15px;
}
.error-item {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  line-height: 1.7;
}
.error-item:last-child {
  border-bottom: 0;
}
.error-item p {
  color: #a24d38;
  font-size: 13px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 24px;
}
.section-title p {
  margin-top: 8px;
}
.config-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
}
.route-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.route-button {
  background: #fff;
  color: #314d40;
  border: 1px solid var(--line);
  text-align: left;
  padding: 15px;
  font-weight: 500;
}
.route-button.selected {
  border-color: var(--green);
  box-shadow: inset 3px 0 var(--green);
}
.route-button small {
  display: block;
  margin-top: 7px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid.four {
  grid-template-columns: repeat(4, 1fr);
}
label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  color: #425b50;
}
input,
select {
  width: 100%;
  border: 1px solid #d7e0da;
  border-radius: 6px;
  background: #fff;
  color: #203c2e;
  padding: 11px;
  min-width: 0;
}
input:focus,
select:focus {
  outline: 2px solid #b9d6c5;
  border-color: var(--green);
}
input:disabled {
  background: #f4f6f4;
  color: #87988d;
}
.wide {
  grid-column: 1/-1;
}
.switches {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  background: #f5f8f5;
  padding: 17px;
  margin-top: 20px;
  border-radius: 7px;
}
.switches label,
.check {
  flex-direction: row;
  align-items: center;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  flex-shrink: 0;
}
.strategy-row {
  display: grid;
  grid-template-columns: 1fr 20px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.strategy-row span {
  text-align: center;
  color: var(--muted);
}
.strategy-row button {
  background: #f4f6f4;
  color: #8d4e41;
  padding: 10px;
}
.hint {
  font-size: 11px;
  margin-top: 14px;
}
.form-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.endpoint {
  background: #f6f8f6;
  border-radius: 6px;
  padding: 13px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.endpoint code {
  overflow-wrap: anywhere;
  font-size: 11px;
  flex: 1;
}
.endpoint button {
  padding: 6px 10px;
  font-size: 11px;
}
.endpoint-label {
  font-size: 11px;
  color: var(--muted);
  min-width: 48px;
}
footer {
  font-size: 11px;
  color: #98a69e;
  margin-top: 28px;
}
#message {
  border: 1px solid #bfd9c7;
  background: #edf7ef;
  padding: 13px 16px;
  border-radius: 7px;
  margin-bottom: 20px;
}
#message.error {
  border-color: #e1c8bd;
  background: #fff3eb;
  color: #95543f;
}
.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at top right, #e4eee5, transparent 60%), #f3f6f3;
}
.login-card {
  width: min(420px, 90vw);
  background: #fff;
  border: 1px solid var(--line);
  padding: 38px;
  border-radius: 15px;
  box-shadow: 0 18px 70px #1b3c2810;
}
.login-card h1 {
  margin: 18px 0 12px;
}
.login-card p {
  font-size: 12px;
  margin-bottom: 24px;
}
.login-card label {
  margin-bottom: 18px;
}
.login-card button {
  width: 100%;
  margin-top: 8px;
}
.login-card #login-error {
  margin: 14px 0 0;
  color: #ae4e38;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  aside {
    width: 180px;
    padding: 28px 17px;
  }
  .workspace {
    margin-left: 180px;
    padding: 28px 24px;
  }
  .flow {
    display: none;
  }
  .config-layout {
    grid-template-columns: 145px minmax(0, 1fr);
  }
  .form-grid.four {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: 100%;
    padding: 16px 20px;
    display: block;
  }
  .brand {
    font-size: 25px;
  }
  .sidebar-caption,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    gap: 6px;
    margin-top: 12px;
  }
  .nav {
    padding: 9px 15px;
  }
  .workspace {
    margin: 0;
    padding: 20px 15px;
  }
  header h1 {
    font-size: 24px;
  }
  .header-right span {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .card {
    padding: 17px;
  }
  .card-value {
    font-size: 27px;
  }
  .two-column {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .config-layout {
    grid-template-columns: 1fr;
  }
  .route-list {
    flex-direction: row;
    overflow: auto;
  }
  .route-button {
    min-width: 150px;
  }
  .panel {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid.four {
    grid-template-columns: 1fr 1fr;
  }
  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .panel-heading {
    align-items: flex-start;
  }
  .panel-heading .muted {
    max-width: 50%;
    text-align: right;
  }
  .section-title {
    gap: 10px;
  }
  .section-title p {
    font-size: 12px;
  }
  .strategy-row {
    grid-template-columns: 1fr 16px 1fr auto;
    gap: 6px;
  }
  .strategy-row input {
    padding: 9px;
    font-size: 12px;
  }
}
