/* 首页专属：营销作业实验室。只服务首页，不作为其他页面模板。 */
body.ym-area-home {
  --lab-blue: #51b7ff;
  --lab-cyan: #4ee0c1;
  --lab-orange: #ff7a38;
  --lab-dark: #07131f;
  --lab-panel: #0d2030;
  --lab-line: #294359;
  background: #f3f1ec;
}

.home-lab {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: #f5f9fc;
  background: var(--lab-dark);
  isolation: isolate;
}

.home-lab::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(110, 151, 184, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 151, 184, .075) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
}

.home-lab::after {
  position: absolute;
  z-index: -1;
  top: -260px;
  right: -160px;
  width: 760px;
  height: 620px;
  border: 1px solid rgba(81, 183, 255, .2);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(81, 183, 255, .025),
    0 0 0 150px rgba(78, 224, 193, .02);
  content: "";
}

.lab-opening {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  min-height: 760px;
  place-items: center;
  overflow: hidden;
  background: #050b11;
  transition: opacity .55s ease, visibility .55s;
}

.home-lab.is-ready .lab-opening {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.lab-opening video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050b11;
}

.lab-opening-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 9, 15, .82), rgba(3, 9, 15, .12) 58%, rgba(3, 9, 15, .56)),
    linear-gradient(0deg, rgba(3, 9, 15, .74), transparent 56%);
}

.lab-opening-status {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  min-height: 620px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  padding: 54px 0;
}

.lab-record {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #b7ccdc;
  font: 600 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}

.lab-record i {
  width: 8px;
  height: 8px;
  border: 2px solid #ff7953;
  border-radius: 50%;
}

.lab-opening-status > div:nth-child(2) small,
.lab-opening-status > div:nth-child(2) b {
  display: block;
}

.lab-opening-status > div:nth-child(2) small {
  color: #7fb6dc;
  font-size: 13px;
}

.lab-opening-status > div:nth-child(2) b {
  max-width: 760px;
  margin-top: 8px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.lab-opening-actions {
  display: flex;
  gap: 9px;
  margin-top: 28px;
}

.lab-opening-actions button,
.lab-replay {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 22px 7px 22px 7px;
  color: #fff;
  background: rgba(5, 14, 22, .72);
  font-size: 12px;
}

.lab-opening-actions button:first-child {
  color: #082033;
  background: #fff;
}

.lab-stage {
  display: grid;
  min-height: 650px;
  grid-template-columns: minmax(360px, .82fr) minmax(620px, 1.18fr);
  align-items: center;
  gap: 28px;
  padding-top: 58px;
  padding-bottom: 34px;
}

.lab-copy {
  position: relative;
  z-index: 4;
}

.lab-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #9bb7cc;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
}

.lab-kicker i {
  position: relative;
  width: 24px;
  height: 10px;
  border-top: 2px solid var(--lab-cyan);
  border-bottom: 2px solid var(--lab-blue);
}

.lab-kicker i::after {
  position: absolute;
  top: 2px;
  right: -3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.lab-copy h1 {
  max-width: 640px;
  margin: 22px 0 18px;
  color: #fff;
  font-size: clamp(41px, 3.9vw, 56px);
  line-height: 1.12;
  letter-spacing: -.055em;
}

.lab-title-main {
  white-space: nowrap;
}

.lab-copy h1 em {
  color: #75c8ff;
  font-style: normal;
}

.lab-copy > p {
  max-width: 570px;
  color: #9fb2c1;
  font-size: 15px;
  line-height: 1.85;
}

.lab-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 27px;
}

.lab-actions a {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
}

.lab-action-primary {
  border-radius: 24px 8px 24px 8px;
  color: #06131e;
  background: #78caff;
}

.lab-action-secondary {
  border: 1px solid #38536a;
  border-radius: 8px 24px 8px 24px;
  color: #d8e7f1;
  background: #0d1e2c;
}

.lab-replay {
  min-height: 45px;
  cursor: pointer;
}

.lab-protocol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 37px;
  border-top: 1px solid #294054;
  border-bottom: 1px solid #294054;
}

.lab-protocol > div {
  min-width: 0;
  padding: 13px 14px 13px 0;
  border-right: 1px solid #294054;
}

.lab-protocol > div + div {
  padding-left: 14px;
}

.lab-protocol > div:last-child {
  border-right: 0;
}

.lab-protocol dt {
  color: #66859e;
  font-size: 9px;
}

.lab-protocol dd {
  overflow: hidden;
  margin-top: 4px;
  color: #c3d1dc;
  font: 600 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-machine {
  position: relative;
  min-height: 555px;
}

.lab-route-map {
  position: absolute;
  inset: 8px 0 auto;
  width: 100%;
  height: 500px;
  overflow: visible;
}

.lab-route-map path {
  fill: none;
  stroke: #315069;
  stroke-width: 1.2;
  stroke-dasharray: 5 7;
}

.lab-moving-packet {
  fill: var(--lab-cyan);
  stroke: #07131f;
  stroke-width: 3;
}

.lab-moving-packet.p2 {
  fill: var(--lab-orange);
}

.lab-moving-packet.p3 {
  fill: var(--lab-blue);
}

.lab-node {
  position: absolute;
  z-index: 3;
  display: flex;
  min-width: 154px;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  padding: 8px 13px 8px 8px;
  border: 1px solid #345168;
  border-radius: 34px 10px 34px 10px;
  color: #9eb3c3;
  background: #0b1b28;
  text-align: left;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.lab-node:hover,
.lab-node.is-active {
  border-color: #68bff7;
  color: #fff;
  background: #10283a;
  transform: translateY(-2px);
}

.lab-node > i {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border: 1px solid #3e6078;
  border-radius: 50%;
  color: #79c8fb;
  background: #071520;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-style: normal;
}

.lab-node.is-active > i {
  color: #06131e;
  background: #78caff;
  border-color: #78caff;
}

.lab-node span,
.lab-node b,
.lab-node small {
  display: block;
}

.lab-node b {
  font-size: 12px;
}

.lab-node small {
  margin-top: 2px;
  color: #718da3;
  font-size: 8px;
}

.lab-node.n1 { top: 54px; left: 3px; }
.lab-node.n2 { top: 39px; right: 25px; }
.lab-node.n3 { right: 6px; bottom: 67px; }
.lab-node.n4 { bottom: 30px; left: 92px; }

.lab-monitor {
  position: absolute;
  z-index: 2;
  top: 142px;
  left: 50%;
  width: min(430px, 64%);
  min-height: 284px;
  overflow: hidden;
  border: 1px solid #3d5a70;
  border-radius: 54px 12px 54px 12px;
  background: #0d2030;
  box-shadow: 18px 20px 0 rgba(0, 0, 0, .2);
  transform: translateX(-50%);
}

.lab-monitor > header {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 24px;
  color: #88a4b9;
  background: #132b3e;
  border-bottom: 1px solid #39566d;
  font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.lab-monitor > header span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.lab-monitor > header span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ee0a4;
}

.lab-monitor > header em {
  color: #64849c;
  font-style: normal;
}

.lab-screen {
  min-height: 240px;
  padding: 23px 24px 21px;
}

.lab-screen article {
  display: none;
  animation: lab-panel-in .24s ease both;
}

.lab-screen article.is-active {
  display: block;
}

.lab-screen article > small {
  color: #6eb8e8;
  font: 650 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
}

.lab-screen h2 {
  margin: 8px 0 14px;
  color: #f0f6fa;
  font-size: 18px;
  line-height: 1.35;
}

.lab-screen p {
  margin-top: 12px;
  color: #8199ab;
  font-size: 10px;
  line-height: 1.7;
}

.lab-message-fields {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lab-message-fields span {
  padding: 6px 9px;
  border: 1px solid #324d62;
  border-radius: 15px 5px 15px 5px;
  color: #b6c7d4;
  background: #0a1925;
  font-size: 9px;
}

.lab-source-list {
  display: grid;
  gap: 7px;
}

.lab-source-list > span {
  display: grid;
  grid-template-columns: 20px 52px 1fr 44px;
  align-items: center;
  gap: 7px;
  color: #aebfcb;
}

.lab-source-list img {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  object-fit: contain;
  background: #fff;
}

.lab-source-list b {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-source-list i {
  position: relative;
  height: 4px;
  overflow: hidden;
  border-radius: 3px;
  background: #20384b;
}

.lab-source-list i::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--load);
  background: #55b8f6;
  content: "";
}

.lab-source-list em {
  color: #8199aa;
  font-size: 8px;
  font-style: normal;
  text-align: right;
}

.lab-work-orders {
  display: grid;
  gap: 6px;
  list-style: none;
}

.lab-work-orders li {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 15px 4px 15px 4px;
  color: #bdcbd5;
  background: #0a1925;
}

.lab-work-orders i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ee0a4;
}

.lab-work-orders span,
.lab-work-orders b {
  font-size: 9px;
}

.lab-work-orders b {
  color: #718da2;
}

.lab-return-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.lab-return-grid span {
  padding: 11px 8px;
  border: 1px solid #304a5f;
  border-radius: 22px 5px 22px 5px;
  background: #0a1925;
}

.lab-return-grid b,
.lab-return-grid small {
  display: block;
}

.lab-return-grid b {
  color: #d9e4eb;
  font-size: 9px;
}

.lab-return-grid small {
  margin-top: 3px;
  color: #708ca1;
  font-size: 7px;
}

.lab-telemetry {
  display: grid;
  min-height: 100px;
  grid-template-columns: repeat(4, 1fr) 1.25fr;
  align-items: center;
  margin-bottom: 34px;
  overflow: hidden;
  border: 1px solid #2e495f;
  border-radius: 50px 12px 50px 12px;
  background: #0b1c29;
}

.lab-telemetry > span {
  min-width: 0;
  padding: 17px 20px;
  border-right: 1px solid #2b4356;
}

.lab-telemetry small,
.lab-telemetry b,
.lab-telemetry em {
  display: block;
}

.lab-telemetry small {
  color: #607f96;
  font-size: 8px;
}

.lab-telemetry b {
  margin-top: 4px;
  color: #f4f8fb;
  font-size: 20px;
}

.lab-telemetry em {
  color: #7892a5;
  font-size: 8px;
  font-style: normal;
}

.lab-system-state {
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: center;
  gap: 2px 9px;
  padding: 17px 22px;
}

.lab-system-state > i {
  grid-row: 1 / 3;
  width: 10px;
  height: 10px;
  border: 2px solid #56dba8;
  border-radius: 50%;
}

.lab-system-state span {
  color: #65839a;
  font-size: 8px;
}

.lab-system-state b {
  color: #bce7d4;
  font-size: 10px;
}

/* 首页后续内容各用自己的信息结构，不复用统一方卡。 */
body.ym-area-home .home-recruit-entry {
  padding: 74px 0;
  color: #2a2420;
  background: #f1e8df;
  border: 0;
}

body.ym-area-home .home-recruit-entry::before {
  position: absolute;
  top: -90px;
  right: 8%;
  width: 310px;
  height: 180px;
  border: 1px solid #d9a998;
  border-radius: 50%;
  transform: rotate(-8deg);
  content: "";
}

body.ym-area-home .home-recruit-entry .container {
  grid-template-columns: minmax(0, 1fr) 440px;
}

body.ym-area-home .hre-kicker {
  color: #9c432e;
  border: 1px solid #d7a99a;
  border-radius: 18px 5px 18px 5px;
  background: #fff8f4;
}

body.ym-area-home .hre-copy h2 {
  font-size: 38px;
  letter-spacing: -.035em;
}

body.ym-area-home .hre-copy > p,
body.ym-area-home .hre-copy > small {
  color: #73635b;
}

body.ym-area-home .hre-panel {
  position: relative;
  padding: 28px;
  border: 1px solid #d7b8ac;
  border-radius: 70px 14px 70px 14px;
  color: #fff;
  background: #31231f;
  box-shadow: 18px 20px 0 rgba(82, 48, 38, .1);
}

body.ym-area-home .hre-flow {
  gap: 9px;
}

body.ym-area-home .hre-flow span {
  padding: 16px 7px;
  border: 0;
  border-radius: 30px 7px 30px 7px;
  background: #fffaf7;
}

body.ym-area-home .hre-flow i {
  border-radius: 50%;
}

body.ym-area-home .section {
  padding: 92px 0;
}

body.ym-area-home .section > .container {
  position: relative;
}

body.ym-area-home .section.alt {
  border: 0;
  background: #e9edf0;
}

body.ym-area-home .sec-head {
  max-width: 790px;
  padding-left: 0;
  border: 0;
}

body.ym-area-home .sec-head::before {
  display: block;
  width: 64px;
  height: 10px;
  margin-bottom: 14px;
  border-top: 2px solid #1671c5;
  border-bottom: 2px solid #d95722;
  content: "";
}

body.ym-area-home .sec-head h2 {
  font-size: clamp(30px, 4vw, 44px);
}

body.ym-area-home .svc-grid {
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

body.ym-area-home .svc {
  min-height: 230px;
  padding: 30px;
  border: 1px solid #d8dde1;
  border-radius: 54px 12px 54px 12px;
  background: #fff;
}

body.ym-area-home .svc:nth-child(1),
body.ym-area-home .svc:nth-child(4) {
  grid-column: span 7;
}

body.ym-area-home .svc:nth-child(2),
body.ym-area-home .svc:nth-child(3) {
  grid-column: span 5;
}

body.ym-area-home .svc:nth-child(5),
body.ym-area-home .svc:nth-child(6) {
  grid-column: span 6;
}

body.ym-area-home .svc:nth-child(even) {
  border-radius: 12px 54px 12px 54px;
}

body.ym-area-home .svc::before {
  width: 7px;
  height: 54px;
  top: 29px;
  bottom: auto;
  border-radius: 0 7px 7px 0;
}

body.ym-area-home .svc-ic {
  border-radius: 50%;
}

body.ym-area-home .data-band {
  padding: 92px 0;
  background: #101922;
}

body.ym-area-home .db-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  border: 0;
}

body.ym-area-home .db-item {
  min-height: 178px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 22px 10px;
  border: 1px solid #334857;
  border-radius: 50% 50% 20px 20px;
  background: #142430;
}

body.ym-area-home .db-item:nth-child(even) {
  border-radius: 20px 20px 50% 50%;
}

body.ym-area-home .db-item:hover {
  background: #182b38;
}

body.ym-area-home .plat-grid {
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

body.ym-area-home .plat-card {
  grid-column: span 3;
  min-height: 190px;
  padding: 25px;
  border-radius: 42px 9px 42px 9px;
}

body.ym-area-home .plat-card:nth-child(3n + 2) {
  border-radius: 9px 42px 9px 42px;
  transform: translateY(18px);
}

body.ym-area-home .plat-card:nth-child(5n) {
  grid-column: span 6;
}

body.ym-area-home .plat-card:hover {
  transform: translateY(0) !important;
}

body.ym-area-home .plat-card::after {
  width: 6px;
  height: 42px;
  top: 24px;
  bottom: auto;
  border-radius: 0 6px 6px 0;
}

body.ym-area-home .plat-card img,
body.ym-area-home .p-ic-svg {
  border-radius: 50%;
}

body.ym-area-home .star-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 4px 18px;
  scroll-snap-type: x proximity;
}

body.ym-area-home .star-card {
  width: 255px;
  min-width: 255px;
  scroll-snap-align: start;
  border-radius: 80px 16px 46px 16px;
}

body.ym-area-home .star-card:nth-child(even) {
  border-radius: 16px 80px 16px 46px;
}

body.ym-area-home .star-public-price {
  margin: -2px 0 12px;
  color: #d84d2f;
  font-size: 15px;
  font-weight: 800;
}

body.ym-area-home .ind-tabs {
  justify-content: flex-start;
  gap: 5px;
  border: 0;
}

body.ym-area-home .ind-tabs button {
  border: 1px solid #cbd3da;
  border-radius: 22px 6px 22px 6px;
  background: #fff;
}

body.ym-area-home .ind-tabs button:nth-child(even) {
  border-radius: 6px 22px 6px 22px;
}

body.ym-area-home .ind-tabs button.on {
  color: #fff;
  border-color: #172b3d;
  background: #172b3d;
}

body.ym-area-home .ind-panel {
  grid-template-columns: 1.2fr .8fr;
  border: 0;
  border-radius: 80px 16px 80px 16px;
  background: #fff;
  box-shadow: 20px 22px 0 rgba(42, 61, 76, .06);
}

body.ym-area-home .ind-num {
  border-radius: 28px 7px 28px 7px;
}

body.ym-area-home .feat-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0 90px;
  padding: 20px 0;
}

body.ym-area-home .feat {
  position: relative;
  min-height: 150px;
  margin-bottom: 22px;
  padding: 26px 28px 25px 78px;
  border: 0;
  border-radius: 60px 12px 60px 12px;
  background: #f5f7f8;
}

body.ym-area-home .feat:nth-child(even) {
  margin-top: 54px;
  border-radius: 12px 60px 12px 60px;
}

body.ym-area-home .feat .f-icon {
  position: absolute;
  top: 28px;
  left: 22px;
  border-radius: 50%;
}

body.ym-area-home .feat::after {
  top: auto;
  right: 22px;
  bottom: 14px;
  font-size: 22px;
  opacity: .45;
}

body.ym-area-home .steps {
  position: relative;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

body.ym-area-home .steps::before {
  position: absolute;
  top: 46px;
  right: 7%;
  left: 7%;
  height: 40px;
  border-top: 1px solid #8aa4b7;
  border-radius: 50%;
  content: "";
}

body.ym-area-home .step {
  z-index: 1;
  min-height: 180px;
  padding: 27px 15px;
  border: 0;
  border-radius: 50% 50% 24px 24px;
  background: #fff;
}

body.ym-area-home .step:nth-child(even) {
  margin-top: 45px;
  border-radius: 24px 24px 50% 50%;
}

body.ym-area-home .step .s-num {
  border-radius: 50%;
}

body.ym-area-home .tm-grid {
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
}

body.ym-area-home .tm {
  border: 0;
  border-radius: 70px 14px 70px 14px;
  background: #f4f1ec;
}

body.ym-area-home .tm:nth-child(2),
body.ym-area-home .tm:nth-child(3) {
  border-radius: 14px 54px 14px 54px;
}

body.ym-area-home .tm:nth-child(1) {
  grid-row: span 2;
}

body.ym-area-home .role-grid {
  grid-template-columns: 1.15fr .85fr;
}

body.ym-area-home .role-card {
  border-radius: 64px 12px 64px 12px;
}

body.ym-area-home .role-card:nth-child(2) {
  border-radius: 12px 64px 12px 64px;
}

body.ym-area-home .role-card:nth-child(3) {
  grid-column: 1 / -1;
  max-width: 72%;
  justify-self: center;
  border-radius: 64px;
}

body.ym-area-home .faq {
  border-radius: 26px 7px 26px 7px;
}

body.ym-area-home .faq:nth-child(even) {
  border-radius: 7px 26px 7px 26px;
}

body.ym-area-home .cta-band {
  border: 0;
  border-radius: 100px 18px 100px 18px;
  background: #101c27;
}

/* 移动首页专属口袋实验室 */
.m-lab-pocket {
  position: relative;
  min-height: 318px;
  overflow: hidden;
  padding: 17px 15px 15px;
  border-radius: 32px 9px 32px 9px;
  color: #eef7fd;
  background: #091925;
}

.m-lab-pocket::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(116, 158, 191, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 158, 191, .08) 1px, transparent 1px);
  background-size: 23px 23px;
  content: "";
}

.m-lab-head,
.m-lab-orbit,
.m-lab-message,
.m-lab-pocket-actions {
  position: relative;
  z-index: 1;
}

.m-lab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m-lab-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #91abc0;
  font-size: 8px;
  letter-spacing: .06em;
}

.m-lab-head span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ee0a4;
}

.m-lab-head button {
  padding: 5px 8px;
  border: 1px solid #385267;
  border-radius: 13px 4px 13px 4px;
  color: #afc3d2;
  background: #102534;
  font-size: 8px;
}

.m-lab-orbit {
  width: 205px;
  height: 168px;
  margin: 9px auto 2px;
}

.m-lab-orbit::before,
.m-lab-orbit::after {
  position: absolute;
  inset: 10px 20px;
  border: 1px solid #31536c;
  border-radius: 50%;
  content: "";
}

.m-lab-orbit::after {
  inset: 28px 42px;
  border-style: dashed;
}

.m-lab-core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid #5ca7d6;
  border-radius: 50%;
  background: #102b3d;
  transform: translate(-50%, -50%);
}

.m-lab-core b,
.m-lab-core small {
  display: block;
  text-align: center;
}

.m-lab-core b {
  font-size: 18px;
}

.m-lab-core small {
  color: #7897ad;
  font-size: 7px;
}

.m-lab-point {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #375a72;
  border-radius: 50%;
  color: #b9ccda;
  background: #0b1f2e;
  font-size: 7px;
}

.m-lab-point.p1 { top: 0; left: 82px; }
.m-lab-point.p2 { top: 64px; right: 0; }
.m-lab-point.p3 { bottom: 0; left: 82px; }
.m-lab-point.p4 { top: 64px; left: 0; }

.m-lab-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #315067;
  border-radius: 18px 5px 18px 5px;
  background: #0d2231;
}

.m-lab-message code {
  color: #69c5ff;
  font-size: 7px;
}

.m-lab-message span {
  overflow: hidden;
  color: #a7bac9;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-lab-pocket-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}

.m-lab-pocket-actions a,
.m-lab-pocket-actions button {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #3b5a70;
  border-radius: 17px 5px 17px 5px;
  color: #d6e4ee;
  background: #102434;
  font-size: 9px;
}

.m-lab-pocket-actions a {
  color: #06131e;
  background: #72c8ff;
  border-color: #72c8ff;
}

.m-lab-video {
  position: fixed;
  z-index: 700;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.m-lab-video.is-open {
  display: block;
}

.m-lab-video-close {
  position: fixed;
  z-index: 701;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .65);
}

.m-lab-video-close.is-open {
  display: grid;
  place-items: center;
}

body.mobile-app.ym-experience .m-home .m-creator-data em {
  margin-left: auto;
  color: #d84d2f;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

@keyframes lab-panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .lab-stage {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .lab-machine {
    width: min(760px, 100%);
    margin: 0 auto;
  }

  .lab-copy {
    max-width: 760px;
  }

  .lab-title-main {
    white-space: normal;
  }

  body.ym-area-home .plat-card {
    grid-column: span 4;
  }

  body.ym-area-home .plat-card:nth-child(5n) {
    grid-column: span 4;
  }
}

@media (max-width: 900px) {
  .home-lab,
  .lab-opening {
    min-height: 1080px;
  }

  .lab-telemetry {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 40px 10px 40px 10px;
  }

  .lab-system-state {
    grid-column: 1 / -1;
  }

  body.ym-area-home .home-recruit-entry .container {
    grid-template-columns: 1fr;
  }

  body.ym-area-home .hre-panel {
    display: block;
  }

  body.ym-area-home .db-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  body.ym-area-home .svc:nth-child(n) {
    grid-column: span 6;
  }

  body.ym-area-home .plat-card {
    grid-column: span 6 !important;
  }

  body.ym-area-home .feat-grid {
    gap: 0 20px;
  }
}

@media (max-width: 680px) {
  .home-lab {
    display: none;
  }

  body.ym-area-home .section {
    padding: 58px 0;
  }

  body.ym-area-home .svc-grid,
  body.ym-area-home .plat-grid,
  body.ym-area-home .feat-grid,
  body.ym-area-home .steps,
  body.ym-area-home .tm-grid,
  body.ym-area-home .role-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.ym-area-home .svc:nth-child(n),
  body.ym-area-home .plat-card:nth-child(n),
  body.ym-area-home .role-card:nth-child(n) {
    grid-column: 1;
    max-width: none;
    margin-top: 0;
    transform: none;
  }

  body.ym-area-home .db-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.ym-area-home .db-item {
    min-height: 145px;
  }

  body.ym-area-home .ind-panel {
    grid-template-columns: 1fr;
    border-radius: 42px 10px 42px 10px;
  }

  body.ym-area-home .feat:nth-child(n),
  body.ym-area-home .step:nth-child(n) {
    margin-top: 0;
  }

  body.ym-area-home .steps::before {
    content: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-moving-packet {
    display: none;
  }

  .lab-screen article {
    animation: none;
  }
}
