/* ==========================================================================
   Udeyou OTP: developer documentation (/docs only). Owner: DOCS.
   Light + dark ([data-theme="dark"]). Code windows stay dark in both themes.
   ========================================================================== */

.page-docs {
  --dc-mono: "JetBrains Mono", "IBM Plex Sans Arabic", Consolas, "Courier New", monospace;
  --dc-code-bg: #0B1233;
  --dc-code-bar: #0F1840;
  --dc-code-border: #1A2350;
  --dc-code-line: rgba(255, 255, 255, .07);
  --dc-code-text: #D5DEFA;
  --dc-code-dim: rgba(201, 212, 245, .66);
  --dc-aside: 232px;
  --dc-hero-top: #10173A;
  --dc-grid: rgba(138, 162, 255, .06);
  --dc-frame-top: #1F2C61;
  --dc-frame-bottom: #192452;
}
[data-theme="dark"] .page-docs {
  --dc-code-bg: #0A1030;
  --dc-code-bar: #0E1538;
  --dc-code-border: rgba(255, 255, 255, .09);
  --dc-hero-top: #070C22;
  --dc-grid: rgba(138, 162, 255, .06);
  --dc-frame-top: #0E1538;
  --dc-frame-bottom: #0A1030;
}

/* ---------- Header ---------- */
.docs-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 64px 0 0;
  background:
    radial-gradient(820px 380px at 50% -8%, rgba(51, 88, 255, .20), transparent 70%),
    radial-gradient(520px 320px at 88% 34%, rgba(34, 199, 232, .10), transparent 70%),
    radial-gradient(520px 320px at 10% 40%, rgba(51, 88, 255, .10), transparent 70%),
    linear-gradient(180deg, var(--dc-hero-top) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .docs-hero {
  background:
    radial-gradient(820px 380px at 50% -8%, rgba(51, 88, 255, .24), transparent 70%),
    radial-gradient(520px 320px at 88% 34%, rgba(34, 199, 232, .10), transparent 70%),
    radial-gradient(520px 320px at 10% 40%, rgba(51, 88, 255, .12), transparent 70%),
    linear-gradient(180deg, var(--dc-hero-top) 0%, var(--bg) 100%);
}
.docs-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--dc-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--dc-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.docs-hero-copy { max-width: 800px; margin-inline: auto; text-align: center; }
.docs-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 6px 5px 14px; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 600; color: var(--brand-300);
  background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--brand-100);
  box-shadow: var(--shadow-xs);
}
[data-theme="dark"] .docs-eyebrow { color: var(--brand-300); }
.docs-version {
  padding: 2px 9px; border-radius: var(--radius-pill);
  font: 600 11.5px/1.6 var(--font-mono); color: #fff; background: var(--grad);
}
.docs-title {
  margin-top: 20px;
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1.25; letter-spacing: -.01em;
  text-wrap: balance;
}
.docs-title-brand {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  unicode-bidi: isolate;
}
[data-theme="dark"] .docs-title-brand { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }
.docs-lead { max-width: 640px; margin: 16px auto 0; font-size: 18px; line-height: 1.8; color: var(--muted); text-wrap: pretty; }

.docs-base {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  margin-top: 28px; padding: 5px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.docs-base-label {
  flex-shrink: 0; padding: 6px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--line);
}
.docs-base .docs-base-url {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 0 10px; border: 0; background: none;
  font: 600 14.5px/1.6 var(--font-mono); color: var(--text);
}
.docs-base-copy {
  flex-shrink: 0; display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 8px; border: 0; cursor: pointer;
  color: var(--muted); background: transparent; transition: background .15s, color .15s;
}
.docs-base-copy:hover { color: var(--brand-300); background: var(--brand-50); }
[data-theme="dark"] .docs-base-copy:hover { color: var(--brand-300); }
.docs-base-copy svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.docs-base-copy .dc-copy-ok { opacity: 0; }
.docs-base-copy.is-copied { color: var(--ok-text); }
.docs-base-copy.is-copied svg:first-child { opacity: 0; }
.docs-base-copy.is-copied .dc-copy-ok { opacity: 1; }

.docs-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.docs-hero-actions .btn svg { width: 18px; height: 18px; }

/* The documentation image (light and dark variants) */
.docs-figure { position: relative; max-width: 1120px; margin: 52px auto 0; }
.docs-figure::before {
  content: ""; position: absolute; inset: -40px 6% auto; height: 70%; z-index: -1;
  background: radial-gradient(closest-side, rgba(51, 88, 255, .16), transparent);
  filter: blur(20px);
}
.docs-figure-frame {
  position: relative; overflow: hidden; padding: 28px 32px 6px;
  background: linear-gradient(180deg, var(--dc-frame-top) 0%, var(--dc-frame-bottom) 100%);
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 30px 70px -30px rgba(3, 8, 30, .75);
}
[data-theme="dark"] .docs-figure-frame { box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 30px 70px -30px rgba(0, 0, 0, .8); }
.docs-figure-frame::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--grad);
}
.docs-figure-img { display: block; width: 100%; max-width: 1040px; height: auto; margin-inline: auto; }
.docs-figure-img.is-light { display: none; }
.docs-figure-img.is-dark { display: block; }
[data-theme="dark"] .docs-figure-img.is-light { display: none; }
[data-theme="dark"] .docs-figure-img.is-dark { display: block; }
.docs-figure figcaption {
  padding: 0 32px;
  background: var(--surface);
  border-inline: 1px solid var(--line);
}
.docs-flow {
  list-style: none; padding: 18px 0 24px; margin: 0 auto; max-width: 1040px;
  display: grid; grid-template-columns: 27.9% 25% 25.2% 21.9%;
  border-top: 1px dashed var(--line-strong);
}
.docs-flow li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 8px; text-align: center; }
.docs-flow-num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-bottom: 4px;
  border-radius: 50%; font: 600 12px/1 var(--font-mono); color: var(--brand);
  background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-100);
}
[data-theme="dark"] .docs-flow-num { color: var(--brand-300); }
.docs-flow li:last-child .docs-flow-num { color: var(--ok-text); background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok-line); }
.docs-flow b { font-size: 15px; font-weight: 700; color: var(--heading); line-height: 1.5; }
.docs-flow-meta { font: 500 12.5px/1.5 var(--font-mono); color: var(--subtle); }
.docs-flow-meta:not([dir]) { direction: ltr; unicode-bidi: isolate; }
.docs-flow-meta[dir="rtl"] { font-family: var(--font-sans); font-size: 13px; }

/* ---------- Body layout ---------- */
.docs-body { padding: 56px 0 96px; }
.docs-shell {
  display: grid; grid-template-columns: var(--dc-aside) minmax(0, 1fr);
  gap: 56px; align-items: start;
}
.docs-aside {
  position: sticky; top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto;
  padding-bottom: 8px; scrollbar-width: thin;
}
.docs-content { min-width: 0; }

.docs-toc-group + .docs-toc-group { margin-top: 22px; }
.docs-toc-title {
  margin-bottom: 6px; padding-inline: 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: var(--subtle);
}
.docs-toc ul { list-style: none; padding: 0; display: grid; gap: 1px; }
.docs-toc a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 14px; border-radius: 9px;
  font-size: 14.5px; font-weight: 500; line-height: 1.5; color: var(--muted);
  border-inline-start: 2px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.docs-toc a:hover { color: var(--text); background: var(--hover); text-decoration: none; }
.docs-toc a.is-active {
  color: var(--brand); background: var(--brand-50); border-inline-start-color: var(--brand);
  border-start-start-radius: 0; border-end-start-radius: 0; font-weight: 600;
}
[data-theme="dark"] .docs-toc a.is-active { color: var(--brand-300); border-inline-start-color: var(--brand-300); }
.toc-method {
  flex-shrink: 0; padding: 1px 6px; border-radius: 5px;
  font: 600 10.5px/1.6 var(--font-mono); letter-spacing: .02em;
}
.toc-method.is-post { color: var(--brand-600); background: var(--brand-50); }
.toc-method.is-get { color: var(--ok-text); background: var(--ok-bg); }
[data-theme="dark"] .toc-method.is-post { color: var(--brand-300); }

.docs-aside-help {
  margin-top: 28px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.docs-aside-help-ico {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 8px;
  border-radius: 9px; color: var(--brand); background: var(--brand-50);
}
[data-theme="dark"] .docs-aside-help-ico { color: var(--brand-300); }
.docs-aside-help-ico svg { width: 18px; height: 18px; }
.docs-aside-help p { font-size: 14px; font-weight: 600; color: var(--heading); }
.docs-aside-help a { display: inline-block; margin-top: 2px; font-size: 13.5px; font-weight: 500; }

/* Mobile table of contents */
.docs-toc-m {
  display: none; margin-bottom: 36px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.docs-toc-m summary {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  font-size: 15px; font-weight: 600; color: var(--heading); cursor: pointer; list-style: none;
}
.docs-toc-m summary::-webkit-details-marker { display: none; }
.docs-toc-m summary svg { width: 18px; height: 18px; color: var(--brand); }
[data-theme="dark"] .docs-toc-m summary svg { color: var(--brand-300); }
.docs-toc-m-chev {
  width: 8px; height: 8px; margin-inline-start: auto;
  border-right: 2px solid var(--subtle); border-bottom: 2px solid var(--subtle);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s;
}
.docs-toc-m[open] .docs-toc-m-chev { transform: rotate(-135deg) translateY(-2px); }
.docs-toc-m .docs-toc { padding: 4px 8px 14px; border-top: 1px solid var(--line); }
.docs-toc-m .docs-toc-group:first-child { margin-top: 12px; }

/* ---------- Sections ---------- */
.dc-section { padding-block: 0 64px; }
.dc-section + .dc-section { padding-top: 56px; border-top: 1px solid var(--line); }
.dc-section:last-child { padding-bottom: 0; }
.dc-head { margin-bottom: 28px; }
.dc-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: 13px; font-weight: 600; color: var(--brand);
}
[data-theme="dark"] .dc-kicker { color: var(--brand-300); }
.dc-kicker::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--grad); }
.dc-head h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.35; }
.dc-lede { margin-top: 12px; font-size: 16.5px; line-height: 1.9; color: var(--muted); max-width: 780px; }
.dc-h3 { margin: 36px 0 14px; font-size: 18px; }
.dc-p { margin: 16px 0; color: var(--muted); font-size: 15.5px; line-height: 1.9; }
.docs-content code { font-size: .84em; }
.page-docs code, .page-docs .dc-endpoint { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.docs-content p > code, .docs-content li > code, .docs-content dd > code, .docs-content td > code, .docs-content li > span > code { white-space: nowrap; overflow-wrap: normal; }

/* Endpoint bar */
.dc-endpoint {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px;
  margin-top: 16px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-xs);
  font-family: var(--font-mono);
}
.dc-method {
  padding: 4px 9px; border-radius: 7px;
  font: 700 12px/1.4 var(--font-mono); letter-spacing: .03em;
}
.dc-method.is-post { color: #fff; background: var(--brand); }
.dc-method.is-get { color: #fff; background: #08805A; }
.dc-path { font: 600 15px/1.5 var(--font-mono); color: var(--heading); overflow-wrap: anywhere; }
.dc-path-base { color: var(--subtle); font-weight: 500; }
.dc-endpoint-status {
  margin-left: auto; padding: 3px 10px; border-radius: var(--radius-pill);
  font: 600 12px/1.5 var(--font-mono); color: var(--ok-text);
  background: var(--ok-bg); border: 1px solid var(--ok-line);
}

/* Overview flow */
.dc-flow {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.dc-flow li {
  position: relative; padding: 22px 20px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.dc-flow-ico {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 11px; color: #fff; background: var(--grad);
  box-shadow: 0 8px 18px -8px rgba(51, 88, 255, .6);
}
.dc-flow li:last-child .dc-flow-ico { background: linear-gradient(135deg, #12B981 0%, #22C7E8 100%); box-shadow: 0 8px 18px -8px rgba(18, 185, 129, .6); }
.dc-flow-ico svg { width: 20px; height: 20px; }
.dc-flow-step {
  position: absolute; top: 18px; inset-inline-end: 18px;
  font: 600 12px var(--font-mono); color: var(--subtle);
}
.dc-flow h3 { margin: 14px 0 6px; font-size: 16.5px; }
.dc-flow p { font-size: 14.5px; line-height: 1.85; color: var(--muted); }

.dc-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.dc-facts > div { padding: 16px 20px; }
.dc-facts > div:nth-child(even) { border-inline-start: 1px solid var(--line); }
.dc-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.dc-facts dt { font-size: 13px; font-weight: 600; color: var(--subtle); }
.dc-facts dd { margin-top: 4px; font-size: 15px; line-height: 1.8; color: var(--text); }

/* Quick start steps */
.dc-steps { list-style: none; padding: 0; margin: 0; counter-reset: dcstep; }
.dc-steps > li {
  position: relative; counter-increment: dcstep;
  padding-inline-start: 56px; padding-bottom: 28px;
}
.dc-steps > li::before {
  content: counter(dcstep);
  position: absolute; inset-inline-start: 0; top: 0;
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; font: 700 15px/1 var(--font-mono); color: #fff;
  background: var(--grad); box-shadow: 0 0 0 5px var(--bg), 0 8px 18px -8px rgba(51, 88, 255, .7);
}
.dc-steps > li:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 17px; top: 44px; bottom: 6px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 5px, transparent 5px 10px);
}
.dc-steps h3 { font-size: 17px; line-height: 36px; }
.dc-steps p { margin-top: 2px; font-size: 15.5px; line-height: 1.85; color: var(--muted); }
.dc-steps .dc-code:first-of-type { margin-top: 16px; }

/* Callouts */
.dc-callout {
  display: flex; align-items: flex-start; gap: 14px;
  margin: 24px 0; padding: 16px 18px;
  border: 1px solid; border-radius: var(--radius);
}
.dc-callout-ico {
  flex-shrink: 0; display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--surface);
}
.dc-callout-ico svg { width: 19px; height: 19px; }
.dc-callout .dc-callout-title { margin-bottom: 4px; font-size: 15.5px; font-weight: 700; }
.dc-callout p { font-size: 15px; line-height: 1.85; }
.dc-callout.is-info { background: var(--info-bg); border-color: var(--info-line); color: var(--info-text); }
.dc-callout.is-info .dc-callout-ico { color: var(--brand); box-shadow: inset 0 0 0 1px var(--info-line); }
.dc-callout.is-info .dc-callout-title { color: var(--info-text); }
.dc-callout.is-warn { background: var(--warn-bg); border-color: var(--warn-line); color: #5A3B00; }
.dc-callout.is-warn .dc-callout-title { color: #5A3B00; }
.dc-callout.is-warn .dc-callout-ico { color: #B76E00; box-shadow: inset 0 0 0 1px var(--warn-line); }
[data-theme="dark"] .dc-callout-ico { background: rgba(255, 255, 255, .05); }
[data-theme="dark"] .dc-callout.is-info { color: #CBD5FF; }
[data-theme="dark"] .dc-callout.is-info .dc-callout-ico, [data-theme="dark"] .dc-callout.is-info .dc-callout-title { color: var(--brand-300); }
[data-theme="dark"] .dc-callout.is-warn, [data-theme="dark"] .dc-callout.is-warn .dc-callout-title { color: #F3D9A6; }
[data-theme="dark"] .dc-callout.is-warn .dc-callout-ico { color: var(--warn-text); }
.dc-callout code { white-space: nowrap; }

/* Parameter lists */
.dc-params {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); overflow: hidden;
}
.dc-param { padding: 15px 20px; }
.dc-param + .dc-param { border-top: 1px solid var(--line); }
.dc-param-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.docs-content .dc-param-name {
  padding: 0; border: 0; background: none;
  font: 600 14.5px/1.6 var(--font-mono); color: var(--heading);
}
.dc-param-type { font: 12.5px/1.6 var(--font-mono); color: var(--subtle); }
.dc-flag {
  padding: 1px 8px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; line-height: 1.7;
}
.dc-flag.is-req { color: var(--danger-text); background: var(--danger-bg); box-shadow: inset 0 0 0 1px var(--danger-line); }
.dc-flag.is-opt { color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.dc-flag.is-rec { color: var(--ok-text); background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok-line); }
.dc-flag.is-alt { color: var(--brand-600); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-100); }
[data-theme="dark"] .dc-flag.is-alt { color: var(--brand-300); }
.dc-param p { margin-top: 4px; font-size: 14.5px; line-height: 1.85; color: var(--muted); }
.dc-params.is-compact .dc-param {
  display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 4px 20px; align-items: baseline;
  padding: 12px 20px;
}
.dc-params.is-compact .dc-param-head { flex-direction: column; align-items: flex-start; gap: 0; }
.dc-params.is-compact .dc-param p { margin-top: 0; }

/* Key cards */
.dc-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dc-key {
  padding: 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.dc-key-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dc-key-top h4 { font-size: 16px; line-height: 1.4; }
.dc-key-top code { display: inline-block; margin-top: 2px; }
.dc-key-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; }
.dc-key-ico svg { width: 20px; height: 20px; }
.dc-key.is-live .dc-key-ico { color: var(--ok-text); background: var(--ok-bg); }
.dc-key.is-test .dc-key-ico { color: var(--warn-text); background: var(--warn-bg); }
.dc-key ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.dc-key li { position: relative; padding-inline-start: 16px; font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.dc-key li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .78em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong);
}
.dc-key.is-live li::before { background: var(--ok); }
.dc-key.is-test li::before { background: var(--warn); }

/* Rules and notes */
.dc-rules { list-style: none; padding: 0; margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dc-rules li {
  display: flex; gap: 12px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.dc-rule-ico {
  flex-shrink: 0; display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 9px; color: var(--brand); background: var(--brand-50);
}
[data-theme="dark"] .dc-rule-ico { color: var(--brand-300); }
.dc-rule-ico svg { width: 17px; height: 17px; }
.dc-rules p { font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.dc-notes { margin: 16px 0 0; padding-inline-start: 20px; display: grid; gap: 6px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.dc-notes li::marker { color: var(--brand); }

/* Tables */
.dc-table {
  margin: 0 0 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.dc-table table { min-width: 100%; }
.dc-table th { font-size: 13px; padding: 12px 16px; }
.dc-table td { padding: 12px 16px; font-size: 14.5px; line-height: 1.7; color: var(--text); vertical-align: top; }
.dc-table td code { white-space: nowrap; }
.dc-num { font: 600 13.5px var(--font-mono); direction: ltr; text-align: end; }
.dc-none { color: var(--subtle); font-size: 13.5px; }
.dc-errors table { min-width: 720px; }
.dc-errors td:nth-child(4) { color: var(--muted); min-width: 220px; }
.dc-where { white-space: nowrap; color: var(--muted); font-size: 13.5px; }
.dc-http {
  display: inline-block; min-width: 44px; padding: 1px 8px; border-radius: 7px; text-align: center;
  font: 700 12.5px/1.7 var(--font-mono);
}
.dc-http.is-neutral { color: var(--code-text); background: var(--code-bg); }
.dc-http.is-warn { color: var(--warn-text); background: var(--warn-bg); }
.dc-http.is-err { color: var(--danger-text); background: var(--danger-bg); }

/* ---------- Code blocks (dark in both themes) ---------- */
.dc-code {
  position: relative; margin: 16px 0 20px; overflow: hidden;
  direction: ltr; text-align: left;
  background: var(--dc-code-bg);
  border: 1px solid var(--dc-code-border); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(10, 16, 48, .08), 0 18px 40px -22px rgba(10, 16, 48, .55);
}
[data-theme="dark"] .dc-code { box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .8); }
.dc-code + .dc-code { margin-top: -8px; }
.dc-code::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(124, 149, 255, .55), rgba(34, 199, 232, .4), transparent);
}
.dc-code-bar {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 8px 0 16px;
  background: var(--dc-code-bar); border-bottom: 1px solid var(--dc-code-line);
}
.dc-code-label { font: 600 12.5px/1 var(--font-mono); color: #E7ECFF; white-space: nowrap; }
.dc-response .dc-code-label { color: var(--dc-code-dim); font-weight: 500; }
.dc-code-note { font: 12.5px/1 var(--font-mono); color: var(--dc-code-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dc-status {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; min-width: 0; overflow: hidden;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font: 600 11.5px/1.5 var(--font-mono);
}
.dc-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dc-status.is-ok { color: #4BE3A4; background: rgba(18, 185, 129, .12); border: 1px solid rgba(18, 185, 129, .3); }
.dc-status.is-warn { color: #FFC46B; background: rgba(245, 165, 36, .12); border: 1px solid rgba(245, 165, 36, .3); }
.dc-status.is-err { color: #FF8F92; background: rgba(229, 72, 77, .12); border: 1px solid rgba(229, 72, 77, .32); }

.dc-copy {
  flex-shrink: 0; margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px 0 9px; border-radius: 8px; cursor: pointer;
  font: 500 12.5px/1 var(--font-sans); color: rgba(213, 222, 250, .82);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
  transition: background .15s, color .15s, border-color .15s;
}
.dc-copy:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.dc-copy:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.dc-copy svg { width: 15px; height: 15px; }
.dc-copy .dc-copy-ok { display: none; }
.dc-copy.is-copied { color: #4BE3A4; border-color: rgba(18, 185, 129, .35); background: rgba(18, 185, 129, .1); }
.dc-copy.is-copied svg:first-child { display: none; }
.dc-copy.is-copied .dc-copy-ok { display: block; }
.dc-copy.is-failed { color: #FF8F92; }

.dc-code .dc-pre {
  margin: 0; padding: 16px 20px 18px; max-height: 620px; overflow: auto;
  background: transparent; border: 0; border-radius: 0;
  font: 13.5px/1.8 var(--dc-mono); color: var(--dc-code-text);
  white-space: pre; tab-size: 2; -moz-tab-size: 2;
  font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.dc-code.is-tabs4 .dc-pre { tab-size: 4; -moz-tab-size: 4; }
.dc-pre:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.dc-pre code { display: block; width: max-content; min-width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; white-space: pre; overflow-wrap: normal; }
.dc-pre.has-ln { padding-left: 0; counter-reset: dcln; }
.dc-pre.has-ln .ln { counter-increment: dcln; }
.dc-pre.has-ln .ln::before {
  /* 8ch gutter: a multiple of both tab sizes, so tab-indented code (Go) stays aligned */
  content: counter(dcln);
  display: inline-block; width: 5ch; padding-right: 3ch; box-sizing: content-box; text-align: right;
  color: rgba(201, 212, 245, .3);
  -webkit-user-select: none; user-select: none;
}
.dc-code-foot {
  padding: 12px 18px; border-top: 1px solid var(--dc-code-line);
  font-size: 13.5px; line-height: 1.8; color: rgba(213, 222, 250, .78);
  background: rgba(255, 255, 255, .02); text-align: start;
}
.dc-code-foot b { color: #fff; font-weight: 600; }

/* Tokens */
.tk-com { color: #8090BF; font-style: italic; }
.tk-str { color: #7EE2C5; }
.tk-kw { color: #9DB4FF; font-weight: 600; }
.tk-method { color: var(--cyan-300); font-weight: 600; }
.tk-num, .tk-const { color: #FFC46B; }
.tk-type { color: #5FDDF3; }
.tk-fn { color: #F1F4FF; }
.tk-var { color: #F4A9C8; }
.tk-flag { color: #5FDDF3; }
.tk-key { color: #A9BDFF; }
.tk-meta { color: #FFC46B; }
.tk-url { color: #F1F4FF; }
.tk-tag { color: #9DB4FF; }
.tk-attr { color: #5FDDF3; }
.tk-ar { unicode-bidi: isolate; direction: rtl; font-family: "IBM Plex Sans Arabic", var(--font-mono); }

/* File tabs inside a code window */
.dc-multi .dc-code-bar { padding-left: 6px; }
.dc-ftabs {
  display: flex; align-self: stretch; gap: 2px; min-width: 0; flex: 1 1 auto;
  overflow-x: auto; scrollbar-width: none;
}
.dc-ftabs::-webkit-scrollbar { display: none; }
.dc-ftabs { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 28px); mask-image: linear-gradient(to left, transparent 0, #000 28px); }
.dc-ftabs [role="tab"] {
  position: relative; flex-shrink: 0;
  padding: 0 11px; border: 0; background: none; cursor: pointer;
  font: 500 12.5px/1 var(--font-sans); color: rgba(201, 212, 245, .72);
  transition: color .15s;
}
.dc-ftabs [role="tab"]:hover { color: #fff; }
.dc-ftabs [role="tab"][aria-selected="true"] { color: #fff; }
.dc-ftabs [role="tab"][aria-selected="true"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  border-radius: 2px 2px 0 0; background: var(--grad);
}
.dc-ftabs [role="tab"]:focus-visible { outline: 2px solid var(--cyan); outline-offset: -4px; border-radius: 8px; }
.dc-langs .dc-ftabs [role="tab"] { font-family: var(--font-mono); }

/* ---------- Integration examples ---------- */
/* Instructions language switcher (main: English reference / Arabic) */
.ex-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin: 0 0 18px;
}
.lang-switch {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-xs);
}
.lang-switch-label {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 8px;
  font-size: 13px; font-weight: 600; color: var(--subtle);
}
.lang-switch-label svg { width: 16px; height: 16px; }
.lang-btn {
  height: 32px; padding: 0 14px; border: 0; border-radius: 8px; cursor: pointer;
  font: 600 13.5px/1 var(--font-sans); color: var(--muted); background: transparent;
  transition: background .15s, color .15s;
}
.lang-btn:hover { color: var(--text); background: var(--hover); }
.lang-btn.on { color: var(--brand-700); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-100); }
[data-theme="dark"] .lang-btn.on { color: #DCE4FF; background: rgba(51, 88, 255, .22); box-shadow: inset 0 0 0 1px rgba(138, 162, 255, .35); }
.lang-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ex-controls-hint { font-size: 13.5px; line-height: 1.7; color: var(--subtle); }

/* Language tabs */
.dc-langs { margin-top: 8px; }
.dc-lang-tabs {
  display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%;
  padding: 5px; margin-bottom: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-xs);
}
.dc-lang-tabs [role="tab"] {
  height: 38px; padding: 0 15px; border: 0; border-radius: 8px; cursor: pointer;
  font: 600 14px/1 var(--font-sans); color: var(--muted); background: transparent;
  white-space: nowrap; transition: background .15s, color .15s;
}
.dc-lang-tabs [role="tab"]:hover { color: var(--text); background: var(--surface-3); }
.dc-lang-tabs [role="tab"][aria-selected="true"] {
  color: #fff; background: var(--ink-900);
  box-shadow: 0 6px 14px -8px rgba(10, 16, 48, .7);
}
[data-theme="dark"] .dc-lang-tabs [role="tab"][aria-selected="true"] { background: var(--brand); box-shadow: 0 6px 16px -8px rgba(51, 88, 255, .8); }
.dc-lang-tabs [role="tab"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dc-lang-panel:focus-visible { outline: none; }
.dc-lang-panel > .dc-code:first-child, .dc-lang-panel > .ex-meta + .dc-code { margin-top: 0; }

/* Per-language instructions + downloads */
.ex-meta {
  margin: 0 0 16px; padding: 16px 18px 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.ex-info[dir="ltr"] { text-align: left; }
.ex-note { font-size: 15px; line-height: 1.8; color: var(--text); text-wrap: pretty; }
.dc-meta {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.dc-meta li {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 8px;
  padding: 5px 10px; border-radius: 9px;
  font-size: 13.5px; line-height: 1.6; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
}
.dc-meta b { font-weight: 600; color: var(--heading); }
.ex-meta .dc-meta code { font-size: 12.5px; white-space: nowrap; }
.ex-dl {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 14px -18px 0; padding: 12px 18px;
  border-top: 1px solid var(--line); background: var(--surface-2);
  border-radius: 0 0 var(--radius) var(--radius);
}
.dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; line-height: 1; white-space: nowrap;
  color: #fff; background: var(--brand); border: 1px solid var(--brand);
  box-shadow: 0 6px 14px -8px rgba(51, 88, 255, .7);
  transition: background .15s, color .15s, border-color .15s;
}
.dl-btn:hover { color: #fff; background: var(--brand-600); border-color: var(--brand-600); text-decoration: none; }
.dl-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.dl-btn.ghost { color: var(--text); background: var(--surface); border-color: var(--line-strong); box-shadow: none; }
.dl-btn.ghost:hover { color: var(--brand-600); border-color: var(--brand-200); background: var(--brand-50); }
[data-theme="dark"] .dl-btn:hover { background: #4766FF; border-color: #4766FF; }
[data-theme="dark"] .dl-btn.ghost { background: transparent; }
[data-theme="dark"] .dl-btn.ghost:hover { color: #fff; background: var(--brand-50); border-color: var(--brand-200); }
.dl-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.dc-lang-panel .dc-callout { margin-top: 0; }
.dc-inline-link {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 .92em var(--font-mono); color: var(--brand-600);
  text-decoration: underline; text-underline-offset: 3px;
  direction: ltr; unicode-bidi: isolate;
}
.dc-inline-link:hover { color: var(--brand); }
[data-theme="dark"] .dc-inline-link { color: var(--brand-300); }
[data-theme="dark"] .dc-inline-link:hover { color: var(--link-hover); }

/* Downloadable guides */
.dc-guides {
  margin-top: 36px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.dc-guides-head { display: flex; align-items: flex-start; gap: 14px; }
.dc-guides-ico {
  flex-shrink: 0; display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; color: #fff; background: var(--grad);
  box-shadow: 0 8px 18px -8px rgba(51, 88, 255, .6);
}
.dc-guides-ico svg { width: 21px; height: 21px; }
.dc-guides-head h3 { font-size: 17.5px; }
.dc-guides-head p { margin-top: 4px; font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.dc-guides-list {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.dc-guides-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.dc-guide-name { font: 600 14px/1.4 var(--font-mono); color: var(--heading); }
.dc-guide-links { display: inline-flex; gap: 6px; }
.dc-guide-links a {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 10px; border-radius: 8px;
  font: 600 12.5px/1 var(--font-mono); color: var(--brand-700);
  background: var(--surface); border: 1px solid var(--brand-100);
  transition: background .15s, color .15s, border-color .15s;
}
.dc-guide-links a:hover { color: #fff; background: var(--brand); border-color: var(--brand); text-decoration: none; }
.dc-guide-links svg { width: 14px; height: 14px; }
[data-theme="dark"] .dc-guide-links a { color: #C9D4FF; background: rgba(51, 88, 255, .1); border-color: rgba(138, 162, 255, .24); }
[data-theme="dark"] .dc-guide-links a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }

/* Best practices */
.dc-checks {
  list-style: none; margin: 0; padding: 8px 24px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.dc-checks li {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 0;
  font-size: 15px; line-height: 1.85; color: var(--text);
  border-top: 1px solid var(--line);
}
.dc-checks li:nth-child(-n+2) { border-top: 0; }
.dc-check {
  flex-shrink: 0; display: inline-grid; place-items: center;
  width: 22px; height: 22px; margin-top: 4px; border-radius: 50%;
  color: #fff; background: var(--grad);
}
.dc-check svg { width: 13px; height: 13px; stroke-width: 2.5; }

.dc-support {
  display: flex; align-items: center; gap: 18px; margin-top: 40px; padding: 24px 26px;
  color: var(--on-dark-muted);
  background:
    radial-gradient(420px 200px at 0% 0%, rgba(51, 88, 255, .35), transparent 70%),
    radial-gradient(360px 200px at 100% 100%, rgba(34, 199, 232, .16), transparent 70%),
    var(--ink-900);
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.dc-support-ico {
  flex-shrink: 0; display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: 13px; color: #fff; background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.dc-support-ico svg { width: 24px; height: 24px; }
.dc-support h3 { color: #fff; font-size: 18px; }
.dc-support p { margin-top: 2px; font-size: 14.5px; line-height: 1.8; }
.dc-support code { color: #E7ECFF; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); }
.dc-support .btn { margin-inline-start: auto; flex-shrink: 0; }
.dc-support .btn svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .docs-shell { gap: 40px; }
  .page-docs { --dc-aside: 216px; }
}

@media (max-width: 960px) {
  .docs-shell { grid-template-columns: minmax(0, 1fr); }
  .docs-aside { display: none; }
  .docs-toc-m { display: block; }
  .docs-content { max-width: none; }
  .docs-figure-frame { padding: 22px 20px 4px; }
  .docs-figure figcaption { padding: 0 20px; }
  .docs-flow b { font-size: 14px; }
}

@media (max-width: 760px) {
  .docs-hero { padding-top: 44px; }
  .docs-lead { font-size: 16.5px; }
  .docs-figure { margin-top: 36px; }
  .docs-figure-frame { padding: 16px 12px 2px; border-radius: 18px 18px 0 0; }
  .docs-figure figcaption { padding: 0 14px; }
  .docs-flow {
    direction: rtl; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px;
    padding: 16px 0 20px;
  }
  .docs-flow li { align-items: flex-start; text-align: start; padding: 0; }
  .dc-flow { grid-template-columns: minmax(0, 1fr); }
  .dc-facts { grid-template-columns: minmax(0, 1fr); }
  .dc-facts > div:nth-child(even) { border-inline-start: 0; }
  .dc-facts > div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .dc-keys, .dc-rules, .dc-checks { grid-template-columns: minmax(0, 1fr); }
  .dc-checks { padding: 4px 18px; }
  .dc-checks li:nth-child(2) { border-top: 1px solid var(--line); }
  .dc-params.is-compact .dc-param { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
  .dc-params.is-compact .dc-param-head { flex-direction: row; align-items: center; gap: 6px 10px; }
  .dc-support { flex-wrap: wrap; }
  .dc-support .btn { margin-inline-start: 0; width: 100%; }
}

@media (max-width: 600px) {
  .docs-body { padding: 32px 0 72px; }
  .docs-title { margin-top: 16px; }
  .docs-base { display: flex; flex-wrap: wrap; justify-content: space-between; width: 100%; }
  .docs-base-label { order: 0; }
  .docs-base-copy { order: 1; }
  .docs-base .docs-base-url { order: 2; flex: 1 1 100%; padding: 8px 8px 4px; white-space: normal; overflow-wrap: anywhere; text-align: left; font-size: 13.5px; }
  .docs-hero-actions .btn { flex: 1 1 100%; }
  .docs-flow-meta { font-size: 11.5px; }
  .dc-section { padding-bottom: 48px; }
  .dc-section + .dc-section { padding-top: 44px; }
  .dc-lede { font-size: 15.5px; }
  .dc-param { padding: 14px 16px; }
  .dc-endpoint { padding: 9px 10px; }
  .dc-path { font-size: 13.5px; }
  .dc-endpoint-status { margin-left: 0; }
  .dc-code .dc-pre { padding: 14px 16px 16px; font-size: 12.5px; max-height: 520px; }
  .dc-pre.has-ln { padding-left: 0; }
  .dc-code-note { display: none; }
  .dc-code-bar { gap: 8px; padding-left: 6px; }
  .dc-steps > li { padding-inline-start: 0; padding-top: 48px; }
  .dc-steps > li::before { top: 0; }
  .dc-steps > li:not(:last-child)::after { display: none; }
  .dc-steps h3 { position: absolute; top: 0; inset-inline-start: 48px; }
  .dc-lang-tabs { width: 100%; }
  .dc-lang-tabs [role="tab"] { flex: 1 1 auto; padding: 0 10px; font-size: 13.5px; }
  .ex-controls { align-items: stretch; }
  .lang-switch { width: 100%; }
  .lang-btn { flex: 1 1 0; }
  .ex-meta { padding: 14px 14px 0; }
  .ex-dl { margin-inline: -14px; padding: 12px 14px; }
  .dl-btn { flex: 1 1 auto; justify-content: center; }
  .dc-guides { padding: 18px 16px; }
  .dc-guides-list { grid-template-columns: minmax(0, 1fr); }
  .dc-support { padding: 22px 20px; }
}

@media (max-width: 420px) {
  .dc-response .dc-code-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .docs-toc a, .dc-copy, .dc-lang-tabs [role="tab"], .docs-toc-m-chev, .lang-btn, .dl-btn, .dc-guide-links a { transition: none; }
}

/* Tables become stacked cards on small screens */
@media (max-width: 600px) {
  .dc-table.is-stack { overflow: visible; background: none; border: 0; box-shadow: none; }
  .dc-table.is-stack table,
  .dc-table.is-stack tbody,
  .dc-table.is-stack tr,
  .dc-table.is-stack td { display: block; width: auto; min-width: 0; }
  .dc-table.is-stack thead { display: none; }
  .dc-table.is-stack tr {
    margin-bottom: 10px; padding: 12px 16px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-xs);
  }
  .dc-table.is-stack tbody tr:hover td { background: none; box-shadow: none; }
  .dc-table.is-stack td {
    position: relative; display: block;
    padding: 4px 0; padding-inline-start: 112px; border: 0;
    font-size: 14px; line-height: 1.8; white-space: normal; text-align: start;
  }
  .dc-table.is-stack td::before {
    content: attr(data-label); position: absolute; inset-inline-start: 0; top: 5px; width: 100px;
    font-size: 12.5px; font-weight: 600; line-height: 1.8; color: var(--subtle);
  }
  .dc-table.is-stack td:empty { display: none; }
  .dc-table.is-stack td code { white-space: normal; overflow-wrap: anywhere; }
  .dc-table.is-stack .dc-num { font-size: 13.5px; direction: rtl; text-align: start; }
  .dc-errors table { min-width: 0; }
  .dc-errors td:nth-child(4) { min-width: 0; }
  .dc-errors tr { display: flex !important; flex-wrap: wrap; align-items: center; column-gap: 10px; }
  .dc-errors td:nth-child(-n+2) { display: inline-block; padding: 0 0 6px; }
  .dc-errors td:nth-child(-n+2)::before { display: none; }
  .dc-errors td:nth-child(n+3) { flex: 1 1 100%; }
  .dc-where { font-size: 14px; }
}
