:root {
  --surface: #fffdf8;
  --ink: #27231f;
  --muted: #766d62;
  --line: #d8cfc0;
  --orange: #ed762d;
  --blue: #2f6479;
  --green: #607b5b;
  --gold: #c99a34;
  --red: #b95b48;
  --violet: #766891;
  --cyan: #52979a;
  --olive: #767c4e;
  --shadow: 0 1rem 2.4rem rgba(39, 35, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(39, 35, 31, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(39, 35, 31, 0.035) 1px, transparent 1px),
    linear-gradient(140deg, #fbf5eb 0%, #eef2ec 48%, #f7efe4 100%);
  background-size: 2.4rem 2.4rem, 2.4rem 2.4rem, auto;
}

button {
  color: inherit;
  font: inherit;
}

.task-home,
.task-home button {
  -webkit-user-select: text;
  user-select: text;
}

.task-home {
  width: 100%;
  min-width: 0;
  padding: 1rem;
}

.shell {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(39, 35, 31, 0.13);
  border-radius: 0.65rem;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  gap: 1rem;
  align-items: end;
  padding: 0.35rem 0.25rem 0.75rem;
  border-bottom: 1px solid rgba(39, 35, 31, 0.1);
}

.page-head p {
  margin: 0 0 0.28rem;
  color: var(--orange);
  font-size: 0.73rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 0.98;
}

.status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.status span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.mode-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.mode-strip article {
  min-width: 0;
  min-height: 7.2rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(250, 246, 238, 0.72));
}

.mode-strip span,
.body-label,
.stage-rail em,
.card-meta,
.stage-number,
.task-kicker {
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mode-strip span {
  color: var(--orange);
}

.mode-strip b {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.05rem;
}

.mode-strip small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.35;
}

.stage-list {
  display: grid;
  min-width: 0;
  gap: 1rem;
}

.stage {
  --soft: color-mix(in srgb, var(--stage-color, var(--orange)) 12%, white);
  display: grid;
  grid-template-columns: minmax(16rem, clamp(22rem, 22vw, 34rem)) minmax(0, 1fr);
  min-width: 0;
  gap: 0.9rem;
  padding: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--stage-color, var(--orange)) 25%, var(--line));
  border-radius: 0.55rem;
  background:
    linear-gradient(90deg, var(--stage-color, var(--orange)) 0 0.42rem, transparent 0.42rem),
    linear-gradient(150deg, rgba(255, 255, 255, 0.88), var(--soft));
}

.stage-rail {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 0.85rem 0.85rem 0.85rem 1rem;
  cursor: pointer;
}

.stage-number,
.stage-rail em {
  color: color-mix(in srgb, var(--stage-color, var(--orange)) 68%, var(--muted));
}

.stage-rail em::before {
  content: "↺ ";
}

.stage-rail h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  line-height: 1;
}

.stage-rail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.stage-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.75rem;
}

.node-card {
  display: grid;
  align-content: start;
  height: 100%;
  min-width: 0;
  gap: 0.72rem;
  padding: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--card-color, var(--orange)) 22%, var(--line));
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.68);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.node-card.is-transitioning {
  border-color: color-mix(in srgb, var(--card-color, var(--orange)) 52%, var(--line));
  box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--card-color, var(--orange)) 18%, transparent);
}

.card-head {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 0.78rem;
  row-gap: 0.25rem;
  width: 100%;
  padding: 0.55rem;
  border: 0;
  border-radius: 0.42rem;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  position: relative;
  text-align: left;
}

.card-head.can-go-up {
  padding-right: 2.45rem;
}

.card-head.can-go-up::after {
  content: "↩";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid color-mix(in srgb, var(--card-color, var(--orange)) 30%, var(--line));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: color-mix(in srgb, var(--card-color, var(--orange)) 70%, var(--ink));
  font-size: 0.82rem;
  font-weight: 950;
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
}

.card-head.can-go-up .card-meta::before {
  content: "Zurueck · ";
}

.card-dot {
  grid-row: 1 / 4;
  width: 3rem;
  height: 3rem;
  border-radius: 0.42rem;
  background: var(--card-color, var(--orange));
}

.card-meta,
.card-head b,
.card-head small {
  grid-column: 2;
}

.card-meta {
  color: color-mix(in srgb, var(--card-color, var(--orange)) 66%, var(--muted));
}

.card-head b {
  min-width: 0;
  font-size: 1.14rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.card-head small {
  color: var(--muted);
  font-size: 0.82rem;
}

.card-body {
  display: grid;
  gap: 0.45rem;
}

.card-path {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  min-height: 1.65rem;
  align-items: center;
  padding: 0.28rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--card-color, var(--orange)) 14%, var(--line));
}

.card-path[hidden] {
  display: block !important;
  visibility: hidden;
  padding: 0;
  border-top: 0;
}

.card-path button {
  max-width: 100%;
  min-height: 1.45rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.card-path button + button::before {
  content: "›";
  margin: 0 0.38rem 0 0.2rem;
  color: color-mix(in srgb, var(--card-color, var(--orange)) 60%, var(--muted));
}

.body-label {
  color: color-mix(in srgb, var(--card-color, var(--orange)) 76%, var(--ink));
}

.child-list {
  display: grid;
  align-content: start;
  gap: 0.26rem;
  padding: 0.58rem;
  border: 1px solid color-mix(in srgb, var(--card-color, var(--orange)) 24%, var(--line));
  border-radius: 0.46rem;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-color, var(--orange)) 12%, transparent), transparent 60%),
    rgba(255, 255, 255, 0.5);
}

.child-group {
  display: grid;
  gap: 0.28rem;
  padding: 0.2rem 0;
}

.tree-list,
.tree-children {
  display: grid;
  gap: 0.18rem;
}

.tree-children {
  margin-left: calc((var(--tree-depth, 0) + 1) * 0.9rem);
  padding-left: 0.58rem;
  border-left: 1px solid color-mix(in srgb, var(--card-color, var(--orange)) 22%, var(--line));
}

.tree-children[hidden] {
  display: none;
}

.tree-toggle {
  padding-left: calc(0.34rem + var(--tree-depth, 0) * 0.2rem);
}

.child-group + .child-group {
  border-top: 1px solid color-mix(in srgb, var(--card-color, var(--orange)) 16%, var(--line));
  padding-top: 0.48rem;
  margin-top: 0.2rem;
}

.child-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.55rem;
  padding: 0 0.34rem;
  color: color-mix(in srgb, var(--card-color, var(--orange)) 70%, var(--ink));
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.child-group-head small,
.child-item small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.28rem;
  height: 1.28rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-color, var(--orange)) 14%, white);
  color: color-mix(in srgb, var(--card-color, var(--orange)) 58%, var(--muted));
  font-size: 0.64rem;
  font-weight: 900;
}

.child-group-items {
  display: grid;
  gap: 0.18rem;
}

.child-item {
  display: grid;
  grid-template-columns: 0.48rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.48rem;
  min-height: 1.85rem;
  width: 100%;
  padding: 0.2rem 0.34rem;
  border: 0;
  border-radius: 0.34rem;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.child-item:not(:has(small)) {
  grid-template-columns: 0.48rem minmax(0, 1fr);
}

.child-item::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--card-color, var(--orange));
}

.tree-toggle[aria-expanded]::before {
  content: "›";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.74rem;
  height: 0.74rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-color, var(--orange)) 14%, white);
  color: color-mix(in srgb, var(--card-color, var(--orange)) 70%, var(--ink));
  font-size: 0.72rem;
  font-weight: 950;
  transition: transform 140ms ease;
}

.tree-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.child-item:hover {
  background: rgba(255, 255, 255, 0.72);
}

.child-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 850;
}

.task-view {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.3rem;
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line));
  border-radius: 0.5rem;
  background:
    linear-gradient(90deg, var(--blue) 0 0.3rem, transparent 0.3rem),
    linear-gradient(145deg, color-mix(in srgb, var(--blue) 8%, white), rgba(255, 255, 255, 0.78));
  cursor: pointer;
}

.task-view[hidden] {
  display: none;
}

.task-kicker {
  color: color-mix(in srgb, var(--blue) 72%, var(--ink));
}

.task-view h3 {
  font-size: 1.12rem;
  line-height: 1.08;
}

.task-view p {
  margin: 0;
  color: var(--muted);
  line-height: 1.36;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: 0.45rem;
}

.task-grid button {
  min-height: 5.4rem;
  padding: 0.55rem;
  border: 1px solid color-mix(in srgb, var(--blue) 14%, var(--line));
  border-radius: 0.42rem;
  background: rgba(255, 255, 255, 0.62);
  text-align: left;
  cursor: pointer;
}

.task-grid button:hover {
  background: rgba(255, 255, 255, 0.86);
}

.task-grid span {
  display: block;
  color: color-mix(in srgb, var(--blue) 70%, var(--ink));
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-grid b {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.22;
}

.task-related {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.2rem;
}

.task-related[hidden] {
  display: none;
}

.task-related-label {
  color: color-mix(in srgb, var(--blue) 70%, var(--ink));
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.task-related-list button {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  min-height: 2rem;
  padding: 0.28rem 0.44rem;
  border: 1px solid color-mix(in srgb, var(--blue) 16%, var(--line));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.task-related-list button:hover {
  background: rgba(255, 255, 255, 0.94);
}

.task-related-list button.is-reference-only {
  border-style: dashed;
  color: color-mix(in srgb, var(--blue) 70%, var(--muted));
}

.task-related-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 900;
}

.task-related-list small {
  color: color-mix(in srgb, var(--blue) 62%, var(--muted));
  font-size: 0.62rem;
  font-weight: 900;
}

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

.task-space {
  display: grid;
  gap: 1rem;
}

.task-space[hidden] {
  display: none;
}

.task-space-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.task-back,
.task-space-path button {
  min-height: 2rem;
  padding: 0 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  cursor: pointer;
}

.task-back {
  color: var(--ink);
}

.task-space-path {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.task-space-path button + button::before {
  content: "↳ ";
  color: color-mix(in srgb, var(--blue) 65%, var(--muted));
}

.task-space-grid {
  display: grid;
  grid-template-columns: minmax(min(18rem, 100%), 28rem) minmax(0, 1fr);
  min-width: 0;
  gap: 0.9rem;
}

.task-hero,
.task-modules article {
  border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line));
  border-radius: 0.55rem;
  background:
    linear-gradient(90deg, var(--blue) 0 0.38rem, transparent 0.38rem),
    linear-gradient(145deg, color-mix(in srgb, var(--blue) 8%, white), rgba(255, 255, 255, 0.86));
}

.task-hero {
  min-height: 22rem;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1rem 1rem 1rem 1.2rem;
}

.task-hero span {
  color: color-mix(in srgb, var(--blue) 72%, var(--ink));
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.task-hero h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.98;
}

.task-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.task-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: 0.75rem;
}

.task-modules article {
  min-height: 11rem;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 0.85rem 0.85rem 0.85rem 1rem;
}

.task-modules span {
  color: color-mix(in srgb, var(--blue) 70%, var(--ink));
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-modules b {
  font-size: 1rem;
  line-height: 1.25;
}

@media (max-width: 78rem) {
  .stage {
    grid-template-columns: 1fr;
  }

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

  .task-space-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 52rem) {
  .task-home {
    padding: 0.65rem;
  }

  .page-head,
  .mode-strip,
  .stage-cards,
  .task-grid,
  .task-modules {
    grid-template-columns: 1fr;
  }

  .task-hero {
    min-height: 14rem;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .status {
    justify-content: start;
  }

  .stage {
    padding: 0.72rem;
  }

  .stage-rail {
    padding: 0.75rem 0.75rem 0.75rem 0.9rem;
  }

  .child-item span {
    white-space: normal;
  }
}

/* V3 visual pass: fixed card rhythm, centered work viewport, stronger but serious accents. */
:root {
  --surface: #f7f4ee;
  --paper: #fffdfa;
  --ink: #232528;
  --muted: #687078;
  --line: #d8d2c7;
  --orange: #e66d2f;
  --blue: #315f8f;
  --green: #4f7b63;
  --gold: #be8a2c;
  --red: #b95554;
  --violet: #6d5ea8;
  --cyan: #2f8f9d;
  --olive: #788047;
  --magenta: #a84e78;
  --teal: #257f73;
  --shadow: 0 1.1rem 2.6rem rgba(28, 31, 35, 0.12);
  --card-min-width: 28rem;
  --card-min-height: 27rem;
}

body {
  background:
    linear-gradient(90deg, rgba(35, 37, 40, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(35, 37, 40, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(230, 109, 47, 0.09), transparent 28rem),
    radial-gradient(circle at 82% 22%, rgba(47, 143, 157, 0.08), transparent 30rem),
    linear-gradient(135deg, #f4efe7 0%, #eef1ee 48%, #f9f5ed 100%);
  background-size: 2rem 2rem, 2rem 2rem, auto, auto, auto;
}

.task-home {
  display: flex;
  justify-content: center;
  padding: 1.4rem;
}

.shell {
  width: min(100%, 118rem);
  padding: 1.15rem;
  gap: 1.1rem;
  border-color: rgba(35, 37, 40, 0.12);
  border-radius: 0.75rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.97), rgba(255, 253, 250, 0.9)),
    var(--paper);
  box-shadow: var(--shadow);
}

.page-head {
  min-height: 9.5rem;
  align-items: center;
  padding: 0.75rem 0.9rem 1rem;
  border-bottom-color: rgba(35, 37, 40, 0.12);
}

.page-head p {
  color: color-mix(in srgb, var(--blue) 74%, var(--orange));
}

h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 4.5vw, 4.6rem);
  line-height: 0.95;
}

.status {
  max-width: 22rem;
}

.status span {
  min-height: 2.15rem;
  border-color: rgba(35, 37, 40, 0.13);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0.35rem 1rem rgba(35, 37, 40, 0.04);
}

.mode-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.mode-strip article {
  min-height: 6.4rem;
  padding: 0.95rem;
  border-radius: 0.5rem;
  border-color: rgba(35, 37, 40, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 245, 238, 0.76));
  box-shadow: inset 0 0.18rem 0 rgba(255, 255, 255, 0.8);
}

.mode-strip b {
  font-size: 1rem;
}

.stage-list {
  gap: 1.05rem;
}

.stage {
  grid-template-columns: clamp(16rem, 18vw, 20rem) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.65rem;
  background:
    linear-gradient(90deg, var(--stage-color, var(--orange)) 0 0.46rem, transparent 0.46rem),
    linear-gradient(120deg, color-mix(in srgb, var(--stage-color, var(--orange)) 9%, white), rgba(255, 255, 255, 0.84) 52%, color-mix(in srgb, var(--stage-color, var(--orange)) 5%, #f8f2e8));
  box-shadow: 0 0.5rem 1.6rem rgba(35, 37, 40, 0.055);
}

.stage-rail {
  min-height: var(--card-min-height);
  padding: 1rem 1rem 1rem 1.15rem;
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.34));
}

.stage-number {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--stage-color, var(--orange)) 16%, white);
  color: color-mix(in srgb, var(--stage-color, var(--orange)) 78%, var(--ink));
}

.stage-rail h2 {
  font-size: clamp(1.7rem, 2vw, 2.25rem);
  line-height: 0.98;
}

.stage-rail p {
  max-width: 18rem;
  font-size: 0.92rem;
}

.stage-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min-width)), 1fr));
  justify-content: stretch;
  align-items: stretch;
  gap: 0.85rem;
}

.stage-cards:has(.node-card:only-child) {
  grid-template-columns: repeat(2, minmax(min(100%, var(--card-min-width)), 1fr));
}

.node-card {
  width: 100%;
  min-height: var(--card-min-height);
  height: auto;
  padding: 0.82rem;
  gap: 0.72rem;
  border-radius: 0.55rem;
  border-color: color-mix(in srgb, var(--card-color, var(--orange)) 24%, rgba(35, 37, 40, 0.18));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    linear-gradient(145deg, color-mix(in srgb, var(--card-color, var(--orange)) 9%, white), white);
  box-shadow:
    inset 0 0.22rem 0 rgba(255, 255, 255, 0.78),
    0 0.55rem 1.25rem rgba(35, 37, 40, 0.055);
}

.node-card:hover {
  border-color: color-mix(in srgb, var(--card-color, var(--orange)) 45%, var(--line));
  box-shadow:
    inset 0 0.22rem 0 rgba(255, 255, 255, 0.82),
    0 0.75rem 1.7rem rgba(35, 37, 40, 0.08);
}

.card-head {
  min-height: 6.7rem;
  padding: 0.72rem;
  border: 1px solid color-mix(in srgb, var(--card-color, var(--orange)) 12%, rgba(35, 37, 40, 0.12));
  border-radius: 0.5rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card-color, var(--orange)) 9%, white), rgba(255, 255, 255, 0.78));
}

.card-dot {
  width: 3.05rem;
  height: 3.05rem;
  border-radius: 0.5rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card-color, var(--orange)) 88%, white), color-mix(in srgb, var(--card-color, var(--orange)) 78%, var(--ink)));
  box-shadow: inset 0 0.12rem 0 rgba(255, 255, 255, 0.3);
}

.card-head b {
  font-size: 1.2rem;
  line-height: 1.04;
}

.card-head small {
  font-size: 0.8rem;
}

.card-body {
  min-height: 0;
  gap: 0.55rem;
}

.body-label {
  display: none;
}

.child-list {
  min-height: 13.5rem;
  overflow: visible;
  gap: 0.22rem;
  padding: 0.62rem;
  border-radius: 0.5rem;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-color, var(--orange)) 10%, transparent), transparent 65%),
    rgba(255, 255, 255, 0.66);
}

.child-item {
  min-height: 2.05rem;
  padding: 0.26rem 0.42rem;
  border-radius: 0.38rem;
}

.child-item:hover {
  background: color-mix(in srgb, var(--card-color, var(--orange)) 9%, white);
}

.child-item span {
  font-size: 0.8rem;
}

.card-path {
  min-height: 1.8rem;
  padding-top: 0.38rem;
}

.card-path button {
  font-size: 0.7rem;
}

.task-view {
  margin-top: 0.12rem;
  border-radius: 0.5rem;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-color, var(--blue)) 78%, var(--blue)) 0 0.3rem, transparent 0.3rem),
    linear-gradient(145deg, color-mix(in srgb, var(--blue) 8%, white), rgba(255, 255, 255, 0.82));
}

.page-head {
  min-height: 7.2rem;
  padding: 0.55rem 0.9rem 0.8rem;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.45rem, 3.5vw, 3.75rem);
  line-height: 0.98;
}

.mode-strip article {
  min-height: 5.45rem;
  align-content: start;
  padding: 0.82rem 0.95rem;
}

.mode-strip b {
  margin-top: 0.34rem;
}

.mode-strip small {
  margin-top: 0.32rem;
}

@media (min-width: 120rem) {
  .shell {
    width: 118rem;
  }
}

@media (max-width: 78rem) {
  :root {
    --card-min-width: 22rem;
  }

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

  .stage-rail {
    min-height: auto;
  }

  .stage-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  }
}

@media (max-width: 52rem) {
  .task-home {
    padding: 0.7rem;
  }

  .shell {
    padding: 0.78rem;
  }

  .page-head {
    min-height: auto;
    padding: 0.55rem 0.3rem 0.9rem;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

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

  .stage {
    padding: 0.78rem;
  }

  .stage-cards {
    grid-template-columns: 1fr;
  }

  .stage-cards:has(.node-card:only-child) {
    grid-template-columns: 1fr;
  }

  .node-card {
    min-height: 0;
  }
}

/* V3 dark program pass: calm console, module doors, no internal scrolling. */
:root {
  --surface: #101419;
  --paper: #171c22;
  --ink: #f2f0ea;
  --muted: #a8b0b7;
  --line: #343c45;
  --orange: #f07a3f;
  --blue: #5a8fc8;
  --green: #71a584;
  --gold: #cba452;
  --red: #ce6a64;
  --violet: #9a88d3;
  --cyan: #58b7c2;
  --olive: #a1a865;
  --magenta: #c5749d;
  --teal: #55aa9b;
  --shadow: 0 1.4rem 3.2rem rgba(0, 0, 0, 0.38);
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 18% 10%, rgba(240, 122, 63, 0.13), transparent 34rem),
    radial-gradient(circle at 82% 16%, rgba(88, 183, 194, 0.12), transparent 36rem),
    linear-gradient(145deg, #0d1116 0%, #151a20 52%, #101419 100%);
  background-size: 2rem 2rem, 2rem 2rem, auto, auto, auto;
}

.shell {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(28, 34, 41, 0.96), rgba(17, 21, 26, 0.95));
  box-shadow: var(--shadow);
}

.page-head {
  border-bottom-color: rgba(255, 255, 255, 0.11);
}

.page-head p {
  color: #b7c2ce;
}

.status span,
.mode-strip article,
.card-head,
.child-list,
.task-view,
.task-grid button,
.task-related-list button,
.task-back,
.task-space-path button {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  box-shadow: inset 0 0.08rem 0 rgba(255, 255, 255, 0.06);
}

.mode-strip article {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

.mode-strip span {
  color: var(--orange);
}

.mode-strip b,
.task-back {
  color: var(--ink);
}

.stage {
  border-color: color-mix(in srgb, var(--stage-color, var(--orange)) 38%, rgba(255, 255, 255, 0.12));
  background:
    linear-gradient(90deg, var(--stage-color, var(--orange)) 0 0.46rem, transparent 0.46rem),
    linear-gradient(120deg, color-mix(in srgb, var(--stage-color, var(--orange)) 16%, #171c22), #11161c 52%, #141920);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.24);
}

.stage-rail {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.stage-number {
  background: color-mix(in srgb, var(--stage-color, var(--orange)) 20%, #1a2027);
  color: color-mix(in srgb, var(--stage-color, var(--orange)) 76%, white);
}

.stage-rail h2,
.card-head b,
.child-item span,
.task-view h3,
.task-grid b,
.task-modules b {
  color: var(--ink);
}

.stage-rail p,
.card-head small,
.mode-strip small,
.task-view p,
.task-hero p {
  color: var(--muted);
}

.node-card {
  border-color: color-mix(in srgb, var(--card-color, var(--orange)) 34%, rgba(255, 255, 255, 0.14));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    linear-gradient(145deg, color-mix(in srgb, var(--card-color, var(--orange)) 9%, #151a20), #12171d);
  box-shadow:
    inset 0 0.12rem 0 rgba(255, 255, 255, 0.055),
    0 0.75rem 1.8rem rgba(0, 0, 0, 0.24);
}

.node-card:hover {
  border-color: color-mix(in srgb, var(--card-color, var(--orange)) 58%, rgba(255, 255, 255, 0.18));
  box-shadow:
    inset 0 0.12rem 0 rgba(255, 255, 255, 0.07),
    0 0.95rem 2.2rem rgba(0, 0, 0, 0.3);
}

.card-head {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card-color, var(--orange)) 16%, rgba(255, 255, 255, 0.05)), rgba(255, 255, 255, 0.035));
}

.card-dot {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card-color, var(--orange)) 92%, white), color-mix(in srgb, var(--card-color, var(--orange)) 62%, #05080b));
  box-shadow:
    inset 0 0.12rem 0 rgba(255, 255, 255, 0.22),
    0 0.5rem 1.2rem color-mix(in srgb, var(--card-color, var(--orange)) 24%, transparent);
}

.card-meta,
.body-label,
.stage-rail em,
.task-kicker,
.task-grid span,
.task-related-label {
  color: color-mix(in srgb, var(--card-color, var(--orange)) 62%, #dfe6ee);
}

.child-list {
  min-height: 13.5rem;
  overflow: visible;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-color, var(--orange)) 12%, transparent), transparent 72%),
    rgba(5, 8, 11, 0.18);
}

.child-item {
  min-height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.025);
}

.child-item::before {
  width: 0.42rem;
  height: 0.42rem;
  box-shadow: 0 0 0.7rem color-mix(in srgb, var(--card-color, var(--orange)) 48%, transparent);
}

.child-item::after {
  content: "Öffnen";
  color: color-mix(in srgb, var(--card-color, var(--orange)) 64%, #d8dde2);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-0.2rem);
  transition: opacity 140ms ease, transform 140ms ease;
}

.child-item:hover {
  border-color: color-mix(in srgb, var(--card-color, var(--orange)) 34%, rgba(255, 255, 255, 0.15));
  background: color-mix(in srgb, var(--card-color, var(--orange)) 12%, rgba(255, 255, 255, 0.04));
}

.child-item:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.child-item small {
  background: color-mix(in srgb, var(--card-color, var(--orange)) 18%, #11161c);
  color: color-mix(in srgb, var(--card-color, var(--orange)) 70%, white);
}

.card-path {
  border-top-color: rgba(255, 255, 255, 0.11);
}

.card-path[hidden] {
  display: none !important;
}

.card-path:not([hidden]) {
  min-height: 2.25rem;
  margin-top: 0.12rem;
  padding: 0.44rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--card-color, var(--orange)) 28%, rgba(255, 255, 255, 0.13));
  border-radius: 0.42rem;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-color, var(--orange)) 16%, transparent), transparent 70%),
    rgba(5, 8, 11, 0.28);
}

.card-path button {
  color: color-mix(in srgb, var(--card-color, var(--orange)) 42%, #d8dee6);
  font-size: 0.72rem;
  font-weight: 950;
}

.card-path button:hover {
  color: var(--ink);
}

.card-path button + button::before {
  color: color-mix(in srgb, var(--card-color, var(--orange)) 76%, #d8dee6);
  font-weight: 950;
}

.task-view {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-color, var(--blue)) 82%, var(--blue)) 0 0.3rem, transparent 0.3rem),
    linear-gradient(145deg, rgba(90, 143, 200, 0.12), rgba(255, 255, 255, 0.035));
}

.task-space,
.task-hero,
.task-modules article {
  color: var(--ink);
}

@media (max-width: 52rem) {
  .child-item::after {
    display: none;
  }
}

/* Unify each node card: title and module list belong to the same functional door. */
.node-card {
  gap: 0;
}

.card-head {
  min-height: 5.9rem;
  padding: 0.6rem 0.58rem 0.78rem;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--card-color, var(--orange)) 28%, rgba(255, 255, 255, 0.12));
  background: transparent;
  box-shadow: none;
}

.card-body {
  gap: 0;
}

.child-list {
  min-height: 0;
  padding: 0.62rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.child-item {
  grid-template-columns: 0.48rem minmax(0, 1fr) auto auto;
  min-height: 2.38rem;
  padding: 0.28rem 0.48rem;
  border-color: rgba(255, 255, 255, 0.065);
  border-radius: 0.36rem;
}

.child-item:not(:has(small)) {
  grid-template-columns: 0.48rem minmax(0, 1fr) auto;
}

.child-item::after {
  content: "›";
  opacity: 0.72;
  transform: none;
  font-size: 1rem;
  line-height: 1;
  color: color-mix(in srgb, var(--card-color, var(--orange)) 70%, #d8dde2);
}

.child-item:hover::after {
  opacity: 1;
  transform: translateX(0.08rem);
}

/* V5: deep blue program interface. Same structure, calmer product-grade visual system. */
:root {
  --surface: #07111f;
  --paper: #0c1829;
  --ink: #eef5ff;
  --muted: #9fb0c3;
  --line: #263a52;
  --orange: #ff8a4c;
  --blue: #68a7ff;
  --green: #6dd2a0;
  --gold: #dfb864;
  --red: #ef7d83;
  --violet: #a795ff;
  --cyan: #60d6e8;
  --olive: #b7c06a;
  --magenta: #e18ab6;
  --teal: #65c7b8;
  --shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.48);
  --card-min-width: 28rem;
  --card-min-height: 25.5rem;
}

body {
  background:
    linear-gradient(90deg, rgba(154, 190, 232, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(154, 190, 232, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 12% 0%, rgba(104, 167, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgba(96, 214, 232, 0.11), transparent 38rem),
    linear-gradient(145deg, #07111f 0%, #0a1729 48%, #06101d 100%);
  background-size: 2rem 2rem, 2rem 2rem, auto, auto, auto;
}

.task-home {
  padding: 1.15rem;
}

.shell {
  width: min(100%, 120rem);
  gap: 0.95rem;
  padding: 1rem;
  border: 1px solid rgba(154, 190, 232, 0.16);
  border-radius: 0.65rem;
  background:
    linear-gradient(180deg, rgba(15, 30, 50, 0.96), rgba(8, 17, 31, 0.96)),
    #0b1728;
  box-shadow: var(--shadow);
}

.page-head {
  min-height: 6.4rem;
  padding: 0.45rem 0.7rem 0.72rem;
  border-bottom: 1px solid rgba(154, 190, 232, 0.14);
}

.page-head p {
  color: #8fb4df;
  font-size: 0.7rem;
}

h1 {
  max-width: none;
  font-size: clamp(2.25rem, 3vw, 3.25rem);
  line-height: 1;
}

.status span {
  min-height: 2rem;
  border-color: rgba(154, 190, 232, 0.18);
  background: rgba(8, 18, 32, 0.62);
  color: #b7c7d9;
}

.mode-strip {
  gap: 0.7rem;
}

.mode-strip article {
  min-height: 4.8rem;
  padding: 0.72rem 0.82rem;
  border-color: rgba(154, 190, 232, 0.15);
  border-radius: 0.42rem;
  background:
    linear-gradient(180deg, rgba(104, 167, 255, 0.08), rgba(255, 255, 255, 0.025));
}

.mode-strip span {
  color: #7eb9ff;
}

.mode-strip b {
  margin-top: 0.28rem;
}

.mode-strip small {
  margin-top: 0.25rem;
  color: #a6b7ca;
}

.stage-list {
  gap: 0.82rem;
}

.stage {
  grid-template-columns: clamp(15.5rem, 16vw, 19rem) minmax(0, 1fr);
  gap: 0.82rem;
  padding: 0.78rem;
  border-radius: 0.52rem;
  border-color: color-mix(in srgb, var(--stage-color, var(--blue)) 34%, rgba(154, 190, 232, 0.14));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--stage-color, var(--blue)) 86%, #d8ecff) 0 0.32rem, transparent 0.32rem),
    linear-gradient(120deg, color-mix(in srgb, var(--stage-color, var(--blue)) 10%, #0f2035), #081322 58%, #07111f);
}

.stage-rail {
  min-height: var(--card-min-height);
  padding: 0.9rem 0.95rem;
  border-radius: 0.42rem;
  background:
    linear-gradient(180deg, rgba(154, 190, 232, 0.08), rgba(154, 190, 232, 0.025));
}

.stage-number {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.4rem;
  background: rgba(104, 167, 255, 0.12);
}

.stage-rail h2 {
  font-size: clamp(1.55rem, 1.7vw, 2.05rem);
}

.stage-rail p {
  color: #a9b9cb;
  font-size: 0.9rem;
}

.stage-cards {
  gap: 0.72rem;
}

.node-card {
  min-height: var(--card-min-height);
  padding: 0.78rem;
  border-radius: 0.46rem;
  border-color: color-mix(in srgb, var(--card-color, var(--blue)) 34%, rgba(154, 190, 232, 0.16));
  background:
    linear-gradient(180deg, rgba(154, 190, 232, 0.075), rgba(154, 190, 232, 0.025)),
    #0b1626;
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.045),
    0 0.7rem 1.7rem rgba(0, 0, 0, 0.28);
}

.node-card:hover {
  border-color: color-mix(in srgb, var(--card-color, var(--blue)) 56%, rgba(154, 190, 232, 0.22));
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.055),
    0 0.9rem 2.1rem rgba(0, 0, 0, 0.34);
}

.card-head {
  min-height: 5.25rem;
  padding: 0.48rem 0.42rem 0.66rem;
  border-bottom-color: color-mix(in srgb, var(--card-color, var(--blue)) 30%, rgba(154, 190, 232, 0.14));
}

.card-dot {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.42rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card-color, var(--blue)) 86%, white), color-mix(in srgb, var(--card-color, var(--blue)) 52%, #06101d));
  box-shadow:
    inset 0 0.12rem 0 rgba(255, 255, 255, 0.2),
    0 0.52rem 1.25rem color-mix(in srgb, var(--card-color, var(--blue)) 24%, transparent);
}

.card-meta,
.stage-rail em,
.task-kicker,
.task-grid span,
.task-related-label {
  color: color-mix(in srgb, var(--card-color, var(--blue)) 56%, #d9e8fa);
}

.card-head b {
  font-size: 1.1rem;
}

.card-head small {
  color: #9fb0c3;
}

.child-list {
  padding-top: 0.58rem;
}

.child-item {
  min-height: 2.28rem;
  padding: 0.26rem 0.46rem;
  border-color: rgba(154, 190, 232, 0.085);
  background: rgba(154, 190, 232, 0.035);
}

.child-item:hover {
  border-color: color-mix(in srgb, var(--card-color, var(--blue)) 38%, rgba(154, 190, 232, 0.18));
  background: color-mix(in srgb, var(--card-color, var(--blue)) 10%, rgba(154, 190, 232, 0.045));
}

.child-item span {
  color: #f4f8ff;
}

.child-item small {
  background: color-mix(in srgb, var(--card-color, var(--blue)) 17%, #081322);
  color: color-mix(in srgb, var(--card-color, var(--blue)) 72%, white);
}

.child-item::after {
  color: color-mix(in srgb, var(--card-color, var(--blue)) 70%, #e1efff);
}

.card-path:not([hidden]) {
  border-color: color-mix(in srgb, var(--card-color, var(--blue)) 32%, rgba(154, 190, 232, 0.14));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-color, var(--blue)) 14%, transparent), transparent 72%),
    rgba(4, 10, 18, 0.34);
}

.card-path button {
  color: color-mix(in srgb, var(--card-color, var(--blue)) 46%, #d9e8fa);
}

.task-view {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-color, var(--blue)) 82%, var(--blue)) 0 0.28rem, transparent 0.28rem),
    linear-gradient(145deg, rgba(104, 167, 255, 0.11), rgba(154, 190, 232, 0.035));
}

@media (max-width: 78rem) {
  .stage {
    grid-template-columns: 1fr;
  }

  .stage-rail {
    min-height: auto;
  }
}

/* V6: open dark-blue program surface with calm lists and saturated primary accents. */
:root {
  --surface: #071226;
  --paper: #0b1830;
  --ink: #f2f7ff;
  --muted: #a7b8cb;
  --line: #263e5f;
  --red: #e94f5d;
  --green: #29b978;
  --blue: #327cff;
  --yellow: #e4b233;
  --orange: var(--red);
  --gold: var(--yellow);
  --violet: var(--blue);
  --cyan: var(--green);
  --olive: var(--yellow);
  --magenta: var(--red);
  --teal: var(--green);
  --shadow: 0 1.8rem 4rem rgba(0, 0, 0, 0.42);
  --card-min-width: 28.5rem;
  --card-min-height: 23rem;
}

body {
  background:
    linear-gradient(90deg, rgba(160, 192, 235, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(160, 192, 235, 0.014) 1px, transparent 1px),
    radial-gradient(circle at 10% 0%, rgba(50, 124, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 88% 4%, rgba(41, 185, 120, 0.08), transparent 36rem),
    linear-gradient(145deg, #071226 0%, #0b1830 46%, #061020 100%);
  background-size: 3.75rem 3.75rem, 3.75rem 3.75rem, auto, auto, auto;
}

.task-home {
  padding: clamp(1rem, 2vw, 2.25rem);
}

.shell {
  width: min(100%, 122rem);
  gap: clamp(1.15rem, 1.8vw, 2rem);
  padding: clamp(1rem, 1.55vw, 1.8rem);
  border-color: rgba(160, 192, 235, 0.12);
  border-radius: 0.5rem;
  background: rgba(8, 18, 34, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.page-head {
  min-height: 5.7rem;
  padding: 0.2rem 0.25rem 0.95rem;
  border-bottom-color: rgba(160, 192, 235, 0.12);
}

.page-head p {
  color: #8eb1df;
}

h1 {
  font-size: clamp(2.35rem, 3vw, 3.45rem);
}

.status span {
  border-color: rgba(160, 192, 235, 0.14);
  background: rgba(7, 18, 38, 0.38);
}

.mode-strip {
  gap: 0.9rem;
}

.mode-strip article {
  min-height: 4.5rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(160, 192, 235, 0.12);
  border-radius: 0.38rem;
  background: rgba(10, 25, 48, 0.4);
}

.mode-strip span {
  color: #9fc2ff;
}

.stage-list {
  gap: clamp(1.5rem, 2.4vw, 2.6rem);
}

.stage {
  grid-template-columns: clamp(15.5rem, 16vw, 19rem) minmax(0, 1fr);
  gap: clamp(1rem, 1.6vw, 1.55rem);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.stage + .stage {
  padding-top: clamp(0.5rem, 1vw, 1rem);
}

.stage-rail {
  min-height: var(--card-min-height);
  padding: 1.05rem 1rem;
  border-left: 0.28rem solid var(--stage-color, var(--blue));
  border-radius: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--stage-color, var(--blue)) 14%, transparent), transparent 78%);
}

.stage-number {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--stage-color, var(--blue)) 22%, rgba(255, 255, 255, 0.04));
  color: color-mix(in srgb, var(--stage-color, var(--blue)) 78%, white);
}

.stage-rail h2 {
  font-size: clamp(1.7rem, 2vw, 2.35rem);
}

.stage-rail p {
  max-width: 17.5rem;
  color: #aab8c8;
}

.stage-rail em {
  color: color-mix(in srgb, var(--stage-color, var(--blue)) 70%, #dbe9ff);
}

.stage-cards {
  gap: clamp(1rem, 1.3vw, 1.35rem);
}

.stage-cards:has(.node-card:only-child) {
  grid-template-columns: repeat(2, minmax(min(100%, var(--card-min-width)), 1fr));
}

.node-card {
  min-height: var(--card-min-height);
  padding: 0.9rem 0.98rem 1rem;
  border: 1px solid color-mix(in srgb, var(--card-color, var(--blue)) 26%, rgba(160, 192, 235, 0.16));
  border-radius: 0.42rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(8, 19, 36, 0.58);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
}

.node-card:hover {
  border-color: color-mix(in srgb, var(--card-color, var(--blue)) 46%, rgba(160, 192, 235, 0.22));
}

.card-head {
  min-height: 5.4rem;
  padding: 0 0 0.78rem;
  border-bottom: 1px solid color-mix(in srgb, var(--card-color, var(--blue)) 28%, rgba(160, 192, 235, 0.15));
  background: transparent;
}

.card-dot {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.35rem;
  background: var(--card-color, var(--blue));
  box-shadow: 0 0.55rem 1.3rem color-mix(in srgb, var(--card-color, var(--blue)) 26%, transparent);
}

.card-meta {
  color: color-mix(in srgb, var(--card-color, var(--blue)) 62%, #d9e8ff);
}

.card-head b {
  color: var(--ink);
  font-size: 1.15rem;
}

.card-head small {
  color: #9fb0c3;
}

.child-list {
  display: grid;
  gap: 0;
  padding-top: 0.45rem;
  border: 0;
  background: transparent;
}

.child-item,
.child-item:not(:has(small)) {
  grid-template-columns: 0.45rem minmax(0, 1fr) auto auto;
}

.child-item {
  min-height: 2.25rem;
  padding: 0.28rem 0;
  border: 0;
  border-bottom: 1px solid rgba(160, 192, 235, 0.09);
  border-radius: 0;
  background: transparent;
}

.child-item:hover,
.child-item:focus-visible {
  padding-inline: 0.5rem;
  border-bottom-color: color-mix(in srgb, var(--card-color, var(--blue)) 56%, rgba(160, 192, 235, 0.16));
  border-radius: 0.32rem;
  background: color-mix(in srgb, var(--card-color, var(--blue)) 16%, rgba(255, 255, 255, 0.025));
}

.child-item::before {
  width: 0.36rem;
  height: 0.36rem;
  background: rgba(210, 225, 245, 0.5);
  box-shadow: none;
}

.child-item:hover::before,
.child-item:focus-visible::before {
  background: var(--card-color, var(--blue));
  box-shadow: 0 0 0.85rem color-mix(in srgb, var(--card-color, var(--blue)) 46%, transparent);
}

.child-item span {
  color: #eef5ff;
}

.child-item small {
  background: transparent;
  color: #a9b8ca;
}

.child-item:hover small,
.child-item:focus-visible small {
  color: color-mix(in srgb, var(--card-color, var(--blue)) 76%, white);
}

.child-item::after {
  color: rgba(210, 225, 245, 0.42);
}

.child-item:hover::after,
.child-item:focus-visible::after {
  color: var(--card-color, var(--blue));
}

.card-path:not([hidden]) {
  margin-top: 0.55rem;
  border-color: color-mix(in srgb, var(--card-color, var(--blue)) 38%, rgba(160, 192, 235, 0.16));
  background: rgba(6, 14, 27, 0.42);
}

.card-path button {
  color: color-mix(in srgb, var(--card-color, var(--blue)) 54%, #e0edff);
}

@media (max-width: 78rem) {
  .stage {
    grid-template-columns: 1fr;
  }

  .stage-rail {
    min-height: auto;
  }
}

@media (max-width: 52rem) {
  .stage-cards:has(.node-card:only-child) {
    grid-template-columns: 1fr;
  }
}

/* V7 final override: lighter dark mode wins over v6 rules. */
:root {
  --surface: #12223a;
  --paper: #162842;
  --ink: #f4f8ff;
  --muted: #b7c5d6;
  --line: #365170;
}

body {
  background: #12223a;
}

.shell {
  background: rgba(20, 38, 62, 0.72);
}

.mode-strip article,
.status span {
  border-color: rgba(204, 222, 246, 0.16);
  background: rgba(18, 34, 58, 0.48);
}

.node-card {
  background: rgba(18, 35, 59, 0.46);
}

.node-card:hover {
  background: rgba(18, 35, 59, 0.56);
}

.child-list {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-color, var(--blue)) 36%, transparent), transparent 72%),
    rgba(14, 28, 48, 0.5);
}

.child-item:hover,
.child-item:focus-visible {
  background: #12223a;
  background-image: none;
}

.child-item small {
  background: color-mix(in srgb, var(--card-color, var(--blue)) 18%, #12223a);
}

/* V7 absolute final color pass: this must stay at the end of the file. */
:root {
  --stage-1: #ff6f91;
  --stage-2: #f6c64f;
  --stage-3: #61df99;
  --stage-4: #49d2e6;
  --stage-5: #78a9ff;
  --stage-6: #c08cff;
}

body {
  background: #12223a;
}

body .shell {
  border: 0;
  border-radius: 0;
  background: transparent;
  background-color: transparent;
  box-shadow: none;
}

.stage .node-card {
  --card-color: var(--stage-color) !important;
}

.stage-rail {
  padding: 0.7rem 0 0.85rem 0.9rem;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--stage-color, var(--blue)) 20%, rgba(18, 34, 58, 0.12)), transparent 78%);
}

.stage-number {
  background: var(--stage-color, var(--blue));
  color: #102039;
}

.stage-rail em {
  color: color-mix(in srgb, var(--stage-color, var(--blue)) 84%, #f4f8ff);
}

.stage-rail h2 {
  color: #f7fbff;
}

.node-card {
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--card-color, var(--blue)) 13%, rgba(22, 40, 66, 0.72)), rgba(18, 34, 58, 0.48) 58%, rgba(16, 30, 52, 0.44));
}

.node-card:hover {
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--card-color, var(--blue)) 18%, rgba(25, 48, 78, 0.78)), rgba(20, 39, 66, 0.58) 58%, rgba(17, 33, 57, 0.52));
}

.child-list {
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--card-color, var(--blue)) 44%, rgba(18, 34, 58, 0.9)) 0%, rgba(25, 47, 76, 0.7) 46%, color-mix(in srgb, var(--card-color, var(--blue)) 18%, rgba(18, 34, 58, 0.86)) 100%);
}

.child-item:hover,
.child-item:focus-visible {
  background: #12223a;
  background-image: none;
}

.child-item small {
  background: color-mix(in srgb, var(--card-color, var(--blue)) 22%, #12223a);
}

/* V7 workflow card final pass: unified borders and stronger list-point emphasis. */
.stage .node-card {
  --card-color: var(--stage-color) !important;
  border: 1px solid color-mix(in srgb, var(--card-color, var(--blue)) 34%, rgba(204, 222, 246, 0.15));
  border-radius: 0.5rem;
  box-shadow: none;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--card-color, var(--blue)) 13%, rgba(22, 40, 66, 0.76)), rgba(18, 34, 58, 0.5) 58%, rgba(16, 30, 52, 0.46));
}

.stage .node-card:hover {
  border-color: color-mix(in srgb, var(--card-color, var(--blue)) 52%, rgba(204, 222, 246, 0.2));
  box-shadow: none;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--card-color, var(--blue)) 18%, rgba(25, 48, 78, 0.82)), rgba(20, 39, 66, 0.58) 58%, rgba(17, 33, 57, 0.52));
}

.stage .card-head {
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--card-color, var(--blue)) 32%, rgba(204, 222, 246, 0.14));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.stage .child-list {
  border: 1px solid color-mix(in srgb, var(--card-color, var(--blue)) 28%, rgba(204, 222, 246, 0.12));
  border-radius: 0.46rem;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--card-color, var(--blue)) 45%, rgba(18, 34, 58, 0.9)) 0%, rgba(25, 47, 76, 0.72) 46%, color-mix(in srgb, var(--card-color, var(--blue)) 20%, rgba(18, 34, 58, 0.86)) 100%);
}

.stage .child-item,
.stage .child-item:not(:has(small)) {
  grid-template-columns: 0.58rem minmax(0, 1fr) auto;
}

.stage .child-item {
  border: 0;
  border-radius: 0.34rem;
  background: transparent;
  color: #f4f8ff;
}

.stage .child-item::before {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--card-color, var(--blue));
  opacity: 1;
  box-shadow: 0 0 0.55rem color-mix(in srgb, var(--card-color, var(--blue)) 38%, transparent);
}

.stage .child-item span {
  color: color-mix(in srgb, var(--card-color, var(--blue)) 18%, #f8fbff);
}

.stage .child-item small {
  background: color-mix(in srgb, var(--card-color, var(--blue)) 34%, #12223a);
  color: #ffffff;
}

.stage .child-item::after {
  content: none;
}

.stage .child-item:hover,
.stage .child-item:focus-visible {
  background: #12223a;
  background-image: none;
}

.stage .child-item:hover span,
.stage .child-item:focus-visible span {
  color: #ffffff;
}

/* V7 true final hierarchy pass: clearer levels, controlled brutalism. */
.page-head h1 {
  font-size: clamp(3.2rem, 4.4vw, 5rem);
  line-height: 0.88;
  font-weight: 950;
}

.stage-rail {
  padding: 0.95rem 0 1rem 1rem;
  border-left: 0.42rem solid var(--stage-color, var(--blue));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--stage-color, var(--blue)) 18%, rgba(18, 34, 58, 0.1)), transparent 68%) !important;
}

.stage-number {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.18rem;
  font-size: 0.84rem;
  font-weight: 950;
}

.stage-rail h2 {
  margin-top: 0.9rem;
  font-size: clamp(2rem, 2.15vw, 2.65rem);
  line-height: 0.86;
  font-weight: 950;
}

.stage-rail p {
  max-width: 17rem;
  margin-top: 0.78rem;
  font-size: 0.96rem;
  line-height: 1.3;
  font-weight: 720;
}

.stage .node-card {
  border-width: 2px;
  border-radius: 0.42rem;
}

.stage .card-head {
  padding: 0.82rem 0.85rem 0.78rem;
  border-bottom-width: 2px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-color, var(--blue)) 16%, rgba(18, 34, 58, 0.62)), transparent 78%);
}

.card-meta {
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.card-head b {
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 950;
}

.card-head small {
  font-size: 0.84rem;
  line-height: 1.18;
  font-weight: 760;
}

.stage .child-list {
  margin-top: 0.72rem;
  border-width: 2px;
  border-radius: 0.36rem;
}

.stage .child-item,
.stage .child-item:not(:has(small)) {
  grid-template-columns: 0.74rem minmax(0, 1fr) auto;
}

.stage .child-item {
  min-height: 2.02rem;
  border-radius: 0.2rem;
}

.stage .child-item::before {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 0.1rem;
}

.stage .child-item span {
  font-size: 0.94rem;
  line-height: 1.05;
  font-weight: 850;
}

.stage .child-item small {
  min-width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.18rem;
  font-size: 0.72rem;
  font-weight: 950;
}

/* V7 actual final rollback: font size only. */
body .stage-rail {
  border-left: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--stage-color, var(--blue)) 22%, rgba(18, 34, 58, 0.08)), transparent 78%) !important;
}

body .stage .node-card {
  border-width: 1px;
  border-radius: 0.5rem;
}

body .stage .card-head {
  padding: 0.7rem 0.76rem 0.68rem;
  border-bottom-width: 1px;
  background: transparent;
}

body .stage .child-list {
  margin-top: 0;
  border-width: 1px;
  border-radius: 0.46rem;
}

body .stage .child-item,
body .stage .child-item:not(:has(small)) {
  grid-template-columns: 0.58rem minmax(0, 1fr) auto;
}

body .stage .child-item {
  min-height: 1.92rem;
  border-radius: 0.34rem;
}

body .stage .child-item::before {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
}

body .stage .child-item small {
  min-width: 1.38rem;
  height: 1.38rem;
  border-radius: 999px;
}

body .page-head h1 {
  font-size: clamp(3rem, 4.2vw, 4.8rem);
}

body .stage-rail h2 {
  font-size: clamp(1.85rem, 1.9vw, 2.4rem);
}

body .stage-rail p {
  font-size: 0.94rem;
}

body .card-head b {
  font-size: 1.22rem;
}

body .card-head small {
  font-size: 0.82rem;
}

body .stage .child-item span {
  font-size: 0.9rem;
}

body .stage .child-item small {
  font-size: 0.7rem;
}

/* V7 true final rollback: only font sizing, no hierarchy design changes. */
.stage-rail {
  border-left: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--stage-color, var(--blue)) 22%, rgba(18, 34, 58, 0.08)), transparent 78%) !important;
}

.stage .node-card {
  border-width: 1px;
  border-radius: 0.5rem;
}

.stage .card-head {
  padding: 0.7rem 0.76rem 0.68rem;
  border-bottom-width: 1px;
  background: transparent;
}

.stage .child-list {
  margin-top: 0;
  border-width: 1px;
  border-radius: 0.46rem;
}

.stage .child-item,
.stage .child-item:not(:has(small)) {
  grid-template-columns: 0.58rem minmax(0, 1fr) auto;
}

.stage .child-item {
  min-height: 1.92rem;
  border-radius: 0.34rem;
}

.stage .child-item::before {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
}

.stage .child-item small {
  min-width: 1.38rem;
  height: 1.38rem;
  border-radius: 999px;
}

.page-head h1 {
  font-size: clamp(3rem, 4.2vw, 4.8rem);
}

.stage-rail h2 {
  font-size: clamp(1.85rem, 1.9vw, 2.4rem);
}

.stage-rail p {
  font-size: 0.94rem;
}

.card-head b {
  font-size: 1.22rem;
}

.card-head small {
  font-size: 0.82rem;
}

.stage .child-item span {
  font-size: 0.9rem;
}

.stage .child-item small {
  font-size: 0.7rem;
}

/* V7 rollback: keep the previous design, change only typography scale. */
.stage-rail {
  border-left: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--stage-color, var(--blue)) 22%, rgba(18, 34, 58, 0.08)), transparent 78%) !important;
}

.stage .node-card {
  border-width: 1px;
  border-radius: 0.5rem;
}

.stage .card-head {
  padding: 0.7rem 0.76rem 0.68rem;
  border-bottom-width: 1px;
  background: transparent;
}

.stage .child-list {
  margin-top: 0;
  border-width: 1px;
  border-radius: 0.46rem;
}

.stage .child-item,
.stage .child-item:not(:has(small)) {
  grid-template-columns: 0.58rem minmax(0, 1fr) auto;
}

.stage .child-item {
  min-height: 1.92rem;
  border-radius: 0.34rem;
}

.stage .child-item::before {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
}

.stage .child-item small {
  min-width: 1.38rem;
  height: 1.38rem;
  border-radius: 999px;
}

.page-head h1 {
  font-size: clamp(3rem, 4.2vw, 4.8rem);
}

.stage-rail h2 {
  font-size: clamp(1.85rem, 1.9vw, 2.4rem);
}

.stage-rail p {
  font-size: 0.94rem;
}

.card-head b {
  font-size: 1.22rem;
}

.card-head small {
  font-size: 0.82rem;
}

.stage .child-item span {
  font-size: 0.9rem;
}

.stage .child-item small {
  font-size: 0.7rem;
}

/* V7 true final brutal typography pass: stronger, still controlled. */
.page-head h1 {
  font-size: clamp(3rem, 4.2vw, 4.8rem);
  line-height: 0.9;
  font-weight: 950;
}

.page-head p,
.mode-strip span,
.card-meta {
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stage-number {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.22rem;
  font-size: 0.82rem;
  font-weight: 950;
}

.stage-rail h2 {
  margin-top: 0.85rem;
  font-size: clamp(1.85rem, 1.9vw, 2.45rem);
  line-height: 0.88;
  font-weight: 950;
}

.stage-rail p {
  max-width: 16.5rem;
  margin-top: 0.72rem;
  font-size: 0.95rem;
  line-height: 1.28;
  font-weight: 720;
}

.stage .node-card {
  border-width: 1.5px;
}

.stage .card-head {
  padding-bottom: 0.74rem;
  border-bottom-width: 1.5px;
}

.card-meta {
  font-size: 0.72rem;
  line-height: 1;
}

.card-head b {
  font-size: 1.24rem;
  line-height: 1.02;
  font-weight: 930;
}

.card-head small {
  font-size: 0.82rem;
  line-height: 1.18;
  font-weight: 720;
}

.stage .child-list {
  border-width: 1.5px;
}

.stage .child-item,
.stage .child-item:not(:has(small)) {
  grid-template-columns: 0.68rem minmax(0, 1fr) auto;
}

.stage .child-item {
  min-height: 1.95rem;
}

.stage .child-item::before {
  width: 0.56rem;
  height: 0.56rem;
}

.stage .child-item span {
  font-size: 0.92rem;
  line-height: 1.08;
  font-weight: 850;
}

.stage .child-item small {
  min-width: 1.38rem;
  height: 1.38rem;
  font-size: 0.72rem;
  font-weight: 950;
}

/* V7 true final typography pass: main rail and workflow cards. */
.stage-rail {
  cursor: default;
}

.stage-rail em {
  display: none;
}

.stage-number {
  width: 1.9rem;
  height: 1.9rem;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
}

.stage-rail h2 {
  margin-top: 0.9rem;
  font-size: clamp(1.55rem, 1.55vw, 2rem);
  line-height: 0.98;
}

.stage-rail p {
  max-width: 15.5rem;
  margin-top: 0.62rem;
  font-size: 0.84rem;
  line-height: 1.42;
}

.card-meta {
  font-size: 0.66rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.card-head b {
  font-size: 1.04rem;
  line-height: 1.12;
}

.card-head small {
  font-size: 0.74rem;
  line-height: 1.25;
}

.stage .child-item span {
  font-size: 0.82rem;
  line-height: 1.18;
  font-weight: 740;
}

.stage .child-item small {
  font-size: 0.66rem;
  font-weight: 850;
}

/* V7 true final spacing pass: vertical rhythm follows the longest workflow list. */
.stage-list {
  gap: 0;
}

.stage {
  --stage-list-items: 4;
  --stage-flow-gap: clamp(2rem, calc(0.95rem + (var(--stage-list-items) * 0.42rem)), 7.5rem);
  grid-template-rows: minmax(9.5rem, auto) auto;
  row-gap: 1.8rem;
  margin-bottom: var(--stage-flow-gap);
}

.stage:last-child {
  margin-bottom: 0;
}

.stage-cards {
  align-items: start;
}

.stage .node-card {
  min-height: auto;
  height: auto;
}

.stage .node-card:has(.child-item:nth-of-type(6)) {
  min-height: auto;
}

.stage .child-list {
  min-height: auto;
}

.stage .child-item {
  min-height: 1.72rem;
}

/* V7 left rail final pass: keep the main category colors readable. */
.stage .node-card {
  --card-color: var(--stage-color) !important;
}

.stage-rail {
  padding: 0.7rem 0 0.85rem 0.9rem;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--stage-color, var(--blue)) 22%, rgba(18, 34, 58, 0.08)), transparent 78%) !important;
}

.stage-number {
  background: var(--stage-color, var(--blue));
  color: #102039;
}

.stage-rail em {
  color: color-mix(in srgb, var(--stage-color, var(--blue)) 84%, #f4f8ff);
}

.stage-rail h2 {
  color: #f7fbff;
}

/* V7 color pass: brighter workflow accents, gradients matched to the lighter dark background. */
:root {
  --stage-1: #ff6f91;
  --stage-2: #f6c64f;
  --stage-3: #61df99;
  --stage-4: #49d2e6;
  --stage-5: #78a9ff;
  --stage-6: #c08cff;
}

body {
  background: #12223a;
}

body .shell {
  border: 0;
  border-radius: 0;
  background: transparent;
  background-color: transparent;
  box-shadow: none;
}

.node-card {
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--card-color, var(--blue)) 13%, rgba(22, 40, 66, 0.72)), rgba(18, 34, 58, 0.48) 58%, rgba(16, 30, 52, 0.44));
}

.node-card:hover {
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--card-color, var(--blue)) 18%, rgba(25, 48, 78, 0.78)), rgba(20, 39, 66, 0.58) 58%, rgba(17, 33, 57, 0.52));
}

.child-list {
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--card-color, var(--blue)) 44%, rgba(18, 34, 58, 0.9)) 0%, rgba(25, 47, 76, 0.7) 46%, color-mix(in srgb, var(--card-color, var(--blue)) 18%, rgba(18, 34, 58, 0.86)) 100%);
}

.child-item:hover,
.child-item:focus-visible {
  background: #12223a;
  background-image: none;
}

.child-item small {
  background: color-mix(in srgb, var(--card-color, var(--blue)) 22%, #12223a);
}

body .shell {
  border: 0;
  border-radius: 0;
  background: transparent;
  background-color: transparent;
  box-shadow: none;
}

/* V7: lighter dark mode while keeping the v6 structure. */
:root {
  --surface: #12223a;
  --paper: #162842;
  --ink: #f4f8ff;
  --muted: #b7c5d6;
  --line: #365170;
}

body {
  background: #12223a;
}

.shell {
  background: rgba(20, 38, 62, 0.72);
}

.page-head {
  border-bottom-color: rgba(204, 222, 246, 0.16);
}

.mode-strip article,
.status span {
  border-color: rgba(204, 222, 246, 0.16);
  background: rgba(18, 34, 58, 0.48);
}

.node-card {
  background: rgba(18, 35, 59, 0.46);
}

.node-card:hover {
  background: rgba(18, 35, 59, 0.56);
}

.child-list {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-color, var(--blue)) 36%, transparent), transparent 72%),
    rgba(14, 28, 48, 0.5);
}

.child-item:hover,
.child-item:focus-visible {
  background: #12223a;
}

.child-item:hover,
.child-item:focus-visible {
  background: #12223a;
  background-image: none;
}

.child-item small {
  background: color-mix(in srgb, var(--card-color, var(--blue)) 18%, #12223a);
}

/* V6 refinement: unique color interval, open gradients, quiet list rows. */
:root {
  --stage-1: #e85d75;
  --stage-2: #d7aa3a;
  --stage-3: #45bd7b;
  --stage-4: #33b8c8;
  --stage-5: #5c86e6;
  --stage-6: #a874e8;
}

body {
  background: #071226;
}

.shell {
  border: 0;
  background: rgba(8, 18, 34, 0.64);
}

.mode-strip article,
.status span {
  border-color: rgba(160, 192, 235, 0.1);
}

.stage {
  border: 0;
  background: transparent;
}

.stage-rail {
  border-left: 0;
  background: transparent;
}

.node-card {
  border: 0;
  background: rgba(8, 19, 36, 0.46);
  box-shadow: none;
}

.node-card:hover {
  border: 0;
  box-shadow: none;
  background: rgba(8, 19, 36, 0.54);
}

.card-head {
  border-bottom: 1px solid color-mix(in srgb, var(--card-color, var(--blue)) 28%, rgba(160, 192, 235, 0.14));
}

.card-dot {
  display: none;
}

.card-meta,
.card-head b,
.card-head small {
  grid-column: 1 / -1;
}

.child-list {
  gap: 0.26rem;
  padding: 0.58rem;
  border-radius: 0.46rem;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-color, var(--blue)) 42%, transparent), transparent 72%),
    rgba(6, 15, 30, 0.62);
}

.child-item,
.child-item:not(:has(small)) {
  grid-template-columns: 0.42rem minmax(0, 1fr) auto auto;
}

.child-item {
  min-height: 1.85rem;
  padding: 0.2rem 0.34rem;
  border: 0;
  border-radius: 0.34rem;
  background: transparent;
  transition: background-color 140ms ease;
}

.child-item::before {
  width: 0.48rem;
  height: 0.48rem;
  background: var(--card-color, var(--blue));
  box-shadow: none;
}

.child-item span {
  color: #eef5ff;
}

.child-item small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.28rem;
  height: 1.28rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-color, var(--blue)) 18%, #071226);
  color: color-mix(in srgb, var(--card-color, var(--blue)) 72%, white);
}

.child-item::after {
  content: "›";
  opacity: 0.42;
  transform: none;
  color: rgba(195, 212, 232, 0.48);
  font-size: 1rem;
  line-height: 1;
}

.child-item:hover,
.child-item:focus-visible {
  background: #071226;
}

.child-item:hover::before,
.child-item:focus-visible::before {
  background: var(--card-color, var(--blue));
  box-shadow: none;
}

.child-item:hover::after,
.child-item:focus-visible::after {
  transform: none;
}

/* Keep list text completely still; hover changes only the row background. */
.child-item,
.child-item:hover,
.child-item:focus-visible {
  padding: 0.2rem 0.34rem;
}

.child-item:hover,
.child-item:focus-visible {
  background: #071226;
  background-image: none;
}

.child-item:hover small,
.child-item:focus-visible small,
.child-item:hover::after,
.child-item:focus-visible::after {
  color: color-mix(in srgb, var(--card-color, var(--blue)) 76%, white);
  opacity: 1;
}

.card-path:not([hidden]) {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--card-color, var(--blue)) 34%, rgba(160, 192, 235, 0.16));
  border-radius: 0;
  background: transparent;
}

/* Put workflow cards below the main stage text and keep list rows quiet like v2. */
.stage {
  grid-template-columns: clamp(15.5rem, 16vw, 19rem) minmax(0, 1fr);
  grid-template-rows: minmax(11rem, auto) auto;
  column-gap: clamp(1rem, 1.6vw, 1.55rem);
  row-gap: 2.25rem;
  align-items: start;
}

.stage-rail {
  grid-column: 1;
  grid-row: 1;
  min-height: auto;
  max-width: 23rem;
  padding: 0.35rem 0 0;
}

.stage-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
}

.stage-cards:has(.node-card:only-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.child-item,
.child-item:not(:has(small)) {
  grid-template-columns: 0.48rem minmax(0, 1fr) auto;
}

.child-item::after {
  content: none;
}

.child-item small {
  color: color-mix(in srgb, var(--card-color, var(--blue)) 72%, white);
}

.child-item:hover small,
.child-item:focus-visible small {
  color: color-mix(in srgb, var(--card-color, var(--blue)) 72%, white);
  opacity: 1;
}

@media (max-width: 52rem) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .stage-cards {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }

  .stage-cards,
  .stage-cards:has(.node-card:only-child) {
    grid-template-columns: 1fr;
  }
}

/* V7 final override: lighter dark mode. */
:root {
  --surface: #12223a;
  --paper: #162842;
  --ink: #f4f8ff;
  --muted: #b7c5d6;
  --line: #365170;
}

body {
  background: #12223a;
}

.shell {
  background: rgba(20, 38, 62, 0.72);
}

.mode-strip article,
.status span {
  border-color: rgba(204, 222, 246, 0.16);
  background: rgba(18, 34, 58, 0.48);
}

.node-card {
  background: rgba(18, 35, 59, 0.46);
}

.node-card:hover {
  background: rgba(18, 35, 59, 0.56);
}

.child-list {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-color, var(--blue)) 36%, transparent), transparent 72%),
    rgba(14, 28, 48, 0.5);
}

.child-item:hover,
.child-item:focus-visible {
  background: #12223a;
  background-image: none;
}

.child-item small {
  background: color-mix(in srgb, var(--card-color, var(--blue)) 18%, #12223a);
}

/* V7 absolute final color pass: this must stay at the end of the file. */
:root {
  --stage-1: #ff6f91;
  --stage-2: #f6c64f;
  --stage-3: #61df99;
  --stage-4: #49d2e6;
  --stage-5: #78a9ff;
  --stage-6: #c08cff;
}

body {
  background: #12223a;
}

body .shell {
  border: 0;
  border-radius: 0;
  background: transparent;
  background-color: transparent;
  box-shadow: none;
}

.node-card {
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--card-color, var(--blue)) 13%, rgba(22, 40, 66, 0.72)), rgba(18, 34, 58, 0.48) 58%, rgba(16, 30, 52, 0.44));
}

.node-card:hover {
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--card-color, var(--blue)) 18%, rgba(25, 48, 78, 0.78)), rgba(20, 39, 66, 0.58) 58%, rgba(17, 33, 57, 0.52));
}

.child-list {
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--card-color, var(--blue)) 44%, rgba(18, 34, 58, 0.9)) 0%, rgba(25, 47, 76, 0.7) 46%, color-mix(in srgb, var(--card-color, var(--blue)) 18%, rgba(18, 34, 58, 0.86)) 100%);
}

.child-item:hover,
.child-item:focus-visible {
  background: #12223a;
  background-image: none;
}

.child-item small {
  background: color-mix(in srgb, var(--card-color, var(--blue)) 22%, #12223a);
}

/* V7 true final workflow card pass: unified borders and stronger list-point emphasis. */
.stage .node-card {
  --card-color: var(--stage-color) !important;
  border: 1px solid color-mix(in srgb, var(--card-color, var(--blue)) 34%, rgba(204, 222, 246, 0.15));
  border-radius: 0.5rem;
  box-shadow: none;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--card-color, var(--blue)) 13%, rgba(22, 40, 66, 0.76)), rgba(18, 34, 58, 0.5) 58%, rgba(16, 30, 52, 0.46));
}

.stage .node-card:hover {
  border-color: color-mix(in srgb, var(--card-color, var(--blue)) 52%, rgba(204, 222, 246, 0.2));
  box-shadow: none;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--card-color, var(--blue)) 18%, rgba(25, 48, 78, 0.82)), rgba(20, 39, 66, 0.58) 58%, rgba(17, 33, 57, 0.52));
}

.stage .card-head {
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--card-color, var(--blue)) 32%, rgba(204, 222, 246, 0.14));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.stage .child-list {
  border: 1px solid color-mix(in srgb, var(--card-color, var(--blue)) 28%, rgba(204, 222, 246, 0.12));
  border-radius: 0.46rem;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--card-color, var(--blue)) 45%, rgba(18, 34, 58, 0.9)) 0%, rgba(25, 47, 76, 0.72) 46%, color-mix(in srgb, var(--card-color, var(--blue)) 20%, rgba(18, 34, 58, 0.86)) 100%);
}

.stage .child-item,
.stage .child-item:not(:has(small)) {
  grid-template-columns: 0.58rem minmax(0, 1fr) auto;
}

.stage .child-item {
  border: 0;
  border-radius: 0.34rem;
  background: transparent;
  color: #f4f8ff;
}

.stage .child-item::before {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--card-color, var(--blue));
  opacity: 1;
  box-shadow: 0 0 0.55rem color-mix(in srgb, var(--card-color, var(--blue)) 38%, transparent);
}

.stage .child-item span {
  color: color-mix(in srgb, var(--card-color, var(--blue)) 18%, #f8fbff);
}

.stage .child-item small {
  background: color-mix(in srgb, var(--card-color, var(--blue)) 34%, #12223a);
  color: #ffffff;
}

.stage .child-item::after {
  content: none;
}

.stage .child-item:hover,
.stage .child-item:focus-visible {
  background: #12223a;
  background-image: none;
}

.stage .child-item:hover span,
.stage .child-item:focus-visible span {
  color: #ffffff;
}

/* V7 true final hierarchy pass: clearer levels, controlled brutalism. */
.page-head h1 {
  font-size: clamp(3.2rem, 4.4vw, 5rem);
  line-height: 0.88;
  font-weight: 950;
}

.stage-rail {
  padding: 0.95rem 0 1rem 1rem;
  border-left: 0.42rem solid var(--stage-color, var(--blue));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--stage-color, var(--blue)) 18%, rgba(18, 34, 58, 0.1)), transparent 68%) !important;
}

.stage-number {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.18rem;
  font-size: 0.84rem;
  font-weight: 950;
}

.stage-rail h2 {
  margin-top: 0.9rem;
  font-size: clamp(2rem, 2.15vw, 2.65rem);
  line-height: 0.86;
  font-weight: 950;
}

.stage-rail p {
  max-width: 17rem;
  margin-top: 0.78rem;
  font-size: 0.96rem;
  line-height: 1.3;
  font-weight: 720;
}

.stage .node-card {
  border-width: 2px;
  border-radius: 0.42rem;
}

.stage .card-head {
  padding: 0.82rem 0.85rem 0.78rem;
  border-bottom-width: 2px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-color, var(--blue)) 16%, rgba(18, 34, 58, 0.62)), transparent 78%);
}

.card-meta {
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.card-head b {
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 950;
}

.card-head small {
  font-size: 0.84rem;
  line-height: 1.18;
  font-weight: 760;
}

.stage .child-list {
  margin-top: 0.72rem;
  border-width: 2px;
  border-radius: 0.36rem;
}

.stage .child-item,
.stage .child-item:not(:has(small)) {
  grid-template-columns: 0.74rem minmax(0, 1fr) auto;
}

.stage .child-item {
  min-height: 2.02rem;
  border-radius: 0.2rem;
}

.stage .child-item::before {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 0.1rem;
}

.stage .child-item span {
  font-size: 0.94rem;
  line-height: 1.05;
  font-weight: 850;
}

.stage .child-item small {
  min-width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.18rem;
  font-size: 0.72rem;
  font-weight: 950;
}

/* V7 actual file-end rollback: font size only. */
body .stage-rail {
  border-left: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--stage-color, var(--blue)) 22%, rgba(18, 34, 58, 0.08)), transparent 78%) !important;
}

body .stage .node-card {
  border-width: 1px;
  border-radius: 0.5rem;
}

body .stage .card-head {
  padding: 0.7rem 0.76rem 0.68rem;
  border-bottom-width: 1px;
  background: transparent;
}

body .stage .child-list {
  margin-top: 0;
  border-width: 1px;
  border-radius: 0.46rem;
}

body .stage .child-item,
body .stage .child-item:not(:has(small)) {
  grid-template-columns: 0.58rem minmax(0, 1fr) auto;
}

body .stage .child-item {
  min-height: 1.92rem;
  border-radius: 0.34rem;
}

body .stage .child-item::before {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
}

body .stage .child-item small {
  min-width: 1.38rem;
  height: 1.38rem;
  border-radius: 999px;
}

body .page-head h1 { font-size: clamp(3rem, 4.2vw, 4.8rem); }
body .stage-rail h2 { font-size: clamp(1.85rem, 1.9vw, 2.4rem); }
body .stage-rail p { font-size: 0.94rem; }
body .card-head b { font-size: 1.22rem; }
body .card-head small { font-size: 0.82rem; }
body .stage .child-item span { font-size: 0.9rem; }
body .stage .child-item small { font-size: 0.7rem; }

/* V7 actual file-end rail gradient: restore the upper-corner glow behind the main text. */
body .stage-rail {
  background:
    radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--stage-color, var(--blue)) 30%, rgba(18, 34, 58, 0.08)), transparent 62%),
    linear-gradient(135deg, color-mix(in srgb, var(--stage-color, var(--blue)) 12%, rgba(18, 34, 58, 0.18)), transparent 72%) !important;
}

/* V8 text-brutal pass: focus hierarchy through type, not decorative dots. */
body .page-head h1 {
  font-size: clamp(3.25rem, 4.8vw, 5.45rem);
  line-height: 0.84;
  font-weight: 980;
}

body .page-head p,
body .mode-strip span,
body .card-meta {
  letter-spacing: 0.015em;
  font-weight: 950;
}

body .stage-rail {
  position: relative;
  padding: 0.95rem 0 1.05rem 0.92rem;
  border-left: 0;
  background:
    radial-gradient(circle at 1.08rem 1.08rem, color-mix(in srgb, var(--stage-color, var(--blue)) 46%, rgba(18, 34, 58, 0.1)) 0 0.86rem, color-mix(in srgb, var(--stage-color, var(--blue)) 20%, rgba(18, 34, 58, 0.08)) 2.4rem, transparent 7.2rem),
    linear-gradient(135deg, color-mix(in srgb, var(--stage-color, var(--blue)) 16%, rgba(18, 34, 58, 0.16)), transparent 70%) !important;
}

body .stage-number {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.2rem;
  font-size: 0.82rem;
  font-weight: 980;
  box-shadow: 0 0 1.8rem color-mix(in srgb, var(--stage-color, var(--blue)) 42%, transparent);
}

body .stage-rail h2 {
  margin-top: 0.9rem;
  font-size: clamp(2.05rem, 2.25vw, 2.75rem);
  line-height: 0.82;
  font-weight: 980;
}

body .stage-rail p {
  max-width: 17rem;
  font-size: 0.98rem;
  line-height: 1.24;
  font-weight: 780;
}

body .stage .node-card {
  border-width: 1px;
  border-radius: 0.5rem;
}

body .stage .card-head {
  padding: 0.78rem 0.82rem 0.72rem;
  border-bottom-width: 1px;
  background: transparent;
}

body .card-meta {
  font-size: 0.74rem;
  line-height: 1;
}

body .card-head b {
  font-size: 1.32rem;
  line-height: 0.96;
  font-weight: 980;
}

body .card-head small {
  font-size: 0.84rem;
  line-height: 1.14;
  font-weight: 760;
}

body .stage .child-list {
  margin-top: 0.08rem;
  border-width: 1px;
  border-radius: 0.46rem;
}

body .stage .child-item,
body .stage .child-item:not(:has(small)) {
  grid-template-columns: 0.36rem minmax(0, 1fr) auto;
}

body .stage .child-item {
  min-height: 2.02rem;
  border-radius: 0.26rem;
}

body .stage .child-item::before {
  width: 0.26rem;
  height: 1.18rem;
  border-radius: 0.08rem;
  opacity: 0.58;
  box-shadow: none;
}

body .stage .child-item span {
  font-size: 0.98rem;
  line-height: 1.02;
  font-weight: 930;
}

body .stage .child-item small {
  min-width: 1.28rem;
  height: 1.28rem;
  border-radius: 0.2rem;
  font-size: 0.68rem;
  font-weight: 950;
  opacity: 0.78;
}

body .stage .child-item:hover,
body .stage .child-item:focus-visible {
  background: color-mix(in srgb, #12223a 88%, var(--card-color, var(--blue)));
}

body .stage .child-item:hover::before,
body .stage .child-item:focus-visible::before {
  opacity: 0.95;
}

/* V8 spacing pass: more air between left main cards and stage groups. */
body .stage-list {
  gap: 0;
}

body .stage {
  --stage-flow-gap: clamp(4.4rem, calc(2.4rem + (var(--stage-list-items) * 0.52rem)), 9.5rem);
  margin-bottom: var(--stage-flow-gap);
}

body .stage:last-child {
  margin-bottom: 0;
}

/* V8 workflow width pass: remove one third of the horizontal card length. */
body .stage-cards {
  width: min(100%, 66.666%);
  justify-self: start;
}

body .stage-cards:has(.node-card:only-child) {
  width: min(100%, 66.666%);
}

 (max-width: 72rem) {
  body .stage-cards,
  body .stage-cards:has(.node-card:only-child) {
    width: 100%;
  }
}

/* V8 workflow width pass 2: remove one fifth, keep equal card lengths. */
body .stage-cards,
body .stage-cards:has(.node-card:only-child) {
  width: min(100%, 80%);
  justify-self: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body .stage .node-card {
  width: 100%;
}

/* V18: product-layout pass. Make the header lighter and the work grid more usable. */
body .page-head {
  min-height: clamp(25rem, 34vw, 32rem);
  row-gap: clamp(1.2rem, 2vw, 2rem);
}

body .page-head h1 {
  font-size: clamp(2.8rem, 3.85vw, 4.2rem);
}

body .main-index.orbit-menu.header-orbit {
  width: min(100%, 68rem);
  min-height: clamp(18rem, 27vw, 24rem);
}

body .main-index.orbit-menu.header-orbit::before {
  width: clamp(32rem, 48vw, 45rem);
  height: clamp(9rem, 14vw, 13rem);
  border-width: 2px;
}

body .main-index.orbit-menu.header-orbit .orbit-logo {
  width: clamp(7.8rem, 10vw, 9.6rem);
}

body .main-index.orbit-menu.header-orbit .index-card,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
  width: clamp(7.2rem, 9.2vw, 9.4rem);
  min-height: 4.45rem;
}

body .phone-monitor {
  min-width: clamp(11.5rem, 13vw, 12.4rem);
}

body .phone-frame {
  width: clamp(11.5rem, 13vw, 12.4rem);
}

body .page-head > .phone-monitor {
  margin-top: 2rem;
}

body .stage-list {
  gap: clamp(4.2rem, 6vw, 6.4rem);
  margin-top: clamp(2.4rem, 3.4vw, 3.8rem);
}

body .stage {
  grid-template-columns:
    clamp(13.5rem, 15vw, 17rem)
    minmax(20rem, 1fr)
    minmax(20rem, 1fr);
  column-gap: clamp(2.6rem, 4.2vw, 4.6rem);
}

body .stage-cards,
body .stage-cards:has(.node-card:only-child) {
  width: 90%;
  gap: clamp(1.7rem, 3vw, 3.4rem);
}

body .stage .card-head b {
  font-size: clamp(1.18rem, 1.45vw, 1.48rem);
}

body .stage .child-item span {
  font-size: 0.92rem;
}

@media (min-width: 100rem) {
  body .stage-cards,
  body .stage-cards:has(.node-card:only-child) {
    width: 86%;
  }
}

@media (max-width: 58rem) {
  body .page-head {
    min-height: 0;
    row-gap: 1.1rem;
    padding-bottom: 1.2rem;
  }

  body .page-head h1 {
    font-size: clamp(2.25rem, 13vw, 3.35rem);
    line-height: 0.94;
  }

  body .main-index.orbit-menu.header-orbit {
    min-height: 12.5rem;
    padding-top: 0;
    display: block;
    width: 100%;
  }

  body .main-index.orbit-menu.header-orbit::before {
    width: min(20rem, 105vw);
    height: 5.8rem;
    top: 50%;
  }

  body .main-index.orbit-menu.header-orbit .orbit-logo {
    top: 50%;
    width: 6.5rem;
  }

  body .main-index.orbit-menu.header-orbit .index-card,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
    position: absolute;
    display: grid;
    width: 5.75rem;
    min-height: 3.1rem;
    padding: 0.34rem;
    transform:
      translate(-50%, -50%)
      translate3d(calc(var(--orbit-card-x, 0) * 0.33), calc(var(--orbit-card-y, 0) * 0.33), 0)
      scale(calc(var(--orbit-card-scale, 1) * 0.84));
  }

  body .main-index.orbit-menu.header-orbit .index-card b {
    font-size: 0.72rem;
    line-height: 0.96;
  }

  body .main-index.orbit-menu.header-orbit .index-card small {
    display: none;
  }

  body .main-index.orbit-menu.header-orbit .index-card span {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.56rem;
  }

  body .main-index.orbit-menu.header-orbit .index-card,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n) {
    display: none !important;
  }

  body .page-head > .phone-monitor {
    display: none;
  }

  body .stage-list {
    margin-top: 1.8rem;
    gap: 3rem;
  }

  body .stage {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  body .stage-cards,
  body .stage-cards:has(.node-card:only-child) {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* V17 coherence pass: one planet, one horizontal orbit light. */
body .main-index.orbit-menu.header-orbit .orbit-logo {
  z-index: 80;
}

body .planet-ring {
  display: none;
}

body .main-index.orbit-menu.header-orbit::before {
  border-width: 3px;
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
  box-shadow:
    0 0 0.55rem rgba(255, 255, 255, 0.24),
    0 0 1.8rem rgba(255, 255, 255, 0.14),
    0 0 3.6rem rgba(120, 169, 255, 0.14),
    inset 0 0 1.2rem rgba(255, 255, 255, 0.08);
}

body .main-index.orbit-menu.header-orbit::after {
  display: none;
}

body .orbit-logo::after {
  content: none;
}

/* V17 final: brighter orbit light and clearer planet typography. */
body .orbit-logo {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.62), transparent 17%),
    radial-gradient(circle at 38% 36%, rgba(116, 174, 255, 0.42), transparent 34%),
    radial-gradient(circle at 66% 74%, rgba(2, 6, 14, 0.94), transparent 58%),
    linear-gradient(145deg, #1a355a 0%, #071226 55%, #020611 100%);
  box-shadow:
    inset -1.7rem -1.9rem 2.7rem rgba(0, 0, 0, 0.58),
    inset 1.1rem 0.9rem 1.8rem rgba(255, 255, 255, 0.18),
    0 1.5rem 3.2rem rgba(0, 0, 0, 0.24),
    0 0 3.2rem rgba(255, 255, 255, 0.16),
    0 0 4.8rem rgba(73, 210, 230, 0.12);
}

body .orbit-logo::before {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.24), transparent 17%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 44%, rgba(0, 0, 0, 0.34));
}

body .orbit-logo > span,
body .orbit-logo > b {
  color: #ffffff;
  text-shadow:
    0 0 0.22rem rgba(255, 255, 255, 0.34),
    0 0.35rem 0.95rem rgba(0, 0, 0, 0.82);
}

body .orbit-logo > span {
  color: rgba(248, 251, 255, 0.86);
}

body .main-index.orbit-menu.header-orbit::before {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 0 1rem rgba(255, 255, 255, 0.13),
    0 0 2.8rem rgba(120, 169, 255, 0.12);
}

body .main-index.orbit-menu.header-orbit::after {
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 1.5rem rgba(255, 255, 255, 0.07);
}

body .planet-ring {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 0 1.1rem rgba(255, 255, 255, 0.18),
    0 0 2.1rem rgba(120, 169, 255, 0.12),
    inset 0 0 1rem rgba(255, 255, 255, 0.1);
}

/* V17: brighter orbit light and clearer planet typography. */
body .orbit-logo {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.62), transparent 17%),
    radial-gradient(circle at 38% 36%, rgba(116, 174, 255, 0.42), transparent 34%),
    radial-gradient(circle at 66% 74%, rgba(2, 6, 14, 0.94), transparent 58%),
    linear-gradient(145deg, #1a355a 0%, #071226 55%, #020611 100%);
  box-shadow:
    inset -1.7rem -1.9rem 2.7rem rgba(0, 0, 0, 0.58),
    inset 1.1rem 0.9rem 1.8rem rgba(255, 255, 255, 0.18),
    0 1.5rem 3.2rem rgba(0, 0, 0, 0.24),
    0 0 3.2rem rgba(255, 255, 255, 0.16),
    0 0 4.8rem rgba(73, 210, 230, 0.12);
}

body .orbit-logo::before {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.24), transparent 17%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 44%, rgba(0, 0, 0, 0.34));
}

body .orbit-logo > span,
body .orbit-logo > b {
  color: #ffffff;
  text-shadow:
    0 0 0.22rem rgba(255, 255, 255, 0.34),
    0 0.35rem 0.95rem rgba(0, 0, 0, 0.82);
}

body .orbit-logo > span {
  color: rgba(248, 251, 255, 0.86);
}

body .main-index.orbit-menu.header-orbit::before {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 0 1rem rgba(255, 255, 255, 0.13),
    0 0 2.8rem rgba(120, 169, 255, 0.12);
}

body .main-index.orbit-menu.header-orbit::after {
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 1.5rem rgba(255, 255, 255, 0.07);
}

body .planet-ring {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 0 1.1rem rgba(255, 255, 255, 0.18),
    0 0 2.1rem rgba(120, 169, 255, 0.12),
    inset 0 0 1rem rgba(255, 255, 255, 0.1);
}

body .stage-cards,
body .stage-cards:has(.node-card:only-child) {
  width: 80%;
}

 (max-width: 72rem) {
  body .stage-cards,
  body .stage-cards:has(.node-card:only-child) {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

/* V8 workflow equal-height pass: cards in the same row share the taller height. */
body .stage-cards {
  align-items: stretch;
}

body .stage .node-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body .stage .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body .stage .child-list {
  flex: 0 0 auto;
}

/* V8 workflow border cleanup: attached, non-pixelated card/list borders. */
body .stage .node-card {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--card-color, var(--blue)) 34%, rgba(204, 222, 246, 0.15));
  border-radius: 0.48rem;
  background-clip: padding-box;
}

body .stage .card-head {
  margin: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--card-color, var(--blue)) 30%, rgba(204, 222, 246, 0.14));
}

body .stage .card-body {
  gap: 0;
}

body .stage .child-list {
  margin: 0.58rem;
  border: 1px solid color-mix(in srgb, var(--card-color, var(--blue)) 28%, rgba(204, 222, 246, 0.12));
  border-radius: 0.34rem;
  background-clip: padding-box;
}

body .stage .child-item {
  border-radius: 0.18rem;
}

body .stage .node-card:hover {
  border-color: color-mix(in srgb, var(--card-color, var(--blue)) 46%, rgba(204, 222, 246, 0.18));
}

/* V9 phone monitor: replace the right status pills with a compact campaign display. */
body .page-head {
  align-items: start;
}

body .phone-monitor {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-width: min(28vw, 22rem);
}

body .phone-frame {
  width: clamp(12.5rem, 15vw, 16rem);
  aspect-ratio: 9 / 16;
  padding: 0.62rem;
  border: 1px solid rgba(204, 222, 246, 0.26);
  border-radius: 1.35rem;
  background:
    linear-gradient(145deg, rgba(21, 42, 70, 0.72), rgba(8, 18, 34, 0.28)),
    rgba(6, 14, 27, 0.28);
  box-shadow: none;
}

body .phone-speaker {
  width: 2.6rem;
  height: 0.28rem;
  margin: 0 auto 0.5rem;
  border-radius: 999px;
  background: rgba(204, 222, 246, 0.32);
}

body .phone-screen {
  height: calc(100% - 0.78rem);
  padding: 0.7rem;
  border: 1px solid rgba(204, 222, 246, 0.18);
  border-radius: 0.92rem;
  background:
    linear-gradient(rgba(204, 222, 246, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 222, 246, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 18% 8%, rgba(73, 210, 230, 0.16), transparent 42%),
    rgba(8, 18, 34, 0.68);
  background-size: 100% 1.72rem, 1.72rem 100%, auto, auto;
}

body .monitor-top {
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(204, 222, 246, 0.16);
}

body .monitor-top span,
body .monitor-top b,
body .monitor-grid span,
body .monitor-grid b {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #eef6ff;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

body .monitor-top span {
  color: rgba(238, 246, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 850;
}

body .monitor-top b {
  color: #49d2e6;
  font-size: 0.72rem;
  font-weight: 980;
}

body .monitor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.42rem 0.5rem;
  align-items: baseline;
}

body .monitor-grid span {
  overflow: hidden;
  color: rgba(238, 246, 255, 0.68);
  font-size: 0.64rem;
  font-weight: 760;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body .monitor-grid b {
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 980;
}

@media (max-width: 58rem) {
  body .page-head {
    grid-template-columns: 1fr;
  }

  body .phone-monitor {
    justify-content: flex-start;
    min-width: 0;
  }

  body .phone-frame {
    width: min(16rem, 100%);
  }
}

/* V9 main index: simple borderless grid replacing the old three header cards. */
body .main-index {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1.4rem;
  min-height: 7.2rem;
  padding: 0;
  border: 0;
  background: transparent;
}

body .main-index article {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  row-gap: 0.16rem;
  align-content: start;
  min-height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body .main-index .index-card {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  row-gap: 0.16rem;
  align-content: start;
  min-height: 4.2rem;
  padding: 0.62rem 0.7rem 0.7rem;
  color: inherit;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 0.95rem 0.95rem, rgba(204, 222, 246, 0.2) 0 0.78rem, rgba(204, 222, 246, 0.07) 2.1rem, transparent 6.2rem),
    linear-gradient(135deg, rgba(204, 222, 246, 0.07), transparent 72%);
}

body .main-index .index-card:nth-child(1) {
  background:
    radial-gradient(circle at 0.95rem 0.95rem, color-mix(in srgb, var(--stage-1) 42%, rgba(18, 34, 58, 0.08)) 0 0.78rem, color-mix(in srgb, var(--stage-1) 18%, rgba(18, 34, 58, 0.08)) 2.1rem, transparent 6.2rem),
    linear-gradient(135deg, color-mix(in srgb, var(--stage-1) 12%, rgba(18, 34, 58, 0.16)), transparent 72%);
}

body .main-index .index-card:nth-child(2) {
  background:
    radial-gradient(circle at 0.95rem 0.95rem, color-mix(in srgb, var(--stage-2) 42%, rgba(18, 34, 58, 0.08)) 0 0.78rem, color-mix(in srgb, var(--stage-2) 18%, rgba(18, 34, 58, 0.08)) 2.1rem, transparent 6.2rem),
    linear-gradient(135deg, color-mix(in srgb, var(--stage-2) 12%, rgba(18, 34, 58, 0.16)), transparent 72%);
}

body .main-index .index-card:nth-child(3) {
  background:
    radial-gradient(circle at 0.95rem 0.95rem, color-mix(in srgb, var(--stage-3) 42%, rgba(18, 34, 58, 0.08)) 0 0.78rem, color-mix(in srgb, var(--stage-3) 18%, rgba(18, 34, 58, 0.08)) 2.1rem, transparent 6.2rem),
    linear-gradient(135deg, color-mix(in srgb, var(--stage-3) 12%, rgba(18, 34, 58, 0.16)), transparent 72%);
}

body .main-index .index-card:nth-child(4) {
  background:
    radial-gradient(circle at 0.95rem 0.95rem, color-mix(in srgb, var(--stage-4) 42%, rgba(18, 34, 58, 0.08)) 0 0.78rem, color-mix(in srgb, var(--stage-4) 18%, rgba(18, 34, 58, 0.08)) 2.1rem, transparent 6.2rem),
    linear-gradient(135deg, color-mix(in srgb, var(--stage-4) 12%, rgba(18, 34, 58, 0.16)), transparent 72%);
}

body .main-index .index-card:nth-child(5) {
  background:
    radial-gradient(circle at 0.95rem 0.95rem, color-mix(in srgb, var(--stage-5) 42%, rgba(18, 34, 58, 0.08)) 0 0.78rem, color-mix(in srgb, var(--stage-5) 18%, rgba(18, 34, 58, 0.08)) 2.1rem, transparent 6.2rem),
    linear-gradient(135deg, color-mix(in srgb, var(--stage-5) 12%, rgba(18, 34, 58, 0.16)), transparent 72%);
}

body .main-index .index-card:nth-child(6) {
  background:
    radial-gradient(circle at 0.95rem 0.95rem, color-mix(in srgb, var(--stage-6) 42%, rgba(18, 34, 58, 0.08)) 0 0.78rem, color-mix(in srgb, var(--stage-6) 18%, rgba(18, 34, 58, 0.08)) 2.1rem, transparent 6.2rem),
    linear-gradient(135deg, color-mix(in srgb, var(--stage-6) 12%, rgba(18, 34, 58, 0.16)), transparent 72%);
}

body .main-index .index-card:hover,
body .main-index .index-card:focus-visible {
  outline: 0;
  background-color: rgba(204, 222, 246, 0.035);
}

body .stage {
  scroll-margin-top: 2rem;
}

body .main-index span {
  grid-row: 1 / span 2;
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(204, 222, 246, 0.18);
  border-radius: 0.22rem;
  background: rgba(204, 222, 246, 0.055);
  color: rgba(238, 246, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 950;
}

body .main-index b {
  color: #f7fbff;
  font-size: 1.08rem;
  line-height: 0.98;
  font-weight: 950;
}

body .main-index small {
  max-width: 16rem;
  color: rgba(238, 246, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.22;
  font-weight: 720;
}

@media (max-width: 58rem) {
  body .main-index {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

/* V9 main index dock: mini stage cards, one row, hover magnifier. */
body .main-index {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.35rem, 0.8vw, 0.75rem);
  align-items: end;
  min-height: 6.4rem;
  overflow: visible;
}

body .main-index .index-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 0.68rem 0.58rem 0.62rem;
  grid-template-columns: 2.05rem minmax(0, 1fr);
  column-gap: 0.5rem;
  row-gap: 0.12rem;
  transform-origin: center bottom;
  transition:
    transform 170ms ease,
    filter 170ms ease,
    background-color 170ms ease;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  z-index: 1;
  border-radius: 0.08rem;
}

body .main-index .index-card::after {
  content: "";
  position: absolute;
  inset: -0.22rem;
  border: 1px solid transparent;
  border-radius: 0.1rem;
  pointer-events: none;
  transition: border-color 170ms ease, box-shadow 170ms ease;
}

body .main-index .index-card:hover,
body .main-index .index-card:focus-visible {
  transform: translateZ(0) scale(1.16);
  filter: saturate(1.08);
  z-index: 5;
}

body .main-index .index-card:hover::after,
body .main-index .index-card:focus-visible::after {
  border-color: transparent;
  box-shadow: none;
}

body .main-index span {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.08rem;
  font-size: 0.82rem;
  font-weight: 980;
}

body .main-index b {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
  font-size: 2.05rem;
  line-height: 0.9;
  font-weight: 980;
}

body .main-index .index-card:nth-child(2) b,
body .main-index .index-card:nth-child(5) b {
  font-size: clamp(1.45rem, 1.22vw, 1.76rem);
  line-height: 0.92;
}

body .main-index small {
  display: -webkit-box;
  max-width: none;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: rgba(238, 246, 255, 0.66);
  font-size: 0.98rem;
  line-height: 1.28;
  font-weight: 780;
}

@media (max-width: 72rem) {
  body .main-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 42rem) {
  body .main-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .main-index .index-card:hover,
  body .main-index .index-card:focus-visible {
    transform: scale(1.06);
  }
}

/* V10 C: workflow as type plus list surface, no outer card. */
body .stage .node-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body .stage .node-card:hover {
  border: 0;
  background: transparent;
}

body .stage .card-head {
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

body .card-meta {
  color: color-mix(in srgb, var(--card-color, var(--blue)) 76%, #eef6ff);
}

body .card-head b {
  font-size: 1.48rem;
  line-height: 0.92;
}

body .card-head small {
  margin-top: 0.14rem;
}

body .stage .card-body {
  gap: 0;
}

body .stage .child-list {
  margin: 0.62rem 0 0;
  border: 0;
  border-radius: 0.3rem;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--card-color, var(--blue)) 50%, rgba(18, 34, 58, 0.9)) 0%, rgba(25, 47, 76, 0.68) 44%, color-mix(in srgb, var(--card-color, var(--blue)) 18%, rgba(18, 34, 58, 0.74)) 100%);
}

body .stage .child-item::before {
  width: 0.18rem;
  opacity: 0.48;
}

/* V12: keep variant C structure, gradients and borders; only use the newer main-area color assignment. */
:root {
  --stage-1: #e94f5d;
  --stage-2: #e0b43d;
  --stage-3: #32bd7b;
  --stage-4: #31a7ee;
  --stage-5: #327cff;
  --stage-6: #a065ff;
}

/* V13: V6 had no gradient panel behind the left main text. */
body .stage-rail {
  border-left: 0;
  background: transparent !important;
}

/* Menu tiles follow the same V6 rule: color accents only, no gradient panel behind the text. */
body .main-index .index-card,
body .main-index .index-card:nth-child(1),
body .main-index .index-card:nth-child(2),
body .main-index .index-card:nth-child(3),
body .main-index .index-card:nth-child(4),
body .main-index .index-card:nth-child(5),
body .main-index .index-card:nth-child(6) {
  background: transparent !important;
}

body .main-index .index-card:hover,
body .main-index .index-card:focus-visible {
  background: rgba(204, 222, 246, 0.045) !important;
}

body .main-index .index-card:nth-child(1) span { background: var(--stage-1); color: #071226; }
body .main-index .index-card:nth-child(2) span { background: var(--stage-2); color: #071226; }
body .main-index .index-card:nth-child(3) span { background: var(--stage-3); color: #071226; }
body .main-index .index-card:nth-child(4) span { background: var(--stage-4); color: #071226; }
body .main-index .index-card:nth-child(5) span { background: var(--stage-5); color: #071226; }
body .main-index .index-card:nth-child(6) span { background: var(--stage-6); color: #071226; }

/* V14: clickable orbit navigation around the Marketing Universe logo. */
body .main-index.orbit-menu {
  position: relative;
  display: block;
  min-height: clamp(22rem, 34vw, 30rem);
  margin-top: clamp(2rem, 4vw, 4.25rem);
  overflow: visible;
  border-top: 1px solid rgba(204, 222, 246, 0.1);
  border-bottom: 1px solid rgba(204, 222, 246, 0.08);
}

body .main-index.orbit-menu::before,
body .main-index.orbit-menu::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

body .main-index.orbit-menu::before {
  width: clamp(18rem, 36vw, 29rem);
  height: clamp(18rem, 36vw, 29rem);
  border: 1px solid rgba(204, 222, 246, 0.16);
  border-radius: 50%;
  box-shadow:
    inset 0 0 2.6rem rgba(49, 167, 238, 0.06),
    0 0 3rem rgba(50, 124, 255, 0.08);
}

body .main-index.orbit-menu::after {
  width: clamp(12.5rem, 25vw, 20rem);
  height: clamp(12.5rem, 25vw, 20rem);
  border: 1px solid rgba(204, 222, 246, 0.08);
  border-radius: 50%;
}

body .orbit-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: clamp(10.5rem, 18vw, 15.5rem);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(238, 245, 255, 0.22), transparent 34%),
    radial-gradient(circle at 62% 72%, rgba(50, 124, 255, 0.22), transparent 42%),
    #071226;
  box-shadow:
    inset 0 0 0 1px rgba(204, 222, 246, 0.18),
    0 0 2.7rem rgba(49, 167, 238, 0.13);
  color: #eef5ff;
  text-align: center;
}

body .orbit-logo span {
  color: rgba(238, 245, 255, 0.66);
  font-size: clamp(0.74rem, 0.9vw, 0.94rem);
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
}

body .orbit-logo b {
  margin-top: 0.16rem;
  font-size: clamp(1.55rem, 2.4vw, 2.45rem);
  line-height: 0.9;
  font-weight: 980;
}

body .main-index.orbit-menu .index-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: clamp(9.5rem, 14vw, 13rem);
  min-height: 5.7rem;
  aspect-ratio: auto;
  padding: 0.58rem 0.62rem 0.62rem;
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  align-content: start;
  column-gap: 0.54rem;
  row-gap: 0.13rem;
  border-radius: 0.08rem;
  transform: translate(-50%, -50%);
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease;
}

body .main-index.orbit-menu .index-card:hover,
body .main-index.orbit-menu .index-card:focus-visible {
  transform: translate(-50%, -50%);
  background: rgba(204, 222, 246, 0.055) !important;
  box-shadow: 0 0 0 1px rgba(204, 222, 246, 0.12);
}

body .main-index.orbit-menu .index-card:nth-of-type(1) { transform: translate(-50%, -50%) translate(-17.8rem, -6.8rem); }
body .main-index.orbit-menu .index-card:nth-of-type(2) { transform: translate(-50%, -50%) translate(0, -11.4rem); }
body .main-index.orbit-menu .index-card:nth-of-type(3) { transform: translate(-50%, -50%) translate(17.8rem, -6.8rem); }
body .main-index.orbit-menu .index-card:nth-of-type(4) { transform: translate(-50%, -50%) translate(17.8rem, 6.8rem); }
body .main-index.orbit-menu .index-card:nth-of-type(5) { transform: translate(-50%, -50%) translate(0, 11.4rem); }
body .main-index.orbit-menu .index-card:nth-of-type(6) { transform: translate(-50%, -50%) translate(-17.8rem, 6.8rem); }

body .main-index.orbit-menu .index-card:nth-of-type(1):hover,
body .main-index.orbit-menu .index-card:nth-of-type(1):focus-visible { transform: translate(-50%, -50%) translate(-17.8rem, -6.8rem); }
body .main-index.orbit-menu .index-card:nth-of-type(2):hover,
body .main-index.orbit-menu .index-card:nth-of-type(2):focus-visible { transform: translate(-50%, -50%) translate(0, -11.4rem); }
body .main-index.orbit-menu .index-card:nth-of-type(3):hover,
body .main-index.orbit-menu .index-card:nth-of-type(3):focus-visible { transform: translate(-50%, -50%) translate(17.8rem, -6.8rem); }
body .main-index.orbit-menu .index-card:nth-of-type(4):hover,
body .main-index.orbit-menu .index-card:nth-of-type(4):focus-visible { transform: translate(-50%, -50%) translate(17.8rem, 6.8rem); }
body .main-index.orbit-menu .index-card:nth-of-type(5):hover,
body .main-index.orbit-menu .index-card:nth-of-type(5):focus-visible { transform: translate(-50%, -50%) translate(0, 11.4rem); }
body .main-index.orbit-menu .index-card:nth-of-type(6):hover,
body .main-index.orbit-menu .index-card:nth-of-type(6):focus-visible { transform: translate(-50%, -50%) translate(-17.8rem, 6.8rem); }

body .main-index.orbit-menu .index-card::after {
  content: none;
}

body .main-index.orbit-menu .index-card span {
  width: 1.78rem;
  height: 1.78rem;
  font-size: 0.72rem;
}

body .main-index.orbit-menu .index-card:nth-of-type(1) span { background: var(--stage-1); color: #071226; }
body .main-index.orbit-menu .index-card:nth-of-type(2) span { background: var(--stage-2); color: #071226; }
body .main-index.orbit-menu .index-card:nth-of-type(3) span { background: var(--stage-3); color: #071226; }
body .main-index.orbit-menu .index-card:nth-of-type(4) span { background: var(--stage-4); color: #071226; }
body .main-index.orbit-menu .index-card:nth-of-type(5) span { background: var(--stage-5); color: #071226; }
body .main-index.orbit-menu .index-card:nth-of-type(6) span { background: var(--stage-6); color: #071226; }

body .main-index.orbit-menu .index-card b,
body .main-index.orbit-menu .index-card:nth-of-type(2) b,
body .main-index.orbit-menu .index-card:nth-of-type(5) b {
  font-size: clamp(1.08rem, 1.25vw, 1.45rem);
  line-height: 0.94;
}

body .main-index.orbit-menu .index-card small {
  -webkit-line-clamp: 3;
  font-size: 0.72rem;
  line-height: 1.16;
}

@media (max-width: 82rem) {
  body .main-index.orbit-menu .index-card:nth-of-type(1) { transform: translate(-50%, -50%) translate(-14.1rem, -6.5rem); }
  body .main-index.orbit-menu .index-card:nth-of-type(2) { transform: translate(-50%, -50%) translate(0, -10.8rem); }
  body .main-index.orbit-menu .index-card:nth-of-type(3) { transform: translate(-50%, -50%) translate(14.1rem, -6.5rem); }
  body .main-index.orbit-menu .index-card:nth-of-type(4) { transform: translate(-50%, -50%) translate(14.1rem, 6.5rem); }
  body .main-index.orbit-menu .index-card:nth-of-type(5) { transform: translate(-50%, -50%) translate(0, 10.8rem); }
  body .main-index.orbit-menu .index-card:nth-of-type(6) { transform: translate(-50%, -50%) translate(-14.1rem, 6.5rem); }
}

@media (max-width: 58rem) {
  body .main-index.orbit-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    min-height: 0;
    padding-top: 8.5rem;
  }

  body .main-index.orbit-menu::before {
    width: 7.2rem;
    height: 7.2rem;
    top: 3.5rem;
  }

  body .main-index.orbit-menu::after {
    content: none;
  }

  body .orbit-logo {
    top: 3.5rem;
    width: 6.4rem;
  }

  body .orbit-logo b {
    font-size: 1.05rem;
  }

  body .main-index.orbit-menu .index-card,
  body .main-index.orbit-menu .index-card:nth-of-type(n),
  body .main-index.orbit-menu .index-card:nth-of-type(n):hover,
  body .main-index.orbit-menu .index-card:nth-of-type(n):focus-visible {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    transform: none;
  }
}

/* V15: the orbit menu lives inside the header, right of the main title. */
body .page-head {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: clamp(1.5rem, 4vw, 5rem);
  row-gap: clamp(1.4rem, 2.5vw, 2.5rem);
  min-height: clamp(34rem, 43vw, 42rem);
  padding: clamp(1.2rem, 2vw, 2rem) 0 clamp(1.4rem, 2.2vw, 2.2rem);
}

body .page-head > div:first-child {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

body .page-head h1 {
  max-width: 42rem;
}

body .main-index.orbit-menu.header-orbit {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  width: min(100%, 39rem);
  min-height: clamp(22rem, 30vw, 27rem);
  margin: 0;
  border-top: 0;
  border-bottom: 0;
}

body .page-head > .phone-monitor {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
}

body .main-index.orbit-menu.header-orbit::before {
  width: clamp(17rem, 27vw, 25rem);
  height: clamp(17rem, 27vw, 25rem);
}

body .main-index.orbit-menu.header-orbit::after {
  width: clamp(11.5rem, 19vw, 17rem);
  height: clamp(11.5rem, 19vw, 17rem);
}

body .header-orbit .orbit-logo {
  width: clamp(9rem, 14vw, 12.6rem);
}

body .header-orbit .index-card {
  width: clamp(8.6rem, 11vw, 10.8rem);
  min-height: 5rem;
}

body .header-orbit .index-card:nth-of-type(1) { transform: translate(-50%, -50%) translate(-14.4rem, -5.8rem); }
body .header-orbit .index-card:nth-of-type(2) { transform: translate(-50%, -50%) translate(0, -9.5rem); }
body .header-orbit .index-card:nth-of-type(3) { transform: translate(-50%, -50%) translate(14.4rem, -5.8rem); }
body .header-orbit .index-card:nth-of-type(4) { transform: translate(-50%, -50%) translate(14.4rem, 5.8rem); }
body .header-orbit .index-card:nth-of-type(5) { transform: translate(-50%, -50%) translate(0, 9.5rem); }
body .header-orbit .index-card:nth-of-type(6) { transform: translate(-50%, -50%) translate(-14.4rem, 5.8rem); }

body .header-orbit .index-card:nth-of-type(1):hover,
body .header-orbit .index-card:nth-of-type(1):focus-visible { transform: translate(-50%, -50%) translate(-14.4rem, -5.8rem); }
body .header-orbit .index-card:nth-of-type(2):hover,
body .header-orbit .index-card:nth-of-type(2):focus-visible { transform: translate(-50%, -50%) translate(0, -9.5rem); }
body .header-orbit .index-card:nth-of-type(3):hover,
body .header-orbit .index-card:nth-of-type(3):focus-visible { transform: translate(-50%, -50%) translate(14.4rem, -5.8rem); }
body .header-orbit .index-card:nth-of-type(4):hover,
body .header-orbit .index-card:nth-of-type(4):focus-visible { transform: translate(-50%, -50%) translate(14.4rem, 5.8rem); }
body .header-orbit .index-card:nth-of-type(5):hover,
body .header-orbit .index-card:nth-of-type(5):focus-visible { transform: translate(-50%, -50%) translate(0, 9.5rem); }
body .header-orbit .index-card:nth-of-type(6):hover,
body .header-orbit .index-card:nth-of-type(6):focus-visible { transform: translate(-50%, -50%) translate(-14.4rem, 5.8rem); }

body .stage-list {
  margin-top: clamp(2.2rem, 4vw, 4.4rem);
}

@media (max-width: 74rem) {
  body .page-head {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
  }

  body .main-index.orbit-menu.header-orbit {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    width: 100%;
  }

  body .page-head > .phone-monitor {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
  }
}

/* Higher-specificity compact orbit positions for the header version. */
body .main-index.orbit-menu.header-orbit .index-card {
  width: clamp(8.2rem, 10vw, 10rem);
  min-height: 4.85rem;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(1) { transform: translate(-50%, -50%) translate(-12.6rem, -5.2rem); }
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(2) { transform: translate(-50%, -50%) translate(0, -8.7rem); }
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(3) { transform: translate(-50%, -50%) translate(12.6rem, -5.2rem); }
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(4) { transform: translate(-50%, -50%) translate(12.6rem, 5.2rem); }
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(5) { transform: translate(-50%, -50%) translate(0, 8.7rem); }
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(6) { transform: translate(-50%, -50%) translate(-12.6rem, 5.2rem); }

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(1):hover,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(1):focus-visible { transform: translate(-50%, -50%) translate(-12.6rem, -5.2rem); }
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(2):hover,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(2):focus-visible { transform: translate(-50%, -50%) translate(0, -8.7rem); }
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(3):hover,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(3):focus-visible { transform: translate(-50%, -50%) translate(12.6rem, -5.2rem); }
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(4):hover,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(4):focus-visible { transform: translate(-50%, -50%) translate(12.6rem, 5.2rem); }
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(5):hover,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(5):focus-visible { transform: translate(-50%, -50%) translate(0, 8.7rem); }
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(6):hover,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(6):focus-visible { transform: translate(-50%, -50%) translate(-12.6rem, 5.2rem); }

@media (max-width: 58rem) {
  body .main-index.orbit-menu.header-orbit .index-card,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    transform: none;
  }
}

/* V15 correction: title as one line, orbit directly below it in the left header area. */
body .page-head {
  grid-template-columns: minmax(42rem, 1fr) auto;
  row-gap: clamp(1.9rem, 3vw, 3rem);
}

body .page-head h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(3rem, 4.15vw, 4.35rem);
  line-height: 0.96;
}

body .main-index.orbit-menu.header-orbit {
  align-self: start;
  margin-top: 0;
}

@media (max-width: 74rem) {
  body .page-head {
    grid-template-columns: 1fr;
  }

  body .page-head h1 {
    white-space: normal;
  }
}

/* V15 perspective menu: cards orbit in a tilted vertical plane around the planet. */
body .main-index.orbit-menu.header-orbit {
  width: min(100%, 55rem);
  min-height: clamp(31rem, 42vw, 39rem);
  perspective: 58rem;
  transform-style: preserve-3d;
}

body .main-index.orbit-menu.header-orbit::before {
  width: clamp(16rem, 23vw, 22rem);
  height: clamp(20rem, 30vw, 28rem);
  border-color: rgba(204, 222, 246, 0.12);
  transform: translate(-50%, -50%) rotateX(64deg) rotateZ(-8deg);
}

body .main-index.orbit-menu.header-orbit::after {
  width: clamp(9.5rem, 15vw, 13rem);
  height: clamp(12rem, 18vw, 16rem);
  border-color: rgba(204, 222, 246, 0.07);
  transform: translate(-50%, -50%) rotateX(64deg) rotateZ(-8deg);
}

body .main-index.orbit-menu.header-orbit .orbit-logo {
  z-index: 70;
  width: clamp(9.2rem, 14vw, 12.4rem);
  pointer-events: none;
}

body .main-index.orbit-menu.header-orbit .orbit-logo .planet-ring {
  display: block !important;
}

body .main-index.orbit-menu.header-orbit .index-card,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
  position: absolute;
  display: grid !important;
  left: 50%;
  top: 50%;
  z-index: var(--orbit-card-z, 40);
  width: clamp(8.8rem, 12vw, 11.6rem);
  min-height: 5.25rem;
  opacity: var(--orbit-card-opacity, 1);
  filter: blur(var(--orbit-card-blur, 0));
  transform:
    translate(-50%, -50%)
    translate3d(var(--orbit-card-x, 0), var(--orbit-card-y, 0), 0)
    rotateY(-13deg)
    rotateX(5deg)
    scale(var(--orbit-card-scale, 1));
  transform-origin: center;
  transition:
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 520ms ease,
    filter 520ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

body .main-index.orbit-menu.header-orbit .planet-ring .ring-number {
  display: none;
}

body .main-index.orbit-menu.header-orbit .index-card.is-orbit-front {
  z-index: 160;
  background:
    linear-gradient(135deg, rgba(204, 222, 246, 0.08), rgba(204, 222, 246, 0.02)) !important;
  box-shadow:
    0 0 0 1px rgba(204, 222, 246, 0.16),
    0 1.1rem 2.4rem rgba(0, 0, 0, 0.28);
}

body .main-index.orbit-menu.header-orbit .index-card:not(.is-orbit-front) small {
  -webkit-line-clamp: 2;
}

@media (max-width: 58rem) {
  body .main-index.orbit-menu.header-orbit .index-card,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
    position: relative;
    left: auto;
    top: auto;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* V15: 3D planet ring. The active number moves to the front on hover/focus. */
body .main-index.orbit-menu.header-orbit {
  perspective: 48rem;
}

body .orbit-logo {
  overflow: visible;
  transform-style: preserve-3d;
  background:
    radial-gradient(circle at 31% 24%, rgba(244, 250, 255, 0.38), transparent 18%),
    radial-gradient(circle at 40% 38%, rgba(76, 149, 255, 0.34), transparent 34%),
    radial-gradient(circle at 66% 74%, rgba(4, 8, 16, 0.92), transparent 58%),
    linear-gradient(145deg, #152b4a 0%, #071226 56%, #020611 100%);
  box-shadow:
    inset -1.7rem -1.9rem 2.7rem rgba(0, 0, 0, 0.56),
    inset 1.1rem 0.9rem 1.8rem rgba(206, 230, 255, 0.12),
    0 1.5rem 3.2rem rgba(0, 0, 0, 0.24),
    0 0 3rem rgba(49, 167, 238, 0.15);
}

body .orbit-logo::before {
  content: "";
  position: absolute;
  inset: 7%;
  z-index: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.16), transparent 16%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 46%, rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

body .orbit-logo > span,
body .orbit-logo > b {
  position: relative;
  z-index: 3;
  text-shadow: 0 0.3rem 0.75rem rgba(0, 0, 0, 0.45);
}

body .planet-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 13.8rem;
  height: 4.7rem;
  border: 1px solid rgba(204, 222, 246, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(64deg) rotateZ(-10deg);
  transform-style: preserve-3d;
  box-shadow:
    0 0 0.9rem rgba(120, 169, 255, 0.18),
    inset 0 0 1rem rgba(204, 222, 246, 0.08);
  pointer-events: none;
}

body .planet-ring::before,
body .planet-ring::after {
  content: "";
  position: absolute;
  inset: 0.34rem;
  border-radius: 50%;
  border: 1px solid rgba(204, 222, 246, 0.1);
}

body .planet-ring::after {
  inset: -0.42rem;
  border-color: rgba(204, 222, 246, 0.07);
}

body .ring-number {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: var(--ring-z, 50);
  width: 2.05rem;
  height: 2.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.16rem;
  background: var(--ring-color, var(--stage-1));
  color: #071226;
  font-size: 0.74rem;
  font-weight: 980;
  opacity: var(--ring-opacity, 0.7);
  transform:
    translate(-50%, -50%)
    translate3d(var(--ring-x, 0), var(--ring-y, 0), 0)
    rotateX(-64deg)
    rotateZ(10deg)
    scale(var(--ring-scale, 1));
  transform-origin: center;
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 420ms ease,
    box-shadow 420ms ease;
  box-shadow: 0 0 0.75rem color-mix(in srgb, var(--ring-color, var(--stage-1)) 28%, transparent);
}

body .ring-number.is-front {
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0.7rem 1.7rem color-mix(in srgb, var(--ring-color, var(--stage-1)) 46%, transparent);
}

body .header-orbit .planet-ring .ring-number,
body .header-orbit .planet-ring .ring-number.is-front {
  background: var(--ring-color, var(--stage-1));
  color: #071226;
  text-transform: none;
}

body .header-orbit .index-card {
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease;
}

body .header-orbit .index-card:hover span,
body .header-orbit .index-card:focus-visible span {
  box-shadow: 0 0 1.1rem currentColor;
}

body .main-index.orbit-menu.header-orbit .index-card[aria-disabled="true"] {
  pointer-events: none;
}

/* V16: shrink the workflow parent container, not each individual workflow card. */
body .stage-cards,
body .stage-cards:has(.node-card:only-child) {
  width: 80%;
}

body .stage .node-card {
  width: 100%;
}

/* V18 actual final override: product-first proportions. */
body .page-head {
  min-height: clamp(23rem, 31vw, 29rem);
}

body .main-index.orbit-menu.header-orbit {
  min-height: clamp(17rem, 24vw, 22rem);
}

body .main-index.orbit-menu.header-orbit .orbit-logo {
  width: clamp(7.2rem, 9vw, 8.8rem);
}

body .main-index.orbit-menu.header-orbit::before {
  width: clamp(31rem, 45vw, 42rem);
  height: clamp(8rem, 12vw, 11rem);
  border-width: 2px;
}

body .phone-monitor {
  min-width: clamp(10.5rem, 12vw, 11.5rem);
}

body .phone-frame {
  width: clamp(10.5rem, 12vw, 11.5rem);
}

body .page-head > .phone-monitor {
  margin-top: 1.4rem;
}

body .stage-cards,
body .stage-cards:has(.node-card:only-child) {
  width: 90%;
}

@media (max-width: 58rem) {
  body .page-head {
    min-height: 0;
  }

  body .main-index.orbit-menu.header-orbit {
    min-height: 12rem;
  }

  body .page-head > .phone-monitor {
    display: none;
  }

  body .stage-cards,
  body .stage-cards:has(.node-card:only-child) {
    width: 100%;
  }
}

/* V18 final product-layout pass: compact header, lighter mobile, usable workflow width. */
body .page-head {
  min-height: clamp(25rem, 34vw, 32rem);
  row-gap: clamp(1.2rem, 2vw, 2rem);
}

body .page-head h1 {
  font-size: clamp(2.8rem, 3.85vw, 4.2rem);
}

body .main-index.orbit-menu.header-orbit {
  width: min(100%, 68rem);
  min-height: clamp(18rem, 27vw, 24rem);
}

body .main-index.orbit-menu.header-orbit::before {
  width: clamp(32rem, 48vw, 45rem);
  height: clamp(9rem, 14vw, 13rem);
  border-width: 2px;
}

body .main-index.orbit-menu.header-orbit .orbit-logo {
  width: clamp(7.8rem, 10vw, 9.6rem);
}

body .main-index.orbit-menu.header-orbit .index-card,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
  width: clamp(7.2rem, 9.2vw, 9.4rem);
  min-height: 4.45rem;
}

body .phone-monitor {
  min-width: clamp(11.5rem, 13vw, 12.4rem);
}

body .phone-frame {
  width: clamp(11.5rem, 13vw, 12.4rem);
}

body .page-head > .phone-monitor {
  margin-top: 2rem;
}

body .stage-list {
  gap: clamp(4.2rem, 6vw, 6.4rem);
  margin-top: clamp(2.4rem, 3.4vw, 3.8rem);
}

body .stage {
  grid-template-columns:
    clamp(13.5rem, 15vw, 17rem)
    minmax(20rem, 1fr)
    minmax(20rem, 1fr);
  column-gap: clamp(2.6rem, 4.2vw, 4.6rem);
}

body .stage-cards,
body .stage-cards:has(.node-card:only-child) {
  width: 90%;
  gap: clamp(1.7rem, 3vw, 3.4rem);
}

body .stage .card-head b {
  font-size: clamp(1.18rem, 1.45vw, 1.48rem);
}

body .stage .child-item span {
  font-size: 0.92rem;
}

@media (min-width: 100rem) {
  body .stage-cards,
  body .stage-cards:has(.node-card:only-child) {
    width: 86%;
  }
}

@media (max-width: 58rem) {
  body .page-head {
    min-height: 0;
    row-gap: 1.1rem;
    padding-bottom: 1.2rem;
  }

  body .page-head h1 {
    font-size: clamp(2.25rem, 13vw, 3.35rem);
    line-height: 0.94;
  }

  body .main-index.orbit-menu.header-orbit {
    min-height: 12.5rem;
    padding-top: 0;
    display: block;
    width: 100%;
  }

  body .main-index.orbit-menu.header-orbit::before {
    width: min(20rem, 105vw);
    height: 5.8rem;
    top: 50%;
  }

  body .main-index.orbit-menu.header-orbit .orbit-logo {
    top: 50%;
    width: 6.5rem;
  }

  body .main-index.orbit-menu.header-orbit .index-card,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
    position: absolute;
    display: grid;
    width: 5.75rem;
    min-height: 3.1rem;
    padding: 0.34rem;
    transform:
      translate(-50%, -50%)
      translate3d(calc(var(--orbit-card-x, 0) * 0.33), calc(var(--orbit-card-y, 0) * 0.33), 0)
      scale(calc(var(--orbit-card-scale, 1) * 0.84));
  }

  body .main-index.orbit-menu.header-orbit .index-card b {
    font-size: 0.72rem;
    line-height: 0.96;
  }

  body .main-index.orbit-menu.header-orbit .index-card small {
    display: none;
  }

  body .main-index.orbit-menu.header-orbit .index-card span {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.56rem;
  }

  body .page-head > .phone-monitor {
    display: none;
  }

  body .stage-list {
    margin-top: 1.8rem;
    gap: 3rem;
  }

  body .stage {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  body .stage-cards,
  body .stage-cards:has(.node-card:only-child) {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* V17 final: brighter orbit light and clearer planet typography. */
body .orbit-logo {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.62), transparent 17%),
    radial-gradient(circle at 38% 36%, rgba(116, 174, 255, 0.42), transparent 34%),
    radial-gradient(circle at 66% 74%, rgba(2, 6, 14, 0.94), transparent 58%),
    linear-gradient(145deg, #1a355a 0%, #071226 55%, #020611 100%);
  box-shadow:
    inset -1.7rem -1.9rem 2.7rem rgba(0, 0, 0, 0.58),
    inset 1.1rem 0.9rem 1.8rem rgba(255, 255, 255, 0.18),
    0 1.5rem 3.2rem rgba(0, 0, 0, 0.24),
    0 0 3.2rem rgba(255, 255, 255, 0.16),
    0 0 4.8rem rgba(73, 210, 230, 0.12);
}

body .orbit-logo::before {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.24), transparent 17%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 44%, rgba(0, 0, 0, 0.34));
}

body .orbit-logo > span,
body .orbit-logo > b {
  color: #ffffff;
  text-shadow:
    0 0 0.22rem rgba(255, 255, 255, 0.34),
    0 0.35rem 0.95rem rgba(0, 0, 0, 0.82);
}

body .orbit-logo > span {
  color: rgba(248, 251, 255, 0.86);
}

body .main-index.orbit-menu.header-orbit::before {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 0 1rem rgba(255, 255, 255, 0.13),
    0 0 2.8rem rgba(120, 169, 255, 0.12);
}

body .main-index.orbit-menu.header-orbit::after {
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 1.5rem rgba(255, 255, 255, 0.07);
}

body .planet-ring {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 0 1.1rem rgba(255, 255, 255, 0.18),
    0 0 2.1rem rgba(120, 169, 255, 0.12),
    inset 0 0 1rem rgba(255, 255, 255, 0.1);
}

@media (max-width: 58rem) {
  body .planet-ring {
    width: 7.5rem;
    height: 2.7rem;
  }

  body .ring-number {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.56rem;
  }
}

/* V15 radius correction: the card orbit is intentionally about three times wider. */
body .page-head {
  min-height: clamp(44rem, 58vw, 54rem);
}

body .main-index.orbit-menu.header-orbit {
  width: min(100%, 82rem);
  min-height: clamp(34rem, 50vw, 46rem);
  overflow: visible;
}

body .main-index.orbit-menu.header-orbit::before {
  width: clamp(44rem, 64vw, 58rem);
  height: clamp(15rem, 22vw, 21rem);
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-8deg);
}

body .main-index.orbit-menu.header-orbit::after {
  width: clamp(28rem, 42vw, 38rem);
  height: clamp(9rem, 14vw, 13rem);
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-8deg);
}

/* Keep the 3x orbit visible: compact phone, more room for the left orbit field. */
body .phone-monitor {
  min-width: clamp(9.5rem, 12vw, 11.5rem);
}

body .phone-frame {
  width: clamp(9.5rem, 11vw, 11.5rem);
}

body .page-head > .phone-monitor {
  align-self: start;
  margin-top: clamp(3rem, 6vw, 5rem);
}

/* V15 phone alignment: larger monitor, vertically centered to the planet. */
body .phone-monitor {
  min-width: clamp(11.5rem, 13vw, 12.4rem);
}

body .phone-frame {
  width: clamp(11.5rem, 13vw, 12.4rem);
}

body .page-head > .phone-monitor {
  grid-row: 2;
  align-self: start;
  margin-top: 3rem;
}

/* V15 layout correction: compact header orbit and restore the content as a real 3-column grid. */
body .page-head {
  min-height: clamp(31rem, 42vw, 38rem);
}

body .main-index.orbit-menu.header-orbit {
  width: min(100%, 72rem);
  min-height: clamp(24rem, 34vw, 30rem);
}

body .main-index.orbit-menu.header-orbit::before {
  width: clamp(38rem, 56vw, 52rem);
  height: clamp(11rem, 17vw, 16rem);
}

body .main-index.orbit-menu.header-orbit::after {
  width: clamp(25rem, 38vw, 34rem);
  height: clamp(7rem, 11vw, 10rem);
}

body .stage-list {
  gap: clamp(4.8rem, 7vw, 7rem);
  margin-top: clamp(3rem, 4vw, 4.5rem);
}

body .stage {
  display: grid;
  grid-template-columns:
    clamp(13.5rem, 16vw, 17rem)
    minmax(18rem, 1fr)
    minmax(18rem, 1fr);
  grid-template-rows: auto;
  column-gap: clamp(2.8rem, 5vw, 5.5rem);
  row-gap: 0;
  align-items: start;
  margin: 0;
}

body .stage-rail {
  grid-column: 1;
  grid-row: 1;
  max-width: none;
  min-height: 0;
  padding-top: 0;
}

body .stage-cards,
body .stage-cards:has(.node-card:only-child) {
  grid-column: 2 / 4;
  grid-row: 1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 3.5vw, 4rem);
  margin: 0;
  align-items: start;
}

body .stage .node-card {
  width: 100%;
}

body .stage .node-card:only-child {
  grid-column: 1;
}

@media (max-width: 78rem) {
  body .stage {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

body .stage-cards,
  body .stage-cards:has(.node-card:only-child) {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: 1fr;
  }
}

/* V16 workflow gradients: current color assignment, V6 gradient style. */
body .stage .child-list {
  gap: 0.26rem;
  padding: 0.58rem;
  border: 0;
  border-radius: 0.46rem;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-color, var(--blue)) 50%, var(--surface)) 0%, var(--surface) 72%);
}

/* V16: shrink the workflow parent container, not each individual workflow card. */
body .stage-cards,
body .stage-cards:has(.node-card:only-child) {
  width: 80%;
}

body .stage .node-card {
  width: 100%;
}
/* V18 actual final override: product-first proportions. */
body .page-head {
  min-height: clamp(23rem, 31vw, 29rem);
}

body .main-index.orbit-menu.header-orbit {
  min-height: clamp(17rem, 24vw, 22rem);
}

body .main-index.orbit-menu.header-orbit .orbit-logo {
  width: clamp(7.2rem, 9vw, 8.8rem);
}

body .main-index.orbit-menu.header-orbit::before {
  width: clamp(31rem, 45vw, 42rem);
  height: clamp(8rem, 12vw, 11rem);
  border-width: 2px;
}

body .phone-monitor {
  min-width: clamp(10.5rem, 12vw, 11.5rem);
}

body .phone-frame {
  width: clamp(10.5rem, 12vw, 11.5rem);
}

body .page-head > .phone-monitor {
  margin-top: 1.4rem;
}

body .stage-cards,
body .stage-cards:has(.node-card:only-child) {
  width: 90%;
}

@media (max-width: 58rem) {
  body .page-head {
    min-height: 0;
  }

  body .main-index.orbit-menu.header-orbit {
    min-height: 12rem;
  }

  body .page-head > .phone-monitor {
    display: none;
  }

  body .stage-cards,
  body .stage-cards:has(.node-card:only-child) {
    width: 100%;
  }
}

/* V18 final coherence: one planet, one visible orbit, calmer card perspective. */
body .main-index.orbit-menu.header-orbit {
  min-height: clamp(16rem, 22vw, 20rem);
}

body .main-index.orbit-menu.header-orbit::before {
  display: block !important;
  width: clamp(29rem, 42vw, 39rem);
  height: clamp(7.4rem, 10.5vw, 9.7rem);
  border-width: 3px;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 0 0.8rem rgba(255, 255, 255, 0.22),
    0 0 2.4rem rgba(130, 185, 255, 0.18),
    inset 0 0 1.1rem rgba(255, 255, 255, 0.13);
}

body .main-index.orbit-menu.header-orbit::after,
body .planet-ring,
body .orbit-logo::before,
body .orbit-logo::after {
  content: none !important;
  display: none !important;
}

body .main-index.orbit-menu.header-orbit .orbit-logo {
  width: clamp(7.7rem, 8.6vw, 8.6rem);
  background:
    radial-gradient(circle at 31% 23%, rgba(255, 255, 255, 0.6), transparent 16%),
    radial-gradient(circle at 42% 39%, rgba(99, 168, 255, 0.33), transparent 38%),
    radial-gradient(circle at 72% 78%, rgba(0, 0, 0, 0.82), transparent 60%),
    linear-gradient(145deg, #1b3557 0%, #08172d 58%, #020712 100%) !important;
  box-shadow:
    inset -1.65rem -1.9rem 2.8rem rgba(0, 0, 0, 0.62),
    inset 1rem 0.85rem 1.75rem rgba(255, 255, 255, 0.18),
    0 1.5rem 3.1rem rgba(0, 0, 0, 0.26),
    0 0 2.8rem rgba(255, 255, 255, 0.16),
    0 0 4.2rem rgba(93, 180, 255, 0.13) !important;
}

body .header-orbit .index-card {
  max-width: clamp(8.8rem, 10vw, 10.8rem);
  min-height: clamp(7.2rem, 7.8vw, 8.1rem);
}

body .header-orbit .index-card b {
  font-size: clamp(0.72rem, 0.78vw, 0.86rem);
  line-height: 1.02;
}

body .header-orbit .index-card span {
  font-size: clamp(0.46rem, 0.5vw, 0.56rem);
}

body .main-index.orbit-menu.header-orbit .orbit-logo > span,
body .main-index.orbit-menu.header-orbit .orbit-logo > b {
  position: relative;
  z-index: 2;
  max-width: 78%;
  overflow: visible;
  letter-spacing: 0;
  text-align: center;
  text-shadow:
    0 0 0.2rem rgba(255, 255, 255, 0.26),
    0 0.28rem 0.7rem rgba(0, 0, 0, 0.82);
}

body .main-index.orbit-menu.header-orbit .orbit-logo > span {
  font-size: clamp(0.33rem, 0.36vw, 0.4rem);
  line-height: 1;
  color: rgba(248, 251, 255, 0.82);
}

body .main-index.orbit-menu.header-orbit .orbit-logo > b {
  font-size: clamp(1rem, 1.15vw, 1.22rem);
  line-height: 0.88;
}

@media (max-width: 58rem) {
  body .main-index.orbit-menu.header-orbit {
    min-height: 11rem;
  }

  body .main-index.orbit-menu.header-orbit::before {
    width: 17rem;
    height: 4.8rem;
    border-width: 2px;
  }
}

/* V19: SVG-built orbit. The SVG owns the planet and ring; HTML cards stay clickable. */
body .page-head {
  min-height: clamp(25rem, 32vw, 31rem);
}

body .main-index.orbit-menu.header-orbit {
  width: min(100%, 67rem);
  min-height: clamp(16.5rem, 23vw, 21rem);
  isolation: isolate;
  perspective: none;
  transform-style: flat;
}

body .main-index.orbit-menu.header-orbit::before,
body .main-index.orbit-menu.header-orbit::after,
body .main-index.orbit-menu.header-orbit .orbit-logo,
body .main-index.orbit-menu.header-orbit .planet-ring {
  content: none !important;
  display: none !important;
}

body .orbit-svg {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 1;
  width: min(100%, 61rem);
  height: auto;
  aspect-ratio: 900 / 360;
  overflow: visible;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

body .orbit-field {
  opacity: 0.95;
}

body .orbit-shadow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2;
}

body .orbit-line {
  fill: none;
  stroke-linecap: round;
}

body .orbit-line-back {
  stroke: rgba(170, 218, 255, 0.17);
  stroke-width: 3;
}

body .orbit-line-front {
  stroke: url("#orbitStroke");
  stroke-width: 5;
}

body .planet-shade {
  fill: rgba(0, 0, 0, 0.26);
}

body .planet-highlight {
  fill: rgba(255, 255, 255, 0.16);
}

body .orbit-word {
  fill: #ffffff;
  font-family: inherit;
  font-weight: 950;
  letter-spacing: 0;
  paint-order: stroke;
  stroke: rgba(2, 8, 20, 0.72);
  stroke-width: 3px;
  stroke-linejoin: round;
}

body .orbit-word-small {
  font-size: 15px;
  opacity: 0.76;
  text-transform: uppercase;
}

body .orbit-word-main {
  font-size: 34px;
}

body .main-index.orbit-menu.header-orbit .index-card,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: var(--orbit-z, 5);
  width: var(--orbit-w, clamp(7.3rem, 8.9vw, 9.4rem));
  min-height: var(--orbit-h, clamp(4.35rem, 5.1vw, 5.4rem));
  max-width: none;
  opacity: var(--orbit-opacity, 1);
  filter: none;
  transform:
    translate(-50%, -50%)
    translate(var(--orbit-x, 0), var(--orbit-y, 0))
    scale(var(--orbit-scale, 1));
  border-radius: 0.08rem;
  background: rgba(204, 222, 246, 0.026) !important;
  box-shadow: none;
  pointer-events: auto;
  transition:
    background-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease;
}

body .main-index.orbit-menu.header-orbit .index-card:hover,
body .main-index.orbit-menu.header-orbit .index-card:focus-visible {
  background: rgba(204, 222, 246, 0.085) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(1) {
  --orbit-x: clamp(18rem, 24vw, 23.5rem);
  --orbit-y: clamp(4.1rem, 5.6vw, 5.35rem);
  --orbit-scale: 1.08;
  --orbit-z: 12;
  --orbit-opacity: 1;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(2) {
  --orbit-x: clamp(20.2rem, 27vw, 26.2rem);
  --orbit-y: clamp(-5rem, -5.4vw, -4rem);
  --orbit-scale: 0.96;
  --orbit-z: 8;
  --orbit-opacity: 0.9;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(3) {
  --orbit-x: clamp(1.7rem, 3vw, 3.2rem);
  --orbit-y: clamp(-8rem, -8.3vw, -6.3rem);
  --orbit-scale: 0.88;
  --orbit-z: 6;
  --orbit-opacity: 0.78;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(4) {
  --orbit-x: clamp(-24rem, -24vw, -18rem);
  --orbit-y: clamp(-4.8rem, -5.1vw, -3.8rem);
  --orbit-scale: 0.8;
  --orbit-z: 4;
  --orbit-opacity: 0.7;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(5) {
  --orbit-x: clamp(-27.5rem, -28vw, -21rem);
  --orbit-y: clamp(2.3rem, 3vw, 3rem);
  --orbit-scale: 0.84;
  --orbit-z: 5;
  --orbit-opacity: 0.76;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(6) {
  --orbit-x: clamp(-7.7rem, -7.8vw, -5.8rem);
  --orbit-y: clamp(6.3rem, 7.2vw, 7rem);
  --orbit-scale: 0.93;
  --orbit-z: 9;
  --orbit-opacity: 0.9;
}

body .main-index.orbit-menu.header-orbit .index-card span {
  width: 1.55rem;
  height: 1.55rem;
  font-size: 0.62rem;
}

body .main-index.orbit-menu.header-orbit .index-card b {
  font-size: clamp(0.84rem, 0.94vw, 1rem);
  line-height: 0.96;
}

body .main-index.orbit-menu.header-orbit .index-card small {
  font-size: 0.58rem;
  line-height: 1.08;
  -webkit-line-clamp: 2;
}

body .main-index.orbit-menu.header-orbit .index-card[aria-disabled="true"] {
  pointer-events: auto;
}

@media (max-width: 74rem) {
  body .main-index.orbit-menu.header-orbit {
    width: min(100%, 46rem);
    min-height: 18rem;
  }

  body .orbit-svg {
    width: min(100%, 43rem);
  }

  body .main-index.orbit-menu.header-orbit .index-card,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
    width: 7rem;
    min-height: 4rem;
  }
}

@media (max-width: 58rem) {
  body .main-index.orbit-menu.header-orbit {
    min-height: 13.5rem;
  }

  body .orbit-svg {
    width: 25rem;
  }

  body .main-index.orbit-menu.header-orbit .index-card,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
    width: 5.6rem;
    min-height: 3rem;
    padding: 0.32rem;
    transform:
      translate(-50%, -50%)
      translate(calc(var(--orbit-x, 0) * 0.36), calc(var(--orbit-y, 0) * 0.58))
      scale(calc(var(--orbit-scale, 1) * 0.82));
  }

  body .main-index.orbit-menu.header-orbit .index-card b {
    font-size: 0.66rem;
  }

  body .main-index.orbit-menu.header-orbit .index-card small {
    display: none;
  }

  body .main-index.orbit-menu.header-orbit .index-card span {
    width: 1.22rem;
    height: 1.22rem;
    font-size: 0.5rem;
  }
}

/* V19 header scene expansion: use the full area beside the monitor. */
body .page-head {
  grid-template-columns: minmax(0, 1fr) clamp(11.5rem, 13vw, 13rem);
  min-height: clamp(30rem, 38vw, 36rem);
  column-gap: clamp(1.2rem, 2.4vw, 2.6rem);
  row-gap: clamp(1.1rem, 1.8vw, 1.7rem);
}

body .main-index.orbit-menu.header-orbit {
  justify-self: stretch;
  width: 100%;
  min-height: clamp(21rem, 29vw, 27rem);
}

body .orbit-svg {
  width: 100%;
  max-width: none;
  aspect-ratio: 1200 / 430;
}

body .star-field circle {
  fill: rgba(255, 255, 255, 0.72);
  filter: drop-shadow(0 0 0.34rem rgba(141, 205, 255, 0.72));
}

body .api-constellation path {
  fill: none;
  stroke: rgba(160, 101, 255, 0.14);
  stroke-width: 1.2;
}

body .api-constellation circle {
  fill: #a065ff;
  opacity: 0.46;
  filter: drop-shadow(0 0 0.36rem rgba(160, 101, 255, 0.42));
}

body .api-node {
  opacity: 0.58;
}

body .api-node rect {
  fill: rgba(139, 212, 255, 0.16);
  stroke: rgba(139, 212, 255, 0.22);
  stroke-width: 1.2;
}

body .api-node text {
  display: block;
  fill: rgba(238, 245, 255, 0.88);
  font-family: inherit;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-anchor: middle;
}

body .api-node text + text {
  display: none;
  fill: rgba(141, 205, 255, 0.72);
  font-size: 8px;
  font-weight: 750;
}

body .comet {
  fill: none;
  stroke-linecap: round;
}

body .comet-strong {
  stroke: rgba(67, 232, 255, 0.2);
  stroke-width: 2;
  filter: drop-shadow(0 0 0.45rem rgba(67, 232, 255, 0.35));
}

body .comet-soft {
  stroke: rgba(160, 101, 255, 0.18);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 0.4rem rgba(160, 101, 255, 0.32));
}

body .main-index.orbit-menu.header-orbit .index-card,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
  display: grid !important;
  width: var(--orbit-w, clamp(7.7rem, 8.3vw, 9.6rem));
  min-height: var(--orbit-h, clamp(4.1rem, 4.7vw, 5.1rem));
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(1) {
  --orbit-x: clamp(20rem, 24.6vw, 25.8rem);
  --orbit-y: clamp(4.9rem, 6.7vw, 6.7rem);
  --orbit-scale: 1.06;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(2) {
  --orbit-x: clamp(23rem, 28.2vw, 29.5rem);
  --orbit-y: clamp(-5.5rem, -6.3vw, -4.7rem);
  --orbit-scale: 0.96;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(3) {
  --orbit-x: clamp(2.4rem, 3.8vw, 4.3rem);
  --orbit-y: clamp(-10.2rem, -10.8vw, -8.1rem);
  --orbit-scale: 0.9;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(4) {
  --orbit-x: clamp(-32rem, -31vw, -24rem);
  --orbit-y: clamp(-5.6rem, -6vw, -4.5rem);
  --orbit-scale: 0.82;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(5) {
  --orbit-x: clamp(-35rem, -34vw, -26rem);
  --orbit-y: clamp(2.4rem, 3.5vw, 3.6rem);
  --orbit-scale: 0.86;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(6) {
  --orbit-x: clamp(-9rem, -9vw, -6.8rem);
  --orbit-y: clamp(8.2rem, 9.2vw, 9.1rem);
  --orbit-scale: 0.92;
}

body .orbit-word-small {
  font-size: 16px;
}

body .orbit-word-main {
  font-size: 32px;
}

@media (max-width: 74rem) {
  body .page-head {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body .main-index.orbit-menu.header-orbit {
    min-height: clamp(18rem, 45vw, 24rem);
  }
}

@media (max-width: 58rem) {
  body .main-index.orbit-menu.header-orbit {
    min-height: 15rem;
  }

  body .orbit-svg {
    width: 31rem;
  }

  body .api-node text {
    font-size: 9px;
  }

  body .api-node text + text {
    display: none;
  }

  body .main-index.orbit-menu.header-orbit .index-card,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
    width: 5.7rem;
    min-height: 3rem;
    transform:
      translate(-50%, -50%)
      translate(calc(var(--orbit-x, 0) * 0.32), calc(var(--orbit-y, 0) * 0.5))
      scale(calc(var(--orbit-scale, 1) * 0.78));
  }
}

/* V19 proportion correction: stronger center, clearer orbit hierarchy. */
body .page-head {
  min-height: clamp(31rem, 39vw, 37rem);
}

body .main-index.orbit-menu.header-orbit {
  min-height: clamp(22.5rem, 30vw, 28rem);
}

body .orbit-field {
  opacity: 0.76;
}

body .orbit-line-back {
  stroke: rgba(170, 218, 255, 0.12);
  stroke-width: 2.5;
}

body .orbit-line-front {
  stroke-width: 5;
}

body .star-field circle {
  fill: rgba(255, 255, 255, 0.42);
  filter: none;
}

body .api-node rect {
  fill: rgba(7, 18, 38, 0.48);
  stroke: rgba(139, 212, 255, 0.28);
}

body .api-node text {
  font-size: 10px;
}

body .comet-strong {
  stroke: rgba(67, 232, 255, 0.28);
  stroke-width: 2.4;
}

body .comet-soft {
  stroke: rgba(160, 101, 255, 0.24);
  stroke-width: 1.8;
}

body .main-index.orbit-menu.header-orbit .index-card,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
  width: var(--orbit-w, clamp(8.4rem, 9.1vw, 10.4rem));
  min-height: var(--orbit-h, clamp(4.55rem, 5vw, 5.55rem));
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(1) {
  --orbit-x: clamp(23.5rem, 27.8vw, 29rem);
  --orbit-y: clamp(5.7rem, 7.4vw, 7.35rem);
  --orbit-scale: 1.04;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(2) {
  --orbit-x: clamp(26rem, 30.5vw, 32rem);
  --orbit-y: clamp(-6.2rem, -6.8vw, -5.1rem);
  --orbit-scale: 0.96;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(3) {
  --orbit-x: clamp(3.4rem, 4.8vw, 5.4rem);
  --orbit-y: clamp(-11rem, -11.6vw, -9rem);
  --orbit-scale: 0.9;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(4) {
  --orbit-x: clamp(-33.5rem, -32.5vw, -25rem);
  --orbit-y: clamp(-6.3rem, -6.8vw, -5rem);
  --orbit-scale: 0.84;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(5) {
  --orbit-x: clamp(-35rem, -34vw, -26.5rem);
  --orbit-y: clamp(2.8rem, 4.2vw, 4.2rem);
  --orbit-scale: 0.88;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(6) {
  --orbit-x: clamp(-10rem, -10vw, -7.5rem);
  --orbit-y: clamp(9rem, 10vw, 10rem);
  --orbit-scale: 0.94;
}

body .main-index.orbit-menu.header-orbit .index-card b {
  font-size: clamp(0.9rem, 1vw, 1.08rem);
}

body .main-index.orbit-menu.header-orbit .index-card small {
  font-size: 0.6rem;
}

body .orbit-word-small {
  font-size: 18px;
}

body .orbit-word-main {
  font-size: 38px;
}

@media (max-width: 58rem) {
  body .main-index.orbit-menu.header-orbit {
    min-height: 16rem;
  }

  body .main-index.orbit-menu.header-orbit .index-card,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
    width: 5.9rem;
    min-height: 3.05rem;
    transform:
      translate(-50%, -50%)
      translate(calc(var(--orbit-x, 0) * 0.3), calc(var(--orbit-y, 0) * 0.48))
      scale(calc(var(--orbit-scale, 1) * 0.76));
  }
}

/* V19 header image only: remove title spacing and let the universe lead. */
body .page-head {
  grid-template-rows: auto;
  row-gap: 0;
  min-height: clamp(24rem, 32vw, 30rem);
}

body .page-head > .header-title-block {
  display: none !important;
}

body .main-index.orbit-menu.header-orbit {
  grid-row: 1;
  margin-top: 0;
}

body .page-head > .phone-monitor {
  grid-row: 1;
  align-self: center;
  margin-top: 0;
}

@media (max-width: 74rem) {
  body .main-index.orbit-menu.header-orbit {
    grid-row: 1;
  }
}

/* V20: clean orbit, only the six tree menu points. */
body .page-head {
  grid-template-columns: minmax(0, 1fr) clamp(11.5rem, 13vw, 13rem);
  min-height: clamp(23rem, 30vw, 28rem);
}

body .main-index.orbit-menu.header-orbit {
  min-height: clamp(20rem, 27vw, 25rem);
}

body .orbit-svg {
  width: 100%;
  max-width: none;
  opacity: 1;
}

body .api-node,
body .api-constellation,
body .comet,
body .star-field {
  display: none !important;
}

body .orbit-field {
  opacity: 0.58;
}

body .orbit-shadow {
  stroke: rgba(141, 205, 255, 0.14);
  stroke-width: 2;
}

body .orbit-line-back {
  stroke: rgba(170, 218, 255, 0.13);
  stroke-width: 2.4;
}

body .orbit-line-front {
  stroke-width: 4.7;
}

body .orbit-word-small {
  font-size: 17px;
}

body .orbit-word-main {
  font-size: 38px;
}

body .main-index.orbit-menu.header-orbit .index-card,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
  width: var(--orbit-w, clamp(8.3rem, 8.7vw, 10rem));
  min-height: var(--orbit-h, clamp(4.45rem, 4.85vw, 5.3rem));
  background: rgba(204, 222, 246, 0.035) !important;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(1) {
  --orbit-x: clamp(22rem, 26vw, 27rem);
  --orbit-y: clamp(5.4rem, 6.7vw, 6.7rem);
  --orbit-scale: 1.04;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(2) {
  --orbit-x: clamp(23rem, 28vw, 29rem);
  --orbit-y: clamp(-5.7rem, -6.2vw, -4.7rem);
  --orbit-scale: 0.98;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(3) {
  --orbit-x: clamp(2rem, 3.4vw, 4rem);
  --orbit-y: clamp(-10.1rem, -10.8vw, -8rem);
  --orbit-scale: 0.94;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(4) {
  --orbit-x: clamp(-31rem, -30vw, -23rem);
  --orbit-y: clamp(-5.4rem, -5.9vw, -4.3rem);
  --orbit-scale: 0.9;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(5) {
  --orbit-x: clamp(-32rem, -31vw, -24rem);
  --orbit-y: clamp(2.4rem, 3.7vw, 3.7rem);
  --orbit-scale: 0.92;
}

body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(6) {
  --orbit-x: clamp(-9rem, -9vw, -6.7rem);
  --orbit-y: clamp(8.3rem, 9.3vw, 9.2rem);
  --orbit-scale: 0.96;
}

@media (max-width: 58rem) {
  body .page-head {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  body .main-index.orbit-menu.header-orbit {
    justify-self: stretch;
    width: 100%;
    min-height: 15rem;
  }

  body .orbit-svg {
    left: 50%;
    width: min(37rem, 150vw);
  }

  body .main-index.orbit-menu.header-orbit .index-card,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
    width: 5.8rem;
    min-height: 3rem;
    transform:
      translate(-50%, -50%)
      translate(calc(var(--orbit-x, 0) * 0.3), calc(var(--orbit-y, 0) * 0.47))
      scale(calc(var(--orbit-scale, 1) * 0.76));
  }
}

/* V20 final: restore V17 orbit and header scale, keep the reduced menu-only concept. */
body .page-head {
  grid-template-columns: minmax(42rem, 1fr) auto;
  grid-template-rows: auto;
  min-height: clamp(31rem, 42vw, 38rem);
  row-gap: 0;
  column-gap: clamp(1.5rem, 4vw, 5rem);
}

body .page-head > .header-title-block {
  display: none !important;
}

body .main-index.orbit-menu.header-orbit {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: min(100%, 72rem);
  min-height: clamp(24rem, 34vw, 30rem);
  margin: 0;
  overflow: visible;
  perspective: 48rem;
  transform-style: preserve-3d;
}

body .page-head > .phone-monitor {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  margin-top: 0;
}

body .phone-monitor {
  min-width: clamp(13.5rem, 15vw, 14rem);
}

body .phone-frame {
  width: clamp(13.5rem, 15vw, 14rem);
}

body .orbit-svg,
body .api-node,
body .api-constellation,
body .comet,
body .star-field {
  display: none !important;
}

body .main-index.orbit-menu.header-orbit::before,
body .main-index.orbit-menu.header-orbit::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-8deg);
}

body .main-index.orbit-menu.header-orbit::before {
  width: clamp(38rem, 56vw, 52rem);
  height: clamp(11rem, 17vw, 16rem);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 0 1rem rgba(255, 255, 255, 0.13),
    0 0 2.8rem rgba(120, 169, 255, 0.12);
}

body .main-index.orbit-menu.header-orbit::after {
  width: clamp(25rem, 38vw, 34rem);
  height: clamp(7rem, 11vw, 10rem);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 1.5rem rgba(255, 255, 255, 0.07);
}

body .main-index.orbit-menu.header-orbit .orbit-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 70;
  width: clamp(9.2rem, 14vw, 12.4rem);
  aspect-ratio: 1 / 1;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.62), transparent 17%),
    radial-gradient(circle at 38% 36%, rgba(116, 174, 255, 0.42), transparent 34%),
    radial-gradient(circle at 66% 74%, rgba(2, 6, 14, 0.94), transparent 58%),
    linear-gradient(145deg, #1a355a 0%, #071226 55%, #020611 100%) !important;
  box-shadow:
    inset -1.7rem -1.9rem 2.7rem rgba(0, 0, 0, 0.58),
    inset 1.1rem 0.9rem 1.8rem rgba(255, 255, 255, 0.18),
    0 1.5rem 3.2rem rgba(0, 0, 0, 0.24),
    0 0 3.2rem rgba(255, 255, 255, 0.16),
    0 0 4.8rem rgba(73, 210, 230, 0.12) !important;
}

body .orbit-logo::before {
  content: "" !important;
  position: absolute;
  inset: 7%;
  z-index: 1;
  display: block !important;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.24), transparent 17%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 44%, rgba(0, 0, 0, 0.34)) !important;
  pointer-events: none;
}

body .orbit-logo::after {
  content: none !important;
  display: none !important;
}

body .orbit-logo > span,
body .orbit-logo > b {
  position: relative;
  z-index: 3;
  max-width: 78%;
  overflow: visible;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0;
  text-shadow:
    0 0 0.22rem rgba(255, 255, 255, 0.34),
    0 0.35rem 0.95rem rgba(0, 0, 0, 0.82);
}

body .orbit-logo > span {
  font-size: clamp(0.58rem, 0.65vw, 0.72rem);
  line-height: 1;
  color: rgba(248, 251, 255, 0.86);
  text-transform: uppercase;
}

body .orbit-logo > b {
  margin-top: 0.14rem;
  font-size: clamp(1.35rem, 1.85vw, 2rem);
  line-height: 0.88;
}

body .planet-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 13.8rem;
  height: 4.7rem;
  display: block !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(64deg) rotateZ(-10deg);
  transform-style: preserve-3d;
  box-shadow:
    0 0 1.1rem rgba(255, 255, 255, 0.18),
    0 0 2.1rem rgba(120, 169, 255, 0.12),
    inset 0 0 1rem rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

body .planet-ring::before,
body .planet-ring::after {
  content: "";
  position: absolute;
  inset: 0.34rem;
  border-radius: 50%;
  border: 1px solid rgba(204, 222, 246, 0.1);
}

body .planet-ring::after {
  inset: -0.42rem;
  border-color: rgba(204, 222, 246, 0.07);
}

body .ring-number {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: var(--ring-z, 50);
  width: 2.05rem;
  height: 2.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.16rem;
  background: var(--ring-color, var(--stage-1));
  color: #071226;
  font-size: 0.74rem;
  font-weight: 980;
  opacity: var(--ring-opacity, 0.7);
  transform:
    translate(-50%, -50%)
    translate3d(var(--ring-x, 0), var(--ring-y, 0), 0)
    rotateX(-64deg)
    rotateZ(10deg)
    scale(var(--ring-scale, 1));
  transform-origin: center;
}

body .main-index.orbit-menu.header-orbit .index-card,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: var(--orbit-card-z, 40);
  width: clamp(8.8rem, 12vw, 11.6rem);
  min-height: 5.25rem;
  max-width: none;
  opacity: var(--orbit-card-opacity, 1);
  filter: blur(var(--orbit-card-blur, 0));
  transform:
    translate(-50%, -50%)
    translate3d(var(--orbit-card-x, 0), var(--orbit-card-y, 0), 0)
    rotateY(-13deg)
    rotateX(5deg)
    scale(var(--orbit-card-scale, 1));
  transform-origin: center;
  background: transparent !important;
  box-shadow: none;
  pointer-events: auto;
}

body .main-index.orbit-menu.header-orbit .index-card.is-orbit-front {
  z-index: 160;
  background:
    linear-gradient(135deg, rgba(204, 222, 246, 0.08), rgba(204, 222, 246, 0.02)) !important;
  box-shadow:
    0 0 0 1px rgba(204, 222, 246, 0.16),
    0 1.1rem 2.4rem rgba(0, 0, 0, 0.28);
}

@media (max-width: 74rem) {
  body .page-head {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body .main-index.orbit-menu.header-orbit {
    grid-column: 1;
    justify-self: center;
    width: 100%;
  }

  body .page-head > .phone-monitor {
    display: none;
  }
}

@media (max-width: 58rem) {
  body .main-index.orbit-menu.header-orbit {
    min-height: 12.5rem;
  }

  body .main-index.orbit-menu.header-orbit::before {
    width: min(20rem, 105vw);
    height: 5.8rem;
    border-width: 2px;
  }

  body .main-index.orbit-menu.header-orbit::after {
    display: none !important;
  }

  body .main-index.orbit-menu.header-orbit .orbit-logo {
    width: 6.5rem;
  }

  body .planet-ring {
    width: 7.5rem;
    height: 2.7rem;
  }

  body .ring-number {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.56rem;
  }

  body .main-index.orbit-menu.header-orbit .index-card,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
    width: 5.75rem;
    min-height: 3.1rem;
    padding: 0.34rem;
    transform:
      translate(-50%, -50%)
      translate3d(calc(var(--orbit-card-x, 0) * 0.33), calc(var(--orbit-card-y, 0) * 0.33), 0)
      scale(calc(var(--orbit-card-scale, 1) * 0.84));
  }

  body .main-index.orbit-menu.header-orbit .index-card b {
    font-size: 0.72rem;
    line-height: 0.96;
  }

  body .main-index.orbit-menu.header-orbit .index-card small {
    display: none;
  }

  body .main-index.orbit-menu.header-orbit .index-card span {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.56rem;
  }
}

/* V20 final-final: keep V17 orbit, prevent later inherited sizing from squeezing it. */
body .phone-monitor {
  min-width: clamp(11.5rem, 13vw, 12.4rem) !important;
}

body .phone-frame {
  width: clamp(11.5rem, 13vw, 12.4rem) !important;
}

body .page-head {
  column-gap: clamp(1.2rem, 2vw, 2rem);
}

@media (max-width: 58rem) {
  body .main-index.orbit-menu.header-orbit .index-card,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
    transform:
      translate(-50%, -50%)
      translate3d(calc(var(--orbit-card-x, 0) * 0.25), calc(var(--orbit-card-y, 0) * 0.3), 0)
      scale(calc(var(--orbit-card-scale, 1) * 0.75));
  }
}

/* Planet-off pass: remove all planet-specific visual layers while keeping the menu structure. */
body .main-index.orbit-menu.header-orbit .orbit-logo,
body .main-index.orbit-menu.header-orbit .orbit-logo::before,
body .main-index.orbit-menu.header-orbit .orbit-logo::after,
body .main-index.orbit-menu.header-orbit .planet-ring,
body .main-index.orbit-menu.header-orbit .planet-ring::before,
body .main-index.orbit-menu.header-orbit .planet-ring::after {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

body .main-index.orbit-menu.header-orbit .orbit-logo::before,
body .main-index.orbit-menu.header-orbit .orbit-logo::after,
body .main-index.orbit-menu.header-orbit .planet-ring,
body .main-index.orbit-menu.header-orbit .planet-ring::before,
body .main-index.orbit-menu.header-orbit .planet-ring::after {
  content: none !important;
  display: none !important;
}

/* Header proportion pass: keep the monitor programmed, but remove it from the visible grid. */
body .page-head {
  grid-template-columns: minmax(0, 1fr) !important;
}

body .page-head > .phone-monitor {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip-path: inset(50%) !important;
}

body .main-index.orbit-menu.header-orbit {
  width: min(100%, 78rem) !important;
  min-height: clamp(26rem, 35vw, 34rem) !important;
  margin-inline: auto !important;
  grid-column: 1 / -1 !important;
}

body .main-index.orbit-menu.header-orbit::before {
  width: min(72rem, 92vw) !important;
  height: clamp(9rem, 12vw, 12rem) !important;
}

body .main-index.orbit-menu.header-orbit::after {
  width: min(62rem, 82vw) !important;
  height: clamp(6rem, 8.4vw, 8.5rem) !important;
}

/* Planet rebuild pass: restore one clean circular planet and remove the boxed wordmark feel. */
body .main-index.orbit-menu.header-orbit .orbit-logo {
  display: grid !important;
  place-items: center !important;
  width: clamp(9rem, 12vw, 13rem) !important;
  aspect-ratio: 1 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 31% 24%, rgba(255, 255, 255, 0.74), transparent 15%),
    radial-gradient(circle at 38% 38%, rgba(77, 219, 235, 0.44), transparent 32%),
    radial-gradient(circle at 68% 74%, rgba(4, 12, 25, 0.9), transparent 58%),
    linear-gradient(145deg, #4edce9 0%, #2f7bd8 42%, #07172f 100%) !important;
  box-shadow:
    inset -1.4rem -1.7rem 2.4rem rgba(0, 0, 0, 0.48),
    inset 0.9rem 0.8rem 1.5rem rgba(255, 255, 255, 0.22),
    0 1.2rem 3rem rgba(0, 0, 0, 0.28),
    0 0 3.4rem rgba(76, 219, 235, 0.24) !important;
  overflow: hidden !important;
}

body .main-index.orbit-menu.header-orbit .orbit-logo > span,
body .main-index.orbit-menu.header-orbit .orbit-logo > b {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  max-width: 82% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  text-align: center !important;
  text-shadow: 0 0.12rem 0.55rem rgba(0, 0, 0, 0.55) !important;
}

body .main-index.orbit-menu.header-orbit .orbit-logo > span {
  font-size: clamp(0.82rem, 1vw, 1.05rem) !important;
  line-height: 1 !important;
}

body .main-index.orbit-menu.header-orbit .orbit-logo > b {
  font-size: clamp(1.15rem, 1.5vw, 1.6rem) !important;
  line-height: 0.95 !important;
}

/* Responsive orbit ratio pass: preserve the desktop composition and zoom it as a single model. */
body .main-index.orbit-menu.header-orbit {
  aspect-ratio: 1248 / 544 !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 78rem !important;
  width: min(100%, 78rem) !important;
  --orbit-layout-scale: 1;
}

body .main-index.orbit-menu.header-orbit::before {
  width: 92.3% !important;
  height: 18.8% !important;
}

body .main-index.orbit-menu.header-orbit::after {
  width: 79.5% !important;
  height: 13.2% !important;
}

body .main-index.orbit-menu.header-orbit .orbit-logo {
  width: clamp(6.8rem, 16.66%, 13rem) !important;
}

body .main-index.orbit-menu.header-orbit .orbit-logo > span {
  font-size: clamp(0.58rem, calc(1.05rem * var(--orbit-layout-scale, 1)), 1.05rem) !important;
}

body .main-index.orbit-menu.header-orbit .orbit-logo > b {
  font-size: clamp(0.82rem, calc(1.6rem * var(--orbit-layout-scale, 1)), 1.6rem) !important;
}

body .main-index.orbit-menu.header-orbit .index-card,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
  width: clamp(5.8rem, calc(11.6rem * var(--orbit-layout-scale, 1)), 11.6rem) !important;
  min-height: clamp(3.25rem, calc(5.25rem * var(--orbit-layout-scale, 1)), 5.25rem) !important;
  padding: clamp(0.34rem, calc(0.72rem * var(--orbit-layout-scale, 1)), 0.72rem) !important;
  transform:
    translate(-50%, -50%)
    translate3d(var(--orbit-card-x, 0), var(--orbit-card-y, 0), 0)
    rotateY(-13deg)
    rotateX(5deg)
    scale(var(--orbit-card-scale, 1)) !important;
}

body .main-index.orbit-menu.header-orbit .index-card b {
  font-size: clamp(0.72rem, calc(1.35rem * var(--orbit-layout-scale, 1)), 1.35rem) !important;
}

body .main-index.orbit-menu.header-orbit .index-card small {
  font-size: clamp(0.58rem, calc(0.72rem * var(--orbit-layout-scale, 1)), 0.72rem) !important;
}

body .main-index.orbit-menu.header-orbit .index-card span {
  width: clamp(1.35rem, calc(1.78rem * var(--orbit-layout-scale, 1)), 1.78rem) !important;
  height: clamp(1.35rem, calc(1.78rem * var(--orbit-layout-scale, 1)), 1.78rem) !important;
  font-size: clamp(0.56rem, calc(0.72rem * var(--orbit-layout-scale, 1)), 0.72rem) !important;
}

@media (max-width: 58rem) {
  body .main-index.orbit-menu.header-orbit {
    width: min(100%, 78rem) !important;
    aspect-ratio: 1248 / 544 !important;
  }

  body .main-index.orbit-menu.header-orbit .index-card,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n),
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):hover,
  body .main-index.orbit-menu.header-orbit .index-card:nth-of-type(n):focus-visible {
    transform:
      translate(-50%, -50%)
      translate3d(var(--orbit-card-x, 0), var(--orbit-card-y, 0), 0)
      rotateY(-13deg)
      rotateX(5deg)
      scale(var(--orbit-card-scale, 1)) !important;
  }
}

/* V20 left-unit pass: keep the page as one unit, but pin that unit to the left. */
body .task-home {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding-inline: clamp(1rem, 2.5vw, 2.5rem) !important;
}

body .shell {
  width: min(100%, 120rem) !important;
  max-width: 120rem !important;
  margin: 0 auto 0 0 !important;
  padding-inline: clamp(1rem, 1.8vw, 2rem) !important;
}

body .page-head,
body .stage-list,
body .task-space {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}

body .page-head {
  justify-items: start !important;
  justify-content: start !important;
  align-items: start !important;
  text-align: left !important;
  padding-inline: 0 !important;
}

body .main-index.orbit-menu.header-orbit {
  justify-self: start !important;
  margin: 0 !important;
  transform-origin: left center !important;
}

body .stage {
  max-width: 100% !important;
  margin-inline: 0 !important;
  justify-content: start !important;
}

body .stage-rail {
  justify-self: start !important;
  text-align: left !important;
}

body .stage-cards {
  justify-content: start !important;
}

@media (max-width: 58rem) {
  body .task-home {
    padding-inline: clamp(0.65rem, 3vw, 1rem) !important;
  }

  body .shell {
    padding-inline: clamp(0.8rem, 4vw, 1.2rem) !important;
  }

  body .main-index.orbit-menu.header-orbit {
    width: 100% !important;
  }
}

/* Compact card headers after removing meta lines. */
body .stage .node-card {
  gap: 0 !important;
}

body .stage .card-head {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 0 clamp(0.16rem, 0.35vw, 0.32rem) !important;
}

body .stage .card-dot,
body .stage .card-meta[hidden],
body .stage .card-head small[hidden] {
  display: none !important;
}

body .stage .card-head b {
  display: block !important;
  margin: 0 !important;
}

body .stage .card-body {
  gap: 0 !important;
}

body .stage .child-list {
  margin-top: clamp(0.16rem, 0.45vw, 0.38rem) !important;
}
