:root {
  --night: #050713;
  --night-soft: #090d1d;
  --panel: #0c1226;
  --panel-strong: #111a33;
  --line: rgba(148, 163, 184, .18);
  --line-bright: rgba(125, 211, 252, .32);
  --ink: #f8fafc;
  --muted: #9caac0;
  --muted-strong: #cbd5e1;
  --cyan: #7dd3fc;
  --blue: #3b82f6;
  --violet: #a78bfa;
  --positive: #79e6c4;
  --danger: #fb7185;
  --gradient: linear-gradient(120deg, var(--cyan), #818cf8 54%, var(--violet));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--night);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 4%, rgba(56, 189, 248, .12), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(139, 92, 246, .09), transparent 32rem),
    linear-gradient(rgba(148, 163, 184, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .045) 1px, transparent 1px),
    var(--night);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  min-height: 84px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 19, .76);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--night);
  mix-blend-mode: screen;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(59, 130, 246, .26);
}

.brand-lockup { display: grid; line-height: 1.05; }
.brand-lockup small {
  margin-top: 5px;
  color: var(--cyan);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.site-header nav a, footer nav a {
  color: var(--muted-strong);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease;
}

.site-header nav a:hover, footer nav a:hover { color: var(--cyan); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 999px;
  padding: 11px 21px;
  background: rgba(15, 23, 42, .55);
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 12px 36px rgba(56, 189, 248, .15);
}

.button.primary {
  border-color: transparent;
  background: var(--gradient);
  color: #07111f;
  box-shadow: 0 0 34px rgba(96, 165, 250, .22);
}

.button.small { min-height: 40px; padding: 8px 18px; font-size: 13px; }
.nav-toggle { display: none; border: 0; background: none; color: var(--ink); }

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  max-width: 1240px;
  min-height: 900px;
  margin: auto;
  padding: 105px 28px 120px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 65px;
  width: min(760px, 82vw);
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .12), transparent 67%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 2; display: grid; justify-items: center; }
.hero-logo {
  width: min(480px, 82vw);
  height: auto;
  margin-bottom: 31px;
  mix-blend-mode: screen;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, .24));
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1040px;
  margin: 18px 0 24px;
  font-size: clamp(62px, 7.2vw, 104px);
  font-weight: 850;
  line-height: .95;
  letter-spacing: -.068em;
}

.hero h1 em {
  display: inline-block;
  padding-bottom: .12em;
  margin-bottom: -.12em;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

.hero-lede {
  max-width: 820px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 19px;
  line-height: 1.65;
}

.actions { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.text-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 21px;
  color: var(--muted-strong);
  font-weight: 750;
  text-decoration: none;
}
.text-link:hover { border-color: var(--line-bright); color: var(--ink); }

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(900px, 100%);
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(13, 19, 40, .88), rgba(17, 26, 51, .62));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
}
.proof span {
  min-height: 86px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.proof span:last-child { border-right: 0; }

.artifact-window, .code-window {
  position: relative;
  z-index: 2;
  width: min(960px, 92%);
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 24px;
  background: rgba(8, 13, 29, .92);
  color: var(--ink);
  box-shadow: 0 35px 100px rgba(0, 0, 0, .46), 0 0 65px rgba(56, 189, 248, .08);
}
.hero .artifact-window { margin-top: 54px; text-align: left; }

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, .55);
}
.window-bar span { width: 8px; height: 8px; border-radius: 50%; background: #64748b; }
.window-bar span:nth-child(2) { background: #818cf8; }
.window-bar span:nth-child(3) { background: var(--cyan); }
.window-bar small { margin-left: auto; color: #74839a; font-family: ui-monospace, monospace; }
.artifact-head { display: flex; justify-content: space-between; gap: 20px; padding: 34px 32px 22px; }
.artifact-head small { color: var(--cyan); letter-spacing: .14em; }
.artifact-head h2 { margin: 7px 0 0; font-size: 28px; letter-spacing: -.04em; }
.status { height: max-content; border: 1px solid var(--positive); border-radius: 99px; padding: 6px 9px; color: var(--positive); font-size: 10px; }
.fidelity { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 0 32px 25px; }
.fidelity span { color: var(--muted); font-size: 12px; }
.fidelity strong { font-size: 22px; }
.fidelity div { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: #1d2943; }
.fidelity i { display: block; height: 100%; border-radius: inherit; background: var(--gradient); }
.artifact-fields { margin: 0; border-top: 1px solid var(--line); }
.artifact-fields div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 19px 32px; border-bottom: 1px solid var(--line); }
.artifact-fields dt { color: #74839a; font-size: 11px; text-transform: uppercase; }
.artifact-fields dd { margin: 0; font-size: 13px; }
.version-row { display: flex; align-items: center; gap: 13px; padding: 22px 32px; color: #8290a7; font: 11px ui-monospace, monospace; }
.version-row i { width: 3px; height: 3px; border-radius: 50%; background: var(--cyan); }

.manifesto {
  margin: 0 auto;
  padding: 120px 28px;
  border-block: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(12, 18, 38, .95), rgba(7, 10, 23, .96));
  text-align: center;
}
.manifesto p { max-width: 830px; margin: 10px auto; color: var(--muted); font-size: 17px; }
.manifesto h2 { max-width: 1050px; margin: 16px auto; font-size: clamp(46px, 6vw, 82px); line-height: 1.02; letter-spacing: -.055em; }

.section { max-width: 1240px; margin: auto; padding: 125px 28px; }
.section-intro { display: grid; grid-template-columns: .48fr 1fr .8fr; gap: 45px; align-items: start; margin-bottom: 62px; }
.section-intro h2 { margin: 0; font-size: clamp(40px, 4.8vw, 66px); line-height: 1; letter-spacing: -.055em; }
.section-intro > p:last-child { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.cft-grid, .feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cft-grid article, .feature-grid article, .enterprise-grid article, .pricing-grid article {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 23, 42, .82), rgba(8, 13, 29, .78));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.cft-grid span, .feature-grid > article > b { color: var(--cyan); font: 11px ui-monospace, monospace; }
.cft-grid h3, .feature-grid h3 { margin: 62px 0 12px; font-size: 22px; letter-spacing: -.03em; }
.cft-grid p, .feature-grid p, .enterprise-grid p { color: var(--muted); line-height: 1.62; }

.law-card {
  margin-top: 18px;
  padding: 44px;
  border: 1px solid var(--line-bright);
  border-radius: 22px;
  background: radial-gradient(circle at 92% 12%, rgba(167, 139, 250, .16), transparent 22rem), var(--panel);
}
.law-card small { color: var(--cyan); font-weight: 850; letter-spacing: .16em; }
.law-card h3 { margin: 28px 0 10px; font-size: 45px; letter-spacing: -.045em; }
.law-card p { max-width: 900px; color: var(--muted-strong); font-size: 18px; line-height: 1.6; }
.law-card a { color: var(--cyan); font-weight: 750; }

.capsule-section { border-top: 1px solid var(--line); }
.capsule-anatomy { display: grid; grid-template-columns: .68fr 1.32fr; gap: 70px; align-items: center; }
.capsule-core {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line-bright);
  background: radial-gradient(circle at 50% 35%, rgba(56, 189, 248, .18), transparent 54%), var(--panel);
  clip-path: polygon(25% 5%, 75% 5%, 100% 25%, 100% 75%, 75% 95%, 25% 95%, 0 75%, 0 25%);
  text-align: center;
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, .35));
}
.capsule-core small { color: var(--cyan); letter-spacing: .2em; }
.capsule-core strong { font-size: 62px; letter-spacing: -.06em; }
.capsule-core span { color: var(--muted); }
.capsule-anatomy ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.capsule-anatomy li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 25px 10px; border-bottom: 1px solid var(--line); }
.capsule-anatomy li b { font-size: 19px; }
.capsule-anatomy li span { color: var(--muted); }
.category-line { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-top: 75px; padding: 27px 0; border-block: 1px solid var(--line); font-size: 17px; }
.category-line span { color: var(--muted); }

.lifecycle-section {
  max-width: none;
  border-block: 1px solid var(--line);
  background: rgba(9, 13, 29, .88);
}
.lifecycle-section > * { max-width: 1184px; margin-left: auto; margin-right: auto; }
.lifecycle { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.lifecycle li { display: grid; gap: 10px; min-height: 160px; padding: 23px; border-right: 1px solid var(--line); background: rgba(15, 23, 42, .55); }
.lifecycle li:last-child { border: 0; }
.lifecycle span { color: var(--cyan); font: 11px ui-monospace, monospace; }
.lifecycle b { margin-top: auto; font-size: 19px; }
.lifecycle small { color: var(--muted); }
.comparison { display: grid; grid-template-columns: 1fr 1fr 180px; margin-top: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; }
.comparison > div { padding: 32px; border-right: 1px solid var(--line); background: rgba(10, 16, 34, .78); }
.comparison small { color: #7f8da3; font: 11px ui-monospace, monospace; }
.comparison p { min-height: 82px; color: var(--muted-strong); font-size: 18px; line-height: 1.5; }
.comparison strong { color: var(--positive); }
.comparison aside { display: grid; place-content: center; background: var(--gradient); color: #07111f; text-align: center; }
.comparison aside b { font-size: 30px; }
.comparison aside span { margin-bottom: 14px; font-size: 11px; }

.feature-grid { grid-template-columns: repeat(4, 1fr); }
.fabric-section {
  padding: 125px max(28px, calc((100vw - 1184px) / 2));
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0, rgba(56, 189, 248, .13), transparent 36rem),
    rgba(4, 7, 18, .97);
}
.section-intro.light .eyebrow { color: var(--cyan); }
.section-intro.light > p:last-child { color: var(--muted); }
.stack { display: grid; gap: 13px; }
.stack-layer, .stack-row > div {
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: center;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 18, 38, .85);
}
.stack-layer span, .stack-row span { color: var(--cyan); font: 11px ui-monospace, monospace; letter-spacing: .14em; }
.stack-layer b, .stack-row b { font-size: 19px; }
.stack-layer.intent-layer { border-color: transparent; background: var(--gradient); color: #07111f; }
.stack-layer.intent-layer span { color: #102b58; }
.stack-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.stack-row > div { grid-template-columns: 130px 1fr; }
.stack-row small { grid-column: 2; margin-top: 8px; color: var(--muted); }
.architecture-note { max-width: 860px; margin: 40px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.enterprise-grid, .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.enterprise-grid h3 { margin-top: 72px; font-size: 23px; }
.developer-section { border-top: 1px solid var(--line); }
.code-window { width: 100%; }
.code-window pre { overflow: auto; margin: 0; padding: 40px; color: #c8e9ff; font: 14px/1.8 ui-monospace, monospace; }
.api-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.api-links a { display: flex; justify-content: space-between; padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 18, 38, .7); font-weight: 750; text-decoration: none; }
.api-links a:hover { border-color: var(--line-bright); }

.pricing-grid article { min-height: 410px; }
.pricing-grid article.featured { border-color: var(--line-bright); background: radial-gradient(circle at 80% 0, rgba(167, 139, 250, .2), transparent 18rem), var(--panel-strong); }
.pricing-grid small { color: var(--cyan); font-weight: 850; letter-spacing: .15em; }
.pricing-grid h3 { font-size: 27px; }
.pricing-grid article > b { font-size: 46px; letter-spacing: -.05em; }
.pricing-grid article > b em { color: var(--muted); font-size: 14px; }
.pricing-grid p { min-height: 52px; color: var(--muted); }
.pricing-grid ul { min-height: 120px; padding-left: 20px; color: var(--muted-strong); line-height: 2; }

.orbit {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, .12), transparent 45%);
}
.orbit::before, .orbit::after { content: ""; position: absolute; inset: 13%; border: 1px solid var(--line); border-radius: 50%; }
.orbit::after { inset: 27%; }
.orbit-core {
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  width: 225px;
  height: 225px;
  background: var(--gradient);
  color: #07111f;
  clip-path: polygon(25% 5%, 75% 5%, 100% 25%, 100% 75%, 75% 95%, 25% 95%, 0 75%, 0 25%);
}
.orbit-core b { font-size: 24px; }
.orbit-core span { position: static !important; color: #102b58; }
.orbit > span { position: absolute; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--muted-strong); font-size: 13px; }
.orbit > span:nth-of-type(1) { top: 8%; left: 47%; }
.orbit > span:nth-of-type(2) { top: 24%; right: 10%; }
.orbit > span:nth-of-type(3) { bottom: 22%; right: 12%; }
.orbit > span:nth-of-type(4) { bottom: 7%; left: 44%; }
.orbit > span:nth-of-type(5) { bottom: 23%; left: 8%; }
.orbit > span:nth-of-type(6) { top: 24%; left: 10%; }
.orbit > span:nth-of-type(7) { top: 48%; right: 3%; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; max-width: none; padding: 0; border-top: 1px solid var(--line); }
.split-section > div { padding: 105px max(28px, calc((100vw - 1184px) / 2)); padding-right: 70px; }
.split-section > div + div { border-left: 1px solid var(--line); background: linear-gradient(145deg, rgba(25, 36, 69, .88), rgba(11, 16, 34, .9)); }
.split-section h2 { font-size: 47px; letter-spacing: -.05em; }
.split-section p { max-width: 580px; color: var(--muted); line-height: 1.65; }

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 35px;
  align-items: center;
  padding: 45px max(28px, calc((100vw - 1240px) / 2));
  border-top: 1px solid var(--line);
  background: rgba(3, 5, 14, .95);
}
footer p { color: var(--muted); }
footer nav { display: flex; gap: 20px; }
footer small { grid-column: 1 / -1; color: #64748b; }

.section, .manifesto, .fabric-section { opacity: .45; transform: translateY(20px); transition: .7s ease; }
.section.visible, .manifesto.visible, .fabric-section.visible { opacity: 1; transform: none; }

/* Authentication */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(56, 189, 248, .18), transparent 35rem),
    radial-gradient(circle at 90% 90%, rgba(139, 92, 246, .15), transparent 38rem),
    var(--night);
}
.auth-card {
  width: min(490px, 100%);
  padding: 42px;
  border: 1px solid var(--line-bright);
  border-radius: 24px;
  background: rgba(9, 14, 31, .9);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .48);
  backdrop-filter: blur(18px);
}
.auth-card .brand { margin-bottom: 50px; }
.auth-card h1 { font-size: 48px; letter-spacing: -.055em; }
.auth-card > p { color: var(--muted); line-height: 1.6; }
.auth-card label { display: grid; gap: 9px; margin-top: 22px; font-size: 13px; font-weight: 750; }
.auth-card input { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #070b19; color: var(--ink); }
.wide { width: 100%; margin-top: 24px; }
.auth-card small { display: block; margin-top: 15px; color: #8290a7; text-align: center; }
.identity-chip, .form-error { margin-top: 20px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.identity-chip { display: flex; justify-content: space-between; }
.form-error { color: #fecdd3; background: rgba(136, 19, 55, .32); }

/* Workspace */
.workspace-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background:
    radial-gradient(circle at 82% 0, rgba(56, 189, 248, .08), transparent 30rem),
    var(--night-soft);
}
.workspace-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 25px 21px;
  border-right: 1px solid var(--line);
  background: rgba(4, 7, 18, .95);
}
.workspace-nav nav { display: grid; gap: 5px; margin-top: 60px; }
.workspace-nav nav a { padding: 11px 14px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); text-decoration: none; }
.workspace-nav nav a:hover { color: var(--ink); background: rgba(30, 41, 59, .5); }
.workspace-nav nav a.active { border: 1px solid var(--line-bright); background: rgba(37, 99, 235, .16); color: var(--cyan); }
.workspace-nav nav a[hidden] { display: none !important; }
.workspace-nav > div { margin-top: auto; }
.workspace-nav > div small { display: block; color: #64748b; }
.workspace-nav > div strong { display: block; margin: 8px 0 14px; font-size: 12px; }
.workspace-nav button { border: 0; padding: 0; background: none; color: var(--muted); cursor: pointer; }
.workspace-main { min-width: 0; padding: 44px; }
.workspace-main > header { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.workspace-main h1 { margin: 5px 0; font-size: 48px; letter-spacing: -.055em; }
.workspace-header > div:first-child > p:last-child { margin: 7px 0 0; color: var(--muted); }
.workspace-actions { display: flex; gap: 10px; }
.workspace-view { display: none; }
.workspace-view.active { display: block; animation: workspace-view-in .2s ease; }
@keyframes workspace-view-in { from { opacity: 0; transform: translateY(4px); } }
.workspace-notice {
  position: sticky;
  top: 16px;
  z-index: 10;
  margin: 24px 0 -12px;
  border: 1px solid rgba(121, 230, 196, .4);
  border-radius: 10px;
  padding: 12px 15px;
  background: rgba(7, 54, 49, .95);
  color: #c9fff0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}
.workspace-notice.error { border-color: rgba(251, 113, 133, .45); background: rgba(80, 18, 38, .96); color: #ffe4e6; }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 35px 0; }
.metric-row article { display: grid; gap: 7px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: rgba(12, 18, 38, .78); }
.metric-row small { color: var(--cyan); font: 10px ui-monospace, monospace; }
.metric-row b { font-size: 33px; letter-spacing: -.04em; }
.metric-row span { color: var(--muted); font-size: 12px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 17px; }
.capsule-list, .graph-card { min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: rgba(10, 15, 33, .82); }
.capsule-list { overflow: hidden; }
.capsule-list > header { display: flex; justify-content: space-between; align-items: center; padding: 24px; }
.capsule-list h2, .graph-card h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.capsule-list input {
  width: 310px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 10px 14px;
  background: #070b19;
  color: var(--ink);
}
.graph-card { padding: 25px; }
.capsule-row {
  position: relative;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
}
.capsule-row-link { display: block; min-width: 0; padding: 23px 92px 23px 23px; color: inherit; text-decoration: none; }
.capsule-row:hover, .capsule-row:focus-within { background: rgba(30, 41, 59, .42); }
.capsule-row.critical {
  border-left: 4px solid var(--danger);
  background: linear-gradient(100deg, rgba(92, 20, 38, .42), rgba(16, 24, 43, .92) 60%);
}
.capsule-row.critical:hover, .capsule-row.critical:focus-within {
  background: linear-gradient(100deg, rgba(112, 24, 47, .55), rgba(24, 35, 57, .96) 60%);
}
.capsule-risk { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--danger); }
.capsule-risk b { font: 10px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.capsule-risk time { color: #fecdd3; font-size: 11px; font-weight: 750; }
.capsule-row h3 { margin: 8px 0; overflow-wrap: anywhere; font-size: 21px; }
.capsule-row p { color: var(--muted); }
.capsule-badges { display: flex; gap: 10px; }
.capsule-badges > * { border: 1px solid var(--line); border-radius: 99px; padding: 6px 9px; color: var(--muted-strong); font-size: 10px; }
.capsule-delete {
  position: absolute;
  right: 22px;
  bottom: 22px;
  border: 1px solid rgba(251, 113, 133, .35);
  border-radius: 99px;
  padding: 7px 11px;
  background: rgba(80, 18, 38, .28);
  color: #fecdd3;
  cursor: pointer;
}
.capsule-delete:hover, .capsule-delete:focus-visible { border-color: var(--danger); background: rgba(136, 19, 55, .5); color: #fff1f2; }
.capsule-id { display: block; max-width: 100%; color: var(--cyan); overflow-wrap: anywhere; font: 10px ui-monospace, monospace; }
.workspace-empty { padding: 30px; color: var(--muted); }
.workspace-empty h3 { margin: 0 0 7px; color: var(--ink); }
.workspace-empty p { margin: 0; }
.mini-graph { position: relative; height: 280px; margin: 20px 0; background: radial-gradient(circle at center, rgba(56, 189, 248, .14), transparent 45%); }
.mini-graph i { position: absolute; width: 18px; height: 18px; border: 4px solid var(--panel); border-radius: 50%; background: var(--blue); box-shadow: 0 0 18px rgba(59, 130, 246, .4); }
.mini-graph i:nth-child(1) { top: 20%; left: 20%; }
.mini-graph i:nth-child(2) { top: 15%; right: 18%; }
.mini-graph i:nth-child(3) { bottom: 18%; left: 16%; }
.mini-graph i:nth-child(4) { bottom: 13%; right: 25%; }
.mini-graph i:nth-child(5) { top: 50%; left: 48%; background: var(--violet); }
.mini-graph b { position: absolute; top: 58%; left: 40%; font-size: 12px; }
.graph-card dl, .graph-card dl div { min-width: 0; }
.graph-card dl div { padding: 14px 0; border-top: 1px solid var(--line); }
.graph-card dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.graph-card dd { min-width: 0; margin: 6px 0 0; overflow-wrap: anywhere; font-size: 13px; }
.graph-card details { margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--line); }
.graph-card summary { cursor: pointer; font-weight: 700; }
.graph-card pre { max-width: 100%; max-height: 340px; overflow: auto; padding: 14px; background: #070b19; color: #c8e9ff; overflow-wrap: anywhere; white-space: pre-wrap; font: 12px/1.6 ui-monospace, monospace; }

.capsule-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: 90vh;
  border: 1px solid var(--line-bright);
  border-radius: 18px;
  padding: 0;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .65);
}
.capsule-dialog::backdrop { background: rgba(2, 4, 12, .82); backdrop-filter: blur(5px); }
.capsule-dialog form { display: grid; gap: 17px; padding: 28px; }
.capsule-dialog header, .capsule-dialog footer, .form-columns { display: flex; justify-content: space-between; gap: 16px; }
.capsule-dialog h2 { margin: 4px 0 0; font-size: 30px; }
.capsule-dialog label { display: grid; gap: 7px; font-size: 12px; font-weight: 750; }
.capsule-dialog label small { color: var(--muted); font-weight: 400; }
.capsule-dialog input, .capsule-dialog textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px; background: #070b19; color: var(--ink); }
.capsule-dialog textarea { resize: vertical; }
.capsule-dialog .form-columns > * { flex: 1; }
.dialog-close { border: 0; background: none; color: inherit; cursor: pointer; }
.capsule-dialog header > .dialog-close { font-size: 30px; }
.capsule-dialog footer { justify-content: flex-end; padding-top: 5px; }
.button.danger { border-color: rgba(251, 113, 133, .7); background: #9f1239; color: #fff; }
.button.danger:hover { background: #be123c; }
.danger-text { color: var(--danger); }
.delete-warning { margin: 0; padding: 16px; border: 1px solid rgba(251, 113, 133, .3); border-radius: 10px; background: rgba(80, 18, 38, .25); color: #fecdd3; }

.tool-panel, .template-card {
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 28px;
  background: rgba(10, 15, 33, .82);
}
.tool-panel { margin-top: 35px; }
.tool-panel > header, .output-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.tool-panel h2, .template-card h2 { margin: 6px 0 12px; font-size: 27px; letter-spacing: -.035em; }
.panel-copy { max-width: 700px; color: var(--muted); line-height: 1.6; }
.tool-panel label {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
}
.tool-panel input, .tool-panel select, .tool-panel textarea, .capsule-dialog select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  background: #070b19;
  color: var(--ink);
}
.tool-panel textarea { resize: vertical; line-height: 1.55; }
.tool-panel label small { color: var(--muted); font-weight: 400; }
.tool-panel > header label { width: min(360px, 44%); margin-top: 0; }
.tool-panel > .button { margin-top: 22px; }
.tool-grid { display: grid; grid-template-columns: minmax(330px, .8fr) minmax(420px, 1.2fr); gap: 17px; }
.output-panel { min-width: 0; }
.output-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.json-output {
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: #050814;
  color: #c8e9ff;
  white-space: pre-wrap;
  word-break: break-word;
  font: 12px/1.6 ui-monospace, monospace;
}
.result-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.result-meta div { min-width: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.result-meta dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.result-meta dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 12px; }

.relationship-graph {
  min-height: 430px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(96, 165, 250, .14), transparent 35%),
    linear-gradient(rgba(148, 163, 184, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .035) 1px, transparent 1px),
    #070b19;
  background-size: auto, 32px 32px, 32px 32px, auto;
  overflow: hidden;
}
.graph-summary {
  grid-template-columns: repeat(4, 1fr);
  margin: 25px 0 0;
}
.graph-summary article { padding: 16px 18px; background: rgba(7, 11, 25, .72); }
.graph-summary b { font-size: 25px; }
.graph-summary .risk-metric.critical {
  border-color: rgba(251, 113, 133, .55);
  background: linear-gradient(135deg, rgba(92, 20, 38, .45), rgba(7, 11, 25, .88));
}
.graph-summary .risk-metric.critical small,
.graph-summary .risk-metric.critical b { color: var(--danger); }
.graph-summary .confidence-metric b { color: var(--positive); }
.intent-map-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 18, 38, .86);
}
.intent-map-head h3 { margin: 6px 0; overflow-wrap: anywhere; font-size: 23px; }
.intent-map-head > div > p:last-child { max-width: 800px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.intent-map-head .button { flex: 0 0 auto; }
.intent-map-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.intent-map-actions .qa-button { border-color: rgba(125, 211, 252, .42); color: var(--cyan); }
.intent-map-actions .vet-button { border-color: rgba(52, 211, 153, .38); color: #a7f3d0; }
.intent-map-actions .vet-button:disabled { background: rgba(6, 78, 59, .24); color: #6ee7b7; opacity: 1; }
.source-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 4px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 750;
  text-underline-offset: 4px;
}
.source-link:hover { color: var(--ink); }
.priority-alert {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(251, 113, 133, .35);
  background:
    radial-gradient(circle at 8% 50%, rgba(251, 113, 133, .14), transparent 30rem),
    rgba(45, 12, 25, .38);
}
.priority-alert h3 { margin: 5px 0; font-size: 20px; }
.priority-alert p:last-child { max-width: 720px; margin: 0; color: var(--muted-strong); font-size: 12px; line-height: 1.55; }
.priority-alert .deadline-context { margin-top: 9px; color: #fecdd3; font-weight: 750; }
.priority-countdown { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; border: 1px solid rgba(251, 113, 133, .35); border-radius: 9px; padding: 8px 10px; background: rgba(92, 20, 38, .32); }
.priority-countdown small { color: #fda4af; font: 9px ui-monospace, monospace; letter-spacing: .08em; }
.priority-countdown strong { color: #fff1f2; font-size: 13px; }
.priority-alert.critical .eyebrow { color: var(--danger); }
.change-route { display: flex; align-items: center; gap: 9px; }
.change-route span {
  border: 1px solid rgba(251, 113, 133, .35);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(5, 7, 19, .6);
  color: var(--ink);
  font: 10px ui-monospace, monospace;
}
.change-route b { color: var(--danger); }
.update-scope { display: flex; flex-wrap: wrap; gap: 7px; }
.update-scope small { width: 100%; color: var(--danger); font: 9px ui-monospace, monospace; letter-spacing: .09em; }
.update-scope span {
  border: 1px solid rgba(251, 113, 133, .25);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(92, 20, 38, .28);
  color: var(--muted-strong);
  font-size: 9px;
}
.intent-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 1px;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}
.intent-lane {
  min-width: 150px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 18px;
  background: rgba(7, 11, 25, .96);
}
.intent-lane > header { display: flex; min-width: 0; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 13px; }
.intent-lane > header span { min-width: 0; overflow-wrap: anywhere; color: var(--cyan); font: 10px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.intent-lane > header b { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted-strong); font-size: 10px; }
.intent-lane > div {
  display: grid;
  min-width: 0;
  max-height: clamp(440px, 68vh, 760px);
  gap: 9px;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 5px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.intent-lane > div::-webkit-scrollbar { width: 6px; }
.intent-lane > div::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(125, 211, 252, .28); }
.intent-item {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 78px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  padding: 11px;
  background: rgba(15, 23, 42, .75);
}
.intent-item small { display: block; max-width: 100%; overflow-wrap: anywhere; color: var(--cyan); font: 8px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.intent-item p {
  max-width: 100%;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.45;
}
.intent-item.missing { border-style: dashed; border-color: rgba(251, 191, 36, .4); background: rgba(92, 60, 5, .12); }
.intent-item.missing small { color: #fbbf24; }
.fidelity-workbench {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1px;
  background: var(--line);
}
.fidelity-workbench > section { min-width: 0; padding: 26px; background: rgba(7, 11, 25, .94); }
.fidelity-workbench h3 { margin: 6px 0 18px; font-size: 19px; }
.criteria-list { display: grid; gap: 9px; }
.criteria-list article { display: grid; grid-template-columns: 74px 1fr; gap: 12px; border: 1px solid rgba(121, 230, 196, .3); border-radius: 10px; padding: 12px; background: rgba(7, 54, 49, .15); }
.criteria-list article.suggested { border-color: rgba(251, 191, 36, .3); background: rgba(92, 60, 5, .13); }
.criteria-list article.derived { border-color: rgba(125, 211, 252, .3); background: rgba(14, 73, 104, .14); }
.criteria-list b { color: var(--positive); font: 9px ui-monospace, monospace; letter-spacing: .08em; }
.criteria-list .suggested b { color: #fbbf24; }
.criteria-list .derived b { color: var(--cyan); }
.criteria-list span { color: var(--muted-strong); font-size: 11px; line-height: 1.5; }
.ambiguity-list { display: grid; gap: 11px; margin: 0; padding-left: 22px; }
.ambiguity-list li { padding-left: 5px; color: var(--muted-strong); font-size: 12px; line-height: 1.5; }
.ambiguity-list li::marker { color: #fbbf24; font: 10px ui-monospace, monospace; }
.ambiguity-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ambiguity-heading h3 { margin-bottom: 12px; }
.ambiguity-heading button {
  flex: 0 0 auto;
  border: 1px solid rgba(125, 211, 252, .42);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(14, 73, 104, .18);
  color: var(--cyan);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}
.confidence-band { display: grid; gap: 8px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: rgba(12, 18, 38, .62); }
.confidence-band span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--muted-strong); font-size: 10px; text-transform: uppercase; }
.confidence-band span b { color: var(--positive); font-size: 16px; }
.confidence-band progress, .qa-confidence progress { width: 100%; height: 7px; border: 0; accent-color: var(--positive); }
.confidence-band small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.resolved-answers { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 13px; }
.resolved-answers summary { color: var(--positive); cursor: pointer; font-size: 11px; font-weight: 750; }
.resolved-answers article { margin-top: 12px; border-left: 2px solid rgba(121, 230, 196, .35); padding-left: 11px; }
.resolved-answers article b { overflow-wrap: anywhere; color: var(--muted-strong); font-size: 10px; }
.resolved-answers article p { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; line-height: 1.5; }
.positive-copy { color: var(--positive); font-size: 12px; line-height: 1.6; }
.dimension-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.dimension-grid > div { display: grid; grid-template-columns: 1fr auto; gap: 7px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.dimension-grid span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.dimension-grid b { font-size: 12px; }
.dimension-grid progress { grid-column: 1 / -1; width: 100%; height: 5px; border: 0; accent-color: var(--cyan); }
.outcome-checklist { display: grid; gap: 9px; margin-top: 13px; }
.outcome-checklist article { display: grid; grid-template-columns: 11px 1fr; gap: 11px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.outcome-checklist i { width: 9px; height: 9px; margin-top: 4px; border: 2px solid var(--muted); border-radius: 50%; }
.outcome-checklist article.signal i { border-color: var(--positive); background: var(--positive); }
.outcome-checklist article.partial i { border-color: #fbbf24; background: #fbbf24; }
.outcome-checklist article.missing i { border-color: var(--danger); }
.outcome-checklist b { font-size: 10px; text-transform: uppercase; }
.outcome-checklist p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.outcome-checklist article.signal b { color: var(--positive); }
.outcome-checklist article.partial b { color: #fbbf24; }
.outcome-checklist article.missing b { color: var(--danger); }
.refine-questions { border: 1px solid rgba(251, 191, 36, .3); border-radius: 10px; padding: 14px 16px; background: rgba(92, 60, 5, .12); }
.refine-questions small { color: #fbbf24; font: 9px ui-monospace, monospace; letter-spacing: .1em; }
.refine-questions ol { margin: 10px 0 0; padding-left: 20px; }
.refine-questions li, .refine-questions p { color: var(--muted-strong); font-size: 11px; line-height: 1.55; }
.refine-questions p { margin: 8px 0 0; }
.ambiguity-dialog { width: min(760px, calc(100% - 32px)); }
.qa-confidence { display: grid; gap: 8px; border: 1px solid rgba(121, 230, 196, .28); border-radius: 12px; padding: 14px; background: rgba(7, 54, 49, .14); }
.qa-confidence > div { display: flex; justify-content: space-between; gap: 14px; color: var(--muted-strong); font-size: 11px; }
.qa-confidence strong { color: var(--positive); font-size: 18px; }
.qa-confidence small { color: var(--positive); font: 9px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.qa-question { border: 1px solid rgba(125, 211, 252, .28); border-radius: 12px; padding: 18px; background: rgba(14, 73, 104, .1); }
.qa-question > small { color: var(--cyan) !important; font: 9px ui-monospace, monospace; letter-spacing: .1em; }
.qa-question strong { overflow-wrap: anywhere; font-size: 17px; line-height: 1.45; }
.qa-question textarea { margin-top: 8px; min-height: 140px; }
.qa-question > span { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.45; }
.qa-review { border: 1px solid rgba(121, 230, 196, .32); border-radius: 12px; padding: 20px; background: rgba(7, 54, 49, .16); }
.qa-review small { color: var(--positive); font: 9px ui-monospace, monospace; letter-spacing: .1em; }
.qa-review h3 { margin: 8px 0; overflow-wrap: anywhere; font-size: 20px; }
.qa-review p { margin: 0; color: var(--muted-strong); font-size: 12px; line-height: 1.55; }
.source-dialog { width: min(980px, calc(100% - 32px)); }
.source-meta { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 15px; }
.source-meta span { color: var(--muted); font: 9px ui-monospace, monospace; letter-spacing: .1em; }
.source-meta code { overflow-wrap: anywhere; color: var(--positive); font: 11px/1.5 ui-monospace, monospace; }
.source-dialog pre {
  max-width: 100%;
  max-height: 58vh;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: #050814;
  color: #d7e7f5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font: 12px/1.65 ui-monospace, monospace;
}
.graph-column { display: grid; gap: 10px; align-content: center; }
.graph-column.center { gap: 16px; }
.graph-label { margin-bottom: 2px; color: #64748b; font: 9px ui-monospace, monospace; letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.graph-node {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  padding: 15px;
  background: rgba(12, 18, 38, .95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}
.graph-node small { color: var(--cyan); font: 9px ui-monospace, monospace; letter-spacing: .08em; }
.graph-node b { overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; }
.graph-node span { color: var(--muted); font-size: 10px; }
.graph-node.capsule-node { border-color: rgba(167, 139, 250, .65); background: linear-gradient(135deg, rgba(55, 48, 163, .35), rgba(12, 18, 38, .95)); }
.graph-node.version-node { border-color: rgba(121, 230, 196, .42); }
.graph-node.component-node { padding: 11px 13px; }
.graph-node.muted-node { opacity: .65; }
.graph-connector { height: 1px; border-top: 1px solid rgba(125, 211, 252, .55); text-align: center; }
.graph-connector span { position: relative; top: -18px; color: #72829b; font: 9px ui-monospace, monospace; text-transform: uppercase; }
.graph-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--muted); font-size: 11px; }
.graph-legend span { display: flex; align-items: center; gap: 7px; }
.graph-legend i { width: 9px; height: 9px; border: 2px solid var(--cyan); border-radius: 50%; }
.graph-legend .capsule-node { border-color: var(--violet); }
.graph-legend .version-node { border-color: var(--positive); }
.graph-legend .component-node { border-color: #60a5fa; }

.evaluation-score { display: flex; justify-content: space-between; align-items: center; margin: 15px 0 20px; border: 1px solid var(--line); border-radius: 12px; padding: 15px; }
.evaluation-score.pass { border-color: rgba(121, 230, 196, .42); background: rgba(7, 54, 49, .28); }
.evaluation-score.warn { border-color: rgba(251, 191, 36, .45); background: rgba(92, 60, 5, .24); }
.evaluation-score span { color: var(--muted); font: 10px ui-monospace, monospace; }
.evaluation-section { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.evaluation-section > small { color: var(--cyan); font: 9px ui-monospace, monospace; letter-spacing: .12em; }
.evaluation-section p, .evaluation-section li { color: var(--muted); font-size: 12px; line-height: 1.55; }
.component-result { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.component-result b { color: var(--muted-strong); }
.component-result span { color: var(--muted); }

.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.analytics-grid .tool-panel { margin-top: 0; min-height: 310px; }
.bar-list { display: grid; gap: 17px; margin-top: 26px; }
.bar-list > div { display: grid; grid-template-columns: 90px 1fr 28px; gap: 12px; align-items: center; }
.bar-list span { color: var(--muted); font-size: 11px; }
.bar-list progress { width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 99px; background: #1d2943; }
.bar-list progress::-webkit-progress-bar { background: #1d2943; }
.bar-list progress::-webkit-progress-value { border-radius: 99px; background: var(--gradient); }
.bar-list progress::-moz-progress-bar { border-radius: 99px; background: var(--gradient); }
.bar-list strong { font-size: 12px; text-align: right; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; align-content: flex-start; }
.tag-cloud span, .template-card > div span { border: 1px solid var(--line); border-radius: 99px; padding: 7px 10px; color: var(--muted-strong); font-size: 11px; }
.tag-cloud b { margin-left: 5px; color: var(--cyan); }

.template-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; margin-top: 35px; }
.template-card { min-height: 300px; display: flex; flex-direction: column; }
.template-card > small { color: var(--cyan); font: 10px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.template-card p { color: var(--muted); line-height: 1.6; }
.template-card > div { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 22px; }
.template-card .button { width: max-content; }

.import-dialog { width: min(760px, calc(100% - 32px)); }
.drop-zone {
  display: grid !important;
  place-items: center;
  min-height: 120px;
  border: 1px dashed rgba(125, 211, 252, .5);
  border-radius: 12px;
  background: rgba(56, 189, 248, .04);
  color: var(--cyan);
  cursor: pointer;
}
.drop-zone.dragging { border-color: var(--violet); background: rgba(167, 139, 250, .1); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-zone small { color: var(--muted); }
.import-divider { display: flex; align-items: center; gap: 12px; color: #64748b; font-size: 10px; text-transform: uppercase; }
.import-divider::before, .import-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.import-preview { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.import-preview article { display: flex; justify-content: space-between; gap: 14px; padding: 13px; border-bottom: 1px solid var(--line); }
.import-preview article:last-child { border-bottom: 0; }
.import-preview article > div { display: grid; gap: 5px; min-width: 0; }
.import-preview article span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.import-preview article button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: auto auto auto; justify-content: space-between; }
  .site-header nav {
    position: absolute;
    top: 83px;
    left: 0;
    right: 0;
    display: none;
    padding: 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 7, 19, .98);
  }
  .site-header nav.open { display: grid; }
  .nav-toggle { display: block; }
  .section-intro { grid-template-columns: 1fr; }
  .cft-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .capsule-anatomy { grid-template-columns: 1fr; }
  .capsule-core { width: min(500px, 80%); margin: auto; }
  .lifecycle { grid-template-columns: repeat(3, 1fr); }
  .comparison { grid-template-columns: 1fr; }
  .comparison > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .comparison aside { padding: 25px; }
  .enterprise-grid, .pricing-grid { grid-template-columns: 1fr; }
  .stack-row, .split-section { grid-template-columns: 1fr; }
  .split-section > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .workspace-page { grid-template-columns: minmax(0, 1fr); }
  .workspace-nav { position: static; width: 100%; min-width: 0; max-width: 100vw; height: auto; overflow: hidden; }
  .workspace-nav nav {
    display: flex;
    gap: 6px;
    margin-top: 22px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }
  .workspace-nav nav a { flex: 0 0 auto; }
  .workspace-nav > div { margin-top: 25px; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .workspace-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }
  .fidelity-workbench { grid-template-columns: 1fr; }
  .priority-alert { grid-template-columns: 1fr; }
  .graph-connector { width: 1px; height: 45px; margin: auto; border-top: 0; border-left: 1px solid rgba(125, 211, 252, .55); }
  .graph-connector span { top: 12px; left: 8px; }
}

@media (max-width: 650px) {
  body { background-size: auto, auto, 32px 32px, 32px 32px, auto; }
  .site-header { min-height: 72px; padding: 12px 17px; }
  .site-header nav { top: 71px; }
  .site-header > .button { display: none; }
  .brand-lockup small { display: none; }
  .hero { min-height: auto; padding: 70px 17px 88px; }
  .hero-emblem { width: 88px; height: 88px; }
  .hero h1 { font-size: 54px; }
  .hero-lede { font-size: 16px; }
  .actions { flex-direction: column; width: 100%; }
  .actions > * { width: 100%; }
  .proof { grid-template-columns: 1fr; }
  .proof span { min-height: 63px; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof span:last-child { border-bottom: 0; }
  .artifact-window { width: 100%; margin-top: 38px; }
  .artifact-head { padding: 25px 20px 18px; }
  .artifact-head h2 { font-size: 21px; }
  .artifact-fields div { grid-template-columns: 1fr; gap: 7px; padding: 16px 20px; }
  .version-row { flex-wrap: wrap; padding: 19px 20px; }
  .section, .fabric-section { padding: 88px 17px; }
  .manifesto { padding: 88px 17px; }
  .cft-grid, .feature-grid { grid-template-columns: 1fr; }
  .capsule-anatomy li { grid-template-columns: 1fr; }
  .lifecycle { grid-template-columns: 1fr; }
  .lifecycle li { min-height: 110px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stack-layer, .stack-row > div { grid-template-columns: 1fr; gap: 10px; }
  .stack-row small { grid-column: 1; }
  .api-links { grid-template-columns: 1fr; }
  .orbit { min-height: 450px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; padding: 25px; }
  .orbit::before, .orbit::after { display: none; }
  .orbit > span { position: static !important; margin: 4px; }
  .orbit-core { width: 180px; height: 180px; }
  .split-section > div { padding: 75px 17px; }
  .section-intro h2 { font-size: 43px; }
  .workspace-main { padding: 25px 16px; }
  .workspace-nav { padding: 18px 16px; }
  .workspace-nav > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
  .workspace-nav > div small { width: 100%; }
  .workspace-nav > div strong { margin: 0; }
  .workspace-main > header { align-items: flex-start; gap: 16px; }
  .workspace-main h1 { font-size: 39px; }
  .workspace-actions { flex-direction: column-reverse; }
  .workspace-actions .button { min-height: 40px; padding: 8px 13px; font-size: 12px; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .capsule-list > header { display: grid; gap: 15px; }
  .capsule-list input { width: 100%; }
  .form-columns { flex-direction: column; }
  .template-grid { grid-template-columns: 1fr; }
  .tool-panel { padding: 20px; }
  .tool-panel > header { display: grid; }
  .tool-panel > header label { width: 100%; }
  .result-meta { grid-template-columns: 1fr; }
  .component-result { grid-template-columns: 1fr; }
  .graph-summary { grid-template-columns: 1fr 1fr; }
  .intent-map-head { align-items: flex-start; flex-direction: column; }
  .dimension-grid { grid-template-columns: 1fr; }
  .criteria-list article { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
}
