:root {
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Naskh Arabic', 'Noto Sans Arabic', sans-serif;
  --font-brand: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Naskh Arabic', 'Noto Sans Arabic', sans-serif;
  --font-logo: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Naskh Arabic', 'Noto Sans Arabic', sans-serif;
  --logo-word-color: #0f172a;
  --logo-underline-color: #0f172a;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121814;
  --accent: #72bd91;
  --accent-dark: #4f9d70;
  --accent-light: #a0d4b3;
  --accent-rgb: 114, 189, 145;
  --accent-glow: rgba(114, 189, 145, 0.18);
  --accent-contrast: #101711;
  --surface: #1a221c;
  --surface-dark: #242f27;
  --border: rgba(183, 211, 192, 0.12);
  --border-light: rgba(183, 211, 192, 0.2);
  --text: #edf3ee;
  --text-dim: #c2cec5;
  --text-muted: #91a097;
  --danger: #dc7771;
  --warn: #d4a45f;
  --code-bg: #1b241e;
  --card-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f6f3;
  --accent: #31764f;
  --accent-dark: #286944;
  --accent-light: #5e9871;
  --accent-rgb: 49, 118, 79;
  --accent-glow: rgba(49, 118, 79, 0.12);
  --accent-contrast: #ffffff;
  --surface: #ffffff;
  --surface-dark: #e8f0eb;
  --border: rgba(39, 71, 52, 0.1);
  --border-light: rgba(39, 71, 52, 0.17);
  --text: #1d2921;
  --text-dim: #526357;
  --text-muted: #56685c;
  --danger: #a73f39;
  --warn: #845818;
  --code-bg: #edf3ef;
  --card-shadow: 0 18px 50px rgba(35, 62, 44, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.doc :is(p, li, td, dd, .note, .warn-box, .tip) a:not(.anchor) {
  text-decoration: underline; text-underline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-contrast); padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  height: 72px; padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }

.search-wrap { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.sidebar .search-icon {
  position: absolute; inset-inline-start: 14px; top: 14px; z-index: 1;
  width: 16px; height: 16px; fill: none; stroke: var(--text-muted);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}
#docsearch {
  width: 100%; height: 38px; padding: 0 14px 0 38px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-light); border-radius: 999px;
  font-family: inherit; font-size: 14px;
}
[dir="rtl"] #docsearch { padding: 0 38px 0 14px; }
#docsearch:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.search-results {
  position: absolute; top: 46px; left: 0; right: 0; z-index: 40;
  max-height: 60vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: 14px; box-shadow: var(--card-shadow); padding: 6px;
}
.search-results a {
  display: block; padding: 9px 12px; border-radius: 9px; color: var(--text); font-size: 14px;
}
.search-results a:hover, .search-results a.active { background: var(--surface-dark); text-decoration: none; }
.search-results .sr-group { display: block; font-size: 12px; color: var(--text-muted); }
.search-results .sr-empty { padding: 12px; color: var(--text-muted); font-size: 14px; }

.topnav { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 16px; border-radius: 999px;
  font-family: var(--font-brand); font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--text-dim); border-color: var(--border-light); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border-light); cursor: pointer;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { display: none; }

:root[data-theme="dark"] .ico-sun { display: none; }
:root[data-theme="light"] .ico-moon { display: none; }

.layout { display: flex; align-items: flex-start; max-width: 1500px; margin: 0 auto; }

.sidebar {
  position: sticky; top: 72px; flex: 0 0 288px; width: 288px;
  height: calc(100vh - 72px); overflow-y: auto;
  padding: 24px 12px 60px 20px; border-right: 1px solid var(--border);
}
.sidebar .nav-group { margin-bottom: 6px; }
.sidebar .nav-group > button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 9px 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text); cursor: pointer;
  font-family: var(--font-brand); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.sidebar .nav-group > button:hover { background: var(--surface); }
.sidebar .nav-group > button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform 0.18s ease; }
.sidebar .nav-group[data-collapsed="true"] > button svg { transform: rotate(-90deg); }
.sidebar .nav-group[data-collapsed="true"] ul { display: none; }
.sidebar ul { list-style: none; margin: 2px 0 10px; padding: 0 0 0 6px; }
.sidebar li a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; margin: 1px 0; border-radius: 9px;
  color: var(--text-dim); font-size: 14.5px; border-left: 2px solid transparent;
}
.sidebar li a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.sidebar li a.current {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent); font-weight: 600; border-left-color: var(--accent);
}
:root[data-theme="light"] .sidebar li a.current { color: var(--accent-dark); }

.badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-family: var(--font-brand); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; vertical-align: middle;
}
.badge-soon { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.badge-beta { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-dark); }
h1 .badge { margin-left: 10px; font-size: 12px; vertical-align: middle; }

main { display: flex; flex: 1; min-width: 0; gap: 24px; padding: 0 24px; }

.doc { flex: 1; min-width: 0; max-width: 860px; padding: 28px 0 80px; }
.breadcrumb { color: var(--text-muted); font-size: 13.5px; margin-bottom: 10px; }
.breadcrumb a { color: var(--text-muted); }

.doc h1 { font-family: var(--font-brand); font-size: 2.15rem; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; }
.doc h2 {
  font-family: var(--font-brand); font-size: 1.5rem; margin: 44px 0 12px;
  padding-top: 12px; border-top: 1px solid var(--border); letter-spacing: -0.01em;
}
.doc h3 { font-family: var(--font-brand); font-size: 1.15rem; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-dim); }
.doc strong { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .lead { font-size: 1.08rem; color: var(--text); }

.anchor { color: var(--text-muted); margin-left: 8px; opacity: 0; font-weight: 400; }
h2:hover .anchor, h3:hover .anchor { opacity: 1; }

code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-light); padding: 2px 6px; border-radius: 6px;
}
:root[data-theme="light"] code { color: var(--accent-dark); }

code, pre, pre code, .codeblock { direction: ltr; text-align: left; unicode-bidi: isolate; }

pre {
  margin: 0; padding: 16px 18px; overflow-x: auto;
  background: var(--code-bg); border-radius: 0 0 14px 14px;
}
pre code {
  background: none; color: var(--text-dim); padding: 0; font-size: 13.5px; line-height: 1.65;
}

.codeblock { margin: 18px 0; border: 1px solid var(--border-light); border-radius: 14px; overflow: hidden; }
.codeblock-head {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 8px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.codeblock-head .tab {
  padding: 5px 12px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--text-muted);
  font-family: var(--font-brand); font-size: 13px; font-weight: 600;
}
.codeblock-head .tab:hover { color: var(--text); }
.codeblock-head .tab[aria-selected="true"] { background: var(--surface-dark); color: var(--accent-dark); }
.codeblock-head .copy {
  margin-left: auto; padding: 5px 12px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-light);
  color: var(--text-muted); font-family: var(--font-brand); font-size: 12.5px;
}
.codeblock-head .copy:hover { color: var(--accent); border-color: var(--accent); }
.codeblock .panel[hidden] { display: none; }
.codeblock-head .tabs { display: flex; align-items: center; gap: 4px; }
.codeblock-head .tab:focus-visible,
.codeblock-head .copy:focus-visible,
pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14.5px; display: block; overflow-x: auto; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-family: var(--font-brand); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); white-space: nowrap; }
td { color: var(--text-dim); vertical-align: top; }
td code { white-space: nowrap; }

.note, .warn-box, .tip {
  margin: 20px 0; padding: 14px 18px; border-radius: 12px;
  border-left: 3px solid var(--accent); background: var(--surface); font-size: 15px;
}
.note p:first-child, .warn-box p:first-child, .tip p:first-child { margin-top: 0; }
.note p:last-child, .warn-box p:last-child, .tip p:last-child { margin-bottom: 0; }
.warn-box { border-left-color: var(--warn); }
.tip { border-left-color: var(--accent-light); }
.note .label, .warn-box .label, .tip .label {
  display: block; font-family: var(--font-brand); font-weight: 700;
  font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent-dark); margin-bottom: 4px;
}
.warn-box .label { color: var(--warn); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 22px 0; }
.card {
  display: block; padding: 16px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.card b { font-family: var(--font-brand); display: block; margin-bottom: 4px; }
.card span { color: var(--text-muted); font-size: 14px; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--border); }
.pager a {
  flex: 0 1 46%; padding: 12px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager small { display: block; color: var(--text-muted); font-size: 12px; }
.pager .next { text-align: right; margin-left: auto; }

.toc {
  position: sticky; top: 84px; flex: 0 0 210px; width: 210px;
  max-height: calc(100vh - 110px); overflow-y: auto; padding: 30px 0 40px;
}
.toc-title { font-family: var(--font-brand); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; padding: 4px 10px; border-left: 2px solid var(--border); color: var(--text-muted); font-size: 13.5px; }
.toc li a:hover { color: var(--text); text-decoration: none; }
.toc li a.active { color: var(--accent-dark); border-left-color: var(--accent); }
.toc li.lvl3 a { padding-left: 22px; font-size: 13px; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  max-width: 1500px; margin: 0 auto; padding: 30px 24px 48px;
  border-top: 1px solid var(--border); color: var(--text-muted); font-size: 14px;
}
.footer p { margin: 6px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.footer-links a { color: var(--text-dim); }
.footer .footer-marques { flex: 0 0 100%; margin: 4px 0 0; font-size: 13px; color: var(--text-dim); }

@media (max-width: 1180px) {
  .toc { display: none; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .search-wrap { max-width: none; }
  .topnav .btn-ghost:not(.lang-switch) { display: none; }
  .sidebar {
    position: fixed; top: var(--barre-h, 72px); left: 0; bottom: 0; z-index: 25;
    width: 296px; background: var(--bg);
    transform: translateX(-100%); transition: transform 0.22s ease;
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--card-shadow); }
  main { padding: 0 16px; }
  .doc h1 { font-size: 1.8rem; }
  .pager a { flex: 1 1 100%; }
}
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; height: auto; row-gap: 10px; padding-block: 10px; }
}

:root[data-theme="dark"] { --logo-word-color: #ffffff; --logo-underline-color: #f4f4f5; }

.cloudzir-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 280px;
  margin-inline: auto;
  cursor: pointer;
  user-select: none;
  direction: ltr;
  white-space: nowrap;
}

.cloudzir-logo-text {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
  letter-spacing: 0.1em;
  font-family: var(--font-logo);
  text-transform: none;
}

.cloudzir-word {
  order: 1;
  color: var(--logo-word-color);
  transition: all 0.5s ease-out;
}

.cloudzir-api {
  order: 2;
  position: relative;
  font-weight: 900;
  font-synthesis: weight;
  color: transparent;
  background: linear-gradient(135deg, #d90429, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  transform-origin: center;
  transition: all 0.7s ease;
}

.cloudzir-logo-underline {
  height: 4px;
  width: 24px;
  margin-top: 4px;
  border-radius: 999px;
  opacity: 0.9;
  background: linear-gradient(to right, #10b981, var(--logo-underline-color), #d90429);
  box-shadow: 0 0 8px rgba(210, 16, 52, 0.22);
  transition: all 0.5s ease-out;
}

.cloudzir-logo:hover .cloudzir-word {
  letter-spacing: 0.15em;
  color: #334155;
}

.cloudzir-logo:hover .cloudzir-api {
  transform: scale(1.1) rotate(-2deg);
  background: linear-gradient(135deg, #10b981, #d90429);
  -webkit-background-clip: text;
  background-clip: text;
}

.cloudzir-logo:hover .cloudzir-logo-underline {
  width: 100%;
  box-shadow: 0 0 10px rgba(210, 16, 52, 0.5);
}

:root[data-theme="dark"] .cloudzir-logo-underline {
  background: linear-gradient(to right, #10b981, #f4f4f5, #d90429);
}
:root[data-theme="dark"] .cloudzir-logo:hover .cloudzir-word {
  color: #f3f4f6;
}

@media (forced-colors: active) {
  .cloudzir-api {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: CanvasText;
  }
}

[dir="rtl"] .skip-link { left: auto; right: -9999px; }
[dir="rtl"] .skip-link:focus { left: auto; right: 8px; }

[dir="rtl"] .search-wrap { margin-left: 0; margin-right: auto; }

[dir="rtl"] .sidebar {
  border-right: none;
  border-left: 1px solid var(--border);
  padding: 24px 20px 60px 12px;
}
[dir="rtl"] .sidebar ul { padding: 0 6px 0 0; }
[dir="rtl"] .sidebar li a { border-left: none; border-right: 2px solid transparent; }
[dir="rtl"] .sidebar li a.current { border-left-color: transparent; border-right-color: var(--accent); }

[dir="rtl"] h1 .badge { margin-left: 0; margin-right: 10px; }
[dir="rtl"] .anchor { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .doc ul, [dir="rtl"] .doc ol { padding-left: 0; padding-right: 22px; }

[dir="rtl"] th, [dir="rtl"] td { text-align: right; }

[dir="rtl"] .note, [dir="rtl"] .warn-box, [dir="rtl"] .tip {
  border-left: none; border-right: 3px solid var(--accent);
}
[dir="rtl"] .warn-box { border-right-color: var(--warn); }
[dir="rtl"] .tip { border-right-color: var(--accent-light); }

[dir="rtl"] .pager .next { text-align: left; margin-left: 0; margin-right: auto; }
[dir="rtl"] .toc li a { border-left: none; border-right: 2px solid var(--border); }
[dir="rtl"] .toc li a.active { border-left-color: transparent; border-right-color: var(--accent); }
[dir="rtl"] .toc li.lvl3 a { padding-left: 0; padding-right: 22px; }

@media (max-width: 900px) {
  [dir="rtl"] .sidebar {
    left: auto; right: 0;
    transform: translateX(100%);
  }
  [dir="rtl"] .sidebar.open { transform: translateX(0); }
}

html { scroll-padding-top: 92px; }
body { background: var(--bg); }
.topbar {
  height: 72px;
  gap: 12px;
  padding-inline: 24px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom-color: var(--border);
}
.topbar .brand { min-width: 104px; }
.topbar .cloudzir-logo { width: fit-content; max-width: 280px; margin: 0; flex-direction: column; }
.topbar .cloudzir-logo-text { flex-direction: row; gap: 0.125rem; }
.space-toggle { width: 30px; height: 30px; border: 0; margin-inline-start: -10px; }
.space-toggle svg { width: 16px; height: 16px; }
.topnav { gap: 8px; margin-inline-start: auto; }
.topnav .btn-primary { background: var(--accent); }
.topnav .btn-ghost { border-color: transparent; }
.settings-toggle { margin-inline-start: 4px; }
.layout { max-width: 1600px; }
.sidebar {
  top: 72px;
  flex-basis: 264px;
  width: 264px;
  height: calc(100vh - 72px);
  padding: 26px 16px 56px 24px;
  border-right-color: var(--border);
}
.sidebar .search-wrap { flex: none; width: 100%; max-width: none; margin: 0 0 22px; }
#docsearch { height: 44px; border-radius: 12px; background: var(--surface); }
.sidebar-actions { display: none; gap: 8px; margin: 0 0 20px; }
.sidebar-actions .btn { flex: 1 1 auto; padding-inline: 10px; }
.sidebar .nav-group { margin-bottom: 12px; }
.sidebar .nav-group > button {
  padding: 8px 10px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.sidebar ul { margin: 2px 0 14px; padding-inline-start: 0; }
.sidebar li a { padding: 8px 10px; font-size: 14px; border-radius: 9px; }
.sidebar li a.current { background: color-mix(in srgb, var(--accent) 11%, transparent); }
main { gap: 32px; padding: 34px 32px 72px; }
.doc { max-width: 920px; padding-top: 4px; }
.doc h1 { font-size: clamp(2rem, 3.2vw, 2.8rem); letter-spacing: -0.035em; }
.doc h2 { margin-top: 38px; padding-top: 18px; }
.doc .lead { font-size: 1.04rem; }
.toc { top: 96px; flex-basis: 210px; width: 210px; }
.footer { max-width: 1600px; padding-inline: 32px; }
.footer .cloudzir-logo { max-width: 220px; }
.search-results { top: 52px; border-radius: 14px; }
.search-results a[role="option"][aria-selected="true"] { background: var(--surface-dark); outline: 2px solid var(--accent); outline-offset: -2px; }
.method-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--accent-glow);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: normal;
  vertical-align: middle;
}
.doc .endpoint-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-dark);
}
.doc .endpoint-bar .endpoint {
  min-width: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}
:root .api-format-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 26px; }
:root[data-theme="dark"] .method-badge { color: var(--accent-light); }
.doc code { overflow-wrap: anywhere; }
.doc pre code { overflow-wrap: normal; }
td code { white-space: normal; }
.api-response-trigger,
.response-copy {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin: 8px 0 14px;
  padding: 0 14px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-dim);
  font: 600 13px var(--font-brand);
  cursor: pointer;
}
.api-response-trigger:hover,
.response-copy:hover { color: var(--accent-dark); border-color: var(--accent); }
.settings-dialog,
.response-dialog {
  position: fixed;
  inset-block: 16px;
  inset-inline-end: 16px;
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border-light);
  border-radius: 28px;
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--card-shadow);
}
.settings-dialog[open] {
  display: flex;
  inset-inline-start: auto;
  width: min(462px, calc(100vw - 32px));
  height: calc(100dvh - 32px);
  flex-direction: column;
  border-radius: 26px;
  background: var(--settings-dialog-bg);
  box-shadow: var(--settings-dialog-shadow);
}
.settings-dialog::before {
  display: block;
  width: 34px;
  height: 4px;
  flex: 0 0 4px;
  margin: 8px auto;
  border-radius: 2px;
  background: var(--text-muted);
  content: "";
  opacity: 0.35;
}
.response-dialog {
  inset: 50% auto auto 50%;
  width: min(820px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  margin: 0;
  transform: translate(-50%, -50%);
}
dialog::backdrop { background: rgba(18, 25, 20, 0.3); backdrop-filter: blur(4px); }
.settings-panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.settings-panel-head h2 { flex: 1; margin: 0; font: 650 20px/1.25 var(--font-brand); }
.settings-panel-head .icon-btn { width: 38px; height: 38px; background: var(--surface); }
.settings-dialog .settings-panel-head {
  height: 65px;
  min-height: 65px;
  gap: 15px;
  padding: 10px 20px 18px;
  background: transparent;
}
.settings-dialog .settings-panel-head h2 { flex: 0 1 auto; font: 600 22px/1.5 var(--font-brand); letter-spacing: -.6px; }
.settings-dialog .settings-panel-head .icon-btn { width: 36px; height: 36px; border-color: var(--border); background: transparent; font: inherit; }
.settings-dialog .settings-panel-head .settings-close { margin-inline-start: auto; }
.settings-view { padding: 22px; }
.settings-view[hidden] { display: none; }
.settings-back[hidden] { display: none; }
.settings-section-label { margin: 0 0 10px; padding: 0 3px; color: var(--accent-dark); font-size: 11px; line-height: 16.5px; font-weight: 550; letter-spacing: -.2px; }
:root[data-theme="dark"] .settings-section-label { color: var(--accent-light); }
.settings-box {
  display: flex;
  height: 190px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  margin-bottom: 22px;
}
.settings-row,
.settings-motion-row {
  display: flex;
  width: 100%;
  min-height: 0;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: start;
  text-decoration: none;
}
.space-list a {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-align: start;
  text-decoration: none;
}
.settings-box > :last-child { border-bottom: 0; }
.settings-row { flex: 1 1 0; cursor: pointer; font: 400 12px/18px var(--font-main); }
.space-list a:first-child { border-radius: 14px 14px 0 0; }
.space-list a:last-child { border-radius: 0 0 14px 14px; }
.settings-row:hover,
.settings-motion-row:hover,
.space-list a:hover { background: var(--surface-dark); text-decoration: none; }
.settings-row > span:nth-child(2),
.space-list a > span:nth-child(2),
.settings-motion-row > span:nth-child(2) { flex: 1; }
.settings-row small,
.settings-motion-row small { display: block; margin-top: 0; color: var(--text-muted); font-size: 10px; line-height: 18px; }
.space-list small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 12px; }
.settings-row-icon { display: inline-flex; width: 18px; height: 20px; align-items: center; justify-content: center; color: var(--text-muted); text-align: center; }
.space-symbol { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; color: var(--text-muted); text-align: center; }
.settings-row-icon svg { width: 18px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.settings-chevron { display: inline-flex; width: 13px; height: 13px; align-items: center; justify-content: center; color: var(--text-muted); }
.settings-chevron svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.settings-motion-row { position: relative; flex: 1 1 0; cursor: pointer; font: 400 12px/18px var(--font-main); }
.settings-motion-row input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.settings-motion-row input:focus-visible + .settings-chevron { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.theme-options button {
  min-height: 78px;
  padding: 10px 6px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-dim);
  font: 600 13px var(--font-brand);
  cursor: pointer;
}
.theme-options button span { display: block; margin-bottom: 6px; font-size: 19px; }
.theme-options button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent-dark); }
:root[data-theme="dark"] .theme-options button[aria-pressed="true"] { color: var(--accent-light); }
.settings-hint { margin: 14px 2px; color: var(--text-muted); font-size: 13px; }
.settings-view .lang-switch { display: inline-flex; margin: 0; }
.space-list { display: flex; flex-direction: column; }
.space-list a { color: var(--text); }
.settings-dialog :focus-visible,
.response-dialog :focus-visible,
.topbar :focus-visible,
.sidebar :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:root[data-reduced-motion="true"] *,
:root[data-reduced-motion="true"] *::before,
:root[data-reduced-motion="true"] *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 900px) {
  .sidebar { top: var(--barre-h, 72px); width: min(320px, calc(100vw - 48px)); }
  .topnav .btn-primary { display: none; }
  .sidebar-actions { display: flex; }
  .topbar { height: 64px; padding-inline: 14px; gap: 8px; }
  .topbar .brand { min-width: 0; }
  .space-toggle { margin-inline-start: -6px; }
  .topnav { gap: 6px; }
  .topnav .lang-switch { min-width: 44px; height: 36px; padding-inline: 9px; }
  .settings-toggle { width: 36px; height: 36px; margin-inline-start: 0; }
  main { padding: 28px 24px 60px; }
}
@media (max-width: 600px) {
  .topbar { height: 62px; }
  .menu-toggle { width: 38px; height: 38px; }
  .space-toggle { width: 26px; height: 26px; }
  main { padding: 24px 20px 48px; }
  .doc { padding-bottom: 48px; }
  .doc h1 { font-size: 1.9rem; }
  .doc h2 { font-size: 1.35rem; }
  .doc .lead { font-size: 1rem; }
  .footer { padding: 24px 20px 36px; }
  .footer-links { gap: 12px 16px; }
  .settings-dialog[open] { inset: auto 0 0; width: 100%; height: auto; max-height: min(84dvh, 680px); border-radius: 24px 24px 0 0; margin: 0; }
  .response-dialog { inset: 50% auto auto 50%; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; }
  .response-dialog pre { overflow-x: auto; }
  .settings-dialog .settings-panel-head { height: 60px; min-height: 60px; padding: 6px 20px 17px; }
  .settings-dialog .settings-panel-head h2 { font-size: 21px; line-height: 31.5px; }
  .settings-view { padding: 20px; }
}
:root[dir="rtl"] .topbar { direction: rtl; }
:root[dir="rtl"] .space-toggle { margin-inline-start: -6px; }
:root[dir="rtl"] .settings-row-icon,
:root[dir="rtl"] .space-symbol { text-align: center; }
@media (min-width: 601px) {
  :root[dir="rtl"] .settings-dialog[open] { left: 16px; right: auto; }
}

:root {
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-brand: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --table-font-size: 14.5px;
  --topbar-bg: rgba(26, 31, 28, 0.88);
  --settings-dialog-bg: rgba(26, 31, 28, 0.88);
  --settings-dialog-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
}
:root[data-theme="light"] {
  --bg: #f3f6f4;
  --accent: #79dfa2;
  --accent-dark: #246c44;
  --accent-light: #246c44;
  --accent-glow: rgba(55, 152, 83, 0.09);
  --accent-contrast: #123a24;
  --surface: #ffffff;
  --surface-dark: #edf3ef;
  --border: rgba(32, 68, 44, 0.09);
  --border-light: rgba(255, 255, 255, 0.92);
  --text: #1e2b23;
  --text-dim: #445b4c;
  --text-muted: #5c6e62;
  --danger: #b03044;
  --warn: #82611b;
  --code-bg: #eef3f0;
  --topbar-bg: rgba(249, 252, 250, 0.88);
  --settings-dialog-bg: rgba(249, 252, 250, 0.88);
  --settings-dialog-shadow: 0 24px 90px rgba(0, 21, 9, 0.19);
}
:root,
:root[data-theme="dark"] {
  --bg: #101211;
  --accent: #86e6b3;
  --accent-dark: #86e6b3;
  --accent-light: #86e6b3;
  --accent-glow: rgba(134, 230, 179, 0.115);
  --accent-contrast: #103021;
  --surface: #1b1f1c;
  --surface-dark: #171b18;
  --border: rgba(223, 244, 229, 0.09);
  --border-light: rgba(224, 250, 231, 0.13);
  --text: #f0f5f1;
  --text-dim: #c3cdc6;
  --text-muted: #9daaa1;
  --danger: #f4858c;
  --warn: #e0bf67;
  --code-bg: #141815;
  --topbar-bg: rgba(26, 31, 28, 0.88);
}

body { font-family: var(--font-main); line-height: 1.5; }
.topbar {
  height: 72px;
  gap: 20px;
  padding-inline: 30px;
  background: var(--topbar-bg);
}
.topbar .brand { min-width: 0; }
.topbar .cloudzir-logo { width: fit-content; max-width: 280px; margin: 0; flex-direction: column; }
.topbar .cloudzir-logo-text { gap: 0.125rem; font-size: 24px; font-weight: 800; line-height: 32px; letter-spacing: 0.1em; }
.topbar .settings-toggle { margin-inline-start: auto; }
.topbar .brand { min-height: 44px; padding: 1px 6px; }
.topbar .space-toggle { font: inherit; }
.topbar .brand.space-toggle { width: auto; height: 44px; min-width: 0; margin-inline-start: 0; padding: 1px 6px; border: 0; border-radius: 0; background: transparent; color: var(--text); letter-spacing: -0.5px; gap: 11px; }
.topbar .brand .icon { display: inline-flex; flex: none; width: 15px; height: 20px; opacity: 0.6; }
.topbar .brand .icon svg { width: 15px; height: 20px; }
.topbar .settings-toggle { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); font: inherit; }
.topbar .settings-toggle svg { width: 20px; height: 20px; stroke-width: 1.65px; }
.topbar { padding-inline-start: 30px; padding-inline-end: 30px; }
.space-toggle { border: 0; }
.space-toggle svg { width: 16px; height: 16px; }
table { font-size: var(--table-font-size); }

@media (min-width: 901px) {
  .layout {
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr);
    align-items: start;
    gap: 34px;
    max-width: none;
    margin: 0;
    padding: 32px 30px 60px;
  }
  .sidebar {
    position: sticky;
    top: 104px;
    flex: none;
    width: 218px;
    height: calc(100vh - 130px);
    padding: 0 5px 0 0;
    border: 0;
  }
  .sidebar .search-wrap { width: 199px; margin: 0 0 26px; margin-inline-start: 7px; }
  #docsearch { height: 44px; padding: 10px 12px 10px 38px; border: 1px solid var(--border); border-radius: 11px; font-size: 13px; line-height: 1.5; }
  .sidebar .nav-group { margin-bottom: 22px; }
  .sidebar .nav-group > button {
    padding: 5px 12px;
    color: var(--text-dim);
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
  }
  .sidebar .nav-group > button svg { visibility: hidden; width: 11px; height: 11px; }
  .sidebar .search-wrap { margin-bottom: 19px; }
  .sidebar ul { margin: 5px 0 14px; padding: 0; }
  .sidebar li a {
    gap: 10px;
    min-height: 42px;
    margin: 3px 0;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.5;
  }
  .sidebar li a.current { color: var(--accent-dark); }
  :root[data-theme="dark"] .sidebar li a.current { color: var(--accent-light); }
  [dir="rtl"] .sidebar { padding: 0 5px 36px 0; border: 0; }
  [dir="rtl"] .sidebar ul { padding: 0; }
  .nav-item-icon { display: inline-flex; flex: 0 0 17px; align-items: center; justify-content: center; }
  .nav-item-icon svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .nav-item-label { min-width: 0; }
  main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    align-items: start;
    gap: 24px;
    min-width: 0;
    padding: 0;
  }
  .doc { max-width: none; padding: 0 0 80px; }
  .breadcrumb { margin-bottom: 16px; font-size: 11px; line-height: 1.5; }
  .doc h1 { width: fit-content; max-width: 100%; margin-bottom: 0; font-size: 47px; font-weight: 610; line-height: 1.14; letter-spacing: -1.6px; }
  .doc h2 {
    margin: 28px 0 13px;
    padding-top: 0;
    border-top: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.6px;
  }
  .doc h2:not(.step-heading) { font-size: 22px; line-height: 1.5; }
  .doc h2:not(.step-heading):first-of-type { margin: 0; }
  .doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: var(--text-muted); font-size: 12px; line-height: 1.7; }
  .doc p { margin: 10px 0; }
  .doc .lead { margin: 12px 0 0; font-size: 13px; line-height: 1.75; color: var(--text-muted); }
  .doc .step-heading { display: flex; align-items: center; gap: 16px; }
  .doc .step-number {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
  }
  .toc { top: 104px; padding: 0; }
  .footer { max-width: none; padding-inline: 30px; }
}

@media (min-width: 901px) {
  .doc pre:not(.codeblock pre) {
    padding: 20px;
    color: var(--text-dim);
    background: transparent;
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.9;
  }
  .doc pre:not(.codeblock pre) code { font-size: inherit; line-height: inherit; }
  .cards { margin: 0; padding: 23px; border-radius: 20px; gap: normal; }
  .card { padding: 23px; border-radius: 20px; }
  #docsearch { background: var(--surface-dark); }
  .sidebar li a.current {
    background: var(--accent-glow);
    border-left-color: transparent;
    border-right-color: transparent;
  }
  .sidebar li a.current::after {
    content: "";
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    margin-inline-start: auto;
    border-radius: 50%;
    background: var(--accent-dark);
  }
  :root[data-theme="dark"] .sidebar li a.current::after { background: var(--accent-light); }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .layout { grid-template-columns: 218px minmax(0, 1fr); gap: 24px; padding-inline: 18px; }
  main { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .topbar { height: 62px; gap: 16px; padding-inline: 16px; }
  .topbar .brand { min-width: 0; }
  .topbar .settings-toggle { margin-inline-start: auto; width: 42px; height: 42px; }
  .topbar .menu-toggle { width: 42px; height: 42px; border-color: var(--border); border-radius: 13px; background: var(--surface); font: inherit; }
  .topbar .menu-toggle svg { width: 20px; height: 20px; stroke-width: 1.65px; }
  .space-toggle { margin-inline-start: -8px; }
  .layout { display: block; max-width: none; margin: 0; padding: 0; }
  .sidebar {
    position: fixed;
    top: var(--barre-h, 62px);
    left: 0;
    right: auto;
    bottom: 0;
    z-index: 25;
    width: min(296px, calc(100vw - 24px));
    height: auto;
    padding: 24px 18px 36px;
    overflow-y: auto;
    background: var(--bg);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--card-shadow); }
  .sidebar .search-wrap { display: block; width: 100%; max-width: none; margin: 0 0 22px; }
  .sidebar .nav-group > button { text-transform: none; }
  .nav-item-icon { display: inline-flex; flex: 0 0 18px; align-items: center; justify-content: center; }
  .nav-item-icon svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  main { display: block; min-width: 0; padding: 0 20px; }
  .doc { max-width: none; padding: 20px 0 48px; }
  .toc { display: none; }
  .footer { max-width: none; padding-inline: 20px; }
}

@media (max-width: 600px) {
  .topbar { height: 64px; gap: 10px; padding: 0 17px; }
  .menu-toggle { width: 42px; height: 42px; }
  .space-toggle { width: 26px; height: 26px; }
  main { padding: 0 20px; }
  .doc { padding-top: 27px; }
  .breadcrumb { margin-bottom: 16px; font-size: 11px; line-height: 1.5; }
  .doc h1 { margin: 0; font-size: 33px; font-weight: 610; line-height: 1.14; letter-spacing: -1.1px; }
  .doc p, .doc li { font-size: 12px; line-height: 1.7; }
  .doc .lead { margin: 12px 0 0; font-size: 12px; line-height: 1.75; }
  .doc .endpoint-bar { padding: 18px; }
  .doc h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.6px; }
}

@media (max-width: 360px) {
  .topbar .brand.space-toggle { gap: 1px; padding-inline: 0; }
}

@media (max-width: 340px) {
  .topbar { gap: 4px; }
}

.doc pre { white-space: pre-wrap; }
.doc .codeblock pre {
  padding: 20px;
  color: var(--text-dim);
  background: transparent;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
}
.doc .codeblock pre code { font-size: inherit; line-height: inherit; white-space: inherit; }
.warn-box {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--warn) 7%, var(--surface));
  color: var(--warn);
  font-size: 12px;
  line-height: 1.65;
}
.warn-box p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }

.topbar .cloudzir-logo { flex-direction: row; gap: 0; }
:root[dir="rtl"] .topbar .cloudzir-logo { direction: rtl; }
.topbar .cloudzir-logo-text {
  gap: 11px; font-family: var(--font-main); font-size: 19px; font-weight: 710;
  line-height: 28.5px; letter-spacing: -0.5px;
}
.topbar .cloudzir-word { color: var(--text); }
.topbar .cloudzir-api {
  margin-inline-start: 0px; padding-inline-start: 13px;
  border-inline-start: 1px solid var(--border);
  color: var(--text-muted); background: none; -webkit-text-fill-color: currentColor;
  font-size: 13px; font-weight: 450; line-height: 19.5px; letter-spacing: normal;
}
.topbar .cloudzir-logo-underline { display: none; }
.topbar .cloudzir-logo:hover .cloudzir-word { color: var(--text); letter-spacing: inherit; }
.topbar .cloudzir-logo:hover .cloudzir-api { transform: none; background: none; }
.topbar .brand.space-toggle:focus-visible {
  border-radius: 6px;
  outline: 2px solid #246c44;
  outline-offset: 4px;
}
:root[data-theme="dark"] .topbar .brand.space-toggle:focus-visible { outline-color: #86e6b3; }

@media (max-width: 600px) {
  .topbar .cloudzir-logo-text { font-size: 17px; line-height: 25.5px; }
  .topbar .cloudzir-api { font-size: 11px; line-height: 16.5px; padding-inline-start: 9px; }
}
@media (max-width: 360px) {
  .topbar .cloudzir-logo-text { font-size: 15px; line-height: 20px; }
}
