@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

@font-face {
  src: url(/fonts/dingbats.woff2);
  font-family: 'puf';
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

html,
body,
*,
a,
button,
input,
select,
textarea {
  cursor: url('/media/cursor/normal-select.gif') 0 0, progress !important;
}

:root {
  --background: #f0f0f0;
  --content-background: #fff;
  --text: #616161;
  --title: #616161;
  --borders: #e0e0e0;
  --accent: #9fa8da;
  --shelf-face: #f6dae8;
  --shelf-top: #fbebf3;
  --pink-light: #feeef6;
  --pink-mid: #ffd8e9;
  --pink-hover: #ffb3d9;
  --pink-text: #ff94bf;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  font-size: 15px;
}

.hide-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hide-scroll::-webkit-scrollbar {
  display: none;
}

::selection {
  background-color: var(--pink-light);
  color: var(--text);
}

a {
  color: var(--text);
  text-decoration: none;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

svg.icon {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
}

#s-m-t-tooltip {
  max-width: 150px;
  background-color: white;
  border: 7px solid;
  border-image: url(/media/borders/pink.png) 5 fill round;
  border-image-outset: 2px;
  outline: 1px dashed #e1b3c7;
  outline-offset: -6px;
  border-radius: 4px;
  font-family: tahoma;
  font-size: 7px;
  letter-spacing: 2px;
  color: #848484;
  position: fixed;
  z-index: 999999999 !important;
  pointer-events: none;
  padding: 4px;
  text-align: center;
  margin: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

#context_menu {
  background: #FEF8FC;
  border: 1px dotted #AAAAAA;
  letter-spacing: 1px;
  width: 70px;
  font-family: Verdana;
  font-size: 8px;
  position: absolute;
  display: none;
  z-index: 999999999;
}

#context_menu ul li {
  padding: 4px;
  z-index: 100000;
}

#context_menu ul li:hover {
  background: #FEF8FC;
  color: #848484;
  z-index: 100000;
}

.library-shell {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  background-image: url(https://kkul.store/media/backgrounds/pinkcheck.png);
  background-size: 40px;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
}

#lib-sidebar {
  width: 250px;
  flex-shrink: 0;
  height: 100vh;
  background: white;
  box-shadow: 0 10px 30px rgba(234, 155, 194, 0.18);
  border: 35px solid;
  border-image: url(https://cdn.jsdelivr.net/gh/dearcoeur/coeur-assets@main/media/borders/renda-bg.png) 18 repeat;
  border-image-outset: 5px;
  border-top: 0px;
  border-bottom: 0px;
  border-left: 0px;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  z-index: 999;
}

.sidebar-scroll-area {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 20px;
}

.lib-logo {
  display: flex;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  color: var(--title);
  padding-bottom: 10px;
  border-bottom: 5px solid #ffd8e9;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lib-logo .icon {
  color: #ed9ebf;
  width: 16px;
  height: 16px;
}

.lib-logo span.sub {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--title);
  margin-top: 2px;
}

.lib-nav-group h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--title);
  font-weight: 800;
  margin: 20px 0 12px 4px;
}

.lib-nav-group.collapsible .collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding-right: 4px;
}

.collapse-caret {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.18s ease;
  transform: rotate(90deg);
}

.lib-nav-group.collapsible.collapsed .collapse-caret {
  transform: rotate(0deg);
}

.lib-nav-group.collapsible.collapsed .folder-list {
  display: none;
}

.lib-nav-group.collapsible.collapsed .folder-list.always-visible {
  display: flex;
}

.folder-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.folder-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 14px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #7a7a7a;
  cursor: pointer;
  transition: .15s ease;
  text-align: left;
}

.folder-btn .fname {
  display: flex;
  align-items: center;
  gap: 8px;
}

.folder-btn .fname .icon {
  width: 13px;
  height: 13px;
  color: var(--title);
  flex-shrink: 0;
  opacity: 0.6;
}

.folder-btn:hover {
  background: var(--pink-light);
  color: var(--title);
  font-style: italic;
}

.folder-btn.active {
  background: #ffe2ef;
  color: var(--title);
}

.folder-btn.active .fname .icon {
  color: var(--title);
}

.folder-count {
  font-size: 10px;
  background: #fff;
  border-radius: 20px;
  padding: 2px 7px;
  color: #b3b3b3;
  font-weight: 800;
}

.folder-btn.active .folder-count {
  background: #fff;
  color: var(--title);
}

.lib-mini-stats {
  margin-top: auto;
  padding-top: 14px;
  border-top: 5px solid #ffd8e9;
  font-size: 11px;
  color: #a8a8a8;
  line-height: 1.6;
  align-items: center;
  text-align: center;
}

.lib-mini-stats b {
  color: var(--text);
}

#lib-main {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 30px 54px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow-y: auto;
}

.lib-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.lib-search-wrap {
  width: 50%;
  min-width: 280px;
  max-width: 450px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.lib-search-wrap input {
  width: 100%;
  box-shadow: 0 10px 30px rgba(234, 155, 194, 0.18);
  border: 1px solid #e0e0e0;
  background: white;
  border-radius: 20px;
  padding: 11px 16px 11px 38px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: .15s ease;
  position: relative;
  z-index: 2;
}

.lib-search-wrap input::placeholder {
  color: #565656;
  font-style: italic;
  opacity: 0.7;
}

.lib-search-wrap input:focus {
  background: #fff;
  border-color: var(--pink-hover);
}

.lib-search-wrap .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #ed9ebf;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 3;
}

#shelves-container {
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(234, 155, 194, 0.18);
  border: 1px solid #e0e0e0;
  position: relative;
  margin-top: 20px;
}

#shelves-container::before {
  content: "";
  position: absolute;
  top: -255px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background-image: url(/media/graphics/pngs/c0m43r.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 10;
}

.genre-toggle-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: -8px;
}

.genre-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}

.genre-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.genre-toggle-track {
  width: 34px;
  height: 19px;
  border-radius: 20px;
  background: var(--pink-mid);
  position: relative;
  transition: background .2s ease;
  flex-shrink: 0;
}

.genre-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}

.genre-toggle input:checked+.genre-toggle-track {
  background: var(--pink-hover);
}

.genre-toggle input:checked+.genre-toggle-track .genre-toggle-thumb {
  transform: translateX(15px);
}

.genre-toggle-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--title);
  text-transform: lowercase;
}

.shelf-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shelf-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shelf-section-header h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  color: var(--title);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  text-transform: uppercase;
  font-weight: 800;
}

.shelf-section-header h3 .icon {
  color: #ed9ebf;
  width: 14px;
  height: 14px;
}

.shelf-count-tag {
  font-size: 10px;
  color: #565656;
  font-weight: 800;
  font-family: 'nunito';
  text-transform: uppercase;
}

.shelf-row-wrap {
  position: relative;
}

.shelf-cards-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 20px 22px 20px;
  position: relative;
  z-index: 20;
}

.shelf-card,
.book-item {
  flex-shrink: 0;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.shelf-card-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .14), 0 1px 0 rgba(0, 0, 0, .05);
  transition: box-shadow .35s ease;
}

.shelf-card-cover .book-front {
  width: 100%;
  height: 100%;
  display: block;
}

.shelf-card:hover,
.book-item:hover {
  transform: translateY(-10px) rotate(-2deg);
}

.shelf-card:hover .shelf-card-cover {
  box-shadow: 0 16px 26px rgba(0, 0, 0, .18);
}

.shelf-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.shelf-card-cover::before {
  content: "";
  position: absolute;
  top: 0.5px;
  bottom: 0.5px;
  left: 0;
  right: 0;
  border-radius: inherit;
  background: linear-gradient(to right,
      rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .05) 0.75%,
      rgba(255, 255, 255, .5) 1.0%, rgba(255, 255, 255, .6) 1.3%,
      rgba(255, 255, 255, .5) 1.4%, rgba(255, 255, 255, .3) 1.5%,
      rgba(255, 255, 255, .3) 2.4%, rgba(0, 0, 0, .05) 2.7%,
      rgba(0, 0, 0, .05) 3.5%, rgba(255, 255, 255, .3) 4%,
      rgba(255, 255, 255, .3) 4.5%, transparent 5.4%,
      transparent 99%, rgba(0, 0, 0, .1) 100%);
  z-index: 2;
  pointer-events: none;
}

.shelf-card-cover .no-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-light);
  color: #d497b5;
  font-size: 10px;
  text-align: center;
  padding: 6px;
  font-weight: 800;
  line-height: 1.3;
}

.shelf-card-cover .ribbon-flag {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 15px;
  height: 15px;
  color: var(--pink-hover);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2));
}

.shelf-card-cover .progress-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, .12);
  z-index: 3;
}

.shelf-card-cover .progress-fill span {
  display: block;
  height: 100%;
  background: var(--pink-hover);
}

.event-bubble {
  font-size: 10px !important;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #616161;
  padding: 7px 14px;
  border-radius: 30px;
  white-space: nowrap;
  z-index: 9999999;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  text-align: center;
  max-width: 260px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.event-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.shelf-card:hover .event-bubble,
.book-item:hover .event-bubble {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
  z-index: 9999999;
}

.event-bubble #star,
.event-bubble .bubble-stars {
  font-family: 'puf', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--pink-hover);
  line-height: 1;
  white-space: nowrap;
}

.event-bubble .bubble-diversity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'nunito';
  font-size: 9px !important;
  padding: 0 10px;
  height: 18px;
  border-radius: 99px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  white-space: nowrap;
  line-height: 1;
  background: #fff4f9;
  color: #e485ad;
  border: 1px solid #ffddeb;
}

.event-bubble .bubble-title {
  font-weight: 800;
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  max-width: 180px;
}

.glossy-shelf {
  height: 20px;
  width: 100%;
  background: var(--shelf-face);
  position: relative;
  z-index: 1;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
  margin-top: -18px;
  margin-bottom: 12px;
}

.glossy-shelf::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: var(--shelf-top);
  transform: perspective(100px) rotateX(25deg);
  transform-origin: bottom;
  box-shadow: inset 0 -2px 5px rgba(0, 0, 0, .05);
}

.glossy-shelf::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, 0) 20%, rgba(0, 0, 0, .05) 100%);
  border-radius: inherit;
}

#folder-grid-view {
  display: none;
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(234, 155, 194, 0.18);
  border: 1px solid #e0e0e0;
  flex-direction: column;
  gap: 26px;
  margin-top: 40px;
  position: relative;
}

#folder-grid-view::before {
  content: "";
  position: absolute;
  top: -255px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background-image: url(/media/graphics/pngs/c0m43r.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 10;
}

#folder-grid-view.active {
  display: flex;
}

#folder-grid-view .series-card {
  perspective: 900px;
}

#folder-grid-view .series-card:hover {
  transform: none;
}

#folder-grid-view .series-card .shelf-card-cover {
  position: relative;
  overflow: visible;
  transform-style: preserve-3d;
  transition: transform .5s ease;
  box-shadow: none;
}

#folder-grid-view .series-card:hover .shelf-card-cover {
  transform: rotate3d(0, 1, 0, 35deg);
}

#folder-grid-view .series-card .book-front {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 0% 50%;
  transform: translate3d(0, 0, 14px);
  backface-visibility: hidden;
  border-radius: inherit;
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .14), 0 1px 0 rgba(0, 0, 0, .05);
}

#folder-grid-view .series-card .book-front::before {
  content: "";
  position: absolute;
  top: 0.5px;
  bottom: 0.5px;
  left: 0;
  right: 0;
  border-radius: inherit;
  background: linear-gradient(to right, rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .05) 0.75%, rgba(255, 255, 255, .5) 1.0%, rgba(255, 255, 255, .6) 1.3%, rgba(255, 255, 255, .5) 1.4%, rgba(255, 255, 255, .3) 1.5%, rgba(255, 255, 255, .3) 2.4%, rgba(0, 0, 0, .05) 2.7%, rgba(0, 0, 0, .05) 3.5%, rgba(255, 255, 255, .3) 4%, rgba(255, 255, 255, .3) 4.5%, transparent 5.4%, transparent 99%, rgba(0, 0, 0, .1) 100%);
  z-index: 5;
  pointer-events: none;
}

.book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 100%;
  background: var(--book-color, #3a3a3a);
  transform-origin: 0 0;
  transform: rotate3d(0, 1, 0, -90deg);
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.book-spine span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#draw-view .shelf-section-header {
  width: 100%;
}

#draw-view {
  display: none;
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(234, 155, 194, 0.18);
  border: 1px solid #e0e0e0;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  transform: translateX(-100px);
  position: relative;
  margin-top: 40px;
}

#draw-view::before {
  content: "";
  position: absolute;
  top: -255px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background-image: url(/media/graphics/pngs/c0m43r.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 10;
}


#draw-view.active {
  display: flex;
}

#draw-view::after {
  content: "";
  position: absolute;
  top: 60%;
  left: 88%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  background-image: url(https://kkul.store/media/graphics/pngs/pinkgirly.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 1100px) {
  #draw-view::after {
    display: none;
  }
}

#lib-main:has(#draw-view.active) .lib-topbar {
  display: none;
}

.roll-result-plate-wrap {
  display: none;
  position: relative;
  width: 90%;
  max-width: 650px;
  margin: -45px auto 0;
  transform: translateX(-100px);
}

#draw-view.active+.roll-result-plate-wrap {
  display: block;
}

.roll-result-plate {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.roll-result-plate-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 15%;
  width: 70%;
  height: 22%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.16) 45%, rgba(0, 0, 0, 0) 75%);
  filter: blur(4px);
  z-index: 0;
}

.draw-filters-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.draw-filters-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--title);
  font-weight: 800;
}

.draw-filters-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.draw-filters-row .draw-filters-group {
  flex: 1;
  min-width: 150px;
}

.draw-dropdown-wrap {
  position: relative;
}

.draw-dd-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  font-family: 'nunito';
  font-size: 13px;
  font-weight: 700;
  color: var(--title, #4a3b3b);
  background: var(--pink-light);
  border: 1px solid #f2c9dc;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: .15s ease;
}

.draw-dd-toggle:hover {
  border-color: var(--pink-hover, #ff94bf);
}

.draw-dd-toggle b {
  color: var(--pink-hover, #ec4899);
  font-weight: 800;
}

.draw-dd-chevron {
  flex-shrink: 0;
  color: var(--pink-hover, #ec4899);
  transition: transform .15s ease;
}

.pfp-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 180px;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #f0e0e8;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 6px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pfp-dropdown-menu.hidden {
  display: none !important;
}

.pfp-dropdown-item.hidden {
  display: none !important;
}

.pfp-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'nunito', 'Outfit', 'Inter', system-ui, sans-serif;
  color: #333333;
  background: transparent;
  border: none;
  border-radius: 8px;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pfp-dropdown-item svg {
  flex-shrink: 0;
}

.pfp-dropdown-item:hover {
  background-color: #feeef6;
  color: #ec4899;
}

.pfp-dropdown-item-danger {
  color: #e11d48;
}

.pfp-dropdown-item-danger:hover {
  background-color: #fef2f2;
  color: #e11d48;
}

.pfp-dropdown-item-active {
  background-color: #feeef6;
  color: #ec4899;
}

.pfp-dropdown-menu-full {
  left: 0;
  right: auto;
  width: 100%;
  min-width: 100%;
}

.pfp-dropdown-menu-scroll {
  max-height: 235px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pfp-dropdown-menu-scroll::-webkit-scrollbar {
  display: none;
}

.draw-dd-empty {
  font-size: 11px;
  color: #999;
  padding: 8px 10px;
}

.draw-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.draw-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #e6c3d4;
  background: #fff;
  color: var(--title, #4a3b3b);
  transition: .15s ease;
  font-family: 'nunito';
}

.draw-chip:hover {
  background: var(--pink-light);
}

.draw-chip.selected {
  border-color: var(--pink-hover, #ff94bf);
  background: #ffe2ef;
  color: var(--title);
}

.draw-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.draw-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 16px;
  border: 3px solid #ffffff;
  outline: 1px solid #ffd8e9;
  font-size: 13px;
  font-weight: 700;
  color: #616161;
  background: #ffe5f0;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.85), inset -1px -1px 0 rgba(0, 0, 0, 0.18), inset 0 -2px 3px rgba(0, 0, 0, 0.12), inset 0 2px 2px rgba(255, 255, 255, 0.4);
  transition: background .15s ease, box-shadow .15s ease;
  text-decoration: none;
  font-family: 'nunito';
}

.draw-btn:hover {
  background-color: #ffd3e6;
}

.draw-pool-count {
  font-size: 11px;
  color: #999;
  font-weight: 700;
  font-family: 'nunito';
}

.draw-result-wrap {
  display: flex;
  padding: 10px 0 4px 0;
  font-family: 'nunito';
  align-items: center;
  justify-content: flex-start;
}

.draw-result-empty {
  font-size: 12px;
  color: #999;
  text-align: center;
  padding: 20px 0;
}

.draw-result-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 480px;
  animation: drawResultIn .45s cubic-bezier(.22, 1, .36, 1);
}

.draw-result-empty {
  animation: drawResultIn .45s cubic-bezier(.22, 1, .36, 1);
}

@keyframes drawResultIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.draw-result-cover {
  width: 130px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .14), 0 1px 0 rgba(0, 0, 0, .05);
  position: relative;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}

.draw-result-card:hover .draw-result-cover {
  transform: translateY(-10px) rotate(-2deg);
  box-shadow: 0 16px 26px rgba(0, 0, 0, .18);
}

.draw-result-cover::before {
  content: "";
  position: absolute;
  top: 0.5px;
  bottom: 0.5px;
  left: 0;
  right: 0;
  border-radius: inherit;
  background: linear-gradient(to right, rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .05) 0.75%, rgba(255, 255, 255, .5) 1.0%, rgba(255, 255, 255, .6) 1.3%, rgba(255, 255, 255, .5) 1.4%, rgba(255, 255, 255, .3) 1.5%, rgba(255, 255, 255, .3) 2.4%, rgba(0, 0, 0, .05) 2.7%, rgba(0, 0, 0, .05) 3.5%, rgba(255, 255, 255, .3) 4%, rgba(255, 255, 255, .3) 4.5%, transparent 5.4%, transparent 99%, rgba(0, 0, 0, .1) 100%);
  z-index: 5;
  pointer-events: none;
}

.draw-result-cover img {
  width: 100%;
  display: block;
}

.draw-result-cover .no-cover {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #d97ba3;
  background: #ffe4f0;
  padding: 8px;
}

.draw-result-info {
  text-align: left;
}

.draw-result-info h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  color: var(--title);
}

.draw-result-info .draw-result-author {
  font-size: 11px;
  color: #999;
  font-weight: 700;
  margin-bottom: 8px;
}

.draw-result-info .draw-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.draw-result-info .draw-result-tags span {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--pink-light);
  color: var(--title);
  padding: 3px 8px;
  border-radius: 20px;
}


#stats-view {
  display: none;
  flex-direction: column;
  gap: 26px;
}

#stats-view.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 768px) {
  #stats-view.active {
    grid-template-columns: 1fr;
  }
}

.stats-card {
  background: white;
  padding: 25px 28px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(234, 155, 194, 0.18);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stats-card > * {
  width: 100%;
}

.stats-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.stats-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  color: var(--title);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.stats-card h3 .icon {
  color: #ed9ebf;
  width: 14px;
  height: 14px;
}

.stats-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.diversity-type-reads-grid,
.stats-two-col-grid {
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr;
  gap: 22px;
  align-items: start;
}

.diversity-type-reads-grid .stats-card-head,
.stats-two-col-grid .stats-card-head {
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .diversity-type-reads-grid,
  .stats-two-col-grid {
    grid-template-columns: 1fr;
  }
}

.donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.donut-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donut-ring-inner {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.donut-ring-inner .icon {
  width: 20px;
  height: 20px;
  color: var(--pink-hover);
  fill: var(--pink-hover);
}

.donut-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.donut-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
  text-transform: lowercase;
}

.donut-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.donut-legend-row b {
  color: var(--title);
  margin-left: auto;
}

.bar-chart-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bar-chart-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 14px;
}

.bar-chart-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 6px;
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-chart-label b {
  color: var(--title);
  flex-shrink: 0;
}

.bar-track {
  height: 10px;
  border-radius: 20px;
  background: var(--pink-light);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 20px;
  background: var(--pink-hover);
  transition: width .4s ease;
}

.stats-year-select {
  border: 1px solid #e0e0e0;
  background: white;
  border-radius: 20px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  color: var(--title);
  outline: none;
}

.err-detail {
  font-size: 10px;
}

.lib-loading,
.lib-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #ed9abc;
  font-size: 13px;
  font-weight: 700;
  gap: 10px;
  text-transform: lowercase;
  width: 100%;
}

.lib-loading .spin-heart {
  width: 22px;
  height: 22px;
  color: #ed9abc;
  animation: pulseHeart 1.2s infinite;
}

@keyframes pulseHeart {

  0%,
  100% {
    transform: scale(.9);
    opacity: .7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.lib-empty {
  color: var(--title);
  opacity: 0.7;
}

.lib-empty-compact {
  padding: 20px;
}

.donut-ring-empty {
  background: var(--pink-light);
}

.lib-empty .icon {
  width: 22px;
  height: 22px;
  color: var(--title);
  opacity: 0.7;
}

#book-page-view {
  display: none;
  flex: 1;
  min-width: 0;
  height: 100%;
  background-image: url(https://kkul.store/media/backgrounds/pinkcheck.png);
  background-size: 40px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 1;
  padding-left: 18px;
  padding-right: 18px;
  padding-top: 15px;
}

#book-page-view::-webkit-scrollbar {
  display: none;
}

#book-page-view.active {
  display: block;
}

.book-page-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  transition: transform .3s ease;
}

.book-page-topbar.hide-topbar {
  transform: translateY(-140%);
}

.book-page-back {
  display: flex;
  align-items: center;
  gap: 7px;
  background: white;
  box-shadow: 0 10px 30px rgba(234, 155, 194, 0.18);
  border: 1px solid #e0e0e0;
  color: var(--title);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 20px;
  transition: .15s ease;
}

.book-page-back:hover {
  font-style: italic;
}

.book-page-back .icon {
  width: 12px;
  height: 12px;
}

.gb-scrolltop {
  display: none;
  position: absolute;
  right: 25px;
  bottom: 25px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #fcc9de;
  background: #fff;
  color: #ea85af;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(141, 124, 118, 0.25), inset 2px 2px 0px rgba(255, 255, 255, 0.8), inset -2px -2px 2px rgba(215, 127, 171, 0.15);
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.15s ease;
  z-index: 30;
  cursor: url(/media/cursor/normal-select.gif), pointer !important;
}

.gb-scrolltop.visible {
  display: flex;
}

.gb-scrolltop:hover {
  background: #fff5fa;
  transform: scale(1.08);
}

.gb-scrolltop:active {
  transform: scale(0.95);
}

.book-page-body {
  margin: 0 auto;
  padding: 6px 40px 50px;
}

.book-page-content {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  background: white;
  padding: 25px 28px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(234, 155, 194, 0.18);
  border: 1px solid #e0e0e0;
  width: 100%;
  position: relative;
  margin-top: 30px;
}

.book-page-content::before {
  content: "";
  position: absolute;
  top: -90px;
  right: 5%;
  transform: translateX(-50%) rotate(8deg);
  width: 180px;
  height: 180px;
  background-image: url(/media/graphics/pngs/ribbons.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 10;
}

.book-page-cover-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  width: 150px;
}

.book-page-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  position: relative;
  border-radius: 0 6px 6px 0;
}

.book-page-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.book-page-cover::before {
  content: "";
  position: absolute;
  top: 0.5px;
  bottom: 0.5px;
  left: 0;
  right: 0;
  background: linear-gradient(to right,
      rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .05) 0.75%,
      rgba(255, 255, 255, .5) 1.0%, rgba(255, 255, 255, .6) 1.3%,
      rgba(255, 255, 255, .5) 1.4%, rgba(255, 255, 255, .3) 1.5%,
      rgba(255, 255, 255, .3) 2.4%, rgba(0, 0, 0, .05) 2.7%,
      rgba(0, 0, 0, .05) 3.5%, rgba(255, 255, 255, .3) 4%,
      rgba(255, 255, 255, .3) 4.5%, transparent 5.4%,
      transparent 99%, rgba(0, 0, 0, .1) 100%);
  pointer-events: none;
}

.book-page-glossy-shelf {
  height: 16px;
  width: 100%;
  background: var(--shelf-face);
  position: relative;
  z-index: 1;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
}

.book-page-glossy-shelf::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: var(--shelf-top);
  transform: perspective(100px) rotateX(25deg);
  transform-origin: bottom;
  box-shadow: inset 0 -2px 5px rgba(0, 0, 0, .05);
}

.book-page-stars {
  font-family: 'puf', sans-serif;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--title);
  margin-top: 5px;
  margin-bottom: 5px;
}

.book-page-card {
  flex: 1;
  min-width: 0;
}

.book-page-series {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  font-weight: 800;
  margin-bottom: 5px;
}

.wishlist-badge {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-left: 10px;
  margin-bottom: 4px;
  vertical-align: middle;
  color: var(--pink-hover, #ff94bf);
}

.title-row {
  display: flex;
  align-items: center;
}

.book-page-info h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  color: var(--title);
  margin: 0 0 2px;
  line-height: 1;
  text-transform: uppercase;
}

.book-page-info .auth {
  font-size: 14px;
  color: #999;
  font-weight: 700;
  margin-bottom: 0;
  text-transform: lowercase;
}

.book-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--text);
  width: 100%;
  font-weight: 800;
  align-items: center;
}

.book-page-meta div {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  padding: 2px 10px;
  border: 1px solid #e0e0e0;
  font-size: 10px;
}

.book-page-meta div span {
  color: var(--text);
  font-weight: 600;
  font-size: 10px;
  margin-top: 1px;
}

.again-option {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.again-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--pink-hover);
  border-radius: 4px;
  cursor: default;
  pointer-events: none;
  position: relative;
  margin: 0;
  background: #fff;
}

.again-option input[type="checkbox"]:checked {
  background: var(--pink-hover);
}

.again-option input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 3px;
  height: 7px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.again-checkbox-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.again-options-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.book-page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0;
}

.book-page-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  padding: 0 10px;
  height: 20px;
  border-radius: 99px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  white-space: nowrap;
  line-height: 1;
  background: #fff4f9;
  color: #e485ad;
  border: 1px solid #ffddeb;
}

.book-page-ratings-box {
  background: white;
  padding: 12px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.book-page-ratings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.rate-pill {
  border-radius: 12px;
  padding: 4px 2px;
  font-size: 11px;
  font-weight: 800;
  color: var(--title);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rate-hearts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin-top: 4px;
}

.rate-hearts svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.rate-again-row {
  grid-column: 1 / -1;
  justify-content: center;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px dotted var(--pink-mid);
}

.rate-again-row span {
  font-size: 11px;
  font-weight: 800;
  color: var(--title);
  padding: 4px 2px;
}

.book-page-section {
  margin-top: 5px;
  padding-top: 15px;
}

.book-page-section h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  color: var(--title);
  margin: 0 0 10px;
  border-bottom: 1px dashed #dddddd;
  padding-bottom: 5px;
}

.book-page-section p {
  font-size: 13.5px;
  line-height: 1.45;
  color: #7a7a7a;
  margin: 0;
  white-space: pre-line;
}

.book-page-section.summary-section p {
  text-transform: lowercase;
}

.quote-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-card {
  background: #fff9fc;
  padding: 25px 45px;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  border-left: 3px solid #ffbcd9;
  font-style: italic;
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  position: relative;
  white-space: pre-wrap;
  text-transform: lowercase;
}

.quote-mark {
  position: absolute;
  font-family: sans-serif;
  font-size: 30px;
  color: #777;
  opacity: 0.5;
  font-weight: 900;
  line-height: 1;
}

.quote-mark-open {
  top: 12px;
  left: 12px;
}

.quote-mark-close {
  bottom: 0px;
  right: 20px;
}

.quote-empty {
  background: #fff9fc;
  padding: 18px 24px;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  border-left: 3px solid #ffbcd9;
  font-style: italic;
  font-size: 13px;
  color: #b3b3b3;
  text-align: center;
  text-transform: lowercase;
}

@media (max-width: 860px) {
  #home-folder-list {
    order: -1;
  }

  .folder-btn.active {
    margin-right: 15px;
  }

  .lib-nav-group.collapsible.collapsed .folder-list {
    display: flex;
  }

  #draw-view {
    transform: none;
    margin: 30px auto 0;
  }

  #draw-view::after {
    display: none;
  }

  .roll-result-plate-wrap {
    transform: none;
    margin: -25px auto 0;
  }

  .shelf-cards-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  #shelves-container::before,
  #folder-grid-view::before,
  #draw-view::before {
    width: 300px;
    height: 300px;
    top: -150px;
  }

  body:has(.folder-btn[data-view="home"].active):has(.home-view-tab[data-home-view="about"].active) #shelves-container {
    padding: 5px;
  }

  .library-shell {
    flex-direction: column;
  }

  #lib-sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
    gap: 14px;
    border-right: none;
    border-bottom: 1px dashed var(--pink-mid);
    flex-shrink: 0;
    overflow: visible;
  }

  .sidebar-scroll-area {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    min-height: 0;
    padding-bottom: 0;
  }

  .lib-nav-group.collapsible .collapse-toggle {
    justify-content: center;
  }

  .lib-nav-group h4 {
    margin: 0;
  }

  .lib-logo {
    border-bottom: none;
    padding-bottom: 0;
    flex-shrink: 0;
  }

  .lib-logo span.sub {
    display: none;
  }

  .lib-nav-group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  .lib-nav-group h4 {
    display: none;
  }

  .folder-list {
    flex-direction: row;
    gap: 2px;
  }

  .folder-btn {
    white-space: nowrap;
    padding: 7px 11px;
  }

  .lib-mini-stats {
    display: none;
  }

  #lib-main {
    padding: 18px 16px 28px;
    gap: 18px;
    height: auto;
    flex: 1;
    min-height: 0;
  }

  #book-page-view {
    flex: 1;
    min-height: 0;
    height: auto;
  }

  .shelf-card,
  .book-item {
    width: 84px;
  }

  .shelf-card-cover {
    width: 78px;
    height: 111px;
  }

  .book-page-topbar {
    padding: 14px 18px;
  }

  .book-page-body {
    padding: 4px 14px 60px;
  }

  .book-page-content::before {
    display: none;
  }

  .book-page-content {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    text-align: left;
    padding: 26px;
    gap: 14px;
    width: 100%;
  }

  .book-page-cover-wrap {
    width: 92px;
    max-width: 92px;
    margin: 0;
    gap: 10px;
    flex-shrink: 0;
  }

  .book-page-card {
    display: contents;
  }

  .book-page-info {
    flex: 1;
    min-width: 0;
  }

  .book-page-section {
    flex: 0 0 100%;
    width: 100%;
  }

  .book-page-ratings-box {
    display: none;
  }

  .book-page-ratings {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .rate-pill {
    font-size: 10px;
    padding: 5px 3px;
  }

  .rate-hearts svg {
    width: 10px;
    height: 10px;
  }

  .again-option {
    font-size: 9px;
  }

  .again-checkbox-group {
    gap: 4px;
    align-items: flex-start;
  }

  .rate-again-row {
    padding-top: 6px;
  }

  .book-page-info h1 {
    font-size: 15px;
    text-align: left;
  }

  .book-page-info .auth {
    font-size: 11px;
    text-align: left;
  }

  .book-page-stars {
    font-size: 16px;
    text-align: left;
  }

  .book-page-meta {
    justify-content: left;
    gap: 4px;
  }

  .again-options-row {
    gap: 8px;
  }

  .book-page-tags {
    justify-content: left;
    gap: 4px;
    padding: 8px 0;
  }

  .book-page-tags span {
    font-size: 9px;
    padding: 0 8px;
    height: 18px;
  }

  .book-page-section p {
    font-size: 12.5px;
    text-align: left;
  }

  .book-page-section h3 {
    font-size: 14px;
    text-align: left;
  }

  .stats-grid-2 {
    grid-template-columns: 1fr;
  }

  .bar-chart-row {
    grid-template-columns: 84px 1fr;
  }

  .stats-card-head {
    flex-wrap: wrap;
  }

  .quote-card {
    padding: 32px 24px;
    font-size: 10px;
  }

  .quote-mark-close {
    right: 12px;
  }
}

@media (max-width: 480px) {
  #lib-main {
    padding: 14px 10px 22px;
  }

  .lib-search-wrap {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  #shelves-container {
    padding: 22px 16px;
  }

  #shelves-container::before {
    width: 260px;
    height: 260px;
    top: -140px;
  }

  .home-about-text {
    padding: 24px 18px;
  }

  .home-about-image {
    width: 160px;
  }

  .shelf-card,
  .book-item {
    width: 78px;
  }

  .shelf-card-cover {
    width: 74px;
    height: 111px;
  }

  .book-page-content {
    padding: 26px;
  }

  .stats-card {
    padding: 18px 16px;
  }
}

@media (max-width: 360px) {
  .book-page-content {
    padding: 16px 14px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-page-cover-wrap {
    width: 100%;
    max-width: 140px;
  }

  .book-page-meta {
    justify-content: left;
  }

  .again-checkbox-group {
    align-items: center;
  }

  .book-page-tags {
    justify-content: left;
  }

  .book-page-ratings {
    grid-template-columns: repeat(2, 1fr);
  }

  .rate-pill {
    font-size: 10px;
    padding: 4px 2px;
  }

  .rate-hearts svg {
    width: 10px;
    height: 10px;
  }
}

#challenges-view {
  display: none;
  flex-direction: column;
  gap: 20px;
}

#challenges-view.active {
  display: flex;
}

.challenge-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.challenge-tab {
  font-family: 'nunito';
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: #8c8c8c;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.challenge-tab:hover {
  color: #e386ab;
}

.challenge-tab.active {
  color: var(--title);
  background: #ffe2ef;
  border-color: #ed9ebf;
}

.az-progress {
  font-family: 'nunito';
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  opacity: 0.7;
  margin-bottom: 14px;
  text-align: left;
}

.az-collage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 10px;
}

.az-sticker {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.az-sticker.empty {
  border: 2.5px dashed #f3b8cf;
  border-radius: 6px;
  background: #fff5fa;
}

.az-sticker.empty .az-sticker-letter {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #f3b8cf;
}

.az-sticker.filled {
  border-radius: 6px;
}

.az-sticker.filled img,
.az-sticker-noimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.az-sticker-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: #d97ba3;
  background: #ffe4f0;
  padding: 6px;
}

.az-sticker.filled .az-sticker-letter {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f39fc0;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#challenge-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vbar-chart-list {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  min-height: 160px;
  padding-top: 10px;
  overflow-x: auto;
}

.vbar-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: 46px;
}

.vbar-chart-value {
  font-family: 'nunito';
  font-size: 12px;
  font-weight: 800;
  color: var(--title);
}

.vbar-track {
  width: 20px;
  height: 110px;
  background: #ffe4f0;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.vbar-fill {
  width: 100%;
  background: linear-gradient(to top, #f39fc0, #ffb8d4);
  border-radius: 10px;
  transition: height .3s ease;
}

.vbar-chart-label {
  font-family: 'nunito';
  font-size: 10px;
  font-weight: 700;
  text-transform: lowercase;
  color: #b98099;
  text-align: center;
  white-space: nowrap;
}

#shelf-diversity-reads .shelf-section-header,
#shelf-national-reads .shelf-section-header {
  display: none;
}

.stats-card-head .draw-dropdown-wrap {
  width: auto;
}

.stats-card-head .draw-dd-toggle {
  width: auto;
  min-width: 90px;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 999px;
}

.stats-card-head .pfp-dropdown-menu {
  width: 140px;
}

.home-view-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: -6px;
}

.home-view-tab {
  font-family: 'nunito';
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: #8c8c8c;
  background: transparent;
  border: none;
  padding: 6px 4px 10px;
  cursor: pointer;
  position: relative;
  transition: color .15s ease;
}

.home-view-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: transparent;
  transition: background .2s ease;
}

.home-view-tab:hover {
  color: #e386ab;
}

.home-view-tab.active {
  color: var(--title);
}

.home-view-tab.active::after {
  background: #f9c0d9;
}

.home-about-wrap {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.home-about-text {
  flex: 1;
  min-width: 0;
  padding: 40px;
}

.home-about-text h2 {
  margin-bottom: 30px;
}

.home-about-text .highlight {
  border-bottom: 4px solid #ffd8e9;
}

#form-wrapper {
  margin-top: 30px;
}

.hp-field {
  display: none;
}

#thanks-message {
  display: none;
}

.home-about-image {
  flex-shrink: 0;
  width: 260px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  margin-top: 30px;
  margin-right: 25px;
}

.home-about-image img {
  width: 100%;
  height: auto;
  display: block;
  transform: scaleX(-1);
}

@media (max-width: 900px) {
  .home-about-wrap {
    flex-direction: column;
  }

  .home-about-image {
    width: 220px;
    align-self: center;
    order: -1;
  }
}

@media (max-width: 640px) {
  .home-about-image {
    display: none;
  }

  .home-about-text {
    width: 100%;
  }
}

.message-board-container {
  background: white;
  border-radius: 20px;
  font-family: 'nunito';
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

.message-board-container h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  color: var(--title);
  margin: 0;
}

.message-bubble {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  font-family: 'nunito';
  font-size: 13px;
  color: var(--text);
  background: #fff6fa;
  border: 1px solid #ffd8e9;
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.message-bubble::placeholder {
  color: #565656;
  font-style: italic;
  opacity: 0.7;
}

.message-bubble:focus {
  border-color: #ed9ebf;
  box-shadow: 0 0 0 3px rgba(237, 158, 191, 0.18);
}

#recommendation-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.send-button {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 16px;
  border: 3px solid #ffffff;
  outline: 1px solid #ffd8e9;
  font-size: 13px;
  font-weight: 700;
  color: #616161;
  background: #ffe5f0;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.85), inset -1px -1px 0 rgba(0, 0, 0, 0.18), inset 0 -2px 3px rgba(0, 0, 0, 0.12), inset 0 2px 2px rgba(255, 255, 255, 0.4);
  transition: background .15s ease, box-shadow .15s ease;
  font-family: 'nunito';
  cursor: pointer;
}

.send-button:hover {
  background-color: #ffd3e6;
}

.send-button:disabled {
  opacity: .6;
  cursor: default;
}

.thanks-bubble {
  cursor: default;
  min-height: 0;
  display: block;
  margin-top: 20px;
}