:root {
  --bg: #f7f8f6;
  --paper: #fff;
  --ink: #202e2a;
  --muted: #7a8580;
  --line: #e5e9e5;
  --green: #126b56;
  --light: #eaf3ed;
  --lime: #d7ed9d;
  --red: #b34a3c;
  --radius: 14px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button svg {
  vertical-align: middle;
}
svg {
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  background: #fafbf9;
}
td,
th {
  padding: 16px 18px;
  border-bottom: 1px solid #edf0eb;
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td {
  font-size: 12px;
}
td strong {
  font-weight: 550;
}
small {
  font-size: 11px;
}
.muted {
  color: var(--muted);
}
.mono,
code,
pre {
  font-family: Consolas, "Courier New", monospace;
}
.layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 228px;
  min-width: 228px;
  background: #fcfdfb;
  border-right: 1px solid var(--line);
  padding: 31px 18px 15px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  font-size: 25px;
  letter-spacing: 1px;
  font-weight: 700;
}
.brand-symbol {
  background: var(--green);
  border-radius: 12px;
  color: var(--lime);
  width: 42px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}
.brand-api {
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0;
  margin-left: 5px;
}
.brand small {
  font-size: 8px;
  letter-spacing: 3.8px;
  display: block;
  color: #6c7d72;
  margin-top: 3px;
}
.workspace-label {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #98a399;
  padding: 41px 14px 15px;
  display: flex;
  justify-content: space-between;
}
.workspace-label span {
  font-family: monospace;
}
nav {
  display: grid;
  gap: 7px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: #6d7973;
  border-radius: 8px;
  font-size: 13px;
}
nav a.active {
  color: var(--green);
  background: var(--light);
  font-weight: 600;
}
nav a.active:after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-left: auto;
}
nav svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 36px;
}
.mini-card {
  padding: 20px 17px;
  background: linear-gradient(130deg, #eff4e8, #f9fbf4);
  border: 1px solid #e1e9d7;
  border-radius: 10px;
}
.small-orbit {
  display: block;
  font-size: 26px;
  color: var(--green);
  margin-bottom: 14px;
}
.mini-card strong {
  font-size: 12px;
}
.mini-card p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 7px;
}
.mini-card a {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  color: var(--green);
}
.core-status {
  padding: 12px 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #839087;
}
.core-status .mono {
  margin-left: auto;
}
.core-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e0ad50;
}
.core-status i.good {
  background: #47936c;
}
.account {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  text-align: left;
  color: var(--ink);
}
.avatar {
  background: #e8ede4;
  color: #65745c;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 12px;
}
.account strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.account small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.account > span:last-child {
  margin-left: auto;
  color: var(--muted);
}
.main-shell {
  margin-left: 228px;
  min-width: 0;
  width: calc(100% - 228px);
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  background: rgba(255, 255, 255, 0.6);
}
.breadcrumb {
  font-size: 11px;
  color: #859188;
  display: flex;
  align-items: center;
  gap: 14px;
}
.breadcrumb strong {
  font-weight: 400;
  color: #435348;
}
.breadcrumb span {
  color: #b9c2bb;
}
.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mode-pill {
  border: 1px solid #dfe5dc;
  color: #697864;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 10px;
  background: #f8faf5;
}
.mode-pill.demo {
  color: #926927;
  background: #faf4e7;
  border-color: #efdfbf;
}
.icon-button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--muted);
  font-size: 18px;
}
.button {
  padding: 10px 15px;
  border: 1px solid #dbe2db;
  border-radius: 7px;
  background: white;
  color: #3f5447;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
}
.button:hover {
  background: #f4f7f1;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
  box-shadow: 0 2px 2px #126b5612;
}
.button.primary:hover {
  background: #0d5847;
}
.button.small {
  padding: 7px 12px;
  font-size: 11px;
}
.button.danger {
  color: var(--red);
}
.link-button {
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 5px;
  font-size: 11px;
}
.link-button.danger {
  color: var(--red);
}
main {
  padding: 34px 36px 26px;
  flex: 1;
  max-width: 1580px;
  width: 100%;
  margin: 0 auto;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  gap: 16px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #849385;
  font-weight: 600;
  margin-bottom: 9px;
}
.page-title h1 {
  font-size: 25px;
  letter-spacing: -0.6px;
  font-weight: 600;
}
.page-title p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.7;
}
.date-chip {
  font-size: 11px;
  color: #71806f;
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 9px 12px;
}
.intro-banner {
  background: #eef3e9;
  border: 1px solid #dfe8d5;
  border-radius: 9px;
  padding: 12px 16px;
  color: #627258;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 15px;
  line-height: 1.7;
}
.intro-banner strong {
  font-weight: 600;
  color: #48673c;
}
.intro-banner a {
  white-space: nowrap;
  color: var(--green);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 23px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.metric.featured {
  background: #143f34;
  color: white;
  border-color: #143f34;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7f8b81;
  font-size: 11px;
}
.metric-top svg {
  width: 17px;
  height: 17px;
  color: #879c87;
}
.featured .metric-top {
  color: #c5d5c7;
}
.metric-value {
  font-size: 29px;
  font-weight: 550;
  letter-spacing: -0.9px;
  margin: 19px 0 12px;
  line-height: 1;
}
.metric-value small {
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}
.metric-caption {
  font-size: 10px;
  color: #8d978e;
  display: flex;
  gap: 6px;
  align-items: center;
}
.featured .metric-caption {
  color: #a9c5b1;
}
.metric-caption .tag {
  background: #f1f5ed;
  color: #77916a;
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 9px;
}
.featured .tag {
  color: #d4eaa6;
  background: #ffffff13;
}
.metric-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric-foot a {
  color: #dbeeb4;
  font-size: 10px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 23px 0;
  gap: 10px;
}
.panel-heading h2 {
  font-size: 14px;
  font-weight: 600;
}
.panel-heading p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.segments {
  display: flex;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 6px;
  gap: 2px;
}
.segments button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 4px;
}
.segments button.selected {
  background: #edf3e8;
  color: var(--green);
}
.chart-wrap {
  position: relative;
  padding: 24px 22px 10px;
}
.chart-wrap svg {
  width: 100%;
  height: 186px;
}
.chart-legend {
  display: flex;
  gap: 17px;
  justify-content: center;
  font-size: 9px;
  color: #889084;
  margin: 0 0 18px;
}
.chart-legend i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #267b5c;
  margin-right: 5px;
}
.chart-legend i.second {
  background: #d8e9b4;
}
.quick-body {
  padding: 23px;
}
.code-mini {
  background: #f8faf6;
  border: 1px solid #e8ece4;
  border-radius: 7px;
  padding: 12px;
  font-size: 10px;
  color: #6a7b65;
  margin-top: 14px;
  line-height: 1.9;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 9px;
}
.protocols {
  display: flex;
  gap: 6px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.protocols span,
.badge {
  border: 1px solid #e5e9e1;
  background: #f8faf6;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 9px;
  color: #72816c;
}
.quick-card .button {
  width: 100%;
  margin-top: 17px;
}
.recent {
  margin-bottom: 22px;
}
.recent .panel-heading {
  padding-bottom: 19px;
}
.table-scroll {
  overflow: auto;
}
.model-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}
.model-mark {
  width: 29px;
  height: 29px;
  border: 1px solid #e3e7df;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fafbf9;
  color: #547560;
  font-size: 13px;
  font-weight: 600;
}
.model-mark.anthropic {
  color: #a27354;
  background: #f9f3ed;
  border-color: #f0e4d6;
}
.model-mark.deepseek {
  color: #557bab;
  background: #f0f5fb;
  border-color: #e2eaf5;
}
.model-cell small {
  display: block;
  margin-top: 5px;
  color: #98a193;
  font-size: 9px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #548563;
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #70a57f;
}
.status.error {
  color: #b87059;
}
.status.error:before {
  background: #c78974;
}
.status.off {
  color: #8c9388;
}
.status.off:before {
  background: #9da596;
}
.table-secondary {
  display: block;
  font-size: 9px;
  color: #95a08f;
  margin-top: 5px;
}
.number-cell {
  font-family: Consolas, monospace;
  color: #4d5d50;
  font-size: 11px;
}
.empty {
  text-align: center;
  padding: 48px 20px;
  color: #8b988b;
  line-height: 1.9;
}
.empty strong {
  display: block;
  color: #52634f;
  font-size: 14px;
  margin-bottom: 7px;
}
.loading {
  padding: 100px;
  text-align: center;
  color: var(--muted);
}
.loading:before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid #dce7d7;
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.filters {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.input,
select {
  border: 1px solid #dfe5db;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 9px 11px;
  min-height: 36px;
}
.input::placeholder {
  color: #a2ac9b;
}
.search {
  width: 220px;
  padding-left: 13px;
}
.hint {
  font-size: 11px;
  line-height: 1.8;
  color: #8a9683;
}
.hint-box {
  padding: 14px 17px;
  background: #f2f5ed;
  border: 1px solid #e5ebdd;
  border-radius: 8px;
  font-size: 11px;
  color: #748066;
  line-height: 1.9;
  margin: 18px 0;
}
.view-note {
  font-size: 10px;
  color: #95a08f;
  margin-top: 13px;
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.model-card {
  padding: 22px;
}
.model-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
}
.model-head h3 {
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
}
.model-head p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.model-card .model-mark {
  width: 35px;
  height: 35px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8a9483;
  line-height: 2.5;
}
.price-row b {
  font-weight: 500;
  color: #43533e;
}
.model-card .protocols {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.model-card .button {
  margin-top: 18px;
  width: 100%;
  font-size: 10px;
}
.connect-grid {
  display: grid;
  grid-template-columns: 215px 1fr;
  gap: 25px;
}
.connect-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}
.connect-tab {
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  padding: 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.connect-tab.selected {
  border-color: #dce6d5;
  background: #edf3e7;
}
.connect-tab strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.connect-tab small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.connect-panel {
  padding: 28px;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 24px;
}
.step-index {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef3e8;
  color: #608355;
  font-size: 11px;
  flex-shrink: 0;
}
.step h3 {
  font-size: 13px;
  font-weight: 550;
  line-height: 24px;
}
.step p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 6px;
}
.step-content {
  width: 100%;
  min-width: 0;
}
.copy-row {
  border: 1px solid #dfe6da;
  border-radius: 8px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fafbf8;
  margin-top: 11px;
}
.copy-row code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.code-block {
  background: #182e27;
  color: #d2e3cb;
  border: 1px solid #233d31;
  border-radius: 9px;
  padding: 20px;
  margin-top: 12px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 10px;
  color: #91a38c;
}
.welcome {
  max-width: 100%;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 34px 20px;
}
.welcome h1 {
  font-size: 46px;
  line-height: 1.35;
  font-weight: 550;
  letter-spacing: -2px;
}
.welcome h1 em {
  font-style: normal;
  color: var(--green);
}
.welcome p {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  margin-top: 23px;
  max-width: 380px;
}
.welcome-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.welcome-note {
  font-size: 10px;
  color: #93a08c;
  margin-top: 20px;
}
.welcome-art {
  min-height: 340px;
  position: relative;
  display: grid;
  place-items: center;
}
.orbit {
  width: 270px;
  height: 270px;
  border: 1px solid #dce6d4;
  border-radius: 50%;
  position: absolute;
}
.orbit.second {
  width: 185px;
  height: 185px;
}
.orbit.third {
  width: 340px;
  height: 340px;
  border-style: dashed;
  opacity: 0.6;
}
.center-node {
  background: #164b3c;
  color: #d3ecac;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 53px;
  box-shadow: 0 14px 36px #173c3318;
  z-index: 1;
}
.floating-node {
  position: absolute;
  background: white;
  border: 1px solid #e2e7dc;
  border-radius: 9px;
  padding: 12px 17px;
  font-size: 11px;
  box-shadow: 0 5px 15px #314a2b08;
  z-index: 2;
}
.floating-node.one {
  top: 38px;
  left: 9px;
}
.floating-node.two {
  top: 108px;
  right: -5px;
}
.floating-node.three {
  bottom: 40px;
  left: 23px;
}
.floating-node b {
  display: inline-block;
  color: var(--green);
  margin-right: 8px;
}
.floating-node small {
  display: block;
  color: #9aa592;
  margin: 6px 0 0 24px;
  font-size: 9px;
}
.landing-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.landing-bottom h3 {
  font-size: 12px;
  margin: 9px 0;
}
.landing-bottom p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
footer {
  border-top: 1px solid var(--line);
  padding: 18px 36px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #99a091;
}
footer b {
  font-size: 10px;
  font-weight: 500;
  color: #7a8876;
}
footer .muted {
  padding: 0 6px;
}
dialog {
  border: 1px solid #e2e7dc;
  border-radius: 16px;
  box-shadow: 0 25px 100px #173e322b;
  width: 520px;
  max-width: calc(100vw - 30px);
  padding: 0;
  color: var(--ink);
  max-height: 90vh;
}
dialog::backdrop {
  background: #152a2252;
  backdrop-filter: blur(3px);
}
.modal-inner {
  padding: 28px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 9px;
}
.modal-head h2 {
  font-size: 19px;
  font-weight: 550;
}
.modal-head button {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
}
.modal-inner > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.auth-tabs {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  padding: 4px;
  background: var(--light);
  border-radius: 999px;
  width: fit-content;
}
.auth-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.auth-tab.selected {
  background: var(--paper);
  color: var(--green);
  box-shadow: 0 1px 2px #00000014;
}
.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 11px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}
.oauth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.oauth-button {
  flex: 1 1 120px;
}
.verify-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.verify-row .button {
  height: 38px;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .verify-row {
    grid-template-columns: 1fr;
  }
}
.form-grid {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}
label.field {
  display: grid;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
}
.field .input,
.field select {
  width: 100%;
  font-weight: 400;
}
.field small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.7;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.error-message {
  color: #ab5c47;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 13px;
  min-height: 17px;
}
.success-message {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #e7f3ea;
  border: 1px solid #c5dfcb;
  color: #1d3e30;
  font-size: 12px;
  line-height: 1.7;
}
.route-list {
  display: grid;
  gap: 7px;
}
.route-item {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e4e9dd;
  padding: 9px;
  border-radius: 7px;
  background: #f9fbf6;
  font-size: 11px;
}
.route-item .order {
  font-family: monospace;
  font-size: 10px;
  color: #83a074;
}
.route-item button {
  background: white;
  border: 1px solid #e1e6da;
  color: #7b8b72;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: auto;
}
.route-item input {
  accent-color: var(--green);
}
.secret {
  word-break: break-all;
  background: #eff5e7;
  padding: 15px;
  border: 1px dashed #bdcfa8;
  border-radius: 8px;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin-top: 22px;
}
.detail-item span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.detail-item b {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.login-tabs {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.notice-warning {
  background: #faf4e7;
  color: #8b723e;
  border-color: #ecdfbf;
}
.pagination {
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.row-actions {
  display: flex;
  gap: 5px;
}
.demo-label {
  color: #9b7d37;
  font-size: 10px;
}
.flag {
  font-size: 9px;
  background: #f2f4ea;
  color: #8b945d;
  padding: 3px 5px;
  border-radius: 4px;
}
#toast {
  position: fixed;
  inset: auto auto 25px 50%;
  margin: 0;
  transform: translateX(calc(-50% + 80px)) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  background: #1d3e30;
  color: #eff6e8;
  border: 0;
  border-radius: 9px;
  box-shadow: 0 5px 25px #153c2920;
  padding: 13px 22px;
  font-size: 12px;
  z-index: 10000;
  max-width: 85vw;
}
#toast.visible,
#toast:popover-open {
  opacity: 1;
  transform: translateX(calc(-50% + 80px)) translateY(0);
}
#toast:popover-open {
  display: block;
}
.empty-actions {
  margin-top: 20px;
}
.inline-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.divider {
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
.note-list {
  font-size: 11px;
  color: var(--muted);
  line-height: 2;
  padding-left: 16px;
}
@media (min-width: 1550px) {
  main {
    padding-top: 40px;
  }
  .metric {
    padding: 24px;
  }
  .metric-value {
    font-size: 33px;
  }
  .chart-wrap svg {
    height: 215px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 202px;
    min-width: 202px;
  }
  .main-shell {
    margin-left: 202px;
    width: calc(100% - 202px);
  }
  main {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .metrics {
    gap: 11px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 26px;
  }
  .dashboard-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
  }
  .model-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .welcome {
    gap: 20px;
    padding: 20px 0;
  }
  .welcome h1 {
    font-size: 37px;
  }
  .welcome-art {
    transform: scale(0.85);
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 76px;
    min-width: 76px;
    padding: 24px 12px;
  }
  .main-shell {
    margin-left: 76px;
    width: calc(100% - 76px);
  }
  .brand {
    padding: 0;
    justify-content: center;
  }
  .brand > span:last-child,
  .workspace-label,
  .mini-card,
  .core-status,
  .account,
  .nav-label {
    display: none;
  }
  nav {
    margin-top: 39px;
  }
  nav a {
    padding: 13px;
    justify-content: center;
  }
  nav a.active:after {
    display: none;
  }
  nav svg {
    width: 19px;
    height: 19px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .welcome {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 38px 5px;
  }
  .welcome-art {
    display: none;
  }
  .welcome h1 {
    font-size: 43px;
  }
  .landing-bottom {
    margin-top: 20px;
  }
  .connect-grid {
    grid-template-columns: 1fr;
  }
  .connect-nav {
    display: flex;
    flex-wrap: wrap;
  }
  .connect-tab {
    padding: 10px;
    flex: 1;
    min-width: 130px;
  }
  .page-title h1 {
    font-size: 23px;
  }
  .topbar {
    height: 64px;
  }
  .date-chip {
    font-size: 10px;
    padding: 7px;
  }
  .quick-card {
    display: none;
  }
}
@media (max-width: 560px) {
  .sidebar {
    width: 60px;
    min-width: 60px;
    padding: 20px 8px;
  }
  .brand-symbol {
    width: 34px;
    height: 36px;
    border-radius: 10px;
    font-size: 29px;
  }
  nav a {
    padding: 12px 9px;
  }
  .main-shell {
    margin-left: 60px;
    width: calc(100% - 60px);
  }
  main {
    padding: 24px 15px;
  }
  .topbar {
    padding: 0 15px;
    height: 59px;
  }
  .breadcrumb {
    gap: 7px;
    font-size: 10px;
  }
  .top-actions {
    gap: 7px;
  }
  .mode-pill {
    font-size: 9px;
    padding: 4px 5px;
  }
  .top-actions .button {
    padding: 6px 8px;
    font-size: 10px;
  }
  .top-actions .icon-button {
    display: none;
  }
  .page-title {
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .page-title p {
    font-size: 11px;
  }
  .date-chip {
    display: none;
  }
  .page-title .button {
    padding: 9px 10px;
    font-size: 10px;
  }
  .intro-banner {
    font-size: 10px;
    margin-bottom: 16px;
  }
  .intro-banner a {
    display: none;
  }
  .metric {
    padding: 14px;
    border-radius: 10px;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric-value {
    font-size: 25px;
    margin: 17px 0 12px;
  }
  .metric-caption {
    font-size: 9px;
    gap: 3px;
  }
  .metric-caption .tag {
    font-size: 8px;
  }
  .metrics {
    gap: 10px;
    margin-bottom: 16px;
  }
  .dashboard-grid {
    margin-bottom: 16px;
  }
  .panel-heading {
    padding: 17px 16px 0;
  }
  .panel-heading h2 {
    font-size: 13px;
  }
  .chart-wrap {
    padding: 20px 12px 7px;
  }
  .chart-wrap svg {
    height: 153px;
  }
  .chart-legend {
    font-size: 8px;
    gap: 12px;
  }
  footer {
    padding: 17px 15px;
    font-size: 8px;
  }
  footer > span:last-child {
    display: none;
  }
  .model-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search {
    width: 100%;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .filters .search {
    grid-column: 1/-1;
  }
  .landing-bottom {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .welcome h1 {
    font-size: 36px;
  }
  .welcome p {
    font-size: 12px;
  }
  .welcome-actions {
    gap: 8px;
  }
  .welcome-actions .button {
    font-size: 11px;
  }
  .connect-panel {
    padding: 20px 15px;
  }
  .connect-tab {
    min-width: 100px;
    gap: 6px;
  }
  .connect-tab small {
    font-size: 9px;
  }
  .connect-tab .model-mark {
    display: none;
  }
  #toast {
    transform: translateX(-50%) translateY(20px);
    font-size: 11px;
  }
  #toast.visible,
  #toast:popover-open {
    transform: translateX(-50%) translateY(0);
  }
  .modal-inner {
    padding: 22px;
  }
  .detail-grid {
    gap: 15px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .row-actions {
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.wallet-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}
.topup-balance {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid #e4eadc;
  background: linear-gradient(180deg, #f7faf2, #eef5e8);
}
.topup-balance span {
  color: #6d7a68;
  font-size: 13px;
}
.topup-balance strong {
  font-size: 28px;
  letter-spacing: -0.03em;
  color: #1d4f3d;
}
.topup-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.topup-chip {
  appearance: none;
  border: 1px solid #d7e0d0;
  background: #fff;
  padding: 14px 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.topup-chip strong {
  display: block;
  font-size: 20px;
  color: #1f3d31;
}
.topup-chip small {
  color: #8a9684;
}
.topup-chip:hover {
  border-color: #377e5b;
}
.topup-chip.selected {
  border-color: #377e5b;
  background: #eef6ea;
  box-shadow: inset 0 0 0 1px #377e5b;
}
.topup-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 12px;
  padding-top: 14px;
  border-top: 1px dashed #d9e2d2;
}
.topup-summary b {
  font-size: 24px;
  color: #126b56;
}
.topup-actions {
  margin-bottom: 14px;
}
.topup-actions .button {
  width: 100%;
}
.pay-qr {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin: 8px 0 14px;
  border: 1px solid #e4eadc;
  background: #fbfcf8;
}
.pay-qr img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}
.pay-qr.placeholder {
  color: #6d7a68;
  text-align: center;
  gap: 6px;
}
.pay-qr-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #07c160;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pay-status {
  text-align: center;
  margin-bottom: 12px;
  color: #2f4a3d;
  font-weight: 600;
}
@media (max-width: 960px) {
  .wallet-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .topup-amounts {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro-banner button {
    display: none;
  }
  .metric-foot > a {
    display: none;
  }
  .featured .metric-caption {
    flex-wrap: wrap;
  }
  .metric-caption {
    line-height: 1.5;
  }
}
