/* Space / Book, Figma 2301:5. Scoped to the book route; Reader is unchanged. */
.space-app.space-book-route {
  background: #0b0c0a;
  color: #f1e2c9;
  height: 100dvh !important;
  min-height: 100dvh !important;
}
#space-book-host {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.space-book-screen {
  --book-warm: #f1e2c9;
  --book-secondary: #cbc0ad;
  --book-border: #353637;
  --book-card: #171919;
  --book-purple: #8047fa;
  position: relative;
  min-height: 100dvh;
  padding-top: max(0px, env(safe-area-inset-top));
  padding-bottom: calc(108px + env(safe-area-inset-bottom));
  color: var(--book-warm);
  font:
    300 14px/20px "Geologica Pilcrow",
    sans-serif;
  isolation: isolate;
}
.space-book-screen {
  display: flow-root;
}
.space-book-screen * {
  box-sizing: border-box;
}
.space-book-screen button,
.space-book-screen textarea,
.space-book-screen select {
  font: inherit;
  color: inherit;
}
.space-book-screen button {
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
}
.space-book-screen button:disabled {
  cursor: default;
  opacity: 0.55;
}
.space-book-screen button:focus-visible,
.space-book-screen summary:focus-visible,
.space-book-screen select:focus-visible {
  outline: 2px solid #fbd096;
  outline-offset: 3px;
}
.space-book-screen h1,
.space-book-screen h2,
.space-book-screen h3,
.space-book-screen h4,
.space-book-screen p,
.space-book-screen dl {
  margin: 0;
}
.space-book-screen h2 {
  font-size: 19px;
  font-weight: 600;
  line-height: 26px;
}
.space-book-screen h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
}
.space-book-screen h4 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.book-ambient {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 340px;
  overflow: hidden;
  pointer-events: none;
}
.book-ambient > img {
  position: absolute;
  top: -130px;
  left: -40px;
  width: calc(100% + 80px);
  height: 520px;
  object-fit: cover;
  filter: blur(24px);
  opacity: 0.32;
}
.book-ambient > i {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #0b0c0a2e, #0b0c0a7a 48%, #0b0c0a);
}
.book-header {
  height: 40px;
  margin: 16px 21px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.book-icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
}
.book-icon-button img,
.book-status-button > img,
.book-status-menu img,
.book-tabs img {
  flex: none;
}
.book-main-stack {
  margin: 0 21px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.book-cover {
  display: block;
  flex: none;
  position: relative;
  overflow: hidden;
  width: 134px;
  height: 204px;
  border-radius: 2px;
  background: #202121;
}
.book-cover > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-cover-empty {
  display: grid;
  place-items: center;
  padding: 8px;
  height: 100%;
  text-align: center;
  color: #cbc0ad;
  font-size: 10px;
  line-height: 14px;
}
.book-cover-row {
  height: 212px;
  display: grid;
  place-items: center;
  position: relative;
}
.book-ranks {
  position: absolute;
  right: 20px;
  top: 4px;
  height: 204px;
  width: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.book-ranks > button {
  flex: none;
  font-size: 12px;
  color: #cbc0ad;
}
.book-rank {
  display: block;
  width: 64px;
  height: 52px;
  position: relative;
  flex: none;
}
.book-rank > b {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 28px;
  line-height: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #e9ca89;
}
.book-title {
  min-height: 86px;
  text-align: center;
}
.book-title h1 {
  min-height: 52px;
  font-size: 19px;
  line-height: 26px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.book-title > div {
  margin-top: 6px;
  color: #cbc0ad;
  line-height: 20px;
}
.book-title button {
  color: inherit;
}
.book-rating-card {
  border: 1px solid var(--book-border);
  border-radius: 27px;
  background: var(--book-card);
  height: 76px;
  display: grid;
  grid-template-columns: 160fr 188fr;
  padding: 11px 0;
}
.book-external-rating {
  text-align: center;
  border-right: 1px solid var(--book-border);
}
.book-external-rating > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
}
.book-external-rating b {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}
.book-external-rating small {
  font-size: 14px;
  color: var(--book-secondary);
}
.book-external-rating p {
  margin-top: 3px;
  font-size: 10px;
  line-height: 17px;
  color: var(--book-secondary);
}
.book-own-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 16px;
}
.book-stars {
  display: flex;
  flex: none;
  height: 32px;
}
.book-stars > button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 32px;
}
.book-stars--large > button {
  width: 35px;
}
.space-book-screen .book-primary {
  border: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fbd096;
  color: #0b0c0a;
  width: 100%;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 22px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
}
.book-status-control {
  position: relative;
}
.book-status-button > img {
  position: absolute;
  right: 16px;
}
.book-status-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  right: 0;
  width: 232px;
  max-width: 100%;
  padding: 8px 12px;
  background: linear-gradient(90deg, #171919, #111312);
  border: 1px solid var(--book-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px #0005;
}
.book-status-menu > button {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-size: 14px;
}
.book-status-menu > button + button {
  border-top: 1px solid var(--book-border);
}
.book-status-menu > img {
  position: absolute;
  top: -9px;
  right: 15px;
}
.book-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 28px;
  border-bottom: 1px solid var(--book-border);
}
.book-tabs > button {
  position: relative;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  padding: 4px 0;
  font-weight: 400;
  color: var(--book-secondary);
}
.book-tabs > button[aria-selected="true"] {
  font-weight: 600;
  color: var(--book-warm);
}
.book-tabs > button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: -1px;
  left: 0;
  right: 0;
  background: var(--book-purple);
  border-radius: 1px;
}
.book-genres {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.book-genres > span {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border: 1px solid #444545;
  border-radius: 14px;
  font-size: 12px;
  line-height: 16px;
}
.book-description {
  padding: 12px 16px;
  border: 1px solid var(--book-border);
  border-radius: 14px;
  background: var(--book-card);
}
.book-description p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.book-description.is-expanded p {
  display: block;
}
.book-description-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  text-align: left;
}
.book-description-toggle .is-up {
  transform: rotate(180deg);
}
.book-brief {
  border-top: 1px solid var(--book-border);
  padding-top: 12px;
  font-size: 12px;
  line-height: 16px;
  color: var(--book-secondary);
}
.book-header--compact {
  height: 64px;
  margin-top: 20px;
  margin-bottom: 20px;
  gap: 12px;
}
.book-header--compact .book-icon-button {
  width: 24px;
}
.book-header--compact .book-cover {
  width: 32px;
  height: 49px;
}
.book-compact-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.book-compact-copy > b {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.book-compact-copy > span {
  font-size: 12px;
  line-height: 16px;
  color: var(--book-secondary);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.book-header--compact + .book-tabs {
  margin: 0 21px;
}
.book-tab-content {
  margin: 24px 21px 0;
}
.book-card {
  background: var(--book-card);
  border: 1px solid var(--book-border);
  border-radius: 14px;
}
.book-empty {
  font-size: 12px;
  line-height: 18px;
  color: var(--book-secondary);
  padding: 14px 0;
}
.book-empty button {
  display: block;
  margin-top: 8px;
  text-decoration: underline;
}
.book-review-overview {
  margin-top: 12px;
  padding: 14px;
}
.book-rating-distribution {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 110px;
}
.book-space-average {
  width: 120px;
  flex: none;
}
.book-space-average > div {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
}
.book-space-average strong {
  font-size: 40px;
  line-height: 48px;
  font-weight: 900;
  min-width: 82px;
}
.book-space-average > small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 17px;
  color: var(--book-secondary);
}
.book-histogram {
  border-left: 1px solid var(--book-border);
  padding-left: 12px;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.book-histogram > div {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 18px;
  font-size: 10px;
  line-height: 17px;
}
.book-histogram > div > span {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 24px;
  flex: none;
}
.book-histogram i {
  height: 10px;
  flex: 1;
  min-width: 0;
  background: #202121;
  border-radius: 5px;
  overflow: hidden;
}
.book-histogram i > b {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--book-purple);
}
.book-histogram small {
  width: 24px;
  flex: none;
  text-align: right;
  color: var(--book-secondary);
  font-size: 10px;
}
.book-review-own {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--book-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  line-height: 16px;
}
.book-review-own .book-stars {
  height: 28px;
}
.book-review-own .book-stars button {
  height: 28px;
}
.book-write-review {
  margin-top: 12px;
}
.book-impression-summary {
  margin-top: 28px;
}
.book-section-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
}
.book-section-toggle[aria-expanded="false"] > img {
  transform: rotate(180deg);
}
.book-impressions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.book-impression {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px !important;
  min-height: 34px;
  border: 1px solid var(--book-border) !important;
  border-radius: 17px;
  background: #111210 !important;
  font-size: 12px !important;
  line-height: 16px !important;
  white-space: nowrap;
}
.book-impression-icon {
  width: 18px;
  height: 18px;
  position: relative;
  flex: none;
}
.book-impression-icon > img {
  position: absolute;
  top: 0;
  left: 0;
}
.book-impression[aria-pressed="true"] {
  border-color: #fbd096 !important;
  background: #202121 !important;
}
.book-review-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}
.book-review-heading select {
  max-width: 145px;
  min-width: 0;
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 0 24px 0 0;
  background: transparent url("/assets/space-book/2314-262-img3.svg") right
    center no-repeat;
  font-size: 12px;
  line-height: 20px;
}
.book-review-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.book-review-card {
  padding: 12px;
  border: 1px solid var(--book-border);
  border-radius: 14px;
  background: var(--book-card);
  font-size: 12px;
  line-height: 16px;
}
.book-review-card > header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.book-review-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 16px;
  background: #2b2b2a;
  font-size: 14px;
  font-weight: 600;
}
.book-review-author {
  min-width: 0;
  flex: 1;
}
.book-review-author > span:first-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.book-review-author .book-stars {
  height: 16px;
}
.book-review-author .book-stars > span {
  width: 14px;
  height: 16px;
  display: grid;
  place-items: center;
}
.book-review-body {
  white-space: pre-line;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-review-body.is-expanded {
  display: block;
}
.book-review-expand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 20px;
  color: var(--book-secondary) !important;
  font-size: 12px !important;
  line-height: 16px !important;
}
.book-review-actions {
  position: relative;
  align-self: flex-start;
}
.book-review-actions > summary {
  list-style: none;
  cursor: pointer;
}
.book-review-actions > summary::-webkit-details-marker {
  display: none;
}
.book-review-actions > div {
  position: absolute;
  right: 0;
  top: 28px;
  z-index: 4;
  width: 160px;
  padding: 8px;
  border: 1px solid var(--book-border);
  border-radius: 12px;
  background: #111312;
  box-shadow: 0 8px 24px #0005;
}
.book-review-actions button {
  padding: 8px;
  width: 100%;
  text-align: left;
}
.book-secondary {
  color: var(--book-secondary);
}
.book-load-more {
  width: 100%;
  margin-top: 12px;
  min-height: 40px;
  text-decoration: underline;
}
.book-context-section + .book-context-section {
  margin-top: 19px;
}
.book-context-section > h2 {
  margin-bottom: 9px;
}
.book-context-top {
  padding: 6px 12px !important;
  min-height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.book-context-top > span:not(.book-rank),
.book-collection-row > span:not(.book-cover) {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.book-context-top b {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.book-context-top small {
  font-size: 10px;
  line-height: 17px;
  color: var(--book-secondary);
}
.book-collection-featured {
  height: 128px;
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 14px !important;
  text-align: left;
  background: var(--book-card) !important;
}
.book-collection-featured > .book-cover {
  width: 100%;
  height: 100%;
}
.book-collection-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, #0b0c0af2);
}
.book-collection-featured > span:not(.book-cover) {
  position: absolute;
  left: 16px;
  bottom: 20px;
  right: 100px;
  z-index: 1;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.book-collection-featured > b {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  background: #fbd096;
  color: #0b0c0a;
  border-radius: 16px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}
.book-collection-row {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  margin-top: 9px;
  min-height: 60px;
}
.book-collection-row > .book-cover {
  width: 84px;
  height: 54px;
  border-radius: 4px;
}
.book-collection-row b {
  font-weight: 600;
}
.book-collection-row small {
  font-size: 12px;
  line-height: 16px;
  color: var(--book-secondary);
}
.book-similar-rule {
  margin-bottom: 8px !important;
  color: var(--book-secondary);
  font-size: 10px;
  line-height: 17px;
}
.book-similar {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 8px;
}
.book-similar > button {
  flex: none;
  width: 126px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.book-similar .book-cover {
  width: 126px;
  height: 144px;
  border-radius: 4px;
}
.book-similar b {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-similar small {
  font-size: 10px;
  line-height: 17px;
  color: var(--book-secondary);
}
.book-details-card {
  padding: 8px 16px;
}
.book-detail-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 34px;
  font-size: 12px;
  line-height: 16px;
}
.book-detail-row dt {
  color: var(--book-secondary);
}
.book-detail-row dd {
  margin: 0;
  overflow-wrap: anywhere;
  padding: 4px 0;
}
.book-details-card + h3 {
  margin-top: 16px;
}
.book-edition {
  padding: 12px 16px;
}
.book-edition > summary {
  display: flex;
  gap: 12px;
  align-items: center;
  list-style: none;
  cursor: pointer;
}
.book-edition > summary > .book-cover {
  width: 48px;
  height: 72px;
}
.book-edition > summary > span:not(.book-cover) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.book-edition > summary b {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.book-edition small {
  font-size: 12px;
  line-height: 16px;
  color: var(--book-secondary);
}
.book-edition dl {
  margin-top: 8px;
}
.book-edition-note {
  font-size: 10px;
  line-height: 17px;
  color: var(--book-secondary);
  padding-top: 8px;
}
.book-data-sources {
  margin-top: 12px;
  padding: 12px 16px;
  font-size: 14px;
}
.book-data-sources > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.book-data-sources[open] > summary > img {
  transform: rotate(180deg);
}
.book-data-sources > a,
.book-data-sources > p {
  display: block;
  margin-top: 12px;
  color: var(--book-secondary);
  font-size: 12px;
  line-height: 18px;
}
.book-compose-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  margin: 16px 21px;
}
.book-compose-header > .book-icon-button {
  width: 24px;
}
.book-compose-book {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 16px 21px 20px;
}
.book-compose-book > .book-cover {
  width: 48px;
  height: 72px;
}
.book-compose-book > span:not(.book-cover) {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.book-compose-book b {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-compose-book small {
  font-size: 12px;
  line-height: 16px;
  color: var(--book-secondary);
}
.book-review-form {
  margin: 0 21px;
}
.book-review-form fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.book-form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.book-compose-rating {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.book-compose-rating > small {
  color: var(--book-secondary);
  font-size: 12px;
  line-height: 16px;
}
.space-book-screen textarea {
  display: block;
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--book-border);
  border-radius: 14px;
  background: var(--book-card);
  font-size: 14px;
  line-height: 20px;
}
.book-spoiler-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  height: 28px;
  cursor: pointer;
  position: relative;
}
.book-spoiler-toggle > input {
  position: absolute;
  right: 0;
  width: 44px;
  height: 28px;
  opacity: 0;
  margin: 0;
  z-index: 1;
  cursor: pointer;
}
.book-toggle-art {
  width: 44px;
  height: 28px;
  position: relative;
  border-radius: 14px;
}
.book-toggle-art > i {
  display: none;
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f9f9f7;
}
.book-spoiler-toggle > input:checked + .book-toggle-art {
  background: var(--book-purple);
}
.book-spoiler-toggle > input:checked + .book-toggle-art > img {
  visibility: hidden;
}
.book-spoiler-toggle > input:checked + .book-toggle-art > i {
  display: block;
}
.book-spoiler-toggle > input:focus-visible + .book-toggle-art {
  outline: 2px solid #fbd096;
  outline-offset: 3px;
}
.book-compose-impressions {
  margin-top: 24px;
}
.book-compose-impressions > p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--book-secondary);
}
.book-compose-impressions > .book-impressions {
  margin-top: 12px;
}
.book-compose-impressions [data-book-impression="mysterious"] {
  margin-right: 140px;
}
.book-compose-impressions [data-book-impression="tense"] {
  margin-right: 160px;
}
.book-form-notice {
  min-height: 20px;
  margin: 12px 0 !important;
  font-size: 12px;
  color: #fbd096;
}
.book-public-disclosure {
  margin-top: 12px !important;
  color: var(--book-secondary);
  font-size: 10px;
  line-height: 17px;
}
.book-feedback {
  position: fixed;
  z-index: 12;
  bottom: calc(100px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: 340px;
  width: calc(100% - 42px);
  padding: 12px 16px;
  border: 1px solid var(--book-border);
  border-radius: 14px;
  background: #202121;
  color: var(--book-warm);
  font-size: 12px;
  line-height: 18px;
  box-shadow: 0 4px 24px #0008;
}
.book-more-menu {
  position: absolute;
  z-index: 6;
  top: 60px;
  right: 21px;
  padding: 8px;
  box-shadow: 0 8px 24px #0005;
}
.book-more-menu button {
  display: block;
  padding: 10px 12px;
  text-align: left;
  min-width: 180px;
}
.book-dialog-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 21px;
  background: #0009;
}
.book-dialog {
  width: min(100%, 360px);
  max-height: 80dvh;
  overflow: auto;
  padding: 20px;
  position: relative;
}
.book-dialog > .book-icon-button {
  float: right;
}
.book-dialog h2 {
  margin-bottom: 12px;
}
.book-dialog > p {
  font-size: 12px;
  color: var(--book-secondary);
  margin-bottom: 12px;
}
.book-dialog > button:not(.book-icon-button) {
  display: block;
  width: 100%;
  padding: 12px 0;
}
.book-dialog textarea {
  margin-bottom: 12px;
}
.book-collection-books > button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 8px 0;
  width: 100%;
}
.book-collection-books .book-cover {
  width: 40px;
  height: 60px;
}
.book-collection-books > button > span:not(.book-cover) {
  min-width: 0;
  flex: 1;
}
.book-collection-books small {
  display: block;
  color: var(--book-secondary);
  font-size: 10px;
}
@media (prefers-reduced-motion: no-preference) {
  .space-book-screen button {
    transition: opacity 150ms ease;
  }
  .book-primary:active,
  .book-stars button:active {
    transform: scale(0.97);
  }
}
