﻿:root {
  --bg: #f3f5f7;
  --panel: #ffffff;
  --line: #d9e1e8;
  --ink: #1f2937;
  --muted: #6b7280;
  --brand: #0f766e;
  --brand-soft: #e7f6f3;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --warn: #b54708;
  --warn-soft: #fff4e8;
  --ok-soft: #ecfdf3;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15,118,110,.10), transparent 26%),
    radial-gradient(circle at right top, rgba(180,83,9,.08), transparent 24%),
    linear-gradient(180deg, #f7f8fa 0%, #eef2f6 100%);
}
a { color: var(--brand); text-decoration: none; }
.wrap { width: min(1360px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 40px; }
.hidden { display: none !important; }
.card {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.login-shell {
  min-height: calc(100vh - 56px);
  display: block;
  padding: 28px 0 44px;
}
.login-stage {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.login-stage-head {
  display: grid;
  gap: 10px;
  max-width: 760px;
}
.login-stage-head h1 {
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -.03em;
}
.login-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.96fr) minmax(0, 0.96fr);
  gap: 18px;
  align-items: start;
}
.login-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.login-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
h1, h2, h3 { margin: 0; color: var(--ink); }
.subtext {
  margin: 4px 0 0;
  color: #667085;
  line-height: 1.75;
  max-width: 700px;
}
.login-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.login-card-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15,118,110,.10);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.login-card-main {
  border-color: #dce7e4;
  background: linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(246,250,249,.98) 100%);
}
.login-card-main h2,
.login-card-guide h2,
.login-card-features h2,
.login-card-help h2 {
  margin-top: 12px;
  font-size: 22px;
  letter-spacing: -.02em;
}
.login-card-desc {
  margin: 8px 0 0;
  color: #667085;
  line-height: 1.75;
}
.field { display: grid; gap: 8px; }
.field label { color: var(--ink); font-weight: 700; font-size: 14px; }
.field small { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
.login-form { display: grid; gap: 16px; margin-top: 24px; }
.login-card input {
  border-radius: 10px;
  background: #f8fafc;
  border-color: #d9e2ec;
  padding: 9px 12px;
  box-shadow: none;
}
.login-card input:focus {
  outline: none;
  border-color: #8bc9c2;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}
.login-tip {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(251,252,253,.88);
  border: 1px solid #e4ebf2;
  color: var(--muted);
  line-height: 1.75;
  font-size: 13px;
}
.login-help-path {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed #dce5ee;
  color: #355063;
  font-weight: 700;
}
.login-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #d9e2ea;
}
.login-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.login-card-main .actions,
.login-card-guide .actions,
.login-card-help .actions {
  min-height: 42px;
}
button {
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}
button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
button.danger { background: var(--danger); }
button:disabled { opacity: .6; cursor: not-allowed; }
.status { min-height: 24px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.status.error { color: var(--danger); }
.status.success { color: var(--brand); }
.login-actions {
  margin-top: auto;
  padding-top: 18px;
  align-items: center;
}
#loginBtn {
  min-width: 148px;
  border-radius: 14px;
  padding: 13px 18px;
  background: linear-gradient(135deg, #0f766e 0%, #0c5f59 100%);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}
.login-card .chip {
  border-radius: 14px;
  background: #fff;
}
.login-chip-secondary,
.login-chip-primary {
  min-height: 38px;
  padding: 11px 16px;
  font-weight: 700;
}
.login-chip-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
}
.login-chip-secondary {
  color: #355063;
  border-color: #dbe5ee;
  background: #fff;
}
.login-card-guide {
  background: linear-gradient(180deg, rgba(249,252,251,.98) 0%, rgba(255,255,255,.98) 100%);
}
.login-steps {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.login-step {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid #e2ebe8;
  background: rgba(255,255,255,.82);
}
.login-step strong {
  font-size: 14px;
}
.login-step span {
  color: var(--muted);
  line-height: 1.75;
  font-size: 13px;
}
.login-card-features {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.98) 100%);
}
.login-card-help {
  background: linear-gradient(180deg, rgba(251,252,255,.98) 0%, rgba(255,255,255,.98) 100%);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.feature-item {
  display: grid;
  gap: 8px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid #e5ecf3;
  background: #fbfcfe;
}
.feature-item strong {
  font-size: 14px;
}
.feature-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.feature-item-wide {
  grid-column: 1 / -1;
}
.login-faq-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.login-faq-item {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid #e5ecf3;
  background: #fbfcfe;
}
.login-faq-item strong {
  font-size: 14px;
  line-height: 1.6;
}
.login-faq-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.login-card-guide .actions,
.login-card-help .actions {
  margin-top: auto;
  padding-top: 18px;
}
.console-shell {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.side-card { position: sticky; top: 18px; padding: 18px; }
.side-top { display: grid; gap: 14px; }
.side-title { font-size: 18px; }
.nav-sections { display: grid; gap: 16px; margin-top: 16px; }
.nav-section { display: grid; gap: 8px; }
.nav-section-tools {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed #d8e2ea;
}
.nav-section-title {
  padding-left: 4px;
  color: #738092;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.nav-list { display: grid; gap: 8px; }
.nav-list button {
  width: 100%;
  text-align: left;
  border-radius: 14px;
  padding: 10px 14px;
  background: #fbfcfd;
  color: var(--ink);
  border: 1px solid #e3eaf1;
}
.nav-list button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.nav-link {
  display: block;
  width: 100%;
  border-radius: 14px;
  padding: 10px 14px;
  background: #f7fafc;
  color: #41566d;
  border: 1px solid #e3eaf1;
  font-weight: 700;
}
.nav-link:hover {
  border-color: #c8d6e2;
  background: #fff;
}
.main-shell { display: grid; gap: 18px; }
.toolbar-card, .page-card { padding: 22px; }
.identity-layout {
  display: grid;
  gap: 16px;
}
.identity-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.identity-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.identity-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.identity-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.identity-actions {
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
.toolbar-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.toolbar-meta-group {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #e6edf4;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f8fafc 100%);
}
.toolbar-meta-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
}
.toolbar-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e6edf4;
  color: var(--muted);
  font-size: 13px;
}
.chip-action {
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 0 0 0 6px;
  border-left: 1px solid #d9e4ee;
  border-radius: 0;
  font-size: 12px;
  line-height: 1;
  box-shadow: none;
}
.chip-action:hover {
  background: transparent;
  color: var(--brand-dark);
  transform: none;
  box-shadow: none;
}
.chip-status.ok {
  color: #027a48;
  background: #ecfdf3;
  border-color: #86efac;
}
.chip-status.warn {
  color: #b54708;
  background: #fff4e8;
  border-color: #fdba74;
}
.chip-status.err {
  color: #b42318;
  background: #fef3f2;
  border-color: #fda29b;
}
.chip-status.info {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: #bfd8ff;
}
.section-title { font-size: 22px; margin-bottom: 8px; }
.section-desc { color: var(--muted); margin-bottom: 18px; line-height: 1.8; }
.section-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.billing-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.info-box {
  padding: 16px 18px;
  border: 1px solid #e7edf3;
  border-radius: 18px;
  background: #fafcfe;
}
.info-box strong { display: block; margin-bottom: 8px; font-size: 14px; }
.info-box .value { font-size: 18px; font-weight: 700; color: var(--ink); }
.info-box.status-box {
  position: relative;
  overflow: hidden;
}
.info-box.status-box::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 18px 0 0 18px;
}
.info-box.status-ok {
  background: linear-gradient(180deg, #f5fdf8 0%, #edf9f1 100%);
  border-color: #b7e3c6;
}
.info-box.status-ok::after { background: #12b76a; }
.info-box.status-warn {
  background: linear-gradient(180deg, #fff9f2 0%, #fff2df 100%);
  border-color: #f0c98b;
}
.info-box.status-warn::after { background: #f79009; }
.info-box.status-err {
  background: linear-gradient(180deg, #fff6f5 0%, #feecea 100%);
  border-color: #f1b4ad;
}
.info-box.status-err::after { background: #f04438; }
.muted { color: var(--muted); }
.endpoint-list { display: grid; gap: 16px; }
.endpoint-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fcfdfd;
  padding: 18px;
}
.endpoint-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.event-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e7edf3;
  color: var(--ink);
}
.event-option input { width: auto; margin: 0; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
th { background: #f8fafc; color: var(--ink); }
tr:last-child td { border-bottom: none; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge.ok { background: var(--ok-soft); color: #027a48; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--brand-soft); color: var(--brand); }
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.status-pill.ok {
  color: #027a48;
  background: #ecfdf3;
  border-color: #86efac;
  box-shadow: 0 8px 18px rgba(2, 122, 72, 0.12);
}
.status-pill.warn {
  color: #b54708;
  background: #fff4e8;
  border-color: #fdba74;
  box-shadow: 0 8px 18px rgba(181, 71, 8, 0.12);
}
.status-pill.err {
  color: #b42318;
  background: #fef3f2;
  border-color: #fda29b;
  box-shadow: 0 8px 18px rgba(180, 35, 24, 0.12);
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.detail-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  scroll-margin-top: 24px;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.detail-panel-flash {
  border-color: rgba(18, 136, 126, 0.34);
  background: linear-gradient(180deg, rgba(18, 136, 126, 0.08), #fff 42%);
  box-shadow: 0 16px 34px rgba(18, 136, 126, 0.10);
}
.detail-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.detail-panel-head h3 {
  margin: 0;
  font-size: 20px;
}
.detail-panel-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.detail-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.detail-grid .field { gap: 4px; }
.test-result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.test-result-card {
  padding: 16px 18px;
  border: 1px solid #e6edf4;
  border-radius: 16px;
  background: #fbfcfe;
}
.test-result-card.wide {
  grid-column: 1 / -1;
}
.test-result-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}
.test-result-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}
.test-result-url {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.code-box {
  margin-top: 12px;
  border-radius: 16px;
  background: #111827;
  color: #f9fafb;
  padding: 14px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.copy-code-wrap {
  position: relative;
  margin-top: 12px;
}
.copy-code-wrap .code-box,
.copy-code-wrap .debug-result-box {
  margin-top: 0;
  padding-right: 92px;
}
.copy-code-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 62px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #f9fafb;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(6px);
  box-shadow: none;
}
.copy-code-btn::before,
.copy-action-btn::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M5.5 1.5A1.5 1.5 0 0 0 4 3v1H3A1.5 1.5 0 0 0 1.5 5.5v7A1.5 1.5 0 0 0 3 14h5.5A1.5 1.5 0 0 0 10 12.5v-1h1a1.5 1.5 0 0 0 1.5-1.5V3A1.5 1.5 0 0 0 11 1.5zm0 1H11a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1v-5A1.5 1.5 0 0 0 8.5 4H5V3a.5.5 0 0 1 .5-.5m-2.5 3h5.5a.5.5 0 0 1 .5.5v6.5a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 3 5.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M5.5 1.5A1.5 1.5 0 0 0 4 3v1H3A1.5 1.5 0 0 0 1.5 5.5v7A1.5 1.5 0 0 0 3 14h5.5A1.5 1.5 0 0 0 10 12.5v-1h1a1.5 1.5 0 0 0 1.5-1.5V3A1.5 1.5 0 0 0 11 1.5zm0 1H11a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1v-5A1.5 1.5 0 0 0 8.5 4H5V3a.5.5 0 0 1 .5-.5m-2.5 3h5.5a.5.5 0 0 1 .5.5v6.5a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 3 5.5'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.copy-code-btn.copied {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(110, 231, 183, 0.6);
  color: #d1fae5;
}
.copy-code-btn.error {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(252, 165, 165, 0.6);
  color: #fee2e2;
}
.copy-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.console-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  min-width: 180px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.94);
  color: #f9fafb;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.26);
  font-size: 13px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.console-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.console-toast.success {
  background: rgba(6, 78, 59, 0.96);
}
.console-toast.error {
  background: rgba(127, 29, 29, 0.96);
}
.sub-card { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.test-json-editor {
  min-height: 260px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.7;
  padding: 14px 16px;
  background: #fbfcfe;
}
.truncate {
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.summary-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.list-filter-bar {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.list-filter-field {
  width: min(240px, 100%);
}
.list-search-field {
  width: min(320px, 100%);
}
.keyword-mark {
  padding: 0 4px;
  border-radius: 6px;
  background: #fff1bf;
  color: #7a4b00;
  font-weight: 700;
}
.callback-endpoint-stack {
  display: grid;
  gap: 10px;
  min-width: 320px;
}
.callback-endpoint-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e6edf4;
}
.callback-endpoint-url {
  line-height: 1.7;
  word-break: break-word;
  color: var(--ink);
}
.callback-endpoint-events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.callback-event-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  color: #334155;
  font-size: 12px;
  line-height: 1;
}
.cell-stack {
  display: grid;
  gap: 8px;
  min-width: 220px;
}
.cell-stack-item {
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e6edf4;
  line-height: 1.7;
  word-break: break-word;
}
.td-note {
  margin-top: 6px;
  font-size: 12px;
}
.scope-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #e6edf4;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f8fafc 100%);
}
.scope-title {
  font-size: 18px;
}
.scope-desc {
  margin-top: 8px;
  line-height: 1.8;
}
.scope-field {
  min-width: 0;
}
.overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 18px;
}
.overview-grid {
  display: grid;
  gap: 14px;
}
.overview-grid-primary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
}
.overview-grid-secondary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.overview-grid .info-box .value {
  font-size: 16px;
}
.info-banner {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e6edf4;
  color: var(--ink);
  line-height: 1.8;
}
.info-banner.warn {
  background: #fff8ef;
  border-color: #f5c786;
  color: #9a3412;
}
.info-banner.err {
  background: #fff5f5;
  border-color: #f1b4ad;
  color: #b42318;
}
.info-banner.ok {
  background: #f4fbf7;
  border-color: #b7e3c6;
  color: #027a48;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
}
.modal-card-sm {
  width: min(520px, 100%);
}
.recharge-modal-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.recharge-modal-card .modal-head {
  flex: 0 0 auto;
  position: static;
  top: auto;
  margin: 0;
}
.recharge-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 24px 18px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: -24px;
  z-index: 2;
  margin: -24px -24px 0;
  padding: 24px 24px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
  border-bottom: 1px solid #e6edf4;
  backdrop-filter: blur(6px);
}
.recharge-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.recharge-plan-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9e2ec;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbfd 0%, #fff 100%);
  padding: 12px 14px;
  text-align: left;
  color: var(--ink);
}
.recharge-plan-card.active {
  border-color: var(--brand);
  background: linear-gradient(180deg, #edf9f6 0%, #fff 100%);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.12);
}
.recharge-plan-card strong {
  display: block;
  font-size: 15px;
}
.recharge-plan-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}
.recharge-plan-card small span,
.recharge-plan-card small b {
  display: block;
}
.recharge-plan-card small b {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  word-break: keep-all;
  white-space: nowrap;
}
.recharge-plan-card .plan-kicker {
  display: inline-flex;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
}
.recharge-plan-card .plan-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #b42318 0%, #dc2626 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(180, 35, 24, 0.22);
}
.recharge-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.recharge-preview-item,
.recharge-preview-total {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e6edf4;
  background: rgba(255, 255, 255, 0.76);
}
.recharge-preview-item strong,
.recharge-preview-total strong {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}
.recharge-preview-item span {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.recharge-preview-total {
  border-color: rgba(15, 118, 110, 0.18);
  background: linear-gradient(135deg, rgba(15,118,110,0.10) 0%, rgba(255,255,255,0.96) 100%);
}
.recharge-preview-total span {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
}
.recharge-preview-note {
  margin-top: 14px;
  color: var(--muted);
}
.recharge-submit-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid #e6edf4;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, #ffffff 100%);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
}
.recharge-submit-copy {
  min-width: 0;
}
.recharge-submit-copy span,
.recharge-submit-copy strong {
  display: block;
}
.recharge-submit-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.recharge-submit-copy strong {
  margin-top: 3px;
  color: var(--brand);
  font-size: 22px;
  line-height: 1.2;
}
.recharge-submit-copy .status {
  min-height: 18px;
  margin-top: 4px;
  font-size: 12px;
}
.recharge-pay-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dce8e3;
  background: linear-gradient(180deg, #f6fbfa 0%, #ffffff 100%);
}
.recharge-pay-qr-wrap {
  display: flex;
  justify-content: center;
}
.recharge-pay-qr-image {
  width: 220px;
  height: 220px;
  border-radius: 18px;
  border: 1px solid #d8e5e0;
  background: #fff;
  padding: 12px;
  object-fit: contain;
}
.recharge-pay-meta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: #355063;
  line-height: 1.7;
}
.recharge-pay-meta strong {
  color: var(--ink);
}
.empty { padding: 18px; color: var(--muted); text-align: center; }
#pageApiDebug.page-card {
  padding: 20px;
}
.debug-workbench-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.debug-workbench-head .section-desc {
  max-width: 860px;
  margin-bottom: 0;
  line-height: 1.65;
}
.debug-kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.debug-head-actions {
  align-items: center;
  gap: 10px;
}
.debug-doc-link {
  min-height: 40px;
  justify-content: center;
  background: #f8fafc;
  border-color: #e3eaf1;
  color: #5b6470;
}
#debugSendBtn {
  min-height: 44px;
  padding: 11px 22px;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.16);
}
.debug-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.debug-select-grid {
  display: grid;
  grid-template-columns: 200px minmax(240px, 1fr);
  gap: 12px;
}
.debug-quick-actions {
  align-items: center;
  gap: 8px;
}
.debug-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border-style: solid;
  border-color: #e7edf3;
  background: linear-gradient(180deg, #fbfcfd 0%, #f6fbfa 100%);
}
.debug-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.debug-context-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.debug-context-path {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid #e2ebf1;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.debug-context-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #deeaef;
}
.debug-context-item strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.debug-context-item span {
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.debug-context-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.debug-stack {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.debug-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.96) 100%);
  padding: 14px;
}
.debug-request-panel {
  min-height: 100%;
}
.debug-request-head {
  margin-top: 12px;
}
.debug-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.debug-panel-head h3 {
  font-size: 20px;
}
.debug-summary {
  display: grid;
  gap: 14px;
}
.debug-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.debug-summary-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}
.debug-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.debug-meta-item {
  padding: 14px 16px;
  border: 1px solid #e7edf3;
  border-radius: 18px;
  background: #fff;
}
.debug-meta-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}
.debug-textarea {
  min-height: 300px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.8;
  padding: 16px 18px;
  border-color: #d7e3ec;
  background: linear-gradient(180deg, #fbfcfd 0%, #f7fafc 100%);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.debug-textarea:focus {
  outline: none;
  border-color: #8bc9c2;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}
.debug-result-shell {
  min-height: 320px;
}
.debug-result-empty {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}
.debug-result-empty strong {
  color: var(--ink);
  font-size: 22px;
}
.debug-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.debug-result-actions {
  align-items: center;
}
.debug-result-section {
  border: 1px solid #e7edf3;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  padding: 18px;
}
.debug-result-section + .debug-result-section {
  margin-top: 16px;
}
.debug-result-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.debug-result-section-head h3 {
  font-size: 28px;
}
.debug-result-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}
.debug-result-status.ok {
  color: #027a48;
  background: #ecfdf3;
  border-color: #a6f4c5;
}
.debug-result-status.err {
  color: #b42318;
  background: #fef3f2;
  border-color: #fecdca;
}
.debug-result-status small {
  color: var(--muted);
  font-size: 12px;
}
.debug-result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.debug-result-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e7edf3;
  background: #fff;
}
.debug-result-item.wide {
  grid-column: 1 / -1;
}
.debug-result-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}
.debug-result-item div {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.debug-result-section-caption {
  margin-top: 16px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.debug-request-header-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.debug-request-header-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #d9e2ec;
  background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}
.debug-request-header-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}
.debug-result-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.debug-result-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.debug-result-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.debug-result-box {
  margin-top: 14px;
  border-radius: 18px;
  background: #111827;
  color: #f9fafb;
  padding: 16px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 280px;
}
.debug-signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.debug-signature-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed #f0c98b;
  background: linear-gradient(180deg, #fffaf4 0%, #fff 100%);
}
.debug-signature-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #9a3412;
}
.debug-signature-card .code-box {
  margin-top: 0;
  min-height: 120px;
}
@media (max-width: 1100px) {
  .console-shell, .grid-2, .grid-3, .grid-4, .detail-grid, .test-result-summary, .event-grid, .debug-select-grid, .debug-meta-grid, .debug-result-summary, .debug-signature-grid, .debug-request-header-grid, .recharge-plan-grid, .recharge-preview-grid, .overview-grid-primary, .overview-grid-secondary, .scope-card, .login-stage-grid, .feature-grid {
    grid-template-columns: 1fr;
  }
  .side-card { position: static; }
  .billing-topbar, .section-subhead, .modal-head, .debug-workbench-head, .debug-toolbar, .debug-panel-head, .debug-result-header, .debug-result-section-head, .identity-head, .login-card-head {
    flex-direction: column;
  }
  .toolbar-meta {
    grid-template-columns: 1fr;
  }
  .recharge-submit-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .recharge-submit-bar button {
    width: 100%;
  }
  .debug-textarea {
    min-height: 280px;
  }
  .login-shell {
    min-height: auto;
    padding-top: 12px;
  }
  .login-stage {
    gap: 18px;
  }
}
@media (max-width: 1280px) and (min-width: 1101px) {
  .login-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-card-main {
    grid-column: 1 / -1;
  }
}
@media (max-width: 680px) {
  .wrap {
    width: min(100% - 20px, 1360px);
    padding-top: 18px;
  }
  .login-card,
  .toolbar-card,
  .page-card,
  .side-card {
    padding: 20px;
    border-radius: 18px;
  }
  .login-stage-head h1 {
    font-size: 30px;
  }
  #loginBtn,
  .login-chip-secondary,
  .login-chip-primary {
    width: 100%;
    justify-content: center;
  }
}
