:root {
  color-scheme: light;
  --page: #f6f8f5;
  --surface: #ffffff;
  --surface-muted: #edf2ed;
  --ink: #1d2a24;
  --muted: #65736a;
  --line: #dce4dc;
  --forest: #1f5c45;
  --forest-deep: #154333;
  --brass: #c08a3e;
  --coral: #bd694d;
  --radius: 10px;
  --shadow-soft: 0 12px 34px rgba(24, 50, 37, .08);
  font-family: "DM Sans", sans-serif;
}

html.dark {
  color-scheme: dark;
  --page: #131b17;
  --surface: #1b2520;
  --surface-muted: #243129;
  --ink: #f2f5f1;
  --muted: #aab7ad;
  --line: #34443a;
  --forest: #5db58a;
  --forest-deep: #2d7653;
  --brass: #e4b968;
  --coral: #e18a68;
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, .2);
}

body {
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body:not(.reader-body) {
  background-color: var(--page);
}

.public-auth-page {
  isolation: isolate;
  background-color: var(--page) !important;
  background-image: linear-gradient(135deg, transparent 0 74%, rgba(31, 92, 69, .035) 74% 74.2%, transparent 74.2% 100%);
}

.public-auth-page > div > div:first-child {
  max-width: 46rem;
  margin-inline: auto;
}

.public-auth-page h1,
.public-content-page h1,
.study-room-index h1,
.study-room-article h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  text-wrap: balance;
}

.public-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 58rem;
  margin-inline: auto;
}

.public-auth-art {
  position: relative;
  min-height: 31rem;
  overflow: hidden;
  border-radius: 10px;
  background: #183c30;
  box-shadow: var(--shadow-soft);
}

.public-auth-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(10, 31, 23, .02) 25%, rgba(10, 31, 23, .88) 100%);
}

.public-auth-art img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  inset: 0;
}

.public-auth-art-copy {
  position: absolute;
  z-index: 1;
  right: 1.75rem;
  bottom: 1.75rem;
  left: 1.75rem;
  color: white;
}

.public-auth-art-copy span {
  color: #e4b968;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.public-auth-art-copy h2 {
  max-width: 12ch;
  margin-top: .6rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.1;
}

.public-auth-panel {
  align-self: center;
  min-width: 0;
}

.public-auth-panel > div.rounded-2xl {
  border-radius: 10px;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.public-content-page {
  background-color: var(--page) !important;
}

.public-content-page > div {
  max-width: 72rem;
}

.public-content-page > div > h1 {
  margin-bottom: 2rem;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.public-legal-page > div,
.public-dmca-page > div {
  max-width: 54rem;
}

.public-content-page .prose {
  max-width: 72ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.public-content-page .prose h2,
.public-content-page .prose h3 {
  color: var(--ink);
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  text-wrap: balance;
}

.public-content-page .prose a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.public-faq-page > div > div:first-child {
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.public-faq-page .space-y-6 > div {
  border-radius: 8px;
  border-color: var(--line);
  box-shadow: 0 4px 18px rgba(24, 50, 37, .04);
}

.public-contact-page > div {
  max-width: 68rem;
}

.public-contact-page .grid {
  gap: clamp(2rem, 5vw, 4rem);
}

.public-contact-page form {
  gap: 1.25rem;
}

.public-contact-page form button[type="submit"] {
  min-height: 3rem;
  border-radius: 8px;
}

.study-room-index > div > div:first-child {
  max-width: 46rem;
  margin-bottom: 3rem;
}

.study-room-index > div > div.grid {
  gap: 2rem 1.5rem;
}

.study-room-index article {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.study-room-index article img {
  border-radius: 8px;
}

.study-room-index article h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.15;
}

.study-room-article > div > a:first-child {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
}

.study-room-article article > header h1 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.06;
}

.study-room-article article > header {
  margin-bottom: 2rem;
}

.study-room-article .prose {
  font-size: 1.08rem;
}

body > header {
  box-shadow: 0 1px 0 rgba(29, 42, 36, .04), 0 8px 24px rgba(29, 42, 36, .035);
  backdrop-filter: blur(18px);
}

body > header > div,
body > footer > div {
  max-width: 84rem;
}

body > header a,
body > header button,
body > footer a {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

body > header a:hover,
body > footer a:hover {
  color: var(--forest) !important;
}

:where(a, button, input, select, textarea, iframe):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brass) 78%, white);
  outline-offset: 3px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border-radius: var(--radius) !important;
}

button.rounded-full:not([data-toggle-favorite]),
a.rounded-full {
  border-radius: 10px !important;
}

body:not(.reader-body) main .rounded-2xl.border,
body:not(.reader-body) main .rounded-3xl.border {
  border-radius: 8px !important;
  border-color: var(--line);
}

html:not(.dark) main [class~="bg-indigo-600"] {
  background-color: var(--forest) !important;
}

html:not(.dark) main [class~="text-indigo-600"] {
  color: var(--forest) !important;
}

html:not(.dark) main [class~="border-indigo-600"] {
  border-color: var(--forest) !important;
}

main :where(img, video, iframe) {
  max-width: 100%;
}

main :where(h1, h2, h3, p, a, button, label) {
  overflow-wrap: anywhere;
}

body:not(.reader-body) main > section.py-24 {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

body:not(.reader-body) main > section.py-10 {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.studyne-hero {
  min-height: min(720px, calc(100svh - 64px));
  display: grid;
  align-items: center;
  background: #183c30;
}

.studyne-hero h1,
.studyne-hero h2,
body:not(.reader-body) h1,
body:not(.reader-body) h2,
body:not(.reader-body) h3 {
  text-wrap: balance;
}

.studyne-hero h1 {
  max-width: 12ch;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  line-height: 1.04;
}

.studyne-featured-shelf {
  border-radius: 10px;
  border-color: rgba(255, 255, 255, .2);
  background: rgba(21, 42, 33, .72);
  box-shadow: 0 24px 70px rgba(3, 16, 11, .24);
}

#customerSidebar {
  position: sticky;
  top: 64px;
  height: calc(100svh - 64px);
  background-color: var(--surface);
  border-color: var(--line);
}

#customerSidebar > div > div:first-child {
  padding-top: 1.5rem;
}

.customer-nav-btn {
  min-height: 46px;
  border-radius: 8px;
  margin-inline: .5rem;
  width: calc(100% - 1rem);
}

[data-xyz-tab-section] {
  width: 100%;
}

#browseEbooksGrid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 238px), 1fr));
  align-items: stretch;
  gap: 1.25rem;
}

#browseEbooksGrid > [data-browse-ebook-card] {
  border-radius: 10px;
  border-color: var(--line);
  box-shadow: 0 3px 12px rgba(24, 50, 37, .04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#browseEbooksGrid > [data-browse-ebook-card]:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--forest) 45%, var(--line));
  box-shadow: var(--shadow-soft);
}

#browseEbooksGrid [data-add-to-cart-ajax] {
  min-height: 44px;
  border-radius: 8px;
  background-color: var(--forest);
}

#browseEbooksGrid [data-add-to-cart-ajax]:hover {
  background-color: var(--forest-deep);
}

[data-xyz-tab-section="myebooks"] > div.grid > div {
  border-radius: 10px;
  border-color: var(--line);
  box-shadow: 0 4px 16px rgba(24, 50, 37, .05);
}

[data-xyz-tab-section="myebooks"] a[href*="/customer/read"] {
  min-height: 46px;
}

[data-xyz-tab-section="dashboard"] > div:first-child h2,
[data-xyz-tab-section="browse"] h2,
[data-xyz-tab-section="myebooks"] h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
}

#checkoutForm {
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.reader-body {
  min-height: 100svh;
  background: var(--page);
  font-family: "DM Sans", sans-serif;
}

.reader-body > div > header {
  min-height: 64px;
  padding-inline: clamp(1rem, 3vw, 2rem);
  gap: .75rem;
}

.reader-body .reader-file-view {
  background-color: var(--surface-muted);
}

.reader-body #epubViewer {
  min-height: calc(100svh - 112px);
  padding: clamp(.5rem, 3vw, 2rem);
}

.reader-body #epubViewer iframe {
  border: 0 !important;
}

.reader-body .reader-text {
  min-height: 100%;
  font-family: "Literata", Georgia, serif;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .studyne-hero {
    min-height: 600px;
  }

  #customerSidebar {
    width: 15rem;
  }

  [data-xyz-tab-section] {
    padding-inline: 1.75rem;
  }

  body:not(.reader-body) main > section.py-24 {
    padding-block: 4.5rem;
  }

  #browseEbooksGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-auth-layout {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
    gap: 1.25rem;
  }

  .public-auth-art {
    min-height: 29rem;
  }
}

@media (max-width: 767px) {
  .studyne-hero {
    min-height: 0;
  }

  .studyne-hero > div:last-child {
    margin-top: 1rem;
  }

  .studyne-hero h1 {
    font-size: 2.8rem;
  }

  .public-auth-page {
    min-height: 0;
    padding-block: 2.75rem;
  }

  .public-auth-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .public-auth-art {
    min-height: 12rem;
  }

  .public-auth-art-copy {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .public-auth-art-copy h2 {
    max-width: 20ch;
    font-size: 1.75rem;
  }

  .public-auth-panel > div.rounded-2xl {
    padding: 1.25rem;
  }

  .public-content-page > div > h1 {
    margin-bottom: 1.5rem;
  }

  .public-faq-page .space-y-6 > div {
    padding: 1.25rem;
  }

  .study-room-index > div > div:first-child {
    margin-bottom: 2rem;
  }

  .study-room-index > div > div.grid {
    gap: 1.5rem;
  }

  .study-room-article article > header h1 {
    font-size: 2.35rem;
  }

  body:not(.reader-body) main > section.py-24 {
    padding-block: 3.5rem;
  }

  body:not(.reader-body) main > section.py-10 {
    padding-block: 2rem;
  }

  body:not(.reader-body) main .p-12 {
    padding: 1.5rem !important;
  }

  [data-xyz-tab-section] {
    padding: 1.5rem 1rem !important;
  }

  [data-xyz-tab-section] > div.mb-10 {
    margin-bottom: 1.5rem;
  }

  #browseEbooksGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  #browseEbooksGrid > [data-browse-ebook-card] > div:last-child {
    padding: .85rem;
  }

  #browseEbooksGrid h3 {
    font-size: .95rem;
  }

  #browseEbooksGrid [data-add-to-cart-ajax] {
    padding-inline: .4rem;
    font-size: .65rem;
  }

  .reader-body > div > header {
    min-height: 58px;
    padding-inline: .75rem;
  }

  .reader-body > div > header > div:first-child {
    min-width: 0;
    gap: .5rem;
  }

  .reader-body > div > header > div:last-child {
    gap: .25rem;
  }

  .reader-body > div > header > div:last-child > button {
    padding: .5rem;
  }

  .reader-body #epubViewer {
    min-height: calc(100svh - 58px);
    padding: .25rem;
  }
}

@media (max-width: 380px) {
  #browseEbooksGrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contemporary storefront refresh */
:root {
  color-scheme: light;
  --page: #f7f7fc;
  --surface: #ffffff;
  --surface-muted: #f0effb;
  --ink: #18182b;
  --muted: #68697d;
  --line: #e5e5f0;
  --forest: #6558f5;
  --forest-deep: #5144dc;
  --brass: #c8fb75;
  --coral: #ff6d8a;
  --radius: 14px;
  --shadow-soft: 0 18px 50px rgba(30, 28, 70, .10);
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
}

html.dark {
  color-scheme: dark;
  --page: #10111d;
  --surface: #191a2a;
  --surface-muted: #202136;
  --ink: #f5f4ff;
  --muted: #a7a8bd;
  --line: #303146;
  --forest: #a49cff;
  --forest-deep: #8075ff;
  --brass: #c8fb75;
  --coral: #ff8da2;
  --shadow-soft: 0 20px 55px rgba(0, 0, 0, .28);
}

body:not(.reader-body) {
  background: var(--page);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
}

body:not(.reader-body) main {
  min-height: 65vh;
}

body:not(.reader-body) h1,
body:not(.reader-body) h2,
body:not(.reader-body) h3,
.public-content-page .prose h2,
.public-content-page .prose h3 {
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-weight: 750;
  letter-spacing: -.035em;
}

body:not(.reader-body) main > section.py-24 {
  padding-block: clamp(4rem, 8vw, 7rem);
}

body:not(.reader-body) main > section.py-16 {
  padding-block: clamp(2.75rem, 6vw, 5rem);
}

body > header {
  border-color: color-mix(in srgb, var(--line) 78%, transparent) !important;
  background: color-mix(in srgb, var(--surface) 86%, transparent) !important;
  box-shadow: 0 1px 0 rgba(25, 24, 57, .04), 0 10px 30px rgba(25, 24, 57, .055);
  backdrop-filter: blur(22px) saturate(160%);
}

body > header > div > div {
  min-height: 4.5rem;
}

body > header a,
body > header button,
body > footer a {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body > header > div > div > div:first-child > a > svg {
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(81, 68, 220, .20);
}

body > header > div > div > div:first-child > a > div {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -.045em;
}

body > header nav a {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  padding: .55rem .85rem;
  border-radius: 999px;
  color: var(--muted) !important;
  font-size: .8rem;
  font-weight: 700;
}

body > header nav a:hover,
body > header nav a:focus-visible {
  color: var(--forest) !important;
  background: color-mix(in srgb, var(--forest) 9%, var(--surface));
}

body > header button,
body > header a.rounded-lg {
  min-height: 2.5rem;
  border-radius: 999px !important;
}

body > header a.bg-indigo-600 {
  box-shadow: 0 8px 20px rgba(101, 88, 245, .25);
}

body > header [x-show="mobileMenuOpen"] > div:last-child > div {
  border-radius: 1.25rem;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(20, 19, 54, .18);
}

body > header [x-show="mobileMenuOpen"] a,
body > header [x-show="mobileMenuOpen"] button {
  min-height: 3rem;
  padding-inline: 1.25rem;
}

body > footer {
  margin-top: 0 !important;
  border-color: var(--line) !important;
  background: var(--surface) !important;
}

body > footer > div {
  padding-block: 2.25rem;
}

.studyne-hero {
  min-height: min(760px, calc(100svh - 72px));
  isolation: isolate;
  background: linear-gradient(125deg, #211b67 0%, #39318a 48%, #6858ed 100%);
}

.studyne-hero > div:first-child {
  opacity: 1;
}

.studyne-hero > div:first-child > img {
  opacity: .34;
  mix-blend-mode: luminosity;
}

.studyne-hero .bg-gradient-to-br {
  background: linear-gradient(115deg, rgba(25, 20, 79, .96), rgba(62, 52, 157, .84) 58%, rgba(79, 63, 186, .48)) !important;
}

.studyne-hero > div:last-child {
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}

.studyne-hero h1 {
  max-width: 10ch;
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: clamp(3.2rem, 7vw, 6.25rem);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: .98;
}

.studyne-hero h1::after {
  content: ".";
  color: var(--brass);
}

.studyne-hero > div:last-child > div > div:first-child > div:first-child {
  border-color: rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 8px 24px rgba(20, 18, 76, .16);
}

.studyne-hero > div:last-child > div > div:first-child > p {
  max-width: 32rem;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.studyne-hero a {
  min-height: 3.25rem;
  border-radius: 999px !important;
  padding-inline: 1.5rem;
}

.studyne-hero a.bg-\[\#e4b968\] {
  background: var(--brass) !important;
  color: #22214b !important;
  box-shadow: 0 12px 30px rgba(200, 251, 117, .2);
}

.studyne-hero a.bg-\[\#e4b968\]:hover {
  background: #d9ff9b !important;
  transform: translateY(-2px);
}

.studyne-featured-shelf {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 1.75rem;
  background: rgba(20, 19, 63, .56);
  box-shadow: 0 30px 90px rgba(10, 8, 45, .32);
  backdrop-filter: blur(22px);
}

.studyne-featured-shelf > div:first-child > div > div:last-child {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.65rem;
  letter-spacing: -.04em;
}

.studyne-featured-shelf > div:last-child > a {
  border-radius: 1rem;
  background: rgba(255, 255, 255, .07);
}

.studyne-featured-shelf > div:last-child > a:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, .13);
}

.landing-search {
  box-shadow: 0 14px 40px rgba(16, 13, 69, .2);
}

.landing-search input {
  min-height: 3rem;
  color: white;
}

.landing-search input:focus {
  outline: none;
  box-shadow: none;
}

body:not(.reader-body) main > section:has(.studyne-featured-shelf) + section,
body:not(.reader-body) main > section#how-it-works {
  background-color: var(--page) !important;
  border-color: var(--line) !important;
}

body:not(.reader-body) main .rounded-2xl.border,
body:not(.reader-body) main .rounded-3xl.border {
  border-color: var(--line);
  border-radius: 1.25rem !important;
  box-shadow: 0 8px 26px rgba(30, 28, 70, .045);
}

body:not(.reader-body) main a.rounded-full,
body:not(.reader-body) main button.rounded-full,
body:not(.reader-body) main button.rounded-lg,
body:not(.reader-body) main a.rounded-lg {
  border-radius: 999px !important;
}

body:not(.reader-body) input:not([type="checkbox"]):not([type="radio"]),
body:not(.reader-body) select,
body:not(.reader-body) textarea {
  min-height: 2.9rem;
  border-radius: .9rem !important;
}

body:not(.reader-body) main button[class*="bg-emerald-800"],
body:not(.reader-body) main a[class*="bg-emerald-800"],
body:not(.reader-body) main button[class*="bg-indigo-600"],
body:not(.reader-body) main a[class*="bg-indigo-600"] {
  box-shadow: 0 8px 20px rgba(81, 68, 220, .14);
}

html:not(.dark) main [class~="bg-emerald-800"] {
  background-color: #6558f5 !important;
}

html:not(.dark) main [class~="hover:bg-emerald-700"]:hover {
  background-color: #5144dc !important;
}

html:not(.dark) main [class~="text-emerald-800"] {
  color: #5144dc !important;
}

html:not(.dark) main [class~="bg-emerald-50"] {
  background-color: #f0efff !important;
}

html:not(.dark) main [class~="text-emerald-700"] {
  color: #5144dc !important;
}

html.dark main [class~="bg-emerald-800"] {
  background-color: #8075ff !important;
}

html.dark main [class~="hover:bg-emerald-700"]:hover {
  background-color: #938aff !important;
}

html.dark main [class~="text-emerald-400"] {
  color: #b6b0ff !important;
}

#browseEbooksGrid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 1.35rem;
}

#browseEbooksGrid > [data-browse-ebook-card],
.study-guide-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.35rem !important;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(30, 28, 70, .055);
}

#browseEbooksGrid > [data-browse-ebook-card]:hover,
.study-guide-card:hover {
  border-color: color-mix(in srgb, var(--forest) 35%, var(--line));
  box-shadow: var(--shadow-soft);
}

#browseEbooksGrid > [data-browse-ebook-card] > a:first-child,
#browseEbooksGrid > [data-browse-ebook-card] > div:first-child {
  background: var(--surface-muted);
}

#browseEbooksGrid > [data-browse-ebook-card] > a:first-child img {
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

#browseEbooksGrid > [data-browse-ebook-card]:hover > a:first-child img {
  transform: scale(1.045);
}

#browseEbooksGrid > [data-browse-ebook-card] [data-add-to-cart-ajax] {
  min-height: 2.8rem;
  border-radius: 999px !important;
  background: #6558f5;
}

#browseEbooksGrid > [data-browse-ebook-card] [data-add-to-cart-ajax]:hover {
  background: #5144dc;
}

#myEbooksGrid {
  align-items: stretch;
}

#myEbooksGrid [data-my-ebook-card] {
  border-radius: 1.25rem !important;
  box-shadow: 0 8px 26px rgba(30, 28, 70, .05);
}

#myEbooksGrid [data-my-ebook-card] > div:first-child {
  background: var(--surface-muted);
}

#ebooksGrid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  align-items: stretch;
  gap: 1.35rem;
}

#ebooksGrid > article {
  border-color: var(--line);
  border-radius: 1.25rem !important;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(30, 28, 70, .055);
}

#ebooksGrid > article:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--forest) 38%, var(--line));
  box-shadow: var(--shadow-soft);
}

#ebooksGrid > article > a:first-child {
  background: var(--surface-muted);
}

#ebooksGrid > article > a:first-child img {
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

#ebooksGrid > article:hover > a:first-child img {
  transform: scale(1.045);
}

#ebooksGrid > article > div:last-child {
  min-height: 13rem;
}

#ebooksGrid > article > div:last-child button[type="submit"] {
  min-height: 2.8rem;
  border-radius: 999px !important;
  background: #6558f5;
}

#ebooksGrid > article > div:last-child button[type="submit"]:hover {
  background: #5144dc;
}

.public-auth-page {
  background-color: var(--page) !important;
  background-image: radial-gradient(ellipse at 12% 18%, rgba(101, 88, 245, .10), transparent 35%), radial-gradient(ellipse at 91% 82%, rgba(200, 251, 117, .12), transparent 30%);
}

.public-auth-page > div > div:first-child {
  max-width: 48rem;
}

.public-auth-page h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -.055em;
}

.public-auth-page > div > div:first-child > p {
  max-width: 38rem;
  margin-inline: auto;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-style: normal;
}

.public-auth-layout {
  max-width: 64rem;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.public-auth-art {
  min-height: 34rem;
  border-radius: 1.75rem;
  background: linear-gradient(140deg, #332b92, #796dff);
  box-shadow: 0 24px 65px rgba(48, 40, 145, .22);
}

.public-auth-art::after {
  background: linear-gradient(180deg, rgba(23, 19, 74, .02) 15%, rgba(23, 19, 74, .9) 100%);
}

.public-auth-art-copy span {
  color: var(--brass);
  letter-spacing: .14em;
}

.public-auth-art-copy h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.8rem, 3.3vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -.055em;
}

.public-auth-panel > div.rounded-2xl {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.5rem !important;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(30, 28, 70, .09);
}

.public-auth-panel form label,
.public-dmca-page form label {
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: .06em;
}

.public-auth-panel input,
.public-dmca-page input,
.public-dmca-page textarea {
  min-height: 3.2rem;
  border-radius: .9rem !important;
  background: color-mix(in srgb, var(--surface-muted) 62%, var(--surface));
}

.public-auth-panel form button[type="submit"],
.public-dmca-page form button[type="submit"] {
  min-height: 3.25rem;
  border-radius: 999px !important;
  background: #6558f5;
  box-shadow: 0 10px 24px rgba(101, 88, 245, .2);
}

.public-auth-panel form button[type="submit"]:hover,
.public-dmca-page form button[type="submit"]:hover {
  background: #5144dc;
}

.public-content-page {
  background: var(--page) !important;
}

.public-content-page > div > h1,
.study-room-article article > header h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -.055em;
}

.public-content-page .prose {
  max-width: 72ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.public-content-page .prose h2,
.public-content-page .prose h3 {
  margin-top: 2.5rem;
  color: var(--ink);
}

.public-content-page .prose a {
  color: var(--forest);
  font-weight: 650;
}

.public-legal-page > div,
.public-dmca-page > div {
  max-width: 58rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.public-legal-page > div > h1,
.public-dmca-page > div > h1 {
  margin-bottom: 1.5rem;
}

.public-dmca-page form {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: color-mix(in srgb, var(--surface-muted) 38%, var(--surface));
}

.study-room-index > div > div:first-child {
  max-width: 52rem;
}

.study-room-index article {
  height: 100%;
  padding: 1rem 1rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(30, 28, 70, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.study-room-index article:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--forest) 38%, var(--line));
  box-shadow: var(--shadow-soft);
}

.study-room-index article img {
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
}

.study-room-index article h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -.035em;
}

.study-room-index article h2 a {
  color: var(--ink);
}

.study-room-index article > div:last-child a {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
}

.study-room-article > div > a:first-child {
  color: var(--forest);
}

.study-room-article article > header {
  max-width: 48rem;
}

.study-room-article article > header h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
}

.study-room-article article > .prose {
  max-width: 72ch;
  margin-inline: auto;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.9;
}

.study-room-article article > .prose h2,
.study-room-article article > .prose h3 {
  margin-top: 2.5em;
}

body.reader-body {
  font-family: "DM Sans", sans-serif;
}

.reader-body > div > header {
  min-height: 4.25rem;
  box-shadow: 0 4px 22px rgba(34, 31, 51, .06);
}

.reader-body > div > header > div:last-child > button,
.reader-body #readerPrevious,
.reader-body #readerNext,
.reader-body #readerContents {
  min-height: 2.55rem;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 15%, transparent);
  border-radius: 999px;
  transition: background-color .18s ease, transform .18s ease;
}

.reader-body #readerPrevious:hover,
.reader-body #readerNext:hover {
  transform: translateY(-1px);
}

.reader-body #readerContents {
  max-width: min(11rem, 34vw);
  background-color: transparent;
  padding-inline: .8rem;
}

.reader-body .reader-text {
  max-width: 46rem;
  padding-inline: clamp(1.25rem, 6vw, 5rem);
  font-family: "Literata", Georgia, serif;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.95;
  letter-spacing: .005em;
}

.reader-body .reader-text.font-sans-reader {
  font-family: "DM Sans", sans-serif;
}

.reader-body .reader-text.font-mono-reader {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.reader-body .reader-file-view,
.reader-body #epubViewer {
  background-image: radial-gradient(ellipse at top, rgba(101, 88, 245, .045), transparent 65%);
}

.reader-body #epubViewer iframe {
  border-radius: .75rem;
}

#ebooksSearchForm {
  max-width: 62rem;
}

#ebooksSearchForm input,
#ebooksSearchForm select,
#ebooksSearchForm button {
  min-height: 3.2rem;
}

#ebooksSearchForm button {
  border-radius: 999px !important;
  background: #6558f5;
  padding-inline: 2rem;
}

body:not(.reader-body) main > section > div > .grid > article.group {
  border-radius: 1.25rem;
  border-color: var(--line);
}

@media (max-width: 767px) {
  body > header > div > div {
    min-height: 4rem;
  }

  body > header > div > div > div:first-child > a {
    gap: .55rem;
  }

  body > header > div > div > div:first-child > a > svg {
    width: 2.35rem;
    height: 2.35rem;
  }

  .studyne-hero {
    min-height: 0;
  }

  .studyne-hero > div:last-child {
    padding-block: 3.75rem;
  }

  .studyne-hero h1 {
    max-width: 9ch;
    font-size: clamp(3.15rem, 14vw, 4.5rem);
  }

  .studyne-featured-shelf {
    padding: 1rem;
    border-radius: 1.35rem;
  }

  .public-auth-page {
    padding-block: 2.75rem;
  }

  .public-auth-art {
    min-height: 13rem;
    border-radius: 1.25rem;
  }

  .public-auth-panel > div.rounded-2xl {
    padding: 1.25rem;
  }

  .public-legal-page > div,
  .public-dmca-page > div {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }

  .study-room-index article {
    padding: .85rem .85rem 1.25rem;
  }

  #ebooksSearchForm {
    padding: .75rem;
  }

  #ebooksSearchForm button {
    width: 100%;
  }

  #browseEbooksGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
  }
}

@media (max-width: 420px) {
  #browseEbooksGrid {
    grid-template-columns: minmax(0, 1fr);
  }

  #browseEbooksGrid > [data-browse-ebook-card] > a:first-child,
  #browseEbooksGrid > [data-browse-ebook-card] > div:first-child {
    aspect-ratio: 4 / 3;
  }
}


.public-auth-page {
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.public-auth-page > div > div:first-child {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.public-auth-layout {
  align-items: stretch;
}

.public-auth-art {
  min-height: 31rem;
}

.public-auth-panel > div.rounded-2xl {
  height: 100%;
}

.auth-form-heading {
  margin-bottom: 1.5rem;
}

.auth-form-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.auth-form-heading p {
  margin: .4rem 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.public-auth-panel form label {
  display: inline-block;
  margin-bottom: .55rem;
  font-size: .72rem;
  letter-spacing: .09em;
}

.public-auth-panel input:focus,
.public-dmca-page input:focus,
.public-dmca-page textarea:focus {
  border-color: #6558f5;
  outline: 3px solid rgba(101, 88, 245, .16);
  outline-offset: 1px;
}

.public-auth-panel form button[type="submit"],
.public-dmca-page .dmca-submit {
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: .01em;
  text-transform: none;
}

.public-dmca-page > div {
  max-width: 60rem;
}

.public-dmca-page > .dmca-page-shell {
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dmca-intro {
  margin-bottom: 2rem;
}

.dmca-kicker,
.legal-kicker {
  display: inline-block;
  margin-bottom: .75rem;
  color: #6558f5;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dmca-intro h1,
.legal-page-heading h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.1;
}

.dmca-intro > p,
.legal-page-heading > p {
  max-width: 58ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.dmca-note {
  margin-top: 1.25rem !important;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(101, 88, 245, .15);
  border-radius: 1rem;
  background: color-mix(in srgb, #6558f5 6%, var(--surface));
  font-size: .92rem !important;
}

.dmca-alert {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid;
  border-radius: 1rem;
  font-size: .92rem;
}

.dmca-alert-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.dmca-alert-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.dmca-form {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.dmca-form-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.dmca-form-heading p,
.dmca-privacy-hint {
  margin: .4rem 0 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.6;
}

.dmca-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.dmca-fields > div {
  min-width: 0;
}

.dmca-fields .dmca-field-wide {
  grid-column: 1 / -1;
}

.dmca-fields label {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .55rem;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 700;
}

.dmca-fields label span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 600;
}

.dmca-fields input,
.dmca-fields textarea {
  width: 100%;
  padding: .85rem 1rem;
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
}

.dmca-fields textarea {
  min-height: 9rem;
  resize: vertical;
}

.dmca-fields input::placeholder,
.dmca-fields textarea::placeholder {
  color: #9292a3;
}

.dmca-submit {
  min-height: 3.25rem;
  padding: .85rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: #6558f5;
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.dmca-submit:hover {
  transform: translateY(-1px);
  background: #5144dc;
}

.dmca-privacy-hint {
  margin: -.75rem 0 0;
  text-align: center;
}

.legal-page-heading {
  margin-bottom: 2rem;
}

.public-legal-page > .legal-policy-shell {
  max-width: 72rem;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 2.5rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.legal-page-layout {
  display: grid;
  grid-template-columns: minmax(13rem, .72fr) minmax(0, 1.7fr);
  align-items: start;
  gap: clamp(1.25rem, 4vw, 3rem);
}

.legal-toc {
  position: sticky;
  top: 6.5rem;
  display: grid;
  gap: .2rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--surface);
}

.legal-toc h2 {
  margin: 0 0 .5rem;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: .55rem .65rem;
  border-radius: .6rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  background: color-mix(in srgb, #6558f5 8%, var(--surface));
  color: #5144dc;
}

.public-legal-page .prose {
  max-width: none;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.public-legal-page .prose h2[id] {
  scroll-margin-top: 6rem;
}

.study-room-index article {
  padding: clamp(1rem, 2vw, 1.4rem);
}

.study-room-index article .line-clamp-3 {
  font-style: normal;
}

@media (max-width: 760px) {
  .public-auth-art {
    min-height: 14rem;
  }

  .legal-page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-toc h2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .dmca-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .dmca-fields .dmca-field-wide {
    grid-column: auto;
  }

  .legal-toc {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-legal-page .prose {
    padding: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}