@font-face {
  font-family: Inter;
  src: url(/fonts/inter-latin-wght.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Inter, system-ui, sans-serif;
  color: #17291d;
  background: #f6f8ef;
  line-height: 1.5;
  --green: #0e5e33;
  --pale: #e8f2e5;
  --line: #dce8d9;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
:focus-visible {
  outline: 3px solid #c77129;
  outline-offset: 3px;
}
.layout {
  max-width: 1160px;
  margin: auto;
  padding: 0 24px 70px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.brand {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--green);
}
.brand strong {
  font-weight: 900;
}
.welcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 22px;
  border-radius: 30px;
}
.welcome {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 64px);
  min-height: 480px;
}
.welcome img {
  display: block;
  width: 100%;
  height: auto;
}
#login-art {
  aspect-ratio: 900 / 506;
  object-fit: contain;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 5.3vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.welcome p {
  margin-top: 16px;
  max-width: 44ch;
}
form label {
  display: block;
  font-weight: 700;
}
#login-form,
#search-form {
  margin: 24px 0;
}
input {
  color: #17291d;
  background: white;
  border: 1px solid #9bad9a;
  border-radius: 12px;
  padding: 12px 15px;
}
#email,
#login-code,
#search {
  display: block;
  width: 100%;
  margin: 7px 0 12px;
}
#login-error {
  color: #942b24;
}
.primary,
.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
}
.primary {
  color: white;
  background: var(--green);
}
.quiet {
  color: var(--green);
  background: var(--pale);
  border-color: var(--line);
}
.result {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}
.result span {
  font-size: 0.88rem;
  color: #435848;
  margin-top: 5px;
}
.back {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
}
#resume {
  margin-bottom: 20px;
}
.notice {
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
@media (max-width: 630px) {
  .layout {
    padding: 0 15px 42px;
  }
  .welcome {
    grid-template-columns: 1fr;
  }
  .welcome img {
    max-width: 370px;
    margin: auto;
  }
}

@font-face {
  font-family: Poppins;
  src: url(/fonts/poppins-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url(/fonts/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url(/fonts/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url(/fonts/pxiByp8kv8JHgFVrLDD4Z1xlFQ.woff2) format("woff2");
  font-weight: 800;
  font-display: swap;
}
.store-nav {
  display: none;
}
.store-view {
  font-family: Poppins, Inter, sans-serif;
  color: #191916;
  background: #f8f8f7;
  --orange: #d51c2a;
  --store-green: #005637;
}
.store-view .layout {
  max-width: none;
  padding: 0;
}
.store-view .topbar {
  padding: 10px max(20px, calc((100% - 1112px) / 2));
  background: #065637;
  color: white;
  min-height: 60px;
}
.store-view .brand {
  font-size: 15px;
  color: white;
  white-space: nowrap;
}
.store-view .topbar .quiet {
  background: #ffffff15;
  color: white;
  min-height: 35px;
  border: 0;
}
.store-view .store-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.store-nav a {
  padding: 7px 12px;
  white-space: nowrap;
}
.store-nav [aria-current] {
  border-radius: 999px;
  background: #fff;
  color: var(--store-green);
}
.app-label {
  display: none;
}
.store-heading {
  position: relative;
  background:
    radial-gradient(circle at calc(100% - 62px) 42px, #ffffff0d 136px, transparent 137px),
    radial-gradient(ellipse at 0% 100%, #7530302a, transparent 32%),
    linear-gradient(174deg, #065637 12%, #043f2b 100%);
  color: white;
  margin: 0;
  padding: 42px max(20px, calc((100% - 1112px) / 2)) 60px;
}
.store-heading h1 {
  font-size: 32px;
  letter-spacing: -0.025em;
  margin: 0 0 5px;
}
.store-heading p {
  font-size: 15px;
  color: #e3efe5;
}
.store-heading .back {
  position: absolute;
  right: max(20px, calc((100% - 1112px) / 2));
  top: 34px;
  color: white;
}
.store-heading .back[href="/portal/"] {
  display: none;
}
.portal-content {
  position: relative;
  margin-top: -32px;
  min-height: 58vh;
  padding: 32px max(20px, calc((100% - 1112px) / 2)) 64px;
  border-radius: 32px 32px 0 0;
  background: #f8f8f7;
}
.store-section {
  margin: 0 0 44px;
}
.store-section h2,
.store-feature h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.store-subtitle {
  color: #585f55;
  font-size: 14px;
  margin-top: 3px;
}
.store-feature {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 32px;
  border-radius: 28px;
  padding: 32px;
  background:
    radial-gradient(circle at calc(100% - 38px) 35px, #ffffff12 110px, transparent 111px),
    linear-gradient(135deg, #017347, #043f2e);
  color: white;
  box-shadow: 0 15px 33px -17px #124c31;
}
.store-feature-body {
  flex: 1;
  min-width: 0;
}
.store-feature h2 {
  margin: 11px 0 8px;
}
.store-feature p,
.store-perks {
  font-size: 14px;
  color: #e7f1e8;
}
.store-device {
  border: 2px solid #c7dec9;
  border-radius: 18px;
  width: 80px;
  height: 145px;
  display: grid;
  place-items: center;
}
.store-device span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  color: var(--store-green);
  font-size: 20px;
}
.store-badge,
.store-eyebrow {
  font-weight: 800;
  letter-spacing: 0.13em;
  font-size: 10px;
  text-transform: uppercase;
}
.store-badge {
  background: var(--orange);
  color: white;
  padding: 4px 11px;
  border-radius: 999px;
}
.store-app-kind {
  font-size: 11px;
  text-transform: uppercase;
  margin-left: 10px;
}
.store-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}
.store-feature-bottom,
.store-collection-bottom,
.store-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.store-feature-price s,
.store-collection s {
  display: block;
  font-size: 12px;
  opacity: 0.75;
}
.store-feature-price strong {
  font-size: 24px;
}
.store-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--orange);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
}
.store-special-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.store-collection,
.store-book,
.store-collection-hero {
  background: white;
  border: 1px solid #e6e6e3;
  border-radius: 24px;
  box-shadow: 0 2px 3px #0001;
}
.store-collection {
  display: flex;
  padding: 12px;
  gap: 14px;
}
.store-collection-art {
  position: relative;
  width: 112px;
  flex-shrink: 0;
}
.store-collection-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}
.store-collection-art .store-badge {
  position: absolute;
  top: 5px;
  left: 5px;
}
.store-eyebrow,
.store-cta {
  color: var(--orange);
  font-weight: 700;
}
.store-collection h3,
.store-book h3 {
  font-size: 16px;
  line-height: 1.35;
  margin: 3px 0;
}
.store-collection .store-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  margin: 5px 0;
}
.store-collection strong,
.store-book strong {
  color: var(--store-green);
}
.store-collection .store-cta {
  font-size: 13px;
}
.store-other-grid,
.store-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.store-book {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.store-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 12px;
  background: #fafafa;
}
.store-cover-locked {
  position: relative;
}
.store-cover-locked .store-cover {
  display: block;
  filter: saturate(.4);
}
.store-cover-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #2d2723b8;
  color: #fff4e6;
}
.store-cover-lock {
  position: relative;
  width: 28px;
  height: 21px;
  margin-top: 10px;
  border-radius: 5px;
  background: currentColor;
}
.store-cover-lock::before {
  content: "";
  position: absolute;
  inset: -12px 5px auto;
  height: 15px;
  border: 3px solid currentColor;
  border-radius: 10px 10px 0 0;
}
.store-cover-lock::after {
  content: "";
  position: absolute;
  inset: 7px 12px 6px;
  border-radius: 4px;
  background: #302923;
}
.store-book-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.store-book-footer {
  margin-top: auto;
  padding-top: 14px;
}
.store-book-footer > * {
  display: block;
}
.store-book-footer .store-cta,
.store-book-status {
  margin-top: 7px;
  font-size: 14px;
}
.store-book-status {
  color: #66584e;
  font-weight: 700;
}
.store-tiles {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px;
}
.store-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
  min-width: 0;
}
.store-tile-cover {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 5px 12px 12px 5px;
  background: #dfede3;
  box-shadow: 0 8px 12px #122e2525;
}
.store-tile-art {
  position: relative;
}
.store-tile-art .store-tile-cover {
  display: block;
}
.store-tile-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 7px;
  border-radius: 999px;
  background: #21190cdd;
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.store-tile .store-subtitle {
  font-size: 12px;
}
.store-collection-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-bottom: 36px;
}
.store-collection-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-collection-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 24px;
}
.store-large-price {
  font-size: 30px;
  color: var(--store-green);
}
.store-dialog {
  width: min(460px, calc(100% - 32px));
  border: 0;
  border-radius: 24px;
  padding: 24px;
}
.store-dialog::backdrop {
  background: #13201888;
}
.store-dialog > * {
  margin-bottom: 12px;
}
.store-dialog > .back {
  display: block;
}
@media (max-width: 1050px) {
  .store-special-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .store-other-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .store-tiles {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .store-view .store-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    justify-content: space-around;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    color: var(--store-green);
    background: white;
    border-top: 1px solid #e1e8e1;
    gap: 0;
    font-size: 12px;
  }
  .store-nav a {
    padding: 8px 5px;
  }
  .store-nav [aria-current] {
    background: #e0efe4;
  }
  .install-label {
    display: none;
  }
  .app-label {
    display: inline;
  }
  .store-heading {
    padding-top: 22px;
  }
  .store-heading h1 {
    font-size: 28px;
  }
  .store-heading .back {
    position: static;
    display: inline-block;
    margin-bottom: 8px;
  }
  .store-device {
    display: none;
  }
  .store-feature {
    padding: 20px;
  }
  .store-perks,
  .store-special-grid,
  .store-collection-hero {
    grid-template-columns: 1fr;
  }
  .store-other-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .store-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.store-collection-tiles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.store-offer-tiles .store-collection-bottom {
  flex-wrap: wrap;
  margin-top: auto;
  width: 100%;
}
.store-promotion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  max-width: 548px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid #ecd9db;
  border-radius: 12px;
  background: #fff5f5;
  color: #9c1b2a;
  font-size: 14px;
}
.store-promotion-copy {
  flex: 1 1 175px;
}
.store-promotion-copy p {
  margin-top: 2px;
  color: #585f55;
  font-size: 12px;
}
.store-promotion-clock {
  padding: 4px 9px;
  border-radius: 8px;
  background: #a81a2b;
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.store-feature-promotion {
  margin: 0 0 14px;
  max-width: none;
}
.store-discount-price,
.store-offer-fixed .store-standard-price,
.store-promotion-active .store-offer-discounted .store-standard-price {
  display: none;
}
.store-promotion-active .store-discount-price,
.store-offer-fixed .store-discount-price {
  display: grid;
  gap: 2px;
}
.store-discount-price s {
  color: #585f55;
  font-size: 11px;
}
.store-discount-price strong {
  color: #9c1b2a;
  font-size: 15px;
}
.store-promotion-active .store-feature-price .store-discount-price,
.store-offer-fixed .store-feature-price .store-discount-price {
  display: block;
}
.store-feature-price .store-discount-price s,
.store-feature-price .store-discount-price strong {
  color: inherit;
}
.store-feature-price .store-discount-price s {
  font-size: 12px;
}
.store-feature-price .store-discount-price strong {
  font-size: 24px;
}
@media (max-width: 700px) {
  .store-collection-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.store-update {
  padding: 24px;
}
.store-update h2 {
  font-size: 20px;
  line-height: 1.3;
}
.store-update ul {
  padding-left: 20px;
  line-height: 1.9;
  font-size: 14px;
}
.store-update .store-action {
  display: flex;
  background: var(--store-green);
}
.store-update button {
  display: block;
  margin: 10px auto 0;
  border: 0;
  background: transparent;
  color: #4b524b;
  font-weight: 700;
}

.store-logo {
  display: none;
}
.store-view .brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.store-view .store-logo {
  display: block;
  border: 1px solid #a8c9b1;
  border-radius: 11px;
}
.store-feature-bottom > .store-action::after,
.store-cta::after {
  content: " ›";
  margin-left: 4px;
}


.nav-icon {
  width: 17px;
  height: 17px;
  display: inline-block;
  flex: 0 0 auto;
}
.nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-nav a,
.store-view #logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.store-nav a:not([aria-current]) {
  color: #ffffffcc;
}
.library-heading:has(.library-search-link:not([hidden])) {
  padding-bottom: 60px;
}
#library-greeting {
  margin-bottom: 3px;
  font-size: 14px;
}
.library-install {
  display: none;
}
.library-search-link,
.library-search-content #search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 570px);
  min-height: 54px;
  padding-inline: 20px;
  border-radius: 16px;
  background: #fff;
  color: #585f55;
  font-size: 14px;
}
.library-search-link {
  margin-top: 24px;
}
.library-search-heading {
  text-align: center;
}
.library-search-content > * {
  max-width: 640px;
  margin-inline: auto;
}
.library-search-content #search-form {
  width: 100%;
  margin: 0 auto 26px;
  border: 1px solid #d7dfd7;
}
.library-search-content #search-form:focus-within {
  border-color: var(--store-green);
  box-shadow: 0 0 0 3px #00563718;
}
.library-search-content #search {
  margin: 0;
  padding: 0;
  min-width: 0;
  min-height: 52px;
  border: 0;
  outline: none;
  color: inherit;
}
#library-suggestions h2 {
  font-size: 16px;
  margin-bottom: 12px;
}
#library-suggestions div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#library-suggestions .quiet {
  color: inherit;
  background: white;
  min-height: 36px;
  padding: 7px 14px;
  font-size: 13px;
  border-color: #e7e7e2;
}
.library-search-message {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: #585f55;
}
.library-search-results {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.library-content #resume {
  font-size: 14px;
  margin-bottom: 16px;
}
.library-content .store-feature {
  margin: 0 0 36px;
}
.library-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.library-more {
  color: var(--store-green);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.library-main-book {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  margin-top: 16px;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid #e7e7e2;
  border-radius: 26px;
  background: white;
  box-shadow: 0 3px 5px #00000017;
}
.library-cover {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 11 / 15;
  border-radius: 6px;
  background: #ebeae5;
  box-shadow: 0 12px 24px -12px #064c3590, 0 1px 4px #0002;
}
.library-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.library-main-book .library-cover {
  flex: 0 0 clamp(112px, 24vw, 175px);
}
.library-book-info h3 {
  font-size: 13px;
  line-height: 1.4;
}
.library-main-book h3 {
  margin-block: 3px;
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.library-book-description,
.library-book-pages {
  color: #575d55;
  font-size: 12px;
}
.library-main-book .library-book-description,
.library-main-book .library-book-pages {
  font-size: 14px;
  margin-top: 3px;
}
.library-main-book .primary {
  min-height: 42px;
  margin-top: 14px;
  padding-inline: 20px;
  font-size: 14px;
  background: var(--store-green);
  box-shadow: 0 8px 15px -7px #00603a;
}
.library-shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 156px;
  gap: 20px;
  margin-top: 18px;
  overflow-x: auto;
  margin-inline: -4px;
  padding: 3px 4px 14px;
}
.library-shelf-full {
  grid-auto-flow: row;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: 3px;
}
.library-book .library-book-info {
  margin-top: 9px;
}
.library-book-pages {
  margin-top: 2px;
}
.library-cover-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 99px;
  background: #241a14dd;
  color: white;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.library-book:hover .library-cover,
.library-main-book:hover .library-cover {
  box-shadow: 0 12px 24px -9px #064c3590, 0 1px 5px #0002;
}

.reader-view {
  font-family: Poppins, Inter, sans-serif;
  background: #e9e7de;
}
.reader-view .layout {
  max-width: none;
  padding: 0;
}
.reader-view .topbar {
  display: none;
}
.reader-toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 16px 10px;
  color: #fff;
  background: linear-gradient(135deg, #065637, #043f2b);
}
.reader-header {
  display: grid;
  grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr);
  align-items: start;
  gap: 10px;
  text-align: center;
}
.reader-header h1 {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: normal;
}
.reader-back {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  color: #005637;
  background: #fff;
  border-radius: 50%;
  font: 27px / 1 Inter, sans-serif;
}
.reader-header #download {
  justify-self: end;
  white-space: nowrap;
  padding: 7px 16px;
  min-height: 36px;
  font-size: 12px;
  background: #d51c2a;
}
.pagination,
.reader-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
}
.pagination label {
  font-weight: 400;
}
.pagination input {
  width: 48px;
  border: 0;
  padding: 2px;
  border-radius: 8px;
  text-align: center;
  color: white;
  background: #ffffff23;
  appearance: textfield;
}
.pagination input::-webkit-inner-spin-button {
  appearance: none;
}
.reader-controls {
  gap: 2px;
  margin-top: 5px;
}
.reader-controls button,
.pagination button {
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: white;
  padding: 5px 8px;
}
.reader-controls button[aria-pressed="true"] {
  color: #005637;
  background: white;
  font-weight: 700;
}
.reader-canvas {
  margin: 0 auto;
  padding: 0 8px 60px;
  max-width: 920px;
}
.reader-canvas img {
  display: block;
  width: 100%;
  height: auto;
  background: white;
}
.reader-canvas[data-reading="single"] img {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 125px);
  margin: auto;
  object-fit: contain;
}
.reader-canvas[data-reading="spread"] {
  max-width: 1230px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}
.reader-canvas[data-reading="zoom"] {
  overflow-x: auto;
}
.reader-canvas[data-reading="zoom"] img {
  width: var(--zoom, 100%);
  max-width: none;
  margin-inline: auto;
}
.reader-location {
  position: fixed;
  bottom: 12px;
  left: 16px;
  padding: 9px 14px;
  border-radius: 99px;
  background: #fff;
  color: #242424;
  box-shadow: 0 2px 7px #0002;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 1050px) {
  .store-view .brand {
    min-width: 0;
  }
  .store-view .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .store-nav a { padding-inline: 8px; }
}
@media (max-width: 700px) {
  .library-install {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin: -6px 0 28px;
    padding: 12px 14px;
    border: 1px solid #ecd9db;
    border-radius: 20px;
    background: #fff5f5;
    font-size: 13px;
    line-height: 1.35;
  }
  .library-install .nav-icon {
    width: 34px;
    height: 34px;
    padding: 8px;
    color: white;
    background: #d51c2a;
    border-radius: 12px;
  }
  .library-install small {
    display: block;
    color: #585f55;
    margin-top: 2px;
  }
  .store-view .store-nav {
    padding: 8px 0 max(6px, env(safe-area-inset-bottom));
  }
  .store-nav a {
    display: grid;
    justify-items: center;
    gap: 3px;
    font-size: 11px;
    min-width: 52px;
    padding: 3px;
  }
  .store-nav a:not([aria-current]) {
    color: #505950;
  }
  .store-nav [aria-current] {
    background: transparent;
  }
  .store-nav .nav-icon {
    width: 54px;
    height: 24px;
    display: grid;
    place-items: center;
    background: transparent;
  }
  .store-nav .nav-icon svg {
    width: 18px;
    height: 18px;
  }
  .store-nav [aria-current] .nav-icon {
    border-radius: 99px;
    background: #dceee3;
  }
  .library-main-book .library-book-description {
    display: none;
  }
  .library-shelf:not(.library-shelf-full) {
    grid-auto-flow: column;
    grid-auto-columns: clamp(118px, 43vw, 184px);
    grid-template-columns: none;
    grid-template-rows: 1fr;
    gap: 16px;
    overflow-x: auto;
    margin-inline: -20px;
    padding: 3px 20px 14px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 20px;
  }
  .library-shelf:not(.library-shelf-full) > * {
    scroll-snap-align: start;
  }
  .library-shelf-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }
  .reader-toolbar {
    padding-inline: 8px;
  }
  .reader-header {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 5px;
  }
  .reader-header h1 {
    font-size: 13px;
  }
  .reader-back {
    width: 32px;
    height: 32px;
  }
  .reader-header #download {
    min-height: 30px;
    padding-inline: 8px;
    font-size: 10px;
  }
}
