:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-2: #030712;
  --panel: rgba(9, 17, 31, 0.86);
  --panel-2: rgba(15, 23, 42, 0.78);
  --line: rgba(125, 211, 252, 0.26);
  --line-hot: rgba(217, 70, 239, 0.42);
  --text: #e5edf8;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --fuchsia: #d946ef;
  --amber: #f59e0b;
  --green: #34d399;
  --rose: #fb7185;
  --radius: 8px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(rgba(34, 211, 238, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.022) 1px, transparent 1px),
    linear-gradient(135deg, #020617 0%, #030712 48%, #09111f 100%);
  background-size: 28px 28px, 28px 28px, auto;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.026) 1px, transparent 1px, transparent 4px);
  opacity: 0.44;
}

body,
button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  max-width: 10ch;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  letter-spacing: 0;
  line-height: 1.05;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.micro,
.signal-row,
.node-tab span,
.frame-toolbar,
.metric-list,
.repo-index,
.tweet-label,
.tweet-meta,
.problem-status,
.protocol-strip,
.answer-row > span {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.micro {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  background: #020617;
}

.brand strong,
.brand span {
  display: block;
  min-width: 0;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topnav a,
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 17, 31, 0.76);
  color: var(--text);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.topnav a {
  font-size: 0.88rem;
}

.topnav a:hover,
.action-link:hover,
.node-tab:hover {
  border-color: var(--cyan);
  background: rgba(8, 47, 73, 0.78);
  transform: translateY(-1px);
}

main {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
}

main > section {
  scroll-margin-top: 92px;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(24px, 5vw, 56px) 0;
}

.hero-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.lede {
  max-width: 60ch;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd5e1;
  font-size: 0.72rem;
}

.signal-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

.signal-row i,
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.ecosystem-visual {
  position: relative;
  align-self: stretch;
  min-height: 420px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 46%, rgba(34, 211, 238, 0.12), transparent 56%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(217, 70, 239, 0.12),
    inset 0 0 80px rgba(34, 211, 238, 0.06);
}

.hero-loop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  filter: saturate(1.18) contrast(1.08) brightness(0.72);
  transform: scale(1.012);
}

.ecosystem-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.036) 1px, transparent 1px, transparent 5px);
  background-size: 26px 26px, 26px 26px, auto;
  mix-blend-mode: screen;
  opacity: 0.62;
}

.ecosystem-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18) 0%, transparent 32%, rgba(2, 6, 23, 0.92) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.68), rgba(34, 211, 238, 0.06) 26%, transparent 54%, rgba(217, 70, 239, 0.16)),
    radial-gradient(circle at 50% 48%, transparent 28%, rgba(2, 6, 23, 0.58) 100%);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.16), inset 0 0 90px rgba(2, 6, 23, 0.72);
}

.ecosystem-visual figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #e5edf8;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.problem-section {
  padding: 24px 0 36px;
}

.problem-head {
  align-items: end;
}

.problem-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.66rem;
}

.problem-status span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

.problem-status i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 14px var(--amber);
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: stretch;
}

.tweet-artifact {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 100%;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(34, 211, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.034) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.15), transparent 32%),
    linear-gradient(145deg, rgba(9, 17, 31, 0.94), rgba(2, 6, 23, 0.9));
  background-size: 22px 22px, 22px 22px, auto, auto;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(217, 70, 239, 0.1),
    inset 0 0 80px rgba(34, 211, 238, 0.045);
}

.tweet-artifact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.032) 1px, transparent 1px, transparent 5px);
  opacity: 0.38;
  mix-blend-mode: screen;
}

.tweet-artifact > * {
  position: relative;
  z-index: 1;
}

.tweet-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
}

.tweet-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 0 14px rgba(251, 113, 133, 0.58);
}

.tweet-dot.amber {
  background: var(--amber);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.58);
}

.tweet-dot.green {
  background: var(--green);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.58);
}

.tweet-label {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.62rem;
  text-align: right;
}

.tweet-author {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.tweet-avatar {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 30%, #fef3c7 0 10%, transparent 11%),
    radial-gradient(circle at 62% 28%, #67e8f9 0 11%, transparent 12%),
    radial-gradient(circle at 38% 68%, #34d399 0 12%, transparent 13%),
    radial-gradient(circle at 68% 66%, #e879f9 0 12%, transparent 13%),
    radial-gradient(circle at 50% 50%, rgba(226, 232, 240, 0.92), rgba(15, 23, 42, 0.9));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.2);
}

.tweet-author strong,
.tweet-author span {
  display: block;
  min-width: 0;
}

.tweet-author strong {
  line-height: 1.15;
}

.tweet-author span {
  color: #94a3b8;
  font-size: 0.9rem;
}

.verified-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--cyan);
  color: #020617;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.46);
}

.verified-mark svg {
  width: 16px;
  height: 16px;
}

.tweet-artifact blockquote {
  margin: 0;
}

.tweet-artifact blockquote p {
  color: #f8fafc;
  font-size: clamp(1rem, 1.24vw, 1.12rem);
  line-height: 1.52;
}

.tweet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(125, 211, 252, 0.16);
  color: #cbd5e1;
  font-size: 0.66rem;
}

.tweet-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.46);
}

.hapa-answer {
  display: grid;
  align-content: start;
  gap: 14px;
}

.answer-callout {
  padding: 18px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), transparent 46%, rgba(217, 70, 239, 0.08)),
    rgba(9, 17, 31, 0.78);
}

.answer-callout h3 {
  margin-top: 8px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.answer-callout p:not(.micro) {
  max-width: 72ch;
  margin-top: 10px;
  color: #dbeafe;
  font-size: 1rem;
  line-height: 1.6;
}

.answer-map {
  display: grid;
  gap: 8px;
}

.answer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: var(--radius);
  background: rgba(9, 17, 31, 0.68);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.answer-row:hover {
  border-color: rgba(34, 211, 238, 0.54);
  background: rgba(15, 23, 42, 0.82);
  transform: translateY(-1px);
}

.answer-row > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 0.66rem;
  background: rgba(2, 6, 23, 0.72);
  box-shadow: inset 0 0 20px rgba(34, 211, 238, 0.08);
}

.answer-row h3 {
  font-size: 1rem;
}

.answer-row p {
  margin-top: 5px;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.48;
}

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

.protocol-strip span {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.08), transparent),
    rgba(2, 6, 23, 0.52);
  color: #fde68a;
  font-size: 0.62rem;
  line-height: 1.35;
}

.memory-video-section {
  padding: 0 0 78px;
}

.memory-video-console {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.52fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(34, 211, 238, 0.044) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.034) 1px, transparent 1px),
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), transparent 44%, rgba(217, 70, 239, 0.1)),
    linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(9, 17, 31, 0.86));
  background-size: 24px 24px, 24px 24px, auto, auto;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(217, 70, 239, 0.09),
    inset 0 0 90px rgba(34, 211, 238, 0.05);
}

.memory-video-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 5px),
    linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.11), transparent);
  mix-blend-mode: screen;
  opacity: 0.42;
}

.memory-video-console > * {
  position: relative;
  z-index: 1;
}

.memory-video-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
}

.memory-video-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.9rem);
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.memory-video-copy .repo-summary {
  max-width: 58ch;
}

.memory-video-readouts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.memory-video-readouts span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.54);
  color: #dbeafe;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.memory-video-readouts i,
.memory-video-hud i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 15px var(--green);
}

.memory-video-shell {
  min-width: 0;
}

.memory-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 10px;
  background: #020617;
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(217, 70, 239, 0.1);
}

.memory-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.memory-video-frame::before,
.memory-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.memory-video-frame::before {
  z-index: 1;
  background:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(2, 6, 23, 0.1), transparent 42%, rgba(2, 6, 23, 0.74));
  background-size: 22px 22px, 22px 22px, auto;
  mix-blend-mode: screen;
  opacity: 0.62;
}

.memory-video-frame::after {
  z-index: 2;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: inherit;
  box-shadow: inset 0 0 70px rgba(2, 6, 23, 0.68);
}

.memory-play-button {
  position: absolute;
  z-index: 4;
  inset: 50% auto auto 50%;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: min(260px, calc(100% - 32px));
  min-height: 74px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(34, 211, 238, 0.64);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.24), rgba(217, 70, 239, 0.16)),
    rgba(2, 6, 23, 0.78);
  color: #f8fafc;
  box-shadow:
    0 0 42px rgba(34, 211, 238, 0.26),
    inset 0 0 34px rgba(34, 211, 238, 0.1);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: border-color 180ms ease, background 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.memory-play-button:hover,
.memory-play-button:focus-visible {
  border-color: #fde68a;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.32), rgba(245, 158, 11, 0.2)),
    rgba(2, 6, 23, 0.86);
  transform: translate(-50%, -50%) scale(1.02);
}

.memory-play-button .micro {
  display: block;
  color: #a5f3fc;
  font-size: 0.58rem;
}

.memory-play-button strong {
  display: block;
  margin-top: 2px;
  font-size: 1.12rem;
  line-height: 1;
}

.memory-play-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  box-shadow: inset 0 0 26px rgba(245, 158, 11, 0.12), 0 0 24px rgba(34, 211, 238, 0.18);
}

.memory-play-icon svg {
  width: 30px;
  height: 30px;
  fill: #fde68a;
}

.memory-video-shell.is-playing .memory-play-button {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
}

.memory-video-hud {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #e5edf8;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memory-video-hud span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embed-stage,
.kanban-section,
.repo-section {
  padding: 28px 0 68px;
}

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

.stage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.action-link {
  color: #ecfeff;
  font-weight: 700;
}

.action-link.secondary {
  color: #fde68a;
}

.node-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.node-tab {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 17, 31, 0.78);
  color: var(--text);
  padding: 0 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.node-tab span {
  color: var(--cyan);
  font-size: 0.68rem;
}

.node-tab.active {
  border-color: rgba(34, 211, 238, 0.68);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.18), rgba(217, 70, 239, 0.1)),
    rgba(9, 17, 31, 0.9);
  box-shadow: inset 3px 0 0 var(--cyan), 0 0 28px rgba(34, 211, 238, 0.12);
}

.stage-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.node-detail,
.frame-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.node-detail {
  padding: 16px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.node-detail p {
  color: #cbd5e1;
  line-height: 1.55;
}

.metric-list {
  display: grid;
  gap: 8px;
  font-size: 0.68rem;
}

.metric-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 32px;
  padding: 7px 8px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.55);
}

.metric-list dt {
  color: var(--muted);
}

.metric-list dd {
  color: #e5edf8;
  overflow-wrap: anywhere;
}

.detail-note {
  border-left: 3px solid var(--amber);
  padding: 10px 12px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.08);
  line-height: 1.45;
  border-radius: 0 8px 8px 0;
}

.frame-panel {
  min-height: 930px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
}

.frame-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: #cbd5e1;
  font-size: 0.68rem;
  background: rgba(2, 6, 23, 0.74);
}

.frame-toolbar div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.frame-toolbar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

iframe {
  width: 100%;
  height: 100%;
  min-height: 886px;
  border: 0;
  background: #020617;
}

.kanban-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.kanban-section {
  border-top: 1px solid rgba(125, 211, 252, 0.18);
  padding-top: clamp(54px, 8vw, 96px);
}

.kanban-console {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.kanban-selector,
.kanban-view,
.kanban-frame-shell,
.kanban-column,
.kanban-task-card {
  border: 1px solid rgba(125, 211, 252, 0.24);
  background: rgba(9, 17, 31, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.kanban-selector,
.kanban-view {
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(34, 211, 238, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.03) 1px, transparent 1px),
    rgba(2, 6, 23, 0.82);
  background-size: 22px 22px, 22px 22px, auto;
}

.kanban-selector {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
  max-height: calc(100svh - 112px);
  overflow: auto;
  padding: 14px;
}

.kanban-selector-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
}

.kanban-selector-head h3,
.kanban-view-head h3 {
  margin: 0;
}

.kanban-field {
  display: grid;
  gap: 6px;
}

.kanban-field span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kanban-field select,
.kanban-field input {
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.68);
  color: #e5edf8;
  padding: 0 10px;
}

.kanban-board-list {
  display: grid;
  gap: 8px;
}

.kanban-board-button {
  width: 100%;
  display: grid;
  gap: 4px;
  min-height: 72px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.54);
  color: #cbd5e1;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.kanban-board-button span,
.kanban-board-button small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kanban-board-button strong {
  overflow: hidden;
  color: #f8fafc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanban-board-button.active {
  border-color: rgba(34, 211, 238, 0.74);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.18), rgba(217, 70, 239, 0.09)),
    rgba(8, 47, 73, 0.4);
  box-shadow: inset 3px 0 0 var(--cyan), 0 0 24px rgba(34, 211, 238, 0.12);
}

.kanban-view {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.kanban-view-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 12px;
  align-items: start;
}

.kanban-view-head p:not(.micro) {
  margin-top: 8px;
  color: #cbd5e1;
  line-height: 1.5;
}

.kanban-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.kanban-chip-row span {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.55);
}

.kanban-chip-row b {
  color: #f8fafc;
  font: 900 1rem/1 var(--mono);
}

.kanban-chip-row small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kanban-frame-shell {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.9);
}

.kanban-frame-status {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kanban-frame-status span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanban-frame-status i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.kanban-iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  height: min(820px, 76svh);
  border: 0;
}

.kanban-frame-shell.static-only .kanban-iframe {
  min-height: 0;
  height: 0;
}

.kanban-frame-shell.static-only .kanban-frame-status {
  border-bottom: 0;
}

.kanban-static-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kanban-static-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  align-items: start;
  overflow: visible;
  padding-bottom: 4px;
}

.kanban-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  border-radius: 10px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.055), transparent 34%),
    rgba(2, 6, 23, 0.56);
}

.kanban-column-head {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  border-bottom: 1px solid rgba(125, 211, 252, 0.14);
  padding-bottom: 8px;
}

.kanban-column-head strong,
.kanban-task-card h4 {
  color: #f8fafc;
  overflow-wrap: anywhere;
}

.kanban-column-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.kanban-column-head > span {
  min-width: 28px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 7px;
  color: var(--cyan);
  font: 900 0.66rem/1 var(--mono);
}

.kanban-card-stack {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.kanban-task-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  border-radius: 8px;
  padding: 9px;
  background: rgba(2, 6, 23, 0.64);
}

.kanban-task-top,
.kanban-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.kanban-task-top span,
.kanban-task-meta span {
  max-width: 100%;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  padding: 0 7px;
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.kanban-task-top span:first-child {
  border-color: rgba(245, 158, 11, 0.28);
  color: #fde68a;
}

.kanban-task-card h4 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.kanban-task-card p,
.kanban-column-empty,
.kanban-empty {
  color: #cbd5e1;
  font-size: 0.76rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.kanban-column-empty,
.kanban-empty {
  margin: 0;
  padding: 10px;
  border: 1px dashed rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.36);
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 8px;
}

.repo-summary {
  max-width: 68ch;
  margin-top: 8px;
  color: #cbd5e1;
  line-height: 1.55;
}

.repo-card {
  min-height: 224px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  align-content: stretch;
  gap: 8px 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.08), transparent 42%),
    var(--panel);
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.repo-card:hover {
  border-color: var(--line-hot);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.repo-index {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  color: var(--amber);
  font-size: 0.62rem;
}

.repo-media {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  aspect-ratio: 1;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 24%, rgba(34, 211, 238, 0.16), transparent 54%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.92));
  overflow: hidden;
}

.repo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.55;
}

.repo-media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.12) contrast(1.05);
}

.repo-card h3 {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  min-width: 0;
  font-size: 0.94rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.repo-card p {
  grid-column: 1 / -1;
  grid-row: 3;
  color: #cbd5e1;
  display: -webkit-box;
  font-size: 0.84rem;
  line-height: 1.42;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.repo-card a {
  grid-column: 1 / -1;
  grid-row: 4;
  align-self: end;
  color: #67e8f9;
  font-family: var(--mono);
  font-size: 0.64rem;
  overflow-wrap: anywhere;
}

.repo-card .repo-board-link {
  grid-row: 5;
  justify-self: start;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 8px;
  background: rgba(8, 47, 73, 0.54);
  color: #ecfeff;
  text-decoration: none;
  overflow-wrap: normal;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.repo-card .repo-board-link:hover {
  border-color: var(--cyan);
  background: rgba(14, 116, 144, 0.32);
  transform: translateY(-1px);
}

.repo-card .repo-board-link.ecosystem {
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
  background: rgba(69, 26, 3, 0.32);
}

.dash-graph-section {
  padding: clamp(72px, 10vw, 128px) 0 clamp(48px, 8vw, 92px);
}

.node-space-section {
  padding: clamp(54px, 8vw, 96px) 0 clamp(72px, 10vw, 128px);
  border-top: 1px solid rgba(125, 211, 252, 0.18);
}

.node-space-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.node-space-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 8px;
  background: rgba(9, 17, 31, 0.72);
  color: #f8fafc;
  font-weight: 800;
  box-shadow: inset 0 0 28px rgba(34, 211, 238, 0.045);
}

.node-space-actions a:hover {
  border-color: rgba(34, 211, 238, 0.72);
  background: rgba(8, 47, 73, 0.58);
}

.node-space-frame-shell {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(34, 211, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.034) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.16), transparent 42%),
    rgba(2, 6, 23, 0.92);
  background-size: 26px 26px, 26px 26px, auto, auto;
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(217, 70, 239, 0.08),
    inset 0 0 90px rgba(34, 211, 238, 0.08);
}

.node-space-frame-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), transparent 14%, transparent 84%, rgba(2, 6, 23, 0.42));
}

.node-space-frame-status {
  position: relative;
  z-index: 3;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.2);
  background: rgba(3, 7, 18, 0.82);
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.node-space-frame-status span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.node-space-frame-status i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.node-space-iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: min(920px, 82vh);
  min-height: 720px;
  border: 0;
  background: #020617;
}

.dash-summary-chips,
.dash-toolbar-count,
.dash-inspector-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-summary-chips span,
.dash-toolbar-count,
.dash-inspector-meta span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 8px;
  background: rgba(9, 17, 31, 0.76);
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-summary-chips span::before,
.dash-inspector-meta span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.dash-console {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 0;
  min-height: 820px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(34, 211, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.034) 1px, transparent 1px),
    radial-gradient(circle at 52% 52%, rgba(34, 211, 238, 0.08), transparent 54%),
    rgba(2, 6, 23, 0.88);
  background-size: 22px 22px, 22px 22px, auto, auto;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(217, 70, 239, 0.08),
    inset 0 0 90px rgba(34, 211, 238, 0.05);
}

.dash-console::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.032) 1px, transparent 1px, transparent 5px);
  opacity: 0.42;
  mix-blend-mode: screen;
}

.dash-mode-rail,
.dash-graph-main,
.dash-inspector {
  position: relative;
  z-index: 1;
}

.dash-mode-rail,
.dash-inspector {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px 14px;
  background: rgba(3, 7, 18, 0.54);
}

.dash-mode-rail {
  border-right: 1px solid rgba(125, 211, 252, 0.18);
}

.dash-inspector {
  border-left: 1px solid rgba(125, 211, 252, 0.18);
}

.dash-rail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 8px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.14);
}

.dash-rail-head small {
  grid-column: 2;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-mode-list {
  display: grid;
  gap: 8px;
}

.dash-mode-pill {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.62);
  color: #cbd5e1;
  font-weight: 700;
}

.dash-mode-pill.active {
  border-color: rgba(34, 211, 238, 0.72);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.92), rgba(103, 232, 249, 0.82));
  color: #031016;
}

.dash-mini-readout {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.46);
}

.dash-mini-readout span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-mini-readout strong {
  color: #e5edf8;
}

.dash-graph-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.dash-graph-toolbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(3, 7, 18, 0.54);
}

.dash-graph-toolbar strong {
  display: block;
  margin-top: 2px;
  font-size: 1rem;
}

.dash-toolbar-count {
  justify-content: center;
  min-width: 184px;
}

.dash-legend {
  min-height: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(2, 6, 23, 0.32);
}

.dash-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-legend-chip i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 15px currentColor;
}

.dash-flow-playback {
  display: grid;
  gap: 8px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent 48%, rgba(217, 70, 239, 0.08)),
    rgba(2, 6, 23, 0.46);
}

.dash-flow-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.dash-flow-head h3 {
  margin-top: 2px;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.dash-flow-controls {
  display: flex;
  gap: 6px;
}

.dash-flow-controls button {
  min-width: 54px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 8px;
  background: rgba(9, 17, 31, 0.78);
  color: #e5edf8;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-flow-controls button:hover {
  border-color: var(--cyan);
}

.dash-flow-controls button.active {
  border-color: var(--cyan);
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  color: #031016;
}

.dash-flow-summary,
.dash-flow-step {
  max-width: 120ch;
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.45;
}

.dash-flow-step {
  color: #e5edf8;
}

.dash-flow-step strong {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-flow-progress {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(24px, 1fr);
  gap: 5px;
  min-height: 12px;
}

.dash-flow-segment {
  min-width: 0;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  cursor: pointer;
  overflow: hidden;
}

.dash-flow-segment::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  opacity: 0.2;
}

.dash-flow-segment.done::before {
  opacity: 0.48;
}

.dash-flow-segment.active {
  border-color: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.dash-flow-segment.active::before {
  opacity: 0.9;
}

.dash-canvas-wrap {
  position: relative;
  min-height: 560px;
  height: clamp(560px, 66vw, 820px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.1), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(217, 70, 239, 0.08), transparent 58%),
    rgba(2, 6, 23, 0.3);
}

.dash-canvas-wrap canvas {
  width: 100%;
  height: 100%;
}

.dash-canvas-wrap::before {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border: 1px solid rgba(34, 211, 238, 0.08);
  border-radius: 999px;
  opacity: 0.8;
}

.dash-canvas-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.08), transparent),
    linear-gradient(180deg, rgba(2, 6, 23, 0.24), transparent 18%, transparent 82%, rgba(2, 6, 23, 0.32));
  mix-blend-mode: screen;
  opacity: 0.5;
}

.dash-graph-tooltip {
  position: absolute;
  z-index: 4;
  width: min(330px, calc(100% - 24px));
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.44);
  pointer-events: none;
}

.dash-graph-tooltip.is-hidden {
  display: none;
}

.dash-tooltip-kicker {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-tooltip-title {
  color: #e5edf8;
  font-weight: 800;
}

.dash-tooltip-text {
  color: #cbd5e1;
  font-size: 0.76rem;
  line-height: 1.42;
}

.dash-inspector h3 {
  margin-top: 4px;
}

.dash-inspector p {
  color: #cbd5e1;
  line-height: 1.52;
  overflow-wrap: anywhere;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 211, 238, 0.7) rgba(2, 6, 23, 0.8);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(2, 6, 23, 0.8);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--fuchsia));
  border: 2px solid rgba(2, 6, 23, 0.8);
  border-radius: 999px;
}

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

  .hero {
    min-height: auto;
  }

  .ecosystem-visual {
    min-height: 360px;
  }

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

  .node-detail .micro,
  .node-detail h3,
  .node-detail p,
  .detail-note {
    grid-column: 1 / -1;
  }

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

  .memory-video-console {
    grid-template-columns: 1fr;
  }

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

  .dash-console {
    grid-template-columns: 1fr;
  }

  .kanban-console {
    grid-template-columns: 1fr;
  }

  .kanban-selector {
    position: static;
    max-height: none;
  }

  .kanban-view-head {
    grid-template-columns: 1fr;
  }

  .kanban-static-board {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    overflow-x: visible;
  }

  .dash-mode-rail,
  .dash-inspector {
    border: 0;
    border-bottom: 1px solid rgba(125, 211, 252, 0.18);
  }

  .dash-mode-rail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .dash-mode-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dash-mini-readout {
    display: none;
  }

  .dash-inspector {
    border-top: 1px solid rgba(125, 211, 252, 0.18);
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  body {
    min-width: 0;
  }

  main {
    width: min(100% - 20px, 1480px);
  }

  .topbar,
  .stage-head,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topnav,
  .stage-actions {
    justify-content: flex-start;
  }

  .topbar {
    position: static;
    gap: 10px;
    min-height: 0;
    padding: 10px;
  }

  .brand {
    width: 100%;
    gap: 10px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand .micro {
    font-size: 0.62rem;
  }

  .topnav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .topnav a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 24px;
  }

  .ecosystem-visual {
    min-height: 280px;
  }

  .ecosystem-visual figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .problem-section {
    padding-top: 10px;
  }

  .memory-video-section {
    padding-bottom: 56px;
  }

  .memory-video-console {
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
  }

  .memory-video-copy h2 {
    font-size: 2.1rem;
    line-height: 1;
  }

  .memory-video-copy .repo-summary {
    font-size: 0.9rem;
  }

  .memory-video-readouts {
    gap: 6px;
  }

  .memory-video-readouts span {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.56rem;
  }

  .memory-video-frame {
    border-radius: 9px;
  }

  .memory-play-button {
    min-width: min(236px, calc(100% - 24px));
    min-height: 62px;
    gap: 10px;
    padding: 8px 12px 8px 8px;
  }

  .memory-play-icon {
    width: 46px;
    height: 46px;
  }

  .memory-play-icon svg {
    width: 25px;
    height: 25px;
  }

  .memory-video-hud {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    left: 9px;
    right: 9px;
    bottom: 9px;
    font-size: 0.54rem;
  }

  .kanban-section {
    padding-top: 38px;
  }

  .kanban-actions {
    justify-content: flex-start;
  }

  .kanban-console {
    gap: 8px;
  }

  .kanban-selector,
  .kanban-view {
    padding: 10px;
    border-radius: 10px;
  }

  .kanban-selector {
    max-height: none;
  }

  .kanban-selector-head {
    padding-bottom: 8px;
  }

  .kanban-board-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .kanban-board-button {
    flex: 0 0 220px;
    min-height: 76px;
  }

  .kanban-board-button strong {
    white-space: normal;
  }

  .kanban-view-head {
    gap: 10px;
  }

  .kanban-view-head h3 {
    font-size: 1.15rem;
    overflow-wrap: anywhere;
  }

  .kanban-view-head p:not(.micro) {
    font-size: 0.88rem;
  }

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

  .kanban-frame-status {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 9px 10px;
    font-size: 0.56rem;
  }

  .kanban-frame-status span {
    width: 100%;
  }

  .kanban-iframe {
    min-height: 520px;
    height: min(64svh, 620px);
  }

  .kanban-static-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .kanban-static-board {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow-x: visible;
  }

  .kanban-column {
    min-width: 0;
  }

  .kanban-task-card p {
    font-size: 0.74rem;
  }

  .problem-grid {
    gap: 12px;
  }

  .tweet-artifact,
  .answer-callout,
  .answer-row {
    padding: 12px;
  }

  .tweet-chrome {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .tweet-label {
    flex-basis: 100%;
    margin-left: 0;
    text-align: left;
  }

  .tweet-artifact blockquote p {
    font-size: 0.94rem;
  }

  .protocol-strip {
    grid-template-columns: 1fr;
  }

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

  .node-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .node-tab {
    flex: 0 0 168px;
    min-height: 46px;
  }

  .node-tab.active {
    box-shadow: inset 0 -3px 0 var(--cyan), 0 0 28px rgba(34, 211, 238, 0.12);
  }

  .stage-grid,
  .node-detail,
  .frame-panel {
    min-width: 0;
  }

  .stage-grid {
    display: flex;
    flex-direction: column;
  }

  .node-detail {
    order: 2;
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 10px;
  }

  .metric-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .metric-list div {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 3px;
    min-height: 54px;
  }

  .metric-list dt,
  .metric-list dd {
    min-width: 0;
  }

  .detail-note {
    font-size: 0.9rem;
  }

  .frame-panel {
    order: 1;
    min-height: 0;
    height: min(620px, 82svh);
    max-width: 100%;
  }

  .frame-toolbar {
    min-width: 0;
  }

  #framePath {
    display: none;
  }

  iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 516px;
  }

  .dash-graph-toolbar,
  .dash-flow-head {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .dash-graph-section {
    padding-top: 34px;
  }

  .dash-console {
    min-height: 0;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 10px;
  }

  .dash-mode-rail,
  .dash-inspector {
    gap: 9px;
    padding: 10px;
  }

  .dash-mode-rail {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dash-rail-head {
    padding-bottom: 8px;
  }

  .dash-mode-list {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .dash-mode-list::-webkit-scrollbar {
    display: none;
  }

  .dash-mode-pill {
    flex: 0 0 auto;
    min-width: 116px;
    min-height: 36px;
    justify-content: center;
    padding: 0 9px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .dash-graph-main {
    display: flex;
    flex-direction: column;
  }

  .dash-graph-toolbar {
    display: grid;
    gap: 9px;
    min-height: 0;
    padding: 10px;
  }

  .dash-graph-toolbar strong {
    font-size: 0.94rem;
  }

  .dash-toolbar-count {
    justify-content: flex-start;
    min-width: 0;
    width: fit-content;
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.58rem;
  }

  .dash-legend {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 7px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .dash-legend::-webkit-scrollbar {
    display: none;
  }

  .dash-legend-chip {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 0 8px;
    font-size: 0.58rem;
  }

  .dash-flow-playback {
    order: 4;
    gap: 7px;
    padding: 10px;
  }

  .dash-flow-head h3 {
    font-size: 0.94rem;
  }

  .dash-flow-controls {
    flex-wrap: wrap;
  }

  .dash-flow-controls button {
    flex: 1 1 72px;
    min-height: 32px;
    min-width: 0;
    padding: 0 8px;
    font-size: 0.6rem;
  }

  .dash-flow-summary,
  .dash-flow-step {
    font-size: 0.76rem;
  }

  .dash-flow-progress {
    grid-auto-columns: minmax(18px, 1fr);
    gap: 4px;
  }

  .dash-canvas-wrap {
    order: 3;
    min-height: 380px;
    height: min(62svh, 560px);
  }

  .dash-canvas-wrap::before {
    inset: 9px;
  }

  .dash-inspector {
    max-height: 280px;
    overflow: auto;
  }

  .dash-inspector h3 {
    margin: 0;
    font-size: 1rem;
  }

  .dash-inspector p {
    margin: 0;
    font-size: 0.84rem;
  }

  .node-space-actions {
    justify-content: flex-start;
    gap: 8px;
  }

  .node-space-actions a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .node-space-section {
    padding-top: 38px;
  }

  .node-space-frame-shell {
    margin-top: 14px;
    border-radius: 10px;
  }

  .node-space-frame-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    padding: 9px 10px;
    font-size: 0.56rem;
  }

  .node-space-iframe {
    height: min(70svh, 640px);
    min-height: 540px;
  }
}

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