:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--background);
  font-size: 16px;
  line-height: 1.55;
  --green: #254e3b;
  --muted: #66746b;
  --line: #dce2d8;
  color-scheme: light;
  --text: #22372c;
  --background: #f7f8f3;
  --surface: #ffffff;
  --on-primary: #ffffff;
  --soft: #eaf0e4;
  --notice: #edf1dc;
  --featured: #f0f5e9;
  --input-border: #bac7b7;
  --accent-border: #b5ce9c;
  --eyebrow: #5e785c;
  --logo-accent: #69816e;
  --focus: #bd7619;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--on-primary);
  padding: 10px 17px;
  border-radius: 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.secondary,
.button.secondary {
  color: var(--green);
  background: transparent;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
header {
  padding: 22px 5vw;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--surface);
}
.logo {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1.4px;
  text-decoration: none;
}
.logo span {
  color: var(--logo-accent);
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}
.account {
  margin-left: auto;
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 45px 28px 100px;
}
h1 {
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 12px 0 22px;
}
h2 {
  font-size: 25px;
  line-height: 1.25;
}
h3 {
  font-size: 21px;
  margin: 10px 0;
}
p {
  max-width: 72ch;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 750;
  color: var(--eyebrow);
}
.muted,
small {
  color: var(--muted);
}
.hero {
  padding: 25px 0 40px;
  max-width: 800px;
}
.hero p {
  font-size: 19px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 20px;
}
.card,
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 25px;
  margin: 18px 0;
}
.card {
  margin: 0;
  border-top: 5px solid var(--accent-border);
}
.card p {
  white-space: pre-wrap;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.actions button,
.actions a {
  font-size: 14px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
}
.badge {
  background: var(--soft);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}
.empty {
  padding: 45px;
  border: 1px dashed var(--input-border);
  border-radius: 16px;
  color: var(--muted);
}
form {
  max-width: 680px;
}
label {
  display: block;
  font-weight: 600;
  margin: 16px 0;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--input-border);
  border-radius: 9px;
  color: inherit;
  background: var(--surface);
  margin-top: 6px;
}
input[type="checkbox"] {
  width: auto;
  display: inline;
  margin-right: 10px;
}
textarea {
  min-height: 110px;
}
.viewer main {
  max-width: 780px;
}
.viewer header {
  max-width: 780px;
  margin: auto;
  background: transparent;
}
.viewer nav {
  justify-content: space-around;
  width: 100%;
  padding: 15px 0 4px;
}
.viewer h1 {
  font-size: 36px;
}
.viewer .grid {
  grid-template-columns: 1fr;
}
#status:not(:empty) {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: #243d2e;
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  z-index: 5;
}
.notice {
  padding: 18px;
  background: var(--notice);
  border-radius: 12px;
}
.graph {
  background: #161e20;
  border-radius: 20px;
  color: #e9efe8;
  padding: 16px;
  margin: 20px 0;
}
.graph > svg {
  width: 100%;
  height: auto;
  min-height: 380px;
}
.graph line {
  stroke: #63706b;
  stroke-width: 1;
}
.graph line.followed {
  stroke: #8bc8a5;
  stroke-width: 3;
}
.graph text {
  -webkit-user-select: none;
  user-select: none;
  font-size: 11px;
  fill: #e0e7de;
}
.graph circle {
  fill: #315348;
  stroke: #bdd6c4;
}
.graph .depth-1 {
  fill: #81a9d0;
}
.graph .depth-2 {
  fill: #d4b46e;
}
.graph .depth-3 {
  fill: #b1a0ce;
}
.graph .depth-4 {
  fill: #cd9388;
}
.graph g[role="button"] {
  cursor: pointer;
}
.graph g[role="button"]:focus {
  outline: none;
}
.graph g[role="button"]:focus circle {
  stroke: #fff;
  stroke-width: 4;
}
.graph .moving {
  animation: drift 6s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}
.graph .paused .moving {
  animation: none;
}
@keyframes drift {
  to {
    transform: translate(3px, 4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .graph .moving {
    animation: none;
  }
}
@media (max-width: 650px) {
  header {
    padding: 18px 20px;
    gap: 15px;
  }
  header nav {
    gap: 14px;
  }
  .account {
    margin-left: 0;
  }
  main {
    padding: 28px 20px 90px;
  }
  h1 {
    letter-spacing: -1px;
  }
  .card,
  .panel {
    padding: 20px;
  }
}
.graph .depth-2 {
  fill: transparent;
  stroke: #d4b46e;
  stroke-width: 4;
}
.graph g[role="button"]:focus path,
.graph g[role="button"]:focus rect {
  stroke: #fff;
  stroke-width: 4;
}
.viewer nav.breadcrumb {
  justify-content: flex-start;
  width: auto;
  gap: 8px;
  padding: 0;
}
.viewer nav.breadcrumb span {
  overflow-wrap: anywhere;
}
:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
}
button,
.button,
summary,
nav a {
  min-height: 44px;
}
summary {
  cursor: pointer;
  padding: 10px 4px;
}
nav a {
  display: inline-flex;
  align-items: center;
}
small,
.breadcrumb,
.actions button,
.actions a {
  font-size: 14px;
}
.follow-scope p {
  margin-bottom: 4px;
}
.featured {
  border: 2px solid var(--green);
  background: var(--featured);
}
.viewer h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
}
.pending-action,
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.graph-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
#graph-inspector {
  position: sticky;
  top: 16px;
  overflow-wrap: anywhere;
}
#graph-inspector h2 {
  font-size: 24px;
}
.graph .hit-target {
  fill: transparent;
  stroke: none;
}
.graph [aria-pressed="true"] > :not(text):not(.hit-target) {
  stroke: white;
  stroke-width: 4;
}
.graph .secondary {
  color: #edf4e8;
  border-color: #edf4e8;
}
.crumb-disclosure {
  display: none;
}
.feedback:not(:empty) {
  border-left: 3px solid var(--green);
  padding: 8px 12px;
}
input[readonly] {
  font-size: 14px;
}
@media (max-width: 850px) {
  .graph-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  #graph-inspector {
    position: static;
  }
}
@media (max-width: 650px) {
  .crumb-middle,
  .breadcrumb > span[aria-hidden] {
    display: none;
  }
  .crumb-disclosure {
    display: block;
  }
  .breadcrumb {
    gap: 12px;
  }
  .graph > svg {
    min-height: 240px;
  }
}
/* Native controls keep readable contrast inside the dark graph. */
.graph select {
  color: var(--text);
}
.graph text {
  -webkit-user-select: none;
  user-select: none;
  font-size: 16px;
}
.graph > svg {
  max-height: 600px;
}
.retention-notice {
  margin: 0 0 24px;
}
.retention-notice p {
  margin: 8px 0;
}
.retention-notice a {
  font-weight: 650;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --text: #e6eee7;
  --background: #121b17;
  --surface: #1b2922;
  --green: #a5d5b4;
  --on-primary: #13291c;
  --muted: #adbbb0;
  --line: #3b5143;
  --soft: #2c4232;
  --notice: #303e27;
  --featured: #243d2b;
  --input-border: #647e6c;
  --accent-border: #6c9b76;
  --eyebrow: #b5d3a8;
  --logo-accent: #a2c7a7;
  --focus: #f3bc65;
}
input[type="checkbox"] {
  accent-color: var(--green);
}
.theme-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}
.theme-control select {
  width: auto;
  margin: 0;
  padding: 10px;
}
.viewer .theme-control {
  margin-left: auto;
}
.viewer header > nav {
  order: 2;
}

/* Shared motion: small distances, quick feedback, no layout-changing transitions. */
:root {
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
  --motion-fast: 160ms;
  --motion-medium: 280ms;
}
body,
header,
.panel,
.card,
.notice,
.badge,
.featured,
input,
select,
textarea {
  transition:
    background-color var(--motion-medium) ease,
    color var(--motion-medium) ease,
    border-color var(--motion-fast) ease;
}
button,
.button {
  transition:
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    opacity var(--motion-fast) ease;
}
button:active:not(:disabled),
.button:active {
  transform: translateY(1px) scale(0.98);
}
button:disabled {
  cursor: progress;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
}
.card {
  transition:
    transform var(--motion-medium) var(--ease-out),
    box-shadow var(--motion-medium) ease,
    border-color var(--motion-medium) ease,
    background-color var(--motion-medium) ease;
}
header nav a {
  position: relative;
}
header nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-medium) var(--ease-out);
}
header nav a[aria-current="page"] {
  text-decoration: none;
}
header nav a[aria-current="page"]::after,
header nav a:focus-visible::after {
  transform: scaleX(1);
}
details summary {
  transition: color var(--motion-fast) ease;
}
details[open] > summary {
  color: var(--green);
}
.graph details[open] > summary {
  color: inherit;
}
.graph g[role="button"] > circle:not(.hit-target),
.graph g[role="button"] > path,
.graph g[role="button"] > rect {
  transition:
    stroke-width var(--motion-fast) ease,
    fill var(--motion-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
  button:hover:not(:disabled),
  .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px #00000018;
  }
  button:active:not(:disabled),
  .button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: none;
  }
  .card:hover {
    transform: translateY(-3px);
    border-color: var(--green);
    box-shadow: 0 10px 28px #00000012;
  }
  header nav a:hover::after {
    transform: scaleX(1);
  }
  summary:hover {
    color: var(--green);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  button:hover,
  button:active,
  .button:hover,
  .button:active,
  .card:hover {
    transform: none !important;
  }
}
:root {
  transition: background-color var(--motion-medium) ease;
}
.loading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.loading::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: loading-turn 900ms linear infinite;
}
@keyframes loading-turn {
  to {
    transform: rotate(360deg);
  }
}

/* Public introduction and local, interactive product example. */
::selection {
  background: var(--green);
  color: var(--on-primary);
}
input,
textarea {
  caret-color: var(--green);
}
html {
  scrollbar-color: var(--input-border) var(--background);
  scroll-padding-top: 24px;
}
main:focus {
  outline: none;
}
main[aria-busy="true"] {
  cursor: progress;
}
.route-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  z-index: 10;
}
.site-header {
  max-width: 1600px;
  margin: auto;
}
.site-header .logo {
  letter-spacing: -0.035em;
}
.landing h1 {
  font-size: clamp(42px, 5.8vw, 76px);
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}
.landing h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.landing-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding: 35px 0 76px;
}
.landing-intro > div > p {
  max-width: 44ch;
  font-size: 20px;
  color: var(--muted);
}
.landing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 12px;
}
.landing-actions .button,
.landing-close .button {
  padding: 14px 26px;
  font-weight: 650;
}
.landing .landing-small {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.landing-note {
  border-top: 1px solid var(--accent-border);
  border-bottom: 1px solid var(--accent-border);
  padding: 32px 0;
}
.landing-intro .landing-note > p {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.landing-note > span {
  color: var(--muted);
}
.demo {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 30px;
  scroll-margin-top: 24px;
}
.demo-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}
.demo-heading h2 {
  margin: 0 0 8px;
  font-size: 30px;
}
.demo-heading p {
  margin: 0;
  color: var(--muted);
}
.demo-label {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
  padding-top: 8px;
}
.demo-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 12px;
  align-items: center;
}
.demo-switch {
  display: inline-flex;
  background: var(--soft);
  padding: 4px;
  border-radius: 28px;
}
.demo-switch button {
  background: transparent;
  color: var(--text);
  border-color: transparent;
  min-width: 90px;
}
.demo-switch [aria-pressed="true"] {
  background: var(--green);
  color: var(--on-primary);
}
.demo-reset {
  background: transparent;
  color: var(--muted);
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px 0;
}
.demo-count {
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0;
  font-variant-numeric: tabular-nums;
}
.demo-event {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.demo-event h3 {
  font-size: 22px;
  margin: 3px 0 6px;
  letter-spacing: -0.02em;
}
.demo-event p {
  margin: 5px 0;
  font-size: 14px;
}
.demo-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.demo-date strong {
  color: var(--green);
  font-size: 30px;
  font-weight: 550;
}
.demo-byline,
.demo-event .demo-byline {
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
}
.demo-where {
  color: var(--muted);
}
.demo-where > span {
  font-size: 12px;
  white-space: nowrap;
}
.demo-invitation {
  color: var(--muted);
  font-size: 12px;
  padding-top: 7px;
}
.demo-footnote {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 0;
  font-size: 12px;
  color: var(--muted);
}
.demo-empty {
  padding: 42px 0 56px;
}
.landing-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 100px 0 80px;
}
.landing-story h2 {
  margin: 0;
}
.landing-story article {
  padding: 0 0 28px;
}
.landing-story article + article {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.landing-story h3 {
  margin: 0 0 10px;
}
.landing-story p {
  color: var(--muted);
  margin: 0 0 12px;
}
.landing-close {
  background: var(--soft);
  text-align: center;
  padding: 55px 24px;
  border-radius: 16px;
}
.landing-close h2 {
  margin: 0 0 12px;
}
.landing-close p {
  margin: 12px auto 24px;
}
.landing-close .landing-small {
  margin: 24px auto 12px;
}
.landing-close > a:last-child {
  font-size: 14px;
}
.landing-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 36px;
  color: var(--muted);
  font-size: 13px;
}
button,
.button {
  transition:
    background-color 160ms ease-out,
    color 160ms ease-out,
    border-color 160ms ease-out;
}
button:not(:disabled):hover,
.button:hover {
  border-color: var(--text);
}
.demo-reset:hover,
a:not(.button):hover {
  color: var(--green);
}
@media (max-width: 850px) {
  .landing-intro {
    gap: 28px;
  }
  .demo-heading {
    display: block;
  }
  .demo-label {
    display: block;
    padding-top: 12px;
  }
  .landing-story {
    gap: 36px;
  }
}
@media (max-width: 650px) {
  .site-header {
    gap: 14px;
  }
  .site-header .logo {
    font-size: 24px;
  }
  .site-header .account {
    margin-left: auto;
  }
  .site-header .account .button {
    display: none;
  }
  .site-header .theme-control {
    font-size: 12px;
  }
  .site-header .theme-control select {
    padding: 8px;
  }
  .site-header > nav {
    order: 3;
    width: 100%;
  }
  .landing-intro {
    grid-template-columns: 1fr;
    padding: 12px 0 36px;
    gap: 24px;
  }
  .landing-intro > div > p {
    font-size: 18px;
  }
  .landing-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
  }
  .landing-intro .landing-note > p {
    font-size: 30px;
    margin: 0;
  }
  .landing-note > span {
    font-size: 13px;
    max-width: 18ch;
  }
  .demo {
    padding: 20px 16px;
  }
  .demo-heading h2 {
    font-size: 26px;
  }
  .demo-heading p {
    font-size: 14px;
  }
  .demo-event {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0;
  }
  .demo-event h3 {
    font-size: 20px;
  }
  .demo-invitation {
    display: none;
  }
  .landing-story {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 60px 0 30px;
  }
  .landing-footer {
    flex-direction: column;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button,
  .button {
    transition: none;
  }
}

/* Shared single-choice filters for the live and example views. */
.filters,
.demo-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.filter-group {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.filter-group legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 14px;
  overflow-wrap: anywhere;
  background: transparent;
  color: var(--text);
  border-color: var(--input-border);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}
.filter-chip svg {
  display: none;
  flex: 0 0 16px;
}
.filter-chip[aria-pressed="true"] svg {
  display: block;
}
.filter-chip[aria-pressed="true"] {
  background: var(--green);
  color: var(--on-primary);
  border-color: var(--green);
}
.filter-chip[aria-pressed="true"][value=""] {
  background: var(--soft);
  color: var(--text);
  border-color: var(--input-border);
}
.filter-chip[aria-pressed="true"]:not([value=""]) {
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--green);
}
.filter-chip:hover {
  border-color: var(--green);
}
.filter-chip[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .filter-chip {
    transition: none;
  }
}

/* The graph is a continuous space; the surrounding product keeps its theme. */
.graph-layout {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.38fr);
  align-items: start;
  gap: 24px;
}
.graph {
  --space-ink: #e4edf5;
  --space-muted: #afc1d0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--space-ink);
  background:
    radial-gradient(ellipse at 25% 75%, #26484655, transparent 65%),
    radial-gradient(ellipse at 85% 15%, #323d6650, transparent 60%), #0b141e;
  border: 1px solid #314452;
  border-radius: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.graph::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(circle at 19px 37px, #b3c9dd 0 0.7px, transparent 1px),
    radial-gradient(circle at 83px 107px, #a9c6bf 0 0.5px, transparent 1px),
    radial-gradient(circle at 163px 53px, #afbed6 0 0.6px, transparent 1px);
  background-size:
    197px 173px,
    239px 251px,
    307px 211px;
}
.graph-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.graph-caption {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.graph-camera {
  display: flex;
  align-items: center;
  gap: 4px;
}
.graph-camera button {
  min-height: 44px;
  border-color: #536b7c;
  color: var(--space-ink);
  background: #15232f;
  font-size: 13px;
  padding: 8px 12px;
  box-shadow: none;
}
.graph-camera button:hover {
  background: #263e4c;
  transform: none;
}
.graph-help {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: var(--space-muted);
}
.graph > svg {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: clamp(380px, 48vw, 580px);
  min-height: 380px;
  max-height: none;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}
.graph.is-dragging svg,
.graph.is-dragging g[role="button"] {
  cursor: grabbing;
}
.graph > svg:focus-visible {
  outline: 2px solid #a5d5b4;
  outline-offset: 3px;
  border-radius: 8px;
}
.graph .graph-orbits circle {
  fill: none;
  stroke: #8aa6bb;
  stroke-opacity: 0.1;
  stroke-width: 1;
  stroke-dasharray: 2 9;
  pointer-events: none;
}
.graph line {
  stroke: #88adbc;
  stroke-opacity: 0.45;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.graph [data-graph-path] > :not(text):not(title):not(.hit-target) {
  stroke: #bbd9e2;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.graph [data-graph-path] > .depth-0 {
  fill: #264e49;
  stroke: #acd9c7;
  stroke-width: 2;
}
.graph
  [data-graph-path][aria-pressed="true"]
  > :not(text):not(title):not(.hit-target),
.graph [data-graph-path]:focus > :not(text):not(title):not(.hit-target) {
  stroke: #f1f9ff;
  stroke-width: 3;
  filter: drop-shadow(0 3px 7px #91c4d050);
}
.graph [data-graph-path]:hover > :not(text):not(title):not(.hit-target) {
  stroke: #fff;
  stroke-width: 3;
}
.graph text {
  -webkit-user-select: none;
  user-select: none;
  fill: #e4edf5;
  font-size: 14px;
  paint-order: stroke;
  stroke: #0b141e;
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
}
.graph .depth-2 {
  fill: #0b141e;
  stroke: #d4b46e !important;
  stroke-width: 3 !important;
}
#graph-inspector {
  margin-top: 20px;
  min-height: 220px;
}
#graph-inspector[aria-busy="true"] {
  cursor: progress;
}
@media (max-width: 850px) {
  .graph-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 650px) {
  .graph {
    padding: 14px;
    gap: 12px 8px;
  }
  .graph-caption {
    font-size: 17px;
  }
  .graph-toolbar {
    gap: 8px;
  }
  .graph-camera {
    flex-wrap: wrap;
  }
  .graph > svg {
    height: 430px;
  }
  .graph-help {
    max-width: 27ch;
  }
}
.graph-world {
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.graph.is-dragging .graph-world {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .graph-world {
    transition: none;
  }
}

.demo-filters[hidden] {
  display: none;
}

/* One workspace: the current path, canvas, and selected-node details. */
.graph-layout {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: clip;
}
.graph-breadcrumb {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.graph-breadcrumb button {
  padding: 6px 10px;
  min-height: 36px;
}
.graph-breadcrumb [aria-current] {
  background: var(--soft);
  font-weight: 700;
}
.graph-layout > .graph {
  border-radius: 0;
  border: 0;
  min-width: 0;
}
/* A small node toolbar stays on the canvas; forms get protected focus. */
.graph-layout {
  grid-template-columns: minmax(0, 1fr);
}
.graph-layout > .graph {
  position: relative;
  container-type: inline-size;
}
.graph #graph-inspector {
  position: absolute;
  z-index: 3;
  top: 100px;
  left: 16px;
  width: max-content;
  max-width: calc(100% - 24px);
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #edf4f5;
  overflow: visible;
}
.graph #graph-inspector[hidden],
#graph-node-menu[hidden] {
  display: none;
}
.graph-selection-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.graph-node-tools {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid #6f8996;
  border-radius: 16px;
  background: #152733;
}
.graph .graph-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #edf4f5;
  background: transparent;
}
.graph .graph-icon:hover,
.graph .graph-icon[aria-expanded="true"] {
  background: #304b59;
}
.graph .graph-icon[data-action="graph-add"] {
  color: #b3f4cc;
}
.graph .graph-icon[data-action="graph-delete"]:hover {
  color: #ffd1c7;
  background: #583732;
}
.graph-icon:focus-visible {
  outline-color: #b3f4cc;
  outline-offset: 1px;
}
#graph-node-menu {
  position: absolute;
  width: min(248px, calc(100cqw - 24px));
  max-height: min(360px, 55cqh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border-radius: 12px;
  background: #152733;
  color: #edf4f5;
  box-shadow: 0 12px 32px #0005;
}
#graph-node-menu h3 {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.graph-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0 8px 10px;
  border-bottom: 1px solid #405664;
}
.graph-menu-heading span,
.graph-menu-note {
  color: #bdcfd8;
  font-size: 12px;
}
.graph-menu-note {
  display: block;
  padding: 8px 10px;
}
.graph-node-actions {
  display: grid;
  gap: 2px;
  padding-top: 4px;
}
.graph #graph-node-menu .graph-node-actions > :is(button, a) {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #edf4f5;
  text-align: left;
  text-decoration: none;
}
.graph #graph-node-menu .graph-node-actions > :is(button, a):hover {
  background: #304b59;
}
@media (pointer: coarse) {
  .graph #graph-node-menu .graph-node-actions > :is(button, a) {
    min-height: 44px;
  }
}
.graph #graph-dialog .secondary {
  color: var(--text);
  border-color: var(--line);
}
.graph-node-actions small {
  line-height: 1.5;
}
.graph-loading {
  display: block;
  padding: 10px 16px;
  background: #152733;
  border-radius: 12px;
  font-size: 14px;
}
#graph-inspector > .feedback:empty {
  display: none;
}
#graph-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 24px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 64px #0006;
  overscroll-behavior: contain;
  overflow-y: auto;
}
#graph-dialog::backdrop {
  background: #07121db3;
}
#graph-dialog[open] {
  animation: graph-dialog-enter 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes graph-dialog-enter {
  from {
    opacity: 0.5;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.graph-dialog-close {
  float: right;
  margin: 0 0 12px 16px;
  min-height: 44px;
}
#graph-editor h2,
#graph-editor h3 {
  margin-top: 0;
}
#graph-editor form {
  clear: both;
  min-width: 0;
}
#graph-editor > .panel {
  border: 0;
  padding: 0;
}
.graph-event-list {
  display: grid;
  gap: 8px;
}
.graph-event-list button {
  text-align: left;
}
.graph-draft-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.graph-draft-actions button {
  flex-shrink: 0;
  white-space: nowrap;
}
.graph-expand-cue {
  fill: none;
  stroke: #dceaf4;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.graph [aria-pressed="true"] > .graph-expand-cue {
  animation: none;
  stroke-width: 1.5;
}
@media (max-width: 649px) {
  #graph-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    margin: auto 0 0;
    padding: 20px 20px max(20px, env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #graph-dialog[open] {
    animation: none;
  }
}
.graph-delete-preview {
  max-height: 240px;
  overflow-y: auto;
  padding-left: 24px;
}

/* Followed connections remain legible at any camera scale. */
.graph line.followed,
.graph-legend line.followed {
  stroke: #a5f0bc;
  stroke-opacity: 1;
  stroke-width: 3.5;
}
.graph [data-graph-path] > .follow-marker,
.graph-legend .follow-marker {
  fill: none;
  stroke: #a5f0bc;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.graph-legend {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: #e4edf5;
  background: #0b141e;
  font-size: 12px;
  padding: 12px 20px;
  border-top: 1px solid #314452;
}
.graph-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.graph-legend svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.graph-legend .depth-0 {
  fill: #264e49;
  stroke: #acd9c7;
}
.graph-legend .depth-4 {
  fill: #cd9388;
}

.graph-legend .depth-1 {
  fill: #81a9d0;
}
.graph-legend .depth-2 {
  fill: #0b141e;
  stroke: #d4b46e;
  stroke-width: 2;
}
.graph-legend .depth-3 {
  fill: #b1a0ce;
}
.graph-legend circle:not([class]) {
  fill: #a5f0bc;
}

.graph
  [data-graph-path][aria-pressed="true"]
  > :is(circle, path, rect):not(.hit-target):not(.follow-marker) {
  animation: selected-node-pulse 2.4s ease-in-out infinite;
}
@keyframes selected-node-pulse {
  0%,
  100% {
    stroke-opacity: 0.7;
    stroke-width: 2.5;
  }
  50% {
    stroke-opacity: 1;
    stroke-width: 4;
  }
}
@media (prefers-reduced-motion: reduce) {
  .graph
    [data-graph-path][aria-pressed="true"]
    > :is(circle, path, rect):not(.hit-target):not(.follow-marker) {
    animation: none;
  }
}

.graph-layout {
  -webkit-user-select: none;
  user-select: none;
}
.graph-layout input,
.graph-layout textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* Compact navigation keeps the current task in view on small screens. */
.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  background: var(--green);
  color: var(--on-primary);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#site-navigation {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.site-header .account {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.site-header .account > a:first-child {
  overflow-wrap: anywhere;
}
.site-menu-toggle {
  display: none;
}
.retention-notice {
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 24px;
}
.retention-notice > p {
  margin: 6px 0;
}
.retention-notice summary {
  padding-block: 8px;
}
.invitation-title,
.workspace-hero h1 {
  font-size: 36px;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.workspace-hero {
  padding: 0 0 24px;
}
.workspace-hero p {
  font-size: 16px;
}
.view-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 16px 0;
  border-radius: 28px;
  background: var(--soft);
}
.view-switch a {
  justify-content: center;
  min-width: 90px;
  padding: 10px 20px;
  border-radius: 24px;
  text-decoration: none;
}
.view-switch a[aria-current="page"] {
  background: var(--green);
  color: var(--on-primary);
  text-decoration: none;
}
/* Node management stays beside the filter group it applies to. */
.filter-group legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
}
.filter-group-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}
.filter-group-tools .graph-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--green);
  background: transparent;
}
.filter-group-tools button:hover {
  box-shadow: none;
  transform: none;
  background: var(--soft);
}
.filter-group-tools button:disabled {
  opacity: 0.45;
  cursor: default;
}
.filter-group-tools .secondary {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 13px;
}
.branch-links {
  gap: 8px 20px;
  margin-bottom: 16px;
}
.branch-links a {
  text-decoration: underline;
}
.list-filters,
.demo-filter-panel {
  border-block: 1px solid var(--line);
}
.list-filters > summary,
.demo-filter-panel > summary {
  padding: 12px 0;
  font-weight: 600;
}
[data-filter-summary],
[data-demo-filter-summary] {
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  margin-left: 8px;
}
.list-filters .filters,
.demo-filter-panel .demo-filters {
  padding: 8px 0 20px;
}
.list-result-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-height: 58px;
}
.result-count,
.list-result-bar .demo-count {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0;
}
.text-button {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
  box-shadow: none;
}
button[hidden],
.demo-filter-panel[hidden] {
  display: none;
}
.plan-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  margin: 0;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.plan-row:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}
.plan-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.plan-date strong {
  color: var(--green);
  font-size: 30px;
  line-height: 1.25;
}
.plan-body {
  min-width: 0;
}
.plan-row h2 {
  font-size: 23px;
  letter-spacing: -0.025em;
  margin: 4px 0 8px;
  overflow-wrap: anywhere;
}
.plan-row h2 a {
  text-decoration: none;
}
.plan-row h2 a:hover {
  text-decoration: underline;
}
.plan-row p {
  margin: 4px 0;
}
.plan-byline {
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
}
.plan-row .plan-description {
  margin: 12px 0;
}
.plan-time,
.plan-meta {
  font-size: 14px;
}
.plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
}
.plan-rsvp {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  min-width: 90px;
}
.plan-rsvp strong {
  font-size: 14px;
  color: var(--green);
}
.plan-options {
  margin-top: 8px;
  font-size: 14px;
}
.plan-options summary {
  color: var(--muted);
  width: fit-content;
}
.plan-options .follow-scope {
  margin-top: 8px;
}
.plan-options .actions {
  margin-block: 12px 0;
}
.plan-browser .empty {
  padding: 32px 24px;
}
.plan-browser .empty h2 {
  margin-top: 0;
  color: var(--text);
}
.demo-event .demo-invitation {
  font-size: 13px;
  align-self: center;
}
.graph-layout > .graph {
  margin: 0;
}
.graph-breadcrumb {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.graph-breadcrumb button {
  flex: 0 0 auto;
  max-width: min(260px, 75vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 44px;
}
@media (min-width: 900px) {
  .filters,
  .demo-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .filter-group:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 960px) {
  .site-header {
    padding: 12px 20px;
    gap: 0 20px;
  }
  .site-header .logo {
    font-size: 24px;
  }
  .site-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }
  #site-navigation {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 16px;
  }
  [data-navigation-toggle][aria-expanded="false"] + #site-navigation {
    display: none;
  }
  #site-navigation nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
  }
  #site-navigation nav a {
    padding: 8px 0;
  }
  .site-header .account {
    margin-left: 0;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }
  .site-header .account .button {
    display: inline-block;
    flex-shrink: 0;
  }
  .site-header .theme-control {
    font-size: 14px;
    padding-bottom: 4px;
  }
}
@media (max-width: 650px) {
  .invitation-title,
  .workspace-hero h1 {
    font-size: 30px;
  }
  .retention-notice {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .plan-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px 16px;
    padding: 24px 0;
  }
  .plan-row h2 {
    font-size: 21px;
  }
  .plan-rsvp {
    grid-column: 2;
    flex-direction: row;
  }
  .demo-event .demo-invitation {
    display: inline-block;
    grid-column: 2;
    justify-self: start;
  }
  .graph-caption {
    display: none;
  }
  .graph-camera {
    width: 100%;
    justify-content: space-between;
  }
  .graph-camera button {
    padding-inline: 9px;
    font-size: 12px;
  }
  .graph-help {
    max-width: none;
  }
  .demo-results:has(.graph-layout) {
    margin-inline: -12px;
  }
}
