.member-library {
  --library-ink: #251833;
  --library-pink: #b91c46;
  --library-line: #f0cd65;
  --library-display: ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  color: var(--library-ink);
  background:
    radial-gradient(circle, #ecc777 1px, transparent 1px) 0 0 / 30px 30px,
    radial-gradient(circle, #91c9dd 1px, transparent 1px) 15px 15px / 30px 30px,
    #fff9f0;
}

.member-library .wrap { width: min(1220px, calc(100% - 40px)); }
.member-library .parent-grid { align-items: center; }
.member-library h1,
.member-library h2,
.member-library h3 { font-family: var(--library-display); }
.member-library #account-actions {
  background: #fffdf4;
  border: 1px solid var(--library-line);
  border-radius: 14px;
  padding: .5rem .8rem;
}

.member-library .dashboard-nav {
  gap: .45rem;
  padding: .55rem;
  border: 1px solid var(--library-line);
  border-radius: 18px;
  background: #fffdf4;
}

.member-library .dashboard-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  color: var(--library-ink);
  background: transparent;
}

.member-library .dashboard-nav a:hover { background: #fff0c3; }
.member-library .dashboard-nav a[aria-current="page"] {
  color: white;
  background: var(--library-pink);
  box-shadow: 0 3px 0 #821234;
}

.library-intro {
  padding: clamp(1rem, 5vw, 3.4rem) 0 clamp(1rem, 2vw, 1.75rem);
  text-align: center;
}

.member-library .library-intro h2 {
  font-size: clamp(2rem, 5vw, 3.85rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -.055em;
}

.library-intro h2 span { color: #842eb0; }
.library-intro .section-copy { margin: .75rem auto 0; max-width: 38rem; }

.member-library .catalog-filters {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  padding: clamp(.75rem, 2.5vw, 1.35rem);
  border: 1px solid var(--library-line);
  border-radius: 20px;
  background: white;
}

.member-library .catalog-filters :is(input, select) {
  min-height: 46px;
  border-color: #c58b28;
  border-radius: 12px;
  background: #fffbef;
}

.library-results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin: 1.5rem 0 .9rem;
}

.supply-picker {
  min-width: 0;
  margin: 1rem 0 0;
  padding: .65rem clamp(.75rem, 2.5vw, 1.35rem) 1rem;
  border: 1px solid var(--library-line);
  border-radius: 20px;
  background: #fffdf4;
}

.supply-picker legend {
  padding-inline: .35rem;
  font: 800 1.25rem var(--library-display);
}

.supply-picker p { margin: 0 0 .65rem; }
.supply-options { display: flex; flex-wrap: wrap; gap: .4rem; }
.supply-options label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .35rem .75rem;
  border: 1px solid var(--library-line);
  border-radius: 99px;
  background: white;
  cursor: pointer;
  font-weight: 650;
}

.supply-options label:has(input:checked) { background: #ffe9a9; border-color: #af7419; }
.supply-options input { accent-color: var(--library-pink); }
.supply-picker .link-button { min-height: 44px; }
.supply-mode { display: inline-block; margin: .75rem .35rem 0 0; font-weight: 700; }
#supply-mode { min-height: 44px; max-width: 100%; padding: .3rem; border: 1px solid #c58b28; border-radius: .5rem; font: inherit; }
.member-library #illustrated-guides .catalog-filters { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
.starter-crafts h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
.member-library .starter-crafts .video-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.material-checklist label { display: inline-flex; align-items: baseline; gap: .5rem; min-height: 36px; }
#project-content > label { display: block; margin-block: 1rem; font-weight: 700; }
.worksheet-card > img { width: 100%; height: 240px; object-fit: contain; background: #fff; border-radius: .7rem; }
.worksheet-bundles { padding: 1rem; margin-block: 1.5rem; border-radius: 1rem; background: #fff; border: 1px solid #e8c9e6; }
.worksheet-bundles > summary { cursor: pointer; font-weight: 700; }
.worksheet-packs { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 1rem; margin-top: 1rem; }
.worksheet-pack { padding: 1rem; background: #fff5fa; border-radius: 1rem; }
.worksheet-downloads { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1rem; }
.worksheet-sheet { max-width: 700px; width: 100%; }
@media print {
  .worksheet-downloads, #project-view:has(.worksheet-sheet) h2, #project-content:has(.worksheet-sheet) > p { display: none !important; }
  .worksheet-sheet { width: auto; max-width: 100%; max-height: 240mm; margin: 0 auto; }
}
#project-content > label select { display: block; width: 100%; min-height: 44px; margin-top: .35rem; padding: .5rem; border: 1px solid #b581cc; border-radius: .5rem; background: white; font: inherit; }
.member-library .video-card > .supply-match {
  margin: 0 0 .45rem;
  font-weight: 500;
}

.library-results p {
  margin: 0;
  padding: .2rem .75rem;
  border-radius: 99px;
  background: #f5e7ff;
  color: #602584;
  font-weight: 700;
  font-size: .85rem;
}

.member-library .video-card {
  --card-tint: #eee2ff;
  gap: .3rem;
  padding: .75rem;
  border: 1px solid var(--library-line);
  border-radius: 20px;
  box-shadow: 0 3px 0 #f3e1b6;
}

.member-library .video-card:nth-child(4n + 2) { --card-tint: #c8f4e5; }
.member-library .video-card:nth-child(4n + 3) { --card-tint: #ffe0ee; }
.member-library .video-card:nth-child(4n + 4) { --card-tint: #ffe5a9; }
.member-library .video-card > img {
  object-fit: contain;
  padding: .55rem;
  background: var(--card-tint);
}

.member-library .video-thumbnail { background-color: var(--card-tint); }
.member-library .video-card > p {
  color: #624671;
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.4;
}

.member-library .video-card h3 { line-height: 1.2; }
.member-library .card-open {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 44px;
  padding: .5rem .65rem;
  border-radius: 11px;
  color: white;
  background: var(--library-pink);
  text-align: center;
}

.member-library .card-open:hover { background: #951637; }
.member-library .card-save {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #f2d98f;
  border-radius: 50%;
  color: #68278a;
  background: #fffdf8;
  font-size: 1.35rem;
  line-height: 1;
}

.member-library .card-save[aria-pressed="true"] {
  border-radius: 50%;
  background: #ffe7a3;
  color: #7a4a00;
}

@media (max-width: 550px) {
  .member-library .wrap { width: calc(100% - 24px); }
  .member-library .dashboard-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-library .dashboard-nav a { padding: .35rem; text-align: center; font-size: .9rem; }
  .member-library .catalog-filters { grid-template-columns: 1fr; gap: .7rem; }
  .member-library #illustrated-guides .catalog-filters { grid-template-columns: 1fr; }
  .member-library .video-card { padding: .55rem; }
  .member-library .card-save { top: .7rem; right: .7rem; }
}
