.grainient-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.grainient-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* agent session card for the page hero, same palette and frame as the other cards with the transcript on the right */
.as {
  --as-lime: #c2ff26;
  --as-amber: #f2a33a;
  --as-text: #e6efe9;
  --as-muted: #9fb5ad;
  --as-line: rgba(255, 255, 255, 0.1);
  --as-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 36px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--as-line);
  border-radius: 20px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(33, 163, 0, 0.09), transparent 60%),
    #0a1411;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
  color: var(--as-text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 14px;
  text-align: left;
}

:where(.as) :where(p, dl, dd) {
  margin: 0;
  padding: 0;
}

.as strong {
  color: var(--as-text);
  font-weight: 600;
}

/* summary column */
.as__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--as-muted);
  font-family: var(--as-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.as__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--as-lime);
  box-shadow: 0 0 8px rgba(194, 255, 38, 0.7);
}

.as__title {
  margin-top: 18px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.as__title em {
  color: var(--as-lime);
  font-style: normal;
}

.as__lead {
  margin-top: 16px;
  color: var(--as-muted);
  font-family: var(--as-mono);
  font-size: 13px;
  line-height: 1.65;
}

.as__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
  border-top: 1px solid var(--as-line);
}

.as__stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--as-line);
}

.as__stats div:nth-child(odd) {
  padding-right: 14px;
  border-right: 1px solid var(--as-line);
}

.as__stats div:nth-child(even) {
  padding-left: 14px;
}

.as__stats dt {
  color: var(--as-muted);
  font-family: var(--as-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.as__stats dd {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
}

.as__stats .is-accent dd {
  color: var(--as-lime);
}

.as__client {
  margin-top: 16px;
  color: var(--as-muted);
  font-family: var(--as-mono);
  font-size: 11px;
}

/* the static build card drops the summary column and gets more air between blocks since it sits beside copy */
.as--single {
  grid-template-columns: minmax(0, 1fr);
  padding: 28px;
}

.as--single .as__log {
  gap: 20px;
}

.as--single .as__reply {
  line-height: 1.75;
}

.as :not(pre) > code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--as-text);
  font-family: var(--as-mono);
  font-size: 0.95em;
}

/* transcript, in the played version every piece is in the layout from the start and fades in when its beat is reached */
.as__log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.as--play :is(.as__prompt, .as__reply, .as__panel, .as__row, .as__tags) {
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.as--play .as__log .is-in {
  opacity: 1;
  transform: none;
}

.as__prompt {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-left: 2px solid var(--as-lime);
  border-radius: 0 10px 10px 0;
  background: rgba(194, 255, 38, 0.05);
  font-family: var(--as-mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.as__chevron {
  color: var(--as-lime);
}

.as__ghost {
  color: transparent;
}

.as__caret {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--as-lime);
}

.as__reply {
  position: relative;
  padding-left: 22px;
  color: var(--as-muted);
  font-family: var(--as-mono);
  font-size: 13px;
  line-height: 1.65;
}

.as__reply::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--as-lime);
}

.as__hl {
  color: var(--as-lime);
}

.as__panel {
  margin-left: 22px;
  overflow: hidden;
  border: 1px solid var(--as-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--as-mono);
  font-size: 12.5px;
}

.as__panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--as-line);
  color: var(--as-muted);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.as__kv div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 14px;
  border-top: 1px solid var(--as-line);
}

.as__kv div:first-child {
  border-top: 0;
}

.as__kv dt {
  color: var(--as-muted);
}

.as__kv dd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as__ok {
  color: var(--as-lime);
}

.as__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.6fr) 88px;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-top: 1px solid var(--as-line);
}

.as__grid > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as__grid--head {
  border-top: 0;
  color: var(--as-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.as__shape {
  color: var(--as-muted);
}

.as__row.is-hub {
  background: rgba(194, 255, 38, 0.05);
}

.as__row.is-hub .as__entity {
  color: var(--as-lime);
}

.as__bronze {
  justify-self: start;
  padding: 1px 7px;
  border: 1px solid var(--as-line);
  border-radius: 4px;
  color: var(--as-muted);
  font-size: 11px;
}

.as__bronze.is-append {
  border-color: rgba(242, 163, 58, 0.6);
  color: var(--as-amber);
}

.as__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: 22px;
  font-family: var(--as-mono);
  font-size: 11px;
}

.as__tags span {
  padding: 3px 8px;
  border: 1px solid var(--as-line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.as__tags .as__tags-label {
  padding: 0 4px 0 0;
  border: 0;
  background: none;
  color: var(--as-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.as__tags .is-warn {
  border-color: rgba(242, 163, 58, 0.6);
  color: var(--as-amber);
}

/* generated code, scrolls sideways inside its panel rather than widening the card */
.as__code {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  color: var(--as-text);
  font-family: var(--as-mono);
  font-size: 12px;
  line-height: 1.65;
}

.as__tok-k {
  color: var(--as-lime);
}

.as__tok-t {
  color: #8fd3b6;
}

.as__tok-f {
  font-weight: 600;
}

.as__tok-s {
  color: #b8d4a8;
}

.as__layers div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--as-line);
}

.as__layers div:first-child {
  border-top: 0;
}

.as__layers span:first-child {
  padding-left: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.25);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.as__layers span:last-child {
  color: var(--as-muted);
  font-size: 11px;
  text-align: right;
}

.as__layers .is-live span:first-child {
  border-left-color: var(--as-lime);
}

.as__layers .is-live span:last-child {
  color: var(--as-lime);
}

@media (prefers-reduced-motion: reduce) {
  .as__prompt,
  .as__reply,
  .as__panel,
  .as__row,
  .as__tags {
    transition: none;
  }
}

/* narrower screens put the summary above the transcript */
@media (max-width: 900px) {
  .as {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* phones drop the pk and shape columns so entity names keep their room */
@media (max-width: 640px) {
  .as {
    padding: 16px;
    border-radius: 16px;
  }

  .as__title {
    font-size: 26px;
  }

  .as__prompt {
    padding: 10px 12px;
    font-size: 12.5px;
  }

  .as__reply {
    font-size: 12px;
  }

  .as__panel,
  .as__tags {
    margin-left: 0;
  }

  .as__kv div {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .as__grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .as__pk,
  .as__shape {
    display: none;
  }
}

.floating-lines-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.floating-lines-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* design tokens for the dark-first rebuild, lime and green come from the site's brand variables */
.td-section {
  --td-bg: #021a16;
  --td-bg-2: #01332a;
  --td-green: #21a300;
  --td-lime: #c2ff26;
  --td-lime-soft: rgba(194, 255, 38, 0.12);
  --td-text: #e6efe9;
  --td-muted: #9fb5ad;
  --td-faint: rgba(230, 239, 233, 0.5);
  --td-line: rgba(255, 255, 255, 0.08);
  --td-line-strong: rgba(255, 255, 255, 0.14);
  --td-radius: 20px;
  --td-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* --td-section-bg goes transparent when a page level grainient sits behind everything */
  background: var(--td-section-bg, var(--td-bg));
  color: var(--td-text);
  font-family: inherit;
  /* every section pads both edges, so two in a row stack into double this, kept modest so the stacked gap doesn't read as dead space */
  padding: clamp(48px, 5.5vw, 80px) 0;
  -webkit-font-smoothing: antialiased;
}

.td-section *,
.td-section *::before,
.td-section *::after {
  box-sizing: border-box;
}

.td-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* absolute layer for animated backgrounds, sits under the container */
.td-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* faint lime grid that fades out from the center through a radial mask */
.td-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(194, 255, 38, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(194, 255, 38, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
}

/* top and bottom fades so neighboring sections blend into each other */
.td-fade-edges::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--td-fade-bg, var(--td-bg)) 0%, transparent 18%, transparent 82%, var(--td-fade-bg, var(--td-bg)) 100%);
}

/* section header */
.td-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 760px;
}

.td-header--center {
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.td-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(194, 255, 38, 0.25);
  border-radius: 999px;
  background: rgba(194, 255, 38, 0.06);
  color: var(--td-lime);
  font-family: var(--td-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.td-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--td-lime);
  box-shadow: 0 0 12px var(--td-lime);
}

.td-h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.td-header--center .td-h2 {
  justify-content: center;
}

.td-lead {
  margin: 0;
  color: var(--td-muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
}

.td-mono-label {
  font-family: var(--td-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--td-lime);
}

/* buttons */
.td-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.td-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.td-btn:hover {
  transform: translateY(-1px);
}

.td-btn--primary {
  background: var(--td-lime);
  color: #021a16;
  box-shadow:
    0 0 0 1px rgba(194, 255, 38, 0.5),
    0 10px 40px -10px rgba(194, 255, 38, 0.7);
}

.td-btn--primary:hover {
  background: #d4ff63;
  box-shadow:
    0 0 0 1px rgba(194, 255, 38, 0.7),
    0 14px 48px -10px rgba(194, 255, 38, 0.9);
}

.td-btn--ghost {
  border: 1px solid var(--td-line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.td-btn--ghost:hover {
  border-color: rgba(194, 255, 38, 0.4);
  background: rgba(194, 255, 38, 0.06);
}

.td-btn svg {
  transition: transform 0.2s ease;
}

.td-btn:hover svg {
  transform: translateX(3px);
}

/* glass card with a cursor-following spotlight, position comes from --mx and --my set by useSpotlight */
.td-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}

.td-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(194, 255, 38, 0.12), transparent 45%);
  transition: opacity 0.3s ease;
}

.td-card:hover {
  border-color: rgba(194, 255, 38, 0.3);
}

.td-card:hover::before {
  opacity: 1;
}

.td-card > * {
  position: relative;
  z-index: 1;
}

.td-icon-tile {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(194, 255, 38, 0.25);
  border-radius: 12px;
  background: rgba(194, 255, 38, 0.07);
  color: var(--td-lime);
}

/* sections out of view hold their looping animations (usePauseOffscreen in shared.tsx), so an offscreen spinner or pulse never keeps the page drawing frames */
.td-offscreen *,
.td-offscreen *::before,
.td-offscreen *::after {
  animation-play-state: paused !important;
}

/* rotating conic beam around a frame, done with a spinning pseudo element since @property is ignored in shadow roots */
.td-beam-frame {
  position: relative;
  padding: 1px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--td-line-strong);
}

.td-beam-frame::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(194, 255, 38, 0.15) 310deg, var(--td-lime) 350deg, transparent 360deg);
  animation: td-spin 7s linear infinite;
}

.td-beam-frame__inner {
  position: relative;
  border-radius: 17px;
  overflow: hidden;
  background: var(--td-bg);
}

.td-beam-frame__inner img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes td-spin {
  to {
    transform: rotate(1turn);
  }
}

/* scroll reveal toggled by useReveal */
/* reveals start just before content reaches the screen, a shorter fade and stagger delays at 40% of what components pass keep the order but stop content from waiting on screen */
.td-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--td-delay, 0ms) * 0.4);
}

.td-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .td-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .td-beam-frame::before {
    animation: none;
  }
}

/* large screens step the layout up instead of leaving a small column in the middle of a wide monitor,
   text measure stays capped by the header and lead max-widths, backgrounds were already full bleed */
@media (min-width: 1680px) {
  .td-container {
    max-width: 1360px;
  }

  .td-header {
    max-width: 840px;
  }

  .td-h2 {
    font-size: 3.9rem;
  }

  .td-lead {
    font-size: 1.35rem;
  }
}

@media (min-width: 1920px) {
  .td-container {
    max-width: 1440px;
  }

  .td-h2 {
    font-size: 4.2rem;
  }
}

/* `code` inside body copy, same mono and lime edge as the code pill */
.td-inline-code {
  padding: 0.1em 0.4em;
  border: 1px solid rgba(194, 255, 38, 0.25);
  border-radius: 6px;
  background: #031410;
  color: #fff;
  font-family: var(--td-mono);
  font-size: 0.85em;
  white-space: nowrap;
}

/* ~~word~~ in a title, crossed out with a hand-drawn red marker stroke */
.td-marker-strike {
  position: relative;
  display: inline-block;
  margin-right: 0.15em;
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
}

.td-marker-strike::after {
  content: '';
  position: absolute;
  left: -6%;
  right: -6%;
  top: 44%;
  height: 0.24em;
  border-radius: 0.3em 0.12em 0.35em 0.15em;
  background: #ff2e2e;
  box-shadow: 0 0 0.12em rgba(255, 46, 46, 0.45);
  transform: rotate(-4deg);
  pointer-events: none;
}

/* system stack card, same frame as the medallion view so the two read as one set */
.sd {
  --sd-lime: #c2ff26;
  --sd-green: #21a300;
  --sd-text: #e6efe9;
  --sd-muted: #9fb5ad;
  --sd-line: rgba(255, 255, 255, 0.1);
  --sd-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sd-pad: 22px;
  --sd-gap: 12px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--sd-line);
  border-radius: 20px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(33, 163, 0, 0.09), transparent 60%),
    #0a1411;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
  color: var(--sd-text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  text-align: left;
}

:where(.sd) :where(ul, p) {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* one band per layer, the middle one carries the lime edge since it is the product */
.sd__layer {
  padding: var(--sd-pad);
  border: 1px solid var(--sd-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.sd__layer--agent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.sd__layer--core {
  border-color: rgba(194, 255, 38, 0.45);
  background:
    linear-gradient(180deg, rgba(33, 163, 0, 0.16), rgba(33, 163, 0, 0.04)),
    #0b1d17;
  box-shadow:
    0 0 0 4px rgba(194, 255, 38, 0.05),
    0 30px 70px -40px rgba(194, 255, 38, 0.35);
}

.sd__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}

.sd__tag {
  color: var(--sd-muted);
  font-family: var(--sd-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sd__layer--core .sd__tag {
  color: var(--sd-lime);
}

.sd__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sd__chips li {
  padding: 6px 12px;
  border: 1px solid var(--sd-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--sd-text);
  font-family: var(--sd-mono);
  font-size: 13px;
}

/* the three context cells inside tabsdata */
.sd__cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sd-gap);
  margin-top: 18px;
}

.sd__cell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: 14px;
  padding: 18px;
  border: 1px solid var(--sd-line);
  border-radius: 12px;
  background: #0d211b;
}

.sd__cell .sd__icon {
  grid-row: span 3;
}

.sd__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(194, 255, 38, 0.1);
  color: var(--sd-lime);
}

.sd__icon--muted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--sd-muted);
}

.sd__ask {
  color: var(--sd-lime);
  font-family: var(--sd-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sd__name {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.sd__note {
  margin-top: 4px;
  color: var(--sd-muted);
  font-size: 14px;
  line-height: 1.45;
}

/* connector rows, same columns and gap as the ends so each arrow sits over its end */
.sd__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sd-gap);
  padding: 0 calc(var(--sd-pad) + 1px);
}

/* arrow always sits in the middle column, so it lines up whether or not a label sits beside it */
.sd__link {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 10px;
  min-width: 0;
}

.sd__arrow {
  grid-column: 2;
  width: 12px;
  height: 52px;
  fill: none;
  stroke: var(--sd-green);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sd__label {
  grid-column: 3;
  justify-self: start;
  color: var(--sd-muted);
  font-family: var(--sd-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* sources and destinations at the bottom */
.sd__ends {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sd-gap);
  margin-top: 16px;
}

.sd__end {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 14px;
  border: 1px solid var(--sd-line);
  border-radius: 12px;
  text-align: center;
}

.sd__end .sd__name {
  margin-top: 10px;
}

@media (max-width: 640px) {
  .sd {
    --sd-pad: 14px;
    --sd-gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .sd__layer {
    border-radius: 12px;
  }

  .sd__cells {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .sd__cell {
    padding: 14px;
  }

  .sd__name {
    font-size: 16px;
  }

  .sd__note {
    font-size: 13px;
  }

  .sd__arrow {
    height: 44px;
  }

  .sd__label {
    font-size: 11px;
  }

  .sd__end {
    padding: 14px 8px;
  }
}

/* this gets exported as style.css and can be used for the default theming */
/* these are the necessary styles for React/Svelte Flow, they get used by base.css and style.css */
.react-flow {
  direction: ltr;

  --xy-edge-stroke-default: #b1b1b7;
  --xy-edge-stroke-width-default: 1;
  --xy-edge-stroke-selected-default: #555;

  --xy-connectionline-stroke-default: #b1b1b7;
  --xy-connectionline-stroke-width-default: 1;

  --xy-attribution-background-color-default: rgba(255, 255, 255, 0.5);

  --xy-minimap-background-color-default: #fff;
  --xy-minimap-mask-background-color-default: rgba(240, 240, 240, 0.6);
  --xy-minimap-mask-stroke-color-default: transparent;
  --xy-minimap-mask-stroke-width-default: 1;
  --xy-minimap-node-background-color-default: #e2e2e2;
  --xy-minimap-node-stroke-color-default: transparent;
  --xy-minimap-node-stroke-width-default: 2;

  --xy-background-color-default: transparent;
  --xy-background-pattern-dots-color-default: #91919a;
  --xy-background-pattern-lines-color-default: #eee;
  --xy-background-pattern-cross-color-default: #e2e2e2;
  background-color: var(--xy-background-color, var(--xy-background-color-default));
  --xy-node-color-default: inherit;
  --xy-node-border-default: 1px solid #1a192b;
  --xy-node-background-color-default: #fff;
  --xy-node-group-background-color-default: rgba(240, 240, 240, 0.25);
  --xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, 0.08);
  --xy-node-boxshadow-selected-default: 0 0 0 0.5px #1a192b;
  --xy-node-border-radius-default: 3px;

  --xy-handle-background-color-default: #1a192b;
  --xy-handle-border-color-default: #fff;

  --xy-selection-background-color-default: rgba(0, 89, 220, 0.08);
  --xy-selection-border-default: 1px dotted rgba(0, 89, 220, 0.8);

  --xy-controls-button-background-color-default: #fefefe;
  --xy-controls-button-background-color-hover-default: #f4f4f4;
  --xy-controls-button-color-default: inherit;
  --xy-controls-button-color-hover-default: inherit;
  --xy-controls-button-border-color-default: #eee;
  --xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);

  --xy-edge-label-background-color-default: #ffffff;
  --xy-edge-label-color-default: inherit;
  --xy-resize-background-color-default: #3367d9;
}
.react-flow.dark {
  --xy-edge-stroke-default: #3e3e3e;
  --xy-edge-stroke-width-default: 1;
  --xy-edge-stroke-selected-default: #727272;

  --xy-connectionline-stroke-default: #b1b1b7;
  --xy-connectionline-stroke-width-default: 1;

  --xy-attribution-background-color-default: rgba(150, 150, 150, 0.25);

  --xy-minimap-background-color-default: #141414;
  --xy-minimap-mask-background-color-default: rgba(60, 60, 60, 0.6);
  --xy-minimap-mask-stroke-color-default: transparent;
  --xy-minimap-mask-stroke-width-default: 1;
  --xy-minimap-node-background-color-default: #2b2b2b;
  --xy-minimap-node-stroke-color-default: transparent;
  --xy-minimap-node-stroke-width-default: 2;

  --xy-background-color-default: #141414;
  --xy-background-pattern-dots-color-default: #555;
  --xy-background-pattern-lines-color-default: #333;
  --xy-background-pattern-cross-color-default: #333;
  --xy-node-color-default: #f8f8f8;
  --xy-node-border-default: 1px solid #3c3c3c;
  --xy-node-background-color-default: #1e1e1e;
  --xy-node-group-background-color-default: rgba(240, 240, 240, 0.25);
  --xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, 0.08);
  --xy-node-boxshadow-selected-default: 0 0 0 0.5px #999;

  --xy-handle-background-color-default: #bebebe;
  --xy-handle-border-color-default: #1e1e1e;

  --xy-selection-background-color-default: rgba(200, 200, 220, 0.08);
  --xy-selection-border-default: 1px dotted rgba(200, 200, 220, 0.8);

  --xy-controls-button-background-color-default: #2b2b2b;
  --xy-controls-button-background-color-hover-default: #3e3e3e;
  --xy-controls-button-color-default: #f8f8f8;
  --xy-controls-button-color-hover-default: #fff;
  --xy-controls-button-border-color-default: #5b5b5b;
  --xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);

  --xy-edge-label-background-color-default: #141414;
  --xy-edge-label-color-default: #f8f8f8;
}
.react-flow__background {
  background-color: var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));
  pointer-events: none;
  z-index: -1;
}
.react-flow__container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.react-flow__pane {
  z-index: 1;
  touch-action: none;
}
.react-flow__pane.draggable {
    cursor: grab;
  }
.react-flow__pane.dragging {
    cursor: grabbing;
  }
.react-flow__pane.selection {
    cursor: pointer;
  }
.react-flow__viewport {
  transform-origin: 0 0;
  z-index: 2;
  pointer-events: none;
}
.react-flow__renderer {
  z-index: 4;
}
.react-flow__selection {
  z-index: 6;
}
.react-flow__nodesselection-rect:focus,
.react-flow__nodesselection-rect:focus-visible {
  outline: none;
}
.react-flow__edge-path {
  stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
  stroke-width: var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));
  fill: none;
}
.react-flow__connection-path {
  stroke: var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));
  stroke-width: var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));
  fill: none;
}
.react-flow .react-flow__edges {
  position: absolute;
}
.react-flow .react-flow__edges svg {
    overflow: visible;
    position: absolute;
    pointer-events: none;
  }
.react-flow__edge {
  pointer-events: visibleStroke;
}
.react-flow__edge.selectable {
    cursor: pointer;
  }
.react-flow__edge.animated path {
    stroke-dasharray: 5;
    animation: dashdraw 0.5s linear infinite;
  }
.react-flow__edge.animated path.react-flow__edge-interaction {
    stroke-dasharray: none;
    animation: none;
  }
.react-flow__edge.inactive {
    pointer-events: none;
  }
.react-flow__edge.selected,
  .react-flow__edge:focus,
  .react-flow__edge:focus-visible {
    outline: none;
  }
.react-flow__edge.selected .react-flow__edge-path,
  .react-flow__edge.selectable:focus .react-flow__edge-path,
  .react-flow__edge.selectable:focus-visible .react-flow__edge-path {
    stroke: var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default));
  }
.react-flow__edge-textwrapper {
    pointer-events: all;
  }
.react-flow__edge .react-flow__edge-text {
    pointer-events: none;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
  }
/* Arrowhead marker styles - use CSS custom properties as default */
.react-flow__arrowhead polyline {
  stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
}
.react-flow__arrowhead polyline.arrowclosed {
  fill: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
}
.react-flow__connection {
  pointer-events: none;
}
.react-flow__connection .animated {
    stroke-dasharray: 5;
    animation: dashdraw 0.5s linear infinite;
  }
svg.react-flow__connectionline {
  z-index: 1001;
  overflow: visible;
  position: absolute;
}
.react-flow__nodes {
  pointer-events: none;
  transform-origin: 0 0;
}
.react-flow__node {
  position: absolute;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  pointer-events: all;
  transform-origin: 0 0;
  box-sizing: border-box;
  cursor: default;
}
.react-flow__node.selectable {
    cursor: pointer;
  }
.react-flow__node.draggable {
    cursor: grab;
    pointer-events: all;
  }
.react-flow__node.draggable.dragging {
      cursor: grabbing;
    }
.react-flow__nodesselection {
  z-index: 3;
  transform-origin: left top;
  pointer-events: none;
}
.react-flow__nodesselection-rect {
    position: absolute;
    pointer-events: all;
    cursor: grab;
  }
.react-flow__handle {
  position: absolute;
  pointer-events: none;
  min-width: 5px;
  min-height: 5px;
  width: 6px;
  height: 6px;
  background-color: var(--xy-handle-background-color, var(--xy-handle-background-color-default));
  border: 1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));
  border-radius: 100%;
}
.react-flow__handle.connectingfrom {
    pointer-events: all;
  }
.react-flow__handle.connectionindicator {
    pointer-events: all;
    cursor: crosshair;
  }
.react-flow__handle-bottom {
    top: auto;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
  }
.react-flow__handle-top {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
  }
.react-flow__handle-left {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
  }
.react-flow__handle-right {
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
  }
.react-flow__edgeupdater {
  cursor: move;
  pointer-events: all;
}
.react-flow__pane.selection .react-flow__panel {
  pointer-events: none;
}
.react-flow__panel {
  position: absolute;
  z-index: 5;
  margin: 15px;
}
.react-flow__panel.top {
    top: 0;
  }
.react-flow__panel.bottom {
    bottom: 0;
  }
.react-flow__panel.top.center, .react-flow__panel.bottom.center {
      left: 50%;
      transform: translateX(-15px) translateX(-50%);
    }
.react-flow__panel.left {
    left: 0;
  }
.react-flow__panel.right {
    right: 0;
  }
.react-flow__panel.left.center, .react-flow__panel.right.center {
      top: 50%;
      transform: translateY(-15px) translateY(-50%);
    }
.react-flow__attribution {
  font-size: 10px;
  background: var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));
  padding: 2px 3px;
  margin: 0;
}
.react-flow__attribution a {
    text-decoration: none;
    color: #999;
  }
@keyframes dashdraw {
  from {
    stroke-dashoffset: 10;
  }
}
.react-flow__edgelabel-renderer {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  left: 0;
  top: 0;
}
.react-flow__viewport-portal {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.react-flow__minimap {
  background: var(
    --xy-minimap-background-color-props,
    var(--xy-minimap-background-color, var(--xy-minimap-background-color-default))
  );
}
.react-flow__minimap-svg {
    display: block;
  }
.react-flow__minimap-mask {
    fill: var(
      --xy-minimap-mask-background-color-props,
      var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default))
    );
    stroke: var(
      --xy-minimap-mask-stroke-color-props,
      var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default))
    );
    stroke-width: var(
      --xy-minimap-mask-stroke-width-props,
      var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default))
    );
  }
.react-flow__minimap-node {
    fill: var(
      --xy-minimap-node-background-color-props,
      var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default))
    );
    stroke: var(
      --xy-minimap-node-stroke-color-props,
      var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default))
    );
    stroke-width: var(
      --xy-minimap-node-stroke-width-props,
      var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default))
    );
  }
.react-flow__background-pattern.dots {
    fill: var(
      --xy-background-pattern-color-props,
      var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default))
    );
  }
.react-flow__background-pattern.lines {
    stroke: var(
      --xy-background-pattern-color-props,
      var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default))
    );
  }
.react-flow__background-pattern.cross {
    stroke: var(
      --xy-background-pattern-color-props,
      var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default))
    );
  }
.react-flow__controls {
  display: flex;
  flex-direction: column;
  box-shadow: var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default));
}
.react-flow__controls.horizontal {
    flex-direction: row;
  }
.react-flow__controls-button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26px;
    width: 26px;
    padding: 4px;
    border: none;
    background: var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));
    border-bottom: 1px solid
      var(
        --xy-controls-button-border-color-props,
        var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default))
      );
    color: var(
      --xy-controls-button-color-props,
      var(--xy-controls-button-color, var(--xy-controls-button-color-default))
    );
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
  }
.react-flow__controls-button svg {
      width: 100%;
      max-width: 12px;
      max-height: 12px;
      fill: currentColor;
    }
.react-flow__edge.updating .react-flow__edge-path {
      stroke: #777;
    }
.react-flow__edge-text {
    font-size: 10px;
  }
.react-flow__node.selectable:focus,
  .react-flow__node.selectable:focus-visible {
    outline: none;
  }
.react-flow__node-input,
.react-flow__node-default,
.react-flow__node-output,
.react-flow__node-group {
  padding: 10px;
  border-radius: var(--xy-node-border-radius, var(--xy-node-border-radius-default));
  width: 150px;
  font-size: 12px;
  color: var(--xy-node-color, var(--xy-node-color-default));
  text-align: center;
  border: var(--xy-node-border, var(--xy-node-border-default));
  background-color: var(--xy-node-background-color, var(--xy-node-background-color-default));
}
.react-flow__node-input.selectable:hover, .react-flow__node-default.selectable:hover, .react-flow__node-output.selectable:hover, .react-flow__node-group.selectable:hover {
      box-shadow: var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default));
    }
.react-flow__node-input.selectable.selected,
    .react-flow__node-input.selectable:focus,
    .react-flow__node-input.selectable:focus-visible,
    .react-flow__node-default.selectable.selected,
    .react-flow__node-default.selectable:focus,
    .react-flow__node-default.selectable:focus-visible,
    .react-flow__node-output.selectable.selected,
    .react-flow__node-output.selectable:focus,
    .react-flow__node-output.selectable:focus-visible,
    .react-flow__node-group.selectable.selected,
    .react-flow__node-group.selectable:focus,
    .react-flow__node-group.selectable:focus-visible {
      box-shadow: var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default));
    }
.react-flow__node-group {
  background-color: var(--xy-node-group-background-color, var(--xy-node-group-background-color-default));
}
.react-flow__nodesselection-rect,
.react-flow__selection {
  background: var(--xy-selection-background-color, var(--xy-selection-background-color-default));
  border: var(--xy-selection-border, var(--xy-selection-border-default));
}
.react-flow__nodesselection-rect:focus,
  .react-flow__nodesselection-rect:focus-visible,
  .react-flow__selection:focus,
  .react-flow__selection:focus-visible {
    outline: none;
  }
.react-flow__controls-button:hover {
      background: var(
        --xy-controls-button-background-color-hover-props,
        var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default))
      );
      color: var(
        --xy-controls-button-color-hover-props,
        var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default))
      );
    }
.react-flow__controls-button:disabled {
      pointer-events: none;
    }
.react-flow__controls-button:disabled svg {
        fill-opacity: 0.4;
      }
.react-flow__controls-button:last-child {
    border-bottom: none;
  }
.react-flow__controls.horizontal .react-flow__controls-button {
    border-bottom: none;
    border-right: 1px solid
      var(
        --xy-controls-button-border-color-props,
        var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default))
      );
  }
.react-flow__controls.horizontal .react-flow__controls-button:last-child {
    border-right: none;
  }
.react-flow__resize-control {
  position: absolute;
}
.react-flow__resize-control.left,
.react-flow__resize-control.right {
  cursor: ew-resize;
}
.react-flow__resize-control.top,
.react-flow__resize-control.bottom {
  cursor: ns-resize;
}
.react-flow__resize-control.top.left,
.react-flow__resize-control.bottom.right {
  cursor: nwse-resize;
}
.react-flow__resize-control.bottom.left,
.react-flow__resize-control.top.right {
  cursor: nesw-resize;
}
/* handle styles */
.react-flow__resize-control.handle {
  width: 5px;
  height: 5px;
  border: 1px solid #fff;
  border-radius: 1px;
  background-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
  translate: -50% -50%;
}
.react-flow__resize-control.handle.left {
  left: 0;
  top: 50%;
}
.react-flow__resize-control.handle.right {
  left: 100%;
  top: 50%;
}
.react-flow__resize-control.handle.top {
  left: 50%;
  top: 0;
}
.react-flow__resize-control.handle.bottom {
  left: 50%;
  top: 100%;
}
.react-flow__resize-control.handle.top.left {
  left: 0;
}
.react-flow__resize-control.handle.bottom.left {
  left: 0;
}
.react-flow__resize-control.handle.top.right {
  left: 100%;
}
.react-flow__resize-control.handle.bottom.right {
  left: 100%;
}
/* line styles */
.react-flow__resize-control.line {
  border-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
  border-width: 0;
  border-style: solid;
}
.react-flow__resize-control.line.left,
.react-flow__resize-control.line.right {
  width: 1px;
  transform: translate(-50%, 0);
  top: 0;
  height: 100%;
}
.react-flow__resize-control.line.left {
  left: 0;
  border-left-width: 1px;
}
.react-flow__resize-control.line.right {
  left: 100%;
  border-right-width: 1px;
}
.react-flow__resize-control.line.top,
.react-flow__resize-control.line.bottom {
  height: 1px;
  transform: translate(0, -50%);
  left: 0;
  width: 100%;
}
.react-flow__resize-control.line.top {
  top: 0;
  border-top-width: 1px;
}
.react-flow__resize-control.line.bottom {
  border-bottom-width: 1px;
  top: 100%;
}
.react-flow__edge-textbg {
  fill: var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default));
}
.react-flow__edge-text {
  fill: var(--xy-edge-label-color, var(--xy-edge-label-color-default));
}

/* product page execution plan in the style of the tabsdata 2.4 ui, icon tiles with stacked labels, thin arrowed edges, a data flow and execution flow toggle and a sectioned details panel, all in the site's dark green with lime for runs */
.wf {
  --wf-lime: #c2ff26;
  --wf-text: #e8f0ec;
  --wf-muted: #9db3ab;
  --wf-faint: #6c857c;
  --wf-line: rgba(255, 255, 255, 0.08);
  --wf-tile: #0a2219;
  --wf-mono: var(--td-mono, 'Geist Mono', ui-monospace, monospace);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(194, 255, 38, 0.035), transparent 70%),
    linear-gradient(180deg, #06190f 0%, #041410 100%);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.65);
  text-align: left;
}

.wf .react-flow {
  --xy-background-color: transparent;
  --xy-controls-button-background-color: var(--wf-tile);
  --xy-controls-button-background-color-hover: #11301f;
  --xy-controls-button-color: var(--wf-muted);
  --xy-controls-button-color-hover: #fff;
  --xy-controls-button-border-color: rgba(255, 255, 255, 0.12);
  --xy-controls-box-shadow: none;
  --xy-attribution-background-color: transparent;
  font-family: inherit;
}

/* zoom, fit and reset as the ui's square buttons, they slide left with the drawer so they stay reachable */
.wf .react-flow__controls {
  gap: 6px;
  margin: 0 16px 16px 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wf .react-flow__controls-button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.wf .react-flow__controls-button svg {
  max-width: 11px;
  max-height: 11px;
  fill: currentColor;
}

.wf:has(.wf-drawer.is-open) :is(.react-flow__controls, .wf-mode) {
  transform: translateX(-512px);
}

.wf .react-flow__attribution {
  opacity: 0.25;
}

.wf .react-flow__attribution a {
  color: var(--wf-muted);
}

.wf .react-flow__handle {
  width: 1px;
  height: 1px;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  opacity: 0;
}

/* nodes can be dragged on their own like prefect and clicked for details, the reset control puts them back */
.wf .react-flow__node {
  cursor: grab;
}

.wf .react-flow__node.dragging {
  cursor: grabbing;
}

/* top bar, a breadcrumb like the ui's header and the tour button */
.wf-bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px 12px 22px;
  border-bottom: 1px solid var(--wf-line);
}

.wf-demo {
  width: 100%;
}

/* check me out centered in the top bar, apart from the breadcrumb on the left and the ui's toggle on the right, the open drawer simply covers it */
.wf-bar {
  position: relative;
}

.wf-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
}

/* solid fill so the bar's line doesn't show through the pill */
.wf-cta .wf-tour-btn {
  background:
    linear-gradient(rgba(194, 255, 38, 0.12), rgba(194, 255, 38, 0.12)),
    #06190f;
}

.wf-cta .wf-tour-btn:hover {
  background:
    linear-gradient(rgba(194, 255, 38, 0.22), rgba(194, 255, 38, 0.22)),
    #06190f;
}

.wf-bar__tools {
  display: flex;
  flex: none;
  gap: 8px;
}

/* show data quality and show functions toggles, the ui's filled icons in the square icon button, each pulses while the tour waits for it */
.wf-icon-btn:is(.wf-dq, .wf-fx) svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

:is(.wf-dq, .wf-fx).is-spot {
  animation: wf-spot 1.4s ease-out infinite;
}

/* data quality tiles carry the same filled glyph in place of the table icon */
.wf-tile svg.wf-tile__dq {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

.wf-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  color: var(--wf-muted);
  font-size: 14px;
}

.wf-crumbs span:not(:last-child)::after {
  content: '›';
  margin: 0 10px;
  color: var(--wf-faint);
}

.wf-crumbs .is-last {
  color: #fff;
}

.wf-canvas {
  position: relative;
  flex: 1;
  min-height: 0;
}

/* nodes, a small rounded icon tile with the group, collection, name and status stacked under it */
.wf-n {
  position: relative;
  width: 30px;
  height: 30px;
  transition: opacity 0.3s ease;
}

.wf-tile {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(232, 240, 236, 0.28);
  border-radius: 8px;
  background: var(--wf-tile);
  color: #cfdcd6;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease,
    background-color 0.3s ease;
}

.wf-tile svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wf-tile__fn {
  font-size: 15px;
  font-style: italic;
  line-height: 1;
}

.wf-tile__fn small {
  margin-left: 1.5px;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.5px;
}

.wf-n__label {
  position: absolute;
  top: calc(100% + 5px);
  left: 1px;
  display: grid;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
}

.wf-n__label small {
  color: var(--wf-faint);
  font-size: 10px;
}

.wf-n__label b {
  color: var(--wf-text);
  font-size: 12.5px;
  font-weight: 500;
}

.wf-n__label .wf-n__status {
  color: var(--wf-lime);
}

.wf .react-flow__node:hover .wf-n:not(.is-dim, .is-off) .wf-tile {
  border-color: rgba(232, 240, 236, 0.6);
}

.wf-n.is-sel .wf-tile {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  color: #fff;
}

.wf-n.is-run .wf-tile {
  border-color: var(--wf-lime);
  background: #12301a;
  color: var(--wf-lime);
}

.wf-n.is-dim,
.wf-n.is-off {
  opacity: 0.28;
}

/* the tile the tour wants clicked pulses */
.wf-n.is-spot .wf-tile {
  border-color: var(--wf-lime);
  color: var(--wf-lime);
  animation: wf-spot 1.4s ease-out infinite;
}

/* the node a tour step waits on, a filled lime tile with a wide pulse and a lime name */
.wf-n.is-click .wf-tile {
  border-color: var(--wf-lime);
  background: var(--wf-lime);
  color: #0b1f17;
  animation: wf-click 1.1s ease-out infinite;
}

.wf-n.is-click .wf-n__label b {
  color: var(--wf-lime);
}

@keyframes wf-click {
  0% {
    box-shadow:
      0 0 0 0 rgba(194, 255, 38, 0.7),
      0 0 14px rgba(194, 255, 38, 0.6);
  }
  100% {
    box-shadow:
      0 0 0 16px rgba(194, 255, 38, 0),
      0 0 14px rgba(194, 255, 38, 0.6);
  }
}


/* edges, thin curves with small arrowheads, lineage brightens, a run turns lime and everything else fades */
.wf .react-flow__edge.wf-edge .react-flow__edge-path {
  stroke: rgba(232, 240, 236, 0.32);
  stroke-width: 1.2;
  transition:
    stroke 0.3s ease,
    stroke-width 0.3s ease;
}

.wf .react-flow__edge.wf-edge.is-lit .react-flow__edge-path {
  stroke: var(--wf-text);
  stroke-width: 1.5;
}

.wf .react-flow__edge.wf-edge.is-run .react-flow__edge-path {
  stroke: var(--wf-lime);
  stroke-width: 1.6;
}

.wf .react-flow__edge.wf-edge.is-dim .react-flow__edge-path {
  stroke: rgba(232, 240, 236, 0.1);
}

.wf .react-flow__edge.wf-edge.is-off .react-flow__edge-path {
  stroke: rgba(232, 240, 236, 0.08);
}

/* data flow and execution flow, the ui's segmented toggle at the canvas top right */
.wf-mode {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 5;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: var(--wf-tile);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wf-mode button {
  padding: 7px 14px;
  border: 0;
  background: none;
  color: var(--wf-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.wf-mode button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.wf-mode button.is-on {
  color: var(--wf-lime);
}

.wf-mode.is-spot {
  animation: wf-spot 1.4s ease-out infinite;
}

/* run timeline at the canvas bottom left, one bar per execution, the picked run is lime */
.wf-runs {
  position: absolute;
  bottom: 16px;
  left: 18px;
  z-index: 5;
  display: grid;
  gap: 8px;
}

.wf-runs__text {
  display: grid;
  gap: 1px;
}

.wf-runs__text b {
  color: var(--wf-text);
  font-size: 13px;
  font-weight: 500;
}

.wf-runs__text small {
  color: var(--wf-faint);
  font-size: 11.5px;
}

.wf-runs__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.wf-runs__bars button {
  display: grid;
  place-items: end center;
  width: 16px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.wf-runs__bars i {
  width: 2px;
  height: 18px;
  border-radius: 1px;
  background: rgba(232, 240, 236, 0.35);
  transition:
    height 0.2s ease,
    background-color 0.2s ease;
}

.wf-runs__bars button:hover i {
  background: var(--wf-text);
}

.wf-runs__bars button.is-on i {
  height: 28px;
  background: var(--wf-lime);
}

/* run bars the tour waits on turn lime and pulse */
.wf-runs__bars button.is-spot i {
  background: var(--wf-lime);
  animation: wf-bar-pulse 1.2s ease-in-out infinite;
}

@keyframes wf-bar-pulse {
  50% {
    height: 28px;
    box-shadow: 0 0 8px rgba(194, 255, 38, 0.8);
  }
}

/* drawer, a floating panel with the ui's details layout, titled sections of labels over values */
.wf-drawer {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #0a1f18;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.75);
  color: var(--wf-text);
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.25s ease;
}

.wf-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.wf-drawer__head {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--wf-line);
}

.wf-drawer__kind {
  color: var(--wf-faint);
  font-size: 12px;
}

.wf-drawer__name {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.wf-drawer__path {
  color: var(--wf-muted);
  font-size: 12.5px;
}

.wf-drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--wf-muted);
  cursor: pointer;
}

.wf-drawer__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.wf-drawer__close svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.wf-drawer__scroll {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.wf-sec {
  padding: 18px 22px 8px;
  border-bottom: 1px solid var(--wf-line);
}

.wf-sec h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.wf-field {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
}

.wf-field > span {
  color: var(--wf-faint);
  font-size: 11.5px;
}

.wf-field > div {
  font-size: 14px;
}

.wf-none {
  color: var(--wf-faint);
}

.wf-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wf-sec > .wf-links {
  margin-bottom: 14px;
}

.wf-links li {
  display: grid;
}

.wf-links button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--wf-text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.wf-links button:hover {
  color: var(--wf-lime);
}

.wf-links em {
  color: var(--wf-faint);
  font-style: normal;
}

.wf-links small,
.wf-list small,
.wf-schema small {
  color: var(--wf-faint);
  font-size: 11.5px;
}

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

.wf-list li {
  display: grid;
  gap: 1px;
  font-size: 13.5px;
}

.wf-list li.is-head span {
  color: var(--wf-lime);
}

.wf-list b {
  color: #86efac;
  font-weight: 400;
}

.wf-schema {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.wf-schema li {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
}

.wf-schema small {
  font-family: var(--wf-mono);
}

.wf-id {
  color: var(--wf-text);
  font-family: var(--wf-mono);
  font-size: 12px;
  word-break: break-all;
}

.wf-btn {
  margin-bottom: 16px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: none;
  color: var(--wf-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.wf-btn:hover {
  border-color: var(--wf-lime);
  color: var(--wf-lime);
}

.wf-btn.is-on {
  border-color: rgba(194, 255, 38, 0.4);
  color: var(--wf-lime);
}

.wf-sample-btn:not(.is-on) {
  animation: none;
}

.wf-bar-meter {
  height: 6px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.wf-bar-meter i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--wf-lime);
}

.wf-grid {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--wf-mono);
  font-size: 12px;
}

.wf-grid th {
  padding: 0 12px 8px 0;
  color: var(--wf-faint);
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
}

.wf-grid td {
  padding: 8px 12px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.wf-grid em {
  color: var(--wf-faint);
  font-style: normal;
}

.wf-sample {
  overflow-x: auto;
}

.wf-sql {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--wf-mono);
  font-size: 12px;
}

.wf-note {
  margin: 12px 0 14px;
  color: var(--wf-faint);
  font-size: 12px;
}

.wf-note--top {
  margin: -6px 0 12px;
}

/* code view with quiet line numbers */
.wf-code {
  margin: 0 -8px 16px;
  padding: 14px 0;
  overflow-x: auto;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--wf-mono);
  font-size: 11px;
  line-height: 1.65;
  counter-reset: line;
}

.wf-code__line {
  display: block;
  padding-right: 14px;
  white-space: pre;
}

/* the lines a tour step points at, a second pulse nested inside the spotted section, inset so the code block's overflow never clips it */
.wf-code__mark {
  display: block;
  border-radius: 4px;
  animation: wf-mark 1.4s ease-in-out infinite;
}

@keyframes wf-mark {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(194, 255, 38, 0.5);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(194, 255, 38, 0.75);
  }
}

.wf-code__line::before {
  content: counter(line);
  counter-increment: line;
  display: inline-block;
  width: 28px;
  margin-right: 12px;
  color: #33493f;
  text-align: right;
}

.wf-code__c {
  color: #6c857c;
  font-style: italic;
}

.wf-code__s {
  color: #c9f27a;
}

.wf-code__d {
  color: #ffc06b;
}

.wf-code__k {
  color: #9aacff;
}

.wf-code__n {
  color: #f0b3ff;
}

/* check me out pill in the bar, the same lime pill as the home hero with a ring that pulses out every couple of seconds until the tour starts */
.wf-tour-btn {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(194, 255, 38, 0.45);
  border-radius: 999px;
  background: rgba(194, 255, 38, 0.12);
  box-shadow: 0 0 22px rgba(194, 255, 38, 0.18);
  color: var(--wf-lime);
  font-family: var(--wf-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.wf-tour-btn:hover {
  border-color: var(--wf-lime);
  background: rgba(194, 255, 38, 0.22);
  box-shadow: 0 0 30px rgba(194, 255, 38, 0.32);
}

.wf-tour-btn svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

.wf-tour-btn::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1.5px solid var(--wf-lime);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(194, 255, 38, 0.45);
  opacity: 0;
  pointer-events: none;
  animation: wf-ring 2.2s ease-out infinite;
}

.wf-tour-btn.is-on {
  opacity: 0.45;
  cursor: default;
}

.wf-tour-btn.is-on::after {
  animation: none;
}

@keyframes wf-ring {
  0% {
    opacity: 1;
    transform: scale(1, 1);
  }
  55%,
  100% {
    opacity: 0;
    transform: scale(1.14, 1.75);
  }
}

@keyframes wf-spot {
  0% {
    box-shadow: 0 0 0 0 rgba(194, 255, 38, 0.55);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(194, 255, 38, 0);
  }
}

/* tour callout, a small card with an arrow toward what it explains */
.wf-tour {
  position: absolute;
  z-index: 20;
  display: grid;
  gap: 6px;
  width: 300px;
  padding: 14px 16px 12px;
  border: 1px solid rgba(194, 255, 38, 0.4);
  border-radius: 14px;
  background: #0d2a20;
  box-shadow:
    0 20px 50px -12px rgba(0, 0, 0, 0.75),
    0 0 30px rgba(194, 255, 38, 0.08);
  color: var(--wf-text);
  animation: wf-tour-in 0.25s ease-out;
}

/* each step's callout fades in where it lands instead of sliding over from the last step */
@keyframes wf-tour-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.wf-tour::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: inherit;
  background: inherit;
  transform: rotate(45deg);
}

.wf-tour.is-below::before {
  top: -6px;
  left: calc(var(--arrow) - 5px);
  border-right: 0;
  border-bottom: 0;
}

.wf-tour.is-above::before {
  bottom: -6px;
  left: calc(var(--arrow) - 5px);
  border-top: 0;
  border-left: 0;
}

.wf-tour.is-left::before {
  top: calc(var(--arrow) - 5px);
  right: -6px;
  border-bottom: 0;
  border-left: 0;
}

.wf-tour.is-right::before {
  top: calc(var(--arrow) - 5px);
  left: -6px;
  border-top: 0;
  border-right: 0;
}

.wf-tour.is-center::before {
  display: none;
}

.wf-tour__count {
  color: var(--wf-faint);
  font-family: var(--wf-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.wf-tour__title {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.wf-tour__body {
  margin: 0;
  color: var(--wf-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* a second paragraph sits a little further down than the callout's row gap */
.wf-tour__body + .wf-tour__body {
  margin-top: 4px;
}

.wf-tour__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.wf-tour__skip {
  padding: 0;
  border: 0;
  background: none;
  color: var(--wf-faint);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.wf-tour__skip:hover {
  color: var(--wf-text);
}

.wf-tour__next {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--wf-lime);
  color: #0b1f05;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.wf-tour__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wf-lime);
  font-family: var(--wf-mono);
  font-size: 12px;
}

.wf-tour__hint svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* the open sample button pulses while the tour waits for it */
.wf:has(.wf-tour) .wf-sample-btn:not(.is-on) {
  border-color: var(--wf-lime);
  color: var(--wf-lime);
  animation: wf-spot 1.4s ease-out infinite;
}

/* data flow, the ui's group view, bands as wide as the data they carry land on bars beside each tile */
.wf-flowbar {
  position: absolute;
  top: 50%;
  width: 4px;
  border-radius: 2px;
  background: rgba(232, 240, 236, 0.85);
  transform: translateY(-50%);
  transition: height 0.3s ease;
}

.wf-flowbar.is-in {
  left: -9px;
}

.wf-flowbar.is-out {
  right: -9px;
}

.wf-n--flow .wf-tile {
  width: 30px;
  height: 30px;
}

.wf .react-flow__edge.wf-band-edge {
  pointer-events: all;
}

.wf-band {
  fill: rgba(194, 255, 38, 0.2);
  stroke: none;
  cursor: default;
  transition:
    fill 0.25s ease,
    d 0.3s ease;
}

.wf-band:hover,
.wf-band.is-lit {
  fill: rgba(194, 255, 38, 0.38);
}

.wf-band.is-dim {
  fill: rgba(194, 255, 38, 0.06);
}

/* band size switch in the data flow view's corner, the same segmented style as the mode toggle */
.wf-bands {
  display: inline-flex;
  justify-self: start;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: var(--wf-tile);
}

.wf-bands button {
  padding: 5px 11px;
  border: 0;
  background: none;
  color: var(--wf-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.wf-bands button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.wf-bands button.is-on {
  color: var(--wf-lime);
}

/* the run bars pulse while the tour waits for a run to be picked */
.wf-runs.is-spot .wf-runs__bars {
  border-radius: 6px;
  animation: wf-spot 1.4s ease-out infinite;
}

/* medallion tier colors, the same silver and gold as the home hero, sources and destinations keep the plain label color */
.wf-tier--bronze {
  color: rgb(217, 146, 90) !important;
}

.wf-tier--silver {
  color: rgb(196, 208, 204) !important;
}

.wf-tier--gold {
  color: rgb(242, 201, 76) !important;
}

/* while the views switch the morph drives every position and fade itself, so the canvas only stops taking clicks and drags until it settles */
.wf-canvas.is-morph .react-flow {
  pointer-events: none;
}

/* layers button and menu at the data flow view's top left, the ui keeps band size and window here */
.wf-layers {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 6;
}

.wf-icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: var(--wf-tile);
  color: var(--wf-muted);
  cursor: pointer;
}

.wf-icon-btn:hover,
.wf-icon-btn.is-on {
  border-color: rgba(194, 255, 38, 0.5);
  color: var(--wf-lime);
}

.wf-icon-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.wf-layers__menu {
  position: absolute;
  top: 40px;
  left: 0;
  display: grid;
  gap: 8px;
  min-width: 210px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #0a1f18;
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.75);
}

.wf-layers__menu > span:not(.wf-bands, .wf-layers__value) {
  color: var(--wf-faint);
  font-size: 11.5px;
}

.wf-layers__value {
  color: var(--wf-text);
  font-size: 13px;
}

/* banner at the top of a panel opened while a run is picked, which version of the table or code that run saw */
.wf-asof {
  margin: 14px 22px 0;
  padding: 10px 12px;
  border: 1px solid rgba(194, 255, 38, 0.3);
  border-radius: 10px;
  background: rgba(194, 255, 38, 0.06);
  color: var(--wf-text);
  font-size: 12.5px;
  line-height: 1.5;
}

.wf-asof b {
  color: var(--wf-lime);
  font-family: var(--wf-mono);
  font-weight: 400;
}

.wf-asof span {
  color: var(--wf-muted);
}

.wf-list li.is-picked {
  margin: -6px -10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(194, 255, 38, 0.08);
}

.wf-list li.is-picked span {
  color: var(--wf-lime);
}

/* the panel section a tour step describes */
.wf-sec.is-spot {
  background: rgba(194, 255, 38, 0.05);
  box-shadow: inset 3px 0 0 var(--wf-lime);
}

/* back and next sit together on the right of the callout */
.wf-tour__right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wf-tour__back {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: none;
  color: var(--wf-text);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.wf-tour__back:hover {
  border-color: var(--wf-lime);
  color: var(--wf-lime);
}

/* sample modal, a centered dialog over the graph and panel like the ui's open sample, the tour callout stays above it */
.wf-modal {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: start center;
  padding-top: 64px;
  background: rgba(2, 12, 9, 0.62);
  backdrop-filter: blur(2px);
}

.wf-modal__dialog {
  display: grid;
  gap: 14px;
  width: min(760px, calc(100% - 48px));
  max-height: 62%;
  padding: 20px 22px 16px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #0a1f18;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  color: var(--wf-text);
}

.wf-modal__head {
  position: relative;
  display: flex;
  justify-content: space-between;
}

.wf-modal__head span {
  display: grid;
  gap: 2px;
}

.wf-modal__head small {
  color: var(--wf-faint);
  font-size: 12px;
}

.wf-modal__head strong {
  color: #fff;
  font-size: 17px;
  font-weight: 500;
}

.wf-modal__close {
  position: static;
}

.wf-modal .wf-sql,
.wf-modal .wf-note {
  margin: 0;
}

/* the panel close button pulses while the tour waits for it */
.wf-drawer__close.is-spot {
  color: var(--wf-lime);
  animation: wf-spot 1.4s ease-out infinite;
}

/* data ball the tour runs along a function's edges */
.wf-ball {
  fill: var(--wf-lime);
  filter: drop-shadow(0 0 4px rgba(194, 255, 38, 0.8));
  pointer-events: none;
}

/* highlighted words in a tour callout, lime text only */
.wf-tour__glow {
  background: none;
  color: var(--wf-lime);
}

/* trigger button at the top of a function panel, runs the function and its downstream like the ui's trigger */
.wf-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 18px 22px 4px;
  padding: 8px 15px;
  border: 1px solid rgba(194, 255, 38, 0.5);
  border-radius: 8px;
  background: rgba(194, 255, 38, 0.08);
  color: var(--wf-lime);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.wf-trigger:hover {
  background: rgba(194, 255, 38, 0.18);
}

.wf-trigger svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

/* the trigger button pulses while the tour waits for it */
.wf-trigger.is-spot {
  animation: wf-spot 1.4s ease-out infinite;
}

.td-page-hero {
  padding-top: clamp(140px, 14vw, 190px);
  padding-bottom: clamp(72px, 8vw, 112px);
}

.td-page-hero__bg {
  -webkit-mask-image: var(--td-own-grain-mask, none);
  mask-image: var(--td-own-grain-mask, none);
  opacity: 0.8;
}

.td-page-hero__lines {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 55%, transparent 92%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 55%, transparent 92%);
}

.td-page-hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, transparent 0%, rgba(2, 26, 22, 0.5) 75%, rgba(2, 26, 22, 0.85) 100%),
    linear-gradient(to bottom, transparent 60%, var(--td-fade-bg, var(--td-bg)) 100%);
  -webkit-mask-image: var(--td-vignette-mask, none);
  mask-image: var(--td-vignette-mask, none);
}

.td-page-hero__layout {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
}

.td-page-hero.has-side-image .td-page-hero__layout {
  grid-template-columns: 1.05fr 1fr;
}

.td-page-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.td-page-hero.is-center .td-page-hero__copy {
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.td-page-hero__title {
  margin: 24px 0 0;
  color: #fff;
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.75rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.td-page-hero__accent {
  color: var(--td-lime);
  text-shadow: 0 0 40px rgba(194, 255, 38, 0.3);
}

.td-page-hero__tagline {
  margin: 22px 0 0;
  color: var(--td-lime);
  font-family: var(--td-mono);
  font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
  letter-spacing: 0.04em;
}

.td-page-hero__body {
  max-width: 720px;
  margin-top: 22px;
}

.td-page-hero__actions {
  margin-top: 36px;
}

.td-page-hero.is-center .td-page-hero__actions {
  justify-content: center;
}

.td-page-hero__note {
  margin: 16px 0 0;
  color: var(--td-faint);
  font-size: 14px;
}

.td-page-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.td-page-hero.is-center .td-page-hero__badges {
  justify-content: center;
}

.td-page-hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--td-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--td-text);
  font-size: 14px;
}

.td-page-hero__badges svg {
  color: var(--td-lime);
}

.td-page-hero__media {
  position: relative;
  width: 100%;
}

.td-page-hero.is-center .td-page-hero__media {
  max-width: 1040px;
  margin: 0 auto;
}

/* the interactive workflow graph takes the full container width so its cards stay readable */
.td-page-hero.is-center .td-page-hero__media.is-wide {
  max-width: none;
}

.td-page-hero__glow {
  position: absolute;
  inset: 10% 8% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(194, 255, 38, 0.24), rgba(33, 163, 0, 0.1) 55%, transparent);
  filter: blur(40px);
}

/* quick link cards under the hero, used for install, docs and contact shortcuts */
.td-page-hero__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
}

.td-page-hero__link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 24px 26px;
  text-decoration: none;
}

.td-page-hero__link-text {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
}

.td-page-hero__link-text svg {
  color: var(--td-lime);
}

@media (max-width: 960px) {
  .td-page-hero.has-side-image .td-page-hero__layout {
    grid-template-columns: 1fr;
  }
}

/* the header grid keeps its full strength down to the bottom edge, the default radial fade would die out right where the next section's grid starts and leave a gap.
   the side fade stays, and a bottom fade only in the last 8% so the seam into the next section is invisible */
.td-page-hero > .td-grid {
  -webkit-mask-image:
    radial-gradient(ellipse 70% 100% at 50% 40%, #000 30%, transparent 100%),
    linear-gradient(to bottom, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 70% 100% at 50% 40%, #000 30%, transparent 100%),
    linear-gradient(to bottom, #000 92%, transparent 100%);
  mask-composite: intersect;
}

