/* V-CORE responsive layer registration v17.
   Keeps each annotation attached to the matching biological layer across
   hosted desktop, laptop and mobile viewport sizes. */

@media (min-width: 1051px) {
  .skin-lab-v4 {
    container-type: inline-size;
  }

  .vcore-layer-rail span {
    left: 5%;
    width: 190px;
    min-width: 190px;
    grid-template-columns: 24px 142px;
    gap: 0 7px;
    font-size: 10.5px;
    line-height: 1.12;
  }

  .vcore-layer-rail span:nth-child(1) { top: 50%; }
  .vcore-layer-rail span:nth-child(2) { top: 63%; }
  .vcore-layer-rail span:nth-child(3) { top: 77%; }

  .vcore-layer-rail b {
    font-size: 11px;
  }

  .vcore-layer-rail small {
    margin-top: 4px;
    font-size: 8px;
    line-height: 1.25;
  }

  .vcore-layer-rail em {
    max-width: 142px;
    margin-top: 5px;
    font-size: 7.2px;
    line-height: 1.35;
  }

  .vcore-layer-rail span::after {
    left: calc(100% - 12px);
    width: 32px;
    background: linear-gradient(90deg, rgba(241,243,248,.94), rgba(171,178,191,.62));
  }

  .vcore-layer-rail span::before {
    left: calc(100% + 17px);
    width: 7px;
    height: 7px;
    box-shadow: 0 0 10px rgba(232,236,245,.38);
  }
}

@media (min-width: 701px) and (max-width: 1050px) {
  .skin-lab-v4 {
    min-height: 430px;
  }

  .vcore-layer-rail span {
    left: 3.5%;
    width: 165px;
    min-width: 165px;
    grid-template-columns: 22px 119px;
    gap: 0 6px;
    font-size: 8.5px;
  }

  .vcore-layer-rail span:nth-child(1) { top: 48.5%; }
  .vcore-layer-rail span:nth-child(2) { top: 61.5%; }
  .vcore-layer-rail span:nth-child(3) { top: 75%; }

  .vcore-layer-rail b { font-size: 10px; }
  .vcore-layer-rail small { font-size: 7px; }
  .vcore-layer-rail em { max-width: 119px; font-size: 6.3px; }

  .vcore-layer-rail span::after {
    left: calc(100% - 14px);
    width: 28px;
  }

  .vcore-layer-rail span::before {
    left: calc(100% + 11px);
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 700px) {
  .skin-lab-v4 {
    min-height: clamp(320px, 92vw, 390px);
  }

  .vcore-layer-rail span {
    left: 2%;
    width: 112px;
    min-width: 112px;
    grid-template-columns: 18px 84px;
    gap: 0 5px;
    font-size: 6.2px;
    line-height: 1.08;
  }

  .vcore-layer-rail span:nth-child(1) { top: 45%; }
  .vcore-layer-rail span:nth-child(2) { top: 57%; }
  .vcore-layer-rail span:nth-child(3) { top: 70%; }

  .vcore-layer-rail b { font-size: 7.8px; }
  .vcore-layer-rail small { margin-top: 3px; font-size: 5.5px; }
  .vcore-layer-rail em { max-width: 84px; margin-top: 3px; font-size: 5px; line-height: 1.2; }

  .vcore-layer-rail span::after {
    left: calc(100% - 13px);
    width: 14px;
  }

  .vcore-layer-rail span::before {
    left: calc(100% - 2px);
    width: 5px;
    height: 5px;
  }
}
