.lg-progress {
  position: fixed;
  top: calc(var(--gx-header-h) - 1px);
  left: 0;
  right: 0;
  z-index: calc(var(--gx-z-header) + 1);
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--gx-dur-3) var(--gx-ease);
}
.lg-progress.is-visible { opacity: 1; }
.lg-progress__bar {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, rgb(var(--gx-violet-400-rgb) / .25), var(--gx-violet-400));
}
.gx-header.is-menu-open ~ main .lg-progress { opacity: 0; }

.lg-hero {
  overflow-x: clip;
  position: relative;
  isolation: isolate;
  padding-block: clamp(40px, 5vw, 72px) clamp(28px, 3.2vw, 40px);
}
.lg-hero::before,
.lg-hero::after {
  content: "";
  position: absolute;
  inset: calc(var(--gx-header-h) * -1) 0 0;
  z-index: -2;
  pointer-events: none;
}
.lg-hero::before {
  background: radial-gradient(44rem 26rem at 80% 6%, rgb(var(--gx-violet-800-rgb) / .16), transparent 70%);
}
.lg-hero::after {
  --gx-grid-size: 64px;
  background-image: var(--gx-grid-lines);
  background-size: var(--gx-grid-size) var(--gx-grid-size);
  background-position: calc(50% + var(--gx-grid-size) / 2) 0;
  -webkit-mask-image: radial-gradient(52rem 30rem at 80% 0%, #000 12%, transparent 70%);
  mask-image: radial-gradient(52rem 30rem at 80% 0%, #000 12%, transparent 70%);
}
.lg-hero__art {
  position: absolute;
  z-index: -1;
  top: clamp(-88px, -4.6vw, -32px);
  right: max(-150px, calc((100vw - var(--gx-container)) / 2 - 130px));
  width: clamp(340px, 36vw, 520px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: .72;
  -webkit-mask-image: radial-gradient(closest-side, #000 32%, rgb(0 0 0 / .35) 66%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 32%, rgb(0 0 0 / .35) 66%, transparent 100%);
}
.lg-hero__art svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.lg-hero__art .h { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.lg-hero__art .h--v { stroke: rgb(var(--gx-line-rgb) / .12); }
.lg-hero__art .h--i { stroke: rgb(var(--gx-line-rgb) / .05); }
.lg-hero__art .h--strong { stroke: rgb(var(--gx-violet-400-rgb) / .26); }
.lg-hero__art .h--dash { stroke-dasharray: 1.5 6; stroke: rgb(var(--gx-line-rgb) / .14); }
.lg-hero__art .n { fill: var(--gx-violet-300); }
.lg-hero__art .n-halo { fill: rgb(var(--gx-void-rgb) / .9); stroke: rgb(var(--gx-violet-400-rgb) / .22); stroke-width: 1; }
.lg-hero__glow {
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--gx-violet-rgb) / .09), transparent);
}

.lg-hero__inner { position: relative; display: grid; gap: 20px; justify-items: start; }

.lg-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--gx-radius-pill);
  background-color: rgb(var(--gx-ink-950-rgb) / .8);
  box-shadow: inset 0 0 0 1px var(--gx-line-strong), var(--gx-shadow-inset);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.lg-switch a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--gx-radius-pill);
  font-size: var(--gx-fs-xs);
  font-weight: 500;
  color: var(--gx-text-3);
  transition: color var(--gx-dur-2) var(--gx-ease), background-color var(--gx-dur-2) var(--gx-ease);
}
.lg-switch a:hover { color: var(--gx-text); }
.lg-switch a[aria-current="page"] {
  color: var(--gx-text);
  background-color: rgb(var(--gx-ink-700-rgb) / .9);
  box-shadow: inset 0 0 0 1px var(--gx-line-strong), inset 0 1px 0 rgb(255 255 255 / .06);
}
.lg-switch a:focus-visible { border-radius: var(--gx-radius-pill); outline-offset: 1px; }

.lg-title {
  max-width: 14ch;
  margin-top: 6px;
  font-size: clamp(2.125rem, 1.55rem + 2.3vw, 3.25rem);
  letter-spacing: -0.03em;
}
.lg-hero .gx-lead { max-width: 56ch; }

.lg-meta {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  margin-top: 8px;
  border-top: 1px solid var(--gx-line);
  border-bottom: 1px solid var(--gx-line);
}
.lg-meta__item {
  display: grid;
  gap: 3px;
  padding: 13px 28px 14px 0;
  margin-right: 28px;
  border-right: 1px solid var(--gx-line);
}
.lg-meta__item:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.lg-meta dt {
  font-size: var(--gx-fs-2xs);
  font-weight: 500;
  color: var(--gx-text-3);
}
.lg-meta dd {
  font-size: var(--gx-fs-sm);
  font-weight: 500;
  color: var(--gx-text);
  font-variant-numeric: tabular-nums;
}

.lg-brief { margin-top: clamp(36px, 4.4vw, 52px); }
.lg-brief__card {
  --gx-card-pad: 0px;
  --gx-card-bg: rgb(var(--gx-ink-950-rgb) / .74);
  --gx-card-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 24px 48px -28px rgb(0 0 0 / .8);
  overflow: hidden;
}
.lg-brief__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 15px clamp(20px, 2.2vw, 26px);
  border-bottom: 1px solid var(--gx-line);
  background-color: rgb(var(--gx-line-rgb) / .025);
}
.lg-brief__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--gx-fs-md);
  font-weight: 560;
  letter-spacing: -0.01em;
  color: var(--gx-text);
}
.lg-brief__title::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--gx-violet-400);
  clip-path: var(--gx-pent);
}
.lg-brief__note { font-size: var(--gx-fs-xs); color: var(--gx-text-3); }
.lg-brief__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lg-point {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 4px 14px;
  padding: 22px clamp(20px, 2.2vw, 26px) 24px;
  border-right: 1px solid var(--gx-line);
  border-bottom: 1px solid var(--gx-line);
}
.lg-point:nth-child(3n) { border-right: 0; }
.lg-point:nth-last-child(-n + 3) { border-bottom: 0; }
.lg-point__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--gx-radius-sm);
  color: var(--gx-violet-200);
  background-color: rgb(var(--gx-ink-800-rgb) / .7);
  box-shadow: inset 0 0 0 1px var(--gx-line-strong), var(--gx-shadow-inset);
}
.lg-point__icon .gx-icon { width: 16px; height: 16px; }
.lg-point__icon--warn {
  color: var(--gx-warning);
  background-color: rgb(var(--gx-warning-rgb) / .07);
  box-shadow: inset 0 0 0 1px rgb(var(--gx-warning-rgb) / .2), var(--gx-shadow-inset);
}
.lg-point__title {
  align-self: center;
  font-size: var(--gx-fs-md);
  font-weight: 560;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--gx-text);
}
.lg-point__text {
  grid-column: 2;
  font-size: var(--gx-fs-sm);
  line-height: 1.6;
  color: var(--gx-text-3);
}
.lg-point__text strong { color: var(--gx-text-2); font-weight: 500; }

.lg-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.lg-map__col {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px clamp(20px, 2.2vw, 26px) 24px;
  border-right: 1px solid var(--gx-line);
}
.lg-map__col:last-child { border-right: 0; }
.lg-map__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
.lg-map__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 1.5px;
  background: var(--lg-node, var(--gx-violet-300));
}
.lg-map__col--never { --lg-node: rgb(var(--gx-danger-rgb) / .85); }
.lg-map__col--device { --lg-node: var(--gx-success); }
.lg-map__col--swap { --lg-node: var(--gx-violet-300); }
.lg-map__col--public { --lg-node: var(--gx-text-3); }
.lg-map__title {
  font-size: var(--gx-fs-lg);
  font-weight: 560;
  line-height: 1.3;
  letter-spacing: -0.014em;
  color: var(--gx-text);
}
.lg-map__list { display: grid; gap: 7px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--gx-line); }
.lg-map__list li {
  position: relative;
  padding-left: 16px;
  font-size: var(--gx-fs-sm);
  line-height: 1.5;
  color: var(--gx-text-2);
}
.lg-map__list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: calc(.75em - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gx-text-4);
}
.lg-map__col--never .lg-map__list li { color: var(--gx-text-3); }

.lg-body { padding-block: clamp(36px, 4.4vw, 64px) 0; }
.lg-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .lg-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: clamp(48px, 6vw, 88px);
    padding-top: clamp(36px, 3.6vw, 48px);
    border-top: 1px solid var(--gx-line);
  }
  .lg-body { padding-top: 0; }
}

.lg-toc { display: none; }
@media (min-width: 1024px) {
  .lg-toc {
    display: block;
    position: sticky;
    top: calc(var(--gx-header-h) + 32px);
    align-self: start;
    max-height: calc(100vh - var(--gx-header-h) - 56px);
    max-height: calc(100dvh - var(--gx-header-h) - 56px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 6px 16px 2px;
    margin-left: -2px;
    scrollbar-width: none;
  }
  .lg-toc::-webkit-scrollbar { display: none; }
}
.lg-toc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gx-line);
}
.lg-toc__label { line-height: inherit; }
.lg-toc__pct {
  font-size: var(--gx-fs-2xs);
  font-weight: 500;
  color: var(--gx-text-3);
  font-variant-numeric: tabular-nums;
}
.lg-toc [data-lg-toc] { position: relative; }
.lg-toc__list {
  position: relative;
  display: grid;
  padding-left: 20px;
}
.lg-toc [data-lg-toc]::before,
.lg-toc [data-lg-toc]::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 1px;
}
.lg-toc [data-lg-toc]::before { bottom: 10px; background: var(--gx-line); }
.lg-toc [data-lg-toc]::after {
  height: var(--lg-y, 0px);
  background: rgb(var(--gx-violet-400-rgb) / .5);
  transition: height var(--gx-dur-3) var(--gx-ease);
}
.lg-toc__list::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--gx-violet-300);
  transform: translateY(calc(var(--lg-y, 0px) + 2px));
  transition: transform var(--gx-dur-3) var(--gx-ease), opacity var(--gx-dur-2) var(--gx-ease);
}
.lg-toc:not(.is-ready) .lg-toc__list::after { opacity: 0; }
.lg-toc__link {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
  font-size: var(--gx-fs-xs);
  line-height: 1.45;
  color: var(--gx-text-3);
  border-radius: var(--gx-radius-xs);
  transition: color var(--gx-dur-2) var(--gx-ease);
}
.lg-toc__link:hover { color: var(--gx-text-2); }
.lg-toc__link.is-active { color: var(--gx-text); }
.lg-toc__num {
  font-size: var(--gx-fs-2xs);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--gx-text-4);
  transition: color var(--gx-dur-2) var(--gx-ease);
}
.lg-toc__link.is-read .lg-toc__num { color: var(--gx-text-3); }
.lg-toc__link.is-active .lg-toc__num { color: var(--gx-violet-300); }
.lg-toc__link:focus-visible { outline-offset: 2px; }
.lg-toc__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gx-line);
}
.lg-tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--gx-radius-pill);
  font-size: var(--gx-fs-2xs);
  font-weight: 500;
  color: var(--gx-text-3);
  background-color: rgb(var(--gx-ink-950-rgb) / .6);
  box-shadow: inset 0 0 0 1px var(--gx-line-strong);
  transition: color var(--gx-dur-2) var(--gx-ease), box-shadow var(--gx-dur-2) var(--gx-ease), background-color var(--gx-dur-2) var(--gx-ease);
}
.lg-tool:hover { color: var(--gx-text); background-color: var(--gx-surface-hover); box-shadow: inset 0 0 0 1px var(--gx-line-bright); }
.lg-tool:focus-visible { border-radius: var(--gx-radius-pill); }

.lg-mtoc {
  position: sticky;
  top: calc(var(--gx-header-h) - 1px);
  z-index: var(--gx-z-sticky);
  margin: 0 calc(var(--gx-gutter) * -1) clamp(28px, 6vw, 40px);
  background-color: rgb(var(--gx-ink-950-rgb) / .84);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--gx-line), inset 0 -1px 0 var(--gx-line), 0 12px 24px -18px rgb(0 0 0 / .8);
}
@media (min-width: 1024px) { .lg-mtoc { display: none; } }
.lg-mtoc__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 var(--gx-gutter);
  text-align: left;
  color: var(--gx-text-2);
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lg-mtoc__btn::-webkit-details-marker { display: none; }
.lg-mtoc__btn::marker { content: ""; }
.lg-mtoc__btn:focus-visible { outline-offset: -3px; border-radius: 0; }
.lg-mtoc[open] .lg-mtoc__chev { transform: rotate(180deg); }
.lg-mtoc__label { flex: none; line-height: inherit; }
.lg-mtoc__sep { flex: none; width: 1px; height: 14px; background: var(--gx-line-strong); }
.lg-mtoc__current {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--gx-fs-sm);
  font-weight: 500;
  color: var(--gx-text);
}
.lg-mtoc__current b {
  margin-right: 8px;
  font-size: var(--gx-fs-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gx-violet-300);
}
.lg-mtoc__pct {
  flex: none;
  font-size: var(--gx-fs-2xs);
  font-weight: 500;
  color: var(--gx-text-3);
  font-variant-numeric: tabular-nums;
}
.lg-mtoc__chev {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--gx-text-2);
  box-shadow: inset 0 0 0 1px var(--gx-line-strong);
  transition: transform var(--gx-dur-3) var(--gx-ease);
}
.lg-mtoc__panel {
  max-height: min(62vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px var(--gx-gutter) 14px;
  border-top: 1px solid var(--gx-line);
  animation: lg-drop var(--gx-dur-3) var(--gx-ease);
}
@keyframes lg-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.lg-mtoc__panel .lg-toc__link {
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  font-size: var(--gx-fs-sm);
  border-bottom: 1px solid var(--gx-line-faint);
}
.lg-mtoc__panel li:last-child .lg-toc__link { border-bottom: 0; }

.lg-doc {
  min-width: 0;
  max-width: 70ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--gx-text-2);
}
.lg-section {
  position: relative;
  scroll-margin-top: 16px;
  padding-top: clamp(32px, 3.4vw, 44px);
  margin-top: clamp(32px, 3.4vw, 44px);
}
.lg-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gx-line);
}
.lg-section:first-child { margin-top: 0; padding-top: 0; }
.lg-section:first-child::before { display: none; }
@media (max-width: 1023px) {
  .lg-section { scroll-margin-top: 60px; }
}

.lg-h2-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}
.lg-h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
  font-size: clamp(1.375rem, 1.22rem + .5vw, 1.625rem);
  font-weight: 560;
  line-height: 1.22;
  letter-spacing: -0.024em;
  color: var(--gx-text);
}
.lg-h2__num {
  flex: none;
  font-size: var(--gx-fs-sm);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--gx-text-3);
}
@media (min-width: 1280px) {
  .lg-h2__num { width: 32px; margin-left: -46px; text-align: right; }
}
.lg-anchor {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
  border-radius: 50%;
  color: var(--gx-text-4);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--gx-dur-2) var(--gx-ease), transform var(--gx-dur-2) var(--gx-ease), color var(--gx-dur-2) var(--gx-ease), background-color var(--gx-dur-2) var(--gx-ease);
}
.lg-h2-row:hover .lg-anchor,
.lg-anchor:focus-visible,
.lg-anchor.is-copied { opacity: 1; transform: none; }
.lg-anchor:hover { color: var(--gx-violet-200); background-color: var(--gx-surface-hover); }
.lg-anchor.is-copied { color: var(--gx-success); }
.lg-anchor:focus-visible { border-radius: 50%; }
@media (hover: none) { .lg-anchor { opacity: .7; transform: none; } }
@media (max-width: 639px) { .lg-anchor { display: none; } }

.lg-doc p + p,
.lg-doc p + .lg-list,
.lg-doc .lg-list + p { margin-top: 16px; }
.lg-doc :is(.lg-callout, .lg-agents, .lg-steps, .lg-defs, .lg-table-wrap, .lg-keys) + p { margin-top: 22px; }
.lg-doc strong { font-weight: 560; color: var(--gx-text); }
.lg-doc code {
  padding: 1px 6px;
  border-radius: var(--gx-radius-xs);
  font-size: .84em;
  color: var(--gx-violet-100);
  background-color: rgb(var(--gx-ink-800-rgb) / .8);
  box-shadow: inset 0 0 0 1px var(--gx-line-strong);
  white-space: nowrap;
}
.lg-doc a:not([class]) {
  color: var(--gx-violet-200);
  text-decoration: underline;
  text-decoration-color: rgb(var(--gx-violet-400-rgb) / .4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--gx-dur-2) var(--gx-ease), text-decoration-color var(--gx-dur-2) var(--gx-ease);
}
.lg-doc a:not([class]):hover { color: var(--gx-violet-100); text-decoration-color: currentColor; }

.lg-h3 {
  margin-top: 30px;
  margin-bottom: 8px;
  font-size: var(--gx-fs-lg);
  font-weight: 560;
  line-height: 1.35;
  letter-spacing: -0.014em;
  color: var(--gx-text);
}
.lg-h2-row + .lg-h3 { margin-top: 4px; }

.lg-list { display: grid; gap: 10px; margin-top: 14px; }
.lg-list > li { position: relative; padding-left: 24px; }
.lg-list > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(.86em - 3px);
  width: 6px;
  height: 6px;
  background: var(--gx-violet-400);
  opacity: .75;
  clip-path: var(--gx-pent);
}
.lg-list--no > li::before,
.lg-map__col--never .lg-map__list li::before {
  left: 2px;
  top: calc(.86em - 4.5px);
  width: 9px;
  height: 9px;
  border-radius: 0;
  clip-path: none;
  opacity: 1;
  background: rgb(var(--gx-danger-rgb) / .75);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2l-6 6' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2l-6 6' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lg-map__col--never .lg-map__list li::before { left: -1px; top: calc(.75em - 4.5px); }

.lg-steps {
  position: relative;
  display: grid;
  margin-top: 22px;
  counter-reset: lg-step;
}
.lg-steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 16px;
  padding-bottom: 20px;
  counter-increment: lg-step;
}
.lg-steps > li:last-child { padding-bottom: 0; }
.lg-steps > li::before {
  content: counter(lg-step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--gx-radius-sm);
  font-size: var(--gx-fs-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gx-text);
  background-color: rgb(var(--gx-ink-800-rgb) / .8);
  box-shadow: inset 0 0 0 1px var(--gx-line-strong), var(--gx-shadow-inset);
}
.lg-steps > li::after {
  content: "";
  position: absolute;
  left: 14.5px;
  top: 36px;
  bottom: 6px;
  width: 1px;
  background: var(--gx-line-strong);
}
.lg-steps > li:last-child::after { display: none; }
.lg-step__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding-top: 4px;
  font-size: var(--gx-fs-md);
  font-weight: 560;
  line-height: 1.4;
  color: var(--gx-text);
}
.lg-step__agent {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--gx-radius-pill);
  font-size: var(--gx-fs-3xs);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--gx-tracking-caps);
  text-transform: uppercase;
  color: var(--gx-violet-200);
  background-color: rgb(var(--gx-violet-rgb) / .08);
  box-shadow: inset 0 0 0 1px rgb(var(--gx-violet-400-rgb) / .2);
}
.lg-doc .lg-step__text { margin-top: 2px; font-size: var(--gx-fs-md); line-height: 1.65; color: var(--gx-text-2); }

.lg-defs {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
  margin-top: 18px;
  border-top: 1px solid var(--gx-line-strong);
}
.lg-defs > div { display: contents; }
.lg-defs dt,
.lg-defs dd {
  padding-block: 14px;
  line-height: 24px;
  border-bottom: 1px solid var(--gx-line);
}
.lg-defs dt {
  padding-right: 20px;
  font-size: var(--gx-fs-sm);
  font-weight: 560;
  color: var(--gx-text);
}
.lg-defs dd { font-size: var(--gx-fs-md); color: var(--gx-text-2); }

.lg-callout {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: var(--gx-radius-lg);
  background-color: rgb(var(--gx-ink-950-rgb) / .7);
  box-shadow: inset 0 0 0 1px var(--gx-line-strong), var(--gx-shadow-inset);
}
.lg-callout__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--gx-radius-sm);
  color: var(--gx-violet-200);
  background-color: rgb(var(--gx-ink-800-rgb) / .8);
  box-shadow: inset 0 0 0 1px var(--gx-line-strong), var(--gx-shadow-inset);
}
.lg-callout__title {
  align-self: center;
  font-size: var(--gx-fs-md);
  font-weight: 560;
  line-height: 1.4;
  color: var(--gx-text);
}
.lg-callout__text { grid-column: 2; font-size: var(--gx-fs-sm); line-height: 1.65; color: var(--gx-text-2); }
.lg-doc .lg-callout__text { margin-top: 2px; }
.lg-callout__tag {
  display: block;
  margin-bottom: 4px;
  line-height: 1.4;
  color: var(--gx-violet-300);
}
.lg-callout--warn {
  background-image: linear-gradient(90deg, rgb(var(--gx-warning-rgb) / .055), rgb(var(--gx-warning-rgb) / .01) 60%);
  box-shadow: inset 0 0 0 1px rgb(var(--gx-warning-rgb) / .2), var(--gx-shadow-inset);
}
.lg-callout--warn .lg-callout__icon {
  color: var(--gx-warning);
  background-color: rgb(var(--gx-warning-rgb) / .08);
  box-shadow: inset 0 0 0 1px rgb(var(--gx-warning-rgb) / .22);
}
.lg-callout--glass {
  background-image: linear-gradient(90deg, rgb(var(--gx-violet-rgb) / .08), rgb(var(--gx-violet-rgb) / 0) 62%);
  box-shadow: inset 0 0 0 1px rgb(var(--gx-violet-400-rgb) / .22), var(--gx-shadow-inset);
}
.lg-callout--glass .lg-callout__icon {
  background-color: rgb(var(--gx-violet-rgb) / .1);
  box-shadow: inset 0 0 0 1px rgb(var(--gx-violet-400-rgb) / .24), var(--gx-shadow-inset);
}

.lg-agents {
  margin-top: 12px;
  overflow: hidden;
  border-radius: var(--gx-radius-lg);
  background-color: rgb(var(--gx-ink-950-rgb) / .7);
  box-shadow: inset 0 0 0 1px var(--gx-line-strong), var(--gx-shadow-inset);
}
.lg-agents__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--gx-line-strong);
  background-color: rgb(var(--gx-line-rgb) / .03);
}
.lg-agents__title { line-height: 1.4; }
.lg-agents__meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--gx-fs-2xs);
  font-weight: 500;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  color: var(--gx-text-2);
}
.lg-agents__list { display: grid; }
.lg-agent {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  grid-template-areas: "name role fn";
  align-items: baseline;
  gap: 4px 18px;
  padding: 13px 18px;
}
.lg-agent + .lg-agent { border-top: 1px solid var(--gx-line); }
.lg-agent__name {
  grid-area: name;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--gx-fs-sm);
  font-weight: 560;
  line-height: 1.55;
  color: var(--gx-text);
}
.lg-agent__name::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--gx-violet-400);
  clip-path: var(--gx-pent);
}
.lg-agent__role { grid-area: role; font-size: var(--gx-fs-sm); line-height: 1.55; color: var(--gx-text-2); }
.lg-agent__fn {
  grid-area: fn;
  align-self: center;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--gx-radius-pill);
  font-size: var(--gx-fs-3xs);
  font-weight: 500;
  line-height: 1;
  color: var(--gx-text-3);
  box-shadow: inset 0 0 0 1px var(--gx-line-strong);
}

.lg-table-wrap {
  margin-top: 20px;
  overflow: hidden;
  border-radius: var(--gx-radius-lg);
  background-color: rgb(var(--gx-ink-950-rgb) / .7);
  box-shadow: inset 0 0 0 1px var(--gx-line-strong), var(--gx-shadow-inset);
}
.lg-table { width: 100%; font-size: var(--gx-fs-sm); line-height: 1.55; }
.lg-table th,
.lg-table td { padding: 13px 18px; text-align: left; vertical-align: top; }
.lg-table thead th {
  padding-block: 11px;
  font-size: var(--gx-fs-3xs);
  font-weight: 600;
  letter-spacing: var(--gx-tracking-caps);
  text-transform: uppercase;
  color: var(--gx-text-3);
  background-color: rgb(var(--gx-line-rgb) / .03);
  border-bottom: 1px solid var(--gx-line-strong);
}
.lg-table tbody tr + tr > * { border-top: 1px solid var(--gx-line); }
.lg-table tbody th { width: 44%; font-weight: 500; color: var(--gx-text); }
.lg-table td { color: var(--gx-text-2); }
.lg-host {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--gx-font-mono);
  font-size: var(--gx-fs-3xs);
  font-weight: 400;
  color: var(--gx-text-3);
}
@media (max-width: 639px) {
  .lg-host { font-size: .75rem; }
  .lg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lg-table tr { display: block; padding: 14px 16px; }
  .lg-table tbody tr + tr { border-top: 1px solid var(--gx-line); }
  .lg-table tbody tr + tr > * { border-top: 0; }
  .lg-table th,
  .lg-table td { display: block; width: auto !important; padding: 0; }
  .lg-table td { margin-top: 4px; color: var(--gx-text-3); }
}

.lg-keys {
  display: grid;
  margin-top: 18px;
  overflow: hidden;
  border-radius: var(--gx-radius-lg);
  background-color: rgb(var(--gx-ink-950-rgb) / .7);
  box-shadow: inset 0 0 0 1px var(--gx-line-strong), var(--gx-shadow-inset);
}
.lg-key {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
  gap: 4px 18px;
  padding: 13px 18px;
}
.lg-key + .lg-key { border-top: 1px solid var(--gx-line); }
.lg-key__name { font-family: var(--gx-font-mono); font-size: var(--gx-fs-xs); line-height: 22px; color: var(--gx-violet-100); }
.lg-key__desc { font-size: var(--gx-fs-sm); line-height: 22px; color: var(--gx-text-2); }

.lg-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 22px;
  padding: 18px 20px 18px 22px;
  border-radius: var(--gx-radius-lg);
  background-color: rgb(var(--gx-ink-950-rgb) / .7);
  box-shadow: inset 0 0 0 1px var(--gx-line-strong), var(--gx-shadow-inset);
}
.lg-contact__label {
  display: block;
  margin-bottom: 2px;
  font-size: var(--gx-fs-2xs);
  font-weight: 500;
  color: var(--gx-text-3);
}
.lg-contact__addr {
  font-size: var(--gx-fs-lg);
  font-weight: 560;
  letter-spacing: -0.01em;
  color: var(--gx-text);
  overflow-wrap: anywhere;
}
.lg-contact__actions { display: flex; gap: 8px; }

.lg-end { margin-top: clamp(48px, 5vw, 64px); }
.lg-seam {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--gx-fs-2xs);
  font-weight: 500;
  color: var(--gx-text-4);
}
.lg-seam::before,
.lg-seam::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gx-line-strong)); }
.lg-seam::after { background: linear-gradient(90deg, var(--gx-line-strong), transparent); }
.lg-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 28px;
}
a.gx-card.lg-next__card {
  --gx-card-pad: 20px 22px;
  --gx-card-bg: rgb(var(--gx-ink-950-rgb) / .7);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.lg-next__kicker {
  display: block;
  font-size: var(--gx-fs-2xs);
  font-weight: 500;
  color: var(--gx-text-3);
}
.lg-next__title {
  display: block;
  margin-top: 4px;
  font-size: var(--gx-fs-h4);
  font-weight: 560;
  letter-spacing: -0.016em;
  color: var(--gx-text);
}
.lg-next__arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--gx-violet-200);
  box-shadow: inset 0 0 0 1px var(--gx-line-strong);
  transition: transform var(--gx-dur-3) var(--gx-ease), color var(--gx-dur-2) var(--gx-ease), background-color var(--gx-dur-2) var(--gx-ease);
}
.lg-next__card:hover .lg-next__arrow { transform: translateX(3px); color: var(--gx-text); background-color: rgb(var(--gx-violet-rgb) / .16); }
.lg-top {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-width: 116px;
  padding: 14px;
  border-radius: var(--gx-radius-xl);
  font-size: var(--gx-fs-xs);
  font-weight: 500;
  color: var(--gx-text-3);
  background-color: rgb(var(--gx-ink-950-rgb) / .5);
  box-shadow: inset 0 0 0 1px var(--gx-line), var(--gx-shadow-inset);
  transition: color var(--gx-dur-2) var(--gx-ease), box-shadow var(--gx-dur-2) var(--gx-ease), background-color var(--gx-dur-2) var(--gx-ease);
}
.lg-top:hover { color: var(--gx-text); background-color: var(--gx-surface-hover); box-shadow: inset 0 0 0 1px var(--gx-line-strong), var(--gx-shadow-inset); }
.lg-top:focus-visible { border-radius: var(--gx-radius-xl); }
.lg-top svg { transition: transform var(--gx-dur-3) var(--gx-ease); }
.lg-top:hover svg { transform: translateY(-3px); }

@media (max-width: 1100px) {
  .lg-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-map__col:nth-child(2n) { border-right: 0; }
  .lg-map__col:nth-child(-n + 2) { border-bottom: 1px solid var(--gx-line); }
}
@media (max-width: 899px) {
  .lg-brief__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-point:nth-child(3n) { border-right: 1px solid var(--gx-line); }
  .lg-point:nth-child(2n) { border-right: 0; }
  .lg-point:nth-last-child(-n + 3) { border-bottom: 1px solid var(--gx-line); }
  .lg-point:nth-last-child(-n + 2) { border-bottom: 0; }
  .lg-hero__art { opacity: .5; }
}
@media (max-width: 639px) {
  .lg-hero__art { width: 340px; top: -64px; right: -180px; opacity: .34; }
  .lg-hero::after { --gx-grid-size: 48px; }
  .lg-title { max-width: none; }
  .lg-meta {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .lg-meta__item,
  .lg-meta__item:last-child { padding: 12px 0; margin: 0; border-right: 0; }
  .lg-meta__item:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--gx-line); }
  .lg-meta__item:nth-child(even) { padding-left: 16px; }
  .lg-meta__item:nth-child(-n + 2) { border-bottom: 1px solid var(--gx-line); }
  .lg-meta dt,
  .lg-meta dd { white-space: nowrap; }
  .lg-brief__head { padding: 14px 18px; }
  .lg-brief__grid { grid-template-columns: minmax(0, 1fr); }
  .lg-point,
  .lg-point:nth-child(n) { padding: 18px 18px 20px; border-right: 0; border-bottom: 1px solid var(--gx-line); }
  .lg-point:last-child { border-bottom: 0; }
  .lg-map { grid-template-columns: minmax(0, 1fr); }
  .lg-map__col,
  .lg-map__col:nth-child(n) { gap: 8px; padding: 18px 18px 20px; border-right: 0; border-bottom: 1px solid var(--gx-line); }
  .lg-map__col:last-child { border-bottom: 0; }
  .lg-map__list { gap: 6px; padding-top: 12px; }
  .lg-doc { font-size: var(--gx-fs-md); }
  .lg-defs { grid-template-columns: minmax(0, 1fr); }
  .lg-defs dt { padding-bottom: 0; border-bottom: 0; }
  .lg-defs dd { padding-top: 2px; }
  .lg-key { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lg-agents__bar { padding: 11px 16px; }
  .lg-agent {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name fn" "role role";
    gap: 3px 12px;
    padding: 13px 16px 14px;
  }
  .lg-callout { gap: 12px 14px; padding: 18px; }
  .lg-callout__icon { grid-row: auto; align-self: center; }
  .lg-callout__text { grid-column: 1 / -1; }
  .lg-doc .lg-callout__text { margin-top: 0; }
  .lg-next { grid-template-columns: minmax(0, 1fr); }
  .lg-top { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; }
  .lg-contact__actions { width: 100%; }
  .lg-contact__actions .gx-btn { flex: 1; --gx-btn-h: 44px; }
  /* Tap targets: Terms/Privacy switch links get invisible 44px-tall hit areas (::after); 44px+ rows in the mobile contents list. */
  .lg-switch a { position: relative; }
  .lg-switch a::after { content: ""; position: absolute; inset: -7px 0; }
  .lg-mtoc__panel .lg-toc__link { padding-block: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-mtoc__panel { animation: none; }
  .lg-toc__list::after,
  .lg-toc [data-lg-toc]::after { transition: none; }
}

@media print {
  .gx-header, .gx-mnav, .lg-progress, .lg-toc, .lg-mtoc, .lg-hero__art, .lg-anchor, .lg-end, .lg-switch, .gx-footer, .gx-skip { display: none !important; }
  .lg-hero::before, .lg-hero::after { display: none; }
  .lg-layout { display: block; border-top: 0; padding-top: 0; }
  .lg-hero { padding: 0 0 24px; }
  .lg-doc { max-width: none; }
  .lg-doc, .lg-doc p, .lg-list, .lg-defs dd, .lg-step__text, .lg-callout__text, .lg-table td, .lg-point__text, .lg-map__list li, .lg-agent__role, .lg-agents__meta, .lg-agents__title, .lg-agent__fn, .lg-key__desc { color: #222 !important; }
  .lg-doc strong, .lg-h2, .lg-h3, .lg-defs dt, .lg-title, .lg-callout__title, .lg-point__title, .lg-map__title, .lg-table th, .lg-agent__name { color: #000 !important; }
  .lg-section { break-inside: auto; }
  .lg-h2-row, .lg-h3 { break-after: avoid; }
  .lg-callout, .lg-brief__card, .lg-table-wrap, .lg-agents, .lg-keys, .lg-contact { background: none !important; box-shadow: 0 0 0 1px #ccc !important; }
  .lg-agents__bar { background: none !important; }
  .lg-agent__fn { box-shadow: 0 0 0 1px #ccc !important; }
}

/* Breadcrumb trail (same rules as content.css). */
.cx-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: var(--gx-fs-xs);
  color: var(--gx-text-3);
}
.cx-crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cx-crumbs__item + .cx-crumbs__item::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-top: 1.4px solid var(--gx-line-strong);
  border-right: 1.4px solid var(--gx-line-strong);
  transform: rotate(45deg);
}
.cx-crumbs__link {
  color: var(--gx-text-3);
  text-decoration: none;
  border-radius: var(--gx-radius-xs);
  transition: color var(--gx-dur-1) var(--gx-ease);
}
.cx-crumbs__link:hover { color: var(--gx-text); }
.cx-crumbs__link:focus-visible { outline: 2px solid var(--gx-violet-300); outline-offset: 3px; }
.cx-crumbs [aria-current] { color: var(--gx-text); }
@media (max-width: 639px) {
  /* Tap targets: invisible 44px-tall hit areas (::after) over the trail's own spacing; same look and layout. */
  .cx-crumbs__link { position: relative; }
  .cx-crumbs__link::after { content: ""; position: absolute; inset: -12px -10px; }
}
