.docs-page {
  background:
    radial-gradient(
      circle at top left,
      color-mix(in srgb, var(--accent) 18%, transparent),
      transparent 32%
    ),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-body) 92%, #ffffff) 0%, var(--bg-body) 100%);
}

.docs-page-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.docs-view {
  color: var(--text-main);
}

.docs-view--standalone {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.docs-view--embedded {
  padding: 0;
  gap: 18px;
}

.docs-view__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent-soft) 55%, transparent),
      transparent 54%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg-panel-solid) 96%, transparent),
      var(--bg-panel)
    );
  box-shadow: var(--shadow-lg);
}

.docs-view__eyebrow,
.docs-view__section-kicker {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-view__hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.docs-view__hero-description {
  max-width: 760px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

.docs-view__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.docs-view__hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg-panel-solid) 72%, transparent);
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.docs-view__hero-link:hover {
  background: var(--bg-panel-solid);
}

.docs-view__hero-link--primary {
  border-color: color-mix(in srgb, var(--accent-hover) 45%, transparent);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--text-inverse);
  box-shadow:
    0 14px 28px color-mix(in srgb, var(--accent) 24%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.docs-view__hero-link--primary:visited,
.docs-view__hero-link--primary:hover,
.docs-view__hero-link--primary:active,
.docs-view__hero-link--primary:focus-visible {
  color: var(--text-inverse);
}

.docs-view__hero-link--primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-strong) 100%);
}

.docs-view__hero-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 18%, transparent);
  outline-offset: 2px;
}

.docs-view__hero-meta {
  display: grid;
  gap: 12px;
  align-content: start;
}

.docs-view__hero-card,
.docs-view__overview-card,
.docs-view__quickstart-card,
.docs-view__sidebar-card,
.docs-view__operation-card,
.docs-view__state {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-panel-solid) 92%, transparent);
  box-shadow: var(--shadow-sm);
}

.docs-view__hero-card {
  padding: 16px 18px;
}

.docs-view__hero-card span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-view__hero-card strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  word-break: break-all;
}

.docs-view__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
}

.docs-view__sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.docs-view--embedded .docs-view__sidebar {
  top: 0;
}

.docs-view__embedded-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: -16px;
  z-index: 20;
  margin: -16px -14px 18px -10px;
  padding: 14px 18px 12px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--border-light) 82%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-panel-solid) 96%, transparent),
    color-mix(in srgb, var(--bg-panel-solid) 90%, transparent)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.docs-view__embedded-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--bg-surface) 78%, transparent);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.docs-view__embedded-nav-link:hover {
  color: var(--text-main);
  background: color-mix(in srgb, var(--bg-panel-solid) 96%, transparent);
  box-shadow: var(--shadow-sm);
}

.docs-view__embedded-guide {
  padding: 18px 20px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent-soft) 24%, transparent),
      transparent 56%
    ),
    color-mix(in srgb, var(--bg-panel-solid) 94%, transparent);
}

.docs-view__embedded-guide-head h3 {
  font-size: 18px;
}

.docs-view__embedded-guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.docs-view__guide-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border-light);
  background: color-mix(in srgb, var(--bg-panel-solid) 94%, transparent);
  color: var(--text-main);
  text-decoration: none;
}

.docs-view__guide-step:hover {
  border-color: var(--border-strong);
  background: var(--bg-panel-solid);
}

.docs-view__guide-step span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-view__guide-step strong {
  font-size: 16px;
  line-height: 1.35;
}

.docs-view__guide-step code {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--accent-strong);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.docs-view__embedded-sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.docs-view__embedded-sections .docs-view__section {
  padding: 4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.docs-view__embedded-sections .docs-view__section--overview {
  display: none;
}

.docs-view__embedded-sections .docs-view__section + .docs-view__section {
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--border-light) 88%, transparent);
}

.docs-view__embedded-sections .docs-view__section-head {
  padding: 0 6px;
}

.docs-view__embedded-sections .docs-view__operations-grid {
  margin-top: 18px;
}

.docs-view__embedded-sections .docs-view__operation-card {
  border-radius: 18px;
  border-color: color-mix(in srgb, var(--border-light) 78%, transparent);
  background: color-mix(in srgb, var(--bg-panel-solid) 98%, transparent);
  box-shadow: none;
}

.docs-view--embedded .docs-view__meta-box {
  border-color: color-mix(in srgb, var(--border-light) 72%, transparent);
  background: color-mix(in srgb, var(--bg-surface) 72%, transparent);
}

.docs-view--embedded .docs-view__table {
  border: 0;
  background: transparent;
}

.docs-view--embedded .docs-view__table th {
  background: color-mix(in srgb, var(--bg-surface) 64%, transparent);
}

.docs-view--embedded .docs-view__table th,
.docs-view--embedded .docs-view__table td {
  border-bottom-color: color-mix(in srgb, var(--border-light) 72%, transparent);
}

.docs-view--embedded .docs-view__response-item {
  border-color: color-mix(in srgb, var(--border-light) 72%, transparent);
  background: color-mix(in srgb, var(--bg-surface) 70%, transparent);
}

.docs-view__sidebar-card {
  padding: 18px;
}

.docs-view__sidebar-title {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-view__sidebar-card nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-view__sidebar-card a,
.docs-view__sidebar-empty {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
}

.docs-view__sidebar-card a:hover {
  background: var(--bg-surface);
  color: var(--text-main);
}

.docs-view__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.docs-view__section {
  padding: 22px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--bg-panel-solid) 90%, transparent);
  box-shadow: var(--shadow-sm);
}

.docs-view__section--overview {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent-soft) 35%, transparent),
      transparent 36%
    ),
    color-mix(in srgb, var(--bg-panel-solid) 92%, transparent);
}

.docs-view__section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 12px 18px;
}

.docs-view__section-intro {
  margin-top: 8px;
  max-width: 820px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.docs-view__section-count {
  color: var(--text-muted);
  font-size: 13px;
}

.docs-view__overview-grid,
.docs-view__quickstart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.docs-view__overview-card,
.docs-view__quickstart-card {
  padding: 18px;
}

.docs-view__overview-card span,
.docs-view__quickstart-card span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-view__overview-card strong,
.docs-view__quickstart-card strong {
  display: block;
  margin-top: 14px;
  font-size: 18px;
}

.docs-view__overview-card p,
.docs-view__quickstart-card p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.docs-view__quickstart-card code {
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--accent-strong);
  font-size: 12px;
}

.docs-view__operations-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.docs-view__operation-card {
  padding: 20px;
}

.docs-view__operation-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.docs-view__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-view__pill--method {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.docs-view__pill--scope {
  background: var(--bg-surface);
  color: var(--text-main);
}

.docs-view__pill--permission {
  background: color-mix(in srgb, var(--bg-surface) 68%, transparent);
  color: var(--text-muted);
}

.docs-view__pill--required {
  min-height: 22px;
  font-size: 10px;
  background: var(--warn-soft);
  color: var(--warn-text);
}

.docs-view__operation-path {
  margin: 14px 0 0;
  font-size: 24px;
  letter-spacing: -0.02em;
  word-break: break-all;
}

.docs-view__operation-summary {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.docs-view__meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.docs-view__meta-box {
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.docs-view__meta-box span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-view__meta-box strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.docs-view__block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.docs-view__block h4 {
  margin: 0 0 10px;
  font-size: 17px;
}

.docs-view__callout {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.docs-view__table-wrap {
  overflow: auto;
}

.docs-view__table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-panel-solid);
}

.docs-view__table th,
.docs-view__table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.65;
}

.docs-view__table th {
  color: var(--text-muted);
  background: var(--bg-surface);
}

.docs-view__table tr:last-child td {
  border-bottom: 0;
}

.docs-view__param-name {
  font-weight: 700;
}

.docs-view__code-examples {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-panel-solid) 96%, transparent);
  overflow: hidden;
}

.docs-view__request-examples {
  display: grid;
  gap: 12px;
}

.docs-view__request-example {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-panel-solid) 96%, transparent);
  overflow: hidden;
}

.docs-view__request-example > span {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.docs-view__code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--border-light);
  background: color-mix(in srgb, var(--bg-surface) 74%, transparent);
}

.docs-view__code-tab {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.docs-view__code-tab:hover {
  color: var(--text-main);
  background: color-mix(in srgb, var(--bg-panel-solid) 76%, transparent);
}

.docs-view__code-tab.is-active {
  border-color: var(--border-light);
  background: var(--bg-panel-solid);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.docs-view__code-panels {
  display: block;
}

.docs-view__code-panel {
  display: none;
}

.docs-view__code-panel.is-active {
  display: block;
}

.docs-view__code-wrap {
  position: relative;
}

.docs-view__copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: color-mix(in srgb, var(--bg-panel-solid) 92%, transparent);
  color: var(--text-muted);
  font-size: 12px;
}

.docs-view__copy-btn:hover {
  background: var(--bg-panel-solid);
  color: var(--text-main);
}

.docs-view__code-block {
  margin: 0;
  padding: 20px;
  padding-top: 48px;
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.8;
}

.docs-view__response-list {
  display: grid;
  gap: 10px;
}

.docs-view__response-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  font-size: 13px;
  line-height: 1.7;
}

.docs-view__response-item strong {
  min-width: 36px;
  color: var(--warn-text);
}

.docs-view__state {
  padding: 28px;
  text-align: center;
}

.docs-view__state strong {
  display: block;
  font-size: 20px;
}

.docs-view__state p {
  margin-top: 10px;
  color: var(--text-muted);
}

@media (max-width: 1200px) {
  .docs-view__layout,
  .docs-view__hero {
    grid-template-columns: 1fr;
  }

  .docs-view__sidebar {
    position: static;
  }

  .docs-view__overview-grid,
  .docs-view__quickstart-grid,
  .docs-view__meta-grid,
  .docs-view__embedded-guide-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .docs-page-shell {
    width: min(100%, calc(100% - 20px));
    padding: 16px 0 28px;
  }

  .docs-view--embedded {
    gap: 14px;
  }

  .docs-view__hero,
  .docs-view__section,
  .docs-view__operation-card {
    padding: 16px;
  }

  .docs-view__embedded-guide {
    padding: 16px;
  }

  .docs-view__embedded-nav {
    gap: 8px;
  }

  .docs-view__embedded-nav-link {
    width: 100%;
    justify-content: center;
  }

  .docs-view__hero h1 {
    font-size: 30px;
  }

  .docs-view__operation-path {
    font-size: 20px;
  }

  .docs-view__table th,
  .docs-view__table td {
    min-width: 140px;
  }
}
