:root {
  color-scheme: dark;
  --bg: #05070a;
  --panel: rgba(12, 17, 24, 0.82);
  --line: rgba(235, 241, 247, 0.14);
  --text: #eef4f8;
  --muted: rgba(238, 244, 248, 0.68);
  --faint: rgba(238, 244, 248, 0.45);
  --cyan: #7ad7df;
  --blue: #7d9bff;
  --amber: #e2bc72;
  --green: #91cc8f;
  --orange: #f0975c;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(rgba(122, 215, 223, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 215, 223, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(122, 215, 223, 0.14), transparent 20rem),
    radial-gradient(circle at 82% 74%, rgba(240, 151, 92, 0.1), transparent 22rem),
    linear-gradient(180deg, #071018, var(--bg));
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
}

body,
button,
input {
  font: 400 1rem/1.5 Arial, Helvetica, sans-serif;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) clamp(14px, 3vw, 34px) calc(72px + env(safe-area-inset-bottom));
}

.topbar {
  order: 1;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 8px 0;
  backdrop-filter: blur(18px);
}

.brand {
  flex: 0 0 auto;
  color: #f8fbff;
  font-weight: 900;
  text-decoration: none;
}

.topbar-links {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.topbar-link {
  flex: 0 1 auto;
  overflow: hidden;
  min-height: 34px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(238, 244, 248, 0.055);
  border: 1px solid rgba(238, 244, 248, 0.12);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  order: 2;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: clamp(34px, 7vw, 78px) 0 clamp(20px, 4vw, 44px);
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  color: #f8fbff;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.94;
}

h2 {
  color: #f8fbff;
  font-size: clamp(1.4rem, 3vw, 2.35rem);
  line-height: 1.05;
}

h3 {
  color: #f8fbff;
  font-size: 1.02rem;
}

.hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.24rem);
}

.orientation-panel {
  order: 3;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
  padding: clamp(12px, 2vw, 16px);
}

.orientation-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  background: rgba(5, 7, 10, 0.28);
  border: 1px solid rgba(238, 244, 248, 0.1);
  border-radius: 8px;
}

.orientation-card.is-primary {
  background: rgba(122, 215, 223, 0.08);
  border-color: rgba(122, 215, 223, 0.26);
}

.orientation-card span {
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.orientation-card strong {
  min-width: 0;
  color: #f8fbff;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  overflow-wrap: anywhere;
}

.orientation-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.map-section {
  order: 7;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}

.graph-wrap,
.event-panel,
.mobile-relationship-card,
.orientation-panel,
.shared-stack-section,
.comparison-section,
.runtime-map-section,
.workflow-map-section,
.system-status,
.stack-summary-section,
.next-review-section,
.brief-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.graph-wrap {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: clamp(12px, 2vw, 18px);
}

.section-heading p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 0.94rem;
}

.mobile-relationship-card {
  display: none;
  gap: 12px;
  min-width: 0;
  padding: clamp(14px, 3vw, 18px);
}

.relationship-copy {
  color: var(--muted);
  font-size: 0.94rem;
}

.relationship-records {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.relationship-records::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 5px;
  width: 1px;
  background: linear-gradient(180deg, rgba(122, 215, 223, 0.8), rgba(226, 188, 114, 0.6));
}

.relationship-record-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 11px;
  background: rgba(9, 13, 18, 0.58);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 8px;
}

.relationship-record-card::before {
  content: "";
  position: absolute;
  top: 17px;
  left: -18px;
  width: 11px;
  height: 11px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

.relationship-record-card span,
.relationship-record-card small {
  color: var(--accent);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.relationship-record-card h3 {
  min-width: 0;
  color: #f8fbff;
  font-size: 0.94rem;
  line-height: 1.2;
}

.relationship-record-card p {
  color: var(--muted);
  font-size: 0.82rem;
}

.advanced-filters {
  display: grid;
  gap: 10px;
}

.advanced-filters summary {
  display: none;
}

.graph-toolbar {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.1fr 0.9fr;
  gap: 12px;
  min-width: 0;
}

.graph-toolbar > div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.graph-toolbar span {
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.button-row button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(238, 244, 248, 0.055);
  border: 1px solid rgba(238, 244, 248, 0.12);
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 900;
}

.button-row button.is-active {
  color: #061014;
  background: var(--cyan);
  border-color: var(--cyan);
}

.graph-canvas {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(122, 215, 223, 0.08), transparent 26rem),
    rgba(5, 7, 10, 0.42);
  border: 1px solid rgba(238, 244, 248, 0.08);
  border-radius: 8px;
}

.graph-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.graph-links line {
  stroke: rgba(238, 244, 248, 0);
  stroke-width: 0.28;
  transition: stroke 220ms ease, stroke-width 220ms ease, x1 220ms ease, x2 220ms ease, y1 220ms ease, y2 220ms ease;
}

.graph-links line.is-visible {
  stroke: rgba(238, 244, 248, 0.2);
}

.graph-links line.is-faded {
  stroke: rgba(238, 244, 248, 0.08);
  stroke-dasharray: 1.2 1.4;
}

.graph-links line.is-strong {
  stroke: rgba(122, 215, 223, 0.8);
  stroke-width: 0.54;
}

.graph-links line.is-influence {
  stroke: rgba(226, 188, 114, 0.72);
  stroke-width: 0.64;
}

.group-label {
  position: absolute;
  z-index: 1;
  color: rgba(238, 244, 248, 0.44);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.group-label.core {
  left: 42%;
  top: 7%;
}

.group-label.products {
  left: 4%;
  top: 10%;
}

.group-label.orientation {
  right: 4%;
  top: 10%;
}

.group-label.operations {
  left: 5%;
  bottom: 8%;
}

.group-label.memory {
  right: 6%;
  bottom: 8%;
}

.graph-node {
  --node: var(--cyan);
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  z-index: 2;
  display: grid;
  gap: 1px;
  min-width: 88px;
  min-height: 52px;
  padding: 9px 11px;
  color: #f8fbff;
  background: rgba(9, 13, 18, 0.92);
  border: 1px solid color-mix(in srgb, var(--node) 42%, transparent);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(122, 215, 223, 0), 0 12px 34px rgba(0, 0, 0, 0.34);
  font-size: 0.84rem;
  font-weight: 900;
  opacity: 0;
  overflow-wrap: anywhere;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease, left 220ms ease, top 220ms ease;
}

.graph-node span {
  color: var(--node);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.graph-node.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(calc(0.94 + (min(var(--weight, 1), 5) * 0.018)));
}

.graph-node.is-faded {
  opacity: 0.38;
  filter: saturate(0.62);
}

.graph-node.is-active {
  box-shadow: 0 0 0 calc(min(var(--weight, 1), 5) * 1px) color-mix(in srgb, var(--node) 10%, transparent), 0 12px 34px rgba(0, 0, 0, 0.34);
}

.graph-node.is-focus {
  z-index: 4;
  background: color-mix(in srgb, var(--node) 16%, rgba(9, 13, 18, 0.95));
  border-color: color-mix(in srgb, var(--node) 64%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--node) 14%, transparent), 0 16px 44px rgba(0, 0, 0, 0.42);
}

.graph-node.is-neighbor {
  z-index: 3;
}

.graph-node.is-visible:hover {
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--node) 16%, transparent), 0 16px 44px rgba(0, 0, 0, 0.4);
}

.node-products,
.accent-orange {
  --node: var(--orange);
  --accent: var(--orange);
}

.node-orientation,
.accent-amber {
  --node: var(--amber);
  --accent: var(--amber);
}

.node-operations,
.accent-blue {
  --node: var(--blue);
  --accent: var(--blue);
}

.node-memory,
.accent-green {
  --node: var(--green);
  --accent: var(--green);
}

.node-core,
.accent-cyan {
  --node: var(--cyan);
  --accent: var(--cyan);
}

.type-private,
.type-boundary {
  border-style: dashed;
}

.type-event {
  max-width: 142px;
  border-radius: 8px;
}

.type-concept {
  max-width: 124px;
}

.type-note {
  --node: var(--green);
  border-radius: 8px;
}

.type-code {
  --node: var(--blue);
  border-radius: 8px;
}

.type-data {
  --node: var(--amber);
  border-radius: 8px;
}

.type-photo {
  --node: var(--orange);
  border-radius: 999px;
}

.time-control {
  display: grid;
  gap: 10px;
}

.time-control label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.time-control output {
  color: #f8fbff;
}

.time-range {
  width: 100%;
  accent-color: var(--cyan);
}

.time-ticks {
  display: grid;
  grid-template-columns: repeat(var(--tick-count, 5), 1fr);
  gap: 7px;
}

.time-ticks button {
  min-height: 38px;
  color: var(--muted);
  background: rgba(238, 244, 248, 0.055);
  border: 1px solid rgba(238, 244, 248, 0.12);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.time-ticks button.is-active {
  color: #061014;
  background: var(--cyan);
  border-color: var(--cyan);
}

.event-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.event-panel span,
.project-card span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-panel p,
.project-card p,
.project-card small {
  color: var(--muted);
}

.event-panel strong {
  display: block;
  margin-top: 6px;
  color: #f8fbff;
  font-size: 0.96rem;
}

.support-row {
  order: 4;
  display: grid;
  gap: 14px;
  margin-top: clamp(20px, 4vw, 42px);
}

.section-heading {
  display: grid;
  gap: 5px;
}

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

.project-card {
  --accent: var(--cyan);
  display: grid;
  gap: 8px;
  min-height: 260px;
  padding: 14px;
  background: rgba(12, 17, 24, 0.72);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 8px;
}

.project-card.is-current {
  background: color-mix(in srgb, var(--accent) 12%, rgba(12, 17, 24, 0.72));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}

.project-card span {
  color: var(--accent);
}

.project-card small {
  font-size: 0.78rem;
}

.project-state {
  padding-top: 2px;
  color: #f8fbff;
  font-weight: 700;
}

.project-facts {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
}

.project-facts div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.project-facts dt {
  color: var(--faint);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-facts dd {
  min-width: 0;
  margin: 0;
  color: #f8fbff;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.brief-section {
  order: 4;
  display: grid;
  gap: 14px;
  margin-top: 0;
  padding: clamp(14px, 2.4vw, 22px);
}

.brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.brief-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  background: rgba(5, 7, 10, 0.34);
  border: 1px solid rgba(122, 215, 223, 0.22);
  border-radius: 8px;
}

.brief-card span,
.brief-card small,
.brief-list strong {
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brief-card p {
  max-width: 860px;
  color: var(--muted);
}

.brief-card-body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.brief-list {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  background: rgba(12, 17, 24, 0.54);
  border: 1px solid rgba(238, 244, 248, 0.09);
  border-radius: 8px;
}

.brief-list ul {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.brief-list li {
  overflow-wrap: anywhere;
}

.shared-stack-section,
.comparison-section,
.runtime-map-section,
.workflow-map-section,
.system-status,
.next-review-section {
  display: grid;
  gap: 14px;
  margin-top: clamp(20px, 4vw, 42px);
  padding: clamp(14px, 2.4vw, 22px);
}

.shared-stack-section {
  order: 5;
}

.comparison-section {
  order: 6;
}

.runtime-map-section {
  order: 7;
}

.workflow-map-section {
  order: 8;
}

.system-status {
  order: 9;
}

.stack-summary-section {
  order: 10;
  display: grid;
  gap: 14px;
  margin-top: clamp(20px, 4vw, 42px);
  padding: clamp(14px, 2.4vw, 22px);
}

.next-review-section {
  order: 11;
}

.tool-grid,
.comparison-grid,
.runtime-grid,
.workflow-variants,
.summary-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tool-grid,
.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-card,
.comparison-card,
.runtime-card,
.workflow-card,
.summary-card,
.review-card,
.status-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background: rgba(5, 7, 10, 0.34);
  border: 1px solid rgba(238, 244, 248, 0.1);
  border-radius: 8px;
}

.tool-card span,
.comparison-card span,
.runtime-card span,
.workflow-card span,
.summary-card span,
.review-card span,
.status-card > span {
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-card p,
.tool-card small,
.comparison-card dd,
.runtime-card p,
.runtime-card li span,
.workflow-card p,
.workflow-card li,
.summary-card p,
.review-card p,
.status-card p,
.connection-pill {
  color: var(--muted);
}

.tool-card small,
.connection-pill {
  font-size: 0.78rem;
}

.comparison-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.comparison-list div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.comparison-list dt {
  color: var(--faint);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.comparison-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.runtime-card ul,
.workflow-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.runtime-card li {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(238, 244, 248, 0.08);
}

.runtime-card li:first-child {
  padding-top: 0;
  border-top: 0;
}

.runtime-card li strong,
.summary-card strong {
  color: #f8fbff;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.workflow-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.workflow-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  min-height: 92px;
  padding: 12px;
  background: rgba(122, 215, 223, 0.08);
  border: 1px solid rgba(122, 215, 223, 0.22);
  border-radius: 8px;
}

.workflow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 8px;
  height: 1px;
  background: rgba(122, 215, 223, 0.45);
}

.workflow-step span {
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 900;
}

.workflow-step strong {
  color: #f8fbff;
  font-size: 0.92rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.status-card {
  min-height: 92px;
  border-color: rgba(145, 204, 143, 0.28);
}

.status-card > span {
  color: var(--green);
}

.status-card strong {
  color: #f8fbff;
  font-size: 0.98rem;
}

.status-card p {
  font-size: 0.82rem;
}

.status-card.has-gap {
  border-color: rgba(226, 188, 114, 0.32);
}

.status-card.has-gap > span {
  color: var(--amber);
}

.connection-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.connection-pill {
  min-width: 0;
  padding: 4px 7px;
  background: rgba(238, 244, 248, 0.055);
  border: 1px solid rgba(238, 244, 248, 0.09);
  border-radius: 8px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.connection-pill.is-connected {
  color: var(--green);
  border-color: rgba(145, 204, 143, 0.24);
}

.connection-pill.is-planned {
  color: var(--amber);
  border-color: rgba(226, 188, 114, 0.24);
}

.connection-pill.is-not-connected {
  color: var(--orange);
  border-color: rgba(240, 151, 92, 0.24);
}

.connection-pill.is-not-applicable {
  color: var(--faint);
}

.plain-stack-section,
.ecosystem-overview-section,
.shared-foundation-section,
.project-types-section,
.runtime-deployment-section,
.needs-review-section {
  display: grid;
  gap: 14px;
  margin-top: clamp(18px, 3.5vw, 34px);
  padding: clamp(14px, 2.4vw, 22px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.visual-stack-shell {
  gap: 0;
}

.plain-stack-section {
  order: 4;
}

.ecosystem-overview-section {
  order: 2;
  margin-top: 12px;
}

.ecosystem-overview-section h1 {
  max-width: 760px;
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 0.96;
}

.shared-foundation-section {
  order: 3;
}

.project-types-section {
  order: 4;
}

.runtime-deployment-section {
  order: 5;
}

.needs-review-section {
  order: 6;
}

.stack-layer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr 1.05fr;
  gap: 8px;
}

.stack-layer-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  min-height: 142px;
  padding: 12px;
  background: rgba(5, 7, 10, 0.34);
  border: 1px solid rgba(238, 244, 248, 0.1);
  border-radius: 8px;
}

.layer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.layer-card-top > span {
  color: var(--cyan);
  font-size: 0.64rem;
  font-weight: 900;
}

.stack-layer-card h3 {
  color: #f8fbff;
  font-size: 0.94rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.stack-layer-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  padding: 3px 6px;
  color: var(--faint);
  background: rgba(238, 244, 248, 0.055);
  border: 1px solid rgba(238, 244, 248, 0.1);
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.status-badge.is-connected {
  color: var(--green);
  border-color: rgba(145, 204, 143, 0.28);
}

.status-badge.is-planned {
  color: var(--amber);
  border-color: rgba(226, 188, 114, 0.28);
}

.status-badge.is-neutral {
  color: var(--cyan);
  border-color: rgba(122, 215, 223, 0.22);
}

.tool-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.tool-chip {
  min-width: 0;
  max-width: 100%;
  padding: 4px 7px;
  color: var(--text);
  background: rgba(122, 215, 223, 0.08);
  border: 1px solid rgba(122, 215, 223, 0.18);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.insight-grid,
.type-grid,
.runtime-deployment-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

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

.insight-card,
.type-card,
.runtime-compact-card,
.review-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background: rgba(5, 7, 10, 0.34);
  border: 1px solid rgba(238, 244, 248, 0.1);
  border-radius: 8px;
}

.insight-card span,
.type-card span,
.runtime-compact-card span,
.review-card span {
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.insight-card h3,
.type-card h3,
.runtime-compact-card h3,
.review-card h3 {
  color: #f8fbff;
  font-size: 1rem;
  line-height: 1.22;
}

.insight-card p,
.type-card p,
.runtime-compact-card p,
.review-card p,
.compact-copy,
.compact-project-row span,
.compact-list {
  color: var(--muted);
  font-size: 0.86rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.chip {
  min-width: 0;
  max-width: 100%;
  padding: 4px 7px;
  color: var(--text);
  background: rgba(122, 215, 223, 0.08);
  border: 1px solid rgba(122, 215, 223, 0.18);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.compact-project-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.compact-project-row {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(238, 244, 248, 0.08);
}

.compact-project-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.compact-project-row strong {
  color: #f8fbff;
  font-size: 0.92rem;
  line-height: 1.2;
}

.compact-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1rem;
}

.mode-card-grid,
.runtime-lane-grid,
.review-row-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.runtime-lane-card,
.review-row {
  display: grid;
  grid-template-columns: minmax(135px, 0.9fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  background: rgba(5, 7, 10, 0.34);
  border: 1px solid rgba(238, 244, 248, 0.1);
  border-radius: 8px;
}

.runtime-lane-card > div,
.review-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.runtime-lane-card strong,
.review-row strong,
.mode-project-row strong {
  color: #f8fbff;
  font-size: 0.9rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.runtime-lane-card span:not(.status-badge):not(.tool-chip),
.review-row span:not(.status-badge):not(.tool-chip),
.mode-project-main span {
  color: var(--muted);
  font-size: 0.82rem;
}

.runtime-lane-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.runtime-lane-card {
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 134px;
}

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

.mode-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background: rgba(5, 7, 10, 0.34);
  border: 1px solid rgba(238, 244, 248, 0.1);
  border-radius: 8px;
}

.mode-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.mode-card-header > span {
  color: var(--cyan);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mode-card h3 {
  color: #f8fbff;
  font-size: 1rem;
  line-height: 1.22;
}

.mode-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.38;
}

.mode-project-list {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.mode-project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(238, 244, 248, 0.08);
}

.mode-project-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.mode-project-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mode-project-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}

.stack-map-section,
.project-modes-section,
.runtime-lanes-section,
.needs-review-section {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stack-map-section {
  order: 2;
  margin-top: 12px;
}

.project-modes-section {
  order: 3;
}

.runtime-lanes-section {
  order: 4;
}

.needs-review-section {
  order: 5;
}

.stack-map-heading {
  display: grid;
  gap: 10px;
}

.stack-map-heading h1 {
  color: #f8fbff;
  font-size: clamp(2.1rem, 14vw, 4.8rem);
  line-height: 0.95;
}

.stack-map-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.stack-map-board {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.stack-map-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.stack-map-key > span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px;
  background: rgba(5, 7, 10, 0.34);
  border: 1px solid rgba(122, 215, 223, 0.12);
  border-radius: 8px;
}

.stack-map-key strong,
.project-card-top strong,
.runtime-lane-top strong,
.review-category-top strong {
  color: #f8fbff;
  font-size: 0.88rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.stack-map-lanes {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.stack-map-lane {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  background: rgba(5, 7, 10, 0.36);
  border: 1px solid rgba(238, 244, 248, 0.1);
  border-radius: 8px;
}

.stack-map-lane-head {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.stack-map-lane-head > span {
  color: var(--cyan);
  font-size: 0.62rem;
  font-weight: 900;
}

.stack-map-lane-head strong {
  color: #f8fbff;
  font-size: 0.96rem;
  line-height: 1.15;
}

.stack-map-cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.stack-map-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px;
  background: rgba(238, 244, 248, 0.035);
  border: 1px solid rgba(238, 244, 248, 0.09);
  border-radius: 8px;
}

.stack-map-cell span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.stack-map-cell strong {
  color: var(--faint);
  font-size: 0.72rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.stack-map-cell.is-connected {
  border-color: rgba(145, 204, 143, 0.28);
}

.stack-map-cell.is-connected strong {
  color: var(--green);
}

.stack-map-cell.is-planned {
  border-color: rgba(226, 188, 114, 0.32);
}

.stack-map-cell.is-planned strong {
  color: var(--amber);
}

.stack-map-cell.is-neutral {
  border-color: rgba(122, 215, 223, 0.18);
}

.stack-map-cell.is-neutral strong {
  color: var(--cyan);
}

.project-modes-grid,
.runtime-lanes-grid,
.needs-review-section .review-grid {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.project-mode-card,
.runtime-lane-card,
.review-category-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  background: rgba(5, 7, 10, 0.34);
  border: 1px solid rgba(238, 244, 248, 0.1);
  border-radius: 8px;
}

.project-card-top,
.runtime-lane-top,
.review-category-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.project-card-status,
.runtime-project-chips,
.review-project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.runtime-project-chips span,
.review-project-chips span {
  min-width: 0;
  padding: 4px 7px;
  color: var(--text);
  background: rgba(122, 215, 223, 0.08);
  border: 1px solid rgba(122, 215, 223, 0.18);
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.project-card-role {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

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

@media (min-width: 760px) {
  .stack-map-section,
  .project-modes-section,
  .runtime-lanes-section,
  .needs-review-section {
    gap: 16px;
    margin-top: 28px;
    padding: 22px;
  }

  .stack-map-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .stack-map-key {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stack-map-lane {
    grid-template-columns: minmax(220px, 0.74fr) minmax(0, 1.26fr);
    align-items: center;
    padding: 12px;
  }

  .stack-map-cells {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-modes-grid,
  .runtime-lanes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

.entry-app-shell {
  gap: 0;
  min-height: 100vh;
}

.view-switcher {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(238, 244, 248, 0.055);
  border: 1px solid rgba(238, 244, 248, 0.12);
  border-radius: 8px;
}

.view-switcher button {
  min-height: 30px;
  padding: 5px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 900;
}

.view-switcher button.is-active {
  color: #061014;
  background: var(--cyan);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.entry-app-section {
  order: 2;
  display: grid;
  gap: 12px;
  min-width: 0;
  margin-top: 12px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
}

.entry-app-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.entry-app-heading h1 {
  color: #f8fbff;
  font-size: clamp(2.4rem, 13vw, 5rem);
  line-height: 0.95;
}

.entry-count {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 3px 7px;
  color: var(--cyan);
  background: rgba(122, 215, 223, 0.08);
  border: 1px solid rgba(122, 215, 223, 0.2);
  border-radius: 8px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-view-dots {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px;
}

.entry-view-dots span {
  width: 7px;
  height: 7px;
  background: rgba(238, 244, 248, 0.22);
  border-radius: 999px;
  transition: background 140ms ease, transform 140ms ease;
}

.entry-view-dots span.is-active {
  background: var(--cyan);
  transform: scale(1.2);
}

.entry-workbench {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.entry-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.entry-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
  padding: 11px 34px 11px 12px;
  color: inherit;
  background: rgba(5, 7, 10, 0.34);
  border: 1px solid rgba(238, 244, 248, 0.1);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.entry-item.is-active {
  background: rgba(122, 215, 223, 0.09);
  border-color: rgba(122, 215, 223, 0.4);
}

.entry-item::after {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  color: var(--muted);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.entry-item.is-active::after {
  color: var(--cyan);
}

.entry-item:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.entry-item:hover {
  transform: translateY(-1px);
  border-color: rgba(122, 215, 223, 0.3);
}

.entry-item-main,
.entry-item-side {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.entry-item-side {
  justify-items: end;
  text-align: right;
}

.entry-item-main strong,
.detail-top h2,
.detail-line strong {
  min-width: 0;
  color: #f8fbff;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.entry-item-main strong {
  font-size: 0.9rem;
}

.entry-item-main small,
.entry-item-side small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.entry-item-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.entry-item-chips span {
  padding: 3px 6px;
  color: var(--text);
  background: rgba(122, 215, 223, 0.08);
  border: 1px solid rgba(122, 215, 223, 0.18);
  border-radius: 7px;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.15;
}

.entry-detail {
  order: -1;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  background: rgba(5, 7, 10, 0.44);
  border: 1px solid rgba(122, 215, 223, 0.22);
  border-radius: 8px;
}

.entry-detail[hidden] {
  display: none;
}

.detail-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
}

.detail-top > div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.detail-top > div > span,
.detail-line span,
.detail-chip-group > span {
  color: var(--cyan);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.detail-top h2 {
  font-size: 1.35rem;
}

.detail-close {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 9px;
  color: var(--cyan);
  background: rgba(122, 215, 223, 0.08);
  border: 1px solid rgba(122, 215, 223, 0.28);
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
}

.detail-close:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.detail-line {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  background: rgba(238, 244, 248, 0.035);
  border: 1px solid rgba(238, 244, 248, 0.08);
  border-radius: 8px;
}

.detail-line strong {
  font-size: 0.82rem;
}

.detail-chip-group {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.detail-chip-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

@media (min-width: 860px) {
  .entry-app-section {
    gap: 18px;
    margin-top: 28px;
    padding: 24px;
  }

  .entry-workbench {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
    align-items: start;
  }

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

  .entry-detail {
    position: sticky;
    top: 78px;
    order: 0;
  }
}

@media (max-width: 640px) {
  .entry-view-dots {
    display: inline-flex;
  }
}

@media (max-width: 920px) {
  .map-section {
    grid-template-columns: 1fr;
  }

  .orientation-panel {
    grid-template-columns: 1fr;
  }

  .graph-canvas {
    min-height: 520px;
  }

  .project-grid,
  .brief-card-body,
  .tool-grid,
  .comparison-grid,
  .runtime-grid,
  .workflow-variants,
  .summary-grid,
  .status-grid,
  .type-grid,
  .stack-layer-grid,
  .runtime-lane-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-row {
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr) auto;
  }

  .workflow-flow {
    grid-template-columns: 1fr;
  }

  .workflow-step:not(:last-child)::after {
    display: none;
  }

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

@media (max-width: 640px) {
  .app-shell {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    padding: max(8px, env(safe-area-inset-top)) 10px calc(86px + env(safe-area-inset-bottom));
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 4px 0;
  }

  .topbar-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px;
    overflow-x: visible;
    scrollbar-width: none;
  }

  .topbar-links::-webkit-scrollbar {
    display: none;
  }

  .topbar-link {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 4px 6px;
    font-size: 0.66rem;
  }

  .hero {
    gap: 8px;
    padding: 8px 0 6px;
  }

  h1 {
    max-width: min(100%, 350px);
    overflow-wrap: anywhere;
    font-size: clamp(1.65rem, 8vw, 2.1rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.08rem, 7vw, 1.55rem);
  }

  .hero p {
    max-width: 100%;
    color: var(--faint);
    font-size: 0.8rem;
  }

  .eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .orientation-panel {
    order: 4;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 0;
    padding: 8px;
  }

  .orientation-card {
    gap: 4px;
    padding: 8px;
  }

  .orientation-card span {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .orientation-card strong {
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .orientation-card p {
    display: none;
  }

  .section-heading p:not(.eyebrow) {
    font-size: 0.86rem;
  }

  .map-section {
    order: 8;
    gap: 10px;
  }

  .map-section.is-mobile-relationship {
    grid-template-columns: 1fr;
  }

  .mobile-relationship-card:not([hidden]) {
    display: grid;
  }

  .relationship-copy {
    font-size: 0.86rem;
  }

  .graph-wrap {
    gap: 9px;
    padding: 9px;
  }

  .advanced-filters {
    gap: 8px;
  }

  .advanced-filters summary {
    display: block;
    min-height: 34px;
    padding: 7px 10px;
    color: var(--muted);
    background: rgba(238, 244, 248, 0.055);
    border: 1px solid rgba(238, 244, 248, 0.12);
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 900;
  }

  .advanced-filters[open] summary {
    color: #061014;
    background: var(--cyan);
    border-color: var(--cyan);
  }

  .graph-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 7px;
    background: rgba(238, 244, 248, 0.035);
    border: 1px solid rgba(238, 244, 248, 0.08);
    border-radius: 8px;
  }

  .graph-toolbar > div {
    gap: 5px;
  }

  .graph-toolbar span {
    font-size: 0.58rem;
    letter-spacing: 0.09em;
  }

  .button-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  .button-row::-webkit-scrollbar {
    display: none;
  }

  .button-row button {
    flex: 0 0 auto;
    width: auto;
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
  }

  .graph-canvas {
    min-height: 360px;
  }

  .group-label {
    display: none;
  }

  .graph-links line.is-visible {
    stroke-width: 0.52;
  }

  .graph-links line.is-strong,
  .graph-links line.is-influence {
    stroke-width: 0.72;
  }

  .graph-node {
    width: min(112px, 31vw);
    min-width: 0;
    min-height: 54px;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 0.68rem;
    line-height: 1.12;
    overflow-wrap: break-word;
  }

  .graph-node span {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }

  .graph-node.is-visible {
    transform: translate(-50%, -50%) scale(1);
  }

  .graph-node.is-faded {
    opacity: 0.72;
  }

  .graph-node.is-focus {
    width: min(132px, 38vw);
    min-height: 62px;
    font-size: 0.74rem;
  }

  .type-concept {
    max-width: none;
  }

  .type-event {
    max-width: none;
  }

  .time-control label {
    display: grid;
    gap: 1px;
    font-size: 0.72rem;
  }

  .time-control {
    gap: 7px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    scroll-margin-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .time-ticks {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .time-ticks::-webkit-scrollbar {
    display: none;
  }

  .time-ticks button {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.64rem;
  }

  .event-panel {
    gap: 8px;
    padding: 12px;
    background: rgba(12, 17, 24, 0.66);
  }

  .event-panel span,
  .project-card span {
    font-size: 0.6rem;
    letter-spacing: 0.09em;
  }

  .event-panel p,
  .event-panel strong {
    font-size: 0.82rem;
  }

  .support-row {
    order: 5;
    gap: 10px;
    margin-top: 14px;
  }

  .section-heading {
    gap: 3px;
  }

  .section-heading h2 {
    font-size: 1rem;
  }

  .project-card {
    min-height: auto;
    gap: 5px;
    padding: 10px;
    background: rgba(12, 17, 24, 0.48);
    border-color: color-mix(in srgb, var(--accent) 20%, transparent);
  }

  .project-card h3 {
    font-size: 0.9rem;
  }

  .project-card p {
    font-size: 0.82rem;
  }

  .brief-section {
    order: 4;
    gap: 10px;
    margin-top: 18px;
    padding: 12px;
    background: rgba(12, 17, 24, 0.5);
  }

  .brief-card {
    gap: 9px;
    padding: 10px;
  }

  .brief-card h3 {
    font-size: 0.9rem;
  }

  .brief-card p,
  .brief-list ul,
  .brief-card small {
    font-size: 0.82rem;
  }

  .brief-card span,
  .brief-list strong {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

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

  .shared-stack-section,
  .comparison-section,
  .runtime-map-section,
  .workflow-map-section,
  .system-status,
  .stack-summary-section,
  .next-review-section,
  .plain-stack-section,
  .ecosystem-overview-section,
  .shared-foundation-section,
  .project-types-section,
  .runtime-deployment-section,
  .needs-review-section {
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    background: rgba(12, 17, 24, 0.5);
  }

  .tool-card,
  .comparison-card,
  .runtime-card,
  .workflow-card,
  .summary-card,
  .review-card,
  .status-card,
  .stack-layer-card,
  .insight-card,
  .mode-card,
  .type-card,
  .runtime-compact-card {
    gap: 7px;
    padding: 10px;
  }

  .tool-card h3,
  .comparison-card h3,
  .runtime-card h3,
  .workflow-card h3,
  .review-card h3,
  .status-card strong,
  .insight-card h3,
  .mode-card h3,
  .type-card h3,
  .runtime-compact-card h3 {
    font-size: 0.9rem;
  }

  .stack-layer-card h3 {
    font-size: 0.86rem;
  }

  .tool-card p,
  .tool-card small,
  .comparison-card dd,
  .runtime-card p,
  .runtime-card li span,
  .workflow-card p,
  .workflow-card li,
  .summary-card p,
  .review-card p,
  .status-card p,
  .connection-pill,
  .insight-card p,
  .mode-card p,
  .type-card p,
  .runtime-compact-card p,
  .compact-copy,
  .compact-project-row span,
  .stack-layer-card p,
  .tool-chip,
  .mode-project-main span {
    font-size: 0.82rem;
  }

  .tool-card span,
  .comparison-card span,
  .runtime-card span,
  .workflow-card span,
  .summary-card span,
  .review-card span,
  .status-card > span,
  .insight-card span,
  .mode-card-header > span,
  .type-card span,
  .runtime-compact-card span {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .tool-grid,
  .comparison-grid,
  .runtime-grid,
  .workflow-flow,
  .workflow-variants,
  .summary-grid,
  .review-grid,
  .status-grid,
  .insight-grid,
  .mode-card-grid,
  .type-grid,
  .runtime-deployment-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stack-layer-grid,
  .runtime-lane-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stack-layer-card {
    min-height: 118px;
    padding: 9px;
  }

  .layer-card-top {
    align-items: flex-start;
  }

  .runtime-lane-card,
  .review-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    padding: 10px;
  }

  .mode-card {
    padding: 10px;
  }

  .mode-project-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
  }

  .mode-project-badges {
    justify-content: flex-start;
  }

  .time-ticks,
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .graph-node,
  .graph-links line {
    transition: none;
  }
}
