/*
Purpose: Nova documentation interface styling.
Scope: `/doc/` layout, navigation, component pages, galleries, technical tables, and
responsive documentation surfaces. Public site styling stays in `web/assets/css/`.
*/

:root {
  color-scheme: dark;
  --bg: #070a0f;
  --panel: #0c1218;
  --panel-2: #111820;
  --panel-3: #151e27;
  --line: #24313b;
  --line-soft: rgba(156, 178, 190, 0.14);
  --text: #edf3f5;
  --muted: #a9b6be;
  --dim: #6e7c85;
  --primary: #35cce6;
  --secondary: #d8a348;
  --cyan: var(--primary);
  --teal: var(--primary);
  --amber: var(--secondary);
  --green: var(--primary);
  --violet: var(--primary);
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.42);
  --doc-sidebar-width: 256px;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sans: "Segoe UI Variable", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  min-height: 100%;
  scroll-behavior: smooth;
  scrollbar-color: rgba(169, 182, 190, 0.34) rgba(5, 9, 14, 0.82);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(180deg, #070a0f 0%, #091018 52%, #070a0f 100%);
  background-size: 72px 72px, 72px 72px, auto;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: rgba(5, 9, 14, 0.84);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  border: 2px solid rgba(5, 9, 14, 0.84);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(169, 182, 190, 0.42), rgba(53, 204, 230, 0.38));
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(216, 163, 72, 0.52), rgba(53, 204, 230, 0.5));
  background-clip: padding-box;
}

html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

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

button,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--doc-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.mobile-doc-bar,
.mobile-nav-backdrop,
.side-rail-close {
  display: none;
}

.mobile-doc-bar,
.mobile-doc-brand,
.mobile-menu-button,
.side-rail-close {
  -webkit-user-select: none;
  user-select: none;
}

.side-rail {
  position: sticky;
  top: 0;
  width: var(--doc-sidebar-width);
  min-width: var(--doc-sidebar-width);
  max-width: var(--doc-sidebar-width);
  height: 100vh;
  padding: 22px 16px;
  background: rgba(7, 10, 15, 0.94);
  border-right: 1px solid var(--line);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.025);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-color: rgba(169, 182, 190, 0.28) rgba(5, 9, 14, 0.68);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.side-rail::-webkit-scrollbar {
  width: 8px;
}

.side-rail::-webkit-scrollbar-track {
  border-left: 1px solid rgba(36, 49, 59, 0.44);
  background: rgba(5, 9, 14, 0.72);
}

.side-rail::-webkit-scrollbar-thumb {
  border: 2px solid rgba(5, 9, 14, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(169, 182, 190, 0.38), rgba(53, 204, 230, 0.30));
  background-clip: padding-box;
}

.side-rail::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(216, 163, 72, 0.48), rgba(53, 204, 230, 0.42));
  background-clip: padding-box;
}

.side-rail::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.brand-lockup {
  padding: 8px 8px 22px;
  border-bottom: 1px solid var(--line);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  width: 178px;
  max-width: 100%;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.sidebar-search {
  margin-top: 18px;
}

.sidebar-search input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 9, 14, 0.72);
  color: var(--text);
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
}

.sidebar-search input::placeholder {
  color: var(--dim);
}

.sidebar-search input:focus {
  border-color: rgba(53, 204, 230, 0.45);
  box-shadow: 0 0 0 3px rgba(53, 204, 230, 0.08);
}

.nav-section {
  padding: 18px 0 12px;
}

.nav-label {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 8px 8px;
}

.nav-label--spaced {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.nav-list {
  display: grid;
  gap: 4px;
  -webkit-user-select: none;
  user-select: none;
}

.nav-empty {
  margin: 10px 8px 0;
  min-height: 36px;
  border: 1px solid rgba(53, 204, 230, 0.18);
  border-radius: 8px;
  background: rgba(53, 204, 230, 0.045);
  color: var(--muted);
  display: grid;
  place-items: center start;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 12px;
}

.nav-empty[hidden] {
  display: none;
}

.nav-list:has(.nav-link.is-hidden):not(:has(.nav-link:not(.is-hidden))) .nav-empty {
  display: grid;
}

.nav-group {
  display: grid;
  min-width: 0;
}

.nav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 2px;
  align-items: center;
}

.nav-row:has(.nav-link--parent.is-hidden) .nav-toggle {
  display: none;
}

.nav-link {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-link--parent {
  min-width: 0;
}

.nav-toggle {
  display: grid;
  place-items: center;
  align-self: center;
  width: 22px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  border-color: rgba(53, 204, 230, 0.25);
  background: rgba(53, 204, 230, 0.055);
  outline: none;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: var(--text);
  background: rgba(53, 204, 230, 0.055);
  outline: none;
}

.nav-toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(53, 204, 230, 0.16);
}

.nav-link.is-active {
  color: var(--text);
  border-color: rgba(216, 163, 72, 0.42);
  background: rgba(216, 163, 72, 0.08);
}

.nav-link.is-parent-active {
  color: var(--text);
  border-color: rgba(216, 163, 72, 0.24);
  background: rgba(216, 163, 72, 0.045);
}

.nav-group.is-open .nav-toggle {
  color: var(--secondary);
  background: transparent;
}

.nav-chevron {
  width: 6px;
  height: 6px;
  border-right: 1.35px solid currentColor;
  border-bottom: 1.35px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 160ms ease;
}

.nav-group.is-open .nav-chevron {
  transform: translateY(2px) rotate(225deg);
}

.nav-children {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows 180ms ease, opacity 140ms ease;
}

.nav-children[hidden] {
  display: none;
}

.nav-group.is-open .nav-children {
  grid-template-rows: 1fr;
  opacity: 1;
}

.nav-children-inner {
  display: grid;
  gap: 4px;
  min-height: 0;
  overflow: hidden;
}

.nav-link--child {
  min-height: 31px;
  margin-left: 20px;
  padding: 6px 10px;
  border-color: transparent;
  background: transparent;
  color: var(--dim);
  font-size: 14px;
}

.nav-children-inner .nav-link--child:first-child {
  margin-top: 4px;
}

.nav-link--child .nav-dot {
  width: 5px;
  height: 5px;
  opacity: 0.82;
}

.nav-link--child.is-active {
  color: var(--text);
  border-color: transparent;
  background: transparent;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(53, 204, 230, 0.45);
}

.nav-link.is-active .nav-dot {
  background: var(--secondary);
  box-shadow: 0 0 10px rgba(216, 163, 72, 0.44);
}

.nav-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-meta {
  margin-top: 14px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 32, 0.62);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.content-shell {
  min-width: 0;
  padding: 28px;
}

.top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin-bottom: 22px;
  -webkit-user-select: none;
  user-select: none;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.crumbs a,
.crumbs [aria-current="page"] {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.doc-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 9, 14, 0.58);
}

.doc-language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
}

.doc-language-switcher a:hover,
.doc-language-switcher a:focus-visible,
.doc-language-switcher a[aria-current="true"] {
  background: rgba(53, 204, 230, 0.12);
  color: var(--text);
}

.doc-language-switcher a:focus-visible {
  outline: 2px solid rgba(53, 204, 230, 0.55);
  outline-offset: 2px;
}

.status-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.status-pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 18, 25, 0.56);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}

.status-pill strong,
.tag strong {
  color: var(--text);
  font-weight: 600;
}

.page {
  animation: page-in 420ms ease both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.component-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 21, 0.88);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  gap: 0;
  overflow: hidden;
}

.hero-copy {
  min-width: 0;
  padding: clamp(34px, 3vw, 56px);
  border-right: 1px solid var(--line);
}

.eyebrow {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 10px;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.1;
}

h1 {
  margin: 0;
  font-size: 34px;
  max-width: 700px;
  font-weight: 760;
}

h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 720;
}

h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.hero-copy p:not(.eyebrow),
.component-copy p,
.section-intro {
  color: var(--muted);
  max-width: 760px;
}

.hero-copy p:not(.eyebrow) {
  margin: 14px 0 0;
  font-size: 17px;
}

.framework-flow {
  position: relative;
  margin: clamp(28px, 4vh, 48px) 0 0;
  overflow: hidden;
  border: 1px solid rgba(126, 145, 157, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 48%, rgba(53, 204, 230, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(53, 204, 230, 0.04), transparent 38%),
    rgba(4, 8, 12, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 42px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
}

.framework-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%, rgba(2, 5, 8, 0.54) 100%),
    linear-gradient(90deg, rgba(5, 9, 14, 0.18), transparent 24%, transparent 76%, rgba(5, 9, 14, 0.28));
  pointer-events: none;
}

.flow-grid {
  position: relative;
  min-height: 196px;
  display: grid;
  grid-template-columns: 0.94fr 1.12fr 0.94fr;
  align-items: center;
  gap: clamp(8px, 2vw, 18px);
  padding: 22px 22px 46px;
  isolation: isolate;
}

.flow-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.25;
  pointer-events: none;
}

.flow-node,
.flow-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 118px;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 180ms ease-out;
}

.flow-sphere {
  position: relative;
  width: clamp(54px, 7vw, 66px);
  aspect-ratio: 1;
  border: 1px solid rgba(53, 204, 230, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(53, 204, 230, 0.72), transparent 22%),
    radial-gradient(circle at 50% 60%, rgba(53, 204, 230, 0.18), transparent 62%),
    rgba(4, 14, 20, 0.92);
  box-shadow:
    0 0 34px rgba(53, 204, 230, 0.22),
    inset 0 0 26px rgba(53, 204, 230, 0.14);
}

.flow-sphere::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: rgba(169, 255, 198, 0.42);
  transform: translate(32%, 38%);
  box-shadow: 0 0 14px rgba(123, 245, 172, 0.24);
}

.flow-sphere i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64%;
  height: 64%;
  border: 1px solid rgba(220, 244, 249, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: flow-wobble 8s ease-in-out infinite;
}

.flow-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(92px, 12vw, 116px);
  aspect-ratio: 1;
  border: 1px solid rgba(53, 204, 230, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: flow-rotate 18s linear infinite;
}

.flow-orbit span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 16px rgba(53, 204, 230, 0.68);
}

.flow-orbit span:nth-child(1) {
  left: 50%;
  top: -4px;
}

.flow-orbit span:nth-child(2) {
  right: 7px;
  top: 70%;
}

.flow-orbit span:nth-child(3) {
  left: 8px;
  top: 72%;
}

.flow-mini {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(156, 178, 190, 0.22);
  border-radius: 8px;
  background: rgba(8, 16, 22, 0.86);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.flow-mini--thinking {
  left: 50%;
  top: 50%;
  transform: translate(clamp(-74px, -5vw, -52px), clamp(-58px, -3vw, -40px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.flow-mini--task {
  right: 8%;
  bottom: 20%;
}

.flow-mini--task::before,
.flow-mini--task::after {
  content: "";
  position: absolute;
  background: rgba(53, 204, 230, 0.72);
}

.flow-mini--thinking i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(123, 245, 172, 0.76);
  box-shadow: 0 0 12px rgba(123, 245, 172, 0.46);
  animation: thinking-dot 1.35s ease-in-out infinite;
}

.flow-mini--thinking i:nth-child(2) {
  animation-delay: 0.18s;
}

.flow-mini--thinking i:nth-child(3) {
  animation-delay: 0.36s;
}

.flow-mini--task::before {
  width: 13px;
  height: 2px;
  left: 8px;
  top: 9px;
  box-shadow: 0 6px 0 rgba(53, 204, 230, 0.52), 0 12px 0 rgba(53, 204, 230, 0.32);
}

.flow-mini--task::after {
  width: 4px;
  height: 4px;
  left: 6px;
  top: 8px;
  border-radius: 50%;
  box-shadow: 0 6px 0 rgba(53, 204, 230, 0.52), 0 12px 0 rgba(53, 204, 230, 0.32);
}

.flow-core {
  min-height: 138px;
}

.core-chip {
  position: relative;
  width: clamp(90px, 12vw, 118px);
  aspect-ratio: 1.35;
  border: 1px solid rgba(156, 178, 190, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(20, 30, 38, 0.96), rgba(8, 13, 20, 0.96)),
    rgba(4, 8, 12, 0.9);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    inset 0 0 34px rgba(53, 204, 230, 0.08);
}

.core-chip::before {
  content: "";
  position: absolute;
  inset: 18px 20px;
  border: 1px solid rgba(53, 204, 230, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(53, 204, 230, 0.18);
  animation: core-breathe 4s ease-in-out infinite;
}

.core-chip span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 243, 245, 0.78), rgba(53, 204, 230, 0.78) 30%, transparent 64%);
  filter: drop-shadow(0 0 22px rgba(53, 204, 230, 0.45));
}

.core-ring {
  position: absolute;
  border: 1px solid rgba(53, 204, 230, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.core-ring--outer {
  width: clamp(122px, 17vw, 158px);
  aspect-ratio: 1;
  animation: flow-rotate 24s linear infinite reverse;
}

.core-ring--inner {
  width: clamp(96px, 13vw, 122px);
  aspect-ratio: 1;
  border-style: dashed;
  animation: flow-rotate 16s linear infinite;
}

.core-ports {
  position: absolute;
  bottom: 11px;
  display: flex;
  gap: 6px;
}

.core-ports i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 14px rgba(53, 204, 230, 0.62);
  animation: port-blink 1.8s ease-in-out infinite;
}

.core-ports i:nth-child(2) {
  animation-delay: 0.22s;
}

.core-ports i:nth-child(3) {
  animation-delay: 0.44s;
}

.core-ports i:nth-child(4) {
  animation-delay: 0.66s;
}

.work-window {
  position: relative;
  width: clamp(102px, 14vw, 138px);
  aspect-ratio: 1.18;
  border: 1px solid rgba(156, 178, 190, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(16, 24, 31, 0.96), rgba(7, 11, 17, 0.94));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.3),
    inset 0 0 30px rgba(53, 204, 230, 0.055);
  overflow: hidden;
}

.work-top {
  height: 22%;
  border-bottom: 1px solid rgba(156, 178, 190, 0.14);
  background:
    linear-gradient(90deg, rgba(53, 204, 230, 0.34), rgba(53, 204, 230, 0.06) 34%, transparent 72%);
}

.work-body {
  position: absolute;
  left: 12px;
  right: 52px;
  top: 46%;
  display: grid;
  gap: 8px;
}

.work-body span {
  height: 5px;
  border-radius: 999px;
  background: rgba(169, 182, 190, 0.44);
}

.work-body span:nth-child(1) {
  width: 92%;
}

.work-body span:nth-child(2) {
  width: 72%;
}

.work-body span:nth-child(3) {
  width: 52%;
  background: rgba(53, 204, 230, 0.62);
}

.work-side {
  position: absolute;
  right: 12px;
  top: 42%;
  display: grid;
  gap: 7px;
}

.work-side i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(53, 204, 230, 0.8);
  box-shadow: 0 0 12px rgba(53, 204, 230, 0.42);
}

.work-check {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(53, 204, 230, 0.32);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(216, 163, 72, 0.74), rgba(53, 204, 230, 0.44)),
    rgba(8, 14, 20, 0.86);
  box-shadow: 0 0 24px rgba(216, 163, 72, 0.18);
}

.work-check::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 9px;
  width: 12px;
  height: 7px;
  border-left: 2px solid rgba(237, 243, 245, 0.9);
  border-bottom: 2px solid rgba(237, 243, 245, 0.9);
  transform: rotate(-45deg);
}

.flow-lines {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flow-line {
  fill: none;
  stroke-linecap: round;
}

.flow-line--back,
.flow-line--front {
  stroke: rgba(53, 204, 230, 0.72);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 7px rgba(53, 204, 230, 0.55));
}

.flow-line--soft {
  stroke: rgba(53, 204, 230, 0.22);
  stroke-width: 1;
}

.flow-line--return {
  stroke: rgba(123, 245, 172, 0.58);
  stroke-width: 1.35;
  stroke-dasharray: 5 9;
  filter: drop-shadow(0 0 7px rgba(123, 245, 172, 0.38));
  animation: return-dash 7s linear infinite;
}

.flow-pulse {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 17%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 18px rgba(53, 204, 230, 0.74);
  transform: translate(-50%, -50%);
  animation: flow-pulse 3.6s cubic-bezier(0.5, 0, 0.2, 1) infinite;
}

.flow-pulse--two {
  animation-delay: 1.2s;
}

.flow-pulse--three {
  animation-delay: 2.4s;
}

.flow-return-dot {
  fill: #7bf5ac;
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(123, 245, 172, 0.78));
}

.framework-flow figcaption {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  pointer-events: none;
}

.framework-flow figcaption span {
  min-width: 0;
  border: 1px solid rgba(156, 178, 190, 0.22);
  border-radius: 999px;
  background: rgba(4, 8, 12, 0.72);
  color: #d9e7ec;
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}

.framework-flow figcaption span:nth-child(2) {
  border-color: rgba(53, 204, 230, 0.36);
  color: var(--text);
  box-shadow: 0 0 20px rgba(53, 204, 230, 0.08);
}

@keyframes flow-pulse {
  0% {
    left: 17%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }
  12%,
  88% {
    opacity: 1;
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.18);
  }
  100% {
    left: 83%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }
}

@keyframes return-dash {
  to {
    stroke-dashoffset: -56;
  }
}

@keyframes thinking-dot {
  0%,
  100% {
    opacity: 0.32;
    transform: translateY(2px) scale(0.86);
  }
  45% {
    opacity: 1;
    transform: translateY(-2px) scale(1.12);
  }
}

@keyframes flow-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes flow-wobble {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) rotate(32deg) scale(1.08);
  }
}

@keyframes core-breathe {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.58;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes port-blink {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.overview-video-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(28px, 3.2vw, 58px);
  background:
    radial-gradient(circle at 50% 50%, rgba(53, 204, 230, 0.09), transparent 38%),
    linear-gradient(135deg, rgba(53, 204, 230, 0.035), transparent 42%),
    rgba(3, 5, 8, 0.72);
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 9, 14, 0.92), rgba(7, 13, 19, 0.74)),
    linear-gradient(135deg, rgba(53, 204, 230, 0.08), transparent 48%),
    rgba(10, 15, 21, 0.88);
  box-shadow: var(--shadow);
}

.subpage-copy {
  min-width: 0;
  padding: clamp(34px, 3vw, 56px);
  border-right: 1px solid var(--line);
}

.subpage-hero h1 {
  margin-bottom: 16px;
}

.subpage-copy p:last-child {
  max-width: 820px;
  margin: 0;
  color: #d6e0e5;
  font-size: 18px;
  line-height: 1.65;
}

.subpage-video-panel {
  min-height: 330px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 14, 20, 0.66);
  padding: 22px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head .section-intro {
  margin: 8px 0 0;
}

.intro-section {
  padding: 26px;
}

.intro-copy {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.intro-copy p {
  margin: 0;
  color: #d2dce1;
  font-size: 17px;
  line-height: 1.65;
}

.overview-video-preview {
  position: relative;
  width: min(100%, 860px);
  aspect-ratio: 16 / 9;
  margin: 0;
}

.overview-video-preview,
.video-frame {
  border: 1px solid rgba(169, 182, 190, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(53, 204, 230, 0.08), transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(53, 204, 230, 0.12), transparent 27%),
    rgba(5, 9, 14, 0.54);
  overflow: hidden;
}

.overview-video-preview--embed {
  background: rgba(5, 9, 14, 0.86);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.34);
}

.overview-video-embed {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.overview-video-preview span,
.video-frame::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 32px;
  transform: translate(-50%, -50%);
  background: rgba(237, 243, 245, 0.92);
  clip-path: polygon(22% 12%, 22% 88%, 86% 50%);
  filter: drop-shadow(0 0 26px rgba(53, 204, 230, 0.26));
}

.search-box {
  width: min(310px, 100%);
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 9, 14, 0.84);
  color: var(--text);
  padding: 8px 11px;
  outline: none;
}

.search-box:focus {
  border-color: rgba(53, 204, 230, 0.62);
  box-shadow: 0 0 0 3px rgba(53, 204, 230, 0.09);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.module-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 25, 0.62);
  padding: 14px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.module-card:hover,
.module-card:focus-visible {
  border-color: rgba(53, 204, 230, 0.34);
  background: rgba(17, 24, 32, 0.78);
  outline: none;
}

.module-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #020408;
}

.module-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.module-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.disclosure {
  padding: 0;
  overflow: hidden;
}

.disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 18px 22px;
  list-style: none;
}

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

.disclosure summary::after {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(currentColor 0 0) center / 10px 1.5px no-repeat,
    linear-gradient(currentColor 0 0) center / 1.5px 10px no-repeat;
  color: var(--primary);
  flex: none;
}

.disclosure[open] summary {
  border-bottom: 1px solid var(--line);
}

.disclosure[open] summary::after {
  background: linear-gradient(currentColor 0 0) center / 10px 1.5px no-repeat;
}

.disclosure summary .eyebrow {
  display: block;
  margin-bottom: 5px;
}

.supporting-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 22px;
  padding: 22px;
}

.folder-grid,
.ref-grid {
  display: grid;
  gap: 10px;
}

.folder-row,
.ref-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.44fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px;
  background: rgba(4, 8, 12, 0.34);
}

.folder-row code,
.ref-path,
.symbol,
.snippet,
.tools-list {
  font-family: var(--mono);
}

code,
.ref-path {
  color: #cceff6;
}

.folder-row p,
.ref-row p {
  margin: 0;
  color: var(--muted);
}

.component-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
  min-width: 0;
  overflow: hidden;
}

.component-hero--banner {
  grid-template-columns: 1fr;
}

.component-media {
  position: relative;
  min-width: 0;
  min-height: 500px;
  background: #030508;
  border-right: 1px solid var(--line);
}

.component-hero--banner .component-media {
  min-height: 300px;
  max-height: 360px;
  border-right: 0;
}

.media-image-button {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 500px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
}

.component-hero--banner .media-image-button {
  position: relative;
  height: clamp(300px, 28vw, 360px);
  min-height: 300px;
  overflow: hidden;
  text-align: left;
}

.component-hero--banner .media-image-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.88) 0%, rgba(5, 8, 12, 0.78) 42%, rgba(5, 8, 12, 0.36) 76%, rgba(5, 8, 12, 0.62) 100%),
    linear-gradient(0deg, rgba(5, 8, 12, 0.8) 0%, rgba(5, 8, 12, 0.12) 55%, rgba(5, 8, 12, 0.42) 100%);
  pointer-events: none;
}

.media-image-button:focus-visible {
  outline: 2px solid rgba(53, 204, 230, 0.78);
  outline-offset: -4px;
}

.component-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.component-hero--banner .component-media img {
  height: clamp(300px, 28vw, 360px);
  min-height: 300px;
  object-position: center 42%;
}

.visual-action {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(53, 204, 230, 0.36);
  border-radius: 999px;
  background: rgba(4, 8, 12, 0.78);
  color: var(--text);
  padding: 7px 10px;
  font-family: var(--mono);
  font-size: 11px;
}

.component-hero--banner .visual-action {
  display: none;
}

.component-copy {
  padding: 38px;
}

.component-hero--banner .component-copy {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 32px;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(760px, calc(100% - 68px));
  padding: 0;
}

.component-hero--banner .component-copy .eyebrow {
  margin: 0;
}

.hero-title {
  display: block;
  color: var(--text);
  font-size: 34px;
  line-height: 1.08;
  font-weight: 760;
}

.hero-summary {
  display: block;
  color: #d6e0e5;
  font-size: 17px;
  line-height: 1.55;
  max-width: 780px;
}

.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;
}

.component-copy h1 {
  margin-bottom: 16px;
}

.component-copy p {
  font-size: 17px;
  max-width: 680px;
}

.quick-read {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.quick-read a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
}

.quick-read a:hover,
.quick-read a:focus-visible {
  border-color: rgba(53, 204, 230, 0.42);
  color: var(--text);
  outline: none;
}

.small-heading {
  margin: 26px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.responsibility-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.responsibility-list li {
  position: relative;
  padding-left: 22px;
  color: #dfe7eb;
}

.responsibility-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(53, 204, 230, 0.36);
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.tools-list li {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #cfe4ea;
  padding: 5px 9px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.readme-section {
  scroll-margin-top: 20px;
  padding-inline: 34px;
}

.readme-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 14px;
  min-width: 0;
}

.readme-card {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(4, 8, 12, 0.32);
  padding: 16px;
}

.readme-card h3 {
  margin: 0 0 10px;
}

.readme-card p {
  margin: 0;
  color: var(--muted);
}

.readme-card--explain h3:not(:first-child) {
  margin-top: 20px;
}

.readme-card--explain {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
}

.description-gallery {
  min-width: 0;
  margin-top: 30px;
  border: 0;
  background: transparent;
  padding: 0;
}

.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gallery-head .eyebrow {
  margin: 0;
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.gallery-button:hover,
.gallery-button:focus-visible {
  color: var(--text);
  border-color: rgba(53, 204, 230, 0.28);
  background: rgba(53, 204, 230, 0.07);
  outline: none;
}

.gallery-button:disabled {
  cursor: default;
  opacity: 0.34;
}

.gallery-button span {
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.gallery-button--prev span {
  transform: translateX(1px) rotate(-135deg);
}

.gallery-button--next span {
  transform: translateX(-1px) rotate(45deg);
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 28vw, 330px);
  gap: 12px;
  margin-top: 12px;
  padding: 1px 0 8px;
  overflow-x: auto;
  scroll-padding-inline: 1px;
  scroll-snap-type: x proximity;
  scrollbar-color: transparent transparent;
  scrollbar-width: thin;
}

.description-gallery:hover .gallery-track,
.description-gallery:focus-within .gallery-track {
  scrollbar-color: rgba(53, 204, 230, 0.22) transparent;
}

.gallery-track::-webkit-scrollbar {
  height: 7px;
}

.gallery-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: transparent;
  transition: background 160ms ease;
}

.description-gallery:hover .gallery-track::-webkit-scrollbar-thumb,
.description-gallery:focus-within .gallery-track::-webkit-scrollbar-thumb {
  background: rgba(53, 204, 230, 0.22);
}

.gallery-thumb {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.024);
  scroll-snap-align: start;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(5, 9, 14, 0.74);
}

.gallery-thumb figcaption {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.gallery-thumb strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.gallery-thumb span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.subpage-explain {
  max-width: 980px;
}

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

.detail-card {
  min-height: 170px;
}

.detail-card p {
  font-size: 14px;
  line-height: 1.65;
}

.video-preview-card {
  position: relative;
  display: grid;
  align-self: start;
  gap: 14px;
  align-content: start;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 9, 14, 0.08), rgba(5, 9, 14, 0.42)),
    radial-gradient(circle at 50% 42%, rgba(53, 204, 230, 0.10), transparent 32%),
    rgba(4, 8, 12, 0.44);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-frame::after {
  content: "";
}

.video-caption {
  display: grid;
  gap: 6px;
  align-content: start;
}

.video-caption span {
  color: var(--secondary);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.video-caption strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}

.video-caption p {
  max-width: 36rem;
  font-size: 13px;
  line-height: 1.55;
}

.info-vars-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.44fr) minmax(0, 0.56fr);
  gap: 14px;
  align-items: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.info-panel {
  scroll-margin-top: 22px;
  border-color: rgba(126, 145, 157, 0.24);
  background:
    linear-gradient(180deg, rgba(13, 19, 27, 0.82), rgba(7, 11, 17, 0.78)),
    rgba(8, 13, 19, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 16px 36px rgba(0, 0, 0, 0.18);
}

.info-panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.info-panel h3 {
  margin: 18px 0 8px;
  font-size: 14px;
}

.info-panel p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.info-panel p a {
  color: #d6eef3;
  text-decoration: underline;
  text-decoration-color: rgba(53, 204, 230, 0.34);
  text-underline-offset: 3px;
}

.section-index {
  display: grid;
  gap: 5px;
  margin: -2px 0 20px;
  font-size: 14px;
  line-height: 1.5;
}

.section-index a {
  width: fit-content;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(53, 204, 230, 0.28);
  text-underline-offset: 3px;
}

.section-index a:hover,
.section-index a:focus-visible {
  color: var(--text);
  outline: none;
}

.info-panel .tech-docs {
  padding: 0;
}

.info-panel .tech-table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.info-panel .tech-table th,
.info-panel .tech-table td {
  padding-right: 0;
  padding-left: 0;
}

.installation-guide {
  width: 100%;
  gap: 0;
  max-width: none;
}

.installation-article {
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(11, 17, 24, 0.72), rgba(7, 11, 17, 0.58)),
    rgba(7, 11, 17, 0.54);
}

.installation-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 14px;
  align-items: start;
}

.installation-article-box {
  display: grid;
  gap: 30px;
  min-width: 0;
  min-height: 520px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(4, 8, 12, 0.30);
}

.installation-prose {
  display: grid;
  gap: 18px;
  max-width: 92ch;
}

.installation-prose p {
  margin: 0;
  color: #d2dce1;
  font-size: 17px;
  line-height: 1.66;
}

.installation-prose h3 {
  margin: 22px 0 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.35;
}

.installation-prose h4,
.installation-disclosure h4 {
  margin: 14px 0 8px;
  color: #edf3f5;
  font-size: 13px;
  line-height: 1.35;
}

.installation-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
  inline-size: min(100%, 760px);
  margin: 2px 0 4px;
  padding: 14px 16px;
  border: 1px solid rgba(53, 204, 230, 0.14);
  border-left-color: rgba(53, 204, 230, 0.42);
  border-radius: 8px;
  background: rgba(53, 204, 230, 0.045);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.62;
}

.installation-index span {
  margin: 0 0 2px;
  color: #edf3f5;
  font-weight: 700;
}

.installation-index a {
  display: block;
  min-width: 0;
  padding: 2px 0 2px 13px;
  border-left: 1px solid rgba(53, 204, 230, 0.18);
  color: #d6eef3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.installation-index a + a::before {
  content: none;
}

.installation-index a:hover,
.installation-index a:focus-visible {
  border-left-color: rgba(53, 204, 230, 0.58);
  color: var(--primary);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.installation-prose h3[id],
.installation-disclosure[id],
.installation-related-text[id] {
  scroll-margin-top: 22px;
}

.installation-video-card {
  display: grid;
  gap: 14px;
  align-self: start;
  padding: 14px;
  border: 1px solid rgba(53, 204, 230, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 9, 14, 0.18), rgba(5, 9, 14, 0.48)),
    radial-gradient(circle at 50% 42%, rgba(53, 204, 230, 0.10), transparent 32%),
    rgba(4, 8, 12, 0.58);
}

.installation-checklist {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.installation-checklist li {
  position: relative;
  padding-left: 22px;
  color: #dfe7eb;
  font-size: 14px;
  line-height: 1.58;
}

.installation-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(53, 204, 230, 0.34);
}

.installation-article-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 0 0 24px;
}

.installation-article-steps li {
  padding-left: 4px;
  color: #dfe7eb;
}

.installation-article-steps strong,
.installation-article-steps span {
  display: block;
}

.installation-article-steps strong {
  margin-bottom: 3px;
  color: var(--text);
}

.installation-article-steps span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.66;
}

.installation-term-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(4, 8, 12, 0.32);
}

.installation-term-list div {
  display: grid;
  grid-template-columns: minmax(150px, 0.24fr) minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
}

.installation-term-list div + div {
  border-top: 1px solid var(--line-soft);
}

.installation-term-list dt {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
}

.installation-term-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.installation-term-list + h3 {
  margin-top: 34px;
}

.installation-disclosure-list {
  display: grid;
  gap: 10px;
  max-width: 92ch;
}

@media (min-width: 1500px) {
  .installation-prose,
  .installation-disclosure-list {
    max-width: 108ch;
  }
}

.installation-disclosure {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(5, 9, 14, 0.42);
  overflow: hidden;
}

.installation-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.installation-disclosure summary::-webkit-details-marker {
  display: none;
}

.installation-disclosure summary::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(currentColor 0 0) center / 9px 1.5px no-repeat,
    linear-gradient(currentColor 0 0) center / 1.5px 9px no-repeat;
  color: var(--primary);
  flex: none;
}

.installation-disclosure[open] summary {
  border-bottom: 1px solid var(--line-soft);
}

.installation-disclosure[open] summary::after {
  background: linear-gradient(currentColor 0 0) center / 9px 1.5px no-repeat;
}

.installation-disclosure > div {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.installation-disclosure p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.install-code {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  border: 1px solid rgba(53, 204, 230, 0.16);
  border-radius: 8px;
  background: rgba(3, 6, 10, 0.78);
  color: #d6eef3;
  padding: 13px 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  scrollbar-color: rgba(53, 204, 230, 0.24) transparent;
}

.install-code code {
  color: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.installation-related-text {
  padding-top: 4px;
}

.installation-related-links {
  margin-top: 2px;
}

.tech-docs {
  display: grid;
  gap: 16px;
  padding: 18px 22px 22px;
}

.compact-links {
  gap: 8px;
}

.tech-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(4, 8, 12, 0.34);
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.tech-table th,
.tech-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.tech-table th:first-child,
.tech-table td:first-child {
  width: 220px;
}

.tech-table th {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tech-table tr:last-child td {
  border-bottom: 0;
}

.tech-table code {
  color: #d6eef3;
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.tech-table td:first-child code {
  white-space: nowrap;
  overflow-wrap: normal;
}

.tech-table td:last-child,
.tech-empty {
  color: var(--muted);
}

.meta-hero {
  align-items: stretch;
}

.meta-signal-panel {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 280px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(53, 204, 230, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(17, 24, 32, 0.88), rgba(6, 10, 15, 0.94));
  box-shadow: var(--shadow);
}

.meta-signal-panel::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(53, 204, 230, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.58;
}

.meta-signal-panel span,
.meta-signal-panel strong {
  position: relative;
  width: fit-content;
  border: 1px solid rgba(53, 204, 230, 0.22);
  border-radius: 8px;
  background: rgba(5, 9, 14, 0.72);
  color: #d6eef3;
  font-family: var(--mono);
}

.meta-signal-panel span {
  margin: 0 0 8px;
  padding: 6px 9px;
  font-size: 12px;
}

.meta-signal-panel span:nth-child(2),
.meta-signal-panel span:nth-child(4) {
  margin-left: auto;
}

.meta-signal-panel strong {
  margin-top: 18px;
  padding: 10px 12px;
  font-size: 14px;
}

.meta-signal-panel--glossary {
  display: block;
  min-height: 280px;
  padding: 0;
  isolation: isolate;
}

.meta-signal-panel--glossary::before {
  inset: 0;
  border: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 14, 0.64), rgba(5, 9, 14, 0.14) 46%, rgba(5, 9, 14, 0.42)),
    radial-gradient(circle at 78% 26%, rgba(53, 204, 230, 0.24), transparent 28%);
  opacity: 1;
  z-index: 1;
}

.meta-signal-panel--glossary::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(53, 204, 230, 0.14);
  border-radius: 8px;
  background: linear-gradient(115deg, transparent 0 42%, rgba(53, 204, 230, 0.12) 50%, transparent 58% 100%);
  background-size: 260% 100%;
  mix-blend-mode: screen;
  opacity: 0.54;
  z-index: 2;
  animation: glossaryPanelSweep 8s ease-in-out infinite;
}

.meta-signal-panel--glossary img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transform: scale(1.02);
  transform-origin: 64% 48%;
  z-index: 0;
  animation: glossaryVisualDrift 16s ease-in-out infinite alternate;
}

.meta-signal-panel--glossary strong {
  position: absolute;
  left: 20px;
  bottom: 18px;
  margin: 0;
  z-index: 3;
}

@keyframes glossaryVisualDrift {
  from {
    transform: scale(1.02) translate3d(-4px, 0, 0);
  }

  to {
    transform: scale(1.07) translate3d(10px, -3px, 0);
  }
}

@keyframes glossaryPanelSweep {
  0%,
  34% {
    background-position: 120% 0;
    opacity: 0.28;
  }

  58% {
    background-position: 18% 0;
    opacity: 0.58;
  }

  100% {
    background-position: -80% 0;
    opacity: 0.28;
  }
}

.glossary-filter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.glossary-filter-field {
  position: relative;
  width: min(340px, 100%);
}

.glossary-filter-input {
  width: 100%;
  padding-right: 42px;
}

.glossary-filter-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #d6eef3;
  cursor: pointer;
  transform: translateY(-50%);
}

.glossary-filter-clear:hover,
.glossary-filter-clear:focus-visible {
  border-color: rgba(53, 204, 230, 0.26);
  background: rgba(53, 204, 230, 0.08);
  outline: none;
}

.glossary-filter-count {
  min-width: max-content;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.glossary-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.glossary-term,
.policy-block {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(12, 18, 24, 0.76);
}

.glossary-term {
  display: flex;
  flex-direction: column;
  min-height: 218px;
}

.glossary-term[hidden] {
  display: none;
}

.glossary-term h3,
.policy-block h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.glossary-term p {
  margin: 0;
  color: var(--muted);
  flex: 1;
  font-size: 14px;
  line-height: 1.65;
}

.term-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.term-links a,
.signal-row {
  border: 1px solid rgba(53, 204, 230, 0.18);
  border-radius: 8px;
  background: rgba(53, 204, 230, 0.07);
  color: #d6eef3;
}

.term-links a {
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 11px;
}

.glossary-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(53, 204, 230, 0.16);
  border-radius: 8px;
  background: rgba(53, 204, 230, 0.06);
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .meta-signal-panel--glossary img,
  .meta-signal-panel--glossary::after {
    animation: none;
  }
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal-row {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
}

.signal-row strong {
  font-family: var(--mono);
  font-size: 12px;
}

.signal-row span {
  color: var(--muted);
  font-size: 13px;
}

.tech-empty {
  margin: 0;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.ref-row {
  grid-template-columns: minmax(240px, 0.45fr) minmax(160px, 0.24fr) minmax(0, 1fr);
}

.ref-path {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.symbol {
  color: var(--secondary);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.snippet {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 14px;
  background: rgba(4, 8, 13, 0.72);
  color: #d6eef3;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.doc-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 25, 0.58);
  color: var(--muted);
  padding: 6px 9px;
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.doc-links a:hover,
.doc-links a:focus-visible {
  color: var(--text);
  border-color: rgba(53, 204, 230, 0.32);
  outline: none;
}

.asset-note {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 12px;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: var(--doc-sidebar-width) minmax(0, 1fr);
  }

  .hero,
  .component-hero,
  .subpage-hero,
  .two-col,
  .readme-grid,
  .info-vars-section,
  .installation-article-layout,
  .supporting-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .subpage-copy,
  .component-media {
    border-right: 0;
  }

  .hero-copy,
  .subpage-copy {
    border-bottom: 1px solid var(--line);
  }

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

  .installation-video-card {
    max-width: 440px;
  }
}

@media (max-width: 820px) {
  body.doc-nav-lock {
    overflow: hidden;
  }

  .app-shell {
    display: block;
  }

  .mobile-doc-bar {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 10, 15, 0.94);
    backdrop-filter: blur(18px);
  }

  .mobile-doc-brand {
    display: inline-flex;
    align-items: center;
    width: 112px;
  }

  .mobile-doc-brand img {
    display: block;
    width: 100%;
    height: auto;
  }

  .mobile-menu-button,
  .side-rail-close {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(12, 18, 24, 0.84);
    color: var(--text);
    cursor: pointer;
  }

  .mobile-menu-button:hover,
  .mobile-menu-button:focus-visible,
  .side-rail-close:hover,
  .side-rail-close:focus-visible {
    border-color: rgba(53, 204, 230, 0.42);
    outline: none;
    box-shadow: 0 0 0 3px rgba(53, 204, 230, 0.1);
  }

  .mobile-menu-button span,
  .mobile-menu-button span::before,
  .mobile-menu-button span::after {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    content: "";
  }

  .mobile-menu-button span::before {
    transform: translateY(-6px);
  }

  .mobile-menu-button span::after {
    transform: translateY(4.5px);
  }

  .side-rail-close span,
  .side-rail-close span::after {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    content: "";
  }

  .side-rail-close span {
    transform: rotate(45deg);
  }

  .side-rail-close span::after {
    transform: rotate(90deg);
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0 0 0 min(88vw, 340px);
    z-index: 90;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.52);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .app-shell.is-mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .side-rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    width: min(88vw, 340px);
    min-width: 0;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    padding: 16px;
    background: #070a0f;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: 24px 0 56px rgba(0, 0, 0, 0.42);
    transform: translateX(calc(-100% - 2px));
    transition: transform 190ms ease;
    will-change: transform;
    scrollbar-gutter: auto;
    scrollbar-width: none;
  }

  .side-rail::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .app-shell.is-mobile-nav-open .side-rail {
    transform: translateX(0);
  }

  .brand-lockup {
    padding: 4px 0 18px;
  }

  .nav-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: auto;
  }

  .nav-link {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    align-content: center;
  }

  .nav-group {
    width: 100%;
    min-width: 0;
  }

  .nav-row {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .nav-toggle {
    width: 38px;
    height: 42px;
    min-height: 42px;
  }

  .nav-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .nav-label--spaced {
    margin-top: 8px;
  }

  .nav-link--child {
    margin-left: 0;
    min-height: 36px;
    font-size: 13px;
  }

  .nav-meta {
    display: none;
  }

  .gallery-track {
    grid-auto-columns: min(76vw, 320px);
  }

  .installation-term-list div {
    grid-template-columns: 1fr;
  }

  .installation-article {
    padding: 18px;
  }

  .installation-article-box {
    padding: 16px;
  }

  .content-shell {
    padding: 16px;
  }

  .top-strip,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .doc-language-switcher {
    align-self: flex-start;
  }

  .status-stack {
    justify-content: flex-start;
  }

  h1 {
    font-size: 30px;
  }

  .hero-copy,
  .subpage-copy,
  .component-copy {
    padding: 20px;
  }

  .component-copy {
    order: -1;
  }

  .component-hero--banner .component-copy {
    order: initial;
  }

  .folder-row,
  .ref-row {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .subpage-hero {
    padding: 0;
  }

  .subpage-video-panel {
    min-height: 0;
  }

  .component-media,
  .media-image-button,
  .component-media img {
    min-height: 340px;
  }

  .component-hero--banner .component-media,
  .component-hero--banner .media-image-button,
  .component-hero--banner .component-media img {
    height: 330px;
    min-height: 330px;
  }

  .component-hero--banner .component-copy {
    left: 20px;
    right: 20px;
    bottom: 22px;
    width: auto;
    max-width: none;
  }

  .readme-section {
    padding-inline: 20px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .quick-read {
    gap: 7px;
    margin-top: 14px;
  }

  .quick-read a {
    padding: 5px 8px;
    font-size: 10.5px;
  }

  .overview-video-panel {
    padding: 18px;
  }

  .flow-grid {
    min-height: 156px;
    gap: 4px;
    padding: 18px 14px 44px;
  }

  .flow-mini {
    display: none;
  }

  .framework-flow figcaption {
    right: 8px;
    bottom: 10px;
    left: 8px;
    gap: 6px;
  }

  .framework-flow figcaption span {
    padding: 5px 6px;
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .mobile-nav-backdrop {
    inset: 0;
    background: transparent;
  }

  .side-rail {
    width: 100vw;
    max-width: none;
    border-right: 0;
    box-shadow: none;
  }

  .module-card {
    grid-template-columns: 1fr;
  }

  .module-card img {
    width: 100%;
    height: 150px;
  }

  h1 {
    font-size: 26px;
  }

  .tech-table {
    min-width: 0;
  }

  .tech-table thead {
    display: none;
  }

  .tech-table tr,
  .tech-table td {
    display: block;
    width: 100%;
  }

  .tech-table td:first-child {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .tech-table td:first-child code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .tech-table td:last-child {
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .flow-pulse {
    display: none;
  }

  .flow-return-dot {
    display: none;
  }

  .flow-node,
  .flow-core {
    transform: none !important;
  }
}
