:root {
  color-scheme: light;
  --shell-max: 56rem;
  --read-max: 42rem;
  --gutter: 1rem;
  --reader-font-size: 18px;
  --reader-line-height: 1.75;
  --reader-width: var(--read-max);
  --display-font: Newsreader, Georgia, "Times New Roman", serif;
  --reader-font-family: Newsreader, Georgia, "Times New Roman", serif;
  --ui-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-bg: #f4f1ea;
  --surface: #fffdf7;
  --surface-muted: #ebe7dc;
  --surface-strong: #e5f0eb;
  --text: #202321;
  --text-muted: #686c65;
  --border: #d7d0c1;
  --link: #295f73;
  --link-hover: #173f4e;
  --accent: #8a3b2f;
  --accent-ink: #6f2f27;
  --accent-soft: #f3dfd5;
  --primary-button-text: #fffdf7;
  --focus: #2667a8;
  --shadow: 0 18px 44px rgba(32, 35, 33, 0.09);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #121413;
  --surface: #1c201e;
  --surface-muted: #252b28;
  --surface-strong: #2a211d;
  --text: #f1eee5;
  --text-muted: #b9b6ad;
  --border: #3d443f;
  --link: #e1ad9c;
  --link-hover: #ffd1c3;
  --accent: #d48a76;
  --accent-ink: #f0a18d;
  --accent-soft: #34241f;
  --primary-button-text: #15110f;
  --focus: #91c7ff;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page-bg: #121413;
    --surface: #1c201e;
    --surface-muted: #252b28;
    --surface-strong: #2a211d;
    --text: #f1eee5;
    --text-muted: #b9b6ad;
    --border: #3d443f;
    --link: #e1ad9c;
    --link-hover: #ffd1c3;
    --accent: #d48a76;
    --accent-ink: #f0a18d;
    --accent-soft: #34241f;
    --primary-button-text: #15110f;
    --focus: #91c7ff;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

[hidden][hidden] {
  display: none;
}

html {
  min-width: 320px;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--ui-font);
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
}

body,
button,
input,
select {
  font: inherit;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 20;
  transform: translateY(-180%);
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-footer,
.site-main {
  width: min(100% - (var(--gutter) * 2), var(--shell-max));
  margin-inline: auto;
}

.site-header {
  width: 100%;
  padding: 0.95rem 0 0.9rem;
  border-bottom: 1px solid var(--border);
}

.site-nav {
  display: flex;
  width: min(100% - (var(--gutter) * 2), var(--shell-max));
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--display-font);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.brand:hover {
  color: var(--accent-ink);
}

.brand-mark {
  width: auto;
  height: clamp(2.05rem, 2.7vw, 2.35rem);
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 2px rgba(32, 35, 33, 0.08));
}

.brand-text {
  display: grid;
  gap: 0.11rem;
  min-width: 0;
}

.brand-title {
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  line-height: 1;
}

.brand-subtitle {
  color: var(--text-muted);
  font-family: var(--display-font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 0.8rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.support-link {
  min-height: 2.25rem;
  padding: 0.48rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--accent), var(--border) 35%);
  border-radius: 999px;
  background: var(--accent-soft);
}

.nav-links a.support-link {
  color: var(--accent-ink);
}

.nav-links a.support-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.site-main {
  padding: 2.45rem 0 3rem;
}

.site-footer {
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.page-heading,
.chapter-heading {
  width: min(100%, var(--reader-width));
  margin: 0 auto 2rem;
}

.home-heading {
  width: min(100%, var(--shell-max));
  margin-bottom: 1.35rem;
}

.home-heading,
.novel-card {
  font-family: var(--display-font);
}

.page-heading p,
.novel-profile p,
.chapter-heading p {
  max-width: 42rem;
}

.eyebrow,
.chapter-meta,
.novel-meta,
.toc-meta {
  margin: 0 0 0.45rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.page-heading h1,
.chapter-heading h1,
.novel-profile h1 {
  margin: 0.2rem 0 0.75rem;
  color: var(--text);
  font-family: var(--display-font);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.03;
}

.page-heading p:last-child,
.novel-profile p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.45;
}

.home-heading p:last-child {
  color: var(--text-muted);
  font-size: 1.08rem;
}

.home-heading h1 {
  font-size: clamp(2.05rem, 4.5vw, 2.65rem);
}

.button,
[data-continue-reading] a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  max-width: 100%;
  padding: 0.55rem 0.82rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.button:hover,
[data-continue-reading] a:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--primary-button-text);
}

.button.primary:hover {
  background: var(--accent-ink);
  color: var(--primary-button-text);
}

.button.secondary {
  background: var(--surface-muted);
}

.novel-list {
  display: grid;
  gap: 0.9rem;
  width: min(100%, var(--shell-max));
  margin: 1.25rem auto 0;
}

.novel-card {
  display: grid;
  grid-template-columns: minmax(9rem, 11rem) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  padding: 1.05rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cover-link {
  align-self: stretch;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-muted);
  text-decoration: none;
}

.cover-thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.novel-card-body {
  display: grid;
  gap: 0.55rem;
}

.novel-card-kicker {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.novel-card h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.42rem;
  line-height: 1.1;
}

.novel-title-link {
  color: var(--text);
  text-decoration: none;
}

.novel-title-link:hover {
  color: var(--accent-ink);
}

.novel-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.novel-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.novel-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  min-height: 2.5rem;
  margin-top: 0.15rem;
}

.continue-link {
  font-weight: 700;
}

.latest-link {
  flex-direction: row;
  gap: 0.25rem;
  align-items: center;
  line-height: 1.2;
}

.latest-link span {
  display: none;
}

.novel-profile {
  display: grid;
  gap: 1.35rem;
  width: min(100%, var(--shell-max));
  margin: 0 auto 2rem;
}

.novel-profile.has-cover {
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  align-items: start;
}

.novel-cover-frame {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-muted);
}

.cover {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.novel-profile-body {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.novel-profile-body h1,
.novel-profile-body p {
  margin-bottom: 0;
}

.novel-description {
  color: var(--text-muted);
}

.novel-details-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: stretch;
  margin-top: 0.1rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface), transparent 6%);
}

.novel-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.novel-stat,
.metadata div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.novel-stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.novel-stat dt,
.metadata dt {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.novel-stat dd,
.metadata dd {
  margin: 0;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 850;
  line-height: 1.15;
}

.novel-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(100%, var(--shell-max));
  margin: 0 auto 2rem;
}

.novel-feature-card {
  display: grid;
  gap: 0.35rem;
  min-height: 7rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.novel-feature-card:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.feature-card-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.65rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.novel-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.95rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-start;
}

.novel-details-panel .actions {
  padding-top: 0.72rem;
  border-top: 1px solid var(--border);
}

.chapter-shell {
  padding: 0.5rem 0 0;
}

.chapter-heading {
  display: grid;
  gap: 0.78rem;
  margin-bottom: 1.35rem;
}

.chapter-heading .eyebrow {
  margin: 0;
  line-height: 1.28;
}

.chapter-heading h1 {
  margin: 0;
  line-height: 1;
}

.chapter-heading time {
  display: block;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.35;
}

.chapter-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
}

.chapter-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.chapter-breadcrumb a:hover {
  color: var(--text);
}

.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: min(100%, var(--reader-width));
  margin: 1.35rem auto 0;
}

.nav-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.nav-slot:empty {
  display: none;
}

.nav-jump-slot {
  flex: 1 1 15rem;
}

.chapter-jump-label {
  flex: 1 1 13rem;
  min-width: 0;
}

.chapter-jump-select {
  width: 100%;
  min-height: 2.55rem;
  padding: 0.5rem 1.9rem 0.5rem 0.68rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.caught-up-note {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.55rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.reader-settings-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  min-width: 2.5rem;
  padding: 0.48rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.reader-settings-symbol {
  font-family: var(--display-font);
  font-size: 1rem;
  line-height: 1;
}

.reader-settings-label {
  display: none;
}

.reader-settings-open:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.reader-controls-backdrop {
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(0, 0, 0, 0.42);
}

.reader-controls-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 19;
  width: min(100vw - 2rem, 20rem);
  overflow: auto;
  padding: 1rem;
  border-left: 1px solid var(--border);
  background: var(--surface);
  box-shadow: -18px 0 44px rgba(0, 0, 0, 0.22);
}

.reader-controls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.reader-controls-header h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.45rem;
  line-height: 1.05;
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.reader-controls-drawer label,
.control-field {
  display: grid;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.reader-controls-drawer input,
.reader-controls-drawer select {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--page-bg);
  color: var(--text);
}

.font-size-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.control-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.25rem;
  gap: 0.5rem;
  align-items: center;
}

.reader-controls-drawer .control-number {
  padding-inline: 0.45rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.reader-controls-drawer button,
#resetReaderSettings {
  min-height: 2.5rem;
  align-self: end;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
}

.reader-controls-drawer button:hover,
#resetReaderSettings:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.font-size-presets [aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.reader-settings-is-open {
  overflow: hidden;
}

.reader-content {
  width: min(100%, var(--reader-width));
  margin: 0 auto;
  font-family: var(--reader-font-family);
  font-size: var(--reader-font-size);
  line-height: var(--reader-line-height);
}

.reader-content p {
  margin: 0 0 1.28em;
}

.reader-content h2,
.reader-content h3 {
  margin: 2em 0 0.75em;
  line-height: 1.25;
}

.reader-content hr {
  width: 4.5rem;
  height: 1px;
  margin: 2.5rem auto;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.reader-content blockquote {
  margin: 1.5rem 0;
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
}

.chapter-end-mark {
  width: 4rem;
  height: 1px;
  margin: 2.75rem auto 1.5rem;
  background: linear-gradient(90deg, transparent, var(--border), var(--accent), var(--border), transparent);
}

.reading-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 15;
  height: 3px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--accent);
}

.chapter-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-tools {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(7rem, 9rem) auto;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.toc-tools input,
.toc-tools button {
  min-height: 2.55rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

.toc-tools button {
  cursor: pointer;
  font-weight: 800;
}

.toc-tools button:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.chapter-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, auto);
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.chapter-list time,
.chapter-release-state,
.chapter-release-meta,
.muted {
  color: var(--text-muted);
}

.chapter-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.chapter-number {
  min-width: 2.25rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.last-read-marker {
  padding: 0.18rem 0.48rem;
  border: 1px solid color-mix(in srgb, var(--accent), var(--border) 40%);
  border-radius: 999px;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.chapter-row-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.55rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.patreon-cta,
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: min(100%, var(--shell-max));
  margin: 2.25rem auto;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--accent), var(--border) 55%);
  border-radius: 8px;
  background: var(--surface-strong);
}

.patreon-cta h2,
.patreon-cta h3,
.cta h2,
.cta h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.patreon-cta p,
.cta p {
  margin: 0;
  color: var(--text-muted);
}

.ad-slot {
  display: grid;
  place-items: center;
  width: min(100%, var(--reader-width));
  min-height: 5.5rem;
  margin: 1.4rem auto;
  border: 1px dashed color-mix(in srgb, var(--border), var(--text-muted) 25%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-muted), transparent 35%);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.ad-slot-top {
  margin-bottom: 2rem;
}

.ad-slot-bottom {
  margin-top: 1.8rem;
}

.floating-reader-nav {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 12;
  display: inline-flex;
  gap: 0.45rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface), transparent 4%);
  box-shadow: var(--shadow);
}

.floating-reader-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.floating-reader-button:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.toc {
  display: grid;
  gap: 0.6rem;
  width: min(100%, var(--shell-max));
  margin: 2.35rem auto 0;
  padding: 0;
  list-style: none;
}

.toc-heading {
  margin: 0 0 0.4rem;
  font-size: 0.94rem;
}

[data-continue-reading]:empty {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --gutter: 1rem;
  }

  .site-header {
    padding-top: 0.9rem;
    padding-bottom: 0.95rem;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .brand {
    gap: 0.58rem;
  }

  .brand-mark {
    height: 2.1rem;
  }

  .brand-title {
    font-size: 1.28rem;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .page-heading h1,
  .chapter-heading h1,
  .novel-profile h1 {
    font-size: 2.45rem;
  }

  .novel-card,
  .novel-profile.has-cover,
  .novel-feature-grid,
  .novel-details-panel,
  .patreon-cta,
  .cta {
    grid-template-columns: 1fr;
  }

  .novel-profile.has-cover .novel-profile-body {
    order: -1;
  }

  .novel-card {
    align-items: stretch;
  }

  .cover-link {
    max-width: 9rem;
  }

  .novel-profile .cover {
    max-height: 34rem;
    object-fit: cover;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
  }

  .novel-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .novel-stat,
  .novel-stat:first-child {
    padding: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
  }

  .chapter-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-prev-slot,
  .nav-jump-slot,
  .nav-settings-slot,
  .nav-next-slot,
  .latest-link {
    width: 100%;
  }

  .nav-jump-slot {
    display: grid;
    flex: 0 1 auto;
    grid-template-columns: 1fr;
    max-width: none;
  }

  .nav-settings-slot .reader-settings-open {
    width: 100%;
    gap: 0.35rem;
  }

  .reader-settings-label {
    display: inline;
  }

  .toc-tools {
    grid-template-columns: 1fr;
  }

  .chapter-jump-label {
    min-width: 0;
  }

  .button,
  [data-continue-reading] a {
    width: 100%;
  }

  .reader-content {
    overflow-wrap: break-word;
  }

  .chapter-list li {
    grid-template-columns: 1fr;
  }

  .chapter-row-meta {
    justify-content: flex-start;
  }

  .floating-reader-nav {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    justify-content: center;
  }
}
