:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #24282e;
  background: #fff;
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0;
  --accent: #1765f5;
  --accent-hover: #0a50d6;
  --accent-soft: #edf4ff;
  --border: #e9ebef;
  --muted: #767d88;
  --ink: #24282e;
  --sidebar: #f7f8fa;
  --header-height: 72px;
  --sidebar-width: 256px;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; border-radius: 4px; }
button, a, input, select, textarea { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #a7c8ff; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
h2 { font-size: 19px; font-weight: 600; line-height: 1.5; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.5; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
code { font-size: 12px; }
pre { margin: 0; font-size: 13px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.break { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.boot-state { padding: 60px; color: var(--muted); }
.skip-link { position: fixed; top: -60px; left: 12px; background: #fff; padding: 8px; z-index: 99; }
.skip-link:focus { top: 8px; }
.symbol { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: middle; }

/* The console and API directory share a single navigation frame. */
.shell { min-height: 100vh; padding-top: var(--header-height); }
.topbar { height: var(--header-height); position: fixed; inset: 0 0 auto; z-index: 30; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 16px; flex: none; color: var(--ink); text-decoration: none !important; }
.brand-mark { color: #f2693b; font-size: 30px; font-weight: 800; line-height: 1; }
.brand-label { font-size: 17px; font-weight: 500; border-left: 1px solid #dfe2e7; padding-left: 16px; line-height: 1.4; }
.header-nav { display: flex; align-items: stretch; height: 100%; gap: 32px; margin-left: 20px; }
.header-nav a { display: flex; align-items: center; color: #515863; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; padding-top: 2px; text-decoration: none; }
.header-nav a:hover, .header-nav a.active { color: var(--accent); }
.header-nav a.active { border-color: var(--accent); }
.header-nav .locked-link { display: flex; align-items: center; color: #7a818b; font-size: 14px; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; min-width: 0; }
.language-control { display: flex; align-items: center; gap: 6px; color: #5e6570; }
.language-select { border: 0; background: transparent; max-width: 106px; font-size: 13px; color: #515863; padding: 5px 0; }
.identity { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.identity-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #edf4ff; color: #447ac5; font-weight: 600; font-size: 12px; flex: none; }
.sidebar, .endpoint-sidebar { position: fixed; inset: var(--header-height) auto 0 0; width: var(--sidebar-width); z-index: 20; background: var(--sidebar); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-right: 1px solid #f0f1f4; }
.sidebar { display: flex; flex-direction: column; padding: 30px 20px 22px; }
.sidebar-title { font-size: 17px; font-weight: 600; margin: 0 12px 24px; overflow-wrap: anywhere; }
.nav-label { font-size: 12px; color: #8a9099; padding: 0 12px 10px; }
.resources-label { margin-top: 34px; }
.nav { display: grid; gap: 5px; }
.nav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; border: 0; padding: 10px 12px; text-align: left; color: #575e69; background: transparent; border-radius: 4px; font-size: 14px; line-height: 1.6; }
.nav button:hover { color: var(--accent); background: #eff2f7; }
.nav button.active { color: var(--accent); background: #eaf1fd; }
.nav button:disabled { color: #7a818b; background: transparent; cursor: default; }
.sidebar-bottom { margin-top: auto; padding: 28px 12px 0; }
.version { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #8a9099; border-top: 1px solid #e5e8ed; padding-top: 18px; }
.sidebar-bottom a { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-top: 12px; color: #67717f; }
.main-shell { margin-left: var(--sidebar-width); min-width: 0; }
.breadcrumb { display: flex; gap: 9px; align-items: center; font-size: 12px; color: #858b95; max-width: 1440px; margin: 0 auto; padding: 30px 44px 0; }
.breadcrumb strong { font-weight: 400; color: #747b86; }
.breadcrumb .symbol { width: 13px; height: 13px; color: #a3a9b2; }
.content { max-width: 1440px; margin: 0 auto; padding: 22px 44px 64px; min-width: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.page-heading > div:first-child { min-width: 0; }
.eyebrow { font-size: 12px; color: #8a9099; margin-top: 9px; font-weight: 400; }
.heading-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex: none; }
.menu-backdrop, .mobile-menu { display: none !important; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; border: 1px solid #dfe3e9; padding: 8px 15px; background: #fff; color: #535d6c; font-size: 13px; font-weight: 400; line-height: 1.5; text-align: center; text-decoration: none !important; }
.button:hover { color: var(--accent); border-color: #abc8fb; background: #f8faff; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.danger { color: #bc4e55; border-color: #edc9ce; background: #fff; }
.button.wide { width: 100%; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; min-width: 32px; border: 1px solid transparent; background: transparent; color: #86909f; padding: 5px; }
.icon-button:hover { color: var(--accent); background: var(--accent-soft); }
.badge { font-size: 11px; line-height: 1.5; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 3px; font-weight: 400; white-space: nowrap; color: #707987; background: #f0f2f5; }
.badge.sandbox { color: #ad7822; background: #fff6e7; }
.badge.production { color: #4179c3; background: #edf4ff; }
.badge.success { color: #278369; background: #edf8f3; }
.badge.error { color: #bc4e61; background: #fcedf1; }
.badge.dot:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 32px 0 20px; scroll-margin-top: 96px; }
.section-title:first-child { margin-top: 0; }
.section-title .small { font-size: 12px; }
.empty { padding: 56px 20px; text-align: center; color: #929aa6; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.empty .symbol { display: block; width: 28px; height: 28px; margin: 0 auto 16px; color: #a5b9d8; }
.empty p { font-size: 14px; }
.empty .button { margin-top: 18px; }
.notice { padding: 13px 16px; border-left: 3px solid #e6b967; background: #fffbf2; font-size: 13px; color: #9a793f; margin: 18px 0; overflow-wrap: anywhere; }
.notice.error { border-color: #d58698; background: #fff4f6; color: #b35369; }
.notice.info { border-color: #8eb7ff; background: #f1f6ff; color: #5378b0; }
.notice p + p { margin-top: 6px; }
.error-inline { color: #b35369; font-size: 13px; overflow-wrap: anywhere; }
.error-inline:not(:empty) { padding: 10px 12px; background: #fff4f6; margin: 12px 0; border-radius: 4px; }
.loading { padding: 50px; color: var(--muted); text-align: center; }

.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.stat { padding: 0 28px; border-right: 1px solid var(--border); min-width: 0; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-label { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: #737d8b; font-size: 13px; }
.stat-label .symbol { color: #81a9e8; }
.stat:nth-child(2) .stat-label .symbol { color: #76a9a2; }
.stat:nth-child(3) .stat-label .symbol { color: #e0a865; }
.stat:nth-child(4) .stat-label .symbol { color: #a196bc; }
.stat-value { font-size: 32px; font-weight: 500; line-height: 1.3; margin: 16px 0 9px; }
.stat-foot { font-size: 12px; color: #9aa1ac; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 36px; margin: 36px 0; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.chart-section { min-width: 0; }
.chart { height: 205px; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 20px; align-items: end; padding-top: 15px; }
.chart-col { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 7px; font-size: 11px; color: #939dad; min-width: 0; }
.chart-bar { width: min(100%,36px); min-height: 2px; background: #b7d0fa; border-radius: 3px 3px 0 0; }
.chart-col:last-child .chart-bar { background: #6498ef; }
.chart-count { font-size: 11px; color: #8796ad; }
.chart-day { padding-top: 9px; border-top: 1px solid var(--border); width: 100%; text-align: center; }
.environment-section { border-left: 1px solid var(--border); padding-left: 30px; }
.environment-line { padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.environment-line:last-child { border-bottom: 0; }
.environment-line small { color: #99a1ad; display: block; font-size: 11px; margin-top: 4px; }
.table-wrap { width: 100%; overflow: auto; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; white-space: nowrap; }
th { font-size: 12px; font-weight: 400; color: #686f7a; background: #f7f8fa; padding: 14px 16px; border-bottom: 1px solid var(--border); }
td { padding: 18px 16px; border-bottom: 1px solid var(--border); color: #606976; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdff; }
.app-name { font-weight: 500; color: #3f536f; font-size: 14px; }
.app-desc { font-size: 12px; color: #99a1ad; margin-top: 3px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.client-id { font-size: 11px; color: #8d97a7; }
.table-actions { display: flex; gap: 3px; justify-content: flex-end; }
.scope-count { font-size: 12px; }
.scope-count small { display: block; font-size: 11px; color: #9aa2af; }
.table-link { border: 0; background: none; padding: 0; text-align: left; color: var(--accent); }
.filters { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.filters .field { margin-bottom: 0; min-width: 150px; }
.filters .search { margin-left: auto; flex: 1; max-width: 320px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 0; font-size: 12px; color: #8792a2; }
.pagination > div { display: flex; align-items: center; gap: 9px; }

.login-layout { display: grid; grid-template-columns: minmax(280px,410px) minmax(220px,1fr); gap: 90px; max-width: 950px; padding: 32px 0; }
.login-layout .eyebrow { color: #9aa2ad; margin: 0 0 12px; }
.login-layout h1 { font-size: 27px; margin-bottom: 32px; }
.login-aside { border-left: 1px solid var(--border); padding: 52px 0 0 48px; }
.login-aside h2 { font-size: 17px; margin-bottom: 18px; }
.login-meta { margin-top: 26px; font-size: 12px; color: #98a1af; }
.login-form .button { min-height: 42px; }
.login-divider { display: flex; align-items: center; gap: 14px; font-size: 12px; color: #a5acb6; margin: 24px 0; }
.login-divider:before, .login-divider:after { content: ""; height: 1px; background: var(--border); flex: 1; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; min-width: 0; }
.field > span, .field > label { font-size: 13px; font-weight: 400; color: #5f6977; }
.field input, .field select, .field textarea { background: #fff; border: 1px solid #dfe4eb; min-height: 40px; width: 100%; padding: 9px 12px; outline-offset: 1px; color: #454f5e; font-size: 13px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b3c6e5; }
.field input::placeholder, .field textarea::placeholder { color: #aab1bc; }
.field textarea { resize: vertical; min-height: 82px; }
.field small { font-size: 12px; color: #959fad; overflow-wrap: anywhere; }
.field-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.checkbox-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px 16px; margin: 14px 0 22px; }
.checkbox-item { font-size: 12px; display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.checkbox-item input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; flex: none; }
.form-legend { font-size: 13px; font-weight: 500; color: #5f6977; }
.optional { font-size: 11px; font-weight: 400; color: #a0a8b5; margin-left: 5px; }
fieldset { border: 0; padding: 0; margin: 0 0 5px; min-width: 0; }
legend { padding: 0; }
.form-footer { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--border); padding-top: 22px; margin-top: 26px; }
.password-wrap { display: flex; position: relative; }
.password-wrap input { padding-right: 40px; }
.password-wrap .icon-button { position: absolute; right: 4px; top: 4px; }

/* The API directory replaces the console sidebar so the article stays readable. */
.shell[data-route="docs"]:has(.endpoint-sidebar) > .sidebar { display: none; }
.docs-layout { display: grid; grid-template-columns: minmax(0,1fr) 160px; gap: 44px; align-items: start; }
.endpoint-sidebar { padding: 24px 20px; }
.directory-back { display: flex; gap: 7px; align-items: center; font-size: 12px; color: #88919f; margin: 0 8px 24px; }
.directory-back .symbol { width: 14px; height: 14px; }
.endpoint-sidebar .sidebar-title { display: flex; gap: 10px; align-items: center; margin: 0 10px 22px; }
.api-version { color: #949daa; font-size: 11px; font-weight: 400; padding: 0 6px; border: 1px solid #e0e4eb; border-radius: 3px; }
.endpoint-search { position: relative; margin: 0 0 16px; }
.endpoint-search .symbol { position: absolute; left: 12px; top: 12px; width: 15px; height: 15px; color: #a3adbd; }
.endpoint-search input { border-color: #eceef3; padding-left: 35px; min-height: 39px; font-size: 12px; }
.endpoint-group { font-size: 13px; color: #555f6e; font-weight: 500; padding: 21px 10px 10px; }
.endpoint-item { display: flex; align-items: baseline; gap: 9px; width: 100%; background: transparent; border: 0; border-left: 2px solid transparent; color: #737d8c; font-size: 12px; text-align: left; padding: 9px 10px; border-radius: 0; min-height: 38px; line-height: 1.65; }
.endpoint-item.active { background: #ecf3ff; color: var(--accent); border-left-color: var(--accent); }
.endpoint-item:hover { color: var(--accent); background: #eef2f8; }
.method { font: 500 10px ui-monospace,monospace; color: #329578; min-width: 32px; flex: none; }
.method.post { color: #b58a40; }
.method.delete { color: #bb6380; }
.endpoint-title { overflow-wrap: anywhere; min-width: 0; }
.directory-footer { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--border); padding: 20px 10px 2px; margin-top: 30px; color: #7a8799; font-size: 12px; }
.directory-footer .symbol:last-child { margin-left: auto; width: 15px; height: 15px; }
.docs-detail { min-width: 0; }
.docs-detail h2 { font-size: 23px; margin-bottom: 14px; }
.docs-description { font-size: 14px; color: #717b88; line-height: 1.95; margin: 16px 0 22px; overflow-wrap: anywhere; }
.endpoint-path { display: flex; gap: 14px; align-items: baseline; background: #f5f7fa; border-left: 3px solid #a9c7f5; padding: 16px 18px; overflow-wrap: anywhere; margin: 22px 0 16px; }
.endpoint-path code { font-size: 13px; min-width: 0; color: #50617a; }
.endpoint-path .method { font-size: 12px; }
.docs-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.docs-meta .badge { font-size: 11px; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.code-block { background: #f7f8fa; color: #52617a; padding: 22px; border-radius: 4px; border: 1px solid #edf0f5; position: relative; }
.code-block pre { padding-right: 22px; }
.code-block .icon-button { position: absolute; top: 9px; right: 9px; color: #929faf; }
.docs-detail .section-title { margin-top: 34px; margin-bottom: 18px; }
.param-table { white-space: normal; line-height: 1.8; }
.param-table td { vertical-align: top; }
.param-table td:first-child { font-family: ui-monospace,monospace; font-size: 12px; overflow-wrap: anywhere; max-width: 240px; }
.param-table small { display: block; margin-top: 4px; color: #bc8b58; font-family: inherit; font-size: 10px; }
.doc-download { display: flex; gap: 12px; align-items: center; }
.code-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.code-tabs button { border: 0; border-radius: 0; background: transparent; color: #909bab; font-size: 13px; padding: 10px 0; border-bottom: 2px solid transparent; }
.code-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.docs-toc { position: sticky; top: 106px; padding-top: 4px; }
.docs-toc h3 { font-size: 14px; margin-bottom: 17px; }
.docs-toc nav { display: grid; border-left: 1px solid var(--border); }
.docs-toc button { background: transparent; border: 0; text-align: left; padding: 7px 16px; color: #8a94a3; border-radius: 0; font-size: 12px; line-height: 1.7; }
.docs-toc button:hover, .docs-toc button:focus { color: var(--accent); background: #f6f9ff; }
.docs-toc > a { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.docs-toc > a .symbol { width: 14px; height: 14px; }
.guide-steps { list-style: none; display: grid; gap: 18px; margin: 4px 0 8px; }
.guide-steps li { display: flex; gap: 16px; align-items: flex-start; }
.guide-step-number { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #ecf3ff; color: var(--accent); font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.guide-steps h4 { font-size: 14px; margin-bottom: 4px; }
.guide-steps p { font-size: 13px; color: #717b88; line-height: 1.85; }
.guide-subheading { font-size: 15px; margin: 26px 0 4px; }
.guide-table td { vertical-align: top; }
.guide-table code { font-size: 12px; overflow-wrap: anywhere; }
.guide-error-table td:first-child { white-space: nowrap; }

.debug-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; align-items: start; }
.debug-auth { padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.debug-auth-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: end; }
.debug-auth-grid .field { margin: 0; }
.token-state { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; color: #919cad; margin-top: 16px; flex-wrap: wrap; overflow-wrap: anywhere; }
.token-state > * { min-width: 0; }
.token-valid { color: #329578; }
.debug-panel { min-width: 0; }
.debug-panel .section-title { margin-top: 0; }
.editor { font: 12px/1.85 ui-monospace,SFMono-Regular,Consolas,monospace !important; background: #fbfcfe !important; color: #52617a !important; min-height: 300px !important; resize: vertical; tab-size: 2; }
.response-editor { min-height: 350px; max-height: 670px; overflow: auto; border: 1px solid var(--border); background: #f8fafd; padding: 20px; border-radius: 4px; color: #52617a; }
.response-editor.empty-response { display: flex; align-items: center; justify-content: center; color: #a1adbf; font-family: inherit; font-size: 13px; }
.request-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.response-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; min-height: 36px; margin-bottom: 12px; flex-wrap: wrap; overflow-wrap: anywhere; }
.response-headers { margin-top: 16px; font-size: 11px; color: #919cad; display: grid; gap: 7px; }
.response-headers div { display: flex; gap: 10px; overflow-wrap: anywhere; }
.response-headers strong { color: #6e819d; font-weight: 400; min-width: 116px; flex: none; }
.sandbox-tools { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 24px; }
.sandbox-tools .field-row { align-items: end; }
.sandbox-tools .field { margin: 0; }
.sandbox-buttons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 18px; }
.api-url { font: 11px/1.7 ui-monospace,monospace; color: #97a2b3; overflow-wrap: anywhere; margin: -5px 0 18px; }
.token-secret { font-family: ui-monospace,monospace; }
.tool-label { font-size: 12px; color: #7e8b9f; margin-bottom: 8px; }
.scope-requirement { font-size: 11px; color: #ad8d53; }
.debug-info { min-height: 27px; font-size: 11px; color: #929fb2; margin-top: 8px; overflow-wrap: anywhere; }

dialog { border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 16px 64px #293e6026; width: min(560px,calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 30px; overflow: auto; color: var(--ink); }
dialog::backdrop { background: #3c4c6a4d; }
#access-dialog { padding: 0; border-radius: 16px; border-color: #dce4ef; box-shadow: 0 28px 90px #10223e4d; }
#access-dialog::backdrop { background: #15243bb0; }
#access-dialog.access-dialog-wide { width: min(700px,calc(100vw - 32px)); }
.access-header { display: flex; gap: 16px; align-items: flex-start; padding: 24px 28px; background: #eef4fc; border-bottom: 1px solid #dce7f5; }
.access-header-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: #fff; color: var(--accent); }
.access-header h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.45; }
.access-header p { margin: 0; color: #536680; font-size: 13px; line-height: 1.65; }
.access-form, .access-status { display: grid; gap: 16px; padding: 22px 28px; }
.access-section { display: grid; gap: 12px; margin: 0; }
.access-section > legend { margin-bottom: 10px; color: #233d5d; font-weight: 600; font-size: 14px; }
.access-fields, .access-options-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 14px; }
.access-options { display: grid; gap: 8px; margin: 0; }
.access-options legend { margin-bottom: 8px; color: #526378; font-size: 13px; }
.access-options .checkbox-item { border: 1px solid #dce5f1; border-radius: 7px; padding: 9px 11px; background: #f9fbfe; cursor: pointer; }
.access-options .checkbox-item:has(input:checked) { border-color: #8aacdc; background: #edf5ff; color: #204f8d; }
.access-options .checkbox-item:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.access-form .field { margin: 0; gap: 5px; }
.access-form .field input, .access-form .field textarea { border-radius: 6px; }
.access-form .field textarea { min-height: 86px; }
.access-form .error-inline, .access-status .error-inline { margin: 0; min-height: 0; }
.access-form .error-inline:empty, .access-status .error-inline:empty { display: none; }
.access-form .form-footer, .access-status .form-footer { margin: 0; border-top: 1px solid #e6ebf2; padding-top: 14px; flex-wrap: wrap; }
.access-application-id { display: grid; gap: 5px; padding: 13px 15px; border: 1px solid #e0e9f6; border-radius: 8px; background: #f8faff; overflow-wrap: anywhere; }
.access-application-id span { color: #536680; font-size: 12px; }
.access-application-id strong { font-family: ui-monospace, monospace; font-size: 13px; }
@media (max-width: 480px) {
  .access-header, .access-form, .access-status { padding: 16px; }
  .access-fields { grid-template-columns: 1fr; }
  .access-options-grid { gap: 7px; }
}
.dialog-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 28px; }
.dialog-title h2 { font-size: 21px; }
.secret-field { position: relative; margin-top: 20px; }
.secret-field .field input { font-size: 12px; background: #f8fafd; padding-right: 42px; }
.secret-field .icon-button { position: absolute; right: 4px; bottom: 4px; }
.secret-dialog p { font-size: 13px; color: #79879b; }
.confirm-message { font-size: 14px; line-height: 1.9; color: #7a879b; }
.notifications { position: fixed; right: 24px; bottom: 24px; max-width: min(420px,calc(100vw - 32px)); z-index: 100; display: grid; gap: 10px; }
.toast { background: #fff; border: 1px solid #d6e6fd; color: #446eac; padding: 14px 18px; border-radius: 4px; font-size: 13px; box-shadow: 0 5px 25px #30456718; overflow-wrap: anywhere; }
.toast.error { color: #b35369; border-color: #edc7d2; }
.view-note { font-size: 12px; color: #8996aa; margin-top: 22px; }
.load-error { padding: 30px 0; }
.inline-actions { display: flex; align-items: center; gap: 9px; }
.full-width { grid-column: 1/-1; }

/* Dedicated customer-onboarding / binding page. */
.binding-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-bottom: 36px; }
.binding-card { border: 1px solid var(--border); background: #fff; padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; }
.binding-card.full { grid-column: 1/-1; }
.binding-card-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.binding-card-header h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; overflow-wrap: anywhere; }
.binding-card-header .button { padding: 6px 11px; min-height: 32px; font-size: 12px; }
.binding-env-row { display: flex; align-items: center; gap: 12px; }
.binding-env-row strong { font-weight: 500; color: var(--ink); }
.binding-card-note { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0; }
.binding-card-note.muted { color: var(--muted); }
.binding-field { display: grid; grid-template-columns: 92px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); }
.binding-field:first-of-type { border-top: 0; padding-top: 0; }
.binding-field-label { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.binding-field-value { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.binding-sample-sub { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.binding-sample-sub:not(:first-child) { margin-top: 22px; }
.binding-shop-card .binding-shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.binding-warehouse-table { white-space: normal; line-height: 1.7; margin-top: 8px; }
.binding-warehouse-table th { background: transparent; border-bottom: 1px solid var(--border); padding: 8px 0; }
.binding-warehouse-table td { padding: 8px 0; border-bottom: 0; color: var(--ink); }
.binding-warehouse-table td code { background: #f5f7fa; padding: 2px 6px; border-radius: 3px; margin-right: 8px; }
.binding-warehouse-table td small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }

@media (min-width: 1600px) {
  .content, .breadcrumb { padding-left: 56px; padding-right: 56px; }
  .docs-layout { gap: 60px; grid-template-columns: minmax(0,1fr) 190px; }
}
@media (max-width: 1200px) {
  :root { --sidebar-width: 232px; }
  .topbar { padding: 0 24px; gap: 24px; }
  .header-nav { margin-left: 0; gap: 24px; }
  .identity-name { display: none; }
  .topbar-actions { gap: 14px; }
  .breadcrumb { padding: 28px 32px 0; }
  .content { padding: 20px 32px 48px; }
  .sidebar, .endpoint-sidebar { padding-left: 14px; padding-right: 14px; }
  .docs-layout { grid-template-columns: minmax(0,1fr); }
  .docs-toc { display: none; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr) 235px; gap: 24px; }
  .environment-section { padding-left: 24px; }
  .stat { padding: 0 20px; }
  .login-layout { gap: 40px; }
  .login-aside { padding-left: 30px; }
  .debug-panel .field-row { grid-template-columns: minmax(0,1fr); gap: 0; }
  .sandbox-tools .field-row { gap: 16px; }
  .binding-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1000px) {
  .topbar { gap: 20px; }
  .brand { gap: 10px; }
  .brand-label { font-size: 14px; padding-left: 10px; }
  .header-nav { gap: 18px; }
  .header-nav a { font-size: 12px; }
  .topbar-actions { gap: 8px; }
  .language-control > .symbol { display: none; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; }
  .stat, .stat:first-child { padding: 22px 24px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .environment-section { border-left: 0; border-top: 1px solid var(--border); padding: 24px 0 0; }
  .login-layout { grid-template-columns: minmax(0,1fr); max-width: 480px; padding-top: 20px; gap: 32px; }
  .login-aside { border-left: 0; border-top: 1px solid var(--border); padding: 28px 0 0; }
  .debug-layout { grid-template-columns: minmax(0,1fr); }
  .debug-auth-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .debug-auth-grid > .button { grid-column: 2; justify-self: end; }
  .debug-panel .field-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
  .binding-grid { grid-template-columns: minmax(0,1fr); }
  .binding-shop-card .binding-shop-grid { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  :root { --header-height: 64px; --sidebar-width: 272px; }
  .topbar { padding: 0 20px; gap: 12px; }
  .header-nav { display: none; }
  .brand-mark { font-size: 27px; }
  .brand-label { font-size: 16px; }
  .topbar-actions { gap: 12px; }
  .mobile-menu { display: inline-grid !important; }
  .sidebar, .endpoint-sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .18s ease, visibility .18s; }
  .shell.menu-open .sidebar, .shell.menu-open .endpoint-sidebar { transform: translateX(0); visibility: visible; box-shadow: 12px 10px 30px #30456714; }
  .shell.menu-open .menu-backdrop { display: block !important; position: fixed; inset: var(--header-height) 0 0; background: #3c4c6a40; z-index: 19; border: 0; border-radius: 0; }
  body:has(.shell.menu-open) { overflow: hidden; }
  .main-shell { margin-left: 0; }
  .breadcrumb { padding: 24px 28px 0; }
  .content { padding: 20px 28px 44px; }
  .page-heading { margin-bottom: 28px; }
  .login-layout { grid-template-columns: minmax(0,1fr) minmax(0,.8fr); max-width: none; gap: 36px; }
  .login-aside { border-top: 0; padding-top: 54px; }
  .docs-detail h2 { font-size: 22px; }
  .section-title { scroll-margin-top: 84px; }
  .notifications { right: 16px; bottom: 16px; }
}
@media (max-width: 600px) {
  .topbar { padding: 0 12px; gap: 6px; }
  .topbar-actions { gap: 4px; }
  .brand { gap: 9px; }
  .brand-mark { font-size: 24px; }
  .brand-label { font-size: 13px; max-width: 90px; line-height: 1.3; padding-left: 9px; }
  .identity { gap: 0; }
  .avatar { display: none; }
  .language-select { max-width: 83px; font-size: 12px; }
  .topbar .button { padding: 7px 10px; min-height: 34px; font-size: 12px; }
  .topbar .button .symbol { display: none; }
  .breadcrumb { padding: 22px 20px 0; }
  .content { padding: 20px 20px 40px; }
  h1 { font-size: 25px; }
  .page-heading { flex-wrap: wrap; align-items: flex-start; gap: 18px; margin-bottom: 26px; }
  .page-heading .heading-actions { flex: 1 1 auto; justify-content: flex-end; }
  .heading-actions .button { padding: 7px 11px; }
  .eyebrow { font-size: 11px; }
  .stats .stat { padding: 20px 16px; }
  .stat-label { font-size: 12px; gap: 7px; align-items: flex-start; }
  .stat-label .symbol { width: 16px; height: 16px; margin-top: 3px; }
  .stat-value { font-size: 29px; }
  .stat-foot { font-size: 11px; }
  .dashboard-grid { gap: 28px; margin-top: 28px; }
  .chart { gap: 12px; height: 185px; }
  .chart-bar { width: 28px; }
  .section-title h2 { font-size: 18px; }
  .section-title .small { font-size: 11px; }
  .login-layout { grid-template-columns: minmax(0,1fr); padding: 10px 0; gap: 32px; }
  .login-aside { padding-top: 26px; border-top: 1px solid var(--border); }
  .login-layout h1 { font-size: 24px; }
  .filters { gap: 10px; }
  .filters .field { min-width: 0; flex: 1; }
  .filters .search { flex-basis: 100%; max-width: none; order: -1; }
  .filters .button { padding: 9px 12px; }
  .docs-detail h2 { font-size: 22px; }
  .docs-detail h3 { font-size: 17px; }
  .docs-meta { gap: 7px; }
  .endpoint-path { padding: 14px 12px; gap: 12px; }
  .endpoint-path code { font-size: 12px; }
  .code-block { padding: 18px 14px; }
  .code-block pre { font-size: 12px; }
  .code-tabs { gap: 24px; }
  th, td { padding: 14px 12px; }
  .param-table { min-width: 420px; }
  .param-table td:first-child { max-width: 160px; }
  .debug-auth-grid, .debug-panel .field-row { grid-template-columns: minmax(0,1fr); }
  .debug-auth-grid > .button { grid-column: auto; justify-self: stretch; }
  .debug-auth { padding-top: 20px; }
  .response-editor { min-height: 260px; }
  .editor { min-height: 260px !important; }
  .request-actions { align-items: flex-start; }
  .request-actions > .button.primary { margin-left: auto; }
  .token-state { font-size: 11px; }
  .response-headers div { flex-wrap: wrap; gap: 3px; }
  .response-headers strong { min-width: 100px; }
  .checkbox-grid { gap: 14px 10px; }
  .checkbox-item { font-size: 11px; }
  dialog { padding: 22px; max-height: calc(100dvh - 32px); }
  .dialog-title h2 { font-size: 20px; }
  .dialog-title { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
