:root {
  --bg: #f6f8fb;
  --paper: #fff;
  --ink: #1b263c;
  --muted: #7b8596;
  --line: #e9edf3;
  --blue: #365bdf;
  --blue-bg: #eef2ff;
  --green: #168a74;
  --green-bg: #eaf7f2;
  --amber: #a86c15;
  --red: #c34c4c;
  --shadow: 0 12px 40px #2436590c;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:disabled[title] {
  cursor: not-allowed;
}
.key-credit {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}
.key-credit progress {
  width: 170px;
  max-width: 100%;
  height: 8px;
  accent-color: var(--blue);
}
.key-row > div:first-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.key-row .actions {
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: flex-end;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 246px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--paper);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 32px 20px 20px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.45px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.6px;
  margin-top: 5px;
  font-weight: 500;
}
.nav-label {
  font-size: 10px;
  color: #9aa4b4;
  letter-spacing: 1.2px;
  margin: 46px 16px 14px;
}
nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 9px;
  color: #69768c;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
}
.nav-item:hover {
  background: #f7f8fc;
}
.nav-item.active {
  background: var(--blue-bg);
  color: var(--blue);
  font-weight: 650;
}
.nav-icon {
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.environment {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  color: #768399;
}
.version {
  margin-left: auto;
  font-size: 10px;
  color: #a0a9b8;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #26a58b;
  border-radius: 50%;
  flex-shrink: 0;
}
.account-button {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  text-align: left;
  padding: 4px 9px;
}
.avatar {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9eefb;
  color: #4964a5;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.avatar.small {
  width: 31px;
  height: 31px;
  font-size: 11px;
}
.account-button strong {
  display: block;
  font-size: 12px;
}
.account-button small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 10px;
}
.account-dots {
  margin-left: auto;
  color: var(--muted);
}
.main-wrap {
  margin-left: 246px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 76px;
  background: #ffffffd9;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumb {
  font-size: 11px;
  color: #9099aa;
  display: flex;
  align-items: center;
  gap: 14px;
}
.breadcrumb span {
  color: #d0d7e3;
}
.breadcrumb strong {
  font-weight: 500;
  color: #59677e;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.connection {
  font-size: 10px;
  color: #7f8a9d;
  display: flex;
  gap: 7px;
  align-items: center;
}
.icon-button {
  border: 0;
  background: transparent;
  color: #7b879b;
  font-size: 22px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.icon-button:hover {
  background: #edf1f9;
}
.mobile-menu {
  display: none;
}
main {
  max-width: 1560px;
  margin: auto;
  padding: 38px 42px 28px;
  min-height: calc(100vh - 132px);
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #8b98af;
}
.page-head h1 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin: 9px 0 9px;
  font-weight: 650;
}
.subtitle {
  color: #8791a3;
  font-size: 11px;
  margin: 0;
  line-height: 1.8;
}
.page-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 12px;
}
.button {
  border: 1px solid var(--line);
  background: #fff;
  color: #59667c;
  min-height: 37px;
  padding: 9px 15px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.button:hover {
  border-color: #b6c3df;
  background: #fafbff;
}
.button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: 0 4px 10px #365bdf15;
}
.button.primary:hover {
  background: #294bc5;
}
.button.danger {
  color: var(--red);
}
.button.tiny {
  font-size: 10px;
  padding: 6px 10px;
  min-height: 29px;
}
.button.link {
  border: 0;
  color: var(--blue);
  padding: 0;
  background: none;
  min-height: 24px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 22px 23px;
  position: relative;
}
.stat-label {
  color: #8791a3;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-number {
  font-size: 31px;
  font-weight: 620;
  letter-spacing: -1px;
  margin: 15px 0 12px;
  font-variant-numeric: tabular-nums;
}
.stat-note {
  font-size: 10px;
  color: #9aa3b2;
  line-height: 1.5;
}
.stat-symbol {
  color: var(--blue);
  background: #f1f4ff;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 4px 7px;
  background: #f0f3f8;
  color: #7d889b;
  font-size: 9px;
  font-weight: 550;
  white-space: nowrap;
}
.badge.green {
  background: var(--green-bg);
  color: var(--green);
}
.badge.blue {
  background: var(--blue-bg);
  color: var(--blue);
}
.badge.amber {
  background: #fff6e6;
  color: var(--amber);
}
.badge.red {
  background: #fff0f0;
  color: var(--red);
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.grid-halves {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 22px;
}
.grid-main > .card,
.grid-halves > .card {
  margin-bottom: 0;
}
.card-head {
  padding: 21px 23px;
  border-bottom: 1px solid #f1f3f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-head h2 {
  font-size: 13px;
  letter-spacing: -0.15px;
  margin: 0;
  font-weight: 620;
}
.card-head small {
  color: var(--muted);
  font-size: 10px;
}
.card-body {
  padding: 23px;
}
.chart {
  width: 100%;
  height: 190px;
  display: block;
}
.chart-container {
  padding: 8px 0;
}
.chart-foot {
  display: flex;
  justify-content: space-between;
  color: #a7afbc;
  font-size: 9px;
  padding: 0 0 5px;
}
.legend {
  font-size: 10px;
  color: #8b95a8;
  display: flex;
  gap: 7px;
  align-items: center;
}
.legend-dot {
  width: 6px;
  height: 6px;
  background: #6281ec;
  border-radius: 50%;
}
.empty {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
}
.empty-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: #f3f5fb;
  color: #a1b0d1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  font-size: 20px;
}
.empty h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 9px;
}
.empty p {
  font-size: 10px;
  color: #99a3b5;
  max-width: 320px;
  line-height: 1.9;
  margin: 0 0 15px;
}
.setup-card {
  background: linear-gradient(125deg, #f1f4ff, #fbfcff);
  border-color: #e6ebff;
}
.setup-illustration {
  margin-bottom: 18px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #e5ebff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.setup-card h3 {
  font-size: 14px;
  margin: 0 0 10px;
}
.setup-card p {
  font-size: 11px;
  line-height: 1.9;
  color: #8491aa;
  margin-bottom: 23px;
}
.setup-step {
  display: flex;
  gap: 12px;
  margin: 12px 0;
  font-size: 11px;
  color: #75829c;
}
.step-number {
  border: 1px solid #d4ddf6;
  border-radius: 50%;
  font-size: 9px;
  width: 19px;
  height: 19px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #7286ba;
}
.info-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #f1f3f7;
  color: #8d97aa;
}
.info-line:last-child {
  border: 0;
}
.info-line strong {
  color: #65738d;
  font-size: 10px;
  font-weight: 500;
}
.notice {
  padding: 13px 16px;
  border: 1px solid #e7ecf7;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.9;
  color: #8490a6;
  background: #f8faff;
  margin: 0 0 22px;
}
.notice.amber {
  background: #fffbf2;
  border-color: #f5e7c8;
  color: #a1814b;
}
.notice.error {
  background: #fff3f3;
  border-color: #f7d8d8;
  color: #bb5555;
}
.main-footer {
  padding: 17px 42px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #b1b8c5;
  border-top: 1px solid var(--line);
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 11px;
}
th {
  color: #99a3b5;
  font-size: 10px;
  font-weight: 500;
  background: #fcfdff;
  padding: 14px 23px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 23px;
  border-bottom: 1px solid #f1f3f7;
  color: #738098;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td.strong {
  font-weight: 550;
  color: #4a5b77;
}
td.mono {
  font-size: 10px;
}
.mono {
  font-family: "SFMono-Regular", Consolas, monospace;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: end;
}
.filters label {
  font-size: 10px;
  display: grid;
  gap: 6px;
  color: #8a95aa;
}
.filters input,
.filters select {
  min-width: 120px;
  max-width: 200px;
}
.input,
input,
select,
textarea {
  border: 1px solid #e1e7f1;
  border-radius: 7px;
  background: #fff;
  color: #4b5e7d;
  padding: 10px 12px;
  min-height: 38px;
  font-size: 12px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #d8e1fc;
  border-color: #94aaf1;
}
input::placeholder,
textarea::placeholder {
  color: #adb7c8;
}
input[type="checkbox"] {
  min-height: initial;
  accent-color: var(--blue);
}
input[type="file"] {
  width: 100%;
  font-size: 11px;
}
input[type="month"] {
  font-size: 11px;
  padding: 9px 11px;
  min-height: 37px;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.form {
  display: grid;
  gap: 17px;
}
.form label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  font-weight: 550;
  color: #65718a;
}
.form .hint {
  font-size: 10px;
  color: #99a3b5;
  line-height: 1.8;
  font-weight: 400;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.form-error {
  font-size: 11px;
  color: var(--red);
  line-height: 1.8;
}
.form-error:empty {
  display: none;
}
.checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 9px !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 1.8;
}
.provider-card {
  padding: 23px;
}
.provider-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.provider-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}
.provider-info {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  color: #8793aa;
  font-size: 10px;
  margin-top: 12px;
  line-height: 1.7;
}
.provider-info code {
  font-size: 10px;
  color: #657696;
}
.key-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 16px 0 0;
  margin-top: 16px;
}
.key-row strong {
  font-size: 11px;
  font-weight: 550;
}
.key-row p {
  color: #929db0;
  font-size: 10px;
  margin-bottom: 0;
}
.keys-empty {
  color: #9ba6b9;
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.detail-grid {
  display: grid;
  gap: 0;
}
.detail-grid dt {
  font-size: 10px;
  color: #9ba6b9;
}
.detail-grid dd {
  font-size: 12px;
  margin: 7px 0 18px;
  word-break: break-all;
}
.json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.9;
  max-height: 420px;
  overflow: auto;
  background: #f8faff;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
}
.loading {
  color: #9aa6bc;
  text-align: center;
  padding: 100px;
  font-size: 12px;
}
.error-state {
  margin: 30px auto;
  padding: 35px;
  background: #fff;
  border: 1px solid #f3d3d3;
  border-radius: 12px;
  max-width: 600px;
  font-size: 12px;
  line-height: 2;
  color: #a45555;
}
.small-text {
  font-size: 10px;
  color: #939fb2;
  line-height: 1.9;
}
.section-title {
  font-size: 13px;
  margin: 28px 0 16px;
}
dialog {
  border: 1px solid #e4e9f2;
  border-radius: 14px;
  padding: 25px;
  width: min(570px, calc(100vw - 32px));
  max-height: 90vh;
  box-shadow: 0 25px 100px #172d5940;
  color: var(--ink);
}
dialog::backdrop {
  background: #182c5266;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}
.dialog-head h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}
.toasts {
  position: fixed;
  right: 25px;
  bottom: 25px;
  display: grid;
  gap: 10px;
  z-index: 100;
}
.toast {
  padding: 14px 20px;
  background: #233a60;
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 11px;
  max-width: 410px;
  line-height: 1.8;
}
.toast.error {
  background: #98484e;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.auth-panel {
  padding: 48px 10%;
  position: relative;
  display: flex;
  flex-direction: column;
}
.auth-content {
  margin: auto 0;
  padding: 70px 0;
  max-width: 360px;
  width: 100%;
  align-self: center;
}
.auth-content h1 {
  font-size: 27px;
  font-weight: 620;
  letter-spacing: -1px;
  margin: 0 0 13px;
}
.auth-content > .subtitle {
  margin-bottom: 32px;
}
.auth-content .form {
  gap: 20px;
}
.auth-content .button {
  min-height: 42px;
  font-size: 12px;
}
.auth-foot {
  color: #a9b2c2;
  font-size: 9px;
  letter-spacing: 0.4px;
  margin: 20px 0 0;
  align-self: center;
}
.auth-aside {
  position: relative;
  overflow: hidden;
  padding: 105px 14%;
  background: #eef2fc;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-aside h2 {
  font-size: 34px;
  line-height: 1.65;
  letter-spacing: -1.2px;
  font-weight: 550;
  margin: 25px 0 14px;
  color: #304c85;
}
.auth-aside p {
  color: #8a9cbc;
  line-height: 2.2;
  font-size: 11px;
}
.aside-note {
  margin-top: 60px;
  font-size: 10px;
  color: #93a3c0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.wave-art {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 110px;
  margin-top: 50px;
}
.wave-art i {
  width: 5px;
  border-radius: 5px;
  background: #c3d1f3;
  height: 24px;
}
.wave-art i:nth-child(3n) {
  height: 58px;
  background: #b3c4ee;
}
.wave-art i:nth-child(4n) {
  height: 92px;
  background: #9fb6ef;
}
.wave-art i:nth-child(5n) {
  height: 45px;
}
.wave-art i:nth-child(7n) {
  height: 75px;
  background: #7c9be8;
}
.secret-box {
  font-size: 16px;
  letter-spacing: 1.7px;
  line-height: 1.8;
  padding: 17px;
  border-radius: 8px;
  background: #f0f4ff;
  color: #526eac;
  overflow-wrap: anywhere;
}
.metric-hint {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: #a1aab9;
  margin-top: 18px;
}
.subtle {
  color: #a2adc0;
}
.signout {
  width: 100%;
}
.report-warning {
  color: var(--amber);
}
@media (min-width: 1600px) {
  .sidebar {
    width: 265px;
    padding-left: 25px;
    padding-right: 25px;
  }
  .main-wrap {
    margin-left: 265px;
  }
  .topbar {
    padding: 0 52px;
  }
  main {
    padding: 45px 52px;
  }
  .stats {
    gap: 24px;
  }
  .stat {
    padding: 25px 28px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 220px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .main-wrap {
    margin-left: 220px;
  }
  .brand {
    font-size: 14px;
  }
  main {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  .stat-number {
    font-size: 27px;
  }
  .grid-main {
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
  }
  .grid-halves {
    gap: 16px;
  }
  .main-footer {
    padding: 17px 25px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: var(--shadow);
    width: 246px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-wrap {
    margin-left: 0;
  }
  .mobile-menu {
    display: flex;
  }
  .topbar {
    height: 64px;
  }
  .topbar-right {
    margin-left: auto;
    gap: 13px;
  }
  .breadcrumb {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-main,
  .grid-halves {
    grid-template-columns: 1fr;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .page-actions {
    padding-top: 5px;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    display: none;
  }
  .auth-panel {
    min-height: 100vh;
    padding: 34px 8%;
  }
  .auth-content {
    padding: 60px 0;
  }
  .main-footer span:last-child {
    display: none;
  }
}
@media (max-width: 480px) {
  main {
    padding: 25px 18px;
  }
  .topbar {
    padding: 0 18px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat-number {
    font-size: 25px;
    margin: 13px 0 10px;
  }
  .page-head {
    flex-wrap: wrap;
    gap: 6px;
  }
  .page-actions {
    padding-top: 4px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .provider-header {
    flex-wrap: wrap;
  }
  .key-row {
    flex-wrap: wrap;
  }
  .connection {
    font-size: 9px;
  }
  .stat-note {
    font-size: 9px;
  }
  .card-head,
  .card-body {
    padding: 18px;
  }
  .main-footer {
    padding: 17px 18px;
  }
}
