:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #18201e;
  background: #f4f6f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #18201e;
  --muted: #66706d;
  --line: #dce2df;
  --line-strong: #cbd4d0;
  --surface: #ffffff;
  --surface-soft: #f7f9f8;
  --brand: #0b6655;
  --brand-dark: #084c40;
  --brand-soft: #e8f3f0;
  --amber: #9a6207;
  --amber-soft: #fff5dc;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --sidebar: #15211e;
  --sidebar-muted: #a9b8b3;
}

* { box-sizing: border-box; }

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

body { margin: 0; min-width: 320px; min-height: 100vh; background: #f4f6f5; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
a { color: inherit; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 244px;
  flex-direction: column;
  color: #fff;
  background: var(--sidebar);
  border-right: 1px solid #283a35;
  transition: width 180ms ease, transform 180ms ease;
}

.brand { display: flex; align-items: center; gap: 11px; min-height: 78px; padding: 0 20px; border-bottom: 1px solid #2b3b37; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; color: #f4fcf9; background: #147a66; border-radius: 7px; }
.brand-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.brand strong { font-size: 15px; font-weight: 700; }
.brand span:not(.brand-mark) { color: var(--sidebar-muted); font-size: 12px; }
.sidebar-close { display: none !important; margin-left: auto; color: #fff !important; }

.nav-list { display: flex; flex: 1; flex-direction: column; gap: 5px; padding: 18px 12px; }
.nav-item {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  color: var(--sidebar-muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
}
.nav-item:hover { color: #fff; background: #22332e; }
.nav-item.active { color: #fff; background: #0c6957; }
.nav-item span { font-size: 14px; font-weight: 600; }

.sidebar-footer { padding: 12px; border-top: 1px solid #2b3b37; }
.sidebar-collapse-area { padding: 10px 12px; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; background: #28b889; border-radius: 50%; box-shadow: 0 0 0 3px rgba(40, 184, 137, 0.13); }

.sidebar.sidebar-collapsed { width: 72px; }
.sidebar-collapsed .brand { justify-content: center; padding: 0; }
.sidebar-collapsed .brand-copy, .sidebar-collapsed .nav-item span { display: none; }
.sidebar-collapsed .nav-item { justify-content: center; padding: 0; }
.sidebar-collapsed .sidebar-footer { padding-right: 9px; padding-left: 9px; }

.main-content { min-height: 100vh; margin-left: 244px; transition: margin-left 180ms ease; }
.main-content-expanded { margin-left: 72px; }
.records-page, .docs-page { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 42px 0 56px; }
.mobile-bar { display: none; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.page-heading h1 { margin: 5px 0 7px; color: var(--ink); font-size: 28px; line-height: 1.2; letter-spacing: 0; }
.page-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.eyebrow { color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }

.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.button-primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.button-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button-secondary { color: #34413e; background: #fff; border-color: var(--line-strong); }
.button-secondary:hover { background: var(--surface-soft); }
.button-danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.button-danger:hover { background: #912018; }

.icon-button { display: inline-grid; width: 34px; height: 34px; place-items: center; padding: 0; color: #52605c; background: transparent; border: 1px solid transparent; border-radius: 6px; }
.icon-button:hover { color: var(--ink); background: #eef2f0; border-color: var(--line); }
.icon-button-danger:hover { color: var(--danger); background: var(--danger-soft); border-color: #f3cac5; }

.summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.summary-strip div { display: flex; min-height: 82px; flex-direction: column; justify-content: center; gap: 5px; padding: 16px 22px; border-right: 1px solid var(--line); }
.summary-strip div:last-child { border-right: 0; }
.summary-strip span { color: var(--muted); font-size: 12px; }
.summary-strip strong { color: var(--ink); font-size: 23px; font-variant-numeric: tabular-nums; }

.table-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.search-box { display: flex; width: min(440px, 100%); height: 38px; align-items: center; gap: 9px; padding: 0 11px; color: #7a8581; background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 102, 85, 0.1); }
.search-box input { min-width: 0; flex: 1; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 13px; }
.search-box button { display: grid; width: 24px; height: 24px; place-items: center; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 4px; }
.table-toolbar select { height: 38px; min-width: 168px; padding: 0 34px 0 11px; color: #34413e; background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; font-size: 13px; }
.table-toolbar select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 102, 85, 0.1); }
.refresh-button { width: 38px; height: 38px; margin-left: auto; background: #fff; border-color: var(--line-strong); }

.error-banner { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; padding: 11px 13px; color: #8d251d; background: var(--danger-soft); border: 1px solid #f1c8c3; border-radius: 6px; font-size: 13px; }
.error-banner span { flex: 1; }
.error-banner button { display: grid; width: 25px; height: 25px; place-items: center; color: inherit; background: transparent; border: 0; border-radius: 4px; }

.table-region { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 780px; border-collapse: collapse; table-layout: fixed; }
th { height: 43px; padding: 0 18px; color: #5e6a66; background: #f7f9f8; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; text-align: left; }
th:first-child { width: 42%; }
th:nth-child(2) { width: 25%; }
th:nth-child(3) { width: 22%; }
th.actions-column { width: 96px; text-align: right; }
td { height: 76px; padding: 12px 18px; color: #394641; border-bottom: 1px solid #e8ecea; font-size: 13px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfb; }
.record-primary { display: flex; min-width: 0; align-items: flex-start; gap: 11px; }
.record-primary > div { min-width: 0; }
.record-primary strong { display: block; overflow: hidden; margin-bottom: 5px; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.record-primary p { display: -webkit-box; overflow: hidden; max-width: 510px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.record-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 6px; }
.file-link { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; color: #176552; text-decoration: none; }
.file-link:hover { text-decoration: underline; }
.file-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
time { color: #52605c; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; justify-content: flex-end; gap: 3px; }

.table-footer { display: flex; min-height: 52px; align-items: center; justify-content: space-between; padding: 0 14px 0 18px; color: var(--muted); background: #fbfcfc; border-top: 1px solid var(--line); font-size: 12px; }
.pagination { display: flex; gap: 5px; }
.pagination .icon-button { background: #fff; border-color: var(--line); }

.empty-state { display: flex; min-height: 270px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #8a9490; }
.empty-state strong { color: #46524e; font-size: 14px; }
.empty-state span { font-size: 12px; }

.skeleton-row span { display: block; width: 72%; height: 12px; background: #edf1ef; border-radius: 4px; animation: pulse 1.3s ease-in-out infinite; }
.skeleton-row td:nth-child(2) span { width: 88%; }
.skeleton-row td:last-child span { width: 45px; margin-left: auto; }
@keyframes pulse { 50% { opacity: 0.45; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(11, 20, 17, 0.55); }
.modal, .token-dialog, .confirm-dialog { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border: 1px solid #d6ddda; border-radius: 8px; box-shadow: 0 24px 70px rgba(10, 25, 20, 0.25); }
.modal-header { display: flex; min-height: 78px; align-items: center; justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.modal-header h2, .confirm-dialog h2 { margin: 3px 0 0; color: var(--ink); font-size: 19px; letter-spacing: 0; }
.record-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; padding: 22px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: #34413e; font-size: 12px; font-weight: 700; }
.field input, .field textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; font-size: 13px; font-weight: 400; }
.field input { height: 40px; padding: 0 11px; }
.field textarea { min-height: 190px; padding: 10px 11px; line-height: 1.6; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 102, 85, 0.1); }
.field-hint { align-self: flex-end; color: #89938f; font-size: 11px; font-weight: 400; }
.field-error { color: var(--danger); font-size: 11px; font-weight: 500; }
.field em { margin-left: 4px; color: #89938f; font-size: 10px; font-style: normal; font-weight: 500; }
.required-mark { color: var(--danger); font-weight: 700; }
.modal-actions { display: flex; grid-column: 1 / -1; align-items: center; justify-content: flex-end; gap: 9px; margin: 3px -22px -22px; padding: 15px 22px; background: #fafbfb; border-top: 1px solid var(--line); }

.confirm-dialog { width: min(430px, 100%); padding: 22px; }
.confirm-header { display: flex; align-items: center; justify-content: space-between; }
.warning-icon { display: grid; width: 38px; height: 38px; place-items: center; color: var(--danger); background: var(--danger-soft); border-radius: 7px; }
.confirm-dialog h2 { margin-top: 17px; }
.confirm-dialog p { margin: 9px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.confirm-dialog .modal-actions { margin: 0; padding: 15px 0 0; background: transparent; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; min-height: 42px; align-items: center; gap: 10px; padding: 0 15px; color: #fff; background: #1c2b27; border: 1px solid #344640; border-radius: 6px; box-shadow: 0 10px 30px rgba(10, 22, 18, 0.2); font-size: 13px; font-weight: 600; }

.docs-heading { align-items: center; }
.method { display: inline-grid; width: 60px; height: 25px; place-items: center; border-radius: 4px; font-size: 10px; font-weight: 900; }
.method-get { color: #0a5f90; background: #e7f4fb; }
.method-post { color: #0b6655; background: #e8f3f0; }
.method-patch { color: #8a5705; background: #fff2d5; }
.method-delete { color: #a52319; background: #fdecea; }
.code-section { min-width: 0; overflow: hidden; background: #192420; border: 1px solid #2b3b36; border-radius: 6px; }
.code-section header { display: flex; height: 38px; align-items: center; justify-content: space-between; padding: 0 11px 0 13px; color: #afbeb9; background: #22312c; border-bottom: 1px solid #34433e; font-size: 10px; font-weight: 700; }
pre { overflow-x: auto; margin: 0; }
.code-section pre { min-height: 102px; padding: 14px; color: #dce8e4; font-size: 11px; line-height: 1.65; }
.required-badge { display: inline-flex; height: 20px; align-items: center; padding: 0 6px; color: #a52319; background: #fdecea; border-radius: 4px; font-size: 10px; font-weight: 700; }
.optional-label { color: #75807c; font-size: 10px; }

.api-overview { display: grid; grid-template-columns: minmax(360px, 2fr) repeat(3, minmax(130px, 1fr)); margin-bottom: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.api-overview > div { display: flex; min-height: 88px; flex-direction: column; justify-content: center; gap: 5px; padding: 15px 18px; border-right: 1px solid var(--line); }
.api-overview > div:last-child { border-right: 0; }
.api-overview > div > span, .api-overview-primary > div > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.api-overview > div > strong { color: #303d39; font-size: 12px; }
.api-overview .api-overview-primary { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px; }
.api-overview-primary > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.api-overview-primary code { overflow: hidden; color: var(--brand-dark); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.api-overview-primary small { color: #82908b; font-size: 10px; }
.api-overview-icon { display: grid; width: 32px; height: 32px; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 6px; }

.api-index { display: flex; min-height: 48px; align-items: center; gap: 18px; margin-bottom: 18px; padding: 0 16px; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 7px; white-space: nowrap; }
.api-index > span { color: #7a8581; font-size: 10px; font-weight: 800; }
.api-index button { display: inline-flex; align-items: center; gap: 6px; padding: 0; color: #44514d; background: transparent; border: 0; font-size: 11px; font-weight: 600; }
.api-index button:hover { color: var(--brand); }
.method-text { font-size: 9px; }
.method-text-get { color: #0a6a9f; }
.method-text-post { color: #0b7460; }
.method-text-patch { color: #9a6207; }
.method-text-delete { color: #b42318; }

.api-operation-list { display: flex; flex-direction: column; gap: 18px; }
.api-operation { scroll-margin-top: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.operation-header { display: grid; grid-template-columns: 62px minmax(180px, 0.65fr) minmax(300px, 1fr); min-height: 82px; align-items: center; gap: 15px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.operation-header > code { overflow: hidden; color: #25332f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.operation-header h2 { margin: 0 0 4px; color: var(--ink); font-size: 15px; }
.operation-header p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.operation-columns { display: grid; grid-template-columns: 1fr 1fr; }
.operation-column { min-width: 0; padding: 18px; }
.response-column { border-left: 1px solid var(--line); }
.operation-section-title { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; }
.operation-section-title > span { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 5px; font-size: 9px; font-weight: 800; }
.operation-section-title h3 { margin: 0 0 2px; color: #2c3935; font-size: 12px; }
.operation-section-title p { margin: 0; color: #84908c; font-size: 10px; line-height: 1.5; }
.example-title { margin-top: 17px; }

.docs-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.docs-data-table { width: 100%; min-width: 500px; table-layout: auto; }
.docs-data-table th { width: auto !important; height: 34px; padding: 0 10px; background: #f7f9f8; font-size: 9px; text-align: left !important; }
.docs-data-table td { height: 40px; padding: 7px 10px; font-size: 10px; line-height: 1.45; }
.docs-data-table td code { color: var(--brand-dark); font-size: 10px; }
.request-parameter-table th:nth-child(1) { width: 16% !important; }
.request-parameter-table th:nth-child(2) { width: 11% !important; }
.request-parameter-table th:nth-child(3) { width: 18% !important; }
.request-parameter-table th:nth-child(4) { width: 10% !important; }
.response-field-table th:nth-child(1) { width: 27% !important; }
.response-field-table th:nth-child(2) { width: 24% !important; }
.response-table-wrap { max-height: 296px; overflow: auto; }
.operation-code pre { min-height: 140px; max-height: 280px; }

.status-code-row { display: flex; min-height: 54px; align-items: center; gap: 17px; padding: 9px 18px; background: #f8faf9; border-top: 1px solid var(--line); }
.status-code-row > span { color: #68736f; font-size: 10px; font-weight: 800; }
.status-code-row > div { display: inline-flex; align-items: center; gap: 6px; }
.status-code-row code { color: var(--brand-dark); font-size: 10px; font-weight: 800; }
.status-code-row div span { color: #697570; font-size: 10px; }

.error-reference { display: grid; grid-template-columns: minmax(240px, 0.7fr) minmax(420px, 1.3fr); gap: 24px; align-items: center; margin-top: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.error-reference h2 { margin: 4px 0 7px; font-size: 17px; }
.error-reference p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.error-reference .code-section pre { min-height: 150px; }

.sidebar-scrim { display: none; }

@media (max-width: 900px) {
  .sidebar, .sidebar.sidebar-collapsed { width: 224px; transform: translateX(-100%); }
  .sidebar.sidebar-open { transform: translateX(0); }
  .sidebar-collapsed .brand { justify-content: flex-start; padding: 0 20px; }
  .sidebar-collapsed .brand-copy, .sidebar-collapsed .nav-item span { display: flex; }
  .sidebar-collapsed .nav-item { justify-content: flex-start; padding: 0 12px; }
  .sidebar-close { display: inline-grid !important; }
  .collapse-button { display: none; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(12, 22, 18, 0.42); border: 0; }
  .main-content, .main-content-expanded { margin-left: 0; }
  .mobile-bar { display: flex; height: 58px; align-items: center; gap: 10px; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--line); }
  .mobile-bar strong { font-size: 14px; }
  .records-page, .docs-page { width: min(100% - 36px, 1240px); padding-top: 28px; }
  .api-overview { grid-template-columns: 1.6fr 1fr; }
  .api-overview > div { border-bottom: 1px solid var(--line); }
  .api-overview > div:nth-child(2) { border-right: 0; }
  .api-overview > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .operation-columns { grid-template-columns: 1fr; }
  .response-column { border-top: 1px solid var(--line); border-left: 0; }
  .error-reference { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .records-page, .docs-page { width: calc(100% - 24px); padding: 22px 0 36px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading .button { width: 100%; }
  .summary-strip { grid-template-columns: 1fr; }
  .summary-strip div { min-height: 65px; border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-strip div:last-child { border-bottom: 0; }
  .table-toolbar { flex-wrap: wrap; }
  .search-box { width: 100%; }
  .table-toolbar select { min-width: 0; flex: 1; }
  .refresh-button { margin-left: 0; }
  .record-form { grid-template-columns: 1fr; padding: 17px; }
  .modal-actions { margin-right: -17px; margin-bottom: -17px; margin-left: -17px; padding-right: 17px; padding-left: 17px; }
  .modal-header { padding-right: 17px; padding-left: 17px; }
  .api-overview { grid-template-columns: 1fr; }
  .api-overview > div { min-height: 68px; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .api-overview > div:last-child { border-bottom: 0 !important; }
  .api-overview .api-overview-primary { grid-template-columns: 30px minmax(0, 1fr); }
  .api-overview-primary small { white-space: normal; }
  .api-index { padding-right: 12px; padding-left: 12px; }
  .operation-header { grid-template-columns: 58px minmax(0, 1fr); gap: 9px; padding: 13px; }
  .operation-header > div { grid-column: 1 / -1; }
  .operation-column { padding: 13px; }
  .docs-data-table { min-width: 580px; }
  .operation-code pre { min-height: 170px; max-height: 300px; }
  .status-code-row { align-items: flex-start; flex-wrap: wrap; gap: 9px 14px; }
  .status-code-row > span { width: 100%; }
  .error-reference { padding: 16px; }
  .toast { right: 12px; bottom: 12px; left: 12px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* API documentation workspace */
.api-overview { grid-template-columns: minmax(380px, 1.4fr) minmax(440px, 1fr); margin-bottom: 18px; }
.api-overview .api-overview-primary { display: grid; min-height: 88px; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; padding: 16px 18px; border-right: 1px solid var(--line); }
.api-overview-primary > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.api-overview-primary > div > span { color: var(--muted); font-size: 10px; font-weight: 800; }
.api-overview-primary code { overflow: hidden; color: var(--brand-dark); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.api-overview-primary small { color: #82908b; font-size: 10px; }
.api-overview-icon { display: grid; width: 36px; height: 36px; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 6px; }
.api-overview-meta { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.api-overview-meta > div { display: flex; min-width: 0; min-height: 44px; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.api-overview-meta > div:nth-child(2n) { border-right: 0; }
.api-overview-meta > div:nth-last-child(-n + 2) { border-bottom: 0; }
.api-overview-meta dt { color: var(--muted); font-size: 10px; font-weight: 700; }
.api-overview-meta dd { overflow: hidden; margin: 0; color: #303d39; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.mobile-endpoint-picker { display: none; }
.api-docs-workspace { display: grid; grid-template-columns: 246px minmax(0, 1fr); align-items: start; overflow: visible; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.endpoint-directory { position: sticky; top: 18px; min-width: 0; overflow: hidden; background: #f8faf9; border-right: 1px solid var(--line); border-radius: 7px 0 0 7px; }
.endpoint-directory > header { padding: 20px 18px 15px; border-bottom: 1px solid var(--line); }
.endpoint-directory h2 { margin: 5px 0 4px; color: var(--ink); font-size: 16px; }
.endpoint-directory p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.endpoint-directory nav { display: flex; flex-direction: column; padding: 8px; }
.endpoint-directory nav button { display: grid; width: 100%; min-height: 64px; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 10px; color: #43504c; background: transparent; border: 1px solid transparent; border-radius: 6px; text-align: left; }
.endpoint-directory nav button:hover { background: #fff; border-color: var(--line); }
.endpoint-directory nav button.active { color: var(--brand-dark); background: #fff; border-color: #bcd9d1; box-shadow: 0 3px 10px rgba(24, 62, 51, 0.06); }
.endpoint-directory-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.endpoint-directory-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.endpoint-directory-copy code { overflow: hidden; color: #7a8581; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.endpoint-document { min-width: 0; }
.endpoint-document-header { padding: 28px 30px 24px; border-bottom: 1px solid var(--line); }
.endpoint-route-line { display: flex; min-width: 0; align-items: center; gap: 10px; margin-bottom: 14px; }
.endpoint-route-line > code { overflow: hidden; color: #34413e; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.endpoint-document-header h2 { margin: 0 0 8px; color: var(--ink); font-size: 22px; }
.endpoint-document-header p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.docs-module-nav { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px; background: rgba(248, 250, 249, 0.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.docs-module-nav button { display: flex; min-width: 0; height: 48px; align-items: center; justify-content: center; gap: 7px; padding: 0 8px; color: #63706b; background: transparent; border: 0; border-right: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.docs-module-nav button:last-child { border-right: 0; }
.docs-module-nav button:hover { color: var(--brand); background: #fff; }
.endpoint-document-body { min-width: 0; }
.doc-section { scroll-margin-top: 72px; padding: 28px 30px; border-bottom: 1px solid var(--line); }
.doc-section:last-child { border-bottom: 0; }
.doc-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.doc-section-heading > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 5px; font-size: 9px; font-weight: 800; }
.doc-section-heading h3 { margin: 1px 0 4px; color: #26332f; font-size: 15px; }
.doc-section-heading p { margin: 0; color: #7a8581; font-size: 11px; line-height: 1.55; }
.doc-section-heading p code { color: var(--brand-dark); }
.request-facts { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 6px; }
.request-facts > div { display: grid; min-height: 52px; grid-template-columns: 140px minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--line); }
.request-facts > div:last-child { border-bottom: 0; }
.request-facts dt { align-self: stretch; display: flex; align-items: center; padding: 0 14px; color: #5f6b67; background: #f7f9f8; font-size: 10px; font-weight: 800; }
.request-facts dd { display: flex; min-width: 0; align-items: center; gap: 10px; margin: 0; padding: 9px 12px; color: #34413e; font-size: 11px; }
.request-facts dd > code { overflow: hidden; color: var(--brand-dark); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.response-table-wrap { max-height: none; overflow: auto; }
.operation-code pre { min-height: 132px; max-height: 360px; }
.status-code-table { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.status-code-table > div { display: grid; min-height: 44px; grid-template-columns: 110px minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--line); }
.status-code-table > div:last-child { border-bottom: 0; }
.status-code-table code { align-self: stretch; display: flex; align-items: center; padding: 0 14px; color: var(--brand-dark); background: #f7f9f8; font-size: 11px; font-weight: 800; }
.status-code-table span { padding: 0 14px; color: #56625e; font-size: 11px; }
.common-error-section { background: #fbfcfc; }

@media (max-width: 900px) {
  .api-overview { grid-template-columns: 1fr; }
  .api-overview .api-overview-primary { border-right: 0; border-bottom: 1px solid var(--line); }
  .api-docs-workspace { grid-template-columns: 210px minmax(0, 1fr); }
  .endpoint-directory nav button { grid-template-columns: 48px minmax(0, 1fr); padding-right: 8px; padding-left: 8px; }
  .endpoint-document-header, .doc-section { padding-right: 22px; padding-left: 22px; }
  .docs-module-nav button { flex-direction: column; gap: 3px; font-size: 9px; }
}

@media (max-width: 680px) {
  .api-overview .api-overview-primary { grid-template-columns: 30px minmax(0, 1fr); border-bottom: 1px solid var(--line) !important; }
  .api-overview-meta { grid-template-columns: 1fr 1fr; }
  .mobile-endpoint-picker { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
  .mobile-endpoint-picker label { color: #4d5a56; font-size: 11px; font-weight: 800; }
  .mobile-endpoint-picker select { width: 100%; height: 42px; padding: 0 36px 0 12px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; font-size: 12px; font-weight: 600; }
  .api-docs-workspace { display: block; }
  .endpoint-directory { display: none; }
  .endpoint-document-header { padding: 20px 16px 18px; }
  .endpoint-document-header h2 { font-size: 19px; }
  .docs-module-nav { top: 58px; grid-template-columns: repeat(5, 68px); overflow-x: auto; justify-content: start; }
  .docs-module-nav button { height: 52px; border-right: 1px solid var(--line); }
  .doc-section { scroll-margin-top: 126px; padding: 22px 16px; }
  .request-facts > div { grid-template-columns: 96px minmax(0, 1fr); }
  .request-facts dt { padding: 0 10px; }
  .request-facts dd { padding-right: 9px; padding-left: 9px; }
  .status-code-table > div { grid-template-columns: 76px minmax(0, 1fr); }
}
