:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #172033;
  --text-strong: #0f172a;
  --muted: #64748b;
  --subtle: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-line: #bfdbfe;
  --success: #0f766e;
  --success-soft: #f0fdfa;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.08);
  --header-height: 66px;
  --sidebar-width: 274px;
  --toc-width: 220px;
  --content-width: 760px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1120;
  --surface: #111827;
  --surface-raised: #162033;
  --surface-soft: #182235;
  --text: #dbe4f0;
  --text-strong: #f8fafc;
  --muted: #94a3b8;
  --subtle: #64748b;
  --line: #243248;
  --line-strong: #334155;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-soft: rgba(37, 99, 235, 0.14);
  --accent-line: rgba(96, 165, 250, 0.3);
  --success: #5eead4;
  --success-soft: rgba(13, 148, 136, 0.12);
  --warning: #fbbf24;
  --warning-soft: rgba(180, 83, 9, 0.13);
  --danger: #fca5a5;
  --danger-soft: rgba(185, 28, 28, 0.13);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.24);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 22px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.nav-open, body.search-open { overflow: hidden; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: rgba(37, 99, 235, 0.22); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-140%);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--text-strong);
  color: var(--surface);
}
.skip-link:focus { transform: none; }

.docs-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
}
.header-inner {
  position: relative;
  height: 100%;
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text-strong);
  font-weight: 650;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text-strong); }
.brand img { width: 32px; height: 32px; object-fit: contain; transform: translateY(-2px); }
.brand-logo-stack { position: relative; width: 32px; height: 32px; flex: 0 0 auto; transform: translateY(-2px); }
.brand-logo-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: none; }
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }
.brand-name { white-space: nowrap; }
.brand-pro { color: #dc2626; }
.brand-divider { width: 1px; height: 22px; margin-left: 2px; background: var(--line-strong); }
.brand-docs {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.header-search {
  position: absolute;
  left: 50%;
  width: min(500px, 34vw);
  transform: translateX(calc(-50% + var(--header-search-offset, 0px)));
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 0 11px 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.header-search:hover { border-color: var(--line-strong); background: var(--surface); }
.header-search:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 1px; }
.search-label { min-width: 0; display: inline-flex; align-items: center; gap: 9px; font-size: 14px; white-space: nowrap; }
.search-label > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.search-icon { width: 16px; color: var(--muted); font-size: 14px; text-align: center; }
kbd {
  min-width: 24px;
  min-height: 23px;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font: 500 11px/1 "DM Mono", monospace;
}
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.icon-button, .mobile-menu-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
}
.icon-button:hover, .mobile-menu-button:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.icon-button:focus-visible, .mobile-menu-button:focus-visible { outline: 3px solid var(--accent-line); }
.theme-icon { width: 17px; font-size: 16px; line-height: 1; text-align: center; }
.site-link {
  min-height: 38px;
  padding: 0 .8rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s, border-color .18s, transform .18s;
}
.site-link:hover { border-color: rgba(37, 99, 235, .28); color: var(--text-strong); transform: translateY(-1px); }
.site-link:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 1px; }
.docs-header.is-brand-compact .brand-name { font-size: 0; letter-spacing: 0; }
.docs-header.is-brand-compact .brand-name::before { content: "ID"; font-size: 17px; letter-spacing: -.01em; }
.docs-header.is-brand-compact .brand-name .brand-pro { font-size: 17px; letter-spacing: -.01em; }
.docs-header.is-back-hidden .site-link { display: none; }
.docs-header.is-docs-label-hidden .brand-divider,
.docs-header.is-docs-label-hidden .brand-docs { display: none; }
.docs-header.is-language-compact .docs-language-switcher > summary { width: 40px; padding: 0; justify-content: center; }
.docs-header.is-language-compact .docs-language-label,
.docs-header.is-language-compact .docs-language-chevron { display: none; }
.docs-language-switcher { position: relative; }
.docs-language-switcher > summary {
  min-height: 40px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}
.docs-language-switcher > summary::-webkit-details-marker { display: none; }
.docs-language-switcher > summary:hover { border-color: var(--line-strong); color: var(--text-strong); }
.docs-language-switcher > summary:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 1px; }
.docs-language-switcher[open] > summary { border-color: var(--line-strong); background: var(--surface-soft); }
.docs-language-flag { width: 24px; height: 18px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); flex: 0 0 auto; }
.docs-language-chevron { color: var(--subtle); font-size: 10px; transition: transform .18s; }
.docs-language-switcher[open] .docs-language-chevron { transform: rotate(180deg); }
.docs-language-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  right: 0;
  width: min(560px, calc(100vw - 28px));
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface-raised);
  color: var(--text-strong);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .24);
  font: 600 14px/1.3 Arial, sans-serif;
}
.docs-language-search { position: relative; display: block; margin-bottom: 9px; }
.docs-language-search input { box-sizing: border-box; width: 100%; height: 42px; padding: 9px 38px 9px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text-strong); font: 500 14px/1.2 Arial, sans-serif; outline: none; }
.docs-language-search input::placeholder { color: var(--subtle); }
.docs-language-search input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-line); }
.docs-language-search > i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; line-height: 1; pointer-events: none; }
.docs-language-list { max-height: calc(72vh - 61px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; overflow: auto; scrollbar-gutter: stable; direction: ltr; }
.docs-language-option { padding: 9px 11px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; border-radius: 9px; color: var(--text-strong) !important; direction: ltr; text-align: left; text-decoration: none !important; }
.docs-language-option span { min-width: 0; unicode-bidi: plaintext; text-align: left; }
.docs-language-option:hover, .docs-language-option:focus-visible { background: var(--surface-soft); color: var(--text-strong) !important; outline: none; }
.docs-language-option[aria-current="true"] { background: var(--text-strong); color: var(--surface) !important; }
.docs-language-option[hidden] { display: none !important; }
.docs-language-empty { margin: 12px 8px 7px; color: var(--muted); text-align: center; font-weight: 500; }
.mobile-menu-button { display: none; }
.mobile-menu-button > i { font-size: 16px; }

.docs-shell {
  max-width: 1536px;
  margin: 0 auto;
  padding: var(--header-height) 24px 0;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, var(--content-width)) var(--toc-width);
  justify-content: center;
  gap: 44px;
}
.docs-sidebar {
  position: static;
  align-self: stretch;
  height: auto;
  padding: 28px 18px 40px 0;
  border-inline-end: 1px solid var(--line);
  overflow: visible;
}
.sidebar-section + .sidebar-section { margin-top: 24px; }
.sidebar-title {
  margin: 0 0 8px 11px;
  color: var(--text-strong);
  font: 700 11px/1.4 "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.sidebar-nav { display: grid; gap: 2px; }
.sidebar-link {
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.sidebar-link:hover { background: var(--surface-soft); color: var(--text-strong); }
.sidebar-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.docs-main { min-width: 0; padding: 56px 0 96px; }
.breadcrumbs { margin-bottom: 22px; color: var(--subtle); font: 500 12px/1.4 "DM Mono", monospace; }
.breadcrumbs-current { color: var(--accent); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs span { margin: 0 7px; }
.article-header { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
h1, h2, h3 { color: var(--text-strong); text-wrap: balance; }
h1 { margin: 0; font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(38px, 5vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; }
.article-description { max-width: 680px; margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.doc-content { padding-top: 8px; }
.doc-content > p:first-child { margin-top: 30px; color: var(--text); font-size: 18px; line-height: 1.78; }
.doc-content p { margin: 0 0 18px; }
.doc-section { padding-top: 40px; }
.doc-section h2 {
  position: relative;
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.heading-anchor { margin-left: 8px; color: var(--line-strong); font-weight: 500; text-decoration: none; opacity: 0; }
.doc-section h2:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }
.doc-subsection { margin-top: 28px; }
.doc-subsection h3 { margin: 0 0 12px; font-size: 19px; }
.doc-content ul { margin: 0 0 20px; padding-left: 24px; }
.doc-content li { margin: 8px 0; padding-left: 4px; }
.doc-content li::marker { color: var(--accent); }
.doc-content code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--text-strong);
  font: 500 .86em/1.5 "DM Mono", monospace;
}
.steps { margin: 6px 0 22px !important; padding: 0 !important; list-style: none; counter-reset: steps; }
.steps li { position: relative; min-height: 52px; margin: 0 !important; padding: 0 0 25px 56px !important; counter-increment: steps; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 40px; bottom: 2px; left: 19px; width: 1px; background: var(--line); }
.steps li::before {
  content: counter(steps);
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 12px/1 "DM Mono", monospace;
}
.steps strong { display: block; color: var(--text-strong); font-size: 15px; }
.steps p { margin: 4px 0 0; color: var(--muted); }
.browser-download-links { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pin-demo { margin: 16px 0 0; }
.pin-demo-frame {
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-sm);
}
.pin-demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 9px;
  background: #fff;
  object-fit: cover;
  object-position: top center;
}
.browser-download-button {
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform .16s, border-color .16s, background .16s, box-shadow .16s;
}
.browser-download-button:hover { border-color: var(--accent-line); background: var(--surface-raised); color: var(--text-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.browser-download-button:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.browser-download-button img { width: 22px; height: 22px; flex: 0 0 auto; object-fit: contain; }
.browser-download-button.is-coming-soon { position: relative; color: var(--muted); background: var(--surface-soft); cursor: default; box-shadow: none; }
.browser-coming-pill { position: absolute; top: -8px; right: 6px; padding: 3px 7px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .02em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.callout {
  margin: 26px 0 8px;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
}
.callout-icon { width: 20px; margin-top: 4px; color: var(--accent); font-size: 17px; text-align: center; }
.callout strong { display: block; margin-bottom: 3px; color: var(--text-strong); }
.callout p { margin: 0; color: var(--muted); font-size: 14px; }
.callout--tip { border-color: color-mix(in srgb, var(--success) 30%, transparent); background: var(--success-soft); }
.callout--tip .callout-icon { color: var(--success); }
.callout--warning { border-color: color-mix(in srgb, var(--warning) 35%, transparent); background: var(--warning-soft); }
.callout--warning .callout-icon { color: var(--warning); }
.table-wrap { margin: 22px 0 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface-soft); color: var(--text-strong); font: 650 12px/1.4 "DM Mono", monospace; letter-spacing: .02em; }
td { color: var(--muted); }
td:first-child { color: var(--text); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.doc-hero-panel {
  position: relative;
  margin-top: 20px;
  padding: clamp(28px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.doc-hero-panel h1 { max-width: none; font-size: clamp(34px, 4.5vw, 46px); white-space: nowrap; text-wrap: nowrap; }
.docs-home-title-pro { color: #dc2626; }
.doc-hero-panel .lead { max-width: 680px; margin: 13px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.docs-home-search {
  width: 100%;
  height: 52px;
  margin-top: 24px;
  padding: 0 14px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.docs-home-search:hover { border-color: var(--accent-line); background: var(--surface); box-shadow: var(--shadow-sm); }
.docs-home-search:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.docs-home-search .search-label { font-size: 15px; }
.status-pill { margin-bottom: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 500 11px/1.4 "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.status-pill span { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.13); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 43px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-weight: 650; text-decoration: none; }
.button--primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.button--primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); color: #fff; }
.button--secondary { background: var(--surface); color: var(--text); }
.button--secondary:hover { border-color: var(--line-strong); color: var(--text-strong); }
.quick-grid { margin: 14px 0 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick-card { min-height: 150px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .18s, border-color .18s, box-shadow .18s; }
.quick-card:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: var(--shadow-md); color: var(--text); }
.quick-icon { width: 34px; height: 28px; margin-bottom: 14px; display: grid; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font: 600 11px/1 "DM Mono", monospace; }
.quick-card strong { display: block; color: var(--text-strong); }
.quick-card p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.faq-list { padding-top: 20px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 20px 34px 20px 0; color: var(--text-strong); font-weight: 650; cursor: pointer; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-chevron { position: absolute; top: 23px; right: 5px; color: var(--muted); font-size: 12px; transition: transform .18s ease; }
.faq-list details[open] .faq-chevron { transform: rotate(180deg); }
.faq-list details p { max-width: 680px; padding: 0 30px 20px 0; color: var(--muted); }

.article-footer { margin-top: 58px; padding-top: 22px; border-top: 1px solid var(--line); }
.page-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.page-nav a { min-height: 82px; padding: 15px 16px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); text-decoration: none; }
.page-nav a:last-child { text-align: right; }
.page-nav a:hover { border-color: var(--accent-line); }
.page-nav span { color: var(--subtle); font: 500 10px/1.4 "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.page-nav strong { margin-top: 4px; display: inline-flex; align-items: center; gap: 7px; color: var(--text-strong); font-size: 14px; }
.page-nav a:last-child strong { justify-content: flex-end; }
.feedback-row { margin-top: 22px; color: var(--subtle); font-size: 12px; text-align: center; }
.feedback-row a { color: var(--muted); }

.toc {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  padding: 54px 0 40px;
  overflow-y: auto;
}
.toc-title { margin: 0 0 10px; color: var(--text-strong); font-size: 12px; font-weight: 650; }
.toc-nav { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc-link { margin-left: -1px; padding: 5px 0 5px 14px; border-left: 1px solid transparent; color: var(--muted); font-size: 12px; line-height: 1.45; text-decoration: none; }
.toc-link:hover, .toc-link.is-active { border-left-color: var(--accent); color: var(--accent); }

.search-modal { position: fixed; z-index: 100; inset: 0; display: none; align-items: flex-start; justify-content: center; padding: 10vh 20px 20px; background: rgba(15,23,42,.52); backdrop-filter: blur(5px); }
.search-modal.is-open { display: flex; }
.search-dialog { width: min(680px, 100%); max-height: min(680px, 80vh); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface-raised); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.search-input-wrap { height: 58px; padding: 0 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text-strong); font-size: 16px; }
.search-input::placeholder { color: var(--subtle); }
.search-close { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.search-results { max-height: min(580px, calc(80vh - 58px)); padding: 8px; overflow-y: auto; }
.search-empty { padding: 34px 20px; color: var(--muted); text-align: center; }
.search-result { padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; border-radius: 9px; color: var(--text); text-decoration: none; }
.search-result:hover, .search-result.is-selected { background: var(--accent-soft); color: var(--text); }
.search-result strong { color: var(--text-strong); font-size: 14px; }
.search-result span { color: var(--subtle); font: 500 10px/1.4 "DM Mono", monospace; text-transform: uppercase; }
.search-result p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.nav-scrim { display: none; }

html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] pre,
html[dir="rtl"] code,
html[dir="rtl"] kbd { direction: ltr; text-align: left; }
html[dir="rtl"] .docs-language-menu { right: auto; left: 0; }
html[dir="rtl"] .docs-language-search input { padding: 9px 13px 9px 38px; }
html[dir="rtl"] .docs-language-search > i { right: auto; left: 14px; }
html[dir="rtl"] .docs-sidebar { padding-right: 0; padding-left: 18px; }
html[dir="rtl"] .sidebar-title { margin-right: 11px; margin-left: 0; }
html[dir="rtl"] .heading-anchor { margin-right: 8px; margin-left: 0; }
html[dir="rtl"] .page-nav a:last-child { text-align: left; }
html[dir="rtl"] .page-nav a:last-child strong { justify-content: flex-start; }
html[dir="rtl"] .toc-nav { border-right: 1px solid var(--line); border-left: 0; }
html[dir="rtl"] .toc-link { margin-right: -1px; margin-left: 0; padding: 5px 14px 5px 0; border-right: 1px solid transparent; border-left: 0; }
html[dir="rtl"] .toc-link:hover,
html[dir="rtl"] .toc-link.is-active { border-right-color: var(--accent); }
html[dir="rtl"] .fa-arrow-left,
html[dir="rtl"] .fa-arrow-right { transform: scaleX(-1); }
html[dir="rtl"] .docs-main,
html[dir="rtl"] .docs-sidebar,
html[dir="rtl"] .toc { text-align: right; }
html[dir="rtl"] .brand-name,
html[dir="rtl"] .docs-language-option span { unicode-bidi: isolate; }

@media (max-width: 1240px) {
  .header-search { --header-search-offset: -12px; }
  .brand-name { font-size: 0; letter-spacing: 0; }
  .brand-name::before { content: "ID"; font-size: 17px; letter-spacing: -.01em; }
  .brand-name .brand-pro { font-size: 17px; letter-spacing: -.01em; }
}

@media (max-width: 1200px) {
  .site-link { display: none; }
}

@media (max-width: 1180px) {
  .docs-shell { grid-template-columns: var(--sidebar-width) minmax(0, var(--content-width)); gap: 36px; }
  .toc { display: none; }
}

@media (max-width: 900px) {
  .brand-divider, .brand-docs { display: none; }
}

@media (max-width: 860px) {
  .header-inner { padding: 0 16px; display: grid; grid-template-columns: auto minmax(120px, 1fr) auto; gap: 12px; }
  .site-link { display: none; }
  .header-search kbd { display: none; }
  .header-search { position: static; width: 100%; max-width: 280px; transform: none; justify-self: center; }
  .mobile-menu-button { display: inline-flex; }
  .docs-shell { display: block; padding-inline: 20px; }
  .docs-sidebar {
    position: fixed;
    z-index: 80;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    width: min(320px, 88vw);
    height: auto;
    padding: 24px 18px 40px;
    border-inline-end: 0;
    border-right: 1px solid var(--line);
    background: var(--surface);
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform .2s ease;
  }
  body.nav-open .docs-sidebar { transform: none; }
  .nav-scrim { position: fixed; z-index: 70; inset: var(--header-height) 0 0; background: rgba(15,23,42,.45); }
  body.nav-open .nav-scrim { display: block; }
  .docs-main { max-width: var(--content-width); margin: 0 auto; padding-top: 40px; }
  html[dir="rtl"] .docs-sidebar { right: 0; left: auto; padding: 24px 18px 40px; border-right: 0; border-left: 1px solid var(--line); transform: translateX(102%); }
  html[dir="rtl"] body.nav-open .docs-sidebar { transform: none; }
}

@media (max-width: 640px) {
  .docs-language-switcher > summary { width: 40px; padding: 0; justify-content: center; }
  .docs-language-label, .docs-language-chevron { display: none; }
  .docs-language-switcher .docs-language-menu,
  html[dir="rtl"] .docs-language-switcher .docs-language-menu {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    right: max(12px, env(safe-area-inset-right));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
    max-height: calc(100vh - var(--header-height) - 20px);
    max-height: calc(100dvh - var(--header-height) - 20px);
  }
}

@media (max-width: 560px) {
  :root { --header-height: 60px; }
  .header-inner { padding: 0 12px; gap: 8px; }
  .brand img { width: 29px; height: 29px; }
  .brand-logo-stack { width: 29px; height: 29px; }
  .header-search { height: 38px; }
  .header-search .search-label { font-size: 13px; }
  .icon-button, .mobile-menu-button { width: 38px; height: 38px; }
  .docs-language-list { grid-template-columns: 1fr; max-height: calc(76vh - 61px); }
  .docs-shell { padding-inline: 16px; }
  .docs-main { padding-top: 30px; padding-bottom: 70px; }
  .browser-download-links { grid-template-columns: 1fr; }
  .pin-demo-frame { padding: 5px; border-radius: 12px; }
  .pin-demo-video { border-radius: 8px; }
  h1 { font-size: 36px; }
  .article-description { font-size: 16px; }
  .doc-content > p:first-child { font-size: 16px; }
  .doc-section { padding-top: 34px; }
  .doc-section h2 { font-size: 23px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 0; }
  .doc-hero-panel { padding: 25px 22px; border-radius: 14px; }
  .doc-hero-panel h1 { font-size: 36px; }
  .docs-home-search { height: 49px; margin-top: 20px; }
  .hero-actions { display: grid; }
  .page-nav { grid-template-columns: 1fr; }
  .page-nav a:last-child { text-align: left; }
  .page-nav a:last-child strong { justify-content: flex-start; }
  th, td { padding: 11px 12px; min-width: 130px; }
  .search-modal { padding: 12px; align-items: center; }
  .search-dialog { max-height: 84vh; }
}

@media print {
  .docs-header, .docs-sidebar, .toc, .article-footer, .search-modal, .nav-scrim, .docs-language-switcher { display: none !important; }
  .docs-shell { display: block; padding: 0; }
  .docs-main { max-width: none; padding: 0; }
  body { background: #fff; color: #111; }
  a { color: inherit; }
  .callout, .table-wrap, .quick-card, .doc-hero-panel { break-inside: avoid; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* Compact site footer, shared visually with the homepage. */
.docs-site-footer { padding: 0 24px 28px; }
.docs-site-footer .footer-bottom { max-width: 1120px; margin: 0 auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.docs-site-footer .footer-copy { min-width: 0; color: #52627a; font: 400 12px/1.7 "DM Mono", monospace; overflow-wrap: anywhere; }
.docs-site-footer .footer-legal { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; margin-inline-start: auto; }
.docs-site-footer .footer-link { color: var(--muted); font-size: 14px; font-weight: 400; text-decoration: none; }
.docs-site-footer .footer-link:hover { color: var(--text-strong); }
.docs-site-footer .footer-socials { display: flex; align-items: center; gap: 12px; }
.docs-site-footer .footer-social { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; opacity: .82; text-decoration: none; transition: opacity .2s; }
.docs-site-footer .footer-social:hover { opacity: 1; }
.docs-site-footer .footer-social i { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.docs-site-footer .fa-facebook-f { color: #1877f2; }
.docs-site-footer .fa-x-twitter { color: var(--text-strong); }
.docs-site-footer .fa-linkedin { color: #0a66c2; }
.docs-site-footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
[data-theme="dark"] .docs-site-footer .footer-copy { color: var(--muted); }
[data-theme="dark"] .docs-site-footer .fa-facebook-f, [data-theme="dark"] .docs-site-footer .fa-linkedin { color: #60a5fa; }
@media (max-width: 767px) {
  .docs-site-footer { padding: 0 20px 24px; }
  .docs-site-footer .footer-bottom { flex-direction: column; text-align: center; gap: 14px; }
  .docs-site-footer .footer-legal { justify-content: center; margin-inline-start: 0; gap: 12px; }
}
@media print { .docs-site-footer { display: none !important; } }

/* GrabAll content uses the same IDP documentation layout and component sizing. */
[hidden] { display: none !important; }
.docs-language-menu { width: min(260px, calc(100vw - 28px)); }
.docs-language-list { grid-template-columns: 1fr; max-height: 55vh; }
.docs-language-menu.has-multiple { width: min(560px, calc(100vw - 28px)); }
.docs-language-menu.has-multiple .docs-language-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: calc(72vh - 61px); }
.brand-pro { color: #dc2626; }
.sidebar-back { display: none; }
.english-note { margin: 22px 0 0; padding: 11px 14px; border: 1px solid var(--accent-line); border-radius: 9px; background: var(--accent-soft); color: var(--text); font-size: 14px; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.related-links a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 14px; text-decoration: none; }
.related-links a:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.docs-site-footer .fa-linkedin-in { color: #0a66c2; }
[data-theme="dark"] .docs-site-footer .fa-linkedin-in { color: #60a5fa; }
@media (max-width: 1240px) {
  .brand-name { font-size: 17px; letter-spacing: -.01em; }
  .brand-name::before { content: none; }
  .brand-name .brand-pro { font-size: inherit; }
}
@media (max-width: 860px) {
  .sidebar-back { display: block; margin: 22px 11px 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-decoration: none; }
}
@media (max-width: 560px) {
  .doc-hero-panel h1 { white-space: normal; text-wrap: balance; font-size: clamp(28px, 8vw, 36px); }
}
