@font-face {
  font-family: Poppins;
  src: url("/fonts/poppins-latin.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --pink: #f32c98;
  --pink-dark: #d81b80;
  --pink-light: #ffedf5;
  --text: #192333;
  --muted: #838892;
  --line: #e7e7eb;
  --soft: #f5f5f6;
  --page: 1200px;
  font-family: Poppins, Arial, sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  font-synthesis: weight;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: white;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
img {
  display: block;
  max-width: 100%;
}
button:disabled {
  cursor: default;
  opacity: 0.35;
}
a:hover {
  color: var(--pink);
}
button:hover {
  color: var(--pink);
}
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.icon {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  flex-shrink: 0;
}
.page {
  width: min(var(--page), calc(100% - 48px));
  margin: 0 auto;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font-size: 26px;
  line-height: 1.35;
}
h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}
h3 {
  font-weight: 600;
}
button.selected {
  color: var(--pink);
  background: var(--pink-light);
}
.site-header {
  height: 65px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 20;
  box-shadow: 0 3px 15px #2333440b;
}
.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #24242a;
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -1.1px;
  white-space: nowrap;
}
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 30px;
  position: relative;
  color: white;
  background: var(--pink);
  border-radius: 12px 4px 4px 12px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -3px;
  padding-right: 3px;
}
.brand-icon:after {
  position: absolute;
  content: "";
  border: 5px solid transparent;
  border-bottom: 8px solid #ffb63b;
  right: -3px;
  bottom: -3px;
  transform: rotate(12deg);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 23px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a.active,
.library-link.active {
  color: var(--pink);
}
.chevron {
  font-size: 15px;
}
.header-search {
  display: flex;
  align-items: center;
  background: var(--soft);
  padding: 6px 9px;
  border-radius: 7px;
  margin-left: auto;
  gap: 5px;
  width: 166px;
  color: #9b9ca3;
  flex-shrink: 0;
}
.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  min-width: 0;
  color: var(--text);
}
.header-search:focus-within {
  box-shadow: 0 0 0 2px #f32c9833;
}
.library-link {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 15px;
}
.shelf-count {
  font-size: 11px;
  color: var(--pink);
}
.free-label {
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--pink-light);
  color: var(--pink);
  font-size: 12px;
  white-space: nowrap;
}
.mobile-menu.icon-button {
  display: none;
}
.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  border-radius: 5px;
}
.genre-strip {
  display: flex;
  gap: 27px;
  align-items: center;
  padding: 26px 0 24px;
  white-space: nowrap;
  overflow: auto;
  scrollbar-width: none;
}
.genre-strip a.active {
  color: var(--pink);
  font-weight: 600;
}
.home-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 305px;
  gap: 28px;
}
.spotlight-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 35px;
  overflow: hidden;
  min-height: 360px;
  padding: 35px 33px;
  background: linear-gradient(110deg, #fff2f7 0%, #f9edf5 70%, #f6e7ee 100%);
  border-radius: 8px;
}
.spotlight-copy {
  position: relative;
  z-index: 2;
  max-width: 390px;
  flex: 1;
}
.editors-note {
  color: #aa526d;
  font-size: 13px;
}
.spotlight-copy h1 {
  font-family: Georgia, serif;
  font-size: 35px;
  line-height: 1.18;
  margin: 14px 0 12px;
  letter-spacing: -0.5px;
  max-width: 330px;
}
.spotlight-author {
  font-size: 12px;
  color: #876e79;
  margin: 0 0 15px;
}
.spotlight-description {
  font-size: 13px;
  line-height: 1.7;
  color: #70646c;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 22px;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: white;
  background: var(--pink);
  border: 1px solid var(--pink);
  border-radius: 4px;
  padding: 10px 25px;
  font-weight: 600;
  min-height: 42px;
  cursor: pointer;
  white-space: nowrap;
}
.primary-button:hover {
  background: var(--pink-dark);
  color: white;
  border-color: var(--pink-dark);
}
.primary-button.large {
  min-width: 150px;
  font-size: 19px;
  padding: 8px 30px;
}
.spotlight-footnote {
  display: block;
  font-size: 10px;
  color: #927c86;
  margin-top: 12px;
}
.hero-cover {
  position: relative;
  z-index: 1;
  width: 180px;
  flex-shrink: 0;
  transform: rotate(6deg);
  box-shadow: 8px 14px 25px #5e2d4e30;
  border-radius: 4px;
  overflow: hidden;
}
.hero-cover img {
  width: 100%;
  aspect-ratio: 2/3;
}
.hero-orbit {
  width: 300px;
  height: 300px;
  border: 1px solid #e9c8d8;
  position: absolute;
  right: -65px;
  bottom: -70px;
  border-radius: 50%;
  box-shadow:
    0 0 0 30px #f9e4ef,
    0 0 0 31px #edcddd;
}
.rising-panel {
  padding-top: 2px;
}
.rising-panel h2 {
  font-size: 20px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 17px;
}
.rising-panel h2 span {
  color: var(--pink);
}
.rising-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: center;
}
.rising-row img {
  width: 42px;
  height: 58px;
  object-fit: cover;
  border-radius: 3px;
}
.rising-row > span:last-child {
  min-width: 0;
  flex: 1;
}
.rising-row strong {
  font-weight: 500;
  font-size: 13px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rising-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.rising-row small:first-of-type {
  color: var(--pink);
}
.rising-number {
  font-size: 19px;
  font-style: italic;
  width: 15px;
  color: #aaa;
  font-weight: 600;
}
.rising-row:nth-child(2) .rising-number {
  color: #f0924b;
}
.rising-row:nth-child(3) .rising-number {
  color: #b5a0c4;
}
.home-section {
  margin: 38px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > a {
  font-size: 12px;
  color: #8e8e97;
  display: flex;
  gap: 3px;
  align-items: center;
}
.section-heading > a:hover {
  color: var(--pink);
}
.section-heading .icon {
  width: 13px;
  height: 13px;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 30px;
}
.book-grid.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.book-card {
  display: flex;
  gap: 11px;
  min-width: 0;
  position: relative;
  align-items: flex-start;
}
.cover-link {
  width: 100px;
  flex: 0 0 100px;
  border-radius: 4px;
  overflow: hidden;
}
.book-cover {
  width: 100%;
  aspect-ratio: 100/136;
  object-fit: cover;
  transition: transform 0.2s;
}
.cover-link:hover .book-cover {
  transform: scale(1.03);
}
.book-info {
  flex: 1;
  min-width: 0;
}
.book-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
  margin-bottom: 5px;
  color: #101b2b;
}
.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--pink);
  font-size: 11px;
  line-height: 1.6;
}
.book-info .tags {
  height: 18px;
  overflow: hidden;
}
.author {
  font-size: 11px;
  color: #6b7583;
  margin: 3px 0 5px;
}
.book-blurb {
  font-size: 12px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}
.book-stats {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8e8e96;
  font-size: 11px;
  line-height: 1.8;
  flex-wrap: wrap;
}
.book-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.book-stats .icon {
  width: 13px;
  height: 13px;
  color: #b7bbc1;
}
.rating {
  color: #f1a921;
}
.stat-separator {
  color: #dedee3;
}
.status-dot {
  font-size: 9px;
}
.status-dot:before {
  content: "";
  width: 4px;
  height: 4px;
  background: #c4c5ca;
  border-radius: 50%;
}
.status-dot.complete:before {
  background: #65a983;
}
.three-columns .cover-link {
  width: 95px;
  flex-basis: 95px;
}
.three-columns .book-title {
  font-size: 14px;
}
.three-columns .status-dot {
  display: none;
}
.trending-section {
  padding-top: 2px;
}
.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}
.trending-card {
  display: flex;
  gap: 15px;
  padding: 19px 15px;
  background: #fbf9fa;
  border-radius: 6px;
  min-width: 0;
}
.trending-card > a {
  flex: 0 0 90px;
}
.trending-card img {
  width: 90px;
  aspect-ratio: 2/3;
  border-radius: 4px;
}
.trending-card > div {
  min-width: 0;
}
.trending-card .book-title {
  white-space: normal;
  font-size: 15px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.genre-link {
  font-size: 11px;
  color: var(--pink);
}
.trending-card p {
  font-size: 10px;
  color: #6b6e79;
  margin: 6px 0;
}
.text-button {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: var(--pink);
  gap: 6px;
  margin-top: 6px;
}
.text-button .icon {
  width: 12px;
  height: 12px;
}
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px;
}
.shelf-card {
  min-width: 0;
}
.shelf-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 5px;
}
.shelf-card h3 {
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shelf-card p {
  font-size: 11px;
  color: #7d8390;
  margin-bottom: 3px;
}
.shelf-card .book-stats {
  justify-content: space-between;
  font-size: 10px;
}
.browse-page {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 60px 0;
}
.filter-sidebar {
  padding-right: 0;
}
.type-tabs .filter-pills {
  gap: 18px;
}
.type-tabs .filter-pills button {
  background: transparent;
  padding: 0 0 6px;
  border-radius: 0;
  font-size: 19px;
  font-weight: 600;
  color: #5d5d65;
  position: relative;
}
.type-tabs .filter-pills button.selected {
  color: #141e2b;
}
.type-tabs .filter-pills button.selected:after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 25px;
  height: 3px;
  background: var(--pink);
  left: 50%;
  transform: translateX(-50%);
}
.sidebar-group {
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--line);
}
.sidebar-group h3 {
  font-size: 14px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
}
.sidebar-group h3 > span:not(.count) {
  margin-left: auto;
  font-size: 18px;
  color: #7d818b;
}
.sidebar-group .count {
  font-size: 11px;
  font-weight: 400;
  color: #a5a9af;
  padding-left: 4px;
}
.genre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 25px;
  row-gap: 8px;
}
.genre-grid button {
  font-size: 13px;
  padding: 3px 10px;
  text-align: left;
  border-radius: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}
.genre-grid button.selected {
  min-width: 72px;
  width: fit-content;
  text-align: center;
}
.sidebar-group .filter-pills {
  gap: 6px;
}
.sidebar-group .filter-pills button {
  font-size: 12px;
}
.browse-results {
  min-width: 0;
}
.browse-results > h1 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 600;
  color: #424650;
}
.browse-intro {
  border: 1px solid #ffe0ec;
  border-radius: 8px;
  padding: 16px;
  background: #fff9fc;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 20px;
  color: #505968;
}
.filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.filter-heading h2,
.sort-heading {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #50535b;
}
.reset-filters {
  font-size: 10px;
  color: #92949c;
  padding: 0;
}
.filter-label {
  font-size: 11px;
  color: #9a9ca5;
  margin: 10px 0 20px;
}
.filter-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-pills button {
  padding: 6px 14px;
  background: var(--soft);
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
}
.filter-pills button.selected {
  background: var(--pink-light);
}
.sort-heading {
  border-bottom: 1px solid var(--line);
  padding: 0 0 10px;
  margin: 30px 0 18px;
}
.result-count {
  font-size: 10px;
  color: #9a9fa8;
  margin: 17px 0 16px;
}
.browse-results .book-grid {
  column-gap: 28px;
  row-gap: 28px;
}
.browse-results .book-title {
  font-size: 16px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 45px 0;
}
.pagination button {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination button.current {
  background: var(--pink);
  border-color: var(--pink);
  color: white;
}
.pagination .icon {
  width: 15px;
  height: 15px;
}
.page-heading {
  margin: 32px 0;
}
.page-heading h1 {
  font-size: 27px;
  margin: 0 0 10px;
}
.page-heading > p {
  color: #858b95;
  font-size: 13px;
}
.ranking-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
}
.ranking-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ranking-tabs a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border-radius: 5px;
}
.ranking-tabs a.selected {
  color: var(--pink);
  background: var(--pink-light);
}
.ranking-tabs .icon {
  width: 15px;
  height: 15px;
}
.ranking-results > h2 {
  margin: 0 0 28px;
}
.ranking-books .book-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  padding-left: 50px;
}
.ranking-books .book-card:first-child {
  padding-top: 0;
}
.rank-number {
  position: absolute;
  left: 0;
  top: 24px;
  font-size: 25px;
  color: #b0b2bb;
  font-style: italic;
  font-weight: 600;
}
.ranking-books .book-card:first-child .rank-number {
  top: 0;
}
.rank-1 {
  color: #ee8e3c;
}
.rank-2 {
  color: #a68bb8;
}
.rank-3 {
  color: #c79875;
}
.ranking-books .book-blurb {
  -webkit-line-clamp: 3;
}
.ranking-books .cover-link {
  flex-basis: 100px;
}
.ranking-books .book-title {
  font-size: 18px;
}
.detail-hero {
  background: #f2f4f7;
  position: relative;
  overflow: hidden;
  padding-bottom: 34px;
}
.detail-hero:before {
  content: "";
  position: absolute;
  top: -350px;
  left: -20px;
  width: 600px;
  height: 600px;
  background: linear-gradient(100deg, #e6c7dc, #f2e1ed);
  border-radius: 50%;
  pointer-events: none;
}
.detail-hero:after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: -150px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: #ffedcf;
  opacity: 0.65;
  pointer-events: none;
}
.detail-hero .page {
  position: relative;
  z-index: 1;
  max-width: 1080px;
}
.breadcrumbs {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 25px 0;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
}
.breadcrumbs > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #6c7380;
}
.detail-top {
  display: flex;
  gap: 75px;
  align-items: center;
}
.detail-cover {
  width: 260px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 18px 28px #29304428;
}
.detail-info {
  flex: 1;
  padding-bottom: 12px;
}
.detail-status {
  font-size: 11px;
  color: #7f8493;
}
.detail-info h1 {
  font-size: 31px;
  margin: 9px 0 16px;
  max-width: 600px;
}
.detail-author {
  font-size: 14px;
  margin-bottom: 8px;
}
.detail-author > span {
  color: #808795;
  margin-left: 20px;
}
.detail-update {
  font-size: 12px;
  color: #8e939e;
  margin-bottom: 28px;
}
.detail-stats {
  display: flex;
  gap: 38px;
  align-items: center;
  margin: 0 0 30px;
}
.detail-stats > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  font-size: 12px;
  color: #8d95a4;
}
.detail-stats strong {
  font-size: 22px;
  color: #363e4d;
  font-weight: 500;
}
.detail-stats strong.stars {
  font-size: 25px;
  letter-spacing: 1px;
  color: #ffbc39;
}
.detail-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.shelf-button {
  color: var(--pink);
  font-size: 16px;
  padding: 10px 0;
}
.free-note {
  color: #9b92a1;
  font-size: 11px;
  margin: 17px 0 0;
}
.detail-body {
  max-width: 1080px;
}
.detail-tabs {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 30px 0 45px;
  font-size: 27px;
  font-weight: 600;
}
.detail-tabs a {
  padding-bottom: 5px;
  position: relative;
  color: #afb0b6;
}
.detail-tabs a.active {
  color: #111722;
}
.detail-tabs a.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pink);
  border-radius: 2px;
}
.detail-tabs > span {
  font-size: 22px;
  font-weight: 400;
  color: #bdbec4;
}
.detail-tabs small {
  font-size: 15px;
}
.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 60px;
}
.bar-heading {
  font-size: 23px;
  padding-left: 12px;
  position: relative;
  margin-bottom: 22px;
}
.bar-heading:before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  background: var(--pink);
  border-radius: 3px;
}
.detail-tags {
  margin: 0 0 20px;
  font-size: 12px;
}
.detail-tags a {
  padding: 3px 10px;
  background: #fff0f7;
  border-radius: 4px;
}
.synopsis {
  font-size: 14px;
  line-height: 1.9;
  color: #5c6370;
  margin-bottom: 18px;
}
.synopsis + .bar-heading {
  margin-top: 42px;
}
.chapter-preview {
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.9;
  color: #555d69;
}
.latest-chapters {
  margin: 45px 0;
}
.latest-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.latest-row small {
  color: var(--muted);
  white-space: nowrap;
}
.recommend-aside > h2 {
  font-size: 19px;
  margin-bottom: 25px;
}
.recommend-aside .book-card {
  margin-bottom: 24px;
}
.recommend-aside .cover-link {
  flex-basis: 70px;
  width: 70px;
}
.recommend-aside .book-title {
  font-size: 13px;
  white-space: normal;
  line-height: 1.4;
}
.recommend-aside .tags,
.recommend-aside .book-blurb,
.recommend-aside .status-dot,
.recommend-aside .stat-separator {
  display: none;
}
.recommend-aside .author {
  font-size: 10px;
}
.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
  margin-bottom: 50px;
}
.chapter-link {
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.chapter-link small {
  color: #9a9da5;
  white-space: nowrap;
}
.chapter-link .icon {
  width: 12px;
  height: 12px;
}
.chapter-link.reading {
  color: var(--pink);
  background: #fff8fb;
}
.catalog-section .section-heading > span {
  font-size: 12px;
  color: #8e929a;
}
.empty-state {
  text-align: center;
  padding: 65px 20px 80px;
  max-width: 600px;
  margin: auto;
}
.empty-book {
  color: #f1abce;
  display: inline-flex;
  background: #fff1f8;
  border-radius: 50%;
  padding: 25px;
  margin-bottom: 20px;
}
.empty-book .icon {
  width: 40px;
  height: 40px;
}
.empty-state h2 {
  margin-bottom: 12px;
  font-size: 23px;
}
.empty-state p {
  color: #858b95;
  line-height: 1.7;
  margin: 0 0 25px;
}
.continue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.continue-card {
  display: flex;
  gap: 16px;
  background: #fff8fb;
  border-radius: 7px;
  padding: 18px;
  border: 1px solid #ffe8f3;
}
.continue-card img {
  width: 70px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 3px;
}
.continue-card > div {
  flex: 1;
  min-width: 0;
}
.continue-card h3 {
  font-size: 14px;
  margin: 3px 0 8px;
  line-height: 1.4;
}
.continue-card p {
  font-size: 11px;
  color: #8c8492;
  margin-bottom: 10px;
}
.continue-card small {
  color: var(--pink);
  font-size: 10px;
}
.continue-card .icon {
  width: 12px;
  height: 12px;
}
.progress-track {
  height: 3px;
  background: #f4dce7;
  margin-bottom: 10px;
  border-radius: 2px;
}
.progress-track > span {
  display: block;
  height: 100%;
  background: var(--pink);
  border-radius: 2px;
}
.remove-shelf {
  font-size: 10px;
  color: #97909a;
  padding: 5px 0;
}
.remove-shelf:hover {
  color: var(--pink);
}
.subtle {
  color: #a7a7af;
  font-size: 16px;
}
.local-storage-note {
  font-size: 11px;
  color: #9295a0;
  text-align: center;
  margin: 35px 0;
}
.site-footer {
  background: #f8f9fa;
  margin-top: 65px;
  padding: 42px 0 0;
  color: #5f6775;
}
.footer-inner {
  width: min(1200px, calc(100% - 48px));
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1fr;
  gap: 40px;
}
.wordmark.small {
  font-size: 23px;
}
.footer-inner h4 {
  font-size: 13px;
  font-weight: 600;
  color: #3a4350;
  margin: 3px 0 15px;
}
.footer-inner p,
.footer-inner a:not(.wordmark) {
  font-size: 11px;
  line-height: 1.9;
  display: block;
  margin: 0 0 8px;
}
.footer-inner > div:first-child p {
  margin-top: 15px;
}
.footer-inner > div:first-child .fine {
  font-size: 10px;
  color: #a4a6ae;
  margin-top: 10px;
}
.copyright {
  max-width: 1200px;
  margin: 30px auto 0;
  border-top: 1px solid #e9eaed;
  padding: 18px 0;
  font-size: 10px;
  color: #9a9da6;
}
.loading-state {
  padding: 100px 0;
  min-height: 70vh;
  text-align: center;
  color: #9a9daa;
}
.loading-dots {
  color: var(--pink);
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #263043;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
  z-index: 100;
  font-size: 13px;
  max-width: 90vw;
  box-shadow: 0 5px 20px #0002;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.reader-page {
  min-height: calc(100vh - 65px);
  padding-bottom: 65px;
  --reader-bg: #f3efe9;
  --paper-bg: #fffdf8;
  --reading-color: #3f3932;
  background: var(--reader-bg);
  color: var(--reading-color);
}
.reader-page.theme-white {
  --reader-bg: #f3f4f5;
  --paper-bg: white;
  --reading-color: #333941;
}
.reader-page.theme-night {
  --reader-bg: #17191d;
  --paper-bg: #25272d;
  --reading-color: #cbc6bd;
}
.reader-nav {
  width: min(930px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  height: 65px;
  font-size: 12px;
  color: #88827a;
}
.reader-nav > a {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow: hidden;
}
.reader-nav > a > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reader-nav > span {
  white-space: nowrap;
}
.reader-layout {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.reading-paper {
  max-width: 840px;
  margin: auto;
  background: var(--paper-bg);
  padding: 55px 65px 40px;
  border: 1px solid #88888810;
  box-shadow: 0 3px 20px #00000003;
}
.reader-chapter-heading > p {
  font-size: 12px;
  color: #9d948a;
  margin-bottom: 12px;
}
.reader-chapter-heading h1 {
  font-size: 25px;
  font-family: Georgia, serif;
  font-weight: 500;
  margin-bottom: 15px;
}
.chapter-meta {
  font-size: 11px;
  color: #9b9287;
  display: flex;
  gap: 12px;
  padding-bottom: 26px;
  border-bottom: 1px solid #88888820;
  margin-bottom: 35px;
}
.chapter-text {
  font-family: var(--reading-font, Georgia, serif);
  font-size: var(--reading-size, 20px);
  line-height: 1.95;
  overflow-wrap: break-word;
}
.chapter-text p {
  margin-bottom: 24px;
}
.reader-tools {
  position: fixed;
  margin-left: -13px;
  top: 155px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 64px;
  border: 1px solid #88888815;
  border-radius: 7px;
  overflow: hidden;
  background: var(--paper-bg);
}
.reader-tools > button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 15px 4px;
  color: #938b81;
  border-bottom: 1px solid #88888815;
  font-size: 10px;
}
.reader-tools .font-icon {
  font-size: 19px;
  line-height: 19px;
}
.reader-tools > button:last-child {
  border: 0;
}
.reader-tools > button:hover {
  color: var(--pink);
}
.reader-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid #88888820;
  font-size: 12px;
}
.secondary-button {
  border: 1px solid #88888835;
  padding: 10px 15px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.book-end {
  text-align: center;
  color: #9c9290;
  font-size: 12px;
  padding: 35px 0 10px;
}
.reader-dialog {
  border: 0;
  border-radius: 9px;
  max-width: min(530px, calc(100vw - 35px));
  width: 530px;
  max-height: 80vh;
  padding: 25px;
  color: var(--text);
  box-shadow: 0 15px 80px #0003;
}
.reader-dialog::backdrop {
  background: #171d3460;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.dialog-heading h2 {
  font-size: 20px;
  margin: 0;
}
.dialog-heading button {
  font-size: 27px;
  color: #9a9eaa;
  padding: 0 5px;
}
.reader-dialog > p {
  color: #8c919a;
  font-size: 12px;
}
.dialog-chapters {
  display: flex;
  flex-direction: column;
  max-height: 52vh;
  overflow: auto;
}
.dialog-chapters a {
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.dialog-chapters a.active {
  background: var(--pink-light);
  color: var(--pink);
}
.settings-dialog {
  width: 480px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.setting-row:last-child {
  border: 0;
}
.setting-row > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.setting-row button {
  border: 1px solid #ddd;
  padding: 6px 10px;
  border-radius: 4px;
}
.setting-row button.selected {
  border-color: var(--pink);
  color: var(--pink);
}
.setting-row output {
  width: 38px;
  text-align: center;
  color: #8e929a;
}
.theme-options .theme-white {
  background: #fff;
}
.theme-options .theme-paper {
  background: #fff9ed;
}
.theme-options .theme-night {
  background: #282a30;
  color: #ddd;
}
.setting-row .theme-options {
  gap: 6px;
}
.setting-row .theme-options button {
  font-size: 11px;
  padding: 6px 8px;
}
@media (min-width: 1500px) {
  .header-inner {
    max-width: 1200px;
  }
  .page {
    --page: 1200px;
  }
  .browse-page {
    padding-left: 0;
    padding-right: 0;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
  }
}
@media (max-width: 1250px) {
  .header-inner {
    padding: 0 24px;
    gap: 20px;
  }
  .main-nav {
    gap: 17px;
    font-size: 13px;
  }
  .wordmark {
    font-size: 23px;
  }
  .free-label {
    display: none;
  }
  .browse-page {
    padding-left: 0;
    padding-right: 0;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 25px;
  }
  .detail-top {
    gap: 50px;
  }
  .three-columns .cover-link {
    width: 80px;
    flex-basis: 80px;
  }
  .home-spotlight {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .spotlight-main {
    gap: 20px;
    padding: 30px;
  }
  .hero-cover {
    width: 160px;
  }
  .shelf-grid {
    gap: 24px;
  }
}
@media (max-width: 1000px) {
  .header-inner {
    gap: 18px;
  }
  .main-nav {
    gap: 16px;
  }
  .main-nav > a:nth-child(4) {
    display: none;
  }
  .home-spotlight {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 22px;
  }
  .spotlight-copy h1 {
    font-size: 29px;
  }
  .spotlight-main {
    padding: 25px;
    gap: 16px;
  }
  .hero-cover {
    width: 135px;
  }
  .spotlight-footnote {
    font-size: 9px;
  }
  .three-columns .book-title {
    font-size: 13px;
  }
  .book-grid.three-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .trending-card > a {
    flex-basis: 65px;
  }
  .trending-card img {
    width: 65px;
  }
  .trending-card {
    gap: 10px;
    padding: 15px 10px;
  }
  .shelf-grid {
    gap: 20px;
  }
  .browse-page {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .genre-grid {
    column-gap: 12px;
  }
  .genre-grid button {
    padding-left: 5px;
    padding-right: 5px;
    font-size: 12px;
  }
  .browse-results .book-grid {
    grid-template-columns: 1fr;
  }
  .browse-results .cover-link {
    width: 100px;
    flex-basis: 100px;
  }
  .detail-cover {
    width: 220px;
  }
  .detail-info h1 {
    font-size: 28px;
  }
  .detail-stats {
    gap: 25px;
  }
  .detail-columns {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 35px;
  }
  .continue-grid {
    grid-template-columns: 1fr 1fr;
  }
  .reader-tools {
    position: sticky;
    top: 90px;
    float: left;
    margin-left: 10px;
    width: 50px;
  }
  .reading-paper {
    margin-left: 80px;
    margin-right: 20px;
    padding: 40px;
  }
  .reader-layout {
    max-width: 940px;
  }
}
@media (max-width: 760px) {
  :root {
    font-size: 13px;
  }
  .page {
    width: calc(100% - 32px);
  }
  .site-header {
    height: 60px;
  }
  .header-inner {
    padding: 0 16px;
    gap: 14px;
  }
  .wordmark {
    font-size: 22px;
  }
  .brand-icon {
    width: 25px;
    height: 28px;
    font-size: 22px;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 9px 10px #0001;
    padding: 20px;
    gap: 22px;
    font-size: 14px;
  }
  .main-nav.open {
    display: flex;
    flex-wrap: wrap;
  }
  .main-nav > a:nth-child(4) {
    display: block;
  }
  .mobile-menu.icon-button {
    display: flex;
    padding: 4px;
  }
  .header-search {
    width: auto;
    min-width: 80px;
    max-width: 180px;
    flex: 1;
    padding: 6px;
  }
  .library-link {
    margin-left: auto;
  }
  .library-link > span:not(.shelf-count) {
    display: none;
  }
  .header-search input {
    font-size: 12px;
  }
  .genre-strip {
    padding: 20px 0;
    gap: 23px;
    font-size: 12px;
  }
  .home-spotlight {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .spotlight-main {
    min-height: 290px;
    padding: 28px;
  }
  .hero-cover {
    width: 135px;
  }
  .spotlight-copy h1 {
    font-size: 29px;
  }
  .spotlight-description {
    font-size: 12px;
  }
  .rising-panel {
    display: none;
  }
  .home-section {
    margin: 30px 0;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .book-grid.three-columns {
    gap: 22px 20px;
  }
  .three-columns .cover-link {
    width: 75px;
    flex-basis: 75px;
  }
  .three-columns .book-card {
    gap: 9px;
  }
  .three-columns .book-title {
    font-size: 13px;
  }
  .three-columns .tags {
    display: none;
  }
  .book-blurb {
    font-size: 11px;
  }
  .book-stats {
    font-size: 10px;
    gap: 5px;
  }
  .three-columns .book-stats .stat-separator {
    display: none;
  }
  .three-columns .book-stats {
    gap: 4px;
  }
  .trending-grid {
    grid-template-columns: 1fr;
  }
  .trending-card {
    padding: 18px;
    gap: 18px;
  }
  .trending-card > a {
    flex-basis: 85px;
  }
  .trending-card img {
    width: 85px;
  }
  .trending-card .book-title {
    font-size: 16px;
  }
  .trending-card p {
    font-size: 11px;
  }
  .shelf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 18px;
  }
  .shelf-card h3 {
    font-size: 13px;
  }
  .shelf-card p {
    font-size: 10px;
  }
  .shelf-card .book-stats {
    font-size: 9px;
    gap: 3px;
  }
  .browse-page {
    display: block;
    padding-top: 20px;
  }
  .filter-sidebar {
    margin-bottom: 25px;
  }
  .type-tabs {
    margin-bottom: 16px;
  }
  .type-tabs .filter-pills button {
    font-size: 17px;
  }
  .sidebar-group {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }
  .sidebar-group h3 {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .sidebar-group .count,
  .sidebar-group h3 > span:not(.count) {
    display: none;
  }
  .genre-grid {
    display: flex;
    overflow: auto;
    gap: 6px;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }
  .genre-grid button {
    flex-shrink: 0;
    padding: 4px 10px;
    font-size: 12px;
  }
  .sidebar-group:nth-child(3) {
    display: none;
  }
  .sidebar-group:last-child {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 13px 0;
  }
  .sidebar-group:last-child h3 {
    margin: 0;
    white-space: nowrap;
  }
  .sidebar-group .filter-pills {
    gap: 8px;
  }
  .sidebar-group .filter-pills button {
    padding: 5px 10px;
  }
  .browse-results > h1 {
    font-size: 18px;
  }
  .browse-intro {
    font-size: 11px;
    padding: 13px;
    margin-bottom: 18px;
  }
  .filter-heading h2,
  .sort-heading {
    font-size: 15px;
  }
  .filter-label {
    margin-bottom: 10px;
  }
  .filter-pills {
    gap: 8px;
  }
  .filter-pills button {
    font-size: 11px;
    padding: 6px 12px;
  }
  .sort-heading {
    margin-top: 20px;
    margin-bottom: 13px;
  }
  .browse-results .book-grid {
    gap: 24px;
  }
  .browse-results .book-title {
    font-size: 16px;
  }
  .browse-results .cover-link {
    flex-basis: 90px;
  }
  .browse-results .book-blurb {
    font-size: 12px;
  }
  .browse-results .author {
    font-size: 11px;
  }
  .browse-results .book-stats {
    font-size: 10px;
  }
  .browse-results .book-info .tags {
    font-size: 10px;
  }
  .result-count {
    margin-bottom: 18px;
  }
  .ranking-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .ranking-tabs {
    flex-direction: row;
    overflow: auto;
    gap: 6px;
  }
  .ranking-tabs a {
    font-size: 11px;
    white-space: nowrap;
    padding: 9px 12px;
    background: #f6f6f8;
  }
  .ranking-tabs .icon {
    display: none;
  }
  .page-heading {
    margin: 25px 0;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .ranking-books .book-card {
    padding-left: 35px;
  }
  .ranking-books .book-title {
    font-size: 16px;
  }
  .rank-number {
    font-size: 22px;
  }
  .ranking-books .cover-link {
    flex-basis: 85px;
  }
  .ranking-results h2 {
    font-size: 19px;
  }
  .detail-hero {
    padding-bottom: 26px;
  }
  .detail-hero:before {
    width: 420px;
    height: 420px;
    top: -290px;
  }
  .breadcrumbs {
    font-size: 10px;
    padding: 20px 0;
    gap: 9px;
  }
  .detail-top {
    gap: 23px;
    align-items: flex-start;
  }
  .detail-cover {
    width: 145px;
    flex-shrink: 0;
  }
  .detail-info {
    padding: 0;
  }
  .detail-info h1 {
    font-size: 23px;
    margin: 6px 0 12px;
  }
  .detail-status {
    font-size: 10px;
  }
  .detail-author {
    font-size: 11px;
    margin-bottom: 6px;
  }
  .detail-author > span {
    margin-left: 5px;
  }
  .detail-update {
    font-size: 9px;
    margin-bottom: 15px;
  }
  .detail-stats {
    gap: 15px;
    flex-wrap: wrap;
    margin: 0 0 16px;
  }
  .detail-stats > div {
    font-size: 9px;
    gap: 2px;
  }
  .detail-stats strong {
    font-size: 16px;
  }
  .detail-stats strong.stars {
    font-size: 17px;
  }
  .detail-stats > div:last-child {
    display: none;
  }
  .detail-actions {
    gap: 12px;
    flex-wrap: wrap;
  }
  .primary-button.large {
    min-width: 100px;
    font-size: 14px;
    min-height: 34px;
    padding: 5px 17px;
  }
  .shelf-button {
    font-size: 12px;
    padding: 3px 0;
  }
  .free-note {
    font-size: 9px;
    margin-top: 10px;
  }
  .detail-tabs {
    font-size: 23px;
    margin: 22px 0 30px;
    gap: 23px;
  }
  .detail-columns {
    display: block;
  }
  .recommend-aside {
    display: none;
  }
  .bar-heading {
    font-size: 21px;
  }
  .synopsis {
    font-size: 13px;
  }
  .detail-tags {
    font-size: 11px;
  }
  .chapter-preview {
    font-size: 16px;
  }
  .latest-row {
    font-size: 12px;
  }
  .latest-row small {
    font-size: 9px;
  }
  .chapter-grid {
    grid-template-columns: 1fr;
  }
  .catalog-section .section-heading h2 {
    font-size: 19px;
  }
  .catalog-section .section-heading > span {
    font-size: 10px;
  }
  .continue-grid {
    grid-template-columns: 1fr;
  }
  .continue-card img {
    width: 65px;
  }
  .library-page .shelf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .empty-state {
    padding: 45px 15px;
  }
  .empty-state h2 {
    font-size: 20px;
  }
  .site-footer {
    margin-top: 40px;
    padding-top: 30px;
  }
  .footer-inner {
    width: calc(100% - 32px);
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .footer-inner > div:first-child {
    grid-column: 1/-1;
  }
  .footer-inner > div:last-child {
    display: none;
  }
  .footer-inner h4 {
    font-size: 12px;
  }
  .copyright {
    width: calc(100% - 32px);
    margin-top: 20px;
    font-size: 9px;
  }
  .footer-inner > div:first-child p {
    margin-top: 8px;
  }
  .reader-nav {
    height: 55px;
    gap: 12px;
    width: calc(100% - 32px);
    font-size: 10px;
  }
  .reader-nav .icon {
    width: 16px;
    height: 16px;
  }
  .reader-layout {
    display: flex;
    flex-direction: column;
  }
  .reader-tools {
    float: none;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    margin: 0;
    border: 0;
    border-radius: 0;
    border-top: 1px solid #8882;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 15;
    box-shadow: 0 -3px 18px #00000008;
  }
  .reader-tools > button {
    flex: 1;
    padding: 10px 5px 7px;
    border: 0;
    gap: 3px;
    font-size: 9px;
  }
  .reading-paper {
    margin: 0;
    width: 100%;
    max-width: none;
    padding: 30px 23px;
    border: 0;
    box-shadow: none;
  }
  .reader-chapter-heading h1 {
    font-size: 23px;
  }
  .chapter-text {
    line-height: 1.9;
  }
  .reader-pagination {
    flex-wrap: wrap;
    font-size: 11px;
    gap: 10px;
  }
  .reader-pagination .primary-button,
  .reader-pagination .secondary-button {
    padding: 10px 12px;
    gap: 6px;
  }
  .reader-pagination .icon {
    width: 14px;
    height: 14px;
  }
  .reader-page {
    padding-bottom: 70px;
  }
  .is-reading .site-header {
    position: relative;
  }
  .reader-dialog {
    padding: 20px;
  }
  .setting-row {
    gap: 10px;
  }
  .reader-dialog .setting-row > div {
    gap: 7px;
  }
}
@media (max-width: 420px) {
  .header-inner {
    gap: 10px;
  }
  .header-search {
    max-width: 110px;
  }
  .wordmark {
    font-size: 20px;
  }
  .library-link .icon {
    width: 18px;
    height: 18px;
  }
  .hero-cover {
    width: 110px;
  }
  .spotlight-main {
    padding: 24px 18px;
    gap: 14px;
  }
  .spotlight-copy h1 {
    font-size: 25px;
  }
  .spotlight-description {
    -webkit-line-clamp: 3;
    font-size: 11px;
  }
  .spotlight-author {
    font-size: 10px;
  }
  .spotlight-copy .primary-button {
    padding: 8px 17px;
    font-size: 12px;
  }
  .book-grid.three-columns {
    grid-template-columns: 1fr;
  }
  .three-columns .cover-link {
    width: 90px;
    flex-basis: 90px;
  }
  .three-columns .book-title {
    font-size: 15px;
  }
  .three-columns .tags {
    display: flex;
  }
  .three-columns .author {
    font-size: 11px;
  }
  .three-columns .book-blurb {
    font-size: 12px;
  }
  .detail-cover {
    width: 115px;
  }
  .detail-top {
    gap: 18px;
  }
  .detail-info h1 {
    font-size: 20px;
  }
  .detail-stats {
    gap: 12px;
  }
  .detail-stats strong.stars {
    font-size: 14px;
  }
  .detail-stats > div {
    font-size: 8px;
  }
  .detail-update {
    font-size: 8px;
  }
  .detail-actions {
    gap: 8px;
  }
  .detail-info .free-note {
    font-size: 8px;
  }
  .book-stats .status-dot {
    font-size: 9px;
  }
  .shelf-grid {
    gap: 20px 13px;
  }
  .shelf-card h3 {
    font-size: 12px;
  }
  .shelf-card .book-stats {
    display: block;
  }
  .shelf-card .book-stats > span {
    margin-right: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.type-tabs .filter-pills button.selected {
  background: transparent;
}

.marketing-placements{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin:0 0 28px}.marketing-card{display:flex;align-items:center;gap:18px;padding:18px;background:#fff2f8;border:1px solid #f8d9e9;border-radius:12px;overflow:hidden}.marketing-card img{width:86px;height:110px;object-fit:cover;border-radius:5px}.marketing-card strong{display:block;font-size:21px;line-height:1.3}.marketing-card small{display:block;line-height:1.5;margin-top:8px;color:#68566a}

.reader-tag-picker{display:grid;gap:8px}.reader-tag-picker input,.reader-tag-picker select{width:100%;min-width:0;border:1px solid #ddd;border-radius:6px;padding:9px;background:#fff;color:#333}

/* Reader accounts follow the same quiet, warm reading palette. */
.account-signin { color: var(--primary, #bd5378); font-weight: 600; white-space: nowrap; }
.reader-account { display: flex; align-items: center; gap: 10px; }
.account-badge { display: grid; gap: 2px; max-width: 150px; font-size: 13px; }
.account-badge strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-badge small { font-size: 10px; color: #777; }
.account-signout { border: 0; background: transparent; color: #925268; cursor: pointer; font-size: 12px; white-space: nowrap; }
.account-page { display: grid; place-items: start center; min-height: 58vh; padding-top: 64px; padding-bottom: 72px; }
.account-card { width: min(100%, 460px); border: 1px solid #eee5e8; border-radius: 16px; background: #fff; padding: 36px; box-shadow: 0 12px 40px #54263a08; }
.account-card h1 { margin: 0 0 12px; font-size: 30px; }
.account-card p { line-height: 1.7; color: #71656a; }
.account-card a { overflow-wrap: anywhere; }
.account-card form { display: grid; gap: 10px; margin-top: 26px; }
.account-card label { font-weight: 600; font-size: 13px; margin-top: 8px; }
.account-card input { width: 100%; border: 1px solid #d8cdd2; border-radius: 6px; padding: 12px; font: inherit; background: white; color: #31252b; }
.account-card input:focus-visible { outline: 2px solid #b84d71; outline-offset: 2px; }
.account-card button { margin-top: 12px; justify-content: center; }
.account-card button:disabled { opacity: .6; cursor: wait; }
.account-card .account-error { color: #a32940; margin: 0; font-size: 14px; }
.account-card .account-eyebrow { letter-spacing: .14em; color: #ac5474; font-size: 11px; font-weight: 700; }
.account-note { font-size: 12px; line-height: 1.7; color: #80747a; margin: 20px 0; }
.locked-page { padding-top: 40px; padding-bottom: 72px; min-height: 65vh; }
.locked-page h1 { margin: 26px 0; }
.chapter-locked { padding: 36px; max-width: 760px; margin: 0 auto; border-radius: 12px; }
.chapter-locked h2 { margin-top: 0; }
.chapter-locked p { line-height: 1.7; }
.text-link { color: #a84f70; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .reader-account { gap: 6px; }
  .account-badge { max-width: 92px; font-size: 11px; }
  .account-badge small { font-size: 9px; }
  .account-signout { font-size: 11px; padding: 0; }
  .account-page { padding-top: 30px; }
  .account-card { padding: 24px; }
  .account-card h1 { font-size: 26px; }
  .chapter-locked { padding: 24px; }
}
@media (max-width: 480px) {
  .header-inner:has(.reader-account) .header-search { display: none; }
  .reader-account { margin-left: 0; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .header-inner:has(.reader-account) .header-search { display: none; }
}

/* Access labels describe the story, independently of the reader's subscription. */
.book-access-badge,.chapter-access-badge{display:inline-flex;align-items:center;width:fit-content;max-width:100%;padding:4px 8px;border:1px solid transparent;border-radius:5px;font:600 11px/1.2 Poppins,Arial,sans-serif;white-space:nowrap;letter-spacing:0;vertical-align:middle}
.access-free,.chapter-access-free{color:#12633f;background:#e9f7ef;border-color:#c5e5d4}
.access-member,.chapter-access-locked,.chapter-access-unlocked{color:#79520b;background:#fff2ce;border-color:#e7d09a}
.chapter-access-unlocked{background:#fff8e6;color:#78520d}
.access-overlay{position:absolute;top:6px;right:6px;z-index:2;box-shadow:0 1px 4px #00000020}
.cover-link,.shelf-card>a,.trending-card>a,.hero-cover{position:relative}
.detail-statuses{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.detail-statuses .detail-status{margin:0}
.book-access-note{display:grid;gap:5px;padding:12px 14px;border:1px solid;border-radius:7px;margin:16px 0 0;max-width:560px;font-size:12px;line-height:1.6}
.book-access-note strong{font-size:13px;font-weight:600}.book-access-note span{color:#555f65}
.access-note-member{background:#fffbf0;border-color:#ecdcba;color:#79520b}
.access-note-free{background:#f3fbf6;border-color:#d3e9dc;color:#12633f}
.chapter-link{align-items:flex-start}.chapter-link>span{min-width:0;overflow-wrap:anywhere}
.chapter-link small{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px;max-width:59%;white-space:normal;flex-shrink:0}
.chapter-action{white-space:nowrap}.chapter-link .chapter-access-badge{font-size:10px;padding:4px 6px}
.reader-chapter-heading>.chapter-access-badge{margin:0 0 12px}.chapter-locked>.chapter-access-badge{margin-bottom:8px}
.dialog-chapters>a{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.dialog-chapters>a>span:first-child{min-width:0;overflow-wrap:anywhere}.dialog-chapters .chapter-access-badge{font-size:9px;flex-shrink:0}
.rising-row .book-access-badge{font-size:9px;padding:2px 5px;margin-top:4px}.continue-card .book-access-badge{font-size:10px;margin:4px 0}
@media(max-width:600px){.access-overlay{top:4px;right:4px;font-size:9px;padding:3px 5px}.book-access-note{padding:10px 12px;font-size:11px}.chapter-link{gap:8px}.chapter-link small{max-width:61%;gap:5px}.chapter-link .chapter-access-badge{font-size:9px;padding:4px 5px}.chapter-action{font-size:10px}}

.shelf-card>a{display:block}

/* Membership keeps the reading account's typography and rose accents. */
.membership-card { width: min(100%, 560px); }
.membership-card .sandbox-label { display: inline-block; color: #79520b; background: #fff2ce; border: 1px solid #e7d09a; border-radius: 5px; padding: 5px 9px; font-size: 12px; font-weight: 600; margin-top: 0; }
.membership-plan { border-block: 1px solid #eee5e8; padding: 20px 0; margin: 22px 0; }
.membership-plan h2 { margin: 0; font-size: 19px; }
.membership-plan .membership-price { font-size: 28px; color: #31252b; font-weight: 600; margin: 8px 0; }
.membership-plan p:last-child { margin-bottom: 0; font-size: 13px; }
.membership-card .billing-status { border-left: 3px solid #b84d71; padding: 10px 14px; background: #fdf5f8; }
.membership-actions { display: grid; gap: 12px; margin-top: 24px; }
.membership-actions .primary-button,.membership-actions .secondary-button { margin: 0; justify-content: center; text-align: center; }
.membership-actions .text-link { text-align: center; padding: 8px 0; }
.membership-subscriptions { list-style: none; padding: 0; margin: 16px 0; }
.membership-subscriptions li { display: grid; gap: 6px; padding: 10px 0; font-size: 13px; }
.membership-subscriptions span { color: #71656a; }
.membership-actions :focus-visible,.reader-account a:focus-visible { outline: 2px solid #b84d71; outline-offset: 3px; }
.membership-lifecycle { border-top: 1px solid #eee5e8; margin-top: 20px; padding-top: 4px; }
.membership-lifecycle .billing-sync { padding: 12px; background: #f8f5f6; border-radius: 6px; font-size: 12px; }

/* Email verification and profile controls share the existing account panel. */
.account-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 24px 0; font-size: 13px; }
.account-links a { color: #a74064; text-decoration: underline; text-underline-offset: 3px; }
.account-links button { margin: 0; }
.account-card .account-success { color: #34744d; font-size: 14px; }
.account-field-hint { color: #71656a; font-size: 12px; line-height: 1.5; }
.account-code-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.account-code-row label { margin: 0; }
.account-code-row button { margin: 0; padding: 8px 12px; min-height: 40px; flex-shrink: 0; font-size: 12px; }
.account-card .account-code-status { margin: 0; font-size: 12px; }
.account-card h2 { margin: 0; font-size: 19px; }
.account-password-form { border-top: 1px solid #eee5e8; padding-top: 26px; }
.account-card .account-password-form .account-note { margin: 0; }
.account-card :focus-visible { outline: 2px solid #b84d71; outline-offset: 3px; }
.account-card button:disabled { cursor: default; }
@media (max-width: 400px) {
  .account-code-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .account-code-row button { width: 100%; }
  .account-links { gap: 14px; }
}
.account-identifiers { margin: 20px 0; font-size: 14px; }
.account-identifiers > div { margin: 10px 0; }
.account-identifiers dt { font-size: 12px; color: #71656a; margin-bottom: 4px; }
.account-identifiers dd { margin: 0; overflow-wrap: anywhere; }

/* Account navigation uses the same single-line rhythm as Library. */
.account-signin { display: inline-flex; align-items: center; height: 40px; color: var(--text); font-size: 13px; font-weight: 500; }
.reader-account { position: relative; flex: 0 0 auto; display: flex; align-items: center; }
.account-trigger { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0; border-radius: 0; font-size: 15px; font-weight: 500; line-height: 1.55; white-space: nowrap; }
.reader-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--pink-light); color: #bd186d; font-size: 13px; font-weight: 600; }
.account-trigger-chevron { color: var(--muted); font-size: 15px; }
.account-popover { position: absolute; top: calc(100% + 12px); right: 0; width: 272px; max-width: calc(100vw - 32px); padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 36px #19233314; z-index: 30; }
.account-popover[hidden] { display: none; }
.account-popover-identity { display: grid; gap: 5px; padding: 12px 12px 18px; border-bottom: 1px solid var(--line); }
.account-popover-identity strong { font-size: 14px; overflow-wrap: anywhere; line-height: 1.5; }
.account-popover-identity > span { font-size: 12px; color: #69717d; overflow-wrap: anywhere; }
.account-status { width: fit-content; display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 5px; background: var(--soft); color: #69717d; font-size: 11px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.account-status.is-active { color: #ad1865; background: var(--pink-light); }
.account-popover-identity .account-status { margin-top: 5px; }
.account-popover nav { display: grid; gap: 2px; padding: 8px 0; }
.account-popover nav a,.account-menu-signout { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 5px; font-size: 13px; }
.account-popover nav a:hover,.account-menu-signout:hover { color: var(--text); background: var(--soft); }
.account-menu-signout { border-top: 1px solid var(--line); border-radius: 0; color: #69717d; }

/* A reading account is a place to manage details, rather than a stack of forms. */
.account-center { --account-quiet: #69717d; width: min(1120px, calc(100% - 64px)); display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 64px; padding: 64px 0 88px; min-height: 690px; align-items: start; }
.account-sidebar { min-width: 0; }
.account-sidebar-identity { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 0 16px 26px; }
.account-large-avatar { width: 64px; height: 64px; font-size: 24px; margin-bottom: 9px; }
.account-sidebar-identity strong { max-width: 100%; overflow-wrap: anywhere; font-size: 16px; line-height: 1.5; font-weight: 600; }
.account-identity-label { max-width: 100%; font-size: 12px; color: var(--account-quiet); overflow-wrap: anywhere; }
.account-navigation-title { font-size: 12px; color: var(--muted); padding: 0 16px; margin: 0 0 10px; }
.account-sidebar nav { display: grid; gap: 6px; }
.account-sidebar nav a { min-height: 45px; display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 6px; color: #5c6471; font-size: 13px; }
.account-sidebar nav a .icon { width: 18px; height: 18px; }
.account-sidebar nav a:hover { background: var(--soft); color: var(--text); }
.account-sidebar nav a[aria-current="page"] { color: #c51b76; background: var(--pink-light); font-weight: 600; }
.account-back-library { display: flex; gap: 12px; align-items: center; margin-top: 28px; padding: 20px 16px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--account-quiet); }
.account-back-library .icon { width: 18px; height: 18px; }
.account-center-content { min-width: 0; }
.account-section-heading { padding-bottom: 30px; }
.account-section-heading h1 { margin: 0 0 9px; font-size: 28px; font-weight: 600; letter-spacing: -.5px; }
.account-section-heading p { color: var(--account-quiet); font-size: 13px; line-height: 1.8; margin: 0; }
.account-membership { padding: 28px 30px 30px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.account-membership-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.account-membership-heading h2 { font-size: 14px; font-weight: 500; margin: 0; }
.account-membership-heading .account-status { margin-left: auto; }
.account-membership-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--pink-light); color: #d51e81; }
.account-membership-title { font-size: 25px; line-height: 1.4; font-weight: 600; letter-spacing: -.4px; margin: 0 0 10px; }
.account-membership-description { color: var(--account-quiet); font-size: 13px; line-height: 1.9; max-width: 64ch; margin: 0 0 24px; }
.account-membership .primary-button { display: inline-flex; gap: 18px; padding: 10px 18px; min-height: 42px; font-size: 12px; }
.account-membership .primary-button .icon { width: 15px; height: 15px; }
.account-membership-dates { margin: 0 0 23px; padding: 2px 0; border-top: 1px solid var(--line); }
.account-membership-dates .account-detail-row { padding: 14px 0 0; border: 0; }
.account-membership-dates dt { font-size: 11px; color: var(--account-quiet); margin-bottom: 4px; }
.account-membership-dates dd { margin: 0; font-size: 12px; }
.account-overview-details { margin-top: 34px; }
.account-subheading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; }
.account-subheading h2 { font-size: 16px; margin: 0; }
.account-subheading a { display: inline-flex; align-items: center; gap: 7px; color: #69717d; font-size: 12px; }
.account-subheading a .icon { width: 14px; height: 14px; }
.account-overview-details dl,.account-details dl { margin: 0; }
.account-detail-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.account-detail-row > div { min-width: 0; }
.account-detail-row dt { color: var(--account-quiet); font-size: 12px; margin-bottom: 6px; }
.account-detail-row dd { margin: 0; color: var(--text); font-size: 14px; overflow-wrap: anywhere; line-height: 1.7; }
.account-library-shortcut { display: flex; gap: 15px; align-items: center; padding: 22px 0 0; margin-top: 5px; border-top: 1px solid var(--line); }
.account-library-icon { display: flex; justify-content: center; align-items: center; width: 42px; height: 42px; border-radius: 7px; background: var(--soft); }
.account-library-shortcut > span:nth-child(2) { display: grid; gap: 4px; }
.account-library-shortcut strong { font-size: 13px; font-weight: 500; }
.account-library-shortcut small { color: var(--account-quiet); font-size: 12px; }
.account-library-shortcut > .icon { margin-left: auto; width: 16px; height: 16px; }
.account-details { border-bottom: 1px solid var(--line); }
.account-edit-button { font-size: 12px; color: #d51e81; flex-shrink: 0; padding: 8px 0 8px 20px; }
.account-section-note { font-size: 12px; color: var(--account-quiet); line-height: 1.9; max-width: 68ch; margin: 22px 0 0; }
.account-section-note a { text-decoration: underline; text-underline-offset: 3px; }
.account-security-summary { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--line); padding: 26px 0; }
.account-security-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 auto; background: var(--soft); border-radius: 7px; }
.account-security-summary > div { flex: 1; min-width: 0; }
.account-security-summary h2 { font-size: 15px; margin: 1px 0 6px; }
.account-security-summary p { color: var(--account-quiet); font-size: 12px; line-height: 1.9; margin: 0; max-width: 38ch; }
.account-security-summary .secondary-button { flex-shrink: 0; font-size: 12px; padding: 9px 14px; min-height: 40px; }
.account-edit-form { display: grid; gap: 10px; padding: 24px 0 30px; border-top: 1px solid var(--line); max-width: 460px; }
.account-edit-form label { font-size: 12px; font-weight: 600; margin-top: 6px; }
.account-edit-form input { width: 100%; min-height: 44px; border: 1px solid #d8d9df; border-radius: 6px; padding: 10px 12px; background: white; color: var(--text); }
.account-edit-form .account-field-hint { margin: 0; color: var(--account-quiet); line-height: 1.8; }
.account-edit-form .account-error { font-size: 12px; color: #ad3143; margin: 0; }
.account-center .account-success { color: #287049; font-size: 12px; margin: 12px 0; }
.account-form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.account-form-actions button { font-size: 12px; min-height: 42px; padding: 10px 18px; }
@media (max-width: 900px) {
  .account-center { grid-template-columns: 190px minmax(0,1fr); gap: 32px; width: calc(100% - 48px); padding-top: 42px; }
  .account-sidebar-identity { padding-left: 12px; padding-right: 12px; }
  .account-sidebar nav a { padding-left: 12px; padding-right: 12px; font-size: 12px; gap: 9px; }
  .account-security-summary { flex-wrap: wrap; }
  .account-security-summary .secondary-button { margin-left: 58px; }
}
@media (max-width: 700px) {
  .account-trigger { width: 40px; justify-content: center; padding: 0; }
  .account-trigger-label,.account-trigger-chevron { display: none; }
  .account-popover { top: calc(100% + 10px); }
  .account-center { display: block; width: calc(100% - 40px); padding: 30px 0 52px; min-height: 65vh; }
  .account-sidebar-identity { display: grid; grid-template-columns: 48px minmax(0,1fr); column-gap: 12px; row-gap: 3px; padding: 0; align-items: center; }
  .account-large-avatar { grid-row: 1 / 3; width: 48px; height: 48px; font-size: 19px; margin: 0; }
  .account-sidebar-identity strong { font-size: 15px; align-self: end; }
  .account-sidebar-identity .account-identity-label { align-self: start; font-size: 11px; }
  .account-navigation-title,.account-back-library { display: none; }
  .account-sidebar nav { display: flex; flex-wrap: nowrap; gap: 18px; margin: 26px 0 30px; border-bottom: 1px solid var(--line); }
  .account-sidebar nav a { min-height: 42px; border-radius: 0; padding: 0 0 11px; font-size: 11px; border-bottom: 2px solid transparent; flex: 0 0 auto; white-space: nowrap; }
  .account-sidebar nav a .icon { display: none; }
  .account-sidebar nav a[aria-current="page"] { background: none; border-bottom-color: var(--pink); color: #bd186d; }
  .account-section-heading { padding-bottom: 23px; }
  .account-section-heading h1 { font-size: 24px; }
  .account-section-heading p { font-size: 12px; }
  .account-membership { padding: 22px; }
  .account-membership-heading { gap: 9px; margin-bottom: 22px; }
  .account-membership-heading h2 { font-size: 13px; }
  .account-membership-title { font-size: 23px; }
  .account-membership-description { font-size: 12px; }
  .account-detail-row { padding: 18px 0; }
  .account-subheading h2 { font-size: 15px; }
  .account-security-summary .secondary-button { margin-left: 0; }
  .account-security-summary > div { min-width: calc(100% - 58px); }
  .account-edit-form { max-width: none; }
}
@media (max-width: 380px) {
  .account-sidebar nav { gap: 14px; }
  .account-sidebar nav a { font-size: 10px; }
  .account-membership { padding: 19px; }
  .account-status { font-size: 10px; padding: 4px 7px; }
}

/* Library and Account are peer navigation controls, with identical text metrics. */
.library-link.header-utility,.account-trigger.header-utility { display: inline-flex; align-items: center; height: 40px; padding: 0; gap: 8px; font-size: 15px; font-weight: 500; line-height: 1.55; white-space: nowrap; }
.header-utility .header-utility-label { font-size: inherit; font-weight: inherit; line-height: inherit; }
.header-utility > .icon,.account-user-icon,.account-user-icon > .icon { width: 22px; height: 22px; flex: 0 0 22px; }
.account-user-icon { display: inline-flex; align-items: center; justify-content: center; color: inherit; }
.account-trigger .account-trigger-chevron { line-height: inherit; color: inherit; }
.account-large-avatar { background: var(--soft); color: #69717d; }
.account-large-avatar > .icon { width: 28px; height: 28px; }
@media(max-width:700px) {
 .library-link.header-utility,.account-trigger.header-utility { width: 40px; justify-content: center; flex: 0 0 40px; }
}

/* Shared interaction treatment: brand ink, no separate Account hover pill. */
.library-link.header-utility,.account-trigger.header-utility { background: transparent; border-radius: 0; }
.library-link.header-utility:hover,.account-trigger.header-utility:hover,.account-trigger.header-utility[aria-expanded="true"] { color: var(--pink); background: transparent; }

/* Navigation keeps the current page in place until its replacement is ready. */
.route-progress { position: fixed; z-index: 25; top: 65px; left: 0; width: 100%; height: 2px; overflow: hidden; background: var(--pink-light); pointer-events: none; }
.route-progress[hidden] { display: none; }
.route-progress::after { content: ""; display: block; width: 32%; height: 100%; background: var(--pink); animation: route-progress-slide 1.2s ease-in-out infinite; }
@keyframes route-progress-slide { from { transform: translateX(-100%); } to { transform: translateX(420%); } }
.route-error { min-height: 55vh; padding-top: 64px; padding-bottom: 64px; }
.route-error p { color: var(--muted); }
.route-error .text-link { margin-left: 20px; }
@media (max-width: 760px) { .route-progress { top: 60px; } }
@media (prefers-reduced-motion: reduce) { .route-progress::after { animation: none; width: 100%; opacity: .65; } }

/* Account payments: same quiet type scale and rose accent as the account center. */
.orders-heading { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.orders-heading > div { min-width:0; }
.orders-heading > button { margin-top:7px; flex-shrink:0; }
.account-orders { border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.orders-column-head,.order-record { display:grid; grid-template-columns:112px minmax(100px,1fr) 110px 120px 83px; gap:14px; align-items:center; }
.orders-column-head { padding:16px 0; border-bottom:1px solid var(--line); color:var(--account-quiet); font-size:11px; }
.orders-list { padding:0; margin:0; list-style:none; }
.order-record { padding:23px 0; font-size:12px; border-bottom:1px solid var(--line); }
.order-record:last-child { border-bottom:0; }
.order-date,.order-description,.order-amount { display:flex; flex-direction:column; gap:7px; min-width:0; }
.order-description strong,.order-amount strong { font-weight:500; }
.order-record small,.order-reference { color:var(--account-quiet); font-size:10px; line-height:1.6; }
.order-reference { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.order-amount strong { font-variant-numeric:tabular-nums; white-space:nowrap; }
.order-status { font-size:10px; line-height:1.5; width:fit-content; padding:5px 8px; border-radius:4px; background:#f1f2f5; color:#626b79; }
.order-status-paid { color:#267150; background:#edf7f0; }
.order-status-failed,.order-status-disputed { color:#a2384d; background:#fff0f2; }
.order-status-partially_refunded,.order-status-refunded { color:#70508d; background:#f4eff9; }
.order-receipt a { color:#bc1b73; text-underline-offset:3px; font-size:11px; }
.order-receipt a:hover { text-decoration:underline; }
.order-no-receipt { color:#a2a6ad; }
.orders-empty { text-align:center; padding:64px 22px; color:var(--account-quiet); }
.orders-empty h2 { font-size:19px; font-weight:500; color:var(--text); margin:0 0 13px; }
.orders-empty p { font-size:12px; line-height:1.9; margin:6px 0; }
.orders-empty .primary-button,.orders-empty .secondary-button { display:inline-flex; margin-top:20px; font-size:12px; }
.orders-pagination { display:flex; justify-content:center; padding:22px 0; }
.orders-pagination button { font-size:12px; }
@media(max-width:1050px) { .orders-column-head,.order-record { grid-template-columns:95px minmax(90px,1fr) 90px 90px; gap:11px; } .orders-column-head > span:last-child { display:none; } .order-receipt { grid-column:2/5; } }
@media(max-width:700px) { .account-sidebar nav { overflow-x:auto; gap:22px; } .orders-column-head { display:none; } .order-record { grid-template-columns:minmax(0,1fr) auto; gap:14px 18px; padding:23px 0; } .order-description { grid-column:1; grid-row:1; } .order-amount { grid-column:2; grid-row:1; text-align:right; } .order-date { grid-column:1; grid-row:2; gap:4px; font-size:11px; } .order-status { grid-column:2; grid-row:2; justify-self:end; } .order-receipt { grid-column:1/3; grid-row:3; } .orders-empty { padding:45px 12px; } }
