:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0d1727;
  --panel: rgba(12, 22, 37, 0.86);
  --panel-strong: #0e1829;
  --panel-border: rgba(130, 165, 220, 0.16);
  --text: #edf3ff;
  --text-soft: #9fb2cc;
  --text-muted: #6f86a7;
  --green: #2fe28e;
  --green-soft: rgba(47, 226, 142, 0.16);
  --blue: #65a8ff;
  --blue-soft: rgba(101, 168, 255, 0.18);
  --amber: #ffbc4b;
  --amber-soft: rgba(255, 188, 75, 0.18);
  --pink: #ff5a82;
  --pink-soft: rgba(255, 90, 130, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sidebar-width: 280px;
  --layout-width: 1880px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(59, 122, 255, 0.12), transparent 32%),
    radial-gradient(circle at 15% 18%, rgba(47, 226, 142, 0.1), transparent 18%),
    linear-gradient(180deg, #08111e 0%, #050c16 100%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08));
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre,
.brand-title,
.eyebrow,
.mini-kicker,
.sidebar-group-title,
.decision-pill,
.runtime-button,
.code-header,
.feature-label {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  backdrop-filter: blur(18px);
  background: rgba(5, 12, 21, 0.78);
  border-bottom: 1px solid rgba(120, 154, 210, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(19, 36, 60, 0.95), rgba(9, 18, 30, 0.95));
  border: 1px solid rgba(115, 146, 198, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 34px rgba(0, 0, 0, 0.36);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.brand-mark::before {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(47, 226, 142, 0.82);
  box-shadow: 0 0 18px rgba(47, 226, 142, 0.3);
}

.brand-mark::after {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(101, 168, 255, 0.36);
}

.brand-core {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(47, 226, 142, 0.6);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  letter-spacing: 0.14em;
  font-size: 0.96rem;
}

.brand-subtitle {
  font-size: 0.84rem;
  color: var(--text-soft);
}

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

.search-shell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(112, 145, 196, 0.16);
  background: rgba(12, 22, 37, 0.78);
}

.search-icon {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.search-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 0.95rem;
}

.search-shell input::placeholder {
  color: var(--text-muted);
}

.runtime-toggle {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 16px;
  border: 1px solid rgba(112, 145, 196, 0.16);
  background: rgba(12, 22, 37, 0.78);
}

.locale-toggle {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 16px;
  border: 1px solid rgba(112, 145, 196, 0.16);
  background: rgba(12, 22, 37, 0.78);
}

.runtime-button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
}

.locale-button {
  border: 0;
  border-radius: 12px;
  padding: 10px 13px;
  min-width: 48px;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
}

.runtime-button.is-active {
  color: #02130a;
  background: linear-gradient(135deg, #55f0a6, #2edb88);
  box-shadow: 0 10px 28px rgba(47, 226, 142, 0.28);
}

.locale-button.is-active {
  color: #02130a;
  background: linear-gradient(135deg, #55f0a6, #2edb88);
  box-shadow: 0 10px 28px rgba(47, 226, 142, 0.28);
}

.ghost-button,
.solid-button {
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ghost-button {
  border: 1px solid rgba(112, 145, 196, 0.18);
  background: rgba(12, 22, 37, 0.78);
}

.solid-button {
  color: #02130a;
  background: linear-gradient(135deg, #55f0a6, #2edb88);
  box-shadow: 0 12px 30px rgba(47, 226, 142, 0.28);
}

.ghost-button:hover,
.solid-button:hover,
.runtime-button:hover,
.locale-button:hover,
.copy-button:hover {
  transform: translateY(-1px);
}

.docs-layout {
  width: 100%;
  max-width: var(--layout-width);
  margin: 0 auto;
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(250px, var(--sidebar-width)) minmax(0, 1fr);
  gap: 24px;
  padding: 28px 24px 36px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(101, 168, 255, 0.32) transparent;
}

.sidebar::-webkit-scrollbar,
.code-shell pre::-webkit-scrollbar,
.reference-table-shell::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.sidebar::-webkit-scrollbar-thumb,
.code-shell pre::-webkit-scrollbar-thumb,
.reference-table-shell::-webkit-scrollbar-thumb {
  background: rgba(101, 168, 255, 0.28);
  border-radius: 999px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-block,
.sidebar-card,
.glass-card,
.feature-card,
.concept-card,
.install-card,
.flow-card,
.split-card,
.pattern-card,
.decision-card,
.integration-card,
.download-card,
.checklist-card,
.info-panel,
.reference-table-shell,
.code-shell {
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sidebar-block,
.sidebar-card {
  padding: 20px;
}

.sidebar-kicker,
.eyebrow,
.mini-kicker,
.sidebar-group-title,
.feature-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.sidebar-kicker,
.eyebrow,
.mini-kicker,
.feature-label {
  color: var(--green);
}

.sidebar-block h2,
.section-head h1,
.section-head h2,
.glass-card h3,
.feature-card h3,
.concept-card h3,
.download-card h3 {
  margin: 0;
}

.sidebar-block h2 {
  margin-top: 8px;
  font-size: 1.15rem;
}

.sidebar-block p,
.sidebar-card p,
.feature-card p,
.concept-card p,
.install-card p,
.flow-card p,
.split-card p,
.pattern-card p,
.decision-card p,
.download-card p,
.checklist-card p,
.info-panel p,
.info-panel li,
.detail-list li,
.compact-list li,
.section-copy,
.lede {
  color: var(--text-soft);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  background: rgba(9, 17, 29, 0.84);
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-group-title {
  color: var(--text-muted);
}

.sidebar-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-soft);
  transition: background 180ms ease, color 180ms ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  background: rgba(101, 168, 255, 0.12);
  color: var(--text);
}

.sidebar-card-title {
  margin: 0 0 12px;
  font-weight: 700;
}

.compact-list,
.detail-list,
.ordered-list {
  margin: 0;
  padding-left: 18px;
}

.compact-list li + li,
.detail-list li + li,
.ordered-list li + li {
  margin-top: 10px;
}

.decision-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  color: #08111f;
  text-transform: uppercase;
  margin-right: 10px;
}

.decision-pill.allow {
  background: #54eda2;
}

.decision-pill.degrade {
  background: #ffc867;
}

.decision-pill.deny,
.decision-pill.blocked {
  background: #ff6388;
}

.decision-pill.human {
  background: #73a9ff;
}

.decision-pill.warning {
  background: #ffcf73;
}

.content {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.doc-section {
  scroll-margin-top: 100px;
  width: 100%;
  padding: 30px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--panel-border);
  background: rgba(7, 15, 26, 0.78);
  box-shadow: var(--shadow);
}

.hero-section {
  background:
    radial-gradient(circle at top right, rgba(101, 168, 255, 0.16), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(47, 226, 142, 0.13), transparent 22%),
    rgba(7, 15, 26, 0.9);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.section-head h1 {
  max-width: 15ch;
  font-size: clamp(2.75rem, 6vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.lede,
.section-copy {
  max-width: 82ch;
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-grid,
.feature-grid,
.concept-grid,
.install-grid,
.flow-panels,
.split-panel,
.pattern-grid,
.decision-grid,
.integration-grid,
.download-grid {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.95fr;
  margin-bottom: 18px;
}

.feature-grid,
.decision-grid,
.download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.install-grid,
.flow-panels,
.split-panel,
.pattern-grid,
.integration-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glass-card,
.feature-card,
.concept-card,
.install-card,
.flow-card,
.split-card,
.pattern-card,
.decision-card,
.integration-card,
.download-card,
.checklist-card,
.info-panel {
  padding: 22px;
}

.integration-card {
  background:
    linear-gradient(180deg, rgba(10, 19, 32, 0.94), rgba(7, 14, 25, 0.98)),
    radial-gradient(circle at top right, rgba(101, 168, 255, 0.12), transparent 34%);
}

.integration-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.integration-vendor {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.integration-card h3 {
  margin: 0;
  font-size: 1.22rem;
}

.integration-category {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.integration-copy {
  margin: 0 0 16px;
  color: var(--text-soft);
  line-height: 1.7;
}

.integration-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.integration-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(112, 145, 196, 0.18);
  background: rgba(101, 168, 255, 0.08);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

.integration-badge.is-live {
  background: rgba(47, 226, 142, 0.12);
  border-color: rgba(47, 226, 142, 0.26);
  color: #bdf7d8;
}

.integration-badge.is-roadmap {
  background: rgba(255, 188, 75, 0.12);
  border-color: rgba(255, 188, 75, 0.26);
  color: #ffe0a1;
}

.integration-badge.is-off {
  background: rgba(255, 90, 130, 0.12);
  border-color: rgba(255, 90, 130, 0.24);
  color: #ffbfd0;
}

.integration-surface-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.integration-surface-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 0.8rem;
}

.integration-more {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.integration-more summary {
  width: fit-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(47, 226, 142, 0.28);
  border-radius: 4px;
  background: rgba(47, 226, 142, 0.1);
  color: #bdf7d8;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
  list-style: none;
}

.integration-more summary::-webkit-details-marker {
  display: none;
}

.integration-more summary::after {
  content: "+";
  color: var(--green);
  font-weight: 900;
}

.integration-more[open] summary::after {
  content: "-";
}

.ms-flow-diagram {
  display: grid;
  grid-template-columns: minmax(135px, 1fr) auto minmax(135px, 1fr) auto minmax(135px, 1fr) auto minmax(135px, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.ms-flow-diagram span,
.ms-flow-diagram b {
  min-height: 64px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 4px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.ms-flow-diagram span {
  padding: 10px;
  border: 1px solid rgba(101, 168, 255, 0.22);
  background: rgba(101, 168, 255, 0.08);
  color: var(--text);
}

.ms-flow-diagram b {
  min-width: 42px;
  min-height: 34px;
  color: var(--green);
  font-size: 0.72rem;
}

.ms-flow-diagram b::before {
  content: "->";
  display: block;
  color: rgba(47, 226, 142, 0.78);
  font-size: 1rem;
}

.integration-detail-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.6;
}

.integration-actions {
  margin-top: 18px;
}

.integration-more-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(47, 226, 142, 0.32);
  border-radius: 4px;
  background: rgba(47, 226, 142, 0.11);
  color: #d9ffe8;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.integration-more-button::after {
  content: "->";
  color: var(--green);
}

body.modal-open {
  overflow: hidden;
}

.docs-modal-overlay[hidden] {
  display: none;
}

.docs-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(47, 226, 142, 0.12), transparent 28%),
    rgba(2, 6, 13, 0.82);
  backdrop-filter: blur(16px);
}

.docs-modal-card {
  position: relative;
  width: min(1080px, 100%);
  max-height: min(820px, calc(100vh - 56px));
  overflow: auto;
  border: 1px solid rgba(47, 226, 142, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(9, 19, 34, 0.98), rgba(5, 10, 19, 0.98)),
    radial-gradient(circle at top right, rgba(101, 168, 255, 0.12), transparent 34%);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.48);
  padding: clamp(24px, 4vw, 42px);
}

.docs-modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}

.architecture-intro {
  max-width: 780px;
  color: var(--text-soft);
  line-height: 1.7;
}

.ms-modal-flow {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr) auto minmax(180px, 1fr) auto minmax(180px, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 26px 0;
}

.ms-modal-node,
.ms-modal-step {
  min-height: 132px;
  border-radius: 14px;
  border: 1px solid rgba(101, 168, 255, 0.2);
  background: rgba(101, 168, 255, 0.07);
  padding: 16px;
}

.ms-modal-node {
  display: grid;
  align-content: start;
  gap: 10px;
}

.ms-modal-node strong {
  color: var(--text);
  font-size: 0.95rem;
}

.ms-modal-node span,
.ms-modal-node small {
  color: var(--text-muted);
  line-height: 1.5;
}

.ms-modal-step {
  min-width: 54px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #bdf7d8;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ms-modal-step::before {
  content: "->";
  display: block;
  color: var(--green);
  font-size: 1.15rem;
}

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

.architecture-note {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.architecture-note strong {
  display: block;
  color: var(--text);
  margin-bottom: 8px;
}

.architecture-note p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(9, 18, 31, 0.88), rgba(7, 14, 24, 0.94)),
    radial-gradient(circle at top left, rgba(47, 226, 142, 0.15), transparent 30%);
}

.bullet-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.bullet-rail span {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(102, 168, 255, 0.18);
  background: rgba(101, 168, 255, 0.08);
  color: var(--text);
  font-size: 0.85rem;
}

.flow-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.7;
}

.flow-list li + li {
  margin-top: 10px;
}

.flow-diagram-shell {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(47, 226, 142, 0.12), transparent 34%),
    rgba(8, 16, 28, 0.86);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.flow-diagram-grid {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 92px minmax(170px, 1fr) 92px minmax(190px, 1.12fr) 92px minmax(170px, 1fr);
  align-items: stretch;
  gap: 12px;
}

.flow-node,
.flow-decision-card {
  border: 1px solid rgba(130, 165, 220, 0.16);
  background: rgba(10, 19, 32, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.flow-node {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  padding: 20px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.flow-node::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
  opacity: 0.72;
}

.flow-node-agent::before,
.flow-node-provider::before {
  background: var(--green);
}

.flow-node-control::before {
  background: var(--amber);
}

.node-kicker {
  color: var(--text-muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.flow-node strong {
  font-size: 1.08rem;
}

.flow-node p,
.flow-decision-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.62;
}

.flow-connector {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 178px;
}

.flow-connector::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(101, 168, 255, 0.18), rgba(47, 226, 142, 0.85));
}

.flow-connector::after {
  content: "";
  position: absolute;
  right: 2px;
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(47, 226, 142, 0.9);
  border-right: 2px solid rgba(47, 226, 142, 0.9);
  transform: rotate(45deg);
}

.flow-connector span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(101, 168, 255, 0.16);
  background: rgba(8, 16, 28, 0.95);
  color: var(--text-soft);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.flow-decision-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.flow-decision-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 128px;
  padding: 16px;
  border-radius: var(--radius-md);
}

.flow-decision-card.allow {
  border-color: rgba(47, 226, 142, 0.22);
}

.flow-decision-card.degrade {
  border-color: rgba(255, 188, 75, 0.22);
}

.flow-decision-card.human {
  border-color: rgba(115, 169, 255, 0.24);
}

.flow-decision-card.deny {
  border-color: rgba(255, 90, 130, 0.22);
}

.flow-audit-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.flow-audit-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(112, 145, 196, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 0.82rem;
}

.callout-banner {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(47, 226, 142, 0.18);
  background: rgba(47, 226, 142, 0.08);
  color: var(--text);
}

.code-shell {
  overflow: hidden;
  margin-top: 18px;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(130, 165, 220, 0.12);
  color: var(--text-soft);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.copy-button {
  border: 1px solid rgba(112, 145, 196, 0.18);
  background: rgba(7, 15, 26, 0.6);
  color: var(--text-soft);
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.76rem;
  cursor: pointer;
}

.code-shell pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  background: linear-gradient(180deg, rgba(6, 12, 21, 0.88), rgba(5, 11, 18, 0.96));
}

.code-shell code {
  color: #d6e6ff;
  font-size: 0.92rem;
  line-height: 1.75;
  white-space: pre;
}

.reference-table-shell {
  overflow: auto;
}

.reference-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.reference-table th,
.reference-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(130, 165, 220, 0.12);
}

.reference-table th {
  color: var(--text);
  background: rgba(101, 168, 255, 0.06);
}

.reference-table td {
  color: var(--text-soft);
  vertical-align: top;
}

.reference-table code {
  color: var(--text);
}

.checklist-card {
  background:
    linear-gradient(180deg, rgba(7, 15, 26, 0.9), rgba(7, 15, 26, 0.98)),
    radial-gradient(circle at top right, rgba(101, 168, 255, 0.12), transparent 25%);
}

.ordered-list.spacious li + li {
  margin-top: 14px;
}

.inline-link {
  color: var(--green);
  font-weight: 600;
}

[data-runtime-block] {
  display: none;
}

[data-runtime-block].is-visible {
  display: block;
}

.doc-section.is-hidden {
  display: none;
}

.sidebar-nav a.is-hidden {
  display: none;
}

@media (max-width: 1400px) {
  .docs-layout {
    grid-template-columns: minmax(228px, 260px) minmax(0, 1fr);
  }
}

@media (max-width: 1120px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .search-shell {
    min-width: 0;
    width: min(100%, 100%);
    order: 3;
    flex: 1 1 100%;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-group {
    min-width: 220px;
    flex: 1 1 240px;
  }

  .content {
    max-width: 100%;
  }

  .flow-diagram-grid {
    grid-template-columns: 1fr;
  }

  .flow-connector {
    min-height: 58px;
  }

  .flow-connector::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(101, 168, 255, 0.18), rgba(47, 226, 142, 0.85));
  }

  .flow-connector::after {
    right: auto;
    left: calc(50% - 5px);
    top: auto;
    bottom: 3px;
    transform: rotate(135deg);
  }

  .flow-connector span {
    min-width: 156px;
  }

  .flow-decision-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .docs-layout,
  .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar {
    gap: 16px;
  }

  .topbar-actions {
    gap: 10px;
  }

  .runtime-toggle,
  .locale-toggle {
    width: auto;
  }

  .ghost-button,
  .solid-button {
    flex: 1 1 calc(50% - 6px);
  }

  .doc-section {
    padding: 22px;
  }

  .hero-grid,
  .feature-grid,
  .concept-grid,
  .install-grid,
  .flow-panels,
  .split-panel,
  .pattern-grid,
  .decision-grid,
  .integration-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .ms-flow-diagram {
    grid-template-columns: 1fr;
  }

  .ms-flow-diagram b {
    min-height: 24px;
  }

  .docs-modal-overlay {
    padding: 14px;
  }

  .ms-modal-flow,
  .architecture-grid {
    grid-template-columns: 1fr;
  }

  .ms-modal-step {
    min-height: 42px;
  }

  .flow-decision-row {
    grid-template-columns: 1fr;
  }

  .flow-diagram-shell {
    padding: 16px;
  }

  .flow-node {
    min-height: 146px;
  }

  .section-head h1 {
    max-width: 100%;
  }

  .reference-table {
    min-width: 620px;
  }
}

@media (max-width: 620px) {
  .brand-copy {
    min-width: 0;
  }

  .brand-subtitle {
    white-space: normal;
  }

  .runtime-toggle,
  .locale-toggle {
    flex: 1 1 auto;
  }

  .runtime-button,
  .locale-button {
    flex: 1 1 0;
  }

  .ghost-button,
  .solid-button {
    flex: 1 1 100%;
  }

  .sidebar-nav {
    flex-direction: column;
  }

  .sidebar-group {
    min-width: 0;
  }
}

/* IDFOR.AI public-site treatment
   Kept as an override layer so the previous documentation skin can be restored
   from docs-public.backup-idfor-style-2026-05-20 if we prefer it. */
:root {
  --bg: #05080e;
  --bg-soft: #080d16;
  --panel: rgba(7, 12, 20, 0.88);
  --panel-strong: #060a11;
  --panel-border: rgba(47, 212, 125, 0.18);
  --text: #f7f4ec;
  --text-soft: rgba(247, 244, 236, 0.68);
  --text-muted: rgba(247, 244, 236, 0.42);
  --green: #18df7a;
  --green-soft: rgba(24, 223, 122, 0.12);
  --blue: #58a6ff;
  --blue-soft: rgba(88, 166, 255, 0.13);
  --amber: #f0bb3f;
  --amber-soft: rgba(240, 187, 63, 0.14);
  --pink: #f06464;
  --pink-soft: rgba(240, 100, 100, 0.14);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --radius-xl: 14px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --sidebar-width: 292px;
  --layout-width: 100%;
  --heading: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

body {
  background:
    radial-gradient(circle at 72% 2%, rgba(24, 223, 122, 0.16), transparent 22%),
    radial-gradient(circle at 18% 18%, rgba(88, 166, 255, 0.12), transparent 21%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(135deg, #05080e 0%, #07101a 52%, #04070c 100%);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
  font-family: "Segoe UI", "Inter", system-ui, sans-serif;
}

body::before {
  background:
    linear-gradient(180deg, rgba(24, 223, 122, 0.055), transparent 38%),
    radial-gradient(circle at 50% 0, rgba(247, 244, 236, 0.05), transparent 24%);
  mask-image: none;
}

.topbar {
  min-height: 68px;
  padding: 12px 22px;
  background: rgba(4, 8, 14, 0.9);
  border-bottom: 1px solid rgba(24, 223, 122, 0.16);
}

.brand {
  min-width: 240px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  overflow: hidden;
  background: #101827;
  border-color: rgba(247, 244, 236, 0.22);
  box-shadow: 0 0 0 1px rgba(24, 223, 122, 0.1), 0 18px 40px rgba(24, 223, 122, 0.1);
}

.brand-mark::before,
.brand-mark::after,
.brand-core {
  display: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.brand-title {
  color: var(--text);
  font-family: var(--heading);
  font-size: 0.96rem;
  letter-spacing: 0.16em;
}

.brand-title::after {
  content: ".AI";
  color: var(--green);
  margin-left: 0.1em;
}

.brand-title {
  font-size: 0;
}

.brand-title::before {
  content: "IDFOR";
  color: var(--text);
  font-size: 0.96rem;
}

.brand-title::after {
  font-size: 0.96rem;
}

.brand-subtitle {
  color: var(--text-muted);
  font-family: var(--heading);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.search-shell,
.runtime-toggle,
.locale-toggle,
.ghost-button {
  border-radius: 4px;
  border-color: rgba(247, 244, 236, 0.12);
  background: rgba(14, 22, 37, 0.72);
}

.search-shell {
  height: 42px;
}

.runtime-button,
.locale-button {
  border-radius: 3px;
  font-family: var(--heading);
  font-weight: 800;
}

.runtime-button.is-active,
.locale-button.is-active,
.solid-button {
  color: #03100a;
  background: var(--green);
  box-shadow: 0 16px 38px rgba(24, 223, 122, 0.24);
}

.ghost-button,
.solid-button {
  height: 42px;
  border-radius: 4px;
  font-family: var(--heading);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-layout {
  max-width: none;
  min-height: calc(100vh - 68px);
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.sidebar {
  top: 68px;
  max-height: calc(100vh - 68px);
  padding: 16px 12px;
  border-right: 1px solid rgba(24, 223, 122, 0.14);
  background: rgba(3, 7, 13, 0.82);
}

.sidebar-block,
.sidebar-card,
.sidebar-nav {
  border-radius: 4px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    rgba(8, 13, 22, 0.84);
  background-size: 24px 24px, 24px 24px, auto;
  border-color: rgba(247, 244, 236, 0.08);
}

.sidebar-block h2,
.section-head h1,
.section-head h2,
.glass-card h3,
.feature-card h3,
.concept-card h3,
.download-card h3,
.flow-node strong {
  color: var(--text);
  font-family: var(--heading);
  letter-spacing: -0.03em;
}

.sidebar-kicker,
.eyebrow,
.mini-kicker,
.feature-label,
.node-kicker,
.integration-vendor,
.code-header {
  color: var(--green);
  font-family: var(--heading);
  font-weight: 900;
}

.sidebar-nav a {
  border-radius: 4px;
  font-weight: 800;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  color: #03100a;
  background: var(--green);
}

.content {
  gap: 0;
}

.doc-section {
  min-height: auto;
  margin: 0;
  padding: clamp(28px, 4vw, 64px);
  border-width: 0 0 1px;
  border-radius: 0;
  border-color: rgba(247, 244, 236, 0.08);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    rgba(5, 9, 16, 0.62);
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: none;
}

.hero-section {
  min-height: calc(100vh - 68px);
  display: grid;
  align-content: center;
  background:
    radial-gradient(circle at 70% 24%, rgba(24, 223, 122, 0.16), transparent 24%),
    radial-gradient(circle at 78% 64%, rgba(88, 166, 255, 0.12), transparent 26%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(135deg, rgba(5, 9, 16, 0.98), rgba(5, 10, 18, 0.92));
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
}

.section-head {
  max-width: 1180px;
  margin-bottom: 28px;
}

.section-head h1 {
  max-width: 13ch;
  color: var(--text);
  font-family: var(--heading);
  font-size: clamp(3.2rem, 7vw, 8.2rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.section-head h2 {
  font-family: var(--heading);
  font-size: clamp(2rem, 3.5vw, 4.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.lede,
.section-copy {
  max-width: 780px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.1vw, 1.2rem);
}

.idfor-hero-stage {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(430px, 1.18fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  margin: 22px 0 24px;
  padding: clamp(18px, 2.5vw, 30px);
  border: 1px solid rgba(24, 223, 122, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(rgba(24, 223, 122, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 223, 122, 0.035) 1px, transparent 1px),
    rgba(4, 9, 16, 0.78);
  background-size: 26px 26px, 26px 26px, auto;
}

.hero-stage-copy h2 {
  margin: 8px 0 12px;
  color: var(--text);
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3vw, 3.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.hero-stage-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.stage-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.stage-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-left: 3px solid currentColor;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.045);
  font-family: var(--heading);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.stage-status.allow {
  color: var(--green);
}

.stage-status.degrade {
  color: var(--amber);
}

.stage-status.deny {
  color: var(--pink);
}

.stage-status.human {
  color: var(--blue);
}

.agent-constellation {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(247, 244, 236, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(24, 223, 122, 0.16), transparent 22%),
    radial-gradient(circle at 18% 30%, rgba(88, 166, 255, 0.12), transparent 16%),
    rgba(3, 7, 13, 0.82);
}

.constellation-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.constellation-lines path {
  fill: none;
  stroke: rgba(24, 223, 122, 0.34);
  stroke-width: 2;
  stroke-dasharray: 8 9;
}

.constellation-node {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(24, 223, 122, 0.26);
  border-radius: 6px;
  background: rgba(6, 12, 20, 0.96);
  box-shadow: 0 0 28px rgba(24, 223, 122, 0.14);
}

.constellation-node span,
.constellation-node strong {
  font-family: var(--heading);
  line-height: 1.1;
}

.constellation-node span {
  color: var(--green);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.constellation-node strong {
  color: var(--text);
  font-size: 0.82rem;
}

.constellation-node.police {
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  border-color: rgba(24, 223, 122, 0.48);
  background:
    radial-gradient(circle, rgba(24, 223, 122, 0.18), transparent 58%),
    #06100d;
}

.constellation-node.police strong {
  font-size: 1.25rem;
}

.constellation-node.agent,
.constellation-node.model {
  width: 126px;
  height: 76px;
}

.constellation-node.rag {
  top: 28%;
  left: 8%;
}

.constellation-node.code {
  bottom: 22%;
  left: 7%;
}

.constellation-node.legal {
  top: 24%;
  right: 6%;
}

.constellation-node.ops {
  bottom: 21%;
  right: 5%;
}

.constellation-node.model {
  top: 7%;
  left: 50%;
  width: 168px;
  transform: translateX(-50%);
  border-color: rgba(88, 166, 255, 0.34);
}

.constellation-node.model span {
  color: var(--blue);
}

.hero-grid,
.feature-grid {
  max-width: 1280px;
}

.glass-card,
.feature-card,
.concept-card,
.install-card,
.flow-card,
.split-card,
.pattern-card,
.decision-card,
.integration-card,
.download-card,
.checklist-card,
.info-panel,
.reference-table-shell,
.code-shell,
.flow-diagram-shell {
  border-radius: 6px;
  border-color: rgba(247, 244, 236, 0.09);
  background:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    rgba(7, 12, 20, 0.86);
  background-size: 26px 26px, 26px 26px, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.feature-card,
.concept-card,
.download-card {
  border-left: 3px solid rgba(24, 223, 122, 0.56);
}

.accent-card {
  background:
    radial-gradient(circle at top left, rgba(24, 223, 122, 0.15), transparent 30%),
    rgba(7, 12, 20, 0.9);
}

.bullet-rail span,
.integration-badge,
.integration-surface-list span,
.flow-audit-strip span {
  border-radius: 4px;
}

.decision-pill {
  border-radius: 3px;
  font-weight: 900;
}

.flow-diagram-grid {
  grid-template-columns: minmax(170px, 1fr) 72px minmax(170px, 1fr) 72px minmax(190px, 1.12fr) 72px minmax(170px, 1fr);
}

.flow-node {
  border-radius: 6px;
}

.flow-connector span,
.copy-button {
  border-radius: 4px;
}

.code-shell pre {
  background: #03070d;
}

.code-shell code,
.reference-table code {
  color: #dfffe9;
}

.reference-table th {
  background: rgba(24, 223, 122, 0.08);
}

.inline-link {
  color: var(--green);
}

@media (max-width: 1180px) {
  .idfor-hero-stage {
    grid-template-columns: 1fr;
  }

  .agent-constellation {
    min-height: 330px;
  }
}

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

  .sidebar {
    position: relative;
    top: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(24, 223, 122, 0.14);
  }

  .hero-section {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
  }

  .brand {
    min-width: 0;
  }

  .section-head h1 {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .idfor-hero-stage {
    padding: 16px;
  }

  .agent-constellation {
    min-height: 500px;
  }

  .constellation-node.police {
    top: 44%;
  }

  .constellation-node.rag {
    top: 10%;
    left: 5%;
  }

  .constellation-node.legal {
    top: 10%;
    right: 5%;
  }

  .constellation-node.code {
    bottom: 10%;
    left: 5%;
  }

  .constellation-node.ops {
    bottom: 10%;
    right: 5%;
  }
}
