/* A focused, cover-led personal library. Loaded after the legacy bookshelf CSS. */
.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) {
  padding-bottom: clamp(56px, 8vw, 96px);
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__current {
  margin: 0 0 28px !important;
  padding: 24px !important;
  border-color: rgba(255,255,255,.13) !important;
  background: #181417 !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__currentHead {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__currentHead .bbb-account-shelf__toolbarKicker {
  display: none !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__currentHead h2,
.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__sectionHead h2 {
  margin: 0 !important;
  font-size: clamp(26px, 3vw, 36px) !important;
  line-height: 1.05 !important;
  font-family: var(--font-heading-family, Georgia, serif) !important;
  font-weight: 500 !important;
  letter-spacing: -.02em !important;
  text-transform: lowercase !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__currentBody {
  min-height: 0 !important;
  padding: 0 !important;
  color: #c9bec4 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__sectionHead {
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__sectionHead .bbb-account-shelf__toolbarKicker,
.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__notesCta {
  display: none !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__shelfControls {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 16px !important;
  align-items: center !important;
  margin: 0 0 26px !important;
  padding: 14px !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 16px !important;
  background: #181417 !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__tabs {
  display: flex !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__tabs button {
  min-height: 40px !important;
  padding: 8px 14px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #c9bec4 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__tabs button.is-active {
  background: var(--reader-flow-accent, #ff8ac7) !important;
  color: #171014 !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__shelfTools {
  display: grid !important;
  grid-template-columns: minmax(180px, 260px) 150px !important;
  gap: 8px !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__shelfTools label {
  min-width: 0 !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__shelfTools input,
.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__shelfTools select {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 9px 12px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 10px !important;
  background: #100d0f !important;
  color: #fff9fc !important;
  font-size: 14px !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: clamp(18px, 2.5vw, 30px) !important;
  align-items: start !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__book {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff9fc !important;
  text-align: left !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .sss-lib__coverWrap {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 12px !important;
  background: #1b171a !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .sss-lib__under {
  padding: 11px 2px 0 !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__bookTitle {
  display: -webkit-box !important;
  min-height: 2.5em !important;
  overflow: hidden !important;
  color: #fff9fc !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__bookAuthor {
  margin-top: 4px !important;
  color: #a99da4 !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .sss-lib__heart,
.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__noteToggle {
  z-index: 3 !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 999px !important;
  background: rgba(11,8,10,.88) !important;
  color: #fff !important;
  backdrop-filter: blur(8px) !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .sss-lib__floatSpice {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1px !important;
  top: auto !important;
  right: 8px !important;
  bottom: 8px !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: calc(100% - 16px) !important;
  padding: 5px 7px !important;
  border-radius: 999px !important;
  background: rgba(11,8,10,.86) !important;
}

.bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .sss-lib__floatSpice img {
  width: 13px !important;
  height: 13px !important;
}

@media (max-width: 749px) {
  .bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-reader-page-header {
    padding-bottom: 28px !important;
  }

  .bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__current {
    margin-bottom: 22px !important;
    padding: 18px !important;
    border-radius: 14px !important;
  }

  .bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__currentHead {
    margin-bottom: 10px !important;
  }

  .bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__currentHead a {
    font-size: 12px !important;
  }

  .bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__currentHead h2,
  .bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__sectionHead h2 {
    font-size: 24px !important;
  }

  .bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__shelfControls {
    display: block !important;
    margin-bottom: 20px !important;
    padding: 10px !important;
  }

  .bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__tabs {
    width: 100% !important;
    margin-bottom: 10px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__tabs::-webkit-scrollbar { display: none !important; }

  .bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__tabs button {
    flex: 0 0 auto !important;
    min-height: 38px !important;
    padding-inline: 13px !important;
    font-size: 12px !important;
    text-transform: lowercase !important;
  }

  .bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__sectionHead {
    margin-bottom: 14px !important;
  }

  .bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__shelfTools {
    grid-template-columns: minmax(0, 1fr) minmax(144px, 42%) !important;
  }

  .bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__shelfTools select {
    padding-right: 32px !important;
  }

  .bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 14px !important;
  }

  .bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .sss-lib__heartLabel { display: none !important; }

  .bbb-account-shelf[data-account-shelf]:not(.bbb-account-home) .bbb-account-shelf__bookTitle {
    font-size: 15px !important;
  }
}
