:root {
  color-scheme: dark;
  --bg: #101313;
  --bg-soft: #161a19;
  --panel: #1b211f;
  --panel-raised: #202725;
  --line: #303a36;
  --text: #eef1ed;
  --muted: #a9b3ad;
  --soft: #77837b;
  --accent: #b9c8b4;
  --accent-strong: #d8dfc9;
  --rose: #d8b8b8;
  --tea: #c8baa2;
  --ink: #0f1211;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.18);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--accent) 26%, transparent);
  --brand-thread: #d8dfc9;
  --brand-warm: #c8baa2;
  --food-red: #c96a5e;
  --food-red-deep: #9d4c45;
  --food-amber: #d2a76b;
  --food-sesame: #eadfc5;
  --food-leaf: #81927a;
  --comic-ink: #090c0b;
  --genre-a: var(--accent);
  --genre-b: var(--panel-raised);
  --genre-c: var(--accent-strong);
  --radius: 8px;
  --font-ko: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", system-ui, sans-serif;
}

/* Quiet library refinements: discovery, compact metadata and focused reading. */
.quiet-reading .home-discovery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.quiet-reading .home-discovery-panel {
  min-width: 0;
}

.quiet-reading .home-mini-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.quiet-reading .home-mini-book {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 70px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 4px 0 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.quiet-reading .home-mini-book:hover {
  background: var(--bg-soft);
}

.quiet-reading .home-mini-book img {
  width: 42px;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  object-fit: cover;
}

.quiet-reading .home-mini-book span,
.quiet-reading .home-mini-book strong,
.quiet-reading .home-mini-book small {
  display: block;
  min-width: 0;
}

.quiet-reading .home-mini-book strong,
.quiet-reading .home-mini-book small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiet-reading .home-mini-book strong {
  font-size: 0.84rem;
  font-weight: 600;
}

.quiet-reading .home-mini-book small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.quiet-reading .catalog-view-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 36px);
  gap: 2px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px;
  background: var(--bg-soft);
}

.quiet-reading .catalog-view-toggle button {
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
}

.quiet-reading .catalog-view-toggle button.active {
  background: var(--bg);
  color: var(--accent-strong);
}

.quiet-reading .catalog-list.catalog-grid-view {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 14px;
}

.quiet-reading .catalog-tile {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
}

.quiet-reading .catalog-tile-cover {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  background: var(--bg-soft);
}

.quiet-reading .catalog-tile-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.quiet-reading .catalog-tile-cover > span {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  min-width: 28px;
  height: 24px;
  place-items: center;
  border-radius: 3px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
}

.quiet-reading .catalog-tile-copy {
  min-width: 0;
}

.quiet-reading .catalog-tile-copy > small,
.quiet-reading .catalog-tile-copy > span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiet-reading .catalog-tile-title {
  display: -webkit-box;
  width: 100%;
  min-height: 40px;
  margin: 5px 0 3px;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.quiet-reading .catalog-tile-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 6px;
}

.quiet-reading .catalog-tile-actions button {
  min-height: 36px;
}

.quiet-reading .work-detail > .search-return-panel {
  width: 100%;
  margin-bottom: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 10px;
  background: transparent;
}

.quiet-reading .detail-quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 1px 0 2px;
}

.quiet-reading .detail-quick-meta span {
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 0 10px;
}

.quiet-reading .detail-quick-meta span:first-child {
  padding-left: 0;
}

.quiet-reading .detail-quick-meta span:last-child {
  border-right: 0;
}

.quiet-reading .detail-quick-meta small,
.quiet-reading .detail-quick-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiet-reading .detail-quick-meta small {
  color: var(--soft);
  font-size: 0.7rem;
}

.quiet-reading .detail-quick-meta strong {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}

.quiet-reading .detail-quiet-summary {
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(0, 1.22fr);
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quiet-reading .detail-latest-panel,
.quiet-reading .detail-related-panel {
  min-width: 0;
  padding: 16px 0;
}

.quiet-reading .detail-latest-panel {
  display: grid;
  gap: 5px;
  border-right: 1px solid var(--line);
  padding-right: 20px;
}

.quiet-reading .detail-latest-panel p,
.quiet-reading .detail-latest-panel strong,
.quiet-reading .detail-latest-panel span,
.quiet-reading .detail-latest-panel small {
  margin: 0;
}

.quiet-reading .detail-latest-panel > strong {
  overflow: hidden;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiet-reading .detail-latest-panel > span,
.quiet-reading .detail-latest-panel > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiet-reading .detail-latest-panel button {
  width: fit-content;
  min-height: 34px;
  margin-top: 5px;
  padding: 0 13px;
}

.quiet-reading .detail-related-panel {
  padding-left: 20px;
}

.quiet-reading .detail-related-heading {
  margin-bottom: 9px;
}

.quiet-reading .detail-related-heading > strong {
  font-size: 0.94rem;
}

.quiet-reading .detail-related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quiet-reading .detail-related-list button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.quiet-reading .detail-related-list img {
  width: 38px;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  object-fit: cover;
}

.quiet-reading .detail-related-list span,
.quiet-reading .detail-related-list strong,
.quiet-reading .detail-related-list small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quiet-reading .detail-related-list strong,
.quiet-reading .detail-related-list small {
  white-space: nowrap;
}

.quiet-reading .detail-related-list strong {
  font-size: 0.76rem;
}

.quiet-reading .detail-related-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.66rem;
}

.quiet-reading .reader-header,
.quiet-reading .reader-bottom-bar,
.quiet-reading .reader-content {
  transition: transform 180ms ease, opacity 180ms ease, padding 180ms ease;
}

@media (max-width: 900px) {
  .quiet-reading .catalog-list.catalog-grid-view {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .quiet-reading .home-discovery {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
    padding-top: 20px;
  }

  .quiet-reading .home-mini-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .quiet-reading .catalog-filterbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .quiet-reading .catalog-filterbar > .segmented-control {
    grid-column: 1 / -1;
  }

  .quiet-reading .catalog-view-toggle {
    grid-column: 1;
    justify-self: start;
  }

  .quiet-reading .catalog-filterbar > .advanced-filter {
    grid-column: 2;
  }

  .quiet-reading .catalog-filterbar > .advanced-filter[open] {
    grid-column: 1 / -1;
  }

  .quiet-reading .catalog-list.catalog-grid-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .quiet-reading .catalog-tile-title {
    min-height: 38px;
    font-size: 0.86rem;
  }

  .quiet-reading .work-detail > .search-return-panel {
    margin-bottom: 12px;
  }

  .quiet-reading .detail-quick-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
  }

  .quiet-reading .detail-quick-meta span,
  .quiet-reading .detail-quick-meta span:first-child {
    border-right: 0;
    padding: 0;
  }

  .quiet-reading .detail-quiet-summary {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .quiet-reading .detail-latest-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
  }

  .quiet-reading .detail-related-panel {
    padding-left: 0;
  }

  .quiet-reading .detail-related-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .quiet-reading .detail-related-list button {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .quiet-reading .detail-related-list img {
    width: 32px;
  }

  .quiet-reading .ranking-item {
    grid-template-columns: 28px 44px minmax(0, 1fr) 68px;
    grid-template-areas:
      "rank cover title delta"
      "rank cover title actions";
    gap: 6px 8px;
    min-height: 108px;
    padding: 9px;
  }

  .quiet-reading .ranking-item::before {
    grid-area: rank;
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
  }

  .quiet-reading .rank-cover {
    grid-area: cover;
    width: 44px;
  }

  .quiet-reading .ranking-title {
    grid-area: title;
  }

  .quiet-reading .ranking-title em {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .quiet-reading .ranking-title .rank-context {
    display: none;
  }

  .quiet-reading .rank-proof {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .quiet-reading .rank-proof span:nth-child(n + 2) {
    display: none;
  }

  .quiet-reading .rank-delta {
    grid-area: delta;
    min-width: 0;
    width: 68px;
    padding: 5px 4px;
    font-size: 0.66rem;
  }

  .quiet-reading .rank-trend {
    display: none;
  }

  .quiet-reading .rank-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    min-width: 0;
  }

  .quiet-reading .rank-actions button {
    min-width: 0;
    min-height: 36px;
    padding: 0 6px;
    font-size: 0.72rem;
  }

  .quiet-reading .rank-actions button:last-child {
    display: none;
  }

  .quiet-reading .reader-header,
  .quiet-reading .reader-bottom-bar {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 10;
  }

  .quiet-reading .reader-header {
    top: 0;
  }

  .quiet-reading .reader-bottom-bar {
    bottom: 0;
  }

  .quiet-reading .reader-content {
    padding-top: 76px;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .quiet-reading .reader-dialog.reader-chrome-hidden .reader-header {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }

  .quiet-reading .reader-dialog.reader-chrome-hidden .reader-bottom-bar {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }

  .quiet-reading .reader-dialog.reader-chrome-hidden .reader-content {
    padding-top: 76px;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f2ed;
  --bg-soft: #ebe8df;
  --panel: #fffdf7;
  --panel-raised: #f9f6ef;
  --line: #ddd7cb;
  --text: #222621;
  --muted: #697168;
  --soft: #8b958b;
  --accent: #7e927b;
  --accent-strong: #3f523f;
  --rose: #a87979;
  --tea: #9a805d;
  --ink: #fbfaf6;
  --shadow: 0 20px 54px rgba(64, 57, 46, 0.12);
  --shadow-soft: 0 12px 34px rgba(64, 57, 46, 0.1);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
  --brand-thread: #3f523f;
  --brand-warm: #9a805d;
  --food-red: #a84f47;
  --food-red-deep: #853e39;
  --food-amber: #a7793f;
  --food-sesame: #f0e4c9;
  --food-leaf: #667a61;
  --comic-ink: #111412;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

section,
.work-detail,
.split-layout {
  scroll-margin-top: 88px;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--food-sesame) 5%, transparent) 0 1px, transparent 1.2px) 0 0 / 24px 24px,
    linear-gradient(180deg, rgba(185, 200, 180, 0.06), transparent 340px),
    var(--bg);
  color: var(--text);
  font-family: var(--font-ko);
  font-size: 16px;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--food-red), var(--food-amber), var(--food-sesame), var(--food-leaf));
  opacity: 0.72;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

:where([data-cover-style="ropan-gilded"]) {
  --genre-a: #d8b8b8;
  --genre-b: #33232a;
  --genre-c: #f1dfc7;
}

:where([data-cover-style="hunter-neon"]) {
  --genre-a: #6bc8d5;
  --genre-b: #101c25;
  --genre-c: #d7fbff;
}

:where([data-cover-style="regression-paper"]) {
  --genre-a: #c9b98e;
  --genre-b: #282b25;
  --genre-c: #f2ead8;
}

:where([data-cover-style="chaebol-glass"]) {
  --genre-a: #c9c2ad;
  --genre-b: #171c22;
  --genre-c: #edf1f5;
}

:where([data-cover-style="palace-silk"]) {
  --genre-a: #88ad91;
  --genre-b: #18241e;
  --genre-c: #ead6a3;
}

:where([data-cover-style="career-healing"]) {
  --genre-a: #a7c6a1;
  --genre-b: #18251f;
  --genre-c: #eef0cf;
}

:where([data-cover-style="bl-bluehour"]) {
  --genre-a: #8ea4d9;
  --genre-b: #131927;
  --genre-c: #d9e5ff;
}

:where([data-cover-style="martial-ink"]) {
  --genre-a: #bca470;
  --genre-b: #181614;
  --genre-c: #efe2c1;
}

:where([data-cover-style="apocalypse-steel"]) {
  --genre-a: #d36f61;
  --genre-b: #1d2021;
  --genre-c: #f1c2b7;
}

:where([data-cover-style="daily-soft"]) {
  --genre-a: #b8c7d8;
  --genre-b: #27312f;
  --genre-c: #f0efe6;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 13px 0 9px;
  border-bottom: 1px solid color-mix(in srgb, var(--food-amber) 12%, transparent);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 146px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand-thread) 36%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--brand-thread) 16%, transparent), transparent 56%),
    var(--panel);
  color: var(--accent-strong);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-warm) 10%, transparent);
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 8px;
  width: 7px;
  height: 11px;
  border-left: 1px solid color-mix(in srgb, var(--food-amber) 78%, transparent);
  border-radius: 50%;
  transform: rotate(12deg);
  opacity: 0.82;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--food-red), var(--food-amber));
  opacity: 0.78;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.15;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.desktop-nav {
  justify-self: center;
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-soft) 88%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 8%, transparent);
}

.desktop-nav a {
  position: relative;
  min-width: 62px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
  transition: background 180ms ease, color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: var(--panel-raised);
  color: var(--text);
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--food-red), var(--food-amber));
}

.platform-channel-nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding: 2px 0 8px;
  margin: 0 0 6px;
  scrollbar-width: thin;
}

.platform-channel-chip {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.platform-channel-chip:hover,
.platform-channel-chip.active {
  border-color: color-mix(in srgb, var(--food-amber) 58%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--food-red) 11%, transparent), transparent),
    color-mix(in srgb, var(--food-amber) 9%, var(--panel));
  color: var(--text);
  transform: translateY(-1px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 230px;
  max-width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder {
  color: var(--soft);
}

.search-suggest-panel {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) minmax(180px, 0.5fr);
  gap: 10px;
  margin: 8px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.search-suggest-panel[hidden] {
  display: none;
}

.search-suggest-head,
.search-suggest-list,
.search-suggest-quick {
  min-width: 0;
}

.search-suggest-head {
  display: grid;
  align-content: start;
  gap: 5px;
  border-right: 1px solid var(--line);
  padding: 4px 10px 4px 2px;
}

.search-suggest-head span,
.search-suggest-head small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest-head strong {
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest-list {
  display: grid;
  gap: 6px;
}

.search-suggest-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.search-suggest-row img {
  width: 34px;
  aspect-ratio: 2 / 3;
  border-radius: 5px;
  object-fit: cover;
}

.search-suggest-row span,
.search-suggest-row strong,
.search-suggest-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest-row strong {
  color: var(--text);
  font-size: 0.86rem;
}

.search-suggest-row small,
.search-suggest-empty span {
  color: var(--muted);
  font-size: 0.74rem;
}

.search-suggest-row button,
.search-suggest-quick button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.search-suggest-row button:hover,
.search-suggest-quick button:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  color: var(--accent-strong);
}

.search-suggest-empty {
  display: grid;
  gap: 4px;
  min-height: 48px;
  align-content: center;
}

.search-suggest-empty strong {
  color: var(--text);
  font-size: 0.88rem;
}

.search-suggest-quick {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 6px;
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

.icon-button,
.save-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-button:hover,
.save-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--food-amber) 56%, var(--line));
  background: var(--panel-raised);
}

.quiet-hidden {
  display: none !important;
}

.hero-section {
  --text: #f1f3ef;
  --muted: #b3bbb5;
  --soft: #818b84;
  --accent: #d8b378;
  --accent-strong: #eadfc5;
  --panel: #171c1a;
  --panel-raised: #202723;
  --bg-soft: #101513;
  --line: #39443e;
  --ink: #151814;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
  gap: 24px;
  align-items: start;
  min-height: 260px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--food-amber) 26%, var(--line));
  border-radius: var(--radius);
  padding: 24px;
  background: var(--comic-ink);
  color: var(--text);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 11, 10, 0.98) 0%, rgba(8, 11, 10, 0.94) 42%, rgba(8, 11, 10, 0.64) 67%, rgba(8, 11, 10, 0.27) 100%),
    linear-gradient(180deg, rgba(8, 11, 10, 0.1), rgba(8, 11, 10, 0.76));
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  z-index: 3;
  width: 132px;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--food-red), var(--food-amber), transparent);
}

.hero-food-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("./assets/moonlight-pocha-hero-20260806.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: brightness(1.13) saturate(0.94) contrast(1.04);
}

.hero-copy,
.hero-feature-card {
  position: relative;
  z-index: 2;
}

main > section {
  scroll-margin-top: 86px;
}

.hero-copy {
  min-width: 0;
  max-width: 720px;
}

.mobile-break {
  display: none;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
.hero-copy > h2 {
  max-width: 720px;
  margin: 0;
  font-size: 2.18rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.home-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  max-width: 620px;
  min-height: 48px;
  margin-top: 16px;
  border: 1px solid color-mix(in srgb, var(--food-amber) 42%, var(--line));
  border-radius: var(--radius);
  padding: 6px 6px 6px 14px;
  background: color-mix(in srgb, var(--panel) 91%, transparent);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.14);
}

.home-search span {
  color: var(--accent-strong);
  font-size: 1rem;
}

.home-search input {
  min-width: 0;
  min-height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.home-search input::placeholder {
  color: var(--soft);
}

.live-pulse {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  max-width: 100%;
  margin-top: 12px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 76%, transparent);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.14);
}

.live-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--rose) 46%, transparent);
  animation: livePulse 1.9s ease-out infinite;
}

.live-pulse strong,
.live-pulse small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-pulse strong {
  color: var(--text);
  font-size: 0.82rem;
}

.live-pulse small {
  max-width: 340px;
  color: var(--muted);
  font-size: 0.74rem;
}

.live-pulse small::before {
  content: "· ";
  color: var(--food-amber);
}

.live-comment-ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  max-width: 680px;
  margin-top: 8px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-soft) 82%, transparent);
}

.live-comment-ticker span {
  display: inline-grid;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: color-mix(in srgb, var(--rose) 18%, var(--panel));
  color: var(--rose);
  font-size: 0.7rem;
  font-weight: 900;
}

.live-comment-ticker p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-live-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-width: 680px;
  margin-top: 8px;
}

.hero-live-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  min-width: 0;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 9px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.hero-live-row:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--panel-raised);
}

.hero-live-row span {
  grid-row: auto;
  align-self: start;
  width: fit-content;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 8px;
  background: color-mix(in srgb, var(--accent) 13%, var(--bg-soft));
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.hero-live-row strong,
.hero-live-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-live-row strong {
  color: var(--text);
  font-size: 0.8rem;
}

.hero-live-row small {
  color: var(--muted);
  font-size: 0.7rem;
}

.signature-dock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-width: none;
  margin-top: 8px;
}

.signature-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: var(--radius);
  padding: 9px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 62%),
    color-mix(in srgb, var(--panel) 88%, var(--bg));
  color: var(--text);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.signature-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent-strong) 44%, var(--line));
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%),
    var(--panel-raised);
}

.signature-card span {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 900;
}

.signature-card strong,
.signature-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signature-card strong {
  color: var(--text);
  font-size: 0.84rem;
}

.signature-card small {
  color: var(--muted);
  font-size: 0.7rem;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--rose) 48%, transparent);
  }

  70% {
    box-shadow: 0 0 0 9px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.primary-action,
.soft-action {
  position: relative;
  overflow: hidden;
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 16px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.primary-action {
  border-color: color-mix(in srgb, var(--food-amber) 68%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 11%, transparent), transparent 100%),
    var(--food-sesame);
  color: var(--ink);
  font-weight: 800;
  box-shadow:
    inset 3px 0 0 color-mix(in srgb, var(--food-red) 82%, transparent),
    0 10px 22px color-mix(in srgb, var(--food-amber) 17%, transparent);
}

.primary-action::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--food-red-deep) 72%, transparent);
  box-shadow: -6px 2px 0 color-mix(in srgb, var(--food-red-deep) 48%, transparent);
  opacity: 0.72;
  display: none;
}

.soft-action {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.primary-action:hover,
.soft-action:hover {
  transform: translateY(-1px);
}

.primary-action:hover {
  border-color: var(--food-amber);
  box-shadow:
    inset 3px 0 0 var(--food-red),
    0 12px 26px color-mix(in srgb, var(--food-amber) 25%, transparent);
}

.soft-action:hover {
  border-color: color-mix(in srgb, var(--food-amber) 54%, var(--line));
  background: var(--panel-raised);
}

.hero-feature-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 13px;
  align-self: start;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--food-amber) 38%, var(--line));
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--food-red) 8%, transparent), transparent 58%),
    color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.feature-cover-button {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: var(--bg-soft);
  color: var(--text);
}

.feature-cover-button img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 180ms ease;
}

.feature-cover-button:hover img {
  transform: scale(1.025);
}

.feature-cover-button span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  min-height: 30px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.feature-copy {
  display: grid;
  align-content: start;
  min-width: 0;
}

.feature-copy h2,
.feature-copy p {
  margin: 0;
}

.feature-copy h2 {
  display: -webkit-box;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feature-copy > p:not(.eyebrow) {
  display: -webkit-box;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.feature-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 11px;
}

.daily-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 4px;
}

.daily-panel div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  min-height: 48px;
  padding: 8px;
  border-radius: 6px;
  background: var(--panel-raised);
}

.daily-panel span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.daily-panel strong {
  grid-row: span 2;
  color: var(--accent-strong);
  font-size: 1.12rem;
}

.daily-panel small {
  min-width: 0;
  overflow: hidden;
  color: var(--soft);
  display: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-source-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--soft);
  font-size: 0.74rem;
  line-height: 1.45;
}

.platform-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 6px 0 8px;
}

.own-edge-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 0 14px;
}

.own-edge-strip article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: var(--panel);
}

.own-edge-strip strong,
.own-edge-strip span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.own-edge-strip strong {
  color: var(--accent-strong);
  font-size: 0.92rem;
}

.own-edge-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.core-route-board {
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.core-route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.core-route-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 58%),
    var(--panel);
}

.core-route-card > span,
.core-route-card > strong,
.core-route-card > small {
  display: block;
  min-width: 0;
}

.core-route-card > span {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
}

.core-route-card > strong {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
}

.core-route-card > small {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.core-route-list {
  display: grid;
  gap: 7px;
  margin-top: 4px;
}

.core-route-list button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 6px;
  padding: 8px;
  background: var(--bg-soft);
  color: var(--text);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.core-route-list button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: var(--panel-raised);
}

.core-route-list b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--panel);
  color: var(--accent-strong);
  font-size: 0.74rem;
}

.core-route-list span,
.core-route-list strong,
.core-route-list small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.core-route-list strong {
  color: var(--text);
  font-size: 0.82rem;
}

.core-route-list small {
  margin-top: 3px;
  color: var(--soft);
  font-size: 0.72rem;
}

.channel-hub {
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.channel-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.channel-chip {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: var(--panel);
  color: var(--text);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.channel-chip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line));
  background: var(--panel-raised);
}

.channel-chip strong {
  font-size: 0.9rem;
}

.channel-chip span {
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 800;
}

.home-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 12px;
}

.home-board-panel {
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0 0;
  background: transparent;
}

.home-board-panel + .home-board-panel {
  border-top-color: var(--line);
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.board-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.board-panel-heading h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.board-panel-heading button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 11px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.home-rank-preview,
.home-update-preview {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
}

.home-rank-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.home-rank-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.home-rank-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 900;
}

.home-rank-row button,
.home-update-row {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.home-rank-row strong,
.home-rank-row small,
.home-update-row strong,
.home-update-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-rank-row strong,
.home-update-row strong {
  font-size: 0.92rem;
  line-height: 1.35;
}

.home-rank-row small,
.home-update-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.home-rank-row em {
  color: var(--soft);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.home-rank-row em.up {
  color: var(--accent-strong);
}

.home-rank-row em.down {
  color: var(--rose);
}

.home-update-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.home-update-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.home-update-row span {
  display: grid;
  min-height: 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
}

.home-update-row small {
  grid-column: 2;
}

.bookstore-home {
  border-top: 1px solid var(--line);
  padding: 26px 0 30px;
}

.book-shelf-stack {
  display: grid;
  gap: 18px;
}

.book-shelf {
  min-width: 0;
}

.book-shelf-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.book-shelf-heading strong,
.book-shelf-heading span {
  display: block;
}

.book-shelf-heading strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.book-shelf-heading span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.book-shelf-heading button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 11px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.78rem;
}

.book-shelf-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 142px;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 12px;
  scroll-snap-type: inline proximity;
}

.book-shelf-card {
  display: grid;
  min-width: 0;
  gap: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  scroll-snap-align: start;
}

.book-shelf-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease;
}

.book-shelf-card:hover img {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.book-shelf-card span,
.book-shelf-card strong,
.book-shelf-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-shelf-card span {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.book-shelf-card strong {
  display: -webkit-box;
  min-height: 40px;
  font-size: 0.9rem;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.book-shelf-card small {
  display: -webkit-box;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.continue-panel,
.pass-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.continue-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--food-amber) 24%, var(--line));
  padding: 12px 14px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--food-red) 7%, transparent), transparent 32%),
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--food-sesame) 9%, transparent) 0 1px, transparent 1.2px) 0 0 / 18px 18px,
    var(--panel);
}

.continue-panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--food-red), var(--food-amber));
}

.continue-panel > * {
  position: relative;
  z-index: 1;
}

.continue-panel h2 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.35;
}

.continue-panel p,
.pass-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.pass-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.ticket-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius);
  background: var(--panel-raised);
  color: var(--accent-strong);
  font-weight: 900;
}

.quick-lanes {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 30px;
}

.update-stream {
  border-top: 1px solid var(--line);
  padding: 30px 0 34px;
}

.update-stream-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
}

.update-filterbar {
  display: flex;
  gap: 7px;
  margin: -4px 0 14px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: thin;
}

.update-filter-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.update-filter-chip strong {
  color: var(--accent-strong);
  font-size: 0.78rem;
}

.update-filter-chip:hover,
.update-filter-chip.active {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: var(--panel-raised);
  color: var(--text);
}

.update-feed-list {
  display: grid;
  gap: 8px;
}

.update-feed-more {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 850;
}

.update-feed-more:hover {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background: var(--panel-raised);
}

.update-feed-row {
  display: grid;
  grid-template-columns: 48px 62px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.update-feed-row:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: var(--panel-raised);
}

.update-feed-cover {
  width: 48px;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.update-time {
  display: inline-grid;
  min-height: 32px;
  place-items: center;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 900;
}

.update-body {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.update-body strong,
.update-body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-body strong {
  font-size: 0.95rem;
}

.update-body small {
  color: var(--muted);
  font-size: 0.78rem;
}

.update-body .update-reason {
  color: color-mix(in srgb, var(--accent-strong) 70%, var(--muted));
}

.update-chips {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 5px;
}

.update-chips b {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: 999px;
  padding: 0 7px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
}

.update-feed-row em {
  border-radius: 999px;
  padding: 6px 9px;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-soft));
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.update-metric-panel {
  align-self: start;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 58%),
    var(--panel);
}

.update-metric-panel strong,
.update-metric-panel span {
  display: block;
}

.update-metric-panel strong {
  color: var(--accent-strong);
  font-size: 1.08rem;
  line-height: 1.42;
}

.update-metric-panel span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.update-timeline-card {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.update-timeline-card summary {
  min-height: 36px;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.update-timeline-card[open] summary {
  margin-bottom: 10px;
}

.update-timeline-card > div {
  display: grid;
  gap: 7px;
}

.update-timeline-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: var(--bg-soft);
  color: var(--text);
  text-align: left;
}

.update-timeline-row span {
  grid-row: span 2;
  margin-top: 0;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 900;
}

.update-timeline-row strong,
.update-timeline-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-timeline-row strong {
  font-size: 0.84rem;
}

.update-timeline-row small {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.ops-board {
  padding: 0 0 32px;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ops-main,
.ops-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.ops-main {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  padding: 12px;
  color: var(--text);
  text-align: left;
}

.ops-main img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.ops-main strong,
.ops-main small {
  display: block;
  min-width: 0;
}

.ops-main strong {
  font-size: 1.18rem;
  line-height: 1.32;
}

.ops-main small {
  margin-top: 9px;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
}

.ops-column {
  display: grid;
  align-content: start;
  padding: 12px;
}

.ops-heading strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.96rem;
  line-height: 1.35;
}

.ops-list {
  display: grid;
  gap: 7px;
}

.ops-row {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text);
  text-align: left;
}

.ops-row strong {
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.free-ops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 30px;
}

.free-ops article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 58%),
    var(--panel);
}

.free-ops strong,
.free-ops span {
  display: block;
}

.free-ops strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.free-ops span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.quality-ops,
.serial-calendar,
.policy-hub {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.serial-calendar-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.serial-calendar-details > summary::-webkit-details-marker {
  display: none;
}

.serial-calendar-details > summary span,
.serial-calendar-details > summary b,
.serial-calendar-details > summary strong {
  display: block;
}

.serial-calendar-details > summary b {
  color: var(--accent);
  font-size: 0.74rem;
}

.serial-calendar-details > summary strong {
  margin-top: 4px;
  font-size: 1.08rem;
}

.serial-calendar-details > summary em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}

.serial-calendar-details[open] > summary {
  margin-bottom: 14px;
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
}

.quality-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.35fr) minmax(240px, 0.85fr);
  gap: 12px;
}

.quality-score-card,
.quality-risk-panel,
.quality-check,
.calendar-day {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.quality-score-card,
.quality-risk-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 58%),
    var(--panel);
}

.quality-score-card strong {
  color: var(--accent-strong);
  font-size: 2rem;
  line-height: 1;
}

.quality-score-card span,
.quality-risk-panel span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.quality-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-soft);
}

.quality-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 260ms ease;
}

.quality-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quality-check {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 118px;
  padding: 13px;
}

.quality-check.pass {
  border-color: color-mix(in srgb, #92c79b 36%, var(--line));
}

.quality-check.warn {
  border-color: color-mix(in srgb, var(--rose) 44%, var(--line));
}

.quality-check strong,
.quality-risk-panel strong {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
}

.quality-check span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.serial-ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.follow-panel,
.notice-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--panel);
}

.follow-list,
.notice-list {
  display: grid;
  gap: 8px;
}

.follow-row,
.notice-row {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: var(--bg-soft);
  color: var(--text);
  text-align: left;
}

.follow-row strong,
.follow-row span,
.notice-row strong,
.notice-row span,
.notice-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.follow-row span,
.notice-row span,
.notice-row small {
  color: var(--muted);
  font-size: 0.78rem;
}

.notice-row {
  display: grid;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.policy-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  background: var(--panel);
}

.policy-grid strong,
.policy-grid span {
  display: block;
}

.policy-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  gap: 12px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.report-form,
.privacy-control {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--panel);
}

.report-form {
  display: grid;
  gap: 14px;
}

.report-form h3,
.privacy-control h3 {
  margin: 2px 0 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.report-form > div > span,
.privacy-control > span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.report-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.report-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.report-form label > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.report-form input,
.report-form select,
.report-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
}

.report-form textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.62;
}

.report-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-form-actions p {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.82rem;
}

.privacy-control {
  align-content: start;
  display: grid;
  gap: 10px;
}

.privacy-control .soft-action {
  width: 100%;
  margin-top: 8px;
}

.policy-grid strong {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.35;
}

.policy-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.62;
}

.calendar-day {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
}

.calendar-day-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-day-title strong {
  color: var(--accent-strong);
  font-size: 0.96rem;
}

.calendar-day-title span {
  color: var(--soft);
  font-size: 0.72rem;
}

.calendar-rows {
  display: grid;
  gap: 6px;
}

.calendar-rows button {
  display: grid;
  gap: 4px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  background: var(--bg-soft);
  color: var(--text);
  text-align: left;
}

.calendar-rows strong,
.calendar-rows span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-rows strong {
  font-size: 0.82rem;
}

.calendar-rows span {
  color: var(--muted);
  font-size: 0.72rem;
}

.editor-picks {
  padding: 4px 0 30px;
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pick-card {
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 88%, var(--accent) 12%), var(--panel));
}

.pick-card strong,
.pick-card span,
.pick-card small {
  min-width: 0;
}

.pick-card strong {
  font-size: 1.02rem;
  line-height: 1.38;
}

.pick-card span {
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
}

.pick-card small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.58;
}

.pick-card button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
}

.cover-style-library {
  padding: 0 0 34px;
}

.cover-style-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.cover-style-card {
  --style-a: #b8a98a;
  --style-b: #2a3430;
  --style-c: #f0ead8;
  display: grid;
  min-width: 0;
  gap: 8px;
  min-height: 214px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--style-a) 38%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--style-a) 26%, transparent), transparent 44%),
    linear-gradient(180deg, color-mix(in srgb, var(--style-b) 72%, var(--panel) 28%), var(--panel));
}

.cover-style-card[data-cover-style="ropan-gilded"] {
  --style-a: #d8b8b8;
  --style-b: #33232a;
  --style-c: #f1dfc7;
}

.cover-style-card[data-cover-style="hunter-neon"] {
  --style-a: #6bc8d5;
  --style-b: #101c25;
  --style-c: #d7fbff;
}

.cover-style-card[data-cover-style="regression-paper"] {
  --style-a: #c9b98e;
  --style-b: #282b25;
  --style-c: #f2ead8;
}

.cover-style-card[data-cover-style="chaebol-glass"] {
  --style-a: #c9c2ad;
  --style-b: #171c22;
  --style-c: #edf1f5;
}

.cover-style-card[data-cover-style="palace-silk"] {
  --style-a: #88ad91;
  --style-b: #18241e;
  --style-c: #ead6a3;
}

.cover-style-card[data-cover-style="career-healing"] {
  --style-a: #a7c6a1;
  --style-b: #18251f;
  --style-c: #eef0cf;
}

.cover-style-card[data-cover-style="bl-bluehour"] {
  --style-a: #8ea4d9;
  --style-b: #131927;
  --style-c: #d9e5ff;
}

.cover-style-card[data-cover-style="martial-ink"] {
  --style-a: #bca470;
  --style-b: #181614;
  --style-c: #efe2c1;
}

.cover-style-card[data-cover-style="apocalypse-steel"] {
  --style-a: #d36f61;
  --style-b: #1d2021;
  --style-c: #f1c2b7;
}

.cover-style-card[data-cover-style="daily-soft"] {
  --style-a: #b8c7d8;
  --style-b: #27312f;
  --style-c: #f0efe6;
}

.style-swatch {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid color-mix(in srgb, var(--style-c) 32%, transparent);
  border-radius: 6px;
  background:
    radial-gradient(circle at 22% 24%, color-mix(in srgb, var(--style-c) 88%, transparent) 0 9%, transparent 10%),
    linear-gradient(135deg, color-mix(in srgb, var(--style-a) 75%, transparent), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 18px, color-mix(in srgb, var(--style-c) 14%, transparent) 18px 19px),
    var(--style-b);
}

.cover-style-card strong,
.cover-style-card span,
.cover-style-card small {
  min-width: 0;
}

.cover-style-card strong {
  color: var(--style-c);
  font-size: 0.96rem;
  line-height: 1.35;
}

.cover-style-card span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.52;
}

.cover-style-card small {
  color: color-mix(in srgb, var(--style-c) 72%, var(--muted));
  font-size: 0.73rem;
  line-height: 1.45;
}

.lane-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.lane-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: var(--panel-raised);
}

.lane-card > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 900;
}

.lane-card strong,
.lane-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lane-card strong {
  margin-top: 2px;
  font-size: 1rem;
}

.lane-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.content-band,
.ranking-panel,
.taste-panel {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading > div:first-child {
  position: relative;
  padding-left: 12px;
}

.section-heading > div:first-child::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--food-red), var(--food-amber));
}

.section-heading.compact {
  align-items: center;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.25;
}

.section-heading h3 {
  font-size: 1.14rem;
}

.food-masthead {
  --food-scene-accent: var(--food-amber);
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 152px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--food-scene-accent) 38%, var(--line));
  border-radius: var(--radius);
  background: var(--comic-ink);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.food-masthead-bunsik {
  --food-scene-accent: var(--food-red);
}

.food-masthead-convenience {
  --food-scene-accent: #68a7a2;
}

.food-masthead-feast {
  --food-scene-accent: #c88655;
}

.food-masthead-dessert {
  --food-scene-accent: #b27b8d;
}

.food-masthead > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.08) saturate(0.92) contrast(1.03);
  transform: scale(1.002);
}

.food-masthead::before,
.food-masthead::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.food-masthead::before {
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 11, 10, 0.98) 0%, rgba(8, 11, 10, 0.9) 40%, rgba(8, 11, 10, 0.45) 66%, rgba(8, 11, 10, 0.12) 100%),
    linear-gradient(180deg, rgba(8, 11, 10, 0.08), rgba(8, 11, 10, 0.7));
}

.food-masthead::after {
  top: 0;
  left: 22px;
  width: 104px;
  height: 3px;
  background: linear-gradient(90deg, var(--food-scene-accent), var(--food-amber), transparent);
}

.food-masthead .section-heading {
  position: relative;
  z-index: 1;
  align-self: end;
  margin: 0;
  padding: 18px;
  color: #f1f3ef;
}

.food-masthead .section-heading > div:first-child {
  max-width: min(62%, 560px);
}

.food-masthead .section-heading > div:first-child::before {
  background: linear-gradient(180deg, var(--food-scene-accent), var(--food-amber));
}

.food-masthead .section-heading h2 {
  color: #f1f3ef;
  font-size: 1.38rem;
}

.food-masthead .eyebrow {
  color: color-mix(in srgb, var(--food-scene-accent) 58%, var(--food-sesame));
}

.food-masthead .subtle-pill {
  border-color: color-mix(in srgb, var(--food-scene-accent) 42%, #46504b);
  background: rgba(12, 16, 14, 0.76);
  color: var(--food-sesame);
  backdrop-filter: blur(12px);
}

:where(.home-search, .hero-actions, .continue-panel) .primary-action,
.catalog-actions .primary-action,
.discussion-form .primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

:where(.home-search, .hero-actions, .continue-panel) .primary-action::before,
.catalog-actions .primary-action::before,
.discussion-form .primary-action::before,
.ranking-control button.active::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--food-red-deep) 32%, transparent);
  border-radius: 50%;
  background-image: url("./assets/kfood-webtoon-bunsik-20260908.jpg");
  background-repeat: no-repeat;
  background-position: 78% center;
  background-size: auto 40px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #ffffff 28%, transparent);
}

.catalog-actions .primary-action::before {
  background-image: url("./assets/kfood-webtoon-convenience-20260908.jpg");
  background-position: 77% center;
}

.discussion-form .primary-action::before {
  background-image: url("./assets/kfood-webtoon-dessert-20260908.jpg");
  background-position: 70% center;
}

.ranking-control button.active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ranking-control button.active::before {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  background-image: url("./assets/kfood-webtoon-feast-20260908.jpg");
  background-position: 76% center;
  background-size: auto 44px;
}

.segmented-control {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.segmented-control button {
  min-width: 58px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.segmented-control button.active {
  background: var(--panel-raised);
  color: var(--text);
  font-weight: 800;
}

.category-strip,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-strip {
  margin-bottom: 20px;
}

.catalog-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -4px 0 16px;
}

.catalog-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: -4px 0 14px;
}

.catalog-stat-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
}

.catalog-stat-card:hover,
.catalog-stat-card.active {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background: var(--panel-raised);
}

.catalog-stat-card span,
.catalog-stat-card strong,
.catalog-stat-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-stat-card span {
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 900;
}

.catalog-stat-card strong {
  color: var(--accent-strong);
  font-size: 1rem;
}

.catalog-stat-card small {
  color: var(--muted);
  font-size: 0.76rem;
}

.advanced-filter {
  min-width: 0;
}

.advanced-filter[open] {
  flex: 1 1 100%;
}

.advanced-filter summary {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.advanced-filter summary::-webkit-details-marker {
  display: none;
}

.advanced-filter[open] summary {
  background: var(--panel-raised);
  color: var(--text);
}

.advanced-filter-body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.filter-chip-row {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: nowrap;
  gap: 7px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background: var(--panel-raised);
  color: var(--accent-strong);
}

.category-strip {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.category-chip {
  flex: 0 0 auto;
}

.search-insight-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr) minmax(220px, 0.8fr);
  gap: 10px;
  margin: -8px 0 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 58%),
    var(--panel);
}

.search-insight-panel[hidden] {
  display: none;
}

.search-insight-copy,
.search-insight-reason {
  min-width: 0;
}

.search-insight-copy strong,
.search-insight-copy span,
.search-insight-reason b,
.search-insight-reason span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-insight-copy strong {
  color: var(--text);
  font-size: 1rem;
  white-space: nowrap;
}

.search-insight-copy span,
.search-insight-reason span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.search-insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

.search-insight-tags button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.search-insight-tags button:hover {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line));
  color: var(--text);
}

.search-insight-reason {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.search-insight-reason b {
  color: var(--accent-strong);
  font-size: 0.82rem;
  white-space: nowrap;
}

.genre-balance-grid {
  display: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.genre-balance-card {
  display: grid;
  min-width: 0;
  gap: 4px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
}

.genre-balance-card.thin {
  border-color: color-mix(in srgb, var(--rose) 36%, var(--line));
}

.genre-balance-card strong,
.genre-balance-card span,
.genre-balance-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.genre-balance-card strong {
  font-size: 0.86rem;
}

.genre-balance-card span {
  color: var(--muted);
  font-size: 0.76rem;
}

.genre-balance-card small {
  color: var(--accent-strong);
  font-size: 0.72rem;
}

.category-page {
  display: grid;
  gap: 18px;
}

.category-page-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.category-page-card {
  display: grid;
  min-width: 0;
  gap: 7px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 62%),
    var(--panel);
  color: var(--text);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.category-page-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background: var(--panel-raised);
}

.category-page-card span,
.category-page-card strong,
.category-page-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-page-card span {
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.category-page-card strong {
  font-size: 1.3rem;
  line-height: 1.2;
}

.category-page-card small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.tag-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--panel);
}

.category-chip,
.tag-chip,
.subtle-pill,
.genre-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.category-chip,
.tag-chip {
  padding: 0 12px;
}

.category-chip {
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.category-chip.active,
.category-chip:hover,
.tag-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, var(--panel));
  color: var(--text);
}

.subtle-pill {
  padding: 0 10px;
  color: var(--soft);
}

.novel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 16px;
}

.catalog-list {
  display: grid;
  gap: 8px;
}

.catalog-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px 74px minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--genre-a) 20%, var(--line));
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.catalog-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--genre-a), color-mix(in srgb, var(--genre-c) 72%, transparent));
  opacity: 0.9;
  pointer-events: none;
}

.catalog-row:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--genre-a) 48%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--genre-a) 7%, transparent), transparent 44%),
    color-mix(in srgb, var(--panel-raised) 70%, var(--panel));
}

.catalog-rank {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  background: color-mix(in srgb, var(--genre-a) 14%, var(--bg-soft));
  color: var(--genre-c);
  font-size: 0.82rem;
  font-weight: 900;
}

.catalog-cover {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--genre-a) 24%, var(--line));
  border-radius: 6px;
  padding: 0;
  background: var(--bg-soft);
}

.catalog-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.catalog-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.catalog-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.catalog-badges span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.catalog-badges span:first-child {
  border-color: color-mix(in srgb, var(--genre-a) 45%, var(--line));
  background: color-mix(in srgb, var(--genre-a) 10%, transparent);
  color: var(--genre-c);
}

.catalog-main h3,
.catalog-main p {
  margin: 0;
  min-width: 0;
}

.catalog-main h3 {
  overflow: hidden;
  font-size: 1.02rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-meta,
.catalog-hook,
.catalog-identity,
.catalog-signal,
.catalog-match {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.catalog-original {
  color: var(--soft);
  font-size: 0.76rem;
}

.catalog-hook {
  color: var(--text);
  font-size: 0.86rem;
}

.catalog-identity {
  color: var(--muted);
  font-size: 0.78rem;
}

.catalog-identity b {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  margin-right: 6px;
  border-radius: 999px;
  padding: 0 7px;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-soft));
  color: var(--accent-strong);
  font-size: 0.7rem;
}

.catalog-signal {
  color: var(--soft);
  font-size: 0.78rem;
}

.catalog-match {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
}

.catalog-main mark {
  border-radius: 4px;
  padding: 0 2px;
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--text);
}

.catalog-side {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.catalog-side dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.catalog-side dl div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
  background: var(--bg-soft);
}

.catalog-side dt,
.catalog-side dd {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-side dt {
  color: var(--soft);
  font-size: 0.7rem;
}

.catalog-side dd {
  margin-top: 2px;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 900;
}

.catalog-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.catalog-actions .primary-action,
.catalog-actions .soft-action {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.catalog-pagination button {
  min-width: 38px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
}

.catalog-pagination button.active {
  background: var(--accent-strong);
  color: var(--ink);
  font-weight: 900;
}

.catalog-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.catalog-pagination span {
  color: var(--muted);
  font-size: 0.82rem;
}

.catalog-pagination .pagination-gap {
  display: inline-flex;
  min-width: 22px;
  justify-content: center;
}

.discussion-board {
  display: grid;
  gap: 16px;
}

.discussion-command-center {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.discussion-command-brief,
.discussion-command-trend {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.discussion-command-brief {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 11px 14px;
}

.discussion-command-brief .eyebrow {
  margin: 0;
}

.discussion-command-brief strong,
.discussion-command-brief span,
.discussion-command-brief small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discussion-command-brief strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.discussion-command-brief span {
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
}

.discussion-command-brief small {
  display: none;
}

.discussion-command-trend {
  display: grid;
  gap: 7px;
  padding: 13px;
}

.discussion-command-trend button {
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--bg-soft);
  color: var(--text);
  text-align: left;
}

.discussion-command-trend strong,
.discussion-command-trend span,
.discussion-command-trend em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.discussion-command-trend strong {
  color: var(--text);
  font-size: 0.82rem;
}

.discussion-command-trend span {
  color: var(--muted);
  font-size: 0.78rem;
}

.discussion-command-trend em {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.discussion-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--panel);
}

.discussion-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.discussion-form select,
.discussion-form input,
.discussion-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
  outline: 0;
}

.discussion-form select,
.discussion-form input {
  min-height: 42px;
  padding: 0 12px;
}

.discussion-form textarea {
  min-height: 82px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.55;
}

.discussion-form select:focus,
.discussion-form input:focus,
.discussion-form textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 66%, var(--line));
}

.discussion-body-field {
  grid-column: 1 / 3;
}

.discussion-form .primary-action {
  min-height: 42px;
  align-self: end;
}

.discussion-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.discussion-community-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 58%),
    var(--panel);
}

.discussion-community-card strong,
.discussion-community-card span {
  display: block;
  min-width: 0;
}

.discussion-community-card strong {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.35;
}

.discussion-community-card span {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.discussion-community-card button {
  min-height: 34px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 11px;
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 800;
}

.discussion-live-strip {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: thin;
}

.discussion-live-pill {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-areas:
    "dot kind title"
    "dot meta meta";
  align-items: center;
  gap: 4px 7px;
  flex: 0 0 min(310px, 84vw);
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--bg-soft);
  color: var(--text);
  text-align: left;
}

.discussion-live-pill .live-dot {
  grid-area: dot;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.discussion-live-pill strong {
  grid-area: kind;
  color: var(--accent-strong);
  font-size: 0.74rem;
}

.discussion-live-pill em,
.discussion-live-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.discussion-live-pill em {
  grid-area: title;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
}

.discussion-live-pill span:last-child {
  grid-area: meta;
  color: var(--soft);
  font-size: 0.76rem;
}

.discussion-prompt-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.discussion-prompt-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 62%),
    var(--panel);
  color: var(--text);
  text-align: left;
}

.discussion-prompt-card span,
.discussion-prompt-card em,
.discussion-prompt-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.discussion-prompt-card span {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
}

.discussion-prompt-card strong {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.discussion-prompt-card em,
.discussion-prompt-card small {
  color: var(--soft);
  font-size: 0.76rem;
}

.discussion-scope-rail {
  display: flex;
  gap: 7px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.discussion-scope-rail button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  background: var(--bg-soft);
  color: var(--muted);
}

.discussion-scope-rail button.active {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line));
  background: var(--panel-raised);
  color: var(--text);
}

.discussion-scope-rail strong,
.discussion-scope-rail span {
  font-size: 0.78rem;
  font-weight: 900;
}

.discussion-scope-rail span {
  color: var(--accent-strong);
}

.discussion-tabs {
  display: inline-flex;
  gap: 6px;
  width: fit-content;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.discussion-tabs button {
  min-width: 62px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.discussion-tabs button.active {
  background: var(--panel-raised);
  color: var(--text);
  font-weight: 900;
}

.discussion-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.discussion-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-raised) 72%, transparent), var(--panel));
}

.discussion-card.pinned {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-raised) 70%, var(--accent) 18%), var(--panel));
}

.discussion-card.reported {
  opacity: 0.72;
}

.discussion-card-head,
.discussion-meta,
.discussion-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.discussion-card-head {
  justify-content: space-between;
}

.discussion-card-head span,
.discussion-card-head em,
.discussion-meta span {
  color: var(--soft);
  font-size: 0.78rem;
  font-style: normal;
}

.discussion-card-head span {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--accent-strong);
}

.discussion-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.38;
}

.discussion-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.discussion-badges span {
  min-height: 24px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 999px;
  padding: 3px 8px;
  background: color-mix(in srgb, var(--bg-soft) 82%, transparent);
  color: var(--soft);
  font-size: 0.73rem;
  font-weight: 800;
}

.discussion-card p {
  display: -webkit-box;
  min-height: 50px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.discussion-hotline {
  display: grid;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: var(--bg-soft);
}

.discussion-hotline strong,
.discussion-hotline span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-hotline strong {
  color: var(--accent-strong);
  font-size: 0.72rem;
}

.discussion-hotline span {
  color: var(--muted);
  font-size: 0.8rem;
}

.discussion-replies {
  display: grid;
  gap: 6px;
}

.discussion-replies span {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-left: 2px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  padding-left: 9px;
  color: var(--soft);
  font-size: 0.78rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-replies b {
  margin-right: 7px;
  color: var(--accent-strong);
  font-size: 0.74rem;
}

.discussion-meta {
  min-width: 0;
  padding-top: 2px;
}

.discussion-meta strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-actions {
  justify-content: flex-end;
}

.discussion-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 11px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.discussion-actions button:hover {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  color: var(--accent-strong);
}

.discussion-empty-card {
  display: grid;
  gap: 6px;
  min-height: 120px;
  align-content: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg-soft);
  color: var(--muted);
}

.discussion-empty-card strong {
  color: var(--text);
  font-size: 1rem;
}

.novel-card {
  position: relative;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--genre-a) 22%, var(--line));
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--genre-a) 5%, transparent), transparent 28%),
    var(--panel);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.novel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--genre-a), color-mix(in srgb, var(--genre-c) 70%, transparent));
  opacity: 0.86;
  pointer-events: none;
}

.empty-result {
  grid-column: 1 / -1;
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--panel);
}

.empty-result strong,
.empty-result span {
  display: block;
}

.empty-result strong {
  color: var(--text);
  font-size: 1.1rem;
}

.empty-result span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.empty-actions button,
.empty-suggestions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
}

.empty-actions button:hover,
.empty-suggestions button:hover {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line));
  color: var(--accent-strong);
}

.empty-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
}

.empty-suggestions span {
  margin: 0 4px 0 0;
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.empty-suggestions button {
  min-height: 30px;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
}

.novel-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--genre-a) 52%, var(--line));
  box-shadow: var(--shadow);
}

.novel-card .save-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(10px);
}

.novel-card .genre-pill {
  border-color: color-mix(in srgb, var(--genre-a) 46%, var(--line));
  background: color-mix(in srgb, var(--genre-a) 11%, var(--panel));
  color: var(--genre-c);
}

.novel-card.saved .save-button,
#readerSave.saved {
  border-color: color-mix(in srgb, var(--rose) 70%, var(--line));
  color: var(--rose);
}

.cover-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
}

.cover-image {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--bg-soft);
}

.cover-overlay {
  display: none;
}


.novel-info {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.novel-topline,
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.genre-pill {
  min-height: 24px;
  padding: 0 8px;
}

.rating {
  color: var(--tea);
  white-space: nowrap;
}

.novel-card h3 {
  min-height: 46px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.author,
.description {
  margin: 0;
  color: var(--muted);
}

.author {
  font-size: 0.82rem;
}

.editorial-hook,
.community-signal {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.editorial-hook {
  min-height: 40px;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

.community-signal {
  min-height: 34px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  padding-left: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

.description {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.editorial-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.mood-pill,
.reader-pill,
.cover-style-pill {
  max-width: 100%;
  min-height: 22px;
  padding: 3px 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mood-pill {
  color: var(--accent-strong);
}

.cover-style-pill {
  border-color: color-mix(in srgb, var(--tea) 42%, var(--line));
  color: var(--tea);
}

.work-detail {
  border-top: 1px solid color-mix(in srgb, var(--genre-a) 24%, var(--line));
  padding: 26px 0 42px;
}

.work-hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 270px;
  gap: 22px;
  align-items: start;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--genre-a) 22%, var(--line));
}

.work-hero img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid color-mix(in srgb, var(--genre-a) 38%, var(--line));
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.work-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

.search-return-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--radius);
  padding: 7px 8px 7px 10px;
  background: color-mix(in srgb, var(--panel-raised) 76%, transparent);
  color: var(--muted);
  font-size: 0.78rem;
}

.search-return-panel[hidden] {
  display: none;
}

.search-return-panel span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-return-panel button {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
}

.search-return-panel button:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  color: var(--accent-strong);
}

.detail-deep-info {
  display: grid;
  min-width: 0;
  gap: 12px;
  margin: 0 0 16px;
}

.work-copy h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.18;
}

.detail-author,
.detail-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.detail-description {
  max-width: 760px;
  color: color-mix(in srgb, var(--text) 72%, var(--muted));
  font-size: 0.98rem;
}

.editorial-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.editorial-note article {
  min-width: 0;
  border-left: 2px solid color-mix(in srgb, var(--accent) 70%, var(--line));
  padding: 4px 0 4px 10px;
  background: transparent;
}

.editorial-note strong,
.editorial-note span {
  display: block;
}

.editorial-note strong {
  color: var(--accent-strong);
  font-size: 0.78rem;
}

.editorial-note span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.58;
}

.cover-style-note {
  --style-a: var(--tea);
  --style-b: var(--panel);
  --style-c: var(--accent-strong);
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--style-a) 40%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--style-a) 14%, transparent), transparent 52%),
    var(--panel);
}

.cover-style-note[data-cover-style="ropan-gilded"] {
  --style-a: #d8b8b8;
  --style-c: #f1dfc7;
}

.cover-style-note[data-cover-style="hunter-neon"] {
  --style-a: #6bc8d5;
  --style-c: #d7fbff;
}

.cover-style-note[data-cover-style="regression-paper"] {
  --style-a: #c9b98e;
  --style-c: #f2ead8;
}

.cover-style-note[data-cover-style="chaebol-glass"] {
  --style-a: #c9c2ad;
  --style-c: #edf1f5;
}

.cover-style-note[data-cover-style="palace-silk"] {
  --style-a: #88ad91;
  --style-c: #ead6a3;
}

.cover-style-note[data-cover-style="career-healing"] {
  --style-a: #a7c6a1;
  --style-c: #eef0cf;
}

.cover-style-note[data-cover-style="bl-bluehour"] {
  --style-a: #8ea4d9;
  --style-c: #d9e5ff;
}

.cover-style-note[data-cover-style="martial-ink"] {
  --style-a: #bca470;
  --style-c: #efe2c1;
}

.cover-style-note[data-cover-style="apocalypse-steel"] {
  --style-a: #d36f61;
  --style-c: #f1c2b7;
}

.cover-style-note[data-cover-style="daily-soft"] {
  --style-a: #b8c7d8;
  --style-c: #f0efe6;
}

.cover-style-note p,
.cover-style-note strong,
.cover-style-note span,
.cover-style-note small {
  margin: 0;
}

.cover-style-note strong {
  color: var(--style-c);
  font-size: 1rem;
}

.cover-style-note span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.58;
}

.cover-style-note small {
  color: color-mix(in srgb, var(--style-c) 70%, var(--muted));
  font-size: 0.78rem;
  line-height: 1.45;
}

.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.detail-info div {
  min-width: 0;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
}

.detail-info dt,
.detail-info dd {
  margin: 0;
}

.detail-info dt {
  color: var(--soft);
  font-size: 0.76rem;
}

.detail-info dd {
  margin-top: 6px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 6px;
}

.detail-metrics div {
  min-height: 58px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--genre-a) 18%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
}

.detail-metrics span,
.detail-metrics strong {
  display: block;
}

.detail-metrics span {
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-metrics strong {
  margin-top: 7px;
  color: var(--genre-c);
  font-size: 1.05rem;
}

.detail-action-card {
  position: sticky;
  top: 104px;
  grid-column: 3;
  grid-row: 1;
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--genre-a) 28%, var(--line));
  border-radius: var(--radius);
  padding: 16px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--genre-a) 14%, transparent), transparent 58%),
    var(--panel);
  box-shadow: var(--shadow);
}

.work-free-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.work-free-strip article {
  min-width: 0;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 78%, transparent);
}

.work-free-strip span,
.work-free-strip strong,
.work-free-strip small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-free-strip span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
}

.work-free-strip strong {
  margin-top: 6px;
  color: var(--text);
  font-size: 0.96rem;
}

.work-free-strip small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.entry-guide-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 16px;
}

.entry-guide-card {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  min-height: 122px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  text-align: left;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 58%),
    var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.entry-guide-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 58%),
    var(--panel-raised);
}

.entry-guide-card[data-tone="accent"] {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
}

.entry-guide-card span,
.entry-guide-card strong,
.entry-guide-card small,
.entry-guide-card b {
  display: block;
  min-width: 0;
}

.entry-guide-card span {
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 900;
}

.entry-guide-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.entry-guide-card small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.entry-guide-card b {
  align-self: end;
  margin-top: 2px;
  color: var(--accent-strong);
  font-size: 0.78rem;
}

.work-serial-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: -6px 0 16px;
}

.work-serial-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: var(--bg-soft);
  color: var(--text);
  text-align: left;
}

.work-serial-card:hover {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  background: var(--panel-raised);
}

.work-serial-card span,
.work-serial-card strong,
.work-serial-card small,
.work-serial-card b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-serial-card span {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.work-serial-card strong {
  color: var(--text);
  font-size: 0.93rem;
  white-space: nowrap;
}

.work-serial-card small {
  display: -webkit-box;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.work-serial-card b {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.work-detail-tabs {
  position: sticky;
  top: 74px;
  z-index: 8;
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  overflow-x: auto;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
}

.work-detail-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.work-detail-tabs button.active,
.work-detail-tabs button:hover {
  background: var(--panel-raised);
  color: var(--text);
}

.work-detail[data-work-tab="info"] .chapter-panel,
.work-detail[data-work-tab="info"] .work-comment-panel,
.work-detail[data-work-tab="info"] #relatedPanel,
.work-detail[data-work-tab="chapters"] .work-free-strip,
.work-detail[data-work-tab="chapters"] .entry-guide-strip,
.work-detail[data-work-tab="chapters"] .work-serial-strip,
.work-detail[data-work-tab="chapters"] .detail-platform-panels,
.work-detail[data-work-tab="chapters"] #voicePanel,
.work-detail[data-work-tab="chapters"] #readerPulsePanel,
.work-detail[data-work-tab="chapters"] #highlightPanel,
.work-detail[data-work-tab="chapters"] #relatedPanel,
.work-detail[data-work-tab="chapters"] .ai-panel,
.work-detail[data-work-tab="chapters"] .work-comment-panel,
.work-detail[data-work-tab="comments"] .work-free-strip,
.work-detail[data-work-tab="comments"] .entry-guide-strip,
.work-detail[data-work-tab="comments"] .work-serial-strip,
.work-detail[data-work-tab="comments"] .detail-platform-panels,
.work-detail[data-work-tab="comments"] #voicePanel,
.work-detail[data-work-tab="comments"] #readerPulsePanel,
.work-detail[data-work-tab="comments"] #highlightPanel,
.work-detail[data-work-tab="comments"] #relatedPanel,
.work-detail[data-work-tab="comments"] .chapter-panel,
.work-detail[data-work-tab="comments"] .ai-panel,
.work-detail[data-work-tab="recommend"] .work-free-strip,
.work-detail[data-work-tab="recommend"] .entry-guide-strip,
.work-detail[data-work-tab="recommend"] .work-serial-strip,
.work-detail[data-work-tab="recommend"] .chapter-panel,
.work-detail[data-work-tab="recommend"] .work-comment-panel,
.work-detail[data-work-tab="recommend"] .ai-panel,
.work-detail[data-work-tab="recommend"] #voicePanel,
.work-detail[data-work-tab="recommend"] #readerPulsePanel {
  display: none;
}

.work-detail:not([data-work-tab="info"]) .detail-deep-info {
  display: none;
}

.work-detail[data-work-tab="chapters"] .work-panels,
.work-detail[data-work-tab="comments"] .work-panels,
.work-detail[data-work-tab="recommend"] .detail-platform-panels {
  grid-template-columns: 1fr;
}

.detail-action-card strong,
.detail-action-card span,
.detail-action-card small {
  display: block;
}

.detail-action-card strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.detail-action-card span,
.detail-action-card small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.detail-action-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.detail-action-card div {
  min-width: 0;
}

.detail-action-card dt,
.detail-action-card dd {
  margin: 0;
}

.detail-action-card dt {
  color: var(--soft);
  font-size: 0.7rem;
}

.detail-action-card dd {
  margin-top: 4px;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 900;
}

.detail-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-soft);
}

.detail-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.detail-platform-panels {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.detail-panel {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 52%),
    var(--panel);
}

#voicePanel,
#readerPulsePanel,
#highlightPanel {
  grid-column: span 4;
}

#relatedPanel {
  grid-column: 1 / -1;
}

.detail-panel strong,
.detail-panel span,
.detail-panel small {
  display: block;
  min-width: 0;
}

.detail-panel > strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

.detail-panel > span,
.detail-panel > small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.58;
}

.detail-panel > small {
  color: var(--accent-strong);
}

.reader-pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.reader-pulse-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: var(--bg-soft);
}

.reader-pulse-grid b,
.reader-pulse-grid strong,
.reader-pulse-grid small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-pulse-grid b {
  color: var(--soft);
  font-size: 0.72rem;
}

.reader-pulse-grid strong {
  color: var(--text);
  font-size: 0.94rem;
}

.reader-pulse-grid small {
  color: var(--muted);
  font-size: 0.72rem;
}

.reader-pulse-bars {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.reader-pulse-bars span {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 7px;
  min-height: 20px;
}

.reader-pulse-bars b,
.reader-pulse-bars em {
  color: var(--soft);
  font-size: 0.72rem;
  font-style: normal;
}

.reader-pulse-bars span::before,
.reader-pulse-bars i {
  grid-column: 2;
  grid-row: 1;
  height: 6px;
  border-radius: 999px;
}

.reader-pulse-bars span::before {
  content: "";
  background: var(--bg-soft);
}

.reader-pulse-bars i {
  display: block;
  max-width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.reader-pulse-quote {
  display: -webkit-box;
  margin-top: 12px;
  overflow: hidden;
  color: var(--accent-strong);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-link-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.mini-link-list button {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: var(--bg-soft);
  color: var(--text);
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.mini-link-list button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: var(--panel-raised);
}

.mini-link-list strong,
.mini-link-list span,
.mini-link-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-link-list strong {
  font-size: 0.84rem;
}

.mini-link-list span {
  color: var(--muted);
  font-size: 0.76rem;
}

.mini-link-list small {
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 700;
}

.work-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
}

.chapter-panel,
.ai-panel,
.work-comment-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px;
}

.work-comment-body {
  display: grid;
  gap: 12px;
}

.work-comment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.work-comment-summary span,
.work-comment-list article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: var(--bg-soft);
}

.work-comment-summary b,
.work-comment-summary small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-comment-summary b {
  color: var(--accent-strong);
  font-size: 0.98rem;
}

.work-comment-summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.work-comment-list {
  display: grid;
  gap: 8px;
}

.work-comment-empty {
  display: grid;
  gap: 4px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 16px;
  background: var(--bg-soft);
}

.work-comment-empty strong {
  color: var(--text);
  font-size: 0.9rem;
}

.work-comment-empty span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.work-comment-list article {
  display: grid;
  gap: 6px;
}

.work-comment-list span {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 7px;
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 900;
}

.work-comment-list p,
.work-comment-list small {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.work-comment-list p {
  color: var(--text);
  font-size: 0.9rem;
}

.work-comment-list small {
  font-size: 0.74rem;
}

.work-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chapter-tools {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
  gap: 10px;
  margin-bottom: 12px;
}

.chapter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  background: var(--bg-soft);
  color: var(--muted);
}

.chapter-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.chapter-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.chapter-quick-actions button {
  min-width: 0;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: var(--bg-soft);
  color: var(--text);
  text-align: left;
}

.chapter-quick-actions button.active {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  background: var(--panel-raised);
}

.chapter-quick-actions strong,
.chapter-quick-actions span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-quick-actions strong {
  color: var(--accent-strong);
  font-size: 0.84rem;
}

.chapter-quick-actions span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

.volume-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.volume-tabs button {
  min-height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--bg-soft);
  color: var(--muted);
}

.volume-tabs button.active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: var(--panel-raised);
  color: var(--text);
  font-weight: 800;
}

.volume-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
}

.volume-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.volume-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  cursor: pointer;
}

.volume-list summary span {
  color: var(--muted);
  font-size: 0.82rem;
}

.chapter-list {
  display: grid;
  gap: 1px;
  padding: 0 8px 8px;
}

.chapter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.chapter-row:hover,
.chapter-row.read {
  background: var(--panel-raised);
}

.chapter-row.focus-pulse {
  outline: 2px solid color-mix(in srgb, var(--accent) 64%, transparent);
  background: color-mix(in srgb, var(--panel-raised) 74%, var(--accent) 26%);
}

.chapter-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-row mark {
  border-radius: 4px;
  padding: 0 2px;
  background: color-mix(in srgb, var(--accent) 34%, transparent);
  color: var(--accent-strong);
}

.chapter-row small {
  color: var(--accent);
  white-space: nowrap;
}

.chapter-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--muted);
  line-height: 1.7;
}

.ai-grid {
  display: grid;
  gap: 10px;
}

.ai-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.ai-card strong {
  display: block;
  margin-bottom: 8px;
}

.ai-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.ai-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1.05em;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-tags span {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 34px;
}

.ranking-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ranking;
}

.ranking-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.ranking-snapshot-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
    var(--panel);
}

.ranking-snapshot-card span,
.ranking-snapshot-card small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-snapshot-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 0.98rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-item {
  position: relative;
  counter-increment: ranking;
  display: grid;
  grid-template-columns: 44px 52px minmax(0, 1fr) auto 76px auto;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--genre-a) 20%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--genre-a) 6%, transparent), transparent 42%),
    var(--panel);
}

.ranking-item::before {
  content: counter(ranking, decimal-leading-zero);
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 6px;
  background: color-mix(in srgb, var(--genre-a) 14%, var(--panel-raised));
  color: var(--genre-c);
  font-weight: 800;
}

.ranking-item::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--genre-a), color-mix(in srgb, var(--genre-c) 68%, transparent));
  opacity: 0.86;
  pointer-events: none;
}

.rank-cover {
  display: block;
  width: 52px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--genre-a) 26%, var(--line));
  border-radius: 6px;
  padding: 0;
  background: var(--bg-soft);
}

.rank-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.rank-actions {
  display: grid;
  gap: 6px;
  min-width: 72px;
}

.rank-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
}

.rank-delta {
  justify-self: end;
  min-width: 92px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.rank-delta.up {
  border-color: color-mix(in srgb, #84c7a2 48%, var(--line));
  color: #9fd4b7;
}

.rank-delta.down {
  border-color: color-mix(in srgb, #d9a09a 45%, var(--line));
  color: #d9aaa6;
}

.rank-delta.same {
  color: var(--soft);
}

.rank-trend {
  display: inline-flex;
  gap: 3px;
  align-items: end;
  justify-content: center;
  width: 76px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
  background: var(--bg-soft);
}

.rank-trend i {
  display: block;
  width: 6px;
  min-height: 4px;
  max-height: 100%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-strong) 82%, var(--panel));
}

.soft-action:disabled,
.rank-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.primary-action:disabled:hover,
.soft-action:disabled:hover {
  transform: none;
}

.ranking-title {
  min-width: 0;
}

.ranking-title strong,
.ranking-title span {
  display: block;
}

.ranking-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-title span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.ranking-title .rank-position-line {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--soft);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-title em {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.rank-proof span {
  display: inline-flex;
  min-height: 22px;
  max-width: 100%;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 999px;
  padding: 0 7px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-title .rank-context {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--soft);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-mover-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--panel);
}

.rank-mover-panel > div {
  display: grid;
  gap: 7px;
}

.rank-mover-row {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  background: var(--bg-soft);
  color: var(--text);
  text-align: left;
}

.rank-mover-row strong,
.rank-mover-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-mover-row strong {
  font-size: 0.86rem;
}

.rank-mover-row span {
  color: var(--muted);
  font-size: 0.74rem;
}

.taste-panel {
  align-self: start;
}

.library-band {
  padding-bottom: 52px;
}

.library-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--muted);
  line-height: 1.7;
}

.library-empty.hidden {
  display: none;
}

.library-dashboard {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

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

.library-stats-grid article,
.library-continue-panel,
.library-recommend-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.library-stats-grid article {
  min-height: 72px;
  padding: 12px;
}

.library-stats-grid span,
.library-stats-grid strong {
  display: block;
}

.library-stats-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

.library-stats-grid strong {
  margin-top: 7px;
  color: var(--accent-strong);
  font-size: 1.18rem;
}

.library-continue-panel {
  padding: 16px;
}

.library-recommend-panel {
  padding: 16px;
  margin-bottom: 16px;
}

.library-continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.library-recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.library-continue-card,
.library-recommend-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--bg-soft);
  color: var(--text);
  text-align: left;
}

.library-continue-card img,
.library-recommend-card img {
  width: 52px;
  aspect-ratio: 2 / 3;
  border-radius: 5px;
  object-fit: cover;
}

.library-continue-card span,
.library-continue-card strong,
.library-continue-card small,
.library-recommend-card span,
.library-recommend-card strong,
.library-recommend-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.library-continue-card strong,
.library-continue-card small,
.library-recommend-card strong,
.library-recommend-card small {
  display: block;
  white-space: nowrap;
}

.library-continue-card small,
.library-recommend-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.library-grid:empty {
  display: none;
}

.compliance-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 30px 0 42px;
}

.compliance-band article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.compliance-band strong,
.compliance-band span {
  display: block;
}

.compliance-band strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

.compliance-band span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
}

.mobile-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 18;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.mobile-nav a {
  display: grid;
  gap: 2px;
  place-items: center;
  min-height: 54px;
  color: var(--muted);
  font-size: 0.7rem;
}

.mobile-nav span {
  font-size: 0.9rem;
}

.mobile-nav a.active {
  color: var(--accent-strong);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 18px 0 26px;
  color: var(--muted);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--text);
  font-size: 0.94rem;
}

.site-footer span {
  margin-top: 4px;
  font-size: 0.78rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.site-footer button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.site-footer button:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--text);
}

.reader-dialog {
  width: min(920px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.reader-dialog::backdrop {
  background: rgba(8, 10, 10, 0.68);
  backdrop-filter: blur(10px);
}

.reader-shell {
  position: relative;
  display: grid;
  max-height: calc(100dvh - 30px);
  overflow: hidden;
}

.reader-header,
.reader-toolbar,
.comment-panel {
  padding: 16px 20px;
}

.reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--food-amber) 32%, transparent);
}

.reader-header h2 {
  margin: 0;
  font-size: 1.36rem;
  line-height: 1.35;
}

.reader-actions {
  display: flex;
  gap: 8px;
}

#toggleReaderTools {
  font-size: 0.78rem;
  font-weight: 900;
}

#toggleReaderTools.active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: var(--panel-raised);
  color: var(--accent-strong);
}

.reader-toolbar {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) repeat(5, auto);
  gap: 10px;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  color: var(--muted);
}

.reader-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chapter-select-label {
  position: relative;
  min-width: min(100%, 260px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.reader-toolbar select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
}

#chapterSelectText {
  display: block;
  min-width: 0;
  width: min(38vw, 260px);
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 10px;
  overflow: hidden;
  background: var(--panel);
  color: var(--text);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-toolbar input[type="range"] {
  accent-color: var(--accent-strong);
}

.reader-mode button {
  min-width: 44px;
}

.reader-progress-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  background: var(--panel);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.reader-dialog:not(.tools-open) .reader-tools-panel {
  display: none;
}

.reader-tools-panel {
  position: absolute;
  top: 72px;
  right: 16px;
  z-index: 8;
  width: min(620px, calc(100% - 32px));
  max-height: calc(100dvh - 112px);
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.ranking-control {
  margin-bottom: 12px;
}

.ranking-trust-note {
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) minmax(0, 1.08fr);
  gap: 10px;
  align-items: center;
  margin: -2px 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 58%),
    var(--panel);
}

.ranking-trust-note div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ranking-trust-note span,
.ranking-trust-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.ranking-trust-note strong {
  min-width: 0;
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ranking-trust-note p {
  white-space: normal;
  overflow-wrap: anywhere;
}

.progress-track {
  height: 3px;
  background: var(--bg-soft);
}

.reader-preferences {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.reader-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reader-settings-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.reader-settings-grid input[type="range"] {
  width: 100%;
  accent-color: var(--accent-strong);
}

.reader-stats-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.reader-stats-panel strong {
  display: block;
}

.reader-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.reader-stat-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  background: var(--bg-soft);
}

.reader-stat-grid b {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-stat-grid strong {
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-preferences .eyebrow {
  margin-bottom: 7px;
}

.preference-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preference-buttons button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.8rem;
}

.preference-buttons button.active {
  background: var(--panel-raised);
  color: var(--accent-strong);
  font-weight: 900;
}

.reader-statline {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent-strong);
  transition: width 180ms ease;
}

.reader-hot {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 70%, var(--bg-soft));
}

.reader-hot strong {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 0.78rem;
}

.reader-hot span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-main {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.reader-page-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(92px, 15%);
  border: 0;
  padding: 0;
  background: transparent;
  opacity: 0;
}

.reader-page-zone.prev {
  left: 300px;
}

.reader-page-zone.next {
  right: 0;
}

.reader-dialog.drawer-closed .reader-page-zone.prev {
  left: 0;
}

.reader-page-zone:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent-strong) 70%, transparent);
  outline-offset: -8px;
  opacity: 0.16;
  background: var(--accent);
}

.reader-dialog.drawer-closed .reader-main {
  grid-template-columns: 0 minmax(0, 1fr);
}

.reader-dialog.drawer-closed .reader-drawer {
  padding-right: 0;
  padding-left: 0;
  border-right: 0;
  overflow: hidden;
}

.reader-drawer {
  max-height: 64dvh;
  overflow: auto;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
}

.drawer-block + .drawer-block {
  margin-top: 18px;
}

.drawer-block p,
.drawer-block dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.drawer-block dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.drawer-block dt {
  color: var(--accent-strong);
  font-weight: 800;
}

.drawer-volume {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.drawer-jump-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 12px;
}

.drawer-jump-strip button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.drawer-jump-strip button.active,
.drawer-jump-strip button:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--accent-strong);
}

.drawer-volume summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  color: var(--muted);
  cursor: pointer;
}

.drawer-volume summary strong,
.drawer-volume summary span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-volume summary strong {
  color: var(--muted);
  font-size: 0.82rem;
}

.drawer-volume summary span {
  color: var(--soft);
  font-size: 0.72rem;
}

.drawer-volume[open] summary strong {
  color: var(--accent-strong);
}

.drawer-volume-list {
  display: grid;
  gap: 4px;
}

.drawer-volume-list.long {
  max-height: 260px;
  overflow: auto;
  padding-right: 3px;
}

.drawer-volume-note {
  margin: 4px 0 0;
  border: 1px dashed color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 6px;
  padding: 8px;
  color: var(--soft);
  font-size: 0.72rem;
  line-height: 1.45;
}

.drawer-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-chapter strong,
.drawer-chapter small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-chapter strong {
  font-size: 0.78rem;
  font-weight: 750;
}

.drawer-chapter small {
  color: var(--soft);
  font-size: 0.68rem;
}

.drawer-chapter.read {
  color: var(--muted);
}

.drawer-chapter.active,
.drawer-chapter:hover {
  background: var(--panel-raised);
  color: var(--accent-strong);
}

.reader-content {
  max-height: 64dvh;
  overflow: auto;
  padding: 26px min(7vw, 72px);
  outline: 0;
  background:
    linear-gradient(180deg, rgba(216, 223, 201, 0.035), transparent 160px),
    var(--panel);
  font-size: 19px;
  line-height: 1.78;
}

.reader-dialog[data-reader-mode="forest"] .reader-content {
  background:
    linear-gradient(180deg, rgba(185, 200, 180, 0.05), transparent 180px),
    #18201d;
}

.reader-dialog[data-reader-mode="paper"] .reader-content {
  background: #f5f1e7;
  color: #25261f;
}

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

.reader-content .chapter-heading {
  color: var(--accent-strong);
  font-weight: 900;
}

.reader-dialog[data-reader-mode="paper"] .chapter-heading {
  color: #536248;
}

.chapter-end-card {
  display: grid;
  gap: 14px;
  margin: 2.1em 0 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 56%),
    var(--bg-soft);
}

.chapter-end-head,
.chapter-end-dashboard,
.chapter-end-next,
.chapter-end-reaction,
.chapter-end-recs {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.chapter-end-head strong,
.chapter-end-head span,
.chapter-end-reaction strong,
.chapter-end-reaction span,
.chapter-end-recs > strong {
  display: block;
  min-width: 0;
}

.chapter-end-head strong {
  color: var(--accent-strong);
  font-size: 1.05rem;
  line-height: 1.35;
}

.chapter-end-head span,
.chapter-end-reaction span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.chapter-end-dashboard {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chapter-end-dashboard span {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
}

.chapter-end-dashboard b,
.chapter-end-dashboard strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-end-dashboard b {
  color: var(--muted);
  font-size: 0.68rem;
}

.chapter-end-dashboard strong {
  color: var(--accent-strong);
  font-size: 0.82rem;
}

.chapter-end-next {
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: var(--radius);
  padding: 12px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.chapter-end-next strong,
.chapter-end-next span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-end-next strong {
  color: var(--text);
  font-size: 0.92rem;
  white-space: nowrap;
}

.chapter-end-next span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.chapter-end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chapter-end-actions .primary-action,
.chapter-end-actions .soft-action {
  min-height: 38px;
}

.chapter-end-reaction {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
}

.chapter-end-reaction strong,
.chapter-end-recs > strong {
  color: var(--text);
  font-size: 0.9rem;
}

.chapter-end-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 8px;
}

.chapter-end-rec-grid button {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
}

.chapter-end-rec-grid img {
  width: 46px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.chapter-end-rec-grid span,
.chapter-end-rec-grid b,
.chapter-end-rec-grid small,
.chapter-end-rec-grid em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-end-rec-grid b,
.chapter-end-rec-grid small,
.chapter-end-rec-grid em {
  white-space: nowrap;
}

.chapter-end-rec-grid b {
  font-size: 0.82rem;
}

.chapter-end-rec-grid small {
  margin-top: 5px;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
}

.chapter-end-rec-grid em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
}

.reader-dialog[data-reader-mode="paper"] .chapter-end-card {
  background: #eee6d7;
}

.reader-dialog[data-reader-mode="paper"] .chapter-end-reaction,
.reader-dialog[data-reader-mode="paper"] .chapter-end-rec-grid button {
  background: #f7f1e7;
}

.reader-dialog[data-reader-mode="paper"] .chapter-end-head strong,
.reader-dialog[data-reader-mode="paper"] .chapter-end-reaction strong,
.reader-dialog[data-reader-mode="paper"] .chapter-end-recs > strong,
.reader-dialog[data-reader-mode="paper"] .chapter-end-rec-grid b {
  color: #25261f;
}

.reader-dialog[data-reader-mode="paper"] .chapter-end-head span,
.reader-dialog[data-reader-mode="paper"] .chapter-end-reaction span,
.reader-dialog[data-reader-mode="paper"] .chapter-end-rec-grid small,
.reader-dialog[data-reader-mode="paper"] .chapter-end-rec-grid em {
  color: #666759;
}

.comment-panel {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.reader-bottom-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(74px, 1fr) minmax(78px, auto) minmax(64px, auto) minmax(74px, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px 20px;
  border-top: 1px solid color-mix(in srgb, var(--food-amber) 24%, var(--line));
  background: color-mix(in srgb, var(--panel) 95%, transparent);
  backdrop-filter: blur(14px);
}

.reader-bottom-bar button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 850;
}

.reader-bottom-bar button:hover {
  border-color: color-mix(in srgb, var(--food-amber) 44%, var(--line));
  background: var(--panel-raised);
}

.reader-bottom-bar button.active {
  border-color: color-mix(in srgb, var(--food-amber) 58%, var(--line));
  background: var(--panel-raised);
  color: var(--food-sesame);
}

.reader-bottom-bar button:disabled {
  opacity: 0.42;
}

.reader-bottom-status {
  display: grid;
  gap: 2px;
  place-items: center;
  padding: 4px 10px;
}

.reader-bottom-bar span {
  min-width: 0;
  text-align: center;
  color: var(--accent-strong);
  font-weight: 900;
}

.reader-bottom-bar small {
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 850;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.comment-form input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  padding: 0 12px;
  background: var(--panel);
  color: var(--text);
}

.comment-list {
  display: grid;
  gap: 8px;
  max-height: 150px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  line-height: 1.55;
}

.comment-item.pinned {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: color-mix(in srgb, var(--panel) 84%, var(--accent) 16%);
}

.comment-item.author {
  border-color: color-mix(in srgb, var(--tea) 52%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tea) 12%, transparent), transparent 64%),
    var(--panel);
}

.comment-item.author .comment-headline strong {
  background: color-mix(in srgb, var(--tea) 22%, var(--bg-soft));
  color: var(--tea);
}

.comment-item.reported {
  opacity: 0.68;
}

.comment-body {
  min-width: 0;
}

.comment-body p,
.comment-body small {
  display: block;
}

.comment-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.comment-headline strong,
.comment-headline span,
.comment-headline em {
  display: inline-flex;
  min-width: 0;
  font-size: 0.74rem;
  font-style: normal;
}

.comment-headline strong {
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  padding: 0 7px;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-soft));
  color: var(--accent-strong);
  font-weight: 900;
}

.comment-headline span {
  color: var(--text);
  font-weight: 800;
}

.comment-headline em {
  color: var(--soft);
}

.comment-body p {
  margin: 3px 0;
  color: var(--text);
  font-size: 0.9rem;
}

.comment-body small {
  color: var(--soft);
  font-size: 0.76rem;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: end;
}

.comment-actions span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: var(--radius);
  padding: 0 9px;
  color: var(--soft);
  font-size: 0.76rem;
}

.comment-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 9px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.76rem;
}

.comment-actions button:hover {
  color: var(--accent-strong);
}

@media (max-width: 900px) {
  .app-shell {
    width: calc(100% - 24px);
    max-width: 720px;
    padding-bottom: 88px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
  }

  .desktop-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    display: flex;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .desktop-nav a {
    flex: 0 0 auto;
  }

  .search-box {
    width: 188px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px;
  }

  .food-masthead {
    min-height: 148px;
  }

  .food-masthead .section-heading > div:first-child {
    max-width: 72%;
  }

  .hero-section::before {
    background:
      linear-gradient(90deg, rgba(8, 11, 10, 0.98) 0%, rgba(8, 11, 10, 0.9) 56%, rgba(8, 11, 10, 0.56) 100%),
      linear-gradient(180deg, rgba(8, 11, 10, 0.08), rgba(8, 11, 10, 0.82));
  }

  .hero-food-art {
    background-position: 68% center;
    filter: brightness(1.08) saturate(0.88) contrast(1.03);
  }

  .hero-live-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signature-dock {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  h1,
  .hero-copy > h2 {
    font-size: 2.15rem;
    line-height: 1.18;
  }

  .daily-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-panel div {
    display: grid;
    justify-items: start;
    min-height: 48px;
  }

  .home-board-panel + .home-board-panel {
    border-left: 0;
    padding-left: 0;
  }

  .platform-strip {
    grid-template-columns: 1fr;
  }

  .own-edge-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .core-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-shelf-row {
    grid-auto-columns: 132px;
  }

  .quick-lanes {
    grid-template-columns: 1fr;
  }

  .home-board-grid {
    grid-template-columns: 1fr;
  }

  .update-stream-grid {
    grid-template-columns: 1fr;
  }

  .ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-main {
    grid-column: 1 / -1;
  }

  .free-ops {
    grid-template-columns: 1fr;
  }

  .quality-grid {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .serial-ops-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

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

  .pick-grid {
    grid-template-columns: 1fr;
  }

  .cover-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-balance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-insight-panel {
    grid-template-columns: 1fr;
  }

  .search-suggest-panel {
    grid-template-columns: 1fr;
  }

  .search-suggest-head {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 2px 0 10px;
  }

  .search-suggest-quick {
    border-left: 0;
    padding-left: 0;
  }

  .search-insight-reason {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 10px 0 0;
  }

  .discussion-command-center {
    grid-template-columns: 1fr;
  }

  .discussion-command-brief {
    grid-template-columns: 1fr;
  }

  .discussion-command-trend button {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .catalog-row {
    grid-template-columns: 36px 66px minmax(0, 1fr);
  }

  .catalog-quick-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-side {
    grid-column: 3;
  }

  .discussion-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discussion-community-grid,
  .discussion-prompt-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discussion-form .primary-action {
    width: 100%;
  }

  .continue-panel {
    align-items: start;
  }

  .work-hero {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .detail-deep-info,
  .detail-action-card {
    position: static;
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .detail-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-note {
    grid-template-columns: 1fr;
  }

  .detail-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-free-strip,
  .entry-guide-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-comment-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-serial-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-platform-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #voicePanel,
  #readerPulsePanel,
  #highlightPanel,
  #relatedPanel {
    grid-column: auto;
  }

  .library-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compliance-band {
    grid-template-columns: 1fr;
  }

  .work-panels {
    grid-template-columns: 1fr;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mobile-nav {
    display: none;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mobile-nav {
    display: grid;
  }

  .desktop-nav {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    width: 100%;
  }

  .search-box {
    width: 100%;
  }

  .search-suggest-panel {
    margin-top: 6px;
    padding: 9px;
  }

  .search-suggest-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .search-suggest-row img {
    width: 30px;
  }

  .search-suggest-row button[data-suggest-action="detail"] {
    display: none;
  }

  .hero-section {
    margin-top: 8px;
    padding: 18px 14px 16px;
  }

  .food-masthead {
    min-height: 140px;
    margin-bottom: 10px;
  }

  .food-masthead > img {
    object-position: 68% center;
  }

  .food-masthead::before {
    background:
      linear-gradient(90deg, rgba(8, 11, 10, 0.98) 0%, rgba(8, 11, 10, 0.9) 54%, rgba(8, 11, 10, 0.35) 100%),
      linear-gradient(180deg, rgba(8, 11, 10, 0.14), rgba(8, 11, 10, 0.74));
  }

  .food-masthead::after {
    left: 14px;
    width: 76px;
  }

  .food-masthead .section-heading {
    display: grid;
    gap: 8px;
    padding: 12px;
  }

  .food-masthead .section-heading > div:first-child {
    max-width: 78%;
  }

  .food-masthead .section-heading h2 {
    font-size: 1.2rem;
  }

  .food-masthead .subtle-pill {
    justify-self: start;
    max-width: 86%;
  }

  .hero-section::before {
    background:
      linear-gradient(180deg, rgba(8, 11, 10, 0.43) 0, rgba(8, 11, 10, 0.78) 290px, rgba(8, 11, 10, 0.98) 410px, rgba(8, 11, 10, 0.98) 100%),
      linear-gradient(90deg, rgba(8, 11, 10, 0.97) 0%, rgba(8, 11, 10, 0.87) 52%, rgba(8, 11, 10, 0.34) 100%);
  }

  .hero-section::after {
    left: 14px;
    width: 76px;
  }

  .hero-food-art {
    background-position: 78% top;
    background-size: auto 360px;
    filter: brightness(1.09) saturate(0.9) contrast(1.03);
  }

  h1,
  .hero-copy > h2 {
    font-size: 1.68rem;
  }

  .mobile-break {
    display: block;
  }

  .hero-copy > p:not(.eyebrow) {
    display: none;
  }

  .home-search {
    display: none;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    min-height: 44px;
    margin-top: 12px;
    padding: 4px 4px 4px 10px;
  }

  .home-search button {
    grid-column: auto;
    width: auto;
    min-height: 34px;
    padding: 0 11px;
  }

  .hero-actions {
    gap: 6px;
    margin-top: 8px;
  }

  .hero-actions .primary-action,
  .hero-actions .soft-action {
    min-height: 36px;
    padding: 0 12px;
  }

  .live-pulse {
    margin-top: 8px;
    padding: 6px 8px;
  }

  .hero-live-board {
    grid-template-columns: 1fr;
  }

  .live-pulse small {
    display: none;
  }

  .hero-live-row:nth-child(n + 2),
  .live-comment-ticker {
    display: none;
  }

  .signature-dock {
    grid-template-columns: 1fr;
  }

  .hero-feature-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .feature-copy h2 {
    font-size: 1.02rem;
  }

  .feature-copy > p:not(.eyebrow) {
    -webkit-line-clamp: 2;
  }

  .feature-actions {
    margin-top: 8px;
  }

  .feature-actions .primary-action,
  .feature-actions .soft-action {
    min-height: 36px;
    padding: 0 9px;
    width: 100%;
  }

  .daily-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-panel div {
    min-height: 46px;
    padding: 7px;
  }

  .metric-source-note {
    display: none;
  }

  .channel-hub {
    padding-top: 10px;
  }

  .channel-chip {
    min-height: 38px;
    padding: 0 11px;
  }

  .category-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-page-card {
    min-height: 96px;
    padding: 12px;
  }

  .home-board-panel {
    padding: 12px 0 0;
  }

  .home-board-panel + .home-board-panel {
    border-left: 0;
    padding-left: 0;
  }

  .home-rank-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .home-rank-row em {
    grid-column: 2;
    justify-self: start;
  }

  .platform-strip {
    padding-bottom: 12px;
  }

  .platform-channel-nav {
    margin-bottom: 4px;
    scrollbar-width: none;
  }

  .platform-channel-nav::-webkit-scrollbar,
  .discussion-live-strip::-webkit-scrollbar,
  .discussion-scope-rail::-webkit-scrollbar,
  .update-filterbar::-webkit-scrollbar {
    display: none;
  }

  .own-edge-strip {
    grid-template-columns: 1fr;
  }

  .core-route-grid {
    grid-template-columns: 1fr;
  }

  .bookstore-home {
    padding: 24px 0 28px;
  }

  .book-shelf-heading {
    align-items: start;
  }

  .book-shelf-heading button {
    min-width: 74px;
  }

  .book-shelf-row {
    grid-auto-columns: 118px;
    gap: 10px;
    margin-right: -12px;
    margin-left: -2px;
    padding-right: 12px;
  }

  .free-ops {
    grid-template-columns: 1fr;
    padding-bottom: 24px;
  }

  .quality-list,
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .serial-ops-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .report-form-grid {
    grid-template-columns: 1fr;
  }

  .report-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .update-feed-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .update-metric-panel {
    display: none;
  }

  .update-feed-cover {
    width: 44px;
  }

  .update-time {
    grid-column: 2;
    justify-self: start;
    min-height: 26px;
    padding: 0 8px;
  }

  .update-body {
    grid-column: 2;
  }

  .update-feed-row em {
    grid-column: 2;
    justify-self: start;
  }

  .update-chips {
    gap: 4px;
  }

  .ops-grid {
    grid-template-columns: 1fr;
  }

  .ops-main {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .cover-style-grid {
    grid-template-columns: 1fr;
  }

  .genre-balance-grid {
    grid-template-columns: 1fr;
  }

  .catalog-quick-stats {
    display: flex;
    gap: 6px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .catalog-stat-card {
    flex: 0 0 132px;
    min-height: 64px;
    padding: 8px 10px;
    scroll-snap-align: start;
  }

  .catalog-filterbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px;
    margin-bottom: 10px;
  }

  .catalog-filterbar .advanced-filter[open] {
    grid-column: 1 / -1;
  }

  .catalog-filterbar .advanced-filter summary {
    min-height: 40px;
  }

  .category-strip {
    margin-bottom: 12px;
  }

  .continue-panel,
  .pass-panel {
    display: grid;
    gap: 12px;
  }

  .continue-panel .primary-action {
    width: 100%;
  }

  .site-footer {
    display: grid;
    padding-bottom: 92px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .work-hero {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
  }

  .detail-action-card {
    position: static;
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .work-hero img {
    width: 96px;
  }

  .work-copy {
    grid-column: 2;
  }

  .detail-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .detail-action-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .detail-action-card > p,
  .detail-action-card > strong,
  .detail-action-card > span,
  .detail-action-card > .detail-progress,
  .detail-action-card > dl,
  .detail-action-card > small,
  .detail-action-card > .primary-action {
    grid-column: 1 / -1;
  }

  .detail-action-card > p,
  .detail-action-card > small,
  .detail-action-card [data-detail-action="first"] {
    display: none;
  }

  .work-copy h2 {
    font-size: 1.55rem;
  }

  .detail-info,
  .detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-action-card dl,
  .library-stats-grid,
  .library-continue-grid {
    grid-template-columns: 1fr;
  }

  .detail-platform-panels,
  .work-free-strip,
  .entry-guide-strip,
  .work-serial-strip,
  .work-comment-summary,
  .compliance-band {
    grid-template-columns: 1fr;
  }

  #voicePanel,
  #readerPulsePanel,
  #highlightPanel,
  #relatedPanel {
    grid-column: auto;
  }

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

  .chapter-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .volume-list {
    max-height: 420px;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control button {
    flex: 1;
  }

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

  .catalog-row {
    grid-template-columns: 30px 58px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px;
  }

  .catalog-rank {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  .catalog-side {
    grid-column: 1 / -1;
  }

  .catalog-side dl {
    display: none;
  }

  .catalog-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-hook {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .catalog-identity,
  .catalog-signal {
    display: none;
  }

  .discussion-form,
  .discussion-community-grid,
  .discussion-prompt-panel,
  .discussion-list {
    grid-template-columns: 1fr;
  }

  .discussion-body-field {
    grid-column: auto;
  }

  .discussion-tabs {
    width: 100%;
  }

  .discussion-tabs button {
    flex: 1;
  }

  .novel-info {
    padding: 10px;
  }

  .novel-card h3 {
    min-height: 42px;
    font-size: 0.94rem;
  }

  .description {
    display: none;
  }

  .ranking-item {
    grid-template-columns: 34px 46px minmax(0, 1fr);
  }

  .ranking-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-trust-note {
    grid-template-columns: 1fr;
  }

  .rank-delta {
    grid-column: 3;
    justify-self: start;
  }

  .rank-trend {
    grid-column: 3;
    justify-self: start;
  }

  .rank-actions {
    grid-column: 3;
    display: flex;
    flex-wrap: wrap;
    justify-self: start;
  }

  .rank-actions button {
    padding: 0 14px;
  }

  .reader-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .reader-shell {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: none;
  }

  .reader-header,
  .reader-preferences,
  .comment-panel {
    padding: 14px;
  }

  .reader-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 58px;
    padding: 9px 12px;
  }

  .reader-header > div:first-child {
    min-width: 0;
  }

  .reader-header .eyebrow {
    display: none;
  }

  .reader-header h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reader-header h2 {
    font-size: 0.98rem;
  }

  .reader-actions {
    width: auto;
    gap: 5px;
    justify-content: end;
  }

  .reader-actions .icon-button {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 8px;
  }

  #toggleReaderTools,
  #toggleDrawer {
    display: none;
  }

  .reader-toolbar {
    display: none;
  }

  .reader-toolbar label,
  .reader-toolbar .segmented-control,
  .reader-toolbar .chapter-select-label {
    min-width: 0;
    width: 100%;
  }

  .reader-toolbar select {
    width: 100%;
  }

  #chapterSelectText {
    width: 100%;
  }

  .reader-toolbar input[type="range"] {
    width: 100%;
  }

  .chapter-select-label,
  .reader-mode {
    grid-column: 1 / -1;
  }

  .reader-toolbar .chapter-select-label {
    grid-column: 1 / -1;
  }

  #readTimeLabel {
    display: none;
  }

  .reader-toolbar .soft-action {
    width: 100%;
  }

  .reader-progress-label {
    min-width: 0;
    justify-content: center;
  }

  .reader-preferences {
    grid-template-columns: 1fr;
  }

  .reader-tools-panel {
    position: absolute;
    top: auto;
    right: 8px;
    bottom: calc(56px + env(safe-area-inset-bottom));
    left: 8px;
    width: auto;
    max-height: min(66dvh, calc(100dvh - 118px));
    border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
    border-radius: 12px;
    box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.34);
  }

  .reader-settings-grid {
    grid-template-columns: 1fr;
  }

  .reader-stats-panel {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .reader-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-end-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-end-rec-grid {
    grid-template-columns: 1fr;
  }

  .chapter-end-actions .primary-action,
  .chapter-end-actions .soft-action {
    flex: 1 1 100%;
  }

  .reader-main {
    position: relative;
    flex: 1 1 auto;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .reader-drawer {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 8;
    max-height: min(68dvh, calc(100% - 16px));
    border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
    border-radius: 12px;
    padding: 14px;
    background: color-mix(in srgb, var(--panel) 97%, transparent);
    box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.34);
    overscroll-behavior: contain;
  }

  .reader-dialog.drawer-closed .reader-main {
    grid-template-columns: 1fr;
  }

  .reader-dialog.drawer-closed .reader-drawer {
    display: none;
  }

  .reader-drawer .drawer-block:not(:first-child) {
    display: none;
  }

  .reader-content {
    height: 100%;
    max-height: none;
    padding: 18px 18px 34px;
    overscroll-behavior: contain;
    scroll-padding-top: 18px;
  }

  .comment-panel {
    display: none;
  }

  .reader-hot {
    display: none;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .reader-bottom-bar {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(58px, 1fr) minmax(64px, auto) minmax(54px, auto) minmax(58px, 1fr);
    gap: 6px;
    align-items: center;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--panel) 94%, transparent);
    backdrop-filter: blur(14px);
  }

  .reader-bottom-bar button {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
  }

  .reader-bottom-bar button:disabled {
    opacity: 0.42;
  }

  .reader-page-zone {
    display: none;
  }

  .reader-bottom-bar span {
    min-width: 0;
    text-align: center;
    color: var(--accent-strong);
    font-weight: 900;
  }

  .reader-bottom-bar small {
    font-size: 0.62rem;
  }

  .comment-item {
    grid-template-columns: 1fr;
  }

  .comment-actions {
    justify-content: start;
  }

  .comment-actions span,
  .comment-actions button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Quiet reading UI: independent-library visual layer. */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --panel: #ffffff;
  --panel-raised: #f1f3f0;
  --line: #e4e7e3;
  --text: #1d201d;
  --muted: #686e68;
  --soft: #8a908a;
  --accent: #708276;
  --accent-strong: #53665a;
  --rose: #9b7777;
  --tea: #7a827b;
  --ink: #ffffff;
  --shadow: 0 12px 32px rgba(27, 34, 29, 0.08);
  --shadow-soft: 0 2px 8px rgba(27, 34, 29, 0.05);
  --focus-ring: 0 0 0 3px rgba(112, 130, 118, 0.2);
  --brand-thread: #53665a;
  --brand-warm: #708276;
  --food-red: #708276;
  --food-red-deep: #53665a;
  --food-amber: #93a096;
  --food-sesame: #edf1ed;
  --food-leaf: #708276;
  --comic-ink: #ffffff;
  --radius: 6px;
  --font-ko: "Noto Sans KR", "Apple SD Gothic Neo", Pretendard, "Malgun Gothic", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111311;
  --bg-soft: #161916;
  --panel: #191c19;
  --panel-raised: #222622;
  --line: #303630;
  --text: #e8ebe7;
  --muted: #a2aaa2;
  --soft: #7e877e;
  --accent: #9caf9e;
  --accent-strong: #bdcbbd;
  --ink: #111311;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  --shadow-soft: 0 3px 10px rgba(0, 0, 0, 0.18);
  --comic-ink: #111311;
}

body.quiet-reading {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ko);
  font-weight: 400;
}

body.quiet-reading::before {
  display: none;
}

.quiet-reading .app-shell {
  width: min(1120px, calc(100% - 40px));
}

.quiet-reading .topbar {
  position: sticky;
  top: 0;
  z-index: 16;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
}

.quiet-reading .brand-mark {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--accent-strong);
  box-shadow: none;
}

.quiet-reading .brand strong {
  font-weight: 700;
}

.quiet-reading .brand small {
  color: var(--soft);
  font-weight: 400;
}

.quiet-reading .desktop-nav {
  gap: 2px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.quiet-reading .desktop-nav a {
  min-width: 76px;
  color: var(--muted);
  font-weight: 500;
}

.quiet-reading .desktop-nav a.active,
.quiet-reading .desktop-nav a:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.quiet-reading .desktop-nav a.active::after {
  display: none;
}

.quiet-reading .search-box,
.quiet-reading .icon-button {
  border-color: var(--line);
  background: var(--bg);
  box-shadow: none;
}

.quiet-reading .search-box input,
.quiet-reading .home-search input,
.quiet-reading .chapter-search input,
.quiet-reading .comment-form input {
  word-break: normal;
  line-break: strict;
}

.quiet-reading .mobile-menu-toggle,
.quiet-reading .mobile-menu-dialog {
  display: none;
}

.quiet-reading .platform-channel-nav {
  gap: 5px;
  margin-bottom: 0;
  border-bottom: 0;
  padding: 10px 0 12px;
  scrollbar-width: none;
}

.quiet-reading .platform-channel-nav::-webkit-scrollbar {
  display: none;
}

.quiet-reading .platform-channel-chip {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.quiet-reading .platform-channel-chip:hover,
.quiet-reading .platform-channel-chip.active {
  background: #edf1ed;
  color: var(--accent-strong);
  transform: none;
}

:root[data-theme="dark"] .quiet-reading .platform-channel-chip:hover,
:root[data-theme="dark"] .quiet-reading .platform-channel-chip.active {
  background: var(--panel-raised);
}

.quiet-reading .eyebrow {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: none;
}

.quiet-reading :where(h1, h2, h3, button, nav, .book-title) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.quiet-reading :where(.primary-action, .soft-action) {
  min-height: 40px;
  border-radius: 4px;
  box-shadow: none;
  font-weight: 600;
}

.quiet-reading .primary-action {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.quiet-reading .soft-action {
  border-color: var(--line);
  background: var(--bg);
  color: var(--text);
}

.quiet-reading :where(.primary-action, .soft-action):hover {
  transform: none;
  box-shadow: none;
}

.quiet-reading #home,
.quiet-reading .bookstore-home {
  display: none !important;
}

.quiet-reading .platform-strip {
  padding: 12px 0 4px;
}

.quiet-reading .continue-panel {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: var(--bg-soft);
  box-shadow: none;
}

.quiet-reading .continue-panel::before {
  width: 2px;
  background: var(--accent);
}

.quiet-reading .continue-panel .eyebrow {
  display: none;
}

.quiet-reading .continue-panel h2 {
  font-size: 0.98rem;
  font-weight: 600;
}

.quiet-reading .continue-panel p {
  margin-top: 3px;
  font-size: 0.78rem;
}

.quiet-reading .channel-hub,
.quiet-reading .content-band,
.quiet-reading .split-layout,
.quiet-reading .work-detail {
  padding-top: 28px;
}

.quiet-reading .food-masthead {
  grid-template-columns: minmax(0, 1fr) clamp(168px, 22vw, 236px);
  min-height: 108px;
  margin: 0 0 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  box-shadow: none;
}

.quiet-reading .food-masthead > img {
  position: relative;
  inset: auto;
  z-index: 0;
  display: block;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 108px;
  border-left: 1px solid var(--line);
  object-fit: cover;
  object-position: 76% center;
  filter: brightness(1.12) saturate(0.86) contrast(0.96);
  transform: none;
}

.quiet-reading .food-masthead-convenience > img {
  object-position: 79% center;
}

.quiet-reading .food-masthead-dessert > img {
  object-position: 77% center;
}

.quiet-reading .food-masthead-feast > img {
  object-position: 75% center;
}

.quiet-reading .food-masthead::before,
.quiet-reading .food-masthead::after {
  display: none;
}

.quiet-reading .food-masthead .section-heading {
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  min-width: 0;
  min-height: 108px;
  gap: 12px;
  padding: 18px 20px;
  border: 0;
  color: var(--text);
}

.quiet-reading .food-masthead .section-heading > div:first-child {
  max-width: none;
}

.quiet-reading .food-masthead .section-heading h2 {
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 700;
  text-shadow: none;
}

.quiet-reading .food-masthead .eyebrow {
  color: var(--accent-strong);
}

.quiet-reading :where(.home-search, .hero-actions, .continue-panel) .primary-action::before,
.quiet-reading .catalog-actions .primary-action::before,
.quiet-reading .discussion-form .primary-action::before,
.quiet-reading .ranking-control button.active::before {
  width: 18px;
  height: 18px;
  border-color: var(--line);
  border-radius: 4px;
  background-size: auto 54px;
  box-shadow: none;
}

.quiet-reading .catalog-actions .primary-action {
  min-width: 78px;
  white-space: nowrap;
}

.quiet-reading .subtle-pill {
  border: 0;
  background: transparent;
  color: var(--soft);
  font-weight: 500;
}

.quiet-reading .home-board-grid {
  gap: 36px;
}

.quiet-reading .home-board-panel {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.quiet-reading .home-board-panel:nth-child(2) {
  order: -1;
  border-left: 0;
  padding-left: 0;
}

.quiet-reading .board-panel-heading {
  margin-bottom: 8px;
}

.quiet-reading .board-panel-heading button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}

.quiet-reading :where(.home-rank-row, .home-update-row) {
  min-height: 54px;
  border-bottom-color: var(--line);
  background: transparent;
}

.quiet-reading :where(.home-rank-row, .home-update-row):hover {
  background: var(--bg-soft);
}

.quiet-reading .home-rank-row em {
  display: none;
}

.quiet-reading .catalog-quick-stats,
.quiet-reading .genre-balance-grid,
.quiet-reading .ranking-snapshot,
.quiet-reading .taste-panel {
  display: none !important;
}

.quiet-reading .catalog-identity,
.quiet-reading .catalog-signal,
.quiet-reading .catalog-side dl {
  display: none !important;
}

.quiet-reading .library-band {
  max-width: 980px;
  margin-inline: auto;
}

.quiet-reading .library-stats-grid,
.quiet-reading .library-recommend-panel {
  display: none !important;
}

.quiet-reading .library-dashboard {
  margin: 20px 0 0;
}

.quiet-reading .library-empty {
  border-color: var(--line);
  border-radius: 5px;
  padding: 14px 16px;
  background: var(--bg-soft);
}

.quiet-reading .library-continue-panel {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.quiet-reading .library-continue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quiet-reading .library-continue-card {
  border-color: var(--line);
  border-radius: 5px;
  background: var(--bg);
}

.quiet-reading .library-continue-card:nth-child(n + 4) {
  display: none;
}

.quiet-reading .catalog-filterbar {
  margin: 0 0 12px;
}

.quiet-reading .segmented-control {
  border-color: var(--line);
  border-radius: 5px;
  background: var(--bg-soft);
}

.quiet-reading .segmented-control button {
  font-weight: 500;
}

.quiet-reading .segmented-control button.active {
  background: var(--bg);
  color: var(--accent-strong);
}

.quiet-reading .advanced-filter summary,
.quiet-reading :where(.category-chip, .filter-chip, .tag-chip) {
  border-color: var(--line);
  background: var(--bg);
  color: var(--muted);
  font-weight: 500;
}

.quiet-reading :where(.category-chip, .filter-chip, .tag-chip).active,
.quiet-reading :where(.category-chip, .filter-chip, .tag-chip):hover {
  border-color: var(--accent);
  background: #edf1ed;
  color: var(--accent-strong);
}

:root[data-theme="dark"] .quiet-reading :where(.category-chip, .filter-chip, .tag-chip).active,
:root[data-theme="dark"] .quiet-reading :where(.category-chip, .filter-chip, .tag-chip):hover {
  background: var(--panel-raised);
}

.quiet-reading .catalog-row {
  border-color: var(--line);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: none;
}

.quiet-reading .catalog-row::before {
  width: 2px;
  background: var(--accent);
}

.quiet-reading .catalog-row:hover {
  border-color: #cfd5cf;
  background: var(--bg-soft);
  transform: none;
}

.quiet-reading .catalog-badges span,
.quiet-reading .detail-pills span {
  border-color: var(--line);
  background: var(--bg-soft);
  color: var(--muted);
}

.quiet-reading .split-layout {
  grid-template-columns: 1fr;
}

.quiet-reading .ranking-control {
  max-width: 520px;
}

.quiet-reading .ranking-control button:nth-child(n + 5) {
  display: none;
}

.quiet-reading .work-detail {
  max-width: 920px;
  margin-inline: auto;
}

.quiet-reading .work-hero {
  grid-template-columns: 132px minmax(0, 1fr) minmax(210px, 0.35fr);
  gap: 22px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.quiet-reading .work-hero > img {
  border-radius: 4px;
  box-shadow: none;
}

.quiet-reading .work-copy h2 {
  font-weight: 700;
}

.quiet-reading .detail-description {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.75;
}

.quiet-reading .detail-action-card,
.quiet-reading .chapter-panel,
.quiet-reading .work-comment-panel {
  border-color: var(--line);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: none;
}

.quiet-reading .work-detail-tabs,
.quiet-reading .detail-deep-info,
.quiet-reading .entry-guide-strip,
.quiet-reading .work-serial-strip,
.quiet-reading .detail-platform-panels,
.quiet-reading .ai-panel {
  display: none !important;
}

.quiet-reading .detail-action-card > .eyebrow,
.quiet-reading .detail-action-card > strong,
.quiet-reading .detail-action-card > dl,
.quiet-reading .detail-action-card > small,
.quiet-reading .detail-action-card [data-detail-action="first"] {
  display: none !important;
}

.quiet-reading .work-panels,
.quiet-reading .work-detail[data-work-tab] .work-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.quiet-reading .work-detail[data-work-tab] .chapter-panel,
.quiet-reading .work-detail[data-work-tab] .work-comment-panel {
  display: block !important;
}

.quiet-reading .work-comment-panel {
  padding: 0;
  overflow: hidden;
}

.quiet-reading .work-comment-panel > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.quiet-reading .work-comment-panel > summary::-webkit-details-marker {
  display: none;
}

.quiet-reading .work-comment-panel > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--soft);
}

.quiet-reading .work-comment-panel[open] > summary::after {
  content: "−";
}

.quiet-reading .work-comment-panel > .section-heading,
.quiet-reading .work-comment-panel > .work-comment-body {
  padding: 0 16px 16px;
}

.quiet-reading .reader-dialog {
  width: min(820px, calc(100% - 32px));
  border-color: var(--line);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.quiet-reading .reader-dialog::backdrop {
  background: rgba(20, 24, 21, 0.42);
  backdrop-filter: none;
}

.quiet-reading .reader-header {
  min-height: 58px;
  border-bottom-color: var(--line);
  padding: 10px 14px;
  background: var(--bg);
  box-shadow: none;
}

.quiet-reading .reader-header .eyebrow {
  display: none;
}

.quiet-reading .reader-header h2 {
  font-size: 0.96rem;
  font-weight: 600;
}

.quiet-reading .reader-actions .icon-button {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 4px;
}

.quiet-reading .reader-toolbar,
.quiet-reading .reader-hot,
.quiet-reading .reader-stats-panel,
.quiet-reading .reader-statline,
.quiet-reading .comment-panel {
  display: none !important;
}

.quiet-reading .reader-tools-panel {
  top: 66px;
  right: 12px;
  width: min(390px, calc(100% - 24px));
  max-height: calc(100dvh - 126px);
  border-color: var(--line);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.quiet-reading .reader-preferences {
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px;
}

.quiet-reading .reader-settings-grid {
  grid-template-columns: 1fr;
}

.quiet-reading .reader-essential-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quiet-reading .reader-bookmark-button.saved {
  border-color: var(--accent);
  background: #edf1ed;
  color: var(--accent-strong);
}

.quiet-reading .reader-main,
.quiet-reading .reader-dialog.drawer-closed .reader-main {
  grid-template-columns: 1fr;
}

.quiet-reading .reader-drawer {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 7;
  width: min(340px, 88%);
  max-height: none;
  border-right: 1px solid var(--line);
  padding: 16px;
  background: var(--bg);
  box-shadow: 10px 0 28px rgba(25, 32, 27, 0.08);
}

.quiet-reading .reader-dialog.drawer-closed .reader-drawer {
  display: none;
}

.quiet-reading .reader-page-zone.prev,
.quiet-reading .reader-dialog.drawer-closed .reader-page-zone.prev {
  left: 0;
}

.quiet-reading .reader-content {
  max-height: 68dvh;
  padding: 34px 28px 48px;
  background: var(--bg);
  color: var(--text);
  font-size: 19px;
  line-height: 1.82;
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
  letter-spacing: 0;
}

.quiet-reading .reader-content > * {
  max-width: 680px;
  margin-inline: auto;
}

.quiet-reading .reader-content p {
  margin-bottom: 1.15em;
}

.quiet-reading .reader-content .chapter-heading {
  margin-bottom: 1.8em;
  color: var(--text);
  font-weight: 600;
}

.quiet-reading .reader-dialog[data-reader-mode="paper"] .reader-content {
  background: #ffffff;
  color: #20231f;
}

.quiet-reading .reader-dialog[data-reader-mode="forest"] .reader-content {
  background: #f1f2ef;
  color: #252925;
}

.quiet-reading .reader-dialog[data-reader-mode="night"] .reader-content {
  background: #111311;
  color: #e8ebe7;
}

.quiet-reading .reader-dialog[data-reader-mode] .chapter-heading {
  color: inherit;
}

.quiet-reading .chapter-end-card {
  gap: 12px;
  margin-top: 2.4em;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 24px 0 0;
  background: transparent !important;
}

.quiet-reading .chapter-end-dashboard,
.quiet-reading .chapter-end-next,
.quiet-reading .chapter-end-reaction,
.quiet-reading .chapter-end-recs,
.quiet-reading .chapter-end-actions .soft-action {
  display: none !important;
}

.quiet-reading .chapter-end-head .eyebrow,
.quiet-reading .chapter-end-head span {
  display: none;
}

.quiet-reading .chapter-end-head strong {
  color: inherit !important;
  font-size: 0.94rem;
  font-weight: 500;
}

.quiet-reading .chapter-end-actions {
  display: grid;
}

.quiet-reading .reader-bottom-bar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-top-color: var(--line);
  padding: 8px 14px;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(12px);
}

.quiet-reading .reader-bottom-bar button {
  min-height: 42px;
  border-color: var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-weight: 500;
}

.quiet-reading .site-footer {
  padding: 28px 0;
}

.quiet-reading .site-footer button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-weight: 500;
}

@media (max-width: 620px) {
  .quiet-reading .app-shell {
    width: calc(100% - 24px);
    padding-bottom: 24px;
  }

  .quiet-reading .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 54px;
    padding: 7px 0;
  }

  .quiet-reading .brand {
    min-width: 82px;
  }

  .quiet-reading .brand-mark,
  .quiet-reading .brand small {
    display: none;
  }

  .quiet-reading .brand strong {
    font-size: 0.96rem;
  }

  .quiet-reading .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px 40px;
    gap: 6px;
    width: 100%;
  }

  .quiet-reading .search-box {
    min-height: 40px;
    padding: 0 9px;
  }

  .quiet-reading .search-box input {
    min-height: 38px;
    font-size: 0.82rem;
  }

  .quiet-reading .mobile-menu-toggle {
    display: grid;
  }

  .quiet-reading .mobile-menu-dialog {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 88vw);
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0 0 0 auto;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    padding: 18px;
    background: var(--bg);
    color: var(--text);
  }

  .quiet-reading .mobile-menu-dialog[open] {
    display: block;
  }

  .quiet-reading .mobile-menu-dialog::backdrop {
    background: rgba(20, 24, 21, 0.34);
  }

  .quiet-reading .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }

  .quiet-reading .mobile-menu-dialog nav {
    display: grid;
    margin-top: 10px;
  }

  .quiet-reading .mobile-menu-dialog nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
  }

  .quiet-reading .mobile-nav {
    display: none !important;
  }

  .quiet-reading .platform-channel-nav {
    margin-inline: -2px;
    padding: 8px 2px 10px;
  }

  .quiet-reading .platform-channel-chip {
    min-height: 34px;
  }

  .quiet-reading .channel-hub,
  .quiet-reading .content-band,
  .quiet-reading .split-layout,
  .quiet-reading .work-detail {
    padding-top: 20px;
  }

  .quiet-reading .continue-panel {
    display: grid;
    gap: 10px;
  }

  .quiet-reading .continue-panel .primary-action {
    width: 100%;
  }

  .quiet-reading .food-masthead {
    grid-template-columns: minmax(0, 1fr) 108px;
    min-height: 92px;
    margin-bottom: 14px;
  }

  .quiet-reading .food-masthead .section-heading {
    min-height: 92px;
    gap: 4px;
    padding: 13px 14px;
  }

  .quiet-reading .food-masthead .section-heading h2 {
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .quiet-reading .food-masthead > img {
    min-height: 92px;
  }

  .quiet-reading .food-masthead .subtle-pill {
    display: none;
  }

  .quiet-reading .home-board-grid {
    gap: 28px;
  }

  .quiet-reading .home-board-panel + .home-board-panel {
    border-top: 0;
    padding-top: 0;
  }

  .quiet-reading .catalog-filterbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .quiet-reading .library-continue-grid {
    grid-template-columns: 1fr;
  }

  .quiet-reading .work-hero {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
  }

  .quiet-reading .detail-action-card {
    grid-column: 1 / -1;
  }

  .quiet-reading .reader-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .quiet-reading .reader-header {
    min-height: 54px;
    padding: 7px 12px;
  }

  .quiet-reading .reader-actions .icon-button {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .quiet-reading .reader-tools-panel {
    top: auto;
    right: 8px;
    bottom: calc(58px + env(safe-area-inset-bottom));
    left: 8px;
    width: auto;
    max-height: min(64dvh, calc(100dvh - 124px));
  }

  .quiet-reading #toggleDrawer {
    display: block;
  }

  .quiet-reading .reader-drawer {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
  }

  .quiet-reading .reader-content {
    height: 100%;
    max-height: none;
    padding: 26px 20px 42px;
    font-size: 18px;
    line-height: 1.82;
  }

  .quiet-reading .reader-bottom-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  }

  .quiet-reading .reader-bottom-bar button {
    min-height: 42px;
  }
}

@media (max-width: 620px) {
  .quiet-reading .catalog-filterbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .quiet-reading .catalog-filterbar > .segmented-control {
    grid-column: 1 / -1;
  }

  .quiet-reading .catalog-view-toggle {
    grid-column: 1;
    justify-self: start;
  }

  .quiet-reading .catalog-filterbar > .advanced-filter {
    grid-column: 2;
  }

  .quiet-reading .catalog-filterbar > .advanced-filter[open] {
    grid-column: 1 / -1;
  }

  .quiet-reading .reader-content {
    padding-top: 76px;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .quiet-reading .reader-dialog.reader-chrome-hidden .reader-content {
    padding-top: 76px;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

/* 2026-09 platform hardening: truthful states, stable reading and compact community. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

[hidden] {
  display: none !important;
}

.work-detail.is-not-found > :not(.work-not-found) {
  display: none !important;
}

.work-not-found {
  max-width: 680px;
  margin: clamp(52px, 10vh, 120px) auto;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  text-align: center;
}

.work-not-found h2,
.work-not-found p {
  margin-inline: auto;
}

.work-not-found code {
  overflow-wrap: anywhere;
}

.work-not-found .primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 18px;
  padding-inline: 20px;
}

.form-status {
  min-height: 1.35em;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.library-empty {
  display: grid;
  justify-items: start;
  gap: 7px;
}

.library-empty strong,
.library-empty span {
  display: block;
}

.library-empty .soft-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 5px;
  padding-inline: 16px;
}

.quiet-reading .library-band.is-empty .library-recommend-panel {
  display: block !important;
  margin-top: 20px;
  border: 0;
  padding: 0;
  background: transparent;
}

.quiet-reading .library-band.is-empty .library-recommend-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-channel-nav,
.category-strip,
.update-filterbar,
.discussion-scope-rail,
.discussion-live-strip,
.filter-chip-row {
  scrollbar-width: none;
}

.platform-channel-nav::-webkit-scrollbar,
.category-strip::-webkit-scrollbar,
.update-filterbar::-webkit-scrollbar,
.discussion-scope-rail::-webkit-scrollbar,
.discussion-live-strip::-webkit-scrollbar,
.filter-chip-row::-webkit-scrollbar {
  display: none;
}

@media (max-width: 620px) {
  .quiet-reading .brand {
    min-height: 44px;
    align-items: center;
  }

  .icon-button,
  .mobile-menu-toggle,
  .quiet-reading .platform-channel-nav button,
  .quiet-reading .category-strip button,
  .quiet-reading .update-filterbar button,
  .quiet-reading .discussion-scope-rail button,
  .quiet-reading .discussion-tabs button,
  .quiet-reading .segmented-control button,
  .quiet-reading .filter-chip,
  .quiet-reading .search-box input,
  .quiet-reading .catalog-view-toggle button,
  .quiet-reading .catalog-actions button,
  .quiet-reading .catalog-pagination button,
  .quiet-reading .continue-panel .primary-action,
  .quiet-reading .board-panel-heading button,
  .quiet-reading .home-rank-row button,
  .quiet-reading .tag-chip,
  .quiet-reading .rank-actions button,
  .quiet-reading .discussion-form .primary-action,
  .quiet-reading .report-form-actions .primary-action,
  .quiet-reading .privacy-control button,
  .quiet-reading .detail-latest-panel .primary-action,
  .quiet-reading .volume-tabs button,
  .quiet-reading .chapter-row,
  .quiet-reading .work-comment-actions button,
  .quiet-reading .site-footer button,
  .quiet-reading .detail-action-card button,
  .quiet-reading .reader-bottom-bar button,
  .quiet-reading .reader-header button,
  .quiet-reading #closeReader,
  .quiet-reading .chapter-end-actions .primary-action {
    min-width: 44px;
    min-height: 44px;
  }

  .quiet-reading .detail-related-panel .detail-related-list {
    grid-template-columns: 1fr;
  }

  .quiet-reading .detail-related-panel .detail-related-list button:nth-child(n + 3) {
    display: none;
  }

  .quiet-reading .library-band.is-empty .library-recommend-grid {
    grid-template-columns: 1fr;
  }

  .quiet-reading .library-recommend-card:nth-child(n + 4) {
    display: none;
  }
}

/* 2026-09-08 Novelpia-inspired information architecture with Dalbit's food identity. */
.quiet-reading {
  --platform-coral: #d96345;
  --platform-coral-soft: #fff0e9;
  --platform-yellow: #efbb43;
  --platform-sage: #617b69;
}

.quiet-reading .app-shell {
  width: min(1180px, calc(100% - 40px));
}

.quiet-reading .topbar {
  min-height: 64px;
  padding: 9px 0;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
}

.quiet-reading .brand {
  min-width: 168px;
}

.quiet-reading .brand-mark {
  border: 0;
  background: var(--platform-coral-soft);
  color: #9d3e2d;
}

.quiet-reading .brand-mark::after {
  display: block;
  background: var(--platform-coral);
}

.quiet-reading .desktop-nav a {
  min-width: 84px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 650;
}

.quiet-reading .desktop-nav a.active,
.quiet-reading .desktop-nav a:hover {
  background: transparent;
  color: var(--text);
}

.quiet-reading .desktop-nav a.active::after {
  display: block;
  right: 18px;
  bottom: 3px;
  left: 18px;
  height: 2px;
  background: var(--platform-coral);
}

.quiet-reading .search-box {
  width: 250px;
  border-radius: 5px;
  background: var(--bg-soft);
}

.quiet-reading .platform-channel-nav {
  gap: 0;
  min-height: 46px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.quiet-reading .platform-channel-chip {
  position: relative;
  min-height: 46px;
  border-radius: 0;
  padding: 0 15px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.quiet-reading .platform-channel-chip:hover,
.quiet-reading .platform-channel-chip.active,
:root[data-theme="dark"] .quiet-reading .platform-channel-chip:hover,
:root[data-theme="dark"] .quiet-reading .platform-channel-chip.active {
  background: transparent;
  color: var(--text);
}

.quiet-reading .platform-channel-chip.active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--platform-coral);
}

.quiet-reading #home:not([hidden]) {
  --text: #1d211d;
  --muted: #5f685f;
  --soft: #7b847b;
  --accent: #9c3f2d;
  --accent-strong: #823425;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-raised: #ffffff;
  --bg-soft: rgba(255, 255, 255, 0.76);
  --line: rgba(77, 91, 78, 0.18);
  --ink: #ffffff;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
  align-items: center;
  min-height: 330px;
  margin-top: 18px;
  border-color: #e5dfd1;
  border-radius: 6px;
  padding: 32px;
  background: #f6f3e9;
  color: var(--text);
  box-shadow: none;
}

.quiet-reading #home::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(251, 249, 243, 0.99) 0%, rgba(251, 249, 243, 0.96) 38%, rgba(251, 249, 243, 0.66) 64%, rgba(251, 249, 243, 0.16) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(244, 239, 226, 0.2));
}

.quiet-reading #home::after {
  top: 0;
  left: 32px;
  width: 112px;
  height: 4px;
  background: linear-gradient(90deg, var(--platform-coral), var(--platform-yellow));
}

.quiet-reading #home .hero-food-art {
  background-image: url("./assets/kfood-webtoon-library-hero-20260908.jpg");
  background-position: center;
  filter: none;
}

.quiet-reading #home .hero-copy {
  max-width: 570px;
}

.quiet-reading #home .hero-copy > h2 {
  max-width: 520px;
  font-size: 2.3rem;
  line-height: 1.22;
  font-weight: 750;
}

.quiet-reading #home .hero-copy > p:not(.eyebrow) {
  max-width: 500px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.quiet-reading #home .home-search {
  max-width: 520px;
  margin-top: 18px;
  border-color: rgba(77, 91, 78, 0.22);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(78, 67, 49, 0.07);
}

.quiet-reading #home .home-search .primary-action {
  background: var(--platform-sage);
}

.quiet-reading #home .hero-actions {
  margin-top: 12px;
}

.quiet-reading #home .live-pulse {
  margin-top: 16px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.quiet-reading #home .live-dot {
  background: var(--platform-coral);
}

.quiet-reading #home .hero-feature-card {
  grid-template-columns: 106px minmax(0, 1fr);
  align-self: center;
  border-color: rgba(77, 91, 78, 0.2);
  border-radius: 6px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(71, 59, 42, 0.12);
  backdrop-filter: blur(12px);
}

.quiet-reading #home .feature-cover-button,
.quiet-reading #home .feature-cover-button img {
  border-radius: 4px;
}

.quiet-reading #home .daily-panel,
.quiet-reading #home .metric-source-note,
.quiet-reading #home .hero-live-board {
  display: none !important;
}

.quiet-reading #home .feature-copy h2 {
  color: var(--text);
  font-size: 1.22rem;
}

.quiet-reading #home .feature-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.55;
}

.quiet-reading #home .feature-actions {
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.quiet-reading #home .feature-actions .soft-action {
  display: none;
}

:root[data-theme="dark"] .quiet-reading #home {
  --text: #eef0ec;
  --muted: #bcc4bb;
  --soft: #959e95;
  --accent: #ffc3ad;
  --accent-strong: #ffd5c5;
  --panel: rgba(22, 27, 23, 0.88);
  --panel-raised: #202620;
  --bg-soft: rgba(18, 22, 19, 0.8);
  --line: rgba(225, 232, 224, 0.16);
  background: #171b18;
}

:root[data-theme="dark"] .quiet-reading #home::before {
  background:
    linear-gradient(90deg, rgba(18, 22, 19, 0.99) 0%, rgba(18, 22, 19, 0.96) 42%, rgba(18, 22, 19, 0.68) 67%, rgba(18, 22, 19, 0.28) 100%),
    linear-gradient(180deg, rgba(18, 22, 19, 0.08), rgba(18, 22, 19, 0.28));
}

:root[data-theme="dark"] .quiet-reading #home .home-search,
:root[data-theme="dark"] .quiet-reading #home .hero-feature-card {
  background: rgba(22, 27, 23, 0.9);
}

.quiet-reading .platform-strip {
  padding: 14px 0 0;
}

.quiet-reading .continue-panel {
  min-height: 62px;
  border-radius: 5px;
  padding: 10px 12px 10px 16px;
  background: var(--bg);
}

.quiet-reading .continue-panel::before {
  background: var(--platform-coral);
}

.quiet-reading .channel-hub {
  padding-top: 24px;
}

.quiet-reading .channel-hub > .food-masthead {
  grid-template-columns: minmax(0, 1fr) clamp(190px, 24vw, 278px);
  min-height: 88px;
  margin-bottom: 24px;
  border-radius: 5px;
}

.quiet-reading .channel-hub > .food-masthead .section-heading {
  min-height: 88px;
  padding: 14px 18px;
}

.quiet-reading .channel-hub > .food-masthead > img {
  min-height: 88px;
  filter: brightness(1.24) saturate(0.92) contrast(0.88);
}

.quiet-reading .home-board-grid {
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
  gap: 32px;
}

.quiet-reading .home-board-panel:nth-child(2) {
  order: initial;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.quiet-reading .home-rank-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.quiet-reading .home-rank-row {
  grid-template-columns: 24px 44px minmax(0, 1fr);
  gap: 9px;
  min-height: 76px;
  border-top: 1px solid var(--line);
  padding: 7px 0;
}

.quiet-reading .home-rank-row:nth-child(-n + 2) {
  border-top: 0;
}

.quiet-reading .home-rank-number {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: transparent;
  color: var(--platform-coral);
  font-size: 0.86rem;
}

.quiet-reading .home-rank-cover {
  width: 44px;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  object-fit: cover;
  background: var(--bg-soft);
}

.quiet-reading .home-rank-row button {
  align-self: center;
}

.quiet-reading .home-rank-row strong {
  display: -webkit-box;
  white-space: normal;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.quiet-reading .home-update-preview {
  gap: 0;
}

.quiet-reading .home-update-row {
  min-height: 58px;
  padding: 7px 0;
}

.quiet-reading .home-discovery {
  gap: 32px;
  margin-top: 34px;
  padding-top: 28px;
}

.quiet-reading .home-mini-shelf {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quiet-reading .home-mini-book {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 8px;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.quiet-reading .home-mini-book:hover {
  background: transparent;
}

.quiet-reading .home-mini-book img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  box-shadow: 0 7px 18px rgba(25, 31, 26, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.quiet-reading .home-mini-book:hover img {
  transform: translateY(-2px);
  box-shadow: 0 11px 24px rgba(25, 31, 26, 0.14);
}

.quiet-reading .home-mini-book strong {
  display: -webkit-box;
  min-height: 2.8em;
  white-space: normal;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.quiet-reading .home-mini-book small {
  margin-top: 4px;
}

.quiet-reading .home-mini-book .home-book-reason {
  display: -webkit-box;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.5;
  min-height: 3em;
}

.quiet-reading .home-discovery-panel:last-child {
  grid-column: 1 / -1;
}

.quiet-reading #homeSeasonShelf {
  max-width: 580px;
}

.quiet-reading .home-board-panel:first-child .eyebrow,
.quiet-reading .home-discovery-panel:first-child .eyebrow {
  color: var(--platform-coral);
}

.quiet-reading .food-masthead {
  border-radius: 5px;
}

.quiet-reading .catalog-row,
.quiet-reading .ranking-item,
.quiet-reading .work-hero,
.quiet-reading .detail-panel,
.quiet-reading .chapter-panel,
.quiet-reading .work-comment-panel {
  border-radius: 5px;
}

@media (max-width: 900px) {
  .quiet-reading #home:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) 300px;
    min-height: 310px;
    padding: 26px;
  }

  .quiet-reading #home .hero-copy > h2 {
    font-size: 1.92rem;
  }

  .quiet-reading .home-board-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .quiet-reading .home-board-panel:nth-child(2) {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 22px;
    padding-left: 0;
  }
}

@media (max-width: 620px) {
  .quiet-reading .app-shell {
    width: calc(100% - 24px);
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .quiet-reading .topbar {
    min-height: 56px;
  }

  .quiet-reading .platform-channel-nav {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .quiet-reading .platform-channel-chip {
    min-height: 44px;
    padding-inline: 12px;
  }

  .quiet-reading #home:not([hidden]) {
    display: block !important;
    min-height: 0;
    margin-top: 12px;
    padding: 22px 18px;
  }

  .quiet-reading #home::before {
    background:
      linear-gradient(180deg, rgba(251, 249, 243, 0.97) 0%, rgba(251, 249, 243, 0.91) 57%, rgba(251, 249, 243, 0.74) 100%),
      linear-gradient(90deg, rgba(251, 249, 243, 0.92), rgba(251, 249, 243, 0.36));
  }

  :root[data-theme="dark"] .quiet-reading #home::before {
    background:
      linear-gradient(180deg, rgba(18, 22, 19, 0.97) 0%, rgba(18, 22, 19, 0.91) 58%, rgba(18, 22, 19, 0.76) 100%),
      linear-gradient(90deg, rgba(18, 22, 19, 0.94), rgba(18, 22, 19, 0.38));
  }

  .quiet-reading #home .hero-food-art {
    background-position: 61% center;
  }

  .quiet-reading #home .hero-copy > h2 {
    font-size: 1.65rem;
    line-height: 1.28;
  }

  .quiet-reading #home .hero-copy > p:not(.eyebrow) {
    display: -webkit-box;
    font-size: 0.84rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .quiet-reading #home .home-search {
    display: none;
  }

  .quiet-reading #home .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 15px;
  }

  .quiet-reading #home .live-pulse small {
    display: none;
  }

  .quiet-reading #home .hero-feature-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
    margin-top: 18px;
    padding: 10px;
  }

  .quiet-reading #home .feature-copy h2 {
    font-size: 1rem;
  }

  .quiet-reading #home .feature-copy > p:not(.eyebrow) {
    -webkit-line-clamp: 1;
  }

  .quiet-reading #home .feature-actions {
    margin-top: 8px;
  }

  .quiet-reading #home .feature-actions .primary-action {
    min-height: 38px;
  }

  .quiet-reading .continue-panel {
    min-height: 66px;
  }

  .quiet-reading .channel-hub > .food-masthead {
    grid-template-columns: minmax(0, 1fr) 104px;
    min-height: 80px;
  }

  .quiet-reading .channel-hub > .food-masthead .section-heading,
  .quiet-reading .channel-hub > .food-masthead > img {
    min-height: 80px;
  }

  .quiet-reading .channel-hub > .food-masthead .section-heading {
    padding: 11px 12px;
  }

  .quiet-reading .home-rank-preview {
    grid-template-columns: minmax(0, 1fr);
  }

  .quiet-reading .home-rank-row:nth-child(2) {
    border-top: 1px solid var(--line);
  }

  .quiet-reading .home-discovery {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .quiet-reading .home-discovery-panel + .home-discovery-panel {
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }

  .quiet-reading .home-mini-shelf {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
  }

  .quiet-reading .home-mini-book strong {
    min-height: 2.7em;
    font-size: 0.72rem;
  }

  .quiet-reading .home-mini-book small {
    font-size: 0.64rem;
  }

  .quiet-reading .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 42;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: calc(62px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    box-shadow: 0 -8px 24px rgba(20, 27, 22, 0.07);
    backdrop-filter: blur(16px);
  }

  .quiet-reading .mobile-nav a {
    display: grid;
    min-height: 48px;
    place-items: center;
    align-content: center;
    gap: 2px;
    border-radius: 4px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
  }

  .quiet-reading .mobile-nav a.active {
    background: var(--bg-soft);
    color: var(--text);
  }

  .quiet-reading .mobile-nav a.active span {
    color: var(--platform-coral);
  }

  .quiet-reading .mobile-nav span {
    font-size: 1rem;
    line-height: 1;
  }
}

@media (max-width: 600px) {
  .quiet-reading #homeNewShelf,
  .quiet-reading #homeCompletedShelf,
  .quiet-reading #homeSeasonShelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
}

/* Keep the editorial list useful beside the taller publication list. */
.quiet-reading .home-board-grid {
  align-items: start;
}
.quiet-reading .home-rank-row {
  grid-template-columns: 24px 60px minmax(0, 1fr);
  min-height: 140px;
  padding: 12px 0;
}
.quiet-reading .home-rank-cover {
  width: 60px;
}
.quiet-reading .home-rank-reason {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  margin-top: 6px;
  color: var(--soft);
  font-size: 0.8rem;
  line-height: 1.5;
  font-weight: 400;
}
@media (max-width: 1000px) {
  .quiet-reading .home-rank-row {
    min-height: 116px;
    grid-template-columns: 22px 48px minmax(0, 1fr);
  }
  .quiet-reading .home-rank-cover { width: 48px; }
}

/* Reader appearance controls and display-only dialogue bubbles. */
.reader-dialog {
  --reader-paper: #fff;
  --reader-ink: #20231f;
  --reader-bubble: #f1f2f3;
  --reader-setting-line: #dce1e8;
  --reader-setting-muted: #727b89;
}
.reader-dialog[data-reader-mode="sepia"] {
  --reader-paper: #f4ebd9;
  --reader-ink: #463a2b;
  --reader-bubble: #e8dcc5;
  --reader-setting-line: #d8cdb8;
  --reader-setting-muted: #786b55;
}
.reader-dialog[data-reader-mode="forest"] {
  --reader-paper: #f1f2ef;
  --reader-ink: #252925;
  --reader-bubble: #e2e5df;
}
.reader-dialog[data-reader-mode="night"] {
  --reader-paper: #171a1d;
  --reader-ink: #e4e7eb;
  --reader-bubble: #2b3036;
  --reader-setting-line: #444b55;
  --reader-setting-muted: #adb6c3;
}
@media (prefers-color-scheme: dark) {
  .reader-dialog[data-reader-mode="auto"] {
    --reader-paper: #171a1d;
    --reader-ink: #e4e7eb;
    --reader-bubble: #2b3036;
    --reader-setting-line: #444b55;
    --reader-setting-muted: #adb6c3;
  }
}
.quiet-reading .reader-dialog[data-reader-mode] .reader-content,
.quiet-reading .reader-dialog .reader-tools-panel {
  background: var(--reader-paper);
  color: var(--reader-ink);
}
.quiet-reading .reader-content > * {
  max-width: min(100%, var(--reader-text-width, 680px));
}
.quiet-reading .reader-dialog.dialogue-bubbles .reader-content > .dialogue-paragraph {
  position: relative;
  width: fit-content;
  margin-inline-start: max(0px, calc((100% - var(--reader-text-width, 680px)) / 2));
  margin-inline-end: auto;
  margin-bottom: 1.35em;
  border-radius: 12px;
  padding: 0.55em 0.8em;
  background: var(--reader-bubble);
  color: inherit;
}
.quiet-reading .reader-dialog.dialogue-bubbles .dialogue-paragraph::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -9px;
  width: 14px;
  height: 12px;
  background: var(--reader-bubble);
  clip-path: polygon(0 0, 100% 0, 12% 100%);
}
.quiet-reading .reader-dialog .reader-tools-panel {
  border-color: var(--reader-setting-line);
}
.quiet-reading .reader-dialog .reader-preferences {
  padding: 18px;
  gap: 20px;
  border-color: var(--reader-setting-line);
  background: transparent;
}
.reader-settings-heading {
  position: sticky;
  top: -18px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -18px -18px 0;
  padding: 14px 18px 10px;
  background: var(--reader-paper);
}
.reader-settings-heading strong { font-size: 1rem; color: var(--reader-setting-muted); }
.reader-settings-heading button {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--reader-setting-muted);
  font-size: 1.65rem;
  line-height: 1;
}
.quiet-reading .reader-dialog .reader-settings-grid { gap: 18px; }
.reader-setting-group { display: grid; gap: 9px; min-width: 0; }
.reader-setting-group > span,
.reader-bubble-setting > span { color: var(--reader-setting-muted); font-size: 0.88rem; }
.reader-choice-row { display: flex; gap: 8px; min-width: 0; }
.reader-choice-row button,
.reader-size-stepper button,
.reader-reset-settings {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--reader-setting-line);
  border-radius: 5px;
  background: var(--reader-paper);
  color: var(--reader-ink);
  font: inherit;
  cursor: pointer;
}
.reader-choice-row button { flex: 1; padding: 8px 4px; font-size: 0.9rem; }
.reader-choice-row button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
}
[data-reader-font="serif"] { font-family: "AppleMyungjo", "Batang", serif !important; }
[data-reader-font="mono"] { font-family: Consolas, monospace !important; }
.reader-size-stepper { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px; }
.reader-size-stepper button { font-size: 1.5rem; }
.reader-size-stepper button:disabled { opacity: 0.4; cursor: default; }
.reader-size-stepper output {
  display: grid;
  place-items: center;
  border: 1px solid var(--reader-setting-line);
  border-radius: 5px;
  background: var(--reader-bubble);
  font-size: 1.15rem;
  font-weight: 700;
}
.reader-bubble-setting { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.reader-switch {
  display: flex;
  align-items: center;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: #89929e;
  cursor: pointer;
}
.reader-switch > span { width: 24px; height: 24px; border-radius: 50%; background: #fff; }
.reader-switch[aria-checked="true"] { background: var(--accent); justify-content: flex-end; }
.reader-reset-settings { width: 100%; color: var(--reader-setting-muted); }
.reader-preferences button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 620px) {
  .reader-choice-row { gap: 6px; }
  .reader-theme-row button { font-size: 0.78rem; }
  .quiet-reading .reader-dialog { width: 100%; max-width: 100%; }
}
