/* Compact Browse and Discover workspace. Single, flat covers throughout. */
.mve-explore {
  --mve-line: color-mix(in srgb, var(--border) 80%, transparent);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding-bottom: 18px;
  color: var(--foreground);
  font-family: Inter, system-ui, sans-serif;
}
.mve-explore :where(h1, h2, h3, p, fieldset, legend) {
  margin: 0;
}
.mve-explore :where(button, input, select) {
  font: inherit;
}
.mve-explore button {
  cursor: pointer;
}
.mve-explore :where(a, button, summary):focus-visible {
  outline: 1.5px solid color-mix(in srgb, var(--primary) 70%, transparent);
  outline-offset: 2px;
}
.mve-explore :where(input, select):focus,
.mve-explore :where(input, select):focus-visible {
  outline: none !important;
  border-color: color-mix(in srgb, var(--primary) 70%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}
.mve-explore button:disabled {
  opacity: 0.4;
  cursor: default;
}
.mve-explore svg {
  flex-shrink: 0;
}
.mve-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 1px 0 12px;
  border-bottom: 1px solid var(--mve-line);
}
.mve-title-line {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
}
.mve-heading h1 {
  font-size: 25px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.04em;
}
.mve-kicker {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
  padding-left: 13px;
  border-left: 1px solid var(--border);
}
.mve-heading > div > p {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 5px;
  color: var(--muted-foreground);
}
.mve-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.mve-page-tabs {
  display: flex;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px;
  background: var(--muted);
}
.mve-page-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 3px 11px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 550;
  color: var(--muted-foreground);
}
.mve-page-tabs a[aria-current="page"] {
  background: var(--card);
  color: var(--primary);
  box-shadow: 0 1px 4px #0000000b;
}
.mve-explore .mve-secondary,
.mve-explore .mve-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 31px !important;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
  background: var(--card);
  color: var(--muted-foreground);
}
.mve-explore .mve-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}
.mve-secondary:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
  color: var(--primary);
}
.mve-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.mve-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.mve-search > svg {
  position: absolute;
  left: 10px;
  pointer-events: none;
  width: 14px;
  height: 14px;
  color: var(--muted-foreground);
}
#root main .mve-search input {
  height: 34px;
  min-height: 34px !important;
  width: 100%;
  padding: 6px 34px 6px 31px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  font-size: 11px;
  color: var(--foreground);
}
.mve-search input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.85;
}
.mve-search:focus-within input {
  border-color: var(--primary);
}
#root main .mve-search button {
  position: absolute;
  right: 3px;
  top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-height: 28px !important;
  padding: 0;
  color: var(--muted-foreground);
}
.mve-search button svg {
  width: 13px;
  height: 13px;
}
#root main .mve-explore select {
  height: 31px;
  min-height: 31px !important;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 26px 4px 8px;
  background: var(--card);
  color: var(--foreground);
  font-size: 10px;
}
.mve-toolbar > select {
  width: 150px;
  flex-shrink: 0;
}
.mve-toolbar .mve-filter-toggle {
  display: none;
}
.mve-browse-layout {
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}
.mve-filter-rail {
  position: sticky;
  top: 65px;
  min-width: 0;
  max-height: calc(100dvh - 85px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 14px;
  border-right: 1px solid var(--mve-line);
}
.mve-filter-content {
  min-width: 0;
}
.mve-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.mve-filter-heading h2 {
  font-size: 11px;
  font-weight: 650;
}
.mve-filter-heading > button {
  font-size: 9px;
  color: var(--primary);
  min-height: 26px !important;
}
.mve-genre-field {
  border: 0;
  padding: 0;
  margin-bottom: 15px;
}
.mve-genre-field legend,
.mve-filter-field > span {
  font-size: 9px;
  font-weight: 550;
  color: var(--muted-foreground);
  margin-bottom: 6px;
  display: block;
}
.mve-genre-field > button,
.mve-genre-options > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-height: 27px !important;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  text-align: left;
  color: var(--muted-foreground);
}
.mve-genre-field > button[aria-pressed="true"],
.mve-genre-options > button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--primary) 11%, transparent);
  color: var(--primary);
  font-weight: 600;
}
.mve-genre-options > button:hover {
  background: var(--muted);
}
.mve-genre-options small,
.mve-genre-field > button small {
  font-size: 9px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.mve-genre-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: 3px;
}
.mve-filter-field {
  display: block;
  margin-bottom: 13px;
  min-width: 0;
}
.mve-filter-field > select {
  display: block;
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}
.mve-more-filters {
  border-top: 1px solid var(--mve-line);
  padding-top: 8px;
}
.mve-more-filters summary {
  font-size: 10px;
  color: var(--primary);
  cursor: pointer;
  min-height: 27px;
  line-height: 27px;
  margin-bottom: 5px;
}
.mve-results {
  min-width: 0;
}
.mve-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mve-line);
}
.mve-status-tabs {
  display: flex;
  gap: 2px;
  min-width: 0;
}
.mve-status-tabs button,
.mve-explore .mve-library-filter {
  min-height: 28px !important;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.mve-status-tabs button[aria-pressed="true"] {
  background: var(--muted);
  color: var(--primary);
  font-weight: 600;
}
.mve-result-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}
.mve-library-filter[aria-pressed="true"] {
  color: var(--primary) !important;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.mve-view-switch {
  display: flex;
  gap: 2px;
  border-left: 1px solid var(--border);
  padding-left: 8px;
}
.mve-explore .mve-view-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 27px !important;
  width: 27px;
  padding: 0;
  border-radius: 4px;
  color: var(--muted-foreground);
}
.mve-view-switch button svg {
  width: 13px;
  height: 13px;
}
.mve-view-switch button[aria-pressed="true"] {
  background: var(--card);
  color: var(--primary);
  box-shadow: 0 1px 4px #0000000b;
}
.mve-result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 27px;
  margin: 3px 0 5px;
  font-size: 10px;
  color: var(--muted-foreground);
}
.mve-result-summary > button {
  min-height: 25px !important;
  padding: 2px 0;
  font-size: 10px;
  color: var(--primary);
}
.mve-active-filters {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin: 1px 0 10px;
}
.mve-explore .mve-active-filters button {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px !important;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--primary) 17%, var(--border));
  background: color-mix(in srgb, var(--primary) 5%, var(--card));
  font-size: 9px;
  color: var(--primary);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.mve-active-filters svg {
  width: 11px;
  height: 11px;
}
.mve-books {
  min-width: 0;
}
.mve-books-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  gap: 9px;
}
.mve-book {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.mve-book:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  background: color-mix(in srgb, var(--card) 98%, var(--primary));
}
.mve-book-cards {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 25px;
  align-items: start;
  gap: 10px;
  padding: 9px;
  min-height: 108px;
}
.mve-cover {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  background: var(--muted);
  border: 1px solid var(--mve-line);
  border-radius: 4px;
  aspect-ratio: 2/3;
  width: 100%;
  color: var(--primary);
}
.mve-cover > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font:
    500 27px Georgia,
    serif;
}
.mve-cover img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.mve-cover small {
  position: absolute;
  bottom: 3px;
  left: 3px;
  z-index: 1;
  font-size: 7px;
  line-height: 1;
  padding: 3px;
  border-radius: 2px;
  color: #fff;
  background: #492130dc;
}
.mve-book-copy {
  min-width: 0;
}
.mve-book-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 8px;
  line-height: 1.3;
  color: var(--muted-foreground);
  margin: 1px 0 5px;
}
.mve-book-topline > span:first-child {
  color: var(--primary);
  font-weight: 550;
}
.mve-status {
  font-size: 8px;
}
.mve-status.is-complete {
  color: color-mix(in srgb, var(--foreground) 55%, #36875b);
}
.mve-book h2 {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.mve-book h2 a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.mve-book h2 a:hover {
  color: var(--primary);
}
.mve-book-author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted-foreground);
  margin: 4px 0 0 !important;
}
.mve-book-stats {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted-foreground);
  margin-top: 5px;
}
.mve-rating {
  color: var(--primary);
  font-weight: 600;
}
.mve-book-cards .mve-reads {
  display: none;
}
.mve-book-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.mve-explore .mve-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  min-height: 26px !important;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted-foreground);
  background: transparent;
}
.mve-icon svg {
  width: 13px;
  height: 13px;
}
.mve-explore .mve-icon:hover {
  background: var(--muted);
  color: var(--primary);
}
.mve-explore .mve-icon.is-saved {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  border-color: color-mix(in srgb, var(--primary) 14%, var(--border));
}
.mve-books-list {
  border-top: 1px solid var(--border);
}
.mve-book-list {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 60px;
  align-items: center;
  gap: 12px;
  padding: 9px 6px;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}
.mve-book-list .mve-book-topline {
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 3px;
}
.mve-book-list .mve-book-author {
  display: inline-block;
  margin-right: 10px !important;
}
.mve-book-list .mve-book-stats {
  display: inline-flex;
  gap: 10px;
}
.mve-book-list .mve-book-description {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  margin-top: 4px;
}
.mve-book-list .mve-book-actions {
  flex-direction: row;
}
.mve-book-list h2 {
  font-size: 12px;
}
.mve-book-list h2 a {
  -webkit-line-clamp: 1;
}
.mve-books-covers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 12px;
}
.mve-book-covers {
  border: 0;
  background: transparent;
  padding: 0;
}
.mve-book-covers:hover {
  background: transparent;
}
.mve-book-covers .mve-cover {
  height: 138px;
  aspect-ratio: auto;
}
.mve-book-covers .mve-book-copy {
  padding-top: 7px;
}
.mve-book-covers .mve-book-topline,
.mve-book-covers .mve-book-author,
.mve-book-covers .mve-reads {
  display: none;
}
.mve-book-covers h2 {
  font-size: 10px;
  line-height: 1.45;
  min-height: 2.9em;
}
.mve-book-covers .mve-book-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  flex-direction: column;
  gap: 3px;
}
.mve-book-covers .mve-icon {
  background: var(--card);
}
.mve-book-covers .mve-book-stats {
  font-size: 9px;
  gap: 5px;
  margin-top: 4px;
}
.mve-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 45px 18px;
  border: 1px dashed var(--border);
  border-radius: 7px;
  background: color-mix(in srgb, var(--card) 40%, transparent);
  gap: 8px;
}
.mve-empty > span {
  font-size: 23px;
  color: var(--primary);
}
.mve-empty h2 {
  font-size: 15px;
  font-weight: 650;
}
.mve-empty p {
  font-size: 11px;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 360px;
}
.mve-empty > .mve-primary {
  margin-top: 6px;
}
.mve-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px 0 4px;
}
.mve-pagination button {
  min-height: 29px !important;
  padding: 4px 9px;
  font-size: 10px;
  color: var(--primary);
}
.mve-pagination select {
  max-width: 85px;
}
.mve-discover-filters {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mve-line);
}
.mve-category-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}
.mve-category-tabs button,
.mve-explore .mve-saved-filter {
  min-height: 28px !important;
  padding: 4px 9px;
  font-size: 10px;
  white-space: nowrap;
  border-radius: 4px;
  color: var(--muted-foreground);
}
.mve-category-tabs button[aria-pressed="true"],
.mve-saved-filter[aria-pressed="true"] {
  background: color-mix(in srgb, var(--primary) 11%, transparent);
  color: var(--primary);
  font-weight: 600;
}
.mve-saved-filter {
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.mve-discover .mve-result-summary {
  margin: -5px 0 -4px;
}
.mve-shelves {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(282px, 100%), 1fr));
  gap: 10px;
}
.mve-shelf {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  transition: border-color 0.15s;
}
.mve-shelf:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}
.mve-shelf-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 8px;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--muted-foreground);
}
.mve-shelf-topline > span:first-child {
  color: var(--primary);
  font-weight: 600;
}
.mve-shelf h2 {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}
.mve-explore .mve-shelf h2 > button {
  font: inherit;
  line-height: inherit;
  text-align: left;
  min-height: 35px !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  padding-right: 4px;
}
.mve-shelf h2 > button:hover {
  color: var(--primary);
}
.mve-shelf-description {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: 11px !important;
  min-height: 3.4em;
}
.mve-shelf-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid var(--mve-line);
}
.mve-shelf-covers {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.mve-shelf-covers a {
  display: block;
  width: 26px;
  height: 37px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--muted);
}
.mve-shelf-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mve-shelf-curator {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.mve-shelf-curator strong {
  font-size: 9px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mve-shelf-curator > span {
  font-size: 8px;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--muted-foreground);
}
.mve-explore .mve-shelf-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px !important;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 550;
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.mve-shelf-save svg {
  width: 12px;
  height: 12px;
}
.mve-shelf-save.is-saved {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  border-color: color-mix(in srgb, var(--primary) 15%, var(--border));
}
.mve-discover-footnote {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 13px 0 1px;
  font-size: 10px;
  color: var(--muted-foreground);
}
.mve-discover-footnote a {
  color: var(--primary);
}
.mve-explore .mve-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0 !important;
  background: color-mix(in srgb, var(--background) 70%, transparent);
  backdrop-filter: blur(6px);
}
.mve-drawer {
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  border-left: 1px solid var(--border);
  background: var(--card);
  box-shadow: -10px 0 40px #0002;
}
.mve-drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mve-drawer-heading h2 {
  font-size: 14px;
  font-weight: 650;
}
.mve-drawer-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  padding: 16px;
  scrollbar-width: thin;
}
.mve-preview-intro {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
}
.mve-preview-intro .mve-cover {
  height: 112px;
  aspect-ratio: auto;
}
.mve-preview-status {
  display: block;
  font-size: 9px;
  color: var(--primary);
  font-weight: 550;
  margin: 2px 0 7px;
}
.mve-preview-intro h3,
.mve-collection-preview h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.mve-preview-intro p {
  font-size: 10px;
  line-height: 1.6;
  margin-top: 7px;
  color: var(--muted-foreground);
}
.mve-preview-intro small {
  display: block;
  font-size: 10px;
  color: var(--primary);
  margin-top: 6px;
}
.mve-preview-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.mve-preview-actions > .mve-primary {
  flex: 1;
}
.mve-preview-actions > .mve-icon {
  width: 31px;
  height: 31px;
  min-height: 31px !important;
}
.mve-preview-synopsis {
  font-size: 12px;
  line-height: 1.85;
  white-space: pre-line;
  margin-top: 16px !important;
  color: var(--muted-foreground);
}
.mve-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.mve-preview-tags button {
  min-height: 26px !important;
  font-size: 9px;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--primary);
}
.mve-collection-byline {
  font-size: 10px;
  color: var(--muted-foreground);
  margin-top: 8px !important;
}
.mve-collection-description {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted-foreground);
  margin: 14px 0 !important;
}
.mve-collection-preview > .mve-shelf-save {
  min-height: 31px !important;
  padding: 6px 10px;
}
.mve-collection-books {
  margin-top: 19px;
  border-top: 1px solid var(--border);
}
.mve-collection-books > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.mve-collection-books img {
  width: 36px;
  height: 52px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
}
.mve-collection-books > a > span {
  min-width: 0;
  flex: 1;
}
.mve-collection-books strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.mve-collection-books small {
  display: block;
  font-size: 9px;
  color: var(--muted-foreground);
  margin-top: 5px;
}
.mve-collection-books > a > svg {
  width: 13px;
  height: 13px;
  color: var(--primary);
}
@media (max-width: 1023px) {
  .mve-browse-layout {
    display: block;
  }
  .mve-filter-rail {
    display: none;
  }
  .mve-toolbar .mve-filter-toggle {
    display: inline-flex;
  }
  .mve-filter-rail.is-open {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    max-height: none;
    overflow: hidden;
    padding: 0 !important;
    border: 0;
    background: color-mix(in srgb, var(--background) 70%, transparent);
    backdrop-filter: blur(5px);
  }
  .mve-filter-rail.is-open .mve-filter-content {
    width: min(330px, 100%);
    height: 100%;
    overflow-y: auto;
    background: var(--card);
    border-left: 1px solid var(--border);
    padding: 13px 16px 20px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .mve-filter-heading {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 13px;
  }
  .mve-filter-heading h2 {
    font-size: 14px;
  }
  .mve-filter-heading > .mve-icon {
    min-height: 26px !important;
  }
  .mve-filter-field > select {
    height: 33px !important;
  }
  .mve-genre-options {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .mve-genre-options > button,
  .mve-genre-field > button {
    min-height: 30px !important;
    font-size: 11px;
  }
  .mve-filter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
  }
  .mve-filter-footer > button {
    font-size: 10px;
    min-height: 30px !important;
    color: var(--primary);
  }
  .mve-kicker {
    display: none;
  }
  .mve-heading-actions {
    gap: 8px;
  }
}
@media (max-width: 767px) {
  .mve-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .mve-heading h1 {
    font-size: 23px;
  }
  .mve-heading > div > p {
    font-size: 10px;
    max-width: 330px;
  }
  .mve-heading-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
  .mve-heading-actions > .mve-secondary {
    min-height: 27px !important;
    padding: 4px 8px;
    font-size: 9px;
  }
  .mve-page-tabs a {
    padding-inline: 8px;
    font-size: 9px;
    min-height: 26px;
  }
  .mve-toolbar {
    gap: 6px;
  }
  .mve-toolbar > select {
    width: 132px;
  }
  .mve-explore .mve-filter-toggle {
    min-height: 31px !important;
    padding: 5px 8px;
    font-size: 10px;
  }
  .mve-toolbar .mve-filter-toggle svg {
    display: none;
  }
  .mve-results-toolbar {
    gap: 6px;
  }
  .mve-result-controls {
    gap: 4px;
  }
  .mve-explore .mve-library-filter {
    font-size: 9px;
    padding-inline: 5px;
  }
  .mve-view-switch {
    padding-left: 5px;
  }
  .mve-view-switch button {
    width: 26px !important;
  }
  .mve-book-cards {
    min-height: 104px;
  }
  .mve-books-cards {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 8px;
  }
  .mve-books-covers {
    grid-template-columns: repeat(auto-fill, minmax(97px, 1fr));
    gap: 10px;
  }
  .mve-book-covers .mve-cover {
    height: 132px;
  }
  .mve-shelves {
    grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  }
  .mve-category-tabs button {
    font-size: 9px;
    padding: 4px 7px;
  }
  .mve-shelf {
    padding: 11px;
  }
  .mve-drawer {
    width: min(450px, 100%);
  }
  .mve-drawer-heading {
    padding: 12px 14px;
  }
  .mve-drawer-body {
    padding: 14px;
  }
  .mve-book-list .mve-reads {
    display: none;
  }
  .mve-preview-intro h3 {
    font-size: 17px;
  }
}
@media (max-width: 479px) {
  .mve-explore {
    gap: 10px;
  }
  .mve-heading {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 10px;
  }
  .mve-heading-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
  }
  .mve-heading h1 {
    font-size: 22px;
  }
  .mve-heading > div > p {
    font-size: 10px;
    max-width: none;
  }
  .mve-toolbar {
    flex-wrap: wrap;
  }
  .mve-toolbar > .mve-search {
    flex-basis: 100%;
  }
  .mve-toolbar > select {
    flex: 1;
    width: auto;
  }
  .mve-toolbar > .mve-filter-toggle {
    flex: 1;
  }
  .mve-results-toolbar {
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 7px;
  }
  .mve-status-tabs {
    flex: 1;
  }
  .mve-status-tabs button {
    font-size: 9px;
    padding: 4px 7px;
  }
  .mve-result-controls {
    justify-content: space-between;
    width: 100%;
  }
  .mve-result-controls .mve-library-filter {
    padding: 3px 0;
  }
  .mve-view-switch {
    border: 0;
    padding: 0;
  }
  .mve-book-cards {
    grid-template-columns: 52px minmax(0, 1fr) 25px;
    min-height: 98px;
    padding: 8px;
    gap: 9px;
  }
  .mve-book h2 {
    font-size: 11px;
  }
  .mve-book-stats {
    margin-top: 4px;
    font-size: 9px;
  }
  .mve-book-topline {
    font-size: 8px;
    margin-bottom: 4px;
  }
  .mve-book-cards .mve-book-topline .mve-status {
    font-size: 7px;
  }
  .mve-book-list {
    grid-template-columns: 34px minmax(0, 1fr) 26px;
    gap: 9px;
    padding: 8px 0;
  }
  .mve-book-list .mve-book-actions {
    flex-direction: column;
    gap: 3px;
  }
  .mve-book-list .mve-book-stats {
    display: flex;
    gap: 7px;
    margin-top: 3px;
  }
  .mve-book-list .mve-book-description {
    display: none;
  }
  .mve-book-list .mve-book-author {
    margin-top: 2px !important;
  }
  .mve-books-covers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px 9px;
  }
  .mve-book-covers .mve-cover {
    height: 127px;
  }
  .mve-book-covers h2 {
    font-size: 9px;
  }
  .mve-book-covers .mve-icon {
    width: 24px;
    height: 24px;
    min-height: 24px !important;
  }
  .mve-book-covers .mve-book-stats {
    font-size: 8px;
    gap: 4px;
  }
  .mve-discover-filters {
    gap: 7px;
  }
  .mve-category-tabs {
    gap: 3px;
  }
  .mve-category-tabs button {
    font-size: 9px;
    padding-inline: 6px;
    min-height: 26px !important;
  }
  .mve-saved-filter {
    padding-inline: 6px !important;
    font-size: 9px !important;
  }
  .mve-discover .mve-result-summary {
    font-size: 9px;
    margin: 0;
  }
  .mve-shelf h2 {
    font-size: 13px;
  }
  .mve-shelf-description {
    font-size: 10px;
  }
  .mve-shelf-footer {
    gap: 10px;
  }
  .mve-shelf-covers a {
    width: 27px;
    height: 39px;
  }
  .mve-shelf-curator strong {
    font-size: 10px;
  }
  .mve-shelf-curator > span {
    font-size: 9px;
  }
  .mve-shelf-save {
    font-size: 9px;
  }
  .mve-preview-intro {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 11px;
  }
  .mve-preview-intro .mve-cover {
    height: 96px;
  }
  .mve-preview-intro h3 {
    font-size: 16px;
  }
  .mve-preview-intro small {
    font-size: 9px;
  }
  .mve-preview-intro p {
    font-size: 9px;
  }
  .mve-preview-actions {
    flex-wrap: wrap;
  }
  .mve-preview-actions > .mve-primary {
    font-size: 10px;
  }
  .mve-preview-synopsis {
    font-size: 11px;
    line-height: 1.85;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mve-explore * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Covers lead the default view; controls stay compact around them. */
.mve-books-covers {
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 17px 13px;
}
.mve-book-covers .mve-cover {
  height: auto;
  aspect-ratio: 2/3;
  max-height: 228px;
  box-shadow: 0 2px 7px #0000000e;
}
.mve-book-covers h2 {
  font-size: 11px;
  line-height: 1.5;
  min-height: 3em;
}
.mve-book-covers .mve-book-author {
  display: block;
  font-size: 9px;
  margin-top: 4px !important;
}
.mve-book-covers .mve-book-stats {
  font-size: 9px;
  margin-top: 4px;
  gap: 8px;
}
.mve-book-covers .mve-book-actions {
  gap: 4px;
  top: 5px;
  right: 5px;
}
.mve-book-covers .mve-icon {
  width: 26px;
  height: 26px;
  min-height: 26px !important;
  background: color-mix(in srgb, var(--card) 95%, transparent);
  box-shadow: 0 1px 4px #0001;
}
.mve-shelf-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 294px;
  margin: 0 auto 11px;
}
.mve-shelf-gallery > a {
  position: relative;
  display: block;
  aspect-ratio: 2/3;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--muted);
  overflow: hidden;
  box-shadow: 0 2px 6px #00000009;
}
.mve-shelf-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mve-shelf-gallery > a > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font:
    500 25px Georgia,
    serif;
  color: var(--primary);
}
.mve-shelf-description {
  -webkit-line-clamp: 1;
  min-height: 1.7em;
  margin-bottom: 10px !important;
}
.mve-shelf h2 > button {
  min-height: 35px !important;
}
.mve-shelf-footer {
  gap: 7px;
  padding-top: 8px;
}
.mve-shelf-curator {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  flex-wrap: wrap;
}
.mve-shelf-curator > span {
  font-size: 8px;
}
.mve-shelf-footer > .mve-icon {
  border: 0;
  width: 24px;
  height: 26px;
  min-height: 26px !important;
}
.mve-shelf-footer > .mve-shelf-save {
  min-height: 27px !important;
}
.mve-more-genres {
  margin-top: 5px;
}
.mve-more-genres summary {
  font-size: 9px;
  color: var(--primary);
  cursor: pointer;
  line-height: 27px;
  min-height: 27px;
}
.mve-genre-options button > span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (max-width: 767px) {
  .mve-books-covers {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .mve-book-covers .mve-cover {
    height: auto;
    aspect-ratio: 2/3;
  }
  .mve-book-covers h2 {
    font-size: 11px;
  }
  .mve-shelf-gallery {
    max-width: 294px;
  }
}
@media (max-width: 479px) {
  .mve-books-covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 12px;
  }
  .mve-book-covers .mve-cover {
    height: auto;
    max-height: none;
    aspect-ratio: 2/3;
  }
  .mve-book-covers h2 {
    font-size: 11px;
    line-height: 1.5;
  }
  .mve-book-covers .mve-book-stats {
    font-size: 9px;
  }
  .mve-book-covers .mve-book-author {
    font-size: 9px;
  }
  .mve-result-controls {
    width: auto;
    flex: 1;
    justify-content: flex-end;
  }
  .mve-shelf-curator {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .mve-shelf-gallery {
    max-width: 294px;
    margin-bottom: 10px;
  }
  .mve-shelf-description {
    font-size: 10px;
    -webkit-line-clamp: 1;
  }
  .mve-discover .mve-toolbar {
    flex-wrap: nowrap;
  }
  .mve-discover .mve-toolbar > .mve-search {
    flex-basis: auto;
  }
  .mve-discover .mve-toolbar > select {
    flex: none;
    max-width: 120px;
  }
}
.mve-discover-filters > select {
  display: none;
}
@media (max-width: 639px) {
  .mve-category-tabs {
    display: none;
  }
  .mve-discover-filters > select {
    display: block;
    min-width: 0;
    flex: 1;
    max-width: 260px;
  }
  .mve-discover-filters {
    align-items: center;
  }
}
/* Compact cover-forward density: visible artwork with minimal surrounding UI. */
.mve-explore {
  gap: 8px;
}
.mve-heading {
  padding-bottom: 9px;
}
.mve-heading h1 {
  font-size: 23px;
}
.mve-heading > div > p {
  font-size: 10px;
  margin-top: 3px;
  line-height: 1.5;
}
.mve-kicker {
  display: none;
}
#root main .mve-search input {
  height: 31px;
  min-height: 31px !important;
  font-size: 10px;
}
#root main .mve-search button {
  top: 2px;
  height: 27px;
  min-height: 27px !important;
}
.mve-results-toolbar {
  padding-bottom: 6px;
}
.mve-result-summary {
  min-height: 25px;
  margin: 2px 0 5px;
  font-size: 9px;
}
.mve-books-covers {
  grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
  gap: 13px 10px;
}
.mve-book-covers .mve-cover {
  max-height: 170px;
}
.mve-book-covers .mve-book-copy {
  padding-top: 6px;
}
.mve-book-covers h2 {
  font-size: 10px;
  line-height: 1.45;
  min-height: 2.9em;
}
.mve-book-covers .mve-book-author {
  font-size: 8px;
  margin-top: 3px !important;
}
.mve-book-covers .mve-book-stats {
  font-size: 8px;
  gap: 6px;
  margin-top: 3px;
}
.mve-book-covers .mve-book-actions {
  top: 4px;
  right: 4px;
  gap: 3px;
}
.mve-book-covers .mve-icon {
  width: 24px;
  height: 24px;
  min-height: 24px !important;
}
.mve-book-cards {
  min-height: 99px;
  padding: 8px;
  grid-template-columns: 52px minmax(0, 1fr) 25px;
  gap: 9px;
}
.mve-book-list {
  grid-template-columns: 34px minmax(0, 1fr) 60px;
  padding-block: 7px;
  gap: 10px;
}
.mve-shelf {
  padding: 10px;
}
.mve-shelf-topline {
  margin-bottom: 7px;
}
.mve-shelf-gallery {
  max-width: 242px;
  gap: 5px;
  margin-bottom: 8px;
}
.mve-shelf-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  min-height: 1.7em;
}
.mve-shelf h2 {
  font-size: 12px;
  margin-bottom: 7px;
}
.mve-shelf h2 > button {
  min-height: 32px !important;
}
.mve-shelf-footer {
  padding-top: 7px;
}
.mve-shelf-curator strong {
  font-size: 9px;
}
.mve-shelves {
  gap: 9px;
}
.mve-discover-footnote {
  padding-top: 10px;
  font-size: 9px;
}
@media (max-width: 767px) {
  .mve-books-covers {
    grid-template-columns: repeat(auto-fill, minmax(103px, 1fr));
  }
  .mve-heading h1 {
    font-size: 22px;
  }
  .mve-shelf-gallery {
    max-width: 242px;
  }
}
@media (max-width: 479px) {
  .mve-explore {
    gap: 8px;
  }
  .mve-heading {
    gap: 6px;
    padding-bottom: 8px;
  }
  .mve-heading h1 {
    font-size: 21px;
  }
  .mve-heading > div > p {
    font-size: 9px;
  }
  .mve-page-tabs a {
    font-size: 9px;
    min-height: 24px;
    padding: 3px 9px;
  }
  .mve-page-tabs {
    padding: 2px;
  }
  .mve-toolbar {
    gap: 5px;
  }
  .mve-results-toolbar {
    row-gap: 3px;
  }
  .mve-books-covers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px 9px;
  }
  .mve-book-covers .mve-cover {
    max-height: none;
  }
  .mve-book-covers h2 {
    font-size: 9px;
    line-height: 1.45;
  }
  .mve-book-covers .mve-book-author {
    font-size: 8px;
  }
  .mve-book-covers .mve-book-stats {
    font-size: 8px;
    gap: 5px;
  }
  .mve-book-list {
    grid-template-columns: 32px minmax(0, 1fr) 26px;
    gap: 9px;
  }
  .mve-shelf-gallery {
    max-width: 234px;
  }
  .mve-shelf-curator {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
  }
  .mve-shelf-curator > span {
    font-size: 8px;
  }
}
.mve-filter-heading>button:not(.mve-icon){min-width:28px}
.mve-heading>div:first-child{min-width:0;flex:1}
@media(max-width:767px){.mve-heading-actions{flex-direction:row;align-items:center}}
@media(max-width:479px){.mve-heading{flex-direction:row;align-items:center;gap:10px}.mve-heading-actions{width:auto;flex-shrink:0}.mve-heading h1{font-size:21px}.mve-heading-actions>.mve-secondary{font-size:9px;min-height:28px!important;padding-inline:7px}.mve-heading>div>p{font-size:9px}}
