:root {
  --ink: #172029;
  --muted: #69767f;
  --paper: #f4f6f4;
  --surface: #fff;
  --line: #dce4e0;
  --nav: #12251f;
  --accent: #087f66;
  --get: #1769aa;
  --post: #087f66;
  --patch: #9a6307;
  --delete: #b43b3b;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: var(--accent); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.docs-header { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 65px; padding: 0 clamp(18px, 5vw, 72px); color: #ecf7f3; background: rgb(18 37 31 / 96%); border-bottom: 1px solid rgb(255 255 255 / 9%); backdrop-filter: blur(12px); }
.brand-link { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-link strong, .brand-link small { display: block; }
.brand-link strong { font-size: 14px; }
.brand-link small { color: #97afa6; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; color: #70d9b6; background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 12%); border-radius: 8px; font-size: 10px; font-weight: 900; }
.header-links { display: flex; align-items: center; gap: 18px; }
.docs-language select { min-width: 112px; padding: 7px 28px 7px 9px; color: inherit; background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 14%); border-radius: 7px; font: inherit; }
.docs-language option { color: #172029; background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.header-links a { color: #b9cbc4; font-size: 11px; font-weight: 700; text-decoration: none; }
.header-links a:hover { color: #fff; }
main { width: min(1450px, 100%); margin: auto; padding: 52px clamp(18px, 5vw, 72px) 72px; }
.docs-intro { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 52px); color: #eaf8f3; background: linear-gradient(125deg, #163e32, #142923); border-radius: 17px; }
.docs-intro::after { content: ""; position: absolute; right: -100px; bottom: -210px; width: 390px; height: 390px; border: 1px solid rgb(117 224 190 / 14%); border-radius: 50%; box-shadow: 0 0 0 55px rgb(117 224 190 / 4%), 0 0 0 110px rgb(117 224 190 / 3%); }
.eyebrow { margin: 0 0 5px; color: #2b9a7e; font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.docs-intro .eyebrow { color: #75e0be; }
h1 { position: relative; z-index: 1; max-width: 720px; margin: 0; font-size: clamp(31px, 5vw, 52px); line-height: 1.05; letter-spacing: -.045em; }
.docs-intro > p:not(.eyebrow) { position: relative; z-index: 1; max-width: 700px; color: #aac1b8; }
.docs-intro .guide-callout { margin-top: 18px; padding: 12px 14px; color: #cbd5e1; background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 10%); border-radius: 9px; }
.docs-intro .guide-callout a { color: #a5b4fc; font-weight: 700; }
.base-url { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; margin-top: 12px; padding: 8px 12px; background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 11%); border-radius: 8px; font-size: 11px; }
.base-url span { color: #9bb3a9; }
.base-url code { color: #82e8c5; }
.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; margin-top: 34px; align-items: start; }
.docs-sidebar { position: sticky; top: 88px; max-height: calc(100vh - 110px); padding: 17px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.docs-sidebar label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 750; }
.docs-sidebar input { width: 100%; height: 35px; padding: 0 9px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 7px; outline: 0; }
.docs-sidebar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(8 127 102 / 10%); }
#operation-nav { display: grid; gap: 2px; margin-top: 13px; }
#operation-nav a { display: grid; grid-template-columns: 45px 1fr; gap: 7px; align-items: center; padding: 7px 8px; color: #435049; border-radius: 6px; font-size: 10px; text-decoration: none; }
#operation-nav a:hover { background: #edf5f1; }
#operation-nav b { font-size: 8px; letter-spacing: .05em; }
#operation-nav span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operations { display: grid; gap: 13px; min-width: 0; }
.operation { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.operation[hidden] { display: none; }
.operation summary { display: grid; grid-template-columns: 64px minmax(180px, auto) 1fr; gap: 12px; align-items: center; padding: 16px 18px; cursor: pointer; list-style: none; }
.operation summary::-webkit-details-marker { display: none; }
.method { display: inline-grid; place-items: center; width: 57px; height: 25px; color: #fff; border-radius: 6px; font-size: 9px; font-weight: 900; letter-spacing: .06em; }
.method.get { background: var(--get); }.method.post { background: var(--post); }.method.patch { background: var(--patch); }.method.delete { background: var(--delete); }
.operation-path { color: #26322d; font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.operation-summary { color: var(--muted); font-size: 11px; }
.operation-body { padding: 3px 18px 20px 94px; border-top: 1px solid #edf0ee; }
.operation-description { color: var(--muted); font-size: 12px; }
.operation-section { margin-top: 18px; }
.operation-section h3 { margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.parameter { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid #edf0ee; font-size: 11px; }
.parameter:last-child { border: 0; }
.parameter-name { font-weight: 800; overflow-wrap: anywhere; }
.required { margin-left: 5px; color: var(--delete); font-size: 8px; text-transform: uppercase; }
.parameter-meta { color: var(--muted); }
.code-block { max-height: 380px; margin: 0; padding: 13px; overflow: auto; color: #d9eae3; background: #172620; border-radius: 8px; font-size: 10px; line-height: 1.55; }
.loading { display: grid; place-items: center; min-height: 260px; color: var(--muted); font-size: 12px; }
.loading span { width: 24px; height: 24px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { padding: 25px; color: #812e2e; background: #fde9e8; border: 1px solid #f1c9c7; border-radius: 12px; }
.schema-section { margin-top: 54px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.section-heading > span { color: var(--muted); font-size: 11px; }
.schema-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 12px; }
.schema-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.schema-card summary { padding: 13px 15px; cursor: pointer; font: 750 11px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.schema-card pre { max-height: 340px; margin: 0 10px 10px; padding: 11px; overflow: auto; color: #d9eae3; background: #172620; border-radius: 7px; font-size: 9px; }
footer { padding: 24px; color: var(--muted); background: #e8edea; border-top: 1px solid var(--line); text-align: center; font-size: 10px; }
@media (max-width: 830px) { .docs-layout { grid-template-columns: 1fr; }.docs-sidebar { position: static; max-height: none; }.operation summary { grid-template-columns: 58px 1fr; }.operation-summary { grid-column: 2; }.operation-body { padding-left: 18px; } }
@media (max-width: 520px) { .header-links a:last-child { display: none; }.docs-header { padding-inline: 14px; }.operation summary { grid-template-columns: 1fr; }.operation-summary { grid-column: auto; }.parameter { grid-template-columns: 1fr; gap: 2px; }.schema-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; } }

/* InsightFace.ai visual identity. */
:root {
  --ink: #fafafa;
  --muted: #a1a1aa;
  --paper: #09090b;
  --surface: #111113;
  --line: #27272a;
  --nav: #09090b;
  --accent: #6366f1;
  --get: #22d3ee;
  --post: #6366f1;
  --patch: #d97706;
  --delete: #ef4444;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
html,
body { background: var(--paper); }
body {
  color: var(--ink);
  background-image:
    radial-gradient(circle at 75% -10%, rgb(99 102 241 / 12%), transparent 34rem),
    linear-gradient(rgb(99 102 241 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(99 102 241 / 3%) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  background-attachment: fixed;
}
::selection { color: #fff; background: rgb(99 102 241 / 55%); }
.docs-header { color: var(--ink); background: rgb(9 9 11 / 80%); border-bottom-color: rgb(39 39 42 / 78%); backdrop-filter: blur(20px); }
.brand-link strong { font-size: 15px; font-weight: 650; }
.brand-link small { color: var(--muted); }
.brand-mark { width: 32px; height: 32px; color: #fff; background: #6366f1; border: 0; border-radius: 8px; box-shadow: 0 0 22px rgb(99 102 241 / 24%); }
.brand-mark svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; }
.header-links a { color: var(--muted); }
.header-links a:hover { color: var(--ink); }
.docs-intro {
  color: var(--ink);
  background:
    linear-gradient(rgb(99 102 241 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(99 102 241 / 5%) 1px, transparent 1px),
    radial-gradient(circle at 82% 10%, rgb(99 102 241 / 20%), transparent 42%),
    linear-gradient(135deg, #111113, #0c0c10);
  background-size: 48px 48px, 48px 48px, auto, auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 0 80px -28px rgb(99 102 241 / 42%);
}
.docs-intro::after { background: rgb(99 102 241 / 8%); border-color: rgb(99 102 241 / 16%); box-shadow: 0 0 100px rgb(99 102 241 / 13%); }
.eyebrow,
.docs-intro .eyebrow { color: #818cf8; }
.docs-intro > p:not(.eyebrow) { color: var(--muted); }
.base-url { background: rgb(24 24 27 / 82%); border-color: var(--line); }
.base-url span { color: var(--muted); }
.base-url code { color: #22d3ee; }
.docs-sidebar,
.operation,
.schema-card { background: rgb(17 17 19 / 95%); border-color: var(--line); box-shadow: 0 16px 42px rgb(0 0 0 / 12%); }
.docs-sidebar input { color: var(--ink); background: #18181b; border-color: #3f3f46; }
.docs-sidebar input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgb(99 102 241 / 16%); }
#operation-nav a { color: #d4d4d8; }
#operation-nav a:hover { color: #fff; background: rgb(99 102 241 / 10%); }
.operation-path { color: #f4f4f5; }
.operation-body,
.parameter { border-color: var(--line); }
.code-block,
.schema-card pre { color: #d4d4d8; background: #09090b; border: 1px solid var(--line); }
.error { color: #fecaca; background: rgb(239 68 68 / 10%); border-color: rgb(239 68 68 / 25%); }
footer { color: var(--muted); background: #0d0d0f; border-color: var(--line); }
