/* Library-only tokens for the standalone page; other previews keep their own scope. */
body.product-yogaspace-current #iphone-library.ys-feature--library {
  --ys-nav-background-image: radial-gradient(circle at 27% 29%,rgba(222,239,218,0.206) 0 0.15px,transparent 0.41px),radial-gradient(circle at 64% 62%,rgba(222,239,218,0.208) 0 0.16px,transparent 0.34px),radial-gradient(circle at 36% 60%,rgba(222,239,218,0.099) 0 0.16px,transparent 0.40px),radial-gradient(circle at 80% 28%,rgba(222,239,218,0.184) 0 0.22px,transparent 0.48px),radial-gradient(circle at 43% 69%,rgba(222,239,218,0.205) 0 0.25px,transparent 0.44px),radial-gradient(circle at 54% 50%,rgba(222,239,218,0.168) 0 0.16px,transparent 0.42px),radial-gradient(circle at 62% 48%,rgba(222,239,218,0.153) 0 0.31px,transparent 0.61px),radial-gradient(circle at 15% 83%,rgba(222,239,218,0.239) 0 0.19px,transparent 0.44px),radial-gradient(circle at 8% 56%,rgba(222,239,218,0.229) 0 0.18px,transparent 0.40px),radial-gradient(circle at 74% 39%,rgba(222,239,218,0.094) 0 0.23px,transparent 0.44px),radial-gradient(circle at 45% 37%,rgba(222,239,218,0.115) 0 0.26px,transparent 0.53px),radial-gradient(circle at 14% 48%,rgba(222,239,218,0.174) 0 0.15px,transparent 0.36px),radial-gradient(circle at 70% 74%,rgba(222,239,218,0.121) 0 0.29px,transparent 0.48px),radial-gradient(circle at 13% 68%,rgba(222,239,218,0.235) 0 0.14px,transparent 0.42px),radial-gradient(circle at 8% 53%,rgba(222,239,218,0.164) 0 0.22px,transparent 0.48px),radial-gradient(circle at 29% 18%,rgba(222,239,218,0.193) 0 0.15px,transparent 0.39px),radial-gradient(circle at 60% 32%,rgba(222,239,218,0.239) 0 0.14px,transparent 0.41px),radial-gradient(circle at 22% 11%,rgba(222,239,218,0.186) 0 0.18px,transparent 0.43px),radial-gradient(circle at 57% 50%,rgba(222,239,218,0.202) 0 0.30px,transparent 0.61px),radial-gradient(circle at 38% 24%,rgba(222,239,218,0.151) 0 0.19px,transparent 0.48px),radial-gradient(circle at 35% 75%,rgba(222,239,218,0.127) 0 0.17px,transparent 0.39px),radial-gradient(circle at 31% 37%,rgba(222,239,218,0.235) 0 0.15px,transparent 0.41px),radial-gradient(circle at 14% 70%,rgba(222,239,218,0.108) 0 0.30px,transparent 0.56px),radial-gradient(circle at 76% 9%,rgba(222,239,218,0.194) 0 0.30px,transparent 0.55px),radial-gradient(circle at 36% 67%,rgba(222,239,218,0.186) 0 0.30px,transparent 0.50px),radial-gradient(circle at 60% 60%,rgba(222,239,218,0.099) 0 0.14px,transparent 0.41px),radial-gradient(circle at 17% 11%,rgba(222,239,218,0.092) 0 0.22px,transparent 0.52px),radial-gradient(circle at 18% 82%,rgba(222,239,218,0.224) 0 0.20px,transparent 0.46px),radial-gradient(ellipse at 8% 104%,#52816b70,transparent 43%),radial-gradient(ellipse at 65% 98%,#41786575,transparent 47%),radial-gradient(ellipse at 30% -35%,#031f1b85,transparent 65%),linear-gradient(113deg,#1a4b3e,#103d32 50%,#123e32);
  --ys-nav-background-size: 11.1px 18.0px,26.9px 22.5px,13.6px 20.3px,16.8px 12.4px,26.5px 26.7px,11.4px 30.0px,12.6px 27.7px,25.5px 15.5px,24.4px 20.9px,22.3px 19.6px,13.4px 23.2px,23.5px 12.4px,16.6px 16.1px,12.3px 15.3px,10.4px 17.6px,17.0px 20.7px,16.8px 14.9px,22.2px 19.3px,18.1px 25.3px,19.4px 16.9px,11.8px 15.8px,16.3px 24.7px,25.1px 28.6px,22.1px 30.5px,11.4px 15.9px,27.1px 23.3px,23.1px 15.5px,16.9px 24.3px,100% 100%,100% 100%,100% 100%,100% 100%;
  --ys-nav-background-position: 13.4px 4.7px,12.4px 2.8px,14.5px 5.2px,7.9px 1.9px,9.3px 5.5px,14.5px 5.7px,14.1px 4.8px,10.3px 2.4px,5.3px 13.5px,10.9px 12.3px,11.3px 10.3px,12.0px 9.6px,11.9px 11.5px,10.6px 0.5px,1.6px 11.7px,4.9px 6.6px,2.1px 4.4px,10.5px 9.9px,2.8px 0.0px,13.5px 12.6px,12.0px 4.8px,10.9px 12.6px,10.4px 12.6px,13.1px 3.9px,7.3px 14.6px,13.4px 3.7px,0.9px 0.1px,2.6px 8.0px,center,center,center,center;
  --ys-nav-background-repeat: repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,repeat,no-repeat,no-repeat,no-repeat,no-repeat;
}
/* Preserve the recommendations backdrop beneath a unified frosted library surface. */
/* Match the portrait practice preview instead of filling the wide feature column. */
#iphone-library .ys-library-preview {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(100%, 340px);
  min-height: 0;
  aspect-ratio: auto;
  margin-inline: auto;
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-preview .ys-library-window {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
}
#iphone-library .ys-library-card img {
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}
@media (max-width: 749px) {
  #iphone-library .ys-library-preview {
    width: min(100%, 320px);
    min-height: 0;
  }
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #073f31 !important;
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-preview::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  pointer-events: none;
  background-color: #073f31;
  background-image: linear-gradient(180deg,#e8fff32e,#ffffff00 44%,#00161024),radial-gradient(ellipse at 15% 0%,#77cda491,transparent 62%),radial-gradient(ellipse at 55% 105%,#2e886333,transparent 65%),linear-gradient(110deg,#0d684d38,#002b204d 55%,#001813bd),var(--ys-green-texture, url("ypc-green-texture.png"));
  background-size: 100% 100%,100% 100%,100% 100%,100% 100%,800% auto;
  background-position: center,center,center,center,left top;
  filter: blur(1.35px);
  opacity: .93;
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-header {
  box-sizing: border-box;
  padding: 12px 12px 16px;
  border-radius: 16px 16px 0 0;
  border-bottom: 0;
  background: transparent !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-tags::before,
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-tags::after {
  background: none !important;
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-search {
  box-sizing: border-box;
  width: calc(100% + 12px);
  min-height: 4.2rem;
  margin-right: -12px;
  padding: .55rem 1.2rem;
  font-size: 1.25rem;
  white-space: nowrap;
  background: rgba(255, 255, 255, .9) !important;
  border-color: #b9d2c4;
  box-shadow: 0 2px 8px #052f2510;
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
  color: #354e43 !important;
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-filters span {
  padding: .55rem 1.05rem;
  border: 0 !important;
  background-color: #eaf3ed !important;
  background-image: linear-gradient(rgba(234, 245, 237, .82), rgba(234, 245, 237, .82)), var(--ys-nav-background-image) !important;
  background-size: 100% 100%, var(--ys-nav-background-size) !important;
  background-position: center, var(--ys-nav-background-position) !important;
  background-repeat: no-repeat, var(--ys-nav-background-repeat) !important;
  box-shadow: none;
  color: #1e4b36 !important;
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-filters span:first-child {
  background-color: #103e33 !important;
  background-image: var(--ys-nav-background-image) !important;
  background-size: var(--ys-nav-background-size) !important;
  background-position: var(--ys-nav-background-position) !important;
  background-repeat: var(--ys-nav-background-repeat) !important;
  color: #fff !important;
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-tags {
  width: calc(100% + 30px);
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-tags-rail {
  padding-right: 0;
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-tags.has-trailing-overflow .ys-library-tags-rail {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent 100%);
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-tags.has-leading-overflow:not(.has-trailing-overflow) .ys-library-tags-rail {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(to left, #000 calc(100% - 22px), transparent 100%);
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-tags.has-leading-overflow.has-trailing-overflow .ys-library-tags-rail {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent);
}
/* Let the frame's green surface show through the pose-image gutters. */
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-preview::after {
  content: none;
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-window {
  position: relative;
  isolation: isolate;
  border-radius: 0 0 16px 16px;
  background: transparent;
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-grid {
  gap: 4px;
  background: transparent;
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-card {
  position: relative;
  background: transparent !important;
}
:is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-card span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  margin: 0;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .7);
  color: #293a31;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-align: right;
}
@media (max-width: 749px) {
  :is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-search {
    min-height: 4rem;
    gap: .7rem;
    padding: .55rem 1rem;
    font-size: 10px;
    white-space: nowrap;
  }
  :is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-search svg {
    width: 1.6rem;
    height: 1.6rem;
  }
}
@media (prefers-reduced-transparency: reduce) {
  :is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-preview::after,
  :is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-search,
  :is(html[data-preview-theme] #iphone-library, body.product-yogaspace-current #iphone-library.ys-feature--library) .ys-library-filters span {
    background: #f6faf7 !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

