:root {
  --bg: #ffffff;
  --bg-subtle: #f6f8fa;
  --bg-sidebar: #fafbfc;
  --panel: #ffffff;
  --soft: #f6f8fa;
  --line: #e1e4e8;
  --line-strong: #d0d7de;
  --text: #24292f;
  --muted: #57606a;
  --accent: #1767d1;
  --accent-soft: #eef2ff;
  --hero-tone: linear-gradient(135deg, #fafbff 0%, #f6f8fa 100%);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --radius-sm: 6px;
  --note-bg: #fff8e6;
  --note-border: #f5a623;
  --note-text: #7a4f01;
  --table-code-head-bg: #fff4ec;
  --table-code-head-text: #7a321f;
  --table-code-line: #eadfd8;
  --table-code-text: #c23a2b;
  --code-shell: #191a1d;
  --code-head: #1d1e22;
  --code-body: #080c0d;
  --code-pill: #3a3a3d;
  --code-pill-hover: #46464a;
  --code-badge-bg: #ffc49f;
  --code-accent: #ffbe98;
  --code-text: #d7e4ea;
  --code-muted: #8a9299;
  --code-scroll: #55595e;
  --syntax-keyword: #55baff;
  --syntax-property: #8edbff;
  --syntax-string: #eba27f;
  --syntax-number: #b8d9ad;
  --syntax-comment: #7d8990;
  --syntax-punctuation: #c9d4dc;
  --syntax-operator: #d4dee5;
  --syntax-function: #d8d78f;
  --sidebar-w: 260px;
  --header-h: 64px;
  --content-max: 860px;
  --font-body:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Courier New",
    monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
}

code,
pre {
  font-family: var(--font-mono);
}

.hidden {
  display: none !important;
}

.brand-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(4px);
}

.brand-loading-card {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  box-shadow: var(--shadow);
}

body.brand-loading .app-shell {
  visibility: hidden;
}

.fatal-state,
.loading-state,
.error-state,
.empty-state {
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--muted);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 230px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand strong {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand span,
.sidebar-head span,
.home-page-subtitle,
.release-step-item span,
.product-chip,
.product-sidebar-text,
.country-title-sub,
.doc-bar-text,
.result-meta,
.tool-page-head p,
.search-result-meta,
.hub-note p,
.hub-hero p,
.home-card p {
  color: var(--muted);
}

.topbar-center {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.topbar-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: 260px;
  max-width: 34vw;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(23, 103, 209, 0.14);
}

.topbar-ticker-label {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 103, 209, 0.12);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--accent);
}

.topbar-ticker-viewport {
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 16px,
    #000 calc(100% - 16px),
    transparent
  );
}

.topbar-ticker-track {
  display: flex;
  width: max-content;
  animation: topbar-ticker-scroll 14s linear infinite;
}

.topbar-ticker-text {
  padding-right: 32px;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text);
}

@keyframes topbar-ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-ticker-track {
    animation: none;
    transform: none;
  }

  .topbar-ticker-text[aria-hidden="true"] {
    display: none;
  }
}

.topbar-find {
  flex: 0 0 420px;
  max-width: 100%;
  display: block;
}

.topbar-search {
  flex: 0 0 320px;
  max-width: 100%;
}

.page-find-field {
  position: relative;
}

.topbar-find input,
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  outline: none;
}

.topbar-find input {
  height: 38px;
  min-height: 38px;
  padding: 8px 124px 8px 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.page-find-controls {
  position: absolute;
  top: 50%;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 2px;
  transform: translateY(-50%);
}

.page-find-count {
  min-width: 46px;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.page-find-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #555;
  cursor: pointer;
  line-height: 1;
}

.page-find-button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.page-find-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.find-chevron {
  width: 10px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.find-chevron-up {
  transform: translateY(3px) rotate(45deg);
}

.find-chevron-down {
  transform: translateY(-1px) rotate(225deg);
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 240px;
  padding: 12px;
  resize: vertical;
}

.topbar-find input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.topbar-actions,
.topbar-nav,
.env-switch,
.locale-switch,
.doc-bar-actions,
.product-meta-row,
.hub-chip-row,
.product-meta-row,
.hub-chip-row,
.result-meta-row,
.doc-toc-grid {
  display: flex;
  justify-content: end;
}

.topbar-actions {
  gap: 12px;
}

.topbar-nav {
  gap: 8px;
}

.sidebar-country-select {
  position: relative;
  display: block;
  width: 100%;
}

.custom-country-select.is-disabled .select-trigger,
.custom-country-select .select-trigger-static {
  cursor: default;
  pointer-events: none;
  opacity: 0.92;
}

.custom-country-select.is-disabled .select-trigger:hover,
.custom-country-select .select-trigger-static:hover {
  border-color: #e4eaf2;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.custom-country-select.is-disabled .select-arrow,
.custom-country-select .select-trigger-static .select-arrow {
  display: none;
}

.custom-country-select .select-trigger {
  width: 100%;
  min-height: 42px;
  padding: 0px 12px;
  border: 2px solid #e4eaf2;
  border-radius: 14px;
  background: #fff;
  color: #1f2a44;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  user-select: none;
}

.custom-country-select .select-trigger:hover,
.custom-country-select .select-trigger.open {
  border-color: #635bff;
  background: rgba(99, 91, 255, 0.02);
}

.custom-country-select .select-trigger:focus-visible {
  outline: 2px solid #635bff;
  outline-offset: 2px;
}

.custom-country-select .trigger-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.custom-country-select .flag {
  font-size: 20px;
  line-height: 1;
}

.custom-country-select .country-name,
.custom-country-select .option-name {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-country-select .country-code,
.custom-country-select .option-code {
  flex-shrink: 0;
  padding: 0 8px;
  border-radius: 30px;
  background: #f2f6fd;
  color: #8a9bb0;
  font-size: 12px;
  font-weight: 400;
}

.custom-country-select .select-arrow {
  margin-left: 6px;
  color: #8a9bb0;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.custom-country-select .select-trigger.open .select-arrow {
  transform: rotate(180deg);
}

.custom-country-select .select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;
  width: 100%;
  max-height: 200px;
  padding: 6px 4px;
  overflow-y: auto;
  border: 2px solid #e4eaf2;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 16px 40px -12px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 0.2s cubic-bezier(0.2, 0, 0, 1),
    transform 0.2s cubic-bezier(0.2, 0, 0, 1),
    visibility 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.custom-country-select .select-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.custom-country-select .select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 4px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #1f2a44;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.custom-country-select .select-option:hover {
  background: rgba(99, 91, 255, 0.06);
}

.custom-country-select .select-option:focus-visible {
  outline: 2px solid #635bff;
  outline-offset: -2px;
}

.custom-country-select .select-option.selected {
  background: #635bff;
  color: #fff;
}

.custom-country-select .select-option.selected .option-code {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.custom-country-select .select-dropdown::-webkit-scrollbar {
  width: 4px;
}

.custom-country-select .select-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.custom-country-select .select-dropdown::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background: #d0d8e4;
}

.custom-country-select .select-dropdown::-webkit-scrollbar-thumb:hover {
  background: #b0baca;
}

.topbar-nav-button,
.env-button,
.locale-button,
.sidebar-button,
.doc-nav-button,
.back-button,
.product-card-button,
.code-tab,
.doc-link-button,
.toc-chip,
.search-result-card,
.action-button,
.hub-card {
  border: 0;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.topbar-nav-button,
.env-button,
.locale-button {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
}

.topbar-nav-button.active,
.env-button.active,
.locale-button.active,
.sidebar-button.active,
.doc-nav-button.active,
.code-tab.active,
.doc-link-button.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.env-switch,
.locale-switch {
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.workspace {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-h));
}

.sidebar {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  border-right: 1px solid var(--line);
  background: var(--bg-sidebar);
  overflow: auto;
}

.sidebar-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-sidebar);
}

.sidebar-body {
  padding: 12px 0 40px;
}

.sidebar-button,
.doc-nav-button {
  width: 100%;
  display: block;
  padding: 7px 20px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: left;
  line-height: 1.45;
}

.sidebar-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.doc-nav-button:hover,
.sidebar-button:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.doc-nav-button.active,
.sidebar-button.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.sidebar-button:hover,
.doc-nav-button:hover,
.product-card-button:hover,
.search-result-card:hover,
.hub-card:hover,
.topbar-nav-button:hover,
.env-button:hover,
.doc-link-button:hover,
.toc-chip:hover,
.action-button:hover {
  transition:
    color 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease;
}

.sidebar-country-switcher {
  display: grid;
  gap: 8px;
}

.sidebar-country-switcher-standalone {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-section {
  display: grid;
  gap: 0;
}

.sidebar-section + .sidebar-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.sidebar-section-head {
  display: grid;
  gap: 4px;
}

.sidebar-section-head strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.sidebar-section-head span {
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
}

.sidebar-section-docs .product-sidebar-summary-compact {
  margin-top: -2px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-empty-state {
  margin-top: 8px;
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
}

.country-sidebar-button {
  justify-content: flex-start;
  gap: 12px;
  border-left: 0;
  padding: 10px 16px;
}

.country-sidebar-button.active {
  border-left: 0;
}

.country-sidebar-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.country-sidebar-button.active .country-code-pill {
  background: var(--accent);
  color: #fff;
}

.country-code-pill,
.card-code-pill,
.search-country-pill,
.hub-pill,
.search-kind-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.country-title-block {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sidebar-badge,
.search-kind-pill {
  white-space: nowrap;
}

.markdown-body h2 .doc-heading-title-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.doc-title-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #389e0d;
  vertical-align: middle;
}

.content-area {
  padding: 36px 48px 80px;
  min-width: 0;
}

.page-view {
  display: block;
  width: 100%;
  max-width: var(--content-max);
}

.home-page,
.tool-page,
.doc-page {
  display: grid;
  gap: 2.5rem;
}

.home-page-simple {
  gap: 0;
}

.home-page-shell {
  display: block;
  min-width: 0;
}

.home-long-page {
  display: grid;
  gap: 2.5rem;
  min-width: 0;
}

.home-long-page > *,
.home-doc-module,
.home-country-highlight,
.tool-page,
.markdown-body {
  min-width: 0;
  max-width: 100%;
}

.home-page-after-tools {
  margin-top: 2.5rem;
}

.home-tool-module {
  margin-top: 2.5rem;
}

.home-module-anchor,
.home-tool-module,
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.page-find-hit {
  padding: 0 1px;
  border-radius: 2px;
  background: #fff2a8;
  color: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.page-find-hit.active {
  background: #ffbd59;
  box-shadow: 0 0 0 2px color-mix(in srgb, #ffbd59 34%, transparent);
}

.release-banner,
.home-country-highlight,
.hub-card,
.hub-note,
.home-card,
.search-result-card,
.home-stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.home-doc-module,
.doc-bar,
.tool-page,
.markdown-body {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-doc-module {
  display: grid;
  gap: 1rem;
  padding: 0;
  overflow: visible;
  margin-bottom: 0;
}

.home-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.home-module-head > div {
  min-width: 0;
}

.home-module-head h2 {
  margin: 0.35rem 0 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.home-module-meta {
  /* display: flex; TODO */
  display: none;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  max-width: min(420px, 50%);
}

.release-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: 18px;
  padding: 24px;
  background: var(--hero-tone);
}

.release-eyebrow,
.doc-eyebrow,
.country-highlight-title,
.hub-badge {
  display: inline-block;
  width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
}

.release-banner h1,
.hub-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.release-step-card {
  height: 100%;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.release-step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.release-step-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  margin-top: 14px;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-stat-card {
  padding: 18px;
}

.home-stat-card strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.home-country-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 16px;
  padding: 18px 20px;
}

.country-highlight-main strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 22px;
}

.country-highlight-meta {
  /* TODO */
  display: none;
  /* display: flex; */
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2,
.hub-note h3 {
  margin: 0;
  font-size: 20px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-count {
  color: var(--muted);
  font-weight: 600;
}

.country-card-grid,
.search-result-list,
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.home-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card-button,
.search-result-card {
  width: 100%;
  padding: 0;
  background: transparent;
}

.home-capability-card,
.home-card {
  height: 100%;
  padding: 18px;
  text-align: left;
}

.home-capability-card {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.home-capability-card h3 {
  margin: 14px 0 8px;
  font-size: 20px;
}

.home-capability-card p {
  margin: 0;
  color: var(--muted);
}

.home-capability-highlight {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.home-card-top,
.hub-card-top,
.search-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-card h3,
.hub-card h2,
.search-result-card h3 {
  margin: 12px 0 6px;
  font-size: 22px;
}

.card-cta,
.hub-link {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.home-card p {
  margin: 0 0 14px;
}

.country-card-detail-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.country-card-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(247, 249, 252, 0.92);
}

.country-card-detail span {
  color: var(--muted);
}

.country-card-detail strong {
  text-align: right;
}

.home-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  color: var(--muted);
}

.home-module-meta .product-chip {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
}

.product-chip,
.meta-pill,
.hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.meta-pill strong {
  color: var(--text);
}

.sidebar-section-countries {
  gap: 0;
}

.sidebar-section-head-compact {
  gap: 0;
}

.sidebar-section-head-compact strong {
  font-size: 14px;
}

.sidebar-section-tool {
  margin-bottom: 0;
}

.sidebar-section-tool + .sidebar-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.doc-sidebar-top {
  margin-bottom: 14px;
}

.back-button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.product-sidebar-summary,
.doc-sidebar-group {
  display: grid;
  gap: 0;
  margin-bottom: 0;
}

.product-sidebar-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.doc-sidebar-group-title {
  padding: 7px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}

.doc-sidebar-group .doc-nav-button {
  padding-left: 36px;
  font-size: 0.8125rem;
}

.sidebar-section-docs .sidebar-section-head-compact {
  padding: 0 16px 12px;
}

.doc-bar {
  display: block;
  gap: 0;
  padding: 0 0 0.75rem;
  min-height: 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.doc-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0.35rem 0 0.5rem;
  flex-wrap: wrap;
  min-height: 0;
}

.doc-bar-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.doc-bar-text {
  min-height: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc-bar-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.doc-link,
.doc-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.doc-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px 16px;
  align-items: stretch;
}

.doc-meta.doc-meta-api {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.05);
  margin: 1rem 0 1.25rem;
}

.doc-meta.doc-meta-api-static {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.doc-meta.doc-meta-api-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.doc-meta-route-label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.doc-meta-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #e8f0ff;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.doc-meta-request-target {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 32px;
  padding: 0 18px;
  border: 1px solid #e3eaf3;
  border-radius: 12px;
  background: #fff;
}

.doc-meta-request-target-static {
  min-height: 42px;
}

.doc-meta-static-input {
  width: 100%;
  min-width: 0;
}

.doc-meta-domain-input {
  width: 320px;
  min-height: 0;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #4b5565;
  font-family: var(--font-mono);
  font-size: 14px;
}

.doc-meta-domain-input:focus {
  border: 0;
  box-shadow: none;
}

.doc-meta-path {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.doc-meta-try-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  padding: 0 20px;
  border: 0;
  border-radius: 22px;
  background: #2b67e7;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.doc-meta-try-caret {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.doc-meta .meta-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 0;
  height: 100%;
  padding: 12px 14px;
  border-radius: 14px;
}

.doc-meta .meta-pill span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.doc-meta .meta-pill strong {
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.request-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.request-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(6px);
}

.request-modal-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1220px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid #d8e1ee;
  border-radius: 24px;
  background: linear-gradient(180deg, #fdfefe 0%, #f6f9fd 100%);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.request-modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--line);
  background: inherit;
}

.request-modal-title-group {
  flex: 1 1 auto;
  min-width: 0;
}

.request-modal-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.request-modal-title-group p {
  margin: 0.6rem 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.request-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 2.5rem;
  padding: 24px;
}

.request-modal-page .tool-inline-grid-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.request-modal-close {
  position: static;
  flex: 0 0 auto;
  margin: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.doc-alternate-links {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.doc-alternate-links > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.doc-alternate-links .doc-link-button,
.doc-alternate-links .locale-button {
  min-height: 34px;
  padding: 0 16px;
}

.doc-toc {
  padding: 0 0 1rem;
  margin-bottom: 1.5rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.doc-toc-title {
  margin-bottom: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.doc-toc-grid {
  gap: 10px;
  flex-wrap: wrap;
}

.toc-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.toc-level-3 {
  opacity: 0.86;
}

.module-code-examples {
  margin-top: 18px;
}

.module-code-examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.module-code-examples-grid .code-example-card {
  overflow: hidden;
  border: 1px solid #313244;
  border-radius: 12px;
  background: #1f2a37;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
}

.module-code-examples-grid .code-example-card:nth-of-type(2) {
  display: none;
}

.module-code-examples-grid .code-example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  border-bottom: 1px solid #313244;
  background: #252836;
  color: #eef2ff;
  font-size: 14px;
  font-weight: 500;
}

.module-code-examples-grid .code-example-head > span {
  min-width: 0;
  color: #eef2ff;
}

.module-code-examples-grid .code-example-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.module-code-examples-grid .code-variant-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 88px;
  max-width: 132px;
}

.module-code-examples-grid .code-variant-select {
  width: 100%;
  height: 32px;
  padding: 0 28px 0 10px;
  border: 1px solid #4a5568;
  border-radius: 8px;
  background: #343a4a;
  color: #eef2ff;
  cursor: pointer;
  appearance: none;
  font-size: 12px;
  font-weight: 600;
}

.module-code-examples-grid .code-variant-caret {
  position: absolute;
  right: 10px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #cdd6f4;
  border-bottom: 1.5px solid #cdd6f4;
  color: #cdd6f4;
  pointer-events: none;
  transform: translateY(-2px) rotate(45deg);
}

.module-code-examples-grid .code-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cdd6f4;
  cursor: pointer;
}

.module-code-examples-grid .code-copy-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.module-code-examples-grid .code-copy-icon {
  display: block;
}

.module-code-examples-grid .code-example-pre {
  max-height: 460px;
  margin: 0;
  overflow: auto;
  padding: 16px 18px;
  background: #1f2a37;
  color: #eef4fb;
  font-size: 13px;
  line-height: 1.65;
  border-radius: 0;
  scrollbar-color: #4a5568 #1f2a37;
}

.module-code-examples-grid .code-example-pre::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.module-code-examples-grid .code-example-pre::-webkit-scrollbar-thumb {
  background: #4a5568;
  border-radius: 999px;
  border: 2px solid #1f2a37;
}

.module-code-examples-grid .code-example-pre::-webkit-scrollbar-track {
  background: #1f2a37;
}

.module-code-examples-grid .code-example-pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-mono);
  white-space: pre;
}

.code-example-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 32px rgba(23, 32, 51, 0.08);
}

.code-example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.code-example-head > span {
  min-width: 0;
}

.code-example-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.code-variant-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 96px;
  max-width: 148px;
}

.code-variant-select {
  width: 100%;
  height: 32px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  font-size: 13px;
  font-weight: 700;
}

.code-copy-button {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.code-variant-caret {
  position: absolute;
  right: 12px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-2px) rotate(45deg);
}

.code-copy-button:hover {
  color: var(--text);
}

.code-example-pre {
  max-height: 460px;
  margin: 0;
  overflow: auto;
  padding: 18px;
  background: #fff;
  color: #1f2a37;
  font-size: 13px;
  line-height: 1.8;
  border-radius: 0;
}

.code-example-pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.module-code-examples-grid .code-example-card,
.code-example-card {
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--code-shell);
  box-shadow: 0 18px 36px rgba(8, 12, 18, 0.22);
}

.module-code-examples-grid .code-example-head,
.code-example-head {
  min-height: 58px;
  padding: 12px 18px 10px;
  border-bottom: 0;
  background: var(--code-head);
  color: #f2f4f7;
  font-size: 15px;
  font-weight: 700;
}

.module-code-examples-grid .code-example-head > span,
.code-example-head > span {
  min-width: 0;
  color: #f2f4f7;
}

.module-code-examples-grid .code-example-actions,
.code-example-actions {
  gap: 10px;
}

.module-code-examples-grid .code-variant-field,
.code-variant-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 176px;
  min-width: 176px;
  max-width: 220px;
}

.module-code-examples-grid .code-variant-badge,
.code-variant-badge {
  position: absolute;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: var(--code-badge-bg);
  color: #2c2119;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.module-code-examples-grid .code-variant-select,
.code-variant-select {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 48px;
  border: 0;
  border-radius: 15px;
  background: var(--code-pill);
  color: var(--code-accent);
  cursor: pointer;
  appearance: none;
  outline: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 42px;
}

.module-code-examples-grid .code-variant-select:hover,
.code-variant-select:hover {
  background: var(--code-pill-hover);
}

.module-code-examples-grid .code-variant-select:focus,
.code-variant-select:focus {
  background: var(--code-pill-hover);
  outline: 2px solid rgba(255, 190, 152, 0.28);
  outline-offset: 2px;
}

.module-code-examples-grid .code-variant-select option,
.code-variant-select option {
  background: var(--code-pill);
  color: #f2f4f7;
}

.module-code-examples-grid .code-variant-caret,
.code-variant-caret {
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--code-accent);
}

.module-code-examples-grid .code-copy-button,
.code-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--code-muted);
}

.module-code-examples-grid .code-copy-button:hover,
.code-copy-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f7fafc;
}

.module-code-examples-grid .code-example-pre,
.code-example-pre {
  max-height: 460px;
  margin: 0 3px 3px;
  overflow: auto;
  padding: 22px 26px;
  border-radius: 18px 18px 21px 21px;
  background: var(--code-body);
  color: var(--code-text);
  font-size: 14px;
  line-height: 1.7;
  scrollbar-color: var(--code-scroll) var(--code-body);
}

.module-code-examples-grid .code-example-pre::-webkit-scrollbar,
.code-example-pre::-webkit-scrollbar,
.md-code::-webkit-scrollbar,
.preview-pane pre::-webkit-scrollbar,
.tool-result-block pre::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.module-code-examples-grid .code-example-pre::-webkit-scrollbar-thumb,
.code-example-pre::-webkit-scrollbar-thumb,
.md-code::-webkit-scrollbar-thumb,
.preview-pane pre::-webkit-scrollbar-thumb,
.tool-result-block pre::-webkit-scrollbar-thumb {
  border: 2px solid var(--code-body);
  border-radius: 999px;
  background: var(--code-scroll);
}

.module-code-examples-grid .code-example-pre::-webkit-scrollbar-track,
.code-example-pre::-webkit-scrollbar-track,
.md-code::-webkit-scrollbar-track,
.preview-pane pre::-webkit-scrollbar-track,
.tool-result-block pre::-webkit-scrollbar-track {
  background: var(--code-body);
}

.module-code-examples-grid .code-example-pre code,
.code-example-pre code {
  display: block;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-family: var(--font-mono);
  white-space: pre;
}

.syntax-token {
  color: inherit;
}

.syntax-keyword {
  color: var(--syntax-keyword);
}

.syntax-property {
  color: var(--syntax-property);
}

.syntax-string {
  color: var(--syntax-string);
}

.syntax-number,
.syntax-boolean {
  color: var(--syntax-number);
}

.syntax-comment {
  color: var(--syntax-comment);
}

.syntax-punctuation {
  color: var(--syntax-punctuation);
}

.syntax-operator {
  color: var(--syntax-operator);
}

.syntax-function {
  color: var(--syntax-function);
}

.markdown-body {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  scroll-margin-top: calc(var(--header-h) + 16px);
  line-height: 1.25;
}

.markdown-body h1:first-child,
.markdown-body h2:first-child,
.markdown-body h3:first-child {
  margin-top: 0;
}

.markdown-body h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.markdown-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
}

.markdown-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.markdown-body h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--muted);
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body blockquote {
  margin: 0.75rem 0;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.5rem;
}

.markdown-body li {
  margin: 0.35rem 0;
}

.markdown-body blockquote {
  padding: 14px 16px 14px 44px;
  border-left: 4px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.markdown-body .callout {
  margin: 0.75rem 0;
  padding: 14px 16px;
  border-left: 4px solid var(--note-border);
  border-radius: var(--radius);
  background: var(--note-bg);
  color: var(--note-text);
}

.markdown-body .callout p {
  margin: 0.35rem 0;
}

.markdown-body .callout p:first-child {
  margin-top: 0;
}

.markdown-body .callout p:last-child {
  margin-bottom: 0;
}

.markdown-body .callout ul {
  margin: 0.35rem 0;
  padding-left: 1.5rem;
}

.markdown-body .callout code {
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
}

.markdown-body .callout-flow {
  margin: 1.25rem 0 1rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line));
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 4%, #ffffff) 0%,
    #ffffff 100%
  );
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 28px rgba(15, 23, 42, 0.06);
  color: var(--text);
}

.markdown-body .flow-track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 0;
}

.markdown-body .flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 12px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 34%, #ffffff);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 8%, #ffffff);
  color: var(--accent);
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}

.markdown-body .flow-step code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.markdown-body .flow-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  color: color-mix(in srgb, var(--accent) 48%, var(--muted));
  font-size: 14px;
  line-height: 1;
}

.markdown-body .flow-arrow::before {
  content: "→";
}

.markdown-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.markdown-body code {
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: var(--bg-subtle);
  font-size: 0.875em;
}

.markdown-body .doc-inline-tool-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.markdown-body .doc-inline-tool-link:hover {
  color: color-mix(in srgb, var(--accent) 78%, #000000);
}

.preview-pane {
  margin-top: 4px;
}

.md-code,
.preview-pane pre,
.tool-result-block pre {
  max-width: 100%;
  overflow: auto;
  padding: 16px;
  border-radius: 14px;
  background: var(--code-body);
  color: var(--code-text);
  font-size: 13px;
  line-height: 1.6;
  scrollbar-color: var(--code-scroll) var(--code-body);
}

.md-code code,
.preview-pane code,
.tool-result-block code {
  display: block;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  white-space: pre;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  font-size: 0.875rem;
}

.markdown-body th,
.markdown-body td {
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.markdown-body thead th {
  background: var(--bg-subtle);
  border-bottom: 2px solid var(--line);
  font-weight: 600;
}

.markdown-body table.markdown-table-with-code thead th {
  background: var(--table-code-head-bg);
  border-bottom-color: var(--table-code-line);
  color: var(--table-code-head-text);
}

.markdown-body table.markdown-table-with-code td.table-code-cell {
  color: var(--table-code-text);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.markdown-body table.markdown-table-with-code td.table-code-cell code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.markdown-body tbody tr:last-child td {
  border-bottom: 0;
}

.markdown-body tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 3%, transparent);
}

.tool-page {
  padding: 0;
  overflow: visible;
}

.tool-page-head {
  display: block;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.tool-page-head h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.tool-page-head p {
  margin: 8px 0 0;
}

.tool-page-head-side {
  width: min(320px, 100%);
  display: grid;
  gap: 12px;
}

.tool-context-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.tool-context-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tool-context-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.tool-context-meta {
  color: var(--muted);
}

.tool-head-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-inline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-inline-grid-form {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tool-inline-grid label,
.param-editor-row {
  display: grid;
  gap: 8px;
}

.param-editor-row small {
  color: var(--muted);
  white-space: pre-line;
}

.param-editor-row .md-emphasis-danger,
.markdown-body .md-emphasis-danger {
  color: #52c41a;
  font-weight: 700;
}

.param-editor-row input,
.param-editor-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  box-sizing: border-box;
  outline: none;
}

.param-editor-row input:focus,
.param-editor-row select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.request-layout {
  align-items: start;
}

.tool-panel {
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  box-shadow: none;
}

.tool-panel-title {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.tool-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.tool-preview-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.product-meta-row,
.hub-chip-row {
  gap: 10px;
  flex-wrap: wrap;
}

.tool-sidebar {
  display: grid;
  gap: 14px;
}

.tool-sidebar-head {
  display: grid;
  gap: 4px;
}

.tool-sidebar-head strong {
  font-size: 16px;
  font-weight: 700;
}

.tool-sidebar-head span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.tool-sidebar-actions {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.code-tab,
.action-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.action-button-primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.action-button-secondary {
  background: #fff;
}

.tool-result-block {
  margin-top: 18px;
}

.result-meta-row {
  gap: 12px;
  margin-bottom: 10px;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-weight: 700;
}

.result-badge.is-running {
  background: #eaf3ff;
  color: #1767d1;
}

.result-badge.is-success {
  background: #eaf7ef;
  color: #15803d;
}

.result-badge.is-error {
  background: #fff1f2;
  color: #be123c;
}

.result-badge.is-stale {
  background: #fff7ed;
  color: #c2410c;
}

.search-result-card {
  padding: 18px;
  text-align: left;
}

.search-result-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.hub-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 18px;
}

.hub-shell {
  width: min(1120px, 100%);
  display: grid;
  gap: 22px;
}

.hub-hero,
.hub-note,
.hub-card {
  padding: 24px;
}

.hub-hero {
  border-radius: 28px;
  background: var(--hero-tone);
  box-shadow: var(--shadow);
}

.hub-grid {
  gap: 18px;
}

.hub-card {
  display: block;
  text-align: left;
}

.hub-card-ipay {
  --accent: #1767d1;
}

.hub-card-legend {
  --accent: #dd6b20;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.92);
  color: #fff;
  box-shadow: var(--shadow);
}

@media (max-width: 1200px) {
  .topbar {
    grid-template-columns: 200px minmax(360px, 1fr) auto;
  }

  .home-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-inline-grid-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

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

  .sidebar {
    position: static;
    height: auto;
    max-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .content-area {
    padding: 24px 20px 60px;
  }

  .release-banner,
  .home-country-highlight,
  .home-capability-grid,
  .doc-bar,
  .tool-page-head,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .tool-page-head {
    display: grid;
  }

  .tool-page-head-side {
    width: 100%;
  }

  .tool-head-actions {
    justify-content: flex-start;
  }

  .home-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-inline-grid,
  .tool-inline-grid-form {
    grid-template-columns: 1fr;
  }

  .module-code-examples-grid {
    grid-template-columns: 1fr;
  }

  .doc-meta.doc-meta-api {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .doc-meta-request-target {
    flex-wrap: wrap;
    justify-content: flex-start;
    border-radius: 22px;
    padding: 14px 18px;
  }

  .doc-meta-path {
    white-space: normal;
    word-break: break-word;
  }

  .home-module-head,
  .home-country-highlight {
    grid-template-columns: 1fr;
  }

  .home-module-head {
    display: grid;
  }

  .home-module-meta {
    max-width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 12px;
  }

  .topbar-nav,
  .locale-switch {
    width: 100%;
  }

  .topbar-find {
    flex: 1 1 280px;
    width: auto;
  }

  .topbar-search {
    flex: 1 1 240px;
    width: auto;
  }

  .topbar-ticker {
    width: 100%;
    max-width: none;
  }

  .topbar-center {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .code-example-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .code-example-actions {
    width: 100%;
    justify-content: space-between;
  }

  .code-variant-field {
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
  }

  .home-stat-grid {
    grid-template-columns: 1fr;
  }

  .markdown-body {
    padding: 0;
  }

  .markdown-body .callout-flow {
    padding: 1.25rem 1rem;
  }

  .markdown-body .flow-track {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .markdown-body .flow-step {
    width: 100%;
    max-width: none;
    min-height: 64px;
    padding: 14px 18px;
  }

  .markdown-body .flow-arrow {
    min-width: 0;
    align-self: center;
  }

  .markdown-body .flow-arrow::before {
    content: "↓";
  }

  .tool-preview-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-action-row {
    margin-left: 0;
    justify-content: flex-start;
  }

  .doc-meta {
    grid-template-columns: 1fr;
  }

  .request-modal-shell {
    padding: 12px;
  }

  .request-modal-page {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }

  .request-modal-header {
    padding: 18px 18px 14px;
  }

  .request-modal-body {
    padding: 18px;
    gap: 1.5rem;
  }

  .request-modal-close {
    width: 38px;
    height: 38px;
  }

  .doc-bar-actions,
  .country-highlight-meta {
    /* TODO */
    display: none;
    justify-content: flex-start;
  }
}
