.library-header:has(.member-header:not([hidden])) {
  position: relative;
  z-index: 2;
  width: min(96%, 1320px);
  padding: .5rem clamp(.75rem, 3vw, 2rem);
  border: 0;
  border-radius: 0 0 2.5rem 2.5rem;
  background: linear-gradient(#fff9ff, #fff);
  box-shadow: 0 8px 20px #66246a3d;
}
.library-header .member-header { justify-content: flex-end; flex-wrap: wrap; gap: .35rem 1rem; }
.member-header a { color: #33104f; font-size: .88rem; }
.member-header a:first-child {
  background: linear-gradient(#b745e7, #7621aa);
  border-radius: .8rem;
  color: white;
  padding: .4rem .8rem;
}
.library-page {
  background:
    radial-gradient(circle, #e9b84f 1px, transparent 1.5px) 0 0 / 73px 67px,
    radial-gradient(circle, #8ccfcb 1px, transparent 1.5px) 16px 21px / 61px 57px,
    radial-gradient(circle, #b4cb7b 1px, transparent 1.5px) 35px 9px / 79px 63px,
    radial-gradient(circle, #bba7df 1px, transparent 1.5px) 9px 34px / 83px 71px,
    #fbf7ee;
}
.member-library {
  position: relative;
  --library-pink: #c81668;
  --library-line: #f6abd1;
  padding-top: 0;
  background: transparent;
}
.member-library .parent-grid { justify-content: flex-end; margin-bottom: .25rem; }
.member-library .parent-grid > div:first-child { display: none; }
.member-library .account { text-align: right; }
.member-library .account #account-status { display: inline; margin-inline-end: .5rem; }
.member-library .account #account-actions { display: inline-block; text-align: left; }
.library-hero { position: relative; max-width: 1400px; margin: auto; }
.library-hero img { display: block; width: 100%; height: auto; }

.member-library .dashboard-nav {
  position: relative;
  margin-top: -.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 0;
  background: transparent;
  padding: 0;
}
.member-library .dashboard-nav a {
  gap: .45rem;
  min-height: 3.5rem;
  border: 4px solid white;
  border-radius: 1.4rem;
  text-align: center;
  font-weight: 850;
  background: linear-gradient(#fff9ef, #f4d8fa);
  box-shadow: 0 5px 12px #87235635;
}
.member-library .dashboard-nav a span { font-size: 1.4em; }
.member-library .dashboard-nav a[aria-current="page"] { background: linear-gradient(#ee3181, #b80d54); }
.starter-crafts .library-results { justify-content: center; }
.member-library .starter-crafts h2 {
  color: #55127d;
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  font-weight: 900;
  text-shadow: 2px 3px #fff;
}
.member-library #illustrated-guides .library-intro {
  margin-inline: calc((100% - min(100vw, 1400px)) / 2);
  padding: clamp(1rem, 3vw, 2rem);
  color: white;
  background: url('/library-art/ribbon-edge.svg') center / 100% 100% no-repeat;
}
.member-library #illustrated-guides .library-intro h2 { color: white; }
.member-library #illustrated-guides .library-intro h2 span { color: #ffdd53; }
.member-library #illustrated-guides .library-intro p { color: white; }
.member-library .catalog-filters, .member-library .supply-picker {
  border: 2px solid white;
  background: #fffbff;
  box-shadow: 0 5px 13px #811b6a22;
}
.member-library .catalog-filters :is(input, select), .member-library #supply-mode { border-color: #b581cc; background: #fffaff; }
.member-library .supply-options label { border-color: #e5cbe9; border-radius: .7rem; padding-inline: .5rem; font-size: .85rem; }
.supply-icon { font-size: 1.25em; }
.member-library .video-card {
  border: 4px solid #fffbff;
  background: linear-gradient(#fff, #fff3fd);
  box-shadow: 0 4px 12px #8b2d6536;
  border-radius: 1.1rem;
  padding: .4rem;
}
.member-library .video-card > img[src^="/library-art/"] { object-fit: cover; padding: 0; }
.member-library .card-save { top: .55rem; right: .55rem; color: #c81668; }
.member-library .library-results h3 { color: #441161; font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 900; }
.member-library .library-results p { background: #b91760; color: white; }

.member-library #starter-grid img[src$="/rocket.webp"] { content: url('/library-art/starter-rocket.webp'); }
.member-library #starter-grid img[src$="/dinosaur.webp"] { content: url('/library-art/starter-dinosaur.webp'); }
.member-library #starter-grid img[src$="/paper-penguin.webp"] { content: url('/library-art/starter-penguin.webp'); }
.member-library #starter-grid .video-card { border-width: 5px; border-radius: 1.5rem; }
.member-library #starter-grid .video-card img { aspect-ratio: 267 / 166; }
.member-library #guide-grid .video-card { gap: .15rem; padding: .24rem; border-radius: .95rem; }
.member-library #guide-grid .video-card h3 { margin: .1rem .18rem; }
.member-library #guide-grid .card-save { width: 36px; min-height: 36px; font-size: 1.25rem; }
.member-library .card-save[aria-pressed="true"] { background: #ffdbec; color: #b20b56; }
.member-library .dashboard-nav a:hover { filter: brightness(1.05); }
@media (max-width: 650px) {
  .library-header:has(.member-header:not([hidden])) { flex-wrap: wrap; justify-content: center; }
  .library-header .member-header { justify-content: center; }
  .member-library .dashboard-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-library .dashboard-nav a { min-height: 2.75rem; border-width: 2px; }
}

.library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 1fr) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
}
.hero-craft-copy { padding: .75rem .25rem; text-align: center; color: #49116a; }
.member-library .hero-craft-copy h2 {
  font-size: clamp(1.55rem, 5vw, 4.65rem);
  font-weight: 950;
  letter-spacing: -.06em;
  line-height: .99;
}
.hero-craft-copy h2 span { display: block; color: #bf125c; }
.hero-craft-copy p { margin: .65rem 0; line-height: 1.25; }
.hero-craft-copy a {
  display: inline-block;
  padding: .4rem .9rem;
  border-radius: 99px;
  background: #ffda3d;
  color: #45104c;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 3px 0 #d68c0a;
}
@media (min-width: 960px) {
  .member-library #guide-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .library-hero { grid-template-columns: minmax(0, 1fr) minmax(8rem, 1.35fr) minmax(0, 1fr); }
  .hero-craft-copy p { font-size: .8rem; }
  .hero-craft-copy a { font-size: .8rem; }
}
