/* 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;
}
html[data-preview-theme] #iphone-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;
  }
}
html[data-preview-theme] #iphone-library .ys-library-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #073f31 !important;
}
html[data-preview-theme] #iphone-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;
}
html[data-preview-theme] #iphone-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;
}
html[data-preview-theme] #iphone-library .ys-library-tags::before,
html[data-preview-theme] #iphone-library .ys-library-tags::after {
  background: none !important;
}
html[data-preview-theme] #iphone-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;
}
html[data-preview-theme] #iphone-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;
}
html[data-preview-theme] #iphone-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;
}
html[data-preview-theme] #iphone-library .ys-library-tags {
  width: calc(100% + 30px);
}
html[data-preview-theme] #iphone-library .ys-library-tags-rail {
  padding-right: 0;
}
html[data-preview-theme] #iphone-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%);
}
html[data-preview-theme] #iphone-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%);
}
html[data-preview-theme] #iphone-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. */
html[data-preview-theme] #iphone-library .ys-library-preview::after {
  content: none;
}
html[data-preview-theme] #iphone-library .ys-library-window {
  position: relative;
  isolation: isolate;
  border-radius: 0 0 16px 16px;
  background: transparent;
}
html[data-preview-theme] #iphone-library .ys-library-grid {
  gap: 4px;
  background: transparent;
}
html[data-preview-theme] #iphone-library .ys-library-card {
  position: relative;
  background: transparent !important;
}
html[data-preview-theme] #iphone-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) {
  html[data-preview-theme] #iphone-library .ys-library-search {
    min-height: 4rem;
    gap: .7rem;
    padding: .55rem 1rem;
    font-size: 10px;
    white-space: nowrap;
  }
  html[data-preview-theme] #iphone-library .ys-library-search svg {
    width: 1.6rem;
    height: 1.6rem;
  }
}
@media (prefers-reduced-transparency: reduce) {
  html[data-preview-theme] #iphone-library .ys-library-preview::after,
  html[data-preview-theme] #iphone-library .ys-library-search,
  html[data-preview-theme] #iphone-library .ys-library-filters span {
    background: #f6faf7 !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
