/* 正文与表单16px、辅助文字至少14px；窄屏保持可读字号，通过换行适配。 */
:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #fff;
  --ink: #202b36;
  --muted: #666;
  --line: #e5e9ee;
  --accent: #157568;
  --accent-dark: #105e54;
  --tint: #edf6f3;
  --sidebar: 272px;
  font:
    16px/1.7 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
textarea,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--muted);
  outline-offset: 3px;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.65px;
  line-height: 1.4;
}
h2 {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 650;
}
h3 {
  font-size: 18px;
  font-weight: 650;
}
p {
  color: var(--muted);
}
small {
  font-size: 16px;
  color: var(--muted);
}
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 100;
  background: var(--surface);
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.9px;
  color: var(--muted);
  margin-bottom: 9px;
}
.separator {
  color: #bdc4cc;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  z-index: 30;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 26px 17px 0;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 24px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 1.4px;
}
.brand small {
  display: block;
  font-size: 14px;
  letter-spacing: 2.2px;
  font-weight: 500;
  margin-top: 1px;
}
.brand-mark {
  flex-shrink: 0;
  width: 34px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 9px;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -3px;
  padding-right: 3px;
}
.nav-caption {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 1px;
  padding: 0 13px;
  margin: 0 0 8px;
}
nav .nav-caption {
  margin-top: 28px;
}
#main-nav > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 9px 12px;
  margin-bottom: 5px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 16px;
  position: relative;
}
#main-nav > a:hover {
  background: var(--surface);
  color: var(--ink);
}
#main-nav .nav-external {
  display: inline-flex;
  margin-left: auto;
}
#main-nav .nav-external .icon {
  width: 15px;
  height: 15px;
}
#main-nav > a.active {
  background: var(--tint);
  color: var(--ink);
  font-weight: 650;
}
#main-nav > a.active:before {
  content: "";
  position: absolute;
  left: -17px;
  height: 21px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

#unread-badge {
  margin-left: auto;
  font-size: 14px;
  border-radius: 5px;
  min-width: 19px;
  text-align: center;
  background: #e8efeb;
  padding: 0 4px;
}
.topbar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 340px;
}
#account-email {
  border: 0;
  background: transparent;
  padding: 6px 0;
  color: inherit;
  cursor: pointer;
  min-width: 0;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-account .icon-button {
  width: auto;
  min-width: 40px;
  min-height: 40px;
  flex-shrink: 0;
  color: var(--accent);
}
.workspace {
  margin-left: var(--sidebar);
}
.topbar {
  height: 64px;
  padding: 0 36px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar-start {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
}
.topbar-start strong {
  font-weight: 550;
}
.topbar-label {
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  color: var(--muted);
  font-size: 16px;
}
.text-link:hover {
  color: var(--accent);
}

#nav-toggle {
  display: none;
}
main {
  max-width: 1456px;
  margin: auto;
  padding: 36px 42px 0;
  min-height: calc(100vh - 64px);
}
#content {
  min-height: 60vh;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.2px;
}
.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 7px 13px;
  font-weight: 550;
  font-size: 16px;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.button:hover,
.icon-button:hover {
  background: var(--surface);
  border-color: var(--line);
}
.button .icon {
  width: 15px;
  height: 15px;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.secondary {
  background: var(--surface);
}
.text {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
}
.text:hover {
  background: var(--tint);
  border-color: transparent;
}
.danger {
  color: #b84d4d;
  border-color: #e7c8c8;
  background: #fff7f7;
}
.icon-button {
  width: 32px;
  min-height: 32px;
  padding: 6px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.full-width {
  width: 100%;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  background: #f0f2f5;
  color: #667787;
}
.badge.success {
  color: #19745a;
  background: #eaf5ef;
}
.badge.warning {
  color: #9d7026;
  background: #fcf3df;
}
.badge.danger {
  color: #b25050;
  background: #fff0ef;
}


.badge.info {
  color: #44788e;
  background: #ebf4f7;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 20px;
  overflow: hidden;
}
.panel-body {
  padding: 22px;
}
.section-heading {
  flex-wrap: wrap;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.section-heading h2 {
  font-size: 18px;
}
.section-heading p {
  font-size: 14px;
  margin-top: 5px;
}
.section-heading > .button {
  flex-shrink: 0;
}
.section-heading .icon {
  width: 16px;
}
.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.access-card {
  display: flex;
  flex-direction: column;
}
.access-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 23px 17px;
}
.access-title {
  display: flex;
  gap: 11px;
  align-items: center;
}
.access-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}


.access-title h2 {
  font-size: 20px;
}
.access-title small {
  font-size: 14px;
  letter-spacing: 1.2px;
}
.access-card > .panel-body {
  padding-top: 0;
  flex: 1;
}
.access-card .description {
  font-size: 16px;
  line-height: 1.9;
  min-height: 45px;
  margin-bottom: 17px;
}
.access-footer {
  flex-wrap: wrap;
  padding: 15px 23px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.access-footer small {
  font-size: 14px;
}
.access-card .copy-field {
  margin-top: 9px;
}
.copy-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f6f8fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
}
.copy-field > div {
  min-width: 0;
  flex: 1;
}
.field-caption {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}
code,
pre,
.mono {
  font:
    14px/1.7 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  overflow-wrap: anywhere;
}
.copy-field code {
  display: block;
  white-space: pre-wrap;
}
.copy-field .icon-button {
  align-self: center;
  flex-shrink: 0;
}
.config-details {
  margin-top: 14px;
}
.config-details summary {
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.config-details .data-list {
  margin-top: 12px;
}
.data-list {
  margin: 0;
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  row-gap: 12px;
  font-size: 14px;
}
.data-list dt {
  color: var(--muted);
}
.data-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.review-note {
  border-left: 2px solid #d3ae66;
  background: #fffaf0;
  color: #80683c;
  padding: 10px 12px;
  font-size: 14px;
  margin: 14px 0;
}
.review-note.danger {
  border-color: #d68783;
  color: #ad5e58;
  background: #fff6f5;
}



.step-number {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4f6f7;
  border: 1px solid var(--line);
  color: #84908f;
  font-size: 14px;
  margin-bottom: 10px;
}
.step-number .icon {
  width: 13px;
  height: 13px;
}





.callout {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 15px;
  border-radius: 6px;
  background: #f0f6f4;
  border: 1px solid #ddece6;
  font-size: 14px;
  margin-bottom: 18px;
}
.callout .icon {
  width: 15px;
  height: 15px;
  color: #639c8e;
  margin-top: 2px;
}
.callout p {
  color: #527a6d;
  line-height: 1.8;
}
.callout.warning {
  background: #fff9ec;
  border-color: #f0e6cb;
}
.callout.warning p,
.callout.warning .icon {
  color: #90713b;
}
.empty-state {
  text-align: center;
  padding: 38px 24px;
}
.empty-state > .icon {
  width: 28px;
  height: 28px;
  color: #9dadb7;
  margin-bottom: 12px;
}
.empty-state h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 14px;
  max-width: 430px;
  margin: 0 auto 17px;
  line-height: 1.9;
}
.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  min-height: 200px;
  color: var(--muted);
  font-size: 16px;
}
.loading:before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eef7f2;
  border: 1px solid #d3e6dc;
  color: #27704f;
  padding: 10px 14px;
  border-radius: 7px;
  margin-bottom: 20px;
  font-size: 16px;
}
.notice > span {
  flex: 1;
}
.notice.error {
  background: #fff4f1;
  border-color: #f0d3cc;
  color: #a34b3b;
}
.field {
  display: block;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 16px;
}
.field > span {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 7px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 11px;
  border-radius: 5px;
  min-height: 39px;
}
input::placeholder,
textarea::placeholder {
  color: #adb6bf;
}
textarea {
  min-height: 88px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--muted);
}
input[readonly] {
  background: var(--surface);
  color: #76838c;
}
.field small {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.span-all {
  grid-column: 1/-1;
}
.form-section-title {
  font-size: 14px;
  letter-spacing: 0.3px;
  font-weight: 650;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin: 2px 0 18px;
}
.form-footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.form-footer small {
  font-size: 14px;
}
.form-error {
  font-size: 14px;
  color: #b44b48;
  margin: 8px 0 14px;
}
.form-error:empty {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  width: min(450px, calc(100vw - 32px));
  max-height: 90dvh;
  color: var(--ink);
  box-shadow: 0 25px 100px #1c30252b;
  overflow: auto;
}
dialog::backdrop {
  background: #14241e70;
  backdrop-filter: blur(2px);
}
dialog[open] {
  animation: dialog-in 0.16s ease-out;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.dialog-symbol {
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--accent);
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  border-radius: 9px;
}
.dialog-copy {
  margin-bottom: 25px;
}
.dialog-copy h2 {
  font-size: 23px;
  margin-bottom: 7px;
}
.dialog-copy p {
  font-size: 14px;
  line-height: 1.8;
}
.dialog-copy .eyebrow {
  font-size: 14px;
}
.dialog-footnote {
  font-size: 14px;
  padding-top: 20px;
}
.wide-dialog {
  width: min(650px, calc(100vw - 32px));
}
.credential-dialog {
  width: min(570px, calc(100vw - 32px));
}


.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
th {
  font-weight: 550;
  color: var(--muted);
  background: var(--surface);
  white-space: nowrap;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  padding: 12px 21px;
}
td {
  padding: 15px 21px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--surface);
}
td code {
  font-size: 14px;
}
.table-footnote {
  padding: 12px 22px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.filter-bar {
  flex-wrap: wrap;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 21px;
  border-bottom: 1px solid var(--line);
}
.tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tab {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  font-size: 14px;
  min-height: 33px;
}
.tab.active {
  color: var(--accent);
  background: var(--tint);
  font-weight: 600;
}
.filter-bar select {
  width: auto;
  min-height: 33px;
  padding: 5px 9px;
  font-size: 14px;
}
.message-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.message-row {
  display: flex;
  gap: 15px;
  padding: 23px;
  border-bottom: 1px solid var(--line);
}
.message-row:last-child {
  border: 0;
}
.message-row.unread {
  background: var(--surface);
}
.message-icon {
  width: 33px;
  height: 33px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #84998f;
}
.message-icon .icon {
  width: 15px;
  height: 15px;
}
.message-body {
  flex: 1;
  min-width: 0;
}
.message-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.message-heading h3 {
  font-size: 16px;
}
.message-body p {
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.message-body time {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 11px;
}
.message-row > .button {
  align-self: center;
  font-size: 14px;
  min-height: 30px;
}
.unread-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.docs-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  grid-template-areas: "menu toc" "menu article";
  gap: 20px 32px;
  align-items: start;
}
.doc-nav { grid-area: menu; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
.doc-menu > summary, .doc-toc > summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 8px 0; }
.doc-group h2 { font-size: 14px; color: var(--muted); margin: 22px 10px 8px; }
.doc-group:first-of-type h2 { margin-top: 8px; }
.doc-nav a { display: block; padding: 8px 10px; font-size: 15px; border-radius: 5px; color: var(--muted); margin-bottom: 3px; }
.doc-nav a:hover { color: var(--accent); background: var(--tint); }
.doc-nav a.active { background: #e8f2ed; color: var(--accent); font-weight: 600; }
.article { grid-area: article; min-width: 0; max-width: 900px; width: 100%; padding: 0 0 40px; }
.article h1 {
  font-size: 25px;
  margin-bottom: 21px;
}
.article h2 {
  font-size: 20px;
  margin: 31px 0 15px;
  scroll-margin-top: 25px;
}
.article h3 {
  font-size: 18px;
  margin: 24px 0 12px;
}
.article p,
.article li {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.article p {
  margin: 12px 0;
}
.article ul,
.article ol {
  padding-left: 21px;
}
.article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article p code,
.article li code,
.article td code {
  background: #f1f5f3;
  padding: 2px 5px;
  border-radius: 3px;
  color: #396355;
}
.article .code-block {
  margin: 19px 0;
  background: #192f2c;
  color: #d4e6de;
  border: 1px solid #213c35;
  border-radius: 7px;
  overflow: hidden;
}
.code-toolbar {
  padding: 7px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1d3530;
  border-bottom: 1px solid #30473f;
  color: #9fb8ad;
  font:
    14px ui-monospace,
    monospace;
}
.code-toolbar .icon-button {
  color: #a7c0b5;
  min-height: 26px;
  width: 28px;
}
.article pre {
  margin: 0;
  padding: 18px 20px;
  overflow: auto;
  white-space: pre;
  line-height: 1.9;
  font-size: 14px;
}
/* 请求与响应共享轻量代码组件；标题始终可见，长报文只在块内滚动。 */
.code-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-width: 0; }
.code-caption { color: #edf5f1; font: 600 14px/1.5 var(--font, sans-serif); }
.code-language { color: #afc6bc; font-size: 11px; letter-spacing: .06em; }
.code-copy { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; border: 1px solid #577067; background: transparent; color: #edf5f1; border-radius: 5px; padding: 6px 9px; font-size: 13px; min-height: 34px; cursor: pointer; }
.code-copy .icon { width: 15px; height: 15px; }
.code-copy:hover { background: #304a41; }
.article pre code { background: none; padding: 0; color: inherit; font: inherit; }
.json-key { color: #b7d7ff; }
.json-string { color: #b7e5c1; }
.json-literal { color: #f5d49a; }
.doc-endpoint { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border: 1px solid var(--line); border-radius: 6px; margin: 18px 0; background: #f1f7f5; }
.doc-method { flex-shrink: 0; font: 700 12px/24px ui-monospace, monospace; color: #176e5d; }
.article .doc-endpoint code { background: none; font-size: 14px; line-height: 24px; padding: 0; overflow-wrap: anywhere; }
.article pre:focus-visible, .code-copy:focus-visible { outline: 2px solid var(--muted); outline-offset: -3px; }
@media (max-width: 600px) { .code-toolbar { gap: 8px; padding: 10px; } .article pre { padding: 14px; } }
.article table {
  min-width: 520px;
  font-size: 14px;
  margin: 16px 0;
}
.article th:first-child, .article td:first-child { min-width: 100px; }
.article th,
.article td {
  white-space: normal;
  vertical-align: top;
  padding: 12px;
}
.doc-toc { grid-area: toc; border-bottom: 1px solid var(--line); padding-bottom: 10px; min-width: 0; }
.doc-toc a { display: block; padding: 5px 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.doc-toc a:hover { color: var(--accent); }
@media (min-width: 1500px) {
  .docs-layout { grid-template-columns: 180px minmax(0, 900px) 180px; grid-template-areas: "menu article toc"; justify-content: center; }
  .doc-toc { position: sticky; top: 24px; border-bottom: 0; border-left: 1px solid var(--line); padding-left: 18px; max-height: calc(100vh - 48px); overflow: auto; }
}
@media (max-width: 999px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "menu" "toc" "article"; gap: 12px; }
  .doc-nav { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  main {
    padding-top: 45px;
  }
}
@media (max-width: 1150px) {
  :root {
    --sidebar: 256px;
  }
  main {
    padding: 28px 25px 0;
  }
  .topbar {
    padding: 0 25px;
  }

}
@media (max-width: 950px) {
  .access-grid {
    grid-template-columns: 1fr;
  }




}
@media (max-width: 760px) {
  :root {
    --sidebar: 272px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.18s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  #nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(0, 0, 0, 0.55);
    border: 0;
  }
  .workspace {
    margin-left: 0;
  }
  #nav-toggle {
    display: inline-flex;
  }
  .topbar {
    height: 57px;
    padding: 0 18px;
  }
  .topbar-start {
    gap: 11px;
  }
  .topbar-label,
  .separator {
    display: none;
  }

  main {
    padding: 25px 18px 0;
    min-height: calc(100vh - 57px);
  }


  .step-number {
    position: relative;
  }




  .access-header {
    padding: 20px;
  }
  .access-card > .panel-body {
    padding: 0 20px 20px;
  }
  .access-footer {
    flex-wrap: wrap;
    padding: 15px 20px;
  }
  .section-heading {
    flex-wrap: wrap;
    padding: 18px 20px;
    gap: 9px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .section-heading p {
    font-size: 14px;
  }
  .section-heading > .button {
    font-size: 14px;
    padding: 6px 10px;
  }
  .panel {
    margin-bottom: 16px;
  }
  .panel-body {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .form-footer .button {
    width: 100%;
  }
  dialog {
    padding: 22px;
  }
  .filter-bar {
    flex-wrap: wrap;
    padding: 14px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .message-row {
    padding: 20px 17px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .message-body {
    flex-basis: calc(100% - 46px);
  }
  .message-row > .button {
    margin-left: 43px;
  }
  .message-heading {
    gap: 6px;
  }
  .message-body p {
    font-size: 14px;
  }
  .article h1 {
    font-size: 23px;
  }
  .article h2 {
    font-size: 20px;
  }
  .article pre {
    font-size: 14px;
    padding: 16px;
  }
  .button-row .button {
    min-height: 38px;
  }
  .copy-field code {
    font-size: 14px;
  }
  .data-list {
    grid-template-columns: 85px minmax(0, 1fr);
    font-size: 14px;
  }

  footer {
    font-size: 14px;
    margin-top: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* 环境标签复用消息页的标签样式，主入口保持16px字号与舒适点击区域。 */
.access-tabs {
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.access-tabs .tab {
  font-size: 16px;
  min-height: 44px;
  padding: 9px 24px;
}
.access-panels .access-card[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .topbar {
    gap: 10px;
  }
  .topbar-start {
    flex-shrink: 0;
  }
  .topbar-account {
    gap: 6px;
    max-width: 52%;
  }
  .topbar-account .icon-button {
    flex-shrink: 0;
  }
}

#account-email:hover {
  color: var(--accent);
  text-decoration: underline;
}
.config-details .button {
  margin-top: 16px;
}

/* 应用属于账号，环境属于应用：选择器与环境tabs保持独立。 */
.application-toolbar select{font:inherit;padding:12px 16px;min-width:240px;max-width:100%;border:1px solid var(--border,#d9e2e8);border-radius:8px;background:var(--surface,#fff);color:inherit}

/* 应用列表与详情分层：参考Apigee应用列表、PayPal凭据分组；不增加宣传页头。 */
.app-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px}
.apps-table{font-size:16px;table-layout:fixed}
.apps-table th{font-size:15px}.apps-table td{white-space:normal;overflow-wrap:anywhere}
.apps-table th:first-child{width:25%}.apps-table th:nth-child(2){width:27%}
.app-name-link,.breadcrumb-link{color:var(--brand,#17786d);text-decoration:none;font-weight:600}
.app-profile{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:24px;padding:20px 24px;margin:0}
.app-profile dt{color:var(--muted);font-size:14px;margin-bottom:8px}
.app-profile dd{margin:0;overflow-wrap:anywhere;font-size:16px}
.access-fields{padding:20px 24px}.access-fields p{margin-top:0;line-height:1.7}
.access-fields .copy-field{margin-top:0;margin-bottom:12px}
.secret-inline{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid var(--line);border-radius:8px;padding:16px;background:#f6f8fa}
.secret-inline>div:first-child{min-width:0}.secret-inline code{display:block;overflow-wrap:anywhere;font-size:16px;margin-top:8px}
.credential-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 24px;border-top:1px solid var(--line)}
.credential-actions small,.history-note{color:var(--muted)}
.access-tabs{margin:24px 0 16px}.access-tabs .tab{display:flex;gap:12px;align-items:center;text-decoration:none}
.request-history{margin-top:20px}.request-history>summary{padding:20px 24px;cursor:pointer;font-weight:600}
.history-note{padding:0 24px 16px;font-size:14px;line-height:1.6}
#content>div>.panel+.panel{margin-top:20px}
#breadcrumb{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){
 .apps-table,.apps-table tbody,.apps-table tr,.apps-table td{display:block;width:100%}.apps-table thead{display:none}
 .apps-table tr{padding:12px 20px;border-top:1px solid var(--line)}.apps-table td{display:flex;justify-content:space-between;align-items:center;gap:16px;border:0;padding:8px 0}
 .apps-table td:before{content:attr(data-label);color:var(--muted);flex-shrink:0;font-size:14px}
 .app-profile{grid-template-columns:1fr;gap:16px}.app-profile,.access-fields{padding:20px}
 .secret-inline,.credential-actions{align-items:flex-start;flex-direction:column}.access-tabs .tab{gap:8px;font-size:15px;padding:12px 8px}
 .access-tabs{justify-content:space-between}.access-tabs .badge{font-size:12px}
 .access-fields.data-list{grid-template-columns:1fr}.access-fields.data-list dd{padding-top:0}
 .topbar-start{min-width:0}#breadcrumb{font-size:15px}
}

/* 长应用名不挤走账号入口；移动端仍保留右侧邮箱。 */
.topbar-start{min-width:0;flex-shrink:1}#breadcrumb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-label,.separator{flex-shrink:0}
@media(max-width:600px){.topbar-start{flex:1;max-width:52%}.topbar-account{flex:1;max-width:48%}#nav-toggle{flex-shrink:0}}

/* 资源下载页：紧凑信息区，不使用宣传卡片。 */
.downloads-page {max-width:1120px;margin:0 auto;}
.download-header {display:flex;justify-content:space-between;align-items:center;gap:24px;}
.download-header h2 {font-size:24px;margin:0 0 10px;}
.download-header p,.download-start p {line-height:1.8;margin:0;}
.download-header .button-row {flex-shrink:0;flex-wrap:wrap;}
.download-meta {font-size:14px;color:var(--muted);margin:16px 0 24px;}
.download-section {border-top:1px solid var(--line);padding:24px 0;}
.download-section h3 {font-size:19px;margin:0 0 16px;}
.download-contents {display:grid;grid-template-columns:220px 1fr;margin:0;}
.download-contents dt,.download-contents dd {padding:12px 0;margin:0;line-height:1.7;}
.download-contents dt {font-weight:600;}
.download-start {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;padding:0;list-style:none;counter-reset:steps;}
.download-start li {counter-increment:steps;}
.download-start h4 {font-size:17px;margin:0 0 10px;}
.download-start h4::before {content:counter(steps) ". ";color:var(--accent);}
.download-doc-link {display:inline-block;color:var(--accent);font-weight:600;margin-top:12px;}
.download-note {font-size:14px;margin:24px 0 0;line-height:1.8;}
.download-alternative {border-top:1px solid var(--line);display:flex;align-items:baseline;gap:20px;padding:20px 0;flex-wrap:wrap;}
.download-alternative .download-doc-link {margin:0;}
@media(max-width:1100px){.download-header{align-items:flex-start;flex-direction:column;gap:16px;}}
@media(max-width:760px){.download-start{grid-template-columns:1fr;gap:24px;}.download-contents{grid-template-columns:1fr;}.download-contents dt{padding-bottom:0;}.download-contents dd{padding-top:4px;}.download-header .button-row{gap:10px;}}

/* 滑块采用原生 range 保留键盘和触控支持；图片按原始比例缩放，坐标始终使用 320px 基准。 */
.captcha-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:13px; }
.captcha-heading .captcha-refresh { min-height:32px; padding:4px 8px; flex-shrink:0; }
.captcha-picture { position:relative; width:100%; aspect-ratio:2; overflow:hidden; border-radius:8px; background:#d9e5ed; }
.captcha-background { display:block; width:100%; height:100%; }
.captcha-piece { position:absolute; width:15.625%; height:31.25%; filter:drop-shadow(0 0 2px #fff); pointer-events:none; }
#auth .captcha-slider { display:block; width:100%; height:40px; padding:0; margin:8px 0 0; cursor:ew-resize; accent-color:#2563eb; touch-action:none; }
.captcha-status { font-size:12px; color:var(--muted); margin:2px 0 8px; min-height:18px; }
#auth { max-height:calc(100dvh - 32px); overflow:auto; }

/* 接入方式使用独立色系，不与审批成功/失败的状态颜色混用。 */
.mode-api{background:#edf3ff;color:#2859a5;border-color:#c9d8f1}
.mode-hosted{background:#f3edfc;color:#7043a3;border-color:#decef2}
/* 增加接入方式后重新分配列宽，避免网站列被压缩成逐词换行。 */
.app-list-toolbar{flex-wrap:wrap}
.app-list-toolbar>span{white-space:nowrap;flex-shrink:0}
.app-list-toolbar>select{width:180px;max-width:100%;order:1}
.app-list-toolbar>button{order:2;margin-left:auto;flex-shrink:0}
@media(max-width:600px){.app-list-toolbar{gap:12px;padding:16px}.app-list-toolbar>button{margin-left:0}}

/* 创建入口并列成组，窄屏自然换行，避免按钮各自自动外边距造成错位。 */
.app-create-actions { display:flex; gap:8px; flex-wrap:wrap; margin-left:auto; order:2; }
.app-list-toolbar .app-create-actions .button { margin-left:0; }
@media(max-width:600px){.app-create-actions{width:100%;margin-left:0}.app-create-actions .button{flex:1}}

/* 桌面按内容分配列宽，时间两行展示；手机继续复用字段卡片。 */
@media(min-width:761px){.apps-table{table-layout:auto}.apps-table th{white-space:nowrap}.apps-table td:nth-child(4){min-width:155px;font-size:13px}.apps-table td:nth-child(3){min-width:180px;overflow-wrap:anywhere}}

/* 控制台以任务为中心；宣传内容独立在首页，页面统一标题、说明和内容区。 */
:root { --sidebar:240px; }
.sidebar .brand { font-size:17px; letter-spacing:.3px; }
.topbar-label { font-size:14px; }
.workspace-heading { margin-bottom:28px; }
.workspace-heading h1 { font-size:28px; font-weight:600; letter-spacing:-.6px; overflow-wrap:anywhere; }
.workspace-heading p { font-size:14px; margin-top:8px; }
.console-welcome { padding:24px; }
.console-access-options { display:grid; grid-template-columns:1fr 1fr; gap:32px; margin-bottom:28px; }
.console-access-options h3 { font-size:17px; margin-bottom:8px; }
.console-access-options p { font-size:14px; }
.console-access-options .button { padding-left:0; }
.app-list-toolbar { flex-wrap:wrap; }
.app-list-toolbar > select { min-height:40px; border:1px solid var(--line); border-radius:5px; background:var(--surface);color:var(--ink); padding:6px 10px; }
@media(min-width:761px){.apps-table th:first-child{width:20%}.apps-table th:nth-child(2){width:13%}.apps-table th:nth-child(3){width:20%}.apps-table th:nth-child(4){width:17%}.apps-table th:nth-child(5),.apps-table th:nth-child(6){width:10%}.apps-table th:last-child{width:10%}}
@media(max-width:700px){.workspace-heading{margin-bottom:20px}.workspace-heading h1{font-size:24px}.console-access-options{grid-template-columns:1fr;gap:24px}.console-welcome{padding:20px}.app-create-actions{flex-wrap:wrap}}

/* 与介绍页共享主题偏好；中性色用于导航/表单，状态颜色仅传达状态。 */
:root{--bg:#fff;--surface:#fff;--ink:#151515;--muted:#666;--line:#e2e2e2;--accent:#181818;--accent-dark:#333;--on-accent:#fff;--tint:#f3f3f3;--brand:var(--accent);--border:var(--line);color-scheme:light}
:root[data-home-theme=dark]{--bg:#0b0b0b;--surface:#131313;--ink:#ededed;--muted:#a3a3a3;--line:#2b2b2b;--accent:#ededed;--accent-dark:#ccc;--on-accent:#111;--tint:#202020;color-scheme:dark}
.sidebar,.topbar,dialog{background:var(--surface);color:var(--ink)}
.brand-mark{background:var(--accent);color:var(--on-accent)}
.nav-caption,.topbar-label,.field small,.field-caption,.captcha-status{color:var(--muted)}
#main-nav a.active,.doc-nav a.active{background:var(--tint);color:var(--ink)}
input,select,textarea{color:var(--ink);background:var(--surface)}
.secret-inline,.copy-field,.app-overview,.doc-endpoint,.article :not(pre)>code{background:var(--tint);color:var(--ink)}
.article pre,.code-toolbar{background:#171717;color:#ededed;border-color:#333}
.code-copy{color:#ededed;border-color:#666}.code-copy:hover{background:#333}
.doc-method{color:var(--ink)}
.badge,.mode-api,.mode-hosted{background:var(--tint);color:var(--ink);border-color:var(--line)}
:root[data-home-theme=dark] .callout{background:#202020;color:#ddd;border-color:#666}
:root[data-home-theme=dark] .badge.approved{color:#afd8bd;background:#19251d}
:root[data-home-theme=dark] .badge.rejected,:root[data-home-theme=dark] .danger{color:#efb4b4;background:#2c1919;border-color:#604040}
dialog::backdrop{background:#0009}dialog{box-shadow:0 25px 100px #0005}
.topbar-account{gap:16px}.topbar-account .home-language{max-width:110px}
.console-welcome{border-radius:6px}.workspace-heading{margin-bottom:32px}
:root[lang=en] .brand{font-size:15px;line-height:1.4}
:root[lang=en] .button{white-space:normal}
@media(max-width:700px){.topbar{flex-wrap:nowrap;height:auto;min-height:64px;padding:10px 18px;gap:8px}.topbar-account{margin-left:auto;gap:12px}.topbar-start{min-width:0}.topbar-label{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* 页面级控件必须使用语义色，避免选择器优先级覆盖暗色表面。 */
.app-list-toolbar>select,.application-toolbar select,.filter-bar select,.field input,.field textarea,.field select{background:var(--surface);color:var(--ink);border-color:var(--line)}
.callout,.callout.warning,.notice,.notice.error,.step-number{background:var(--tint);border-color:var(--line);color:var(--ink)}
.callout p,.callout .icon,.callout.warning p,.callout.warning .icon{color:var(--ink)}
:root[data-home-theme=dark] .badge.success{background:#19251d;color:#afd8bd}
:root[data-home-theme=dark] .badge.warning{background:#2b2518;color:#e2c88e}
:root[data-home-theme=dark] .badge.danger{background:#2c1919;color:#efb4b4}
.doc-toc,.doc-menu,.docs-layout,.article{min-width:0}.article{overflow-wrap:anywhere}.doc-nav a{overflow-wrap:anywhere}
/* 英文操作文案不逐字折行；宽表在自身容器滚动，手机使用已有卡片布局。 */
.app-list-toolbar>select{width:210px}
@media(min-width:761px){.apps-table{min-width:1020px}.apps-table th{width:auto!important}.apps-table td,.apps-table th{padding:16px 14px}.apps-table td:last-child{min-width:145px}.apps-table td:last-child .button{white-space:nowrap;word-break:normal;font-size:14px;padding:6px 0}.apps-table td:nth-child(3){min-width:150px}}
/* 标题区可收缩，工具栏保持单行，避免手机头部因长标题挤成两排。 */
@media(max-width:700px){.topbar-start{flex:1 1 0;max-width:none;gap:6px}.topbar-account{flex:0 0 auto;max-width:none;justify-content:flex-end;gap:8px}.topbar-account .home-language{width:78px;flex-shrink:0;padding:7px 5px}.topbar-account .home-theme-toggle{flex-shrink:0}.topbar-account #account-email{max-width:60px;font-size:12px}.topbar-account #account{flex-shrink:0;font-size:13px;white-space:nowrap}.topbar-start #breadcrumb{min-width:0}}

.confirmation-dialog .button-row{justify-content:flex-end;margin-top:24px}.confirmation-dialog strong{display:block;overflow-wrap:anywhere;margin:12px 0}
