/* DARK P13, Figma 1742:354. Uses the existing fixed-board scaler. */
#main #cq-quality > .cq10-stage { display: none; }

html[data-theme="dark"] #main #cq-quality.portfolio-sheet {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1920px;
  min-height: 0;
  height: calc(1400px * var(--zk592-scale, 1) + 4px);
  padding: 0;
  border: 2px solid #372942;
  border-radius: 22px;
  overflow: clip;
  background: #060713;
  box-shadow: 0 14px 45px #07030c36;
}

html[data-theme="dark"] #main #cq-quality > :not(.cq10-stage, .u-header, .u-footer, .anchor-alias),
html[data-theme="dark"] #main #cq-quality::before,
html[data-theme="dark"] #main #cq-quality::after { display: none; }

/* At 760px and below the legacy mobile layout forces .sheet-content visible. */
html[data-theme="dark"] #main #cq-quality > .sheet-content { display: none !important; }

html[data-theme="dark"] #main #cq-quality > .u-running {
  display: flex;
  position: absolute;
  inset-inline: 0;
  z-index: 5;
}

html[data-theme="dark"] #main #cq-quality > .u-header { top: 0; }
html[data-theme="dark"] #main #cq-quality > .u-footer {
  bottom: 0;
  height: calc(60px * var(--zk592-scale, 1));
  min-height: 0;
}
html[data-theme="dark"] #main #cq-quality > .cq10-stage {
  --cq10-title: 'ZK08 Title', 'LogoSC Unbounded Sans', sans-serif;
  --cq10-text: 'Portfolio Inter', 'PingFang SC', sans-serif;
  --cq10-noto: 'CQ03 Noto', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --cq10-skew: matrix(1, 0, -.115457259, .993312418, 0, 0);
  display: block;
  position: absolute;
  inset: 0 auto auto 0;
  width: 1920px;
  height: 1400px;
  margin: 0;
  padding: 0;
  isolation: isolate;
  transform: scale(var(--zk592-scale, 1));
  transform-origin: top left;
  color: #fff;
  font-family: var(--cq10-text);
}

#main #cq-quality .cq10-stage :is(h2, h3, h4, p, ol, ul, figure) { margin: 0; padding: 0; letter-spacing: 0; }
#main #cq-quality .cq10-stage img { display: block; max-width: none; }

.cq10-background,
.cq10-background::after { position: absolute; inset: 0; }

.cq10-background {
  z-index: -4;
  overflow: hidden;
  background: linear-gradient(180deg, #060713, #0a0e24 56.747%, #090517 89.503%, #21003c 103.18%);
}

.cq10-background::after {
  content: '';
  background: linear-gradient(180deg, #060713 20.804%, #0a0e2480 66.335%, #090517);
}

.cq10-trails { position: absolute; top: 291.62px; left: 0; width: 1920px; height: 1271.9px; }
.cq10-checker { position: absolute; top: 1075px; left: 0; z-index: -3; }

#main #cq-quality .cq10-stage .cq10-number {
  position: absolute;
  left: 953px;
  top: -97px;
  z-index: -1;
  pointer-events: none;
  color: transparent;
  font: 700 820px/normal 'Portfolio Trash', sans-serif;
  letter-spacing: -57.4px;
  white-space: nowrap;
  background: linear-gradient(-30.545622deg, #9d59ff0a 20.981%, #7424ff30 62.234%);
  background-clip: text;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.cq10-heading { position: absolute; left: 80px; top: 140px; width: 1760px; }
.cq10-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 42px;
  font: 700 32px/1.3 var(--cq10-text);
  white-space: nowrap;
}

#main #cq-quality .cq10-eyebrow b {
  display: grid;
  place-items: center;
  width: 179.348px;
  height: 36px;
  border: 1px solid #fff;
  border-radius: 24px;
  font: 700 24px/1.2 'Portfolio Trash', sans-serif;
}

#main #cq-quality .cq10-heading h2 {
  position: absolute;
  top: 50px;
  left: 0;
  width: 1397.784px;
  height: 102.311px;
  font: 400 86px/1.2 var(--cq10-title);
  letter-spacing: 0;
  color: #fff;
  white-space: nowrap;
}

.cq10-heading h2 span {
  position: absolute;
  left: 11.892px;
  width: 884px;
  height: 103px;
  transform: var(--cq10-skew);
  transform-origin: top left;
}

.cq10-heading h2 span + span {
  left: 915.784px;
  width: 482px;
  color: transparent;
  background: linear-gradient(265.494380deg, #e2caff 19.95%, #964dff 75.058%, #2429ff 121.1%, #3d22b6 137.16%);
  background-clip: text;
}

.cq10-eyebrow b span { transform: var(--cq10-skew); }

.cq10-steps { list-style: none; }

.cq10-step {
  position: absolute;
  top: 345.135px;
  left: var(--cq10-step-x);
  color: #7b4cd4;
  white-space: nowrap;
}

#main #cq-quality .cq10-step b {
  display: block;
  height: 32px;
  font: 700 24px/32px 'ZK10 Futura', Futura, var(--cq10-text);
}

#main #cq-quality .cq10-step p {
  margin-top: 4.298px;
  font: 600 20px/28px 'PingFang SC', var(--cq10-noto);
}

.cq10-phone {
  position: absolute;
  left: var(--cq10-phone-x);
  top: 426.628px;
  width: 362.814px;
  height: 730.744px;
}

.cq10-phone img { position: absolute; }

.cq10-phone-floor {
  position: absolute;
  left: -126.3px;
  top: 704.355px;
  width: 615.183px;
  height: 135.223px;
  background: url('../assets/cq-mobile-skill-1735/phone-floor.png') center / 100% 100% no-repeat;
  mask: url('../assets/cq-mobile-chain-1742/phone-floor-mask.svg') center / 100% 100% no-repeat;
}

.cq10-phone-halo { left: -162.141px; top: 515.497px; }
.cq10-phone-shadow { left: -22.217px; top: 693.626px; }
.cq10-phone-rim { left: 2.91px; top: .002px; }
.cq10-phone-controls-right { left: 360.252px; top: 166.66px; }
.cq10-phone-controls-left { left: .869px; top: 98.369px; }
.cq10-phone-bezel { left: 8.033px; top: 5.127px; }
.cq10-phone-notch { left: 101.936px; top: 18.78px; }

.cq10-screen {
  position: absolute;
  left: 21.69px;
  top: 18.781px;
  width: 320.125px;
  height: 693.182px;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
}

.cq10-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* The original positioning mode has a dedicated cropped overlay near the map edge. */
.cq10-location-detail {
  position: absolute;
  left: 34.948px;
  top: 523.371px;
  width: 61px;
  height: 67px;
  overflow: hidden;
  border-radius: 7px;
  box-shadow: 0 0 2px #425a8940;
}

.cq10-location-detail img { left: -10px; top: -548px; width: 320.125px; height: auto; }

.cq10-step-arrow { position: absolute; left: 352.353px; top: 723.418px; transform: scaleX(-1); }

.cq10-entry {
  position: absolute;
  left: 265px;
  top: 559px;
  width: 150.745px;
  height: 206px;
  overflow: hidden;
  border: 1.6px solid #fff;
  border-radius: 22.531px;
  box-shadow: 0 4px 26.2px #b4d7fd;
}

.cq10-entry img { position: absolute; left: -277.94%; top: -100.78%; width: 399.29%; height: auto; }
.cq10-connectors { position: absolute; left: 209px; top: 487.227px; pointer-events: none; }

#main #cq-quality .cq10-note {
  position: absolute;
  left: 82.886px;
  top: 1175px;
  right: 82.886px;
  color: transparent;
  background: linear-gradient(90deg, #7b4cd4, #ac87f1);
  background-clip: text;
  transform: var(--cq10-skew);
  transform-origin: top left;
  font: 600 18px/25px 'PingFang SC', var(--cq10-noto);
  white-space: nowrap;
}

.cq10-summary {
  position: absolute;
  left: 180px;
  top: 1210.8px;
  width: 1560px;
  height: 115.2px;
  border-radius: 30px;
  background: url('../assets/cq-mobile-chain-1742/summary-glow-1.svg'),
    url('../assets/cq-mobile-chain-1742/summary-glow-2.svg'),
    url('../assets/cq-mobile-chain-1742/summary-base.png') center / cover;
  backdrop-filter: blur(5.6px);
}

.cq10-value {
  position: absolute;
  left: var(--cq10-value-x);
  top: 13.6px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cq10-value img { width: 88px; height: 88px; object-fit: contain; }
.cq10-value:last-of-type img { object-fit: fill; object-position: bottom; transform: scaleX(-1); }

#main #cq-quality .cq10-value h3 {
  width: max-content;
  color: transparent;
  background: linear-gradient(266.804deg, #e7d4ff -69.587%, #f08ffd 22.195%, #2429ff 106.46%, #2c22b6 151.93%);
  background-clip: text;
  font: 800 28px/37.7px var(--cq10-text);
}

#main #cq-quality .cq10-value p {
  margin-top: 8px;
  color: #ffffffbf;
  font: 500 20px/26.1px var(--cq10-noto);
  white-space: nowrap;
}

#main #cq-quality .cq10-value:last-of-type p {
  max-width: 326px;
  white-space: normal;
}

.cq10-summary-divider {
  position: absolute;
  left: var(--cq10-divider-x);
  top: 56.6px;
  transform: translate(-50%, -50%) rotate(90deg);
}

@media screen and (max-width: 768px) {
  html[data-theme="dark"] body:not(.canvas-mode) #main #cq-quality.portfolio-sheet {
    height: calc(1400px * var(--zk592-scale, 1) + 92px);
  }
  html[data-theme="dark"] body:not(.canvas-mode) #main #cq-quality > .cq10-stage { top: 44px; }
  html[data-theme="dark"] body:not(.canvas-mode) #main #cq-quality > .u-footer { height: 44px; }
}
