/* V20: Personal detail refinements. School cards and pages deliberately untouched. */
:root {
  --v20-border: rgba(255, 255, 255, 0.18);
}
body[data-project] .code-card .code-head {
  display: flex !important;
  gap: 14px !important;
  align-items: center !important;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}
body[data-project] .code-card .code-head > div:first-child {
  flex: 1 1 260px;
  min-width: 0;
}
body[data-project] .code-card .code-head .v16-language {
  margin-left: auto !important;
  flex: 0 0 auto;
}
body[data-project] .code-card .code-head > .code-copy {
  margin-left: auto !important;
  flex: 0 0 auto;
  position: static !important;
  transform: none !important;
  align-self: center;
}
body[data-project] .code-card .code-head .v16-language + .code-copy {
  margin-left: 0 !important;
}
body[data-project] .code-card .code-head strong {
  overflow-wrap: anywhere;
}
/* Prevent all original forced min-heights from leaving large empty regions. */
body.v16-unified #deep-dive .v6-module-grid .v6-module-card,
body.v16-unified #deep-dive .v6-module-grid .v6-module-card.v19-module-card {
  min-height: 0 !important;
  aspect-ratio: auto !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px 24px !important;
}
body.v16-unified #deep-dive .v6-module-grid {
  align-items: stretch;
  gap: 15px;
}
body.v16-unified #deep-dive .v6-module-card p {
  line-height: 1.56 !important;
  margin: 0;
}
body.v16-unified #deep-dive .v6-module-card h3 {
  margin: 0 0 4px;
  line-height: 1.32;
}
body[data-project="onconnect"] #deep-dive .v6-module-card .v19-bullets {
  font-size: 0.8rem;
  line-height: 1.4;
  gap: 5px;
  margin-top: 4px;
}
body[data-project="onconnect"] #deep-dive .v6-module-card .v19-module-note {
  font-size: 0.8rem;
  line-height: 1.43;
}
body[data-project="onconnect"] #deep-dive .v6-module-card .v19-module-subhead {
  margin: 5px 0 0;
}
/* OnStudy needs concise feature cards; its seven actual screenshots remain. */
body[data-project="onstudy"] #features .feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
body[data-project="onstudy"] #features .feature-grid .feature {
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding: 20px 23px !important;
  display: flex;
  flex-direction: column;
  gap: 10px !important;
  justify-content: flex-start !important;
}
body[data-project="onstudy"] #features .feature-grid .feature h3 {
  font-size: 1.06rem;
  line-height: 1.4;
  margin: 2px 0;
}
body[data-project="onstudy"] #features .feature-grid .feature p {
  font-size: 0.9rem !important;
  line-height: 1.56 !important;
  margin: 0;
}
body[data-project="onstudy"] #features .feature-grid .feature .feature-n {
  margin-bottom: 2px;
}
/* Inline, project-specific illustrative dashboards. No invented functionality or metrics. */
.v20-concept-intro {
  margin: 34px 0 14px;
}
.v20-concept-intro h3 {
  font-size: clamp(1.18rem, 1.6vw, 1.5rem);
  margin: 5px 0 7px;
}
.v20-concept-intro > p {
  font-size: 0.93rem;
  color: var(--theme-muted, #d6e8ff);
  line-height: 1.65;
  max-width: 85ch;
}
.v20-concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 34px;
  align-items: stretch;
}
.v20-concept-card {
  border: 1px solid
    color-mix(in srgb, var(--theme-accent, #68a9fb) 36%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--theme-surface2, #12253e) 78%, #071321);
  padding: 22px;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.v20-concept-top {
  min-height: 70px;
}
.v20-concept-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.085em;
  color: var(--theme-accent2, #abceff);
  font-weight: 700;
}
.v20-concept-top h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  margin: 9px 0 0;
}
.v20-graphic {
  height: 172px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 12, 24, 0.36);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--theme-text, #fff);
}
.v20-concept-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.v20-concept-bottom p {
  margin: 0;
  line-height: 1.58;
  font-size: 0.91rem;
  color: var(--theme-muted, #ddd);
}
.v20-keywords {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: auto;
}
.v20-keywords span {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 0.66rem;
  line-height: 1.2;
  color: var(--theme-text, #fff);
  background: rgba(255, 255, 255, 0.07);
}
.v20-arch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  width: 100%;
  flex-wrap: nowrap;
}
.v20-arch > div {
  min-width: 0;
  flex: 1;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 14px 5px;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.v20-arch > span {
  font-size: 1.2rem;
  color: var(--theme-accent2, #fff);
}
.v20-line {
  width: 94%;
  height: 145px;
  overflow: visible;
}
.v20-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 12px;
  height: 145px;
  width: 87%;
}
.v20-bar {
  height: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  min-width: 0;
}
.v20-bar i {
  display: block;
  width: 70%;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(
    180deg,
    var(--theme-accent2, #b5dcff),
    var(--theme-accent, #4a9dee)
  );
  min-height: 5px;
}
.v20-bar span {
  height: 28px;
  margin-top: 4px;
  white-space: nowrap;
  font-size: 0.62rem;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
}
.v20-beakers {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 28px;
  height: 145px;
}
.v20-beaker {
  width: 60px;
  height: 99px;
  border: 4px solid #bddcf5;
  border-top: 5px solid #d7eafb;
  border-radius: 1px 1px 19px 19px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  justify-content: center;
}
.v20-beaker i {
  position: absolute;
  bottom: 0;
  height: 55%;
  background: #58a5ef;
  width: 100%;
  opacity: 0.75;
}
.v20-beaker.aqua i {
  background: #62d9b0;
  height: 74%;
}
.v20-beaker.pink i {
  background: #c67eb9;
  height: 45%;
}
.v20-beaker span {
  position: relative;
  font-size: 0.67rem;
  padding-bottom: 10px;
  font-weight: 700;
}
.v20-cell {
  width: 164px;
  height: 140px;
  border: 5px solid #67d9bb;
  background: radial-gradient(ellipse, #2b7c77, #174a52);
  border-radius: 45% 55% 47% 53%;
  position: relative;
  display: grid;
  place-items: center;
}
.v20-nucleus {
  border: 3px solid #bdc9ff;
  background: #666aa2;
  border-radius: 50%;
  width: 74px;
  height: 68px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
}
.v20-organelle {
  position: absolute;
  width: 19px;
  height: 12px;
  border: 2px solid #a5dfa1;
  border-radius: 60%;
  transform: rotate(35deg);
}
.v20-organelle.a {
  left: 16px;
  top: 34px;
}
.v20-organelle.b {
  right: 16px;
  bottom: 30px;
}
.v20-organelle.c {
  left: 29px;
  bottom: 19px;
}
.v20-orbit {
  width: 175px;
  height: 175px;
  display: grid;
  place-items: center;
  position: relative;
}
.v20-sun {
  width: 50px;
  height: 50px;
  background: #ffc761;
  border-radius: 50%;
  box-shadow: 0 0 25px #ffbf6777;
}
.v20-orbit-ring {
  position: absolute;
  width: 155px;
  height: 105px;
  border: 2px dashed #b6d0ff99;
  border-radius: 50%;
  transform: rotate(-24deg);
}
.v20-planet {
  width: 17px;
  height: 17px;
  background: #7ec4ff;
  border-radius: 50%;
  display: block;
  position: absolute;
  top: 4px;
  left: 32px;
}
.v20-physics {
  width: 84%;
  height: 130px;
  position: relative;
}
.v20-ground {
  position: absolute;
  bottom: 15px;
  width: 100%;
  height: 2px;
  background: #b0d8ef88;
}
.v20-path {
  position: absolute;
  bottom: 18px;
  left: 5%;
  width: 88%;
  height: 95px;
  border-top: 3px dashed #81c9f8;
  border-radius: 60% 60% 0 0;
  transform: rotate(-5deg);
}
.v20-ball {
  width: 20px;
  height: 20px;
  background: #ffd17a;
  border-radius: 50%;
  position: absolute;
  left: 45%;
  top: 11px;
}
.v20-physics > span {
  position: absolute;
  left: 14px;
  top: 8px;
  font-size: 0.85rem;
}
.v20-map {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(45deg, transparent 0 22px, #d5e3ef14 23px 24px),
    repeating-linear-gradient(-30deg, transparent 0 42px, #c6e3ff22 43px 45px);
}
.v20-map svg {
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
}
.v20-quantum {
  display: grid;
  gap: 18px;
  width: 92%;
  padding: 10px;
}
.v20-quantum > div {
  display: flex;
  align-items: center;
  gap: 5px;
}
.v20-quantum small {
  font-size: 0.77rem;
  width: 25px;
}
.v20-wire {
  height: 2px;
  flex: 1;
  background: #9cc9e7;
}
.v20-quantum strong {
  font-size: 1rem;
  border: 1px solid #82c9f5;
  border-radius: 6px;
  padding: 8px;
  background: #35669955;
  min-width: 20px;
  text-align: center;
}
.v20-matrix {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.1rem;
}
.v20-bracket {
  font-family: ui-monospace, monospace;
  line-height: 1.9;
  white-space: nowrap;
}
.v20-terrain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(#163b5a, #295a63);
}
.v20-mountain {
  position: absolute;
  bottom: -55px;
  width: 240px;
  height: 200px;
  transform: rotate(45deg);
  border-radius: 22px;
  background: #4e967e;
}
.v20-mountain.one {
  left: -80px;
}
.v20-mountain.two {
  left: 80px;
  bottom: -85px;
  background: #33775e;
}
.v20-mountain.three {
  right: -120px;
  background: #81b29a;
}
.v20-terrain span {
  position: absolute;
  bottom: 9px;
  right: 14px;
  font-size: 0.67rem;
  z-index: 2;
}
.v20-signal {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.v20-skin {
  width: 80%;
  border-radius: 50px;
  background: linear-gradient(90deg, #a57f6b, #dabaa7);
  color: #352b28;
  padding: 10px;
  text-align: center;
  font-size: 0.75rem;
}
.v20-signal svg {
  width: 100%;
  height: 75px;
}
.v20-timeline {
  display: flex;
  width: 90%;
  justify-content: space-around;
  gap: 10px;
}
.v20-timeline > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  font-size: 0.68rem;
  text-align: center;
}
.v20-timeline i {
  width: 26px;
  height: 26px;
  border: 2px solid #9dc9e5;
  border-radius: 50%;
  display: block;
  background: #4b8c9c;
}
.v20-timeline i.active {
  background: #78e8ae;
  box-shadow: 0 0 0 7px #72e7b129;
}
.v20-editor {
  display: flex;
  width: 90%;
  gap: 12px;
  height: 145px;
  font-family: ui-monospace, monospace;
  font-size: 0.73rem;
  align-items: stretch;
  padding: 8px;
}
.v20-editor-left {
  flex: 2;
  padding: 13px 10px;
  background: #061425;
  border-radius: 8px;
  line-height: 2;
  white-space: nowrap;
}
.v20-editor-right {
  flex: 1;
  background: #1d3f58;
  border-radius: 8px;
  padding: 15px 9px;
  line-height: 2;
}
.v20-genetics {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 15px;
}
.v20-genetics .gene {
  display: grid;
  place-items: center;
  width: 40px;
  height: 48px;
  border-radius: 9px;
  background: #8045c8;
  font-size: 1.1rem;
  font-weight: 800;
}
.v20-genetics .gene-y {
  background: #c2a42d;
  color: #081c26;
}
.v20-genetics .gene-b {
  background: #1f88c4;
}
.v20-genetics .gene-g {
  background: #219b70;
}
.v20-feed {
  width: 87%;
  height: 130px;
  display: flex;
  gap: 10px;
}
.v20-feed-main {
  flex: 2;
  background: #5e87a544;
  border: 1px solid #bdd8ff44;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
}
.v20-feed-main i {
  height: 40px;
  background: linear-gradient(90deg, #478e9b, #498c6c);
  border-radius: 7px;
}
.v20-feed-mini {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v20-feed-mini span {
  flex: 1;
  background: #497c9444;
  border: 1px solid #bdd8ff33;
  border-radius: 9px;
  font-size: 0.67rem;
  display: grid;
  place-items: center;
  padding: 5px;
  text-align: center;
}
.v20-chat {
  display: flex;
  gap: 10px;
  width: 92%;
  height: 145px;
  padding: 7px;
}
.v20-chat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.v20-chat-sidebar span {
  border: 1px solid #c9e4ff33;
  border-radius: 7px;
  padding: 9px 6px;
  font-size: 0.69rem;
  background: #fff1;
}
.v20-chat-thread {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 6px;
}
.v20-bubble {
  padding: 8px 10px;
  background: #39658a;
  border-radius: 12px 12px 12px 2px;
  max-width: 80%;
  font-size: 0.7rem;
}
.v20-bubble.own {
  align-self: end;
  border-radius: 12px 12px 2px 12px;
  background: #397f92;
}
@media (max-width: 950px) {
  .v20-concept-grid {
    grid-template-columns: 1fr;
  }
  body[data-project="onstudy"] #features .feature-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .v20-concept-card {
    padding: 16px;
  }
  .v20-arch {
    gap: 3px;
  }
  .v20-arch > div {
    font-size: 0.6rem;
  }
  .v20-concept-top {
    min-height: 0;
  }
  .v20-graphic {
    height: 165px;
  }
}

/* V21 refinements */
body[data-project] .toc a[href="#deep-dive"]::before {
  content: "";
}

/* Make "How it works" closer to the module cards and remove repetitive generic walkthrough filler */
body[data-project] #implementation .impl-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
body[data-project] #implementation .impl-step {
  padding: 22px 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--theme-surface) 92%, transparent),
    color-mix(in srgb, var(--theme-surface2) 70%, rgba(0, 0, 0, 0.12))
  );
  border: 1px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.11);
}
body[data-project] #implementation .impl-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.66;
}
body[data-project] #implementation .impl-n {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 0.88rem;
  background: color-mix(in srgb, var(--theme-accent) 20%, transparent);
  color: var(--theme-accent2);
}
body[data-project] #implementation .v16-steps {
  display: none;
}

/* Unified concept cards, closer to page palette */
.v20-concept-grid {
  gap: 20px;
  margin-top: 20px;
}
.v20-concept-card {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--theme-surface) 92%, rgba(255, 255, 255, 0.01)),
    color-mix(in srgb, var(--theme-surface2) 82%, rgba(0, 0, 0, 0.18))
  );
  border-color: color-mix(
    in srgb,
    var(--theme-accent) 25%,
    rgba(255, 255, 255, 0.08)
  );
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
}
.v20-concept-card .v20-concept-top {
  min-height: 0;
}
.v20-concept-label {
  opacity: 0.96;
}
.v20-concept-top h3 {
  font-size: 1.06rem;
  line-height: 1.3;
}
.v20-graphic {
  height: 182px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--theme-surface2) 72%, rgba(0, 0, 0, 0.28)),
    color-mix(in srgb, var(--theme-bg2) 76%, rgba(0, 0, 0, 0.36))
  );
  border: 1px solid color-mix(in srgb, var(--theme-accent) 16%, transparent);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.v20-concept-bottom p {
  font-size: 0.9rem;
  line-height: 1.6;
}
.v20-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.v20-keywords span {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 11px;
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--theme-accent2);
  border: 1px solid color-mix(in srgb, var(--theme-accent) 28%, transparent);
  background: color-mix(in srgb, var(--theme-surface2) 60%, transparent);
}

/* Project pages that now use 3-card concept grids */
body[data-project="onconnect"] .v20-grid-3,
body[data-project="quantumlab"] .v20-grid-3,
body[data-project="physicslab"] .v20-grid-3,
body[data-project="biolab"] .v20-grid-3,
body[data-project="worldforge"] .v20-grid-3,
body[data-project="watchtime"] .v20-grid-3,
body[data-project="project-seedling"] .v20-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Downloads area more consistent */
body[data-project] .download-actions {
  gap: 10px;
}
body[data-project] .btn-release,
body[data-project] .btn-release-disabled {
  min-height: 52px;
  border-radius: 14px;
  padding: 14px 18px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--theme-surface2) 64%, transparent),
    color-mix(in srgb, var(--theme-surface) 92%, transparent)
  );
  border-color: color-mix(in srgb, var(--theme-accent) 26%, transparent);
}
body[data-project] .btn-release {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--theme-accent) 76%, #fff),
    color-mix(in srgb, var(--theme-accent2) 55%, var(--theme-accent))
  );
  color: var(--theme-button-ink, #08141f);
}
body[data-project] .btn-release-disabled small {
  display: block;
  margin-left: 6px;
  color: var(--theme-muted);
}

/* OnConnect gallery and visual studies */
body[data-project="onconnect"] .gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body[data-project="onconnect"] .shot img {
  height: 188px;
}
body[data-project="onconnect"] #interactive .mini-demo {
  margin-bottom: 22px;
}
.oc-grid .v20-concept-card {
  padding: 20px;
}
.oc-account .oc-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.oc-account .oc-toolbar span,
.oc-service .oc-flow span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--theme-surface) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-accent) 22%, transparent);
  font-size: 0.75rem;
  font-weight: 760;
  color: var(--theme-text);
}
.oc-account .oc-status-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  margin-top: 14px;
  color: var(--theme-muted);
  font-size: 0.78rem;
}
.oc-account .oc-status-row b {
  color: var(--theme-accent2);
}
.oc-account .oc-status-row i {
  font-style: normal;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-accent) 16%, transparent);
}
.oc-chat {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  width: 100%;
}
.oc-chat-sidebar,
.oc-chat-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oc-chat-sidebar span {
  padding: 10px 11px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--theme-surface) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-accent) 20%, transparent);
  font-size: 0.72rem;
}
.oc-chat-main .bubble {
  max-width: 90%;
  padding: 9px 12px;
  border-radius: 11px;
  background: #73a7d533;
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.3;
}
.oc-chat-main .bubble.mine {
  align-self: flex-end;
  background: color-mix(in srgb, #4bd2ff 55%, var(--theme-accent));
  color: #08202d;
}
.oc-chat-main .bubble.wide {
  max-width: 100%;
  width: 86%;
}
.oc-feed {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 92px;
  gap: 12px;
  width: 100%;
}
.oc-feed-post {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(160deg, #49364f, #293842);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.oc-feed-post i {
  display: block;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(90deg, #66c5bb, #5ca86b);
}
.oc-feed-post span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f6fbff;
}
.oc-feed-post small {
  font-size: 0.68rem;
  color: #e9f1ffb5;
}
.oc-feed-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oc-queue-card {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--theme-surface) 64%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-accent) 18%, transparent);
  font-size: 0.72rem;
  text-align: center;
}
.oc-route .oc-grid-map {
  position: absolute;
  inset: 16px;
  background:
    linear-gradient(
        color-mix(in srgb, var(--theme-accent) 7%, transparent) 1px,
        transparent 1px
      )
      0 0/18px 18px,
    linear-gradient(
        90deg,
        color-mix(in srgb, var(--theme-accent) 7%, transparent) 1px,
        transparent 1px
      )
      0 0/18px 18px,
    linear-gradient(
      135deg,
      transparent 0 46%,
      rgba(255, 255, 255, 0.08) 46% 48%,
      transparent 48% 100%
    );
}
.oc-route .oc-route-line {
  position: absolute;
  inset: 18px;
}
.oc-route polyline {
  fill: none;
  stroke: #76fff0;
  stroke-width: 3;
  stroke-dasharray: 4 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.oc-route .dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(118, 255, 240, 0.22);
}
.oc-route .dot.a {
  left: 18%;
  top: 63%;
}
.oc-route .dot.b {
  left: 34%;
  top: 53%;
}
.oc-route .dot.c {
  left: 58%;
  top: 32%;
}
.oc-route .dot.d {
  left: 78%;
  top: 40%;
}
.oc-media {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 14px;
  width: 100%;
}
.oc-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 36px;
  gap: 6px;
}
.oc-media-grid span {
  border-radius: 8px;
  background: linear-gradient(140deg, #7ac0d0, #394b73);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.oc-media-grid span:first-child {
  grid-column: 1/3;
  height: 42px;
  background: linear-gradient(135deg, #7dd3b9, #5a88bc);
}
.oc-progress-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.oc-progress-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 0.72rem;
}
.oc-progress-list b {
  font-weight: 760;
  color: var(--theme-accent2);
}
.oc-progress-list i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #64f0c0, #7dd8ff);
  position: relative;
  overflow: hidden;
}
.oc-progress-list i::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 18%;
  background: rgba(255, 255, 255, 0.18);
}
.oc-service {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.oc-service .oc-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}
.oc-service .oc-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.oc-service .oc-checks small {
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--theme-surface) 54%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-accent) 18%, transparent);
  font-size: 0.68rem;
  color: var(--theme-muted);
}

/* QuantumLab */
.v20-circuit {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.v20-wire {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.v20-wire em {
  font-style: normal;
  font-weight: 800;
  margin-right: 8px;
  color: var(--theme-accent2);
}
.v20-wire span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #ffffff12;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 38%, transparent);
  font-size: 1.05rem;
  font-weight: 900;
}
.ql-bloch .ql-sphere {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 30%,
      #ffffff22,
      #ffffff06 36%,
      transparent 36%
    ),
    radial-gradient(circle at 40% 35%, #f79ba044, transparent 58%),
    linear-gradient(180deg, #ffffff18, #00000015);
  border: 2px solid color-mix(in srgb, var(--theme-accent) 40%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.ql-bloch .ql-axis {
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform-origin: center;
}
.ql-bloch .ql-axis.x {
  width: 92px;
  height: 1px;
  transform: translate(-50%, -50%);
}
.ql-bloch .ql-axis.y {
  width: 1px;
  height: 92px;
  transform: translate(-50%, -50%);
}
.ql-bloch .ql-axis.z {
  width: 72px;
  height: 72px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ql-bloch .ql-vector {
  position: absolute;
  left: 52%;
  top: 52%;
  width: 3px;
  height: 48px;
  background: linear-gradient(180deg, #fff, #ff7373);
  transform-origin: bottom center;
  transform: translate(-50%, -100%) rotate(35deg);
  border-radius: 999px;
}
.ql-bloch .ql-vector::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffc4c4;
  transform: translateX(-50%);
}

/* PhysicsLab */
.pl-motion svg,
.pl-wave svg,
.bl-eco svg,
.wf-graph svg {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
}
.pl-motion path {
  fill: none;
  stroke: #82c8ff;
  stroke-width: 2.1;
  stroke-dasharray: 4 2;
}
.pl-motion .ball {
  position: absolute;
  left: 48%;
  top: 28%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f2c465;
  box-shadow: 0 0 0 3px rgba(242, 196, 101, 0.12);
}
.pl-motion .axis {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 22%;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
}
.pl-motion strong {
  position: absolute;
  left: 16%;
  top: 14%;
  font-size: 0.88rem;
  color: #fff;
}
.pl-orbit .sun {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0bf5e;
  box-shadow: 0 0 45px rgba(240, 191, 94, 0.22);
}
.pl-orbit .orbit {
  position: absolute;
  border: 2px dashed rgba(160, 188, 255, 0.62);
  border-radius: 50%;
}
.pl-orbit .orbit-1 {
  width: 160px;
  height: 92px;
  transform: rotate(-18deg);
}
.pl-orbit .orbit-2 {
  width: 210px;
  height: 130px;
  transform: rotate(14deg);
}
.pl-orbit .planet {
  position: absolute;
  border-radius: 50%;
  background: #89c8ff;
}
.pl-orbit .planet.p1 {
  width: 22px;
  height: 22px;
  left: 22%;
  top: 40%;
}
.pl-orbit .planet.p2 {
  width: 15px;
  height: 15px;
  right: 22%;
  top: 30%;
  background: #7ee0c2;
}
.pl-wave path {
  fill: none;
  stroke-width: 2.2;
}
.pl-wave .w1 {
  stroke: #7ad6ff;
}
.pl-wave .w2 {
  stroke: #ffb48b;
}

/* BioLab */
.bl-cell .cell {
  position: relative;
  width: 220px;
  height: 120px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, #ffffff12, #0000 65%),
    linear-gradient(180deg, #2f7780, #1f5961);
  border: 6px solid #70e3cc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bl-cell .nucleus {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #7678b1;
  border: 3px solid #c9c9ff;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.83rem;
}
.bl-cell .org {
  position: absolute;
  width: 24px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #b7e8a4;
}
.bl-cell .o1 {
  left: 24px;
  top: 42px;
  transform: rotate(40deg);
}
.bl-cell .o2 {
  right: 26px;
  top: 34px;
  transform: rotate(42deg);
}
.bl-cell .o3 {
  left: 38px;
  bottom: 18px;
  transform: rotate(35deg);
}
.bl-eco {
  position: relative;
}
.bl-eco .grid {
  position: absolute;
  inset: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px) 0 0/100% 28%,
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px) 16%
      0/20% 100%;
  pointer-events: none;
}
.bl-eco path {
  fill: none;
  stroke-width: 2.2;
}
.bl-eco .a {
  stroke: #79d6ff;
}
.bl-eco .b {
  stroke: #f0a98e;
}
.bl-transport {
  display: grid;
  grid-template-columns: 1fr 14px 1fr;
  gap: 16px;
  width: 100%;
  align-items: center;
}
.bl-transport .side {
  min-height: 110px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--theme-surface) 60%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: center;
  justify-content: center;
  padding: 12px;
  position: relative;
}
.bl-transport .side small {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 0.7rem;
  color: var(--theme-muted);
}
.bl-transport .side i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #9be4c1;
}
.bl-transport .side.right i {
  background: #7dd5ff;
}
.bl-transport .membrane {
  height: 132px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7acbbb, #82e9d3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.bl-transport .arrow {
  position: absolute;
  width: 70px;
  height: 2px;
  background: #fff;
  top: 50%;
}
.bl-transport .arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}
.bl-transport .arrow.a {
  left: 26%;
  transform: translateY(-18px);
}
.bl-transport .arrow.b {
  left: 58%;
  transform: translateY(18px) scaleX(-1);
}

/* WorldForge */
.wf-editor {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  width: 100%;
}
.wf-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wf-side span {
  padding: 10px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--theme-surface) 58%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-accent) 17%, transparent);
  font-size: 0.72rem;
}
.wf-canvas {
  position: relative;
  height: 146px;
  border-radius: 16px;
  background: linear-gradient(180deg, #2f1f10, #432710);
  overflow: hidden;
}
.wf-land {
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  background:
    radial-gradient(circle at 28% 42%, #65965c 0 19%, transparent 20%),
    radial-gradient(circle at 64% 58%, #4f8751 0 17%, transparent 18%),
    linear-gradient(180deg, #47331d, #5d3d1f);
}
.wf-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9fe9db;
  box-shadow: 0 0 0 3px rgba(159, 233, 219, 0.16);
}
.wf-node.n1 {
  left: 28%;
  top: 28%;
}
.wf-node.n2 {
  left: 60%;
  top: 20%;
}
.wf-node.n3 {
  left: 52%;
  top: 56%;
}
.wf-graph {
  position: relative;
  width: 100%;
  height: 100%;
}
.wf-graph .node {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: #ffffff12;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
}
.wf-graph .center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #6b8e6a55;
}
.wf-graph .a {
  left: 10%;
  top: 12%;
}
.wf-graph .b {
  right: 10%;
  top: 12%;
}
.wf-graph .c {
  left: 10%;
  bottom: 12%;
}
.wf-graph .d {
  right: 10%;
  bottom: 12%;
}
.wf-graph line {
  stroke: #9ae3d6;
  stroke-width: 1.5;
}
.wf-timeline .line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, #c79b5a, #f0d8a6);
}
.wf-timeline .dot {
  position: absolute;
  top: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffe4b8;
}
.wf-timeline .d1 {
  left: 20%;
}
.wf-timeline .d2 {
  left: 47%;
}
.wf-timeline .d3 {
  left: 74%;
}
.wf-timeline .t {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.76rem;
  color: #fff;
}
.wf-timeline .t1 {
  left: 20%;
  top: 22%;
}
.wf-timeline .t2 {
  left: 47%;
  bottom: 20%;
}
.wf-timeline .t3 {
  left: 74%;
  top: 22%;
}

/* WatchTime */
.wt-dashboard {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr;
  gap: 12px;
  width: 100%;
}
.wt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: #3d3b77;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.wt-list .wt-main {
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(90deg, #56a0ab, #5da06c);
}
.wt-list small {
  font-size: 0.76rem;
  color: #e7e8ff;
}
.wt-side {
  display: grid;
  gap: 8px;
}
.wt-tile {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #313060;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  color: #f3f5ff;
}
.wt-episodes {
  position: relative;
  width: 100%;
}
.wt-track {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 44%;
  height: 4px;
  background: linear-gradient(90deg, #4a5e8e, #6ecba9);
}
.wt-ep {
  position: absolute;
  top: 22%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
}
.wt-ep b {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #5f89a8;
  border: 3px solid rgba(255, 255, 255, 0.12);
}
.wt-ep span {
  font-size: 0.72rem;
  white-space: nowrap;
}
.wt-ep.active b {
  background: #76d7b4;
}
.wt-ep.e1 {
  left: 16%;
}
.wt-ep.e2 {
  left: 38%;
}
.wt-ep.e3 {
  left: 61%;
}
.wt-ep.e4 {
  left: 84%;
}
.wt-calendar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.wt-cal-row,
.wt-cal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.wt-cal-row span,
.wt-cal-grid i {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 10px;
  background: #ffffff12;
  font-size: 0.72rem;
}
.wt-cal-grid i.mark {
  background: linear-gradient(160deg, #77d3b8, #608ec6);
}

/* Seedling */
.ps-field {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}
.ps-stage {
  min-height: 118px;
  border-radius: 14px;
  background: linear-gradient(180deg, #31461d, #263717);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  color: #ecfff3;
  font-size: 0.74rem;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}
.ps-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #7a5f3b;
}
.ps-stage.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 61px;
  transform: translateX(-50%);
  width: 2px;
  height: 24px;
  background: #88d267;
}
.ps-stage.grow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  width: 30px;
  height: 34px;
  border-radius: 18px 18px 4px 4px;
  background: linear-gradient(180deg, #6dcf6d, #2e8a46);
}
.ps-stage.mature::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  width: 36px;
  height: 44px;
  border-radius: 20px 20px 10px 10px;
  background: linear-gradient(180deg, #c7e074, #81a73a);
}

/* Contributor chips on the home page */
body .scard.v10-school-card .v10-contributor-list {
  gap: 4px;
}
body .scard.v10-school-card .v10-person {
  font-size: 0.57rem;
  padding: 5px 7px;
  line-height: 1.22;
}
body .scard.v10-school-card .v19-linkedin-chip {
  padding: 5px 8px !important;
}
body .scard.v10-school-card .v10-school-tech {
  font-size: 0.64rem !important;
}

/* Responsive */
@media (max-width: 1200px) {
  body[data-project="onconnect"] .v20-grid-3,
  body[data-project="quantumlab"] .v20-grid-3,
  body[data-project="physicslab"] .v20-grid-3,
  body[data-project="biolab"] .v20-grid-3,
  body[data-project="worldforge"] .v20-grid-3,
  body[data-project="watchtime"] .v20-grid-3,
  body[data-project="project-seedling"] .v20-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-project="onconnect"] .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  body[data-project] #implementation .impl-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  body[data-project="onconnect"] .v20-grid-3,
  body[data-project="quantumlab"] .v20-grid-3,
  body[data-project="physicslab"] .v20-grid-3,
  body[data-project="biolab"] .v20-grid-3,
  body[data-project="worldforge"] .v20-grid-3,
  body[data-project="watchtime"] .v20-grid-3,
  body[data-project="project-seedling"] .v20-grid-3,
  body[data-project="onconnect"] .gallery-grid {
    grid-template-columns: 1fr;
  }
  .oc-chat,
  .oc-feed,
  .oc-media,
  .wf-editor,
  .wt-dashboard {
    grid-template-columns: 1fr;
  }
  .oc-service .oc-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .oc-service .oc-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .v20-graphic {
    height: auto;
    min-height: 175px;
  }
  .ps-field {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Keep Copy code and language chip grouped on the far right */
body[data-project] .code-card .code-head {
  flex-wrap: nowrap;
}
body[data-project] .code-card .code-head > div:first-child {
  order: 1;
  flex: 1 1 auto;
  margin-right: auto;
}
body[data-project] .code-card .code-head > .code-copy {
  order: 2;
  margin-left: 0 !important;
}
body[data-project] .code-card .code-head .v16-language {
  order: 3;
  margin-left: 0 !important;
}
@media (max-width: 760px) {
  body[data-project] .code-card .code-head {
    flex-wrap: wrap;
  }
}

/* V21 follow-up refinements requested in chat */
body[data-project="onconnect"] .oc-account {
  justify-content: flex-start;
}
body[data-project="onconnect"] .oc-account .oc-status-row {
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  justify-content: flex-end;
  column-gap: 14px;
  row-gap: 8px;
}
body[data-project="onconnect"] .oc-account .oc-status-row b {
  min-width: 52px;
  text-align: right;
}
body[data-project="onconnect"] .oc-service .oc-flow span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body[data-project="onconnect"] .oc-ai {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  width: 100%;
  align-items: center;
}
body[data-project="onconnect"] .oc-ai-preview {
  position: relative;
  height: 118px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, #6b8aa6, #39445b);
  overflow: hidden;
  display: grid;
  place-items: center;
}
body[data-project="onconnect"] .oc-ai-preview span {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(145deg, #dde8f0, #7999b8);
}
body[data-project="onconnect"] .oc-ai-preview::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px dashed rgba(101, 240, 197, 0.72);
  border-radius: 10px;
}
body[data-project="onconnect"] .oc-ai-preview small {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.63rem;
}
body[data-project="onconnect"] .oc-ai-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body[data-project="onconnect"] .oc-ai-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
}
body[data-project="onconnect"] .oc-ai-row b {
  color: var(--theme-accent2);
}
body[data-project="onconnect"] .oc-ai-row i {
  font-style: normal;
  color: var(--theme-muted);
}
body[data-project="onconnect"] .oc-ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
body[data-project="onconnect"] .oc-ai-tags span {
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 0.63rem;
  background: color-mix(in srgb, var(--theme-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-accent) 22%, transparent);
}
body[data-project="onconnect"] .oc-chart {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 16px;
  width: 100%;
  align-items: center;
}
body[data-project="onconnect"] .oc-donut {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: conic-gradient(#ff6b6b 0 33%, #6ad986 33% 68%, #67a8ff 68% 100%);
  position: relative;
  justify-self: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
body[data-project="onconnect"] .oc-donut::after {
  content: "Owner";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: var(--theme-surface2);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--theme-text);
}
body[data-project="onconnect"] .oc-chart-legend {
  display: grid;
  gap: 10px;
}
body[data-project="onconnect"] .oc-chart-legend span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
}
body[data-project="onconnect"] .oc-chart-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
body[data-project="onconnect"] .oc-chart-legend .reels {
  background: #ff6b6b;
}
body[data-project="onconnect"] .oc-chart-legend .posts {
  background: #6ad986;
}
body[data-project="onconnect"] .oc-chart-legend .messages {
  background: #67a8ff;
}
body[data-project="onconnect"] .oc-quad {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
body[data-project="onconnect"] .oc-quad .cell {
  padding: 14px 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--theme-surface) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-accent) 20%, transparent);
  display: grid;
  gap: 4px;
  align-content: center;
}
body[data-project="onconnect"] .oc-quad .cell b {
  font-size: 0.78rem;
  line-height: 1.3;
}
body[data-project="onconnect"] .oc-quad .cell small {
  font-size: 0.66rem;
  line-height: 1.45;
  color: var(--theme-muted);
}
body[data-project="onconnect"] #stack .v20-tech-double {
  display: grid;
  gap: 2px;
  align-content: center;
}
body[data-project="onconnect"] #stack .v20-tech-double span:last-child {
  font-size: 0.76rem;
  opacity: 0.94;
}

body[data-project="onstudy"] .hero-app-cover {
  background:
    radial-gradient(
      circle at 70% 18%,
      rgba(82, 162, 255, 0.3),
      transparent 58%
    ),
    linear-gradient(145deg, #0d376e, #001a43);
  border-color: rgba(114, 174, 255, 0.38);
}
body[data-project="onstudy"] .hero-app-cover::before {
  border-color: rgba(167, 209, 255, 0.18);
}
body[data-project="onstudy"] .hero-app-cover .v6-detail-monogram {
  width: 180px;
  height: 180px;
  border-radius: 32px;
  background: linear-gradient(145deg, #226abf, #0b3d81);
  border: 1px solid rgba(167, 209, 255, 0.16);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  font-size: 4.35rem;
  line-height: 1;
}

body[data-project="quantumlab"] .v20-circuit {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 12px;
}
body[data-project="quantumlab"] .v20-circuit .v20-wire {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
body[data-project="quantumlab"] .v20-circuit .v20-wire::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 8px;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-50%);
}
body[data-project="quantumlab"] .v20-circuit .v20-wire em {
  font-style: normal;
  font-weight: 800;
  width: 24px;
  color: #ff9ea0;
  position: relative;
  z-index: 1;
}
body[data-project="quantumlab"] .v20-circuit .v20-wire span {
  position: relative;
  z-index: 1;
  min-width: 44px;
  padding: 10px 0;
  border-radius: 10px;
  text-align: center;
  background: #b9d4eb;
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(255, 90, 90, 0.28);
}
body[data-project="quantumlab"] .ql-bloch .ql-sphere {
  width: 132px;
  height: 132px;
}
body[data-project="quantumlab"] .v20-matrix {
  font-size: 1rem;
  justify-content: center;
  gap: 22px;
}
body[data-project="quantumlab"] .v20-bracket {
  font-size: 0.92rem;
}
body[data-project="quantumlab"] .v20-editor {
  width: 100%;
  height: 150px;
}
body[data-project="quantumlab"] .v20-editor-left,
body[data-project="quantumlab"] .v20-editor-right {
  white-space: pre-line;
}
body[data-project="quantumlab"] .v20-timeline {
  align-items: center;
}
body[data-project="quantumlab"] .v20-timeline > div {
  gap: 10px;
}

body[data-project="worldforge"] .v20-concept-top {
  min-height: 84px;
}
body[data-project="worldforge"] .v20-graphic.wf-graph {
  min-height: 166px;
}
body[data-project="worldforge"] .wf-graph {
  padding: 10px;
}
body[data-project="worldforge"] .wf-graph svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
body[data-project="worldforge"] .wf-graph .node {
  font-size: 0.68rem;
  padding: 7px 10px;
}
body[data-project="worldforge"] .wf-graph .center {
  padding: 8px 14px;
  max-width: 90px;
}
body[data-project="worldforge"] .wf-graph .a {
  left: 12%;
  top: 16%;
}
body[data-project="worldforge"] .wf-graph .b {
  right: 12%;
  top: 16%;
}
body[data-project="worldforge"] .wf-graph .c {
  left: 12%;
  bottom: 16%;
}
body[data-project="worldforge"] .wf-graph .d {
  right: 12%;
  bottom: 16%;
}

body[data-project="watchtime"] .wt-dashboard {
  grid-template-columns: minmax(0, 1.15fr) 0.78fr;
  align-items: stretch;
}
body[data-project="watchtime"] .wt-list {
  padding: 18px;
  gap: 10px;
}
body[data-project="watchtime"] .wt-list .wt-main {
  height: 58px;
  border-radius: 14px;
}
body[data-project="watchtime"] .wt-side {
  align-content: stretch;
}
body[data-project="watchtime"] .wt-tile {
  min-height: 38px;
  padding: 0 12px;
  text-align: center;
}
body[data-project="watchtime"] .wt-episodes {
  display: flex;
  align-items: center;
  justify-content: center;
}
body[data-project="watchtime"] .wt-track {
  top: 48%;
}
body[data-project="watchtime"] .wt-ep {
  top: 25%;
}
body[data-project="watchtime"] .wt-ep b {
  width: 38px;
  height: 38px;
}
body[data-project="watchtime"] .wt-calendar {
  width: 86%;
  justify-content: center;
}
body[data-project="watchtime"] .wt-cal-row span,
body[data-project="watchtime"] .wt-cal-grid i {
  height: 38px;
}

@media (max-width: 760px) {
  body[data-project="onconnect"] .oc-ai,
  body[data-project="onconnect"] .oc-chart {
    grid-template-columns: 1fr;
  }
  body[data-project="onconnect"] .oc-chart-legend {
    justify-items: center;
  }
  body[data-project="onconnect"] .oc-quad {
    grid-template-columns: 1fr 1fr;
  }
}

/* V22 refinements */
body[data-project="onconnect"] #system-diagram .v17-architecture,
body[data-project="onconnect"] #message-sequence.v17-architecture,
body[data-project="onconnect"] #design-decisions {
  padding: 30px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, #86b5ff 22%, rgba(255, 255, 255, 0.18));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--theme-surface) 88%, rgba(255, 255, 255, 0.06)),
    color-mix(in srgb, var(--theme-surface2) 78%, rgba(255, 255, 255, 0.03))
  );
}
body[data-project="onconnect"] #system-diagram .v17-arch-heading p,
body[data-project="onconnect"] #message-sequence .v17-arch-heading p,
body[data-project="onconnect"] #design-decisions .section-intro {
  max-width: none;
  width: 100%;
}
body[data-project="onconnect"] #system-diagram .v17-arch-node,
body[data-project="onconnect"] #system-diagram .v17-arch-foundation > div,
body[data-project="onconnect"] #message-sequence .v17-sequence li,
body[data-project="onconnect"] #design-decisions .v19-engineering-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.045)
  );
  border: 1px solid rgba(126, 184, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body[data-project="onconnect"] #system-diagram .v17-arch-foundation > div {
  border-style: solid;
}
body[data-project="onconnect"] #system-diagram .v17-arch-arrow,
body[data-project="onconnect"] #message-sequence .v17-arch-note,
body[data-project="onconnect"] #system-diagram .v17-arch-note {
  opacity: 0.96;
}
body[data-project="onconnect"] #gallery .gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
body[data-project="onconnect"] #gallery .shot img {
  height: auto;
  aspect-ratio: 1.18/1;
  object-fit: cover;
}
body[data-project="onconnect"] #gallery .shot figcaption {
  min-height: 58px;
  display: flex;
  align-items: center;
}
body[data-project="onconnect"] #stack .v20-tech-double {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}
body[data-project="onconnect"] #stack .v20-tech-double span,
body[data-project="onconnect"] #stack .v20-tech-double i {
  font-size: inherit;
  font-style: normal;
  font-weight: inherit;
  opacity: 1;
}
body[data-project="onconnect"] #stack .v20-tech-double i {
  color: var(--theme-muted);
}

body[data-project="worldforge"] .wf-graph .center {
  z-index: 3;
}
body[data-project="worldforge"] .wf-graph .node:not(.center) {
  z-index: 2;
}
body[data-project="worldforge"] .wf-graph svg {
  z-index: 1;
}
body[data-project="worldforge"] .wf-illustrations {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
body[data-project="worldforge"] .wf-ill {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(0, 0, 0, 0.12)
  );
  position: relative;
  overflow: hidden;
}
body[data-project="worldforge"] .wf-ill::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
body[data-project="worldforge"] .wf-ill.main {
  grid-row: 1 / span 2;
  min-height: 170px;
  background: linear-gradient(145deg, #6f4e2d, #2c1b11);
}
body[data-project="worldforge"] .wf-ill.a {
  background: linear-gradient(145deg, #9a6d47, #4e2f1f);
}
body[data-project="worldforge"] .wf-ill.b {
  background: linear-gradient(145deg, #6c5f89, #352449);
}
body[data-project="worldforge"] .wf-ill.c {
  display: none;
}
body[data-project="worldforge"] .wf-illustrations::before {
  content: "";
  position: absolute;
}
body[data-project="worldforge"] .wf-ill.main::before {
  content: "Character";
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #f7e4d1;
}
body[data-project="worldforge"] .wf-ill.a::before {
  content: "Landscape";
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #f7e4d1;
}
body[data-project="worldforge"] .wf-ill.b::before {
  content: "Prop / map";
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #f7e4d1;
}

body[data-project="biolab"] #interactive .v20-concept-intro {
  margin-top: 0;
}
body[data-project="biolab"] #contact-project .detail-footer-nav {
  margin-top: 22px;
}

@media (max-width: 1180px) {
  body[data-project="onconnect"] #gallery .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  body[data-project="onconnect"] #gallery .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-project="onconnect"] #stack .v20-tech-double {
    white-space: normal;
    flex-wrap: wrap;
  }
}
@media (max-width: 560px) {
  body[data-project="onconnect"] #gallery .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* V24 targeted corrections - preserve original project layouts */
body[data-project="onconnect"] #stack .tech-card.v20-tech-double {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: left !important;
  white-space: normal;
  flex-wrap: nowrap;
  padding-left: 20px !important;
}
body[data-project="onconnect"] #stack .tech-card.v20-tech-double span,
body[data-project="onconnect"] #stack .tech-card.v20-tech-double i {
  font: inherit !important;
  font-size: 0.92rem !important;
  font-weight: 780 !important;
  letter-spacing: normal !important;
  opacity: 1 !important;
  line-height: 1.3 !important;
}
body[data-project="onconnect"] #stack .tech-card.v20-tech-double i {
  font-style: normal !important;
  flex: none;
  color: var(--theme-muted) !important;
}
/* Grid of architecture nodes visually aligned with the red-blue diagram components. */
body[data-project="onconnect"] .v17-architecture {
  border: 1px solid rgba(125, 179, 245, 0.46) !important;
  background: linear-gradient(
    150deg,
    rgba(178, 65, 70, 0.29),
    rgba(110, 28, 39, 0.25)
  ) !important;
  border-radius: 22px;
}
body[data-project="onconnect"] .v17-arch-node,
body[data-project="onconnect"] .v17-arch-foundation > div,
body[data-project="onconnect"] .v17-sequence li {
  border: 1px solid rgba(124, 185, 245, 0.48) !important;
  background: linear-gradient(
    155deg,
    rgba(255, 155, 155, 0.12),
    rgba(61, 90, 137, 0.1)
  ) !important;
  border-radius: 15px;
}
body[data-project="onconnect"] #system-diagram .v17-arch-arrow {
  color: #f5d3d3;
}
/* OnStudy: simple OS lettering, identical treatment to other detail covers. */
body[data-project="onstudy"] .hero-app-cover {
  background:
    radial-gradient(
      circle at 70% 18%,
      rgba(82, 162, 255, 0.28),
      transparent 58%
    ),
    linear-gradient(145deg, #0f477e, #041e46);
}
body[data-project="onstudy"] .hero-app-cover .bigletters {
  font-size: 4.75rem;
  letter-spacing: -0.09em;
  color: white;
}
body[data-project="onstudy"] .hero-app-cover .smallname {
  font-size: 0.96rem;
  color: white;
}
/* Consistent subtle gradient on full home-project cover squares. */
.pcard .pc-cover {
  background-image: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.11),
    transparent 48%,
    rgba(0, 0, 0, 0.13)
  );
  background-blend-mode: soft-light;
}
/* WorldForge: keep illustrations and graph compact, with lines behind the central world node. */
body[data-project="worldforge"] .wf-graph {
  position: relative;
  isolation: isolate;
  min-height: 0 !important;
}
body[data-project="worldforge"] .wf-graph svg {
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
body[data-project="worldforge"] .wf-graph .node {
  z-index: 2;
}
body[data-project="worldforge"] .wf-graph .node.center {
  z-index: 4 !important;
  background: #68482a !important;
  box-shadow: 0 0 0 7px #492505;
  min-width: 66px;
  min-height: 42px;
}
body[data-project="worldforge"] .wf-illustrations {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  padding: 13px !important;
}
body[data-project="worldforge"] .wf-art-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.78fr;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 155px;
}
body[data-project="worldforge"] .wf-art {
  position: relative;
  border-radius: 12px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 155, 0.22);
}
body[data-project="worldforge"] .wf-art-hero {
  background: radial-gradient(circle at 50% 30%, #ac7961, #503325 60%, #291d20);
}
body[data-project="worldforge"] .wf-art-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 9px;
  min-height: 0;
}
body[data-project="worldforge"] .wf-art-location {
  background: linear-gradient(
    165deg,
    #a87d51 0 25%,
    #5c7f67 25% 53%,
    #3b5744 53% 100%
  );
}
body[data-project="worldforge"] .wf-art-emblem {
  background: radial-gradient(
    circle at center,
    #bd9863 0 13%,
    #77615e 14% 29%,
    #352940 30%
  );
}
body[data-project="worldforge"] .wf-art-figure {
  position: absolute;
  inset: 0;
}
body[data-project="worldforge"] .wf-art-figure .shape {
  position: absolute;
  display: block;
  left: 50%;
  transform: translateX(-50%);
}
body[data-project="worldforge"] .wf-art-figure .head {
  top: 18%;
  width: 32px;
  height: 38px;
  border-radius: 48%;
  background: #cda382;
  z-index: 3;
}
body[data-project="worldforge"] .wf-art-figure .body {
  top: 42%;
  width: 60px;
  height: 73px;
  border-radius: 24px 24px 8px 8px;
  background: #273d48;
  z-index: 2;
}
body[data-project="worldforge"] .wf-art-figure .cape {
  top: 43%;
  width: 88px;
  height: 95px;
  border-radius: 45% 45% 5px 5px;
  background: #6b3438;
  z-index: 1;
}
body[data-project="worldforge"] .wf-art-caption {
  position: absolute;
  bottom: 5px;
  left: 7px;
  padding: 4px 6px;
  border-radius: 5px;
  color: #fff4e4;
  background: rgba(19, 19, 24, 0.7);
  font-size: 0.59rem;
  font-weight: 800;
  z-index: 6;
  white-space: nowrap;
}
/* WatchTime: full schedule instead of a mostly empty calendar. */
body[data-project="watchtime"] .wt-schedule {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px !important;
  overflow: hidden;
}
body[data-project="watchtime"] .wt-schedule-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 4px;
  color: #fff;
}
body[data-project="watchtime"] .wt-schedule-head strong {
  font-size: 0.73rem;
}
body[data-project="watchtime"] .wt-schedule-head small {
  font-size: 0.61rem;
  color: #d9c3fc;
}
body[data-project="watchtime"] .wt-schedule-item {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  gap: 7px;
  width: 100%;
  align-items: center;
  background: #ffffff10;
  border: 1px solid #ffffff18;
  border-radius: 10px;
  padding: 5px 6px;
}
body[data-project="watchtime"] .wt-schedule-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #6c42a0;
  border-radius: 8px;
  padding: 4px;
}
body[data-project="watchtime"] .wt-schedule-date b {
  font-size: 0.85rem;
  line-height: 1.1;
}
body[data-project="watchtime"] .wt-schedule-date small {
  font-size: 0.52rem;
}
body[data-project="watchtime"] .wt-schedule-detail {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
body[data-project="watchtime"] .wt-schedule-detail strong {
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body[data-project="watchtime"] .wt-schedule-detail small {
  font-size: 0.59rem;
  color: #d9c3fc;
}
body[data-project="watchtime"] .wt-schedule-item > span {
  font-size: 0.54rem;
  padding: 4px 5px;
  border: 1px solid #ffffff30;
  border-radius: 6px;
  color: #e7cafa;
}
body[data-project="watchtime"] .wt-schedule-foot {
  font-size: 0.59rem;
  color: #dac5ec;
  line-height: 1.2;
}
/* Seedling: consistent, concrete UI previews instead of decorative buttons. */
body[data-project="project-seedling"] #seedling-previews .v20-concept-grid {
  margin-top: 18px;
}
body[data-project="project-seedling"] #seedling-previews .v20-graphic {
  padding: 13px !important;
  justify-content: initial !important;
  gap: 10px;
}
body[data-project="project-seedling"] .ps-mini-head {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #abebc9;
  white-space: nowrap;
}
body[data-project="project-seedling"] .ps-genome-ui,
body[data-project="project-seedling"] .ps-forecast-ui,
body[data-project="project-seedling"] .ps-lifecycle-ui {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}
body[data-project="project-seedling"] .ps-genome-genes {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
  flex: 1;
}
body[data-project="project-seedling"] .ps-gene {
  display: grid;
  place-items: center;
  flex: 1;
  min-width: 0;
  max-width: 40px;
  height: 43px;
  border-radius: 8px;
  color: white;
  font-size: 0.85rem;
  font-weight: 900;
}
body[data-project="project-seedling"] .ps-p {
  background: #8b45d4;
}
body[data-project="project-seedling"] .ps-y {
  background: #cfac20;
}
body[data-project="project-seedling"] .ps-b {
  background: #238bc2;
}
body[data-project="project-seedling"] .ps-g {
  background: #239b75;
}
body[data-project="project-seedling"] .ps-mini-footer {
  font-size: 0.61rem;
  color: #bcdfd4;
  text-align: center;
}
body[data-project="project-seedling"] .ps-forecast-bars {
  display: grid;
  gap: 7px;
  flex: 1;
  align-content: center;
}
body[data-project="project-seedling"] .ps-forecast-row {
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  align-items: center;
  gap: 7px;
  font-size: 0.63rem;
  color: #fff;
}
body[data-project="project-seedling"] .ps-forecast-row b {
  text-align: right;
  font-size: 0.61rem;
}
body[data-project="project-seedling"] .ps-forecast-track {
  height: 9px;
  border-radius: 100px;
  background: #19483e;
  overflow: hidden;
}
body[data-project="project-seedling"] .ps-forecast-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3cae88, #99edbc);
  border-radius: 100px;
}
body[data-project="project-seedling"] .ps-lifecycle-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
  flex: 1;
}
body[data-project="project-seedling"] .ps-lifecycle-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 99px;
  border: 1px solid #ffffff20;
  border-radius: 10px;
  background: #ffffff0a;
}
body[data-project="project-seedling"] .ps-lifecycle-stage.current {
  background: #48be8630;
  border-color: #88dfb2;
}
body[data-project="project-seedling"] .ps-lifecycle-stage span {
  font-size: 1.4rem;
  color: #78db9e;
}
body[data-project="project-seedling"] .ps-lifecycle-stage small {
  font-size: 0.57rem;
}
@media (max-width: 780px) {
  body[data-project="project-seedling"] .ps-genome-genes {
    gap: 3px;
  }
  body[data-project="project-seedling"] .ps-gene {
    height: 33px;
    font-size: 0.72rem;
  }
  body[data-project="worldforge"] .wf-art-stage {
    min-height: 154px;
  }
}

/* V25 corrections – only requested surfaces, no shared structural changes */
/* Home catalogue: force an actual coloured gradient, not a faint overlay image.
   Retain the distinct blue, red and green palettes and the original square size. */
body
  .pcard.v6-personal-card:not(.quantum-red-card):not(.v7-team-personal)
  .pc-cover {
  background: linear-gradient(
    139deg,
    color-mix(in srgb, var(--cmain, #328bed) 93%, white) 0%,
    color-mix(in srgb, var(--cmain, #328bed) 72%, var(--cdark, #06336c)) 48%,
    color-mix(in srgb, var(--cdark, #06336c) 87%, black) 100%
  ) !important;
  background-image: linear-gradient(
    139deg,
    color-mix(in srgb, var(--cmain, #328bed) 93%, white) 0%,
    color-mix(in srgb, var(--cmain, #328bed) 72%, var(--cdark, #06336c)) 48%,
    color-mix(in srgb, var(--cdark, #06336c) 87%, black) 100%
  ) !important;
}
body .pcard.v6-personal-card.quantum-red-card .pc-cover {
  background: linear-gradient(
    139deg,
    #f43e4b 0%,
    #df2437 36%,
    #a40d1b 73%,
    #7c0913 100%
  ) !important;
}
body .pcard.v6-personal-card.v7-team-personal .pc-cover {
  background: linear-gradient(
    139deg,
    #37cb9d 0%,
    #1eaa7e 45%,
    #10654f 100%
  ) !important;
}
/* OnConnect: architecture nodes and message steps are different component types.
   Keep a cool blue line on the architecture drawing, not an identical treatment on every step. */
body[data-project="onconnect"] #system-diagram .v17-arch-node,
body[data-project="onconnect"] #system-diagram .v17-arch-foundation > div {
  background: linear-gradient(
    140deg,
    rgba(95, 47, 59, 0.76),
    rgba(50, 25, 41, 0.72)
  ) !important;
  border: 1px solid rgba(132, 182, 239, 0.6) !important;
}
body[data-project="onconnect"] #message-sequence.v17-architecture {
  background: linear-gradient(
    145deg,
    rgba(95, 16, 26, 0.65),
    rgba(67, 10, 20, 0.62)
  ) !important;
  border: 1px solid rgba(255, 154, 161, 0.32) !important;
}
body[data-project="onconnect"] #message-sequence .v17-sequence li {
  background: linear-gradient(
    155deg,
    rgba(130, 18, 34, 0.86),
    rgba(72, 12, 23, 0.83)
  ) !important;
  border: 1px solid rgba(255, 157, 166, 0.35) !important;
}
/* Seedling: short information should produce short cards, not forced squares. */
body[data-project="project-seedling"] #systems .v6-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
body.v16-seedling-page[data-project="project-seedling"]
  #systems
  .v6-module-grid
  .v6-module-card,
body[data-project="project-seedling"] #systems .v6-module-grid .v6-module-card {
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: auto !important;
  padding: 20px 24px !important;
  gap: 6px !important;
  justify-content: flex-start !important;
}
body[data-project="project-seedling"] #systems .v6-module-card h3 {
  margin: 4px 0 5px !important;
  font-size: 1.08rem;
  line-height: 1.32;
}
body[data-project="project-seedling"] #systems .v6-module-card p {
  margin: 0 !important;
  line-height: 1.6 !important;
  font-size: 0.9rem;
}
body[data-project="project-seedling"] #systems .v6-module-card > span {
  margin: 0 0 6px;
}
@media (max-width: 780px) {
  body[data-project="project-seedling"] #systems .v6-module-grid {
    grid-template-columns: 1fr;
  }
}

/* V26 — OnConnect architecture diagrams match Modules & engineering details.
   The same background/border recipe is used by .v6-module-card in v6.css.
   Override older V22/V24/V25 architecture-only blue and gradient rules. */
body[data-project="onconnect"] #system-diagram.v17-architecture,
body[data-project="onconnect"] #message-sequence.v17-architecture,
body[data-project="onconnect"] #system-diagram .v17-arch-node,
body[data-project="onconnect"] #system-diagram .v17-arch-foundation > div,
body[data-project="onconnect"] #message-sequence .v17-sequence li {
  background: color-mix(
    in srgb,
    var(--theme-surface, #152c46) 78%,
    transparent
  ) !important;
  background-image: none !important;
  border: 1px solid
    color-mix(in srgb, var(--theme-accent, #68a9fb) 30%, transparent) !important;
  box-shadow: none !important;
}

/* Darker inner cards — OnConnect architecture */
body[data-project="onconnect"] #system-diagram .v17-arch-node,
body[data-project="onconnect"] #system-diagram .v17-arch-foundation > div,
body[data-project="onconnect"] #message-sequence .v17-sequence li {
  background: #50070e !important;
  background-image: none !important;
  border: 1px solid #a52d3b !important;
}

body[data-project="onconnect"] #system-diagram.v17-architecture,
body[data-project="onconnect"] #message-sequence.v17-architecture {
  border-radius: 20px;
}
body[data-project="onconnect"] #system-diagram .v17-arch-node,
body[data-project="onconnect"] #system-diagram .v17-arch-foundation > div,
body[data-project="onconnect"] #message-sequence .v17-sequence li {
  border-radius: 15px;
}
