:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #eef3f8;
  --ink: #111827;
  --muted: #667085;
  --line: #d8dee8;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --accent: #e25544;
  --accent-soft: #fff0ed;
  --gold: #c88418;
  --teal: #0f766e;
  --night: #101828;
  --shadow: 0 18px 42px rgba(16, 24, 40, 0.1);
  --radius: 8px;
  --ui-font-size: 14px;
  --reader-font-size: 19px;
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111318;
  --surface: #171b22;
  --surface-strong: #202632;
  --ink: #f4f6fb;
  --muted: #a5afc2;
  --line: #354052;
  --primary: #6d9dff;
  --primary-strong: #8fb4ff;
  --accent: #ff7a66;
  --accent-soft: #35211f;
  --gold: #e1a23a;
  --night: #f4f6fb;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0, #f7f8fb 320px, #edf2f7 100%),
    var(--bg);
  color: var(--ink);
  font-size: var(--ui-font-size);
}

body.is-offline::before {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(200, 132, 24, 0.34);
  border-radius: 8px;
  background: #fff7e8;
  color: #72450f;
  box-shadow: var(--shadow);
  content: "오프라인 상태입니다. 저장된 콘텐츠와 읽기 기록은 계속 사용할 수 있습니다.";
  font-weight: 800;
  line-height: 1.45;
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(180deg, #101318 0, #141821 340px, #0f1218 100%),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(216, 222, 232, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--night), #1f3a8a);
  color: #fff;
  font-weight: 800;
}

.brand strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  --nav-count: 6;
  --active-index: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--nav-count), minmax(0, 1fr));
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6fa;
  isolation: isolate;
  overflow: hidden;
}

.main-nav::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  z-index: 0;
  width: calc((100% - 8px) / var(--nav-count));
  border-radius: 6px;
  background: #101828;
  content: "";
  transform: translateX(calc(var(--active-index) * 100%));
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-nav a {
  position: relative;
  z-index: 1;
  min-width: 58px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: var(--ui-font-size);
  font-weight: 700;
  text-align: center;
  transition: color 0.18s ease;
}

.main-nav a.is-active {
  color: #fff;
}

.point-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 92px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(183, 121, 31, 0.32);
  border-radius: 8px;
  background: #fff7e8;
  color: #72450f;
  font-weight: 800;
}

.coin-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
}

#view {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px) 54px;
  outline: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  height: clamp(520px, 70vh, 660px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.88)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: clamp(24px, 5vw, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #aa3327;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1,
.page-heading h1 {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
  word-break: keep-all;
}

.hero p,
.page-heading p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #475467;
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-media {
  position: relative;
  min-height: 0;
  height: 100%;
  background: var(--night);
  isolation: isolate;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(16, 24, 40, 0.26), rgba(16, 24, 40, 0.04) 34%),
    linear-gradient(0deg, rgba(16, 24, 40, 0.74), rgba(16, 24, 40, 0.02) 58%);
  pointer-events: none;
}

.hero-media-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(16, 24, 40, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-stat-row,
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat,
.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.metric-strip .metric {
  background: rgba(255, 255, 255, 0.48);
}

.stat strong,
.metric strong {
  display: block;
  font-size: 24px;
}

.stat span,
.metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: max(12px, calc(var(--ui-font-size) - 2px));
  font-weight: 700;
}

.section {
  margin-top: 36px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-header h2,
.page-heading h1,
.panel h2,
.admin-title h2 {
  letter-spacing: 0;
}

.section-header h2,
.panel h2,
.admin-title h2 {
  margin: 0;
  font-size: 22px;
}

.section-header p,
.admin-title p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-header.compact {
  margin-bottom: 10px;
}

.reading-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.home-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.reading-card-list {
  display: grid;
  gap: 10px;
}

.reading-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 104px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.reading-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.12);
}

.reading-card img {
  width: 74px;
  height: 84px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-strong);
}

.reading-card strong,
.reading-card small,
.reading-card em {
  display: block;
}

.reading-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reading-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.reading-card em {
  margin-top: 7px;
  color: var(--primary);
  font-style: normal;
  font-weight: 900;
}

.reading-card.accent {
  border-color: rgba(226, 85, 68, 0.38);
  background: linear-gradient(135deg, var(--surface), var(--accent-soft));
}

.reading-card.bookmark {
  border-color: rgba(37, 99, 235, 0.32);
}

.reading-card.release {
  border-color: rgba(15, 118, 110, 0.34);
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--teal) 9%, var(--surface)));
}

.reading-card.preview {
  border-color: rgba(200, 132, 24, 0.4);
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--gold) 12%, var(--surface)));
}

.bookmark-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.mini-progress,
.tile-progress,
.reader-progress-track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.mini-progress {
  margin-top: 8px;
}

.mini-progress span,
.tile-progress span,
.reader-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.content-tile {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.content-tile:hover,
.episode-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.13);
}

.cover-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #dbe4ee;
}

.cover-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.badge-row {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: max(12px, calc(var(--ui-font-size) - 2px));
  font-weight: 700;
}

.badge.light {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.badge.new {
  background: var(--accent);
  color: #fff;
}

.badge.progress {
  background: #e9f8f5;
  color: var(--teal);
}

.badge.favorite {
  background: #fff6d8;
  color: #805b00;
}

.tile-body {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 15px;
}

.tile-kicker {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: max(12px, calc(var(--ui-font-size) - 2px));
  font-weight: 900;
}

.tile-body h3 {
  margin: 0;
  font-size: calc(var(--ui-font-size) + 3px);
  line-height: 1.35;
}

.tile-body p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: max(13px, calc(var(--ui-font-size) - 1px));
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tile-progress {
  margin-top: auto;
}

.tile-progress + .meta-row {
  margin-top: 10px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--muted);
  font-size: max(12px, calc(var(--ui-font-size) - 2px));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: var(--ui-font-size);
  font-weight: 800;
  text-align: center;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  border-color: #b8c2d2;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.1);
}

.btn.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-strong);
}

.btn.accent {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn.accent-soft {
  border-color: rgba(226, 85, 68, 0.34);
  background: var(--accent-soft);
  color: var(--accent);
}

.btn.ghost {
  background: transparent;
}

.btn.small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: max(12px, calc(var(--ui-font-size) - 2px));
}

.btn.icon {
  width: 40px;
  padding: 0;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.page-heading {
  margin-bottom: 24px;
  padding-bottom: 8px;
}

.page-heading > .eyebrow {
  display: none;
}

.library-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin: 8px 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.library-stat {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 11px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.library-stat + .library-stat {
  border-left: 1px solid var(--line);
}

.library-stat strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.library-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 20px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.segmented-control {
  --segment-count: 3;
  --active-index: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--segment-count), minmax(0, 1fr));
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6fa;
  isolation: isolate;
  overflow: hidden;
}

.segmented-control::before,
.setting-segmented::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  z-index: 0;
  width: calc((100% - 8px) / var(--segment-count));
  border-radius: 6px;
  background: #101828;
  content: "";
  transform: translateX(calc(var(--active-index) * 100%));
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.segmented-control button {
  position: relative;
  z-index: 1;
  min-width: 72px;
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: var(--ui-font-size);
  font-weight: 800;
}

.segmented-control button.is-active {
  color: #fff;
}

.select-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--ui-font-size);
  font-weight: 800;
}

.search-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 100%);
  color: var(--muted);
  font-size: var(--ui-font-size);
  font-weight: 800;
}

.search-field input {
  min-width: 0;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}

.select-field select {
  min-height: 38px;
  padding: 8px 34px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.split-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.split-sections .content-grid {
  grid-template-columns: 1fr;
}

.shelf-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shelf-progress-list {
  display: grid;
  gap: 10px;
}

.shelf-progress-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.shelf-progress-item img {
  width: 64px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  object-fit: cover;
}

.shelf-progress-item strong,
.shelf-progress-item small {
  display: block;
}

.shelf-progress-item small,
.shelf-progress-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.series-detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 38px);
  overflow: hidden;
  min-height: 430px;
  margin-bottom: 22px;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    var(--cover-url) center / cover no-repeat,
    var(--surface);
  box-shadow: var(--shadow);
}

.series-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--surface) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.52) 100%);
  backdrop-filter: blur(14px);
}

.feature-cover,
.series-hero-copy {
  position: relative;
  z-index: 1;
}

.feature-cover {
  align-self: stretch;
  position: relative;
  top: auto;
  max-width: 320px;
  width: 100%;
}

.feature-cover img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.series-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.series-hero-copy h1 {
  max-width: 780px;
  margin: 8px 0 12px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
}

.series-hero-copy > p {
  max-width: 760px;
  color: var(--muted);
  font-size: calc(var(--ui-font-size) + 2px);
  line-height: 1.75;
}

.series-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 760px;
  margin: 20px 0 0;
}

.series-meta-grid span {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.series-meta-grid strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.series-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.detail-info-stack {
  display: grid;
  gap: 16px;
}

.detail-info-stack .panel + .panel {
  margin-top: 0;
}

.detail-cover {
  position: sticky;
  top: 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  display: block;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(24, 32, 43, 0.06);
}

.panel.pad {
  padding: clamp(18px, 3vw, 26px);
}

.panel + .panel {
  margin-top: 16px;
}

.point-layout > .panel,
.settings-layout > .panel,
.admin-layout > .panel,
.detail-layout > .panel,
.reader-layout > .panel,
.split-sections > .panel {
  align-self: start;
  margin-top: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f8fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.episode-list {
  display: grid;
  gap: 10px;
}

.episode-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.episode-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--primary);
  font-weight: 900;
}

.episode-row h3 {
  margin: 0;
  font-size: calc(var(--ui-font-size) + 2px);
}

.episode-row p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.episode-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 110px;
}

.episode-tools {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.detail-actions {
  margin-top: 18px;
}

.reading-inline-notice {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  color: var(--accent);
  font-weight: 900;
}

.preview-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(15, 118, 110, 0.08)),
    var(--surface);
  color: var(--muted);
  font-weight: 800;
}

.preview-banner strong {
  color: var(--primary);
}

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

.reaction-pill {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.reaction-pill strong,
.reaction-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reaction-pill span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.reaction-pill.is-active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent);
}

.mini-review-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-review-form textarea {
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}

.mini-review-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-review-list article {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.mini-review-list p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.mini-review-list small,
.muted-copy {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.insight-list div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.insight-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.insight-list strong {
  line-height: 1.45;
}

body.reader-focus .topbar,
body.reader-focus .site-footer {
  display: none;
}

body.reader-focus #view {
  max-width: none;
  padding-top: 12px;
}

body.reader-focus .reader-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
}

.reader-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}

.reader-layout > article {
  min-width: 0;
}

.novel-reader-layout {
  grid-template-columns: minmax(0, 900px) 260px;
  justify-content: center;
}

.reader-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.reader-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.reader-progress {
  display: grid;
  grid-template-columns: 54px minmax(120px, 220px);
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reader-progress-track {
  height: 7px;
}

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

.reader-bottom-nav .btn {
  min-width: 0;
  white-space: normal;
}

.viewer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101828;
}

.webtoon-panel {
  min-height: 500px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: #101828;
  color: #fff;
}

.webtoon-panel img {
  width: 100%;
  display: block;
}

.webtoon-script-card {
  padding: clamp(22px, 5vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(8, 13, 22, 0.98)),
    #111827;
  color: #f8fafc;
}

.webtoon-script-card strong {
  display: block;
  margin-bottom: 14px;
  color: #facc15;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.45;
}

.webtoon-script-card p {
  max-width: 760px;
  margin: 0 0 12px;
  color: #e5e7eb;
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.8;
  word-break: keep-all;
}

.webtoon-script-card p:last-child {
  margin-bottom: 0;
}

.scene-panel {
  display: grid;
  min-height: 560px;
  place-items: center;
  padding: 44px;
  background:
    radial-gradient(circle at 72% 24%, rgba(219, 90, 66, 0.4), transparent 34%),
    linear-gradient(135deg, #0d1b2a, #1d3557 58%, #0b1320);
}

.scene-panel.alt {
  background:
    radial-gradient(circle at 20% 20%, rgba(15, 118, 110, 0.38), transparent 32%),
    linear-gradient(135deg, #1a1a2e, #16213e 56%, #0f172a);
}

.speech {
  max-width: 540px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.45;
}

.novel-reader {
  padding: clamp(22px, 5vw, 64px);
  background: #fffdf8;
  color: #25211b;
  font-family: "Noto Serif KR", "KoPub Batang", Georgia, serif;
  font-size: var(--reader-font-size);
  line-height: 2;
}

.novel-heading {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eadfca;
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.novel-heading span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.novel-heading h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
}

.novel-reader p {
  margin: 0 0 1.4em;
}

.side-panel {
  position: sticky;
  top: 76px;
}

.reader-meta {
  background: #ffffff;
}

@media (orientation: landscape) and (min-width: 900px) {
  .novel-reader-layout {
    grid-template-columns: minmax(0, 920px);
  }

  .novel-reader-layout .reader-meta {
    display: none;
  }
}

.rating-bars {
  display: grid;
  gap: 10px;
}

.rating-line {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe7dd;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.detail-meta-grid span {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta-grid strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 22px;
}

.empty-state,
.locked-state {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.06), transparent 44%),
    var(--surface);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
  text-align: center;
}

.empty-state h2,
.locked-state h2 {
  margin: 0;
}

.empty-state p,
.locked-state p {
  max-width: 520px;
  margin: 10px auto 0;
  color: var(--muted);
  line-height: 1.65;
}

.status-panel {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 300px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, transparent), transparent 46%),
    var(--surface);
  box-shadow: var(--shadow);
}

.status-panel.compact {
  min-height: 220px;
}

.status-visual {
  position: relative;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  overflow: hidden;
}

.status-visual::before,
.status-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}

.status-visual::before {
  width: 78px;
  height: 78px;
  right: -18px;
  top: -14px;
}

.status-visual::after {
  width: 54px;
  height: 54px;
  left: -16px;
  bottom: -14px;
  background: color-mix(in srgb, var(--gold) 26%, transparent);
}

.status-node {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border: 10px solid color-mix(in srgb, var(--primary) 18%, var(--surface));
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 28%, transparent);
}

.status-path {
  position: absolute;
  z-index: 1;
  width: 82px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transform: rotate(-28deg);
  opacity: 0.42;
}

.status-panel .spinner {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
}

.status-copy h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.status-copy p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: calc(var(--ui-font-size) + 1px);
  line-height: 1.7;
}

.status-copy small {
  display: block;
  margin-top: 14px;
  color: color-mix(in srgb, var(--muted) 82%, var(--ink));
  font-weight: 800;
  line-height: 1.55;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.point-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  align-items: start;
}

.settings-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.setting-segmented {
  --segment-count: 3;
  --active-index: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--segment-count), minmax(0, 1fr));
  gap: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6fa;
  isolation: isolate;
  overflow: hidden;
}

.setting-segmented button {
  position: relative;
  z-index: 1;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: var(--ui-font-size);
  font-weight: 800;
}

.setting-segmented button.is-active {
  color: #fff;
}

.setting-value {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ledger {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.ledger-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.ledger-row strong.positive {
  color: var(--primary);
}

.ledger-row strong.negative {
  color: var(--accent);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.admin-tabs button {
  flex: 1 1 130px;
}

.release-sim-card {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 11%, transparent), transparent 58%),
    var(--surface-strong);
}

.release-sim-card strong {
  display: block;
  font-size: max(14px, var(--ui-font-size));
}

.release-sim-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: max(12px, calc(var(--ui-font-size) - 2px));
  font-weight: 700;
  line-height: 1.5;
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.review-item.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent);
}

.review-select {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.review-item h3 {
  margin: 0;
  font-size: 16px;
}

.review-item p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.review-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 0 14px 14px;
}

.review-select.static {
  cursor: default;
}

.quality-summary,
.diff-panel,
.release-ops-panel {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.quality-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.quality-summary strong,
.diff-panel strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.quality-summary p,
.diff-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.quality-summary > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  font-weight: 900;
}

.quality-summary.ok > span {
  background: rgba(15, 118, 110, 0.12);
  color: var(--teal);
}

.quality-summary.fail > span {
  background: rgba(226, 85, 68, 0.14);
  color: var(--accent);
}

.quality-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.diff-panel ul,
.history-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
}

.diff-panel li {
  margin-left: 18px;
  color: var(--muted);
  font-weight: 800;
}

.history-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.history-item strong {
  display: block;
}

.history-item p {
  margin: 5px 0;
  color: var(--muted);
  line-height: 1.5;
}

.history-item small {
  color: var(--muted);
  font-weight: 800;
}

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

.release-timeline {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.release-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.release-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.release-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.upload-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-section {
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
}

.upload-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.compact-header {
  margin-bottom: 12px;
}

.two-col {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: max(13px, calc(var(--ui-font-size) - 1px));
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: var(--ui-font-size);
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.upload-form[data-content-type="novel"] [data-type-field="webtoon"],
.upload-form[data-content-type="webtoon"] [data-type-field="novel"] {
  display: none;
}

.file-drop-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.field label.file-drop-zone {
  min-height: 78px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.file-drop-zone:hover,
.file-drop-zone.is-dragging {
  border-color: var(--primary);
  background: #eef5ff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.1);
}

.file-drop-zone.is-dragging {
  transform: translateY(-1px);
}

.file-drop-title {
  display: block;
  font-weight: 900;
}

.file-drop-summary {
  display: block;
  max-width: 100%;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: max(12px, calc(var(--ui-font-size) - 2px));
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-input::file-selector-button {
  margin-right: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 7px;
  background: var(--night);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.file-clear-button {
  align-self: stretch;
  min-width: 92px;
}

.upload-validation {
  display: block;
}

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

.upload-check {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.upload-check b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 16%, var(--surface));
  color: var(--muted);
  font-weight: 900;
}

.upload-check.ok b {
  background: color-mix(in srgb, var(--teal) 16%, var(--surface));
  color: var(--teal);
}

.upload-check.warn b {
  background: color-mix(in srgb, var(--gold) 22%, var(--surface));
  color: #9a6500;
}

.upload-check strong,
.upload-check small {
  display: block;
}

.upload-check small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.webtoon-upload-preview {
  margin-top: 10px;
}

.webtoon-preview-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.webtoon-preview-header strong {
  color: var(--ink);
  font-size: 14px;
}

.webtoon-preview-group {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.webtoon-preview-group h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.webtoon-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}

.webtoon-upload-thumb {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.webtoon-upload-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  object-fit: cover;
  background: #dbe4ee;
}

.webtoon-upload-thumb > span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.76);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.webtoon-upload-thumb small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webtoon-upload-thumb div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.checkbox-field {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: var(--ui-font-size);
  font-weight: 800;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.check-grid label {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.review-preview {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.review-preview img {
  width: 112px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  object-fit: cover;
  background: #dbe4ee;
}

.review-preview p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-episode-preview {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.episode-preview-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.episode-preview-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
}

.episode-preview-item summary span {
  color: var(--muted);
  font-size: 12px;
}

.episode-preview-item > p {
  margin: 0;
  padding: 0 14px 12px;
  color: var(--muted);
  line-height: 1.55;
}

.novel-preview {
  max-height: min(62vh, 680px);
  overflow: auto;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fffdf8;
  color: #25211b;
  font-family: "Noto Serif KR", "KoPub Batang", Georgia, serif;
  line-height: 1.9;
}

.novel-preview p {
  margin: 0 0 1em;
}

.novel-preview p:last-child {
  margin-bottom: 0;
}

.webtoon-preview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #f8fbff;
}

.webtoon-preview-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  object-fit: cover;
  background: #dbe4ee;
}

.admin-manager {
  display: grid;
  gap: 18px;
  margin-top: 0;
}

.analytics-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.analytics-filters input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.preflight-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.metric-card,
.analytics-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric-card {
  display: grid;
  gap: 4px;
  min-height: 104px;
  padding: 14px;
}

.metric-card strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.metric-card span {
  color: var(--ink);
  font-weight: 900;
}

.metric-card small {
  color: var(--muted);
  line-height: 1.45;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.preflight-policy {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent 54%),
    var(--surface);
}

.preflight-policy strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 22px;
}

.preflight-policy p,
.preflight-policy small {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.preflight-label {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.preflight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.preflight-check,
.preflight-series-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.preflight-check {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.preflight-check h3,
.preflight-series-item h3 {
  margin: 0;
  color: var(--ink);
}

.preflight-check p,
.preflight-series-item p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.preflight-check.pass,
.preflight-series-item.pass {
  border-color: rgba(15, 118, 110, 0.38);
}

.preflight-check.warn,
.preflight-series-item.warn {
  border-color: rgba(200, 132, 24, 0.42);
}

.preflight-check.fail,
.preflight-series-item.fail {
  border-color: rgba(226, 85, 68, 0.48);
}

.preflight-status {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.preflight-check.pass .preflight-status,
.preflight-series-item.pass .preflight-status {
  background: rgba(15, 118, 110, 0.12);
  color: var(--teal);
}

.preflight-check.warn .preflight-status,
.preflight-series-item.warn .preflight-status {
  background: rgba(200, 132, 24, 0.14);
  color: #9a5f0a;
}

.preflight-check.fail .preflight-status,
.preflight-series-item.fail .preflight-status {
  background: rgba(226, 85, 68, 0.15);
  color: var(--accent);
}

.preflight-series {
  display: grid;
  gap: 10px;
}

.preflight-series-item {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.preflight-issues {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preflight-issues li,
.preflight-ok {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.preflight-issues li.fail {
  background: rgba(226, 85, 68, 0.12);
  color: var(--accent);
}

.preflight-issues li.warn {
  background: rgba(200, 132, 24, 0.12);
  color: #8a560c;
}

.analytics-card {
  min-width: 0;
  padding: 14px;
}

.analytics-loading {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(var(--bar-count), minmax(24px, 1fr));
  gap: 8px;
  min-height: 220px;
  overflow-x: auto;
  padding: 10px 0 4px;
}

.bar-group {
  display: grid;
  grid-template-rows: minmax(160px, 1fr) auto;
  gap: 8px;
  min-width: 24px;
  align-items: end;
}

.bar-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  align-items: end;
  height: 160px;
}

.bar-pair span {
  display: block;
  min-height: 4px;
  border-radius: 999px 999px 3px 3px;
  background: var(--primary);
}

.bar-pair span.secondary,
.chart-legend span.secondary {
  background: var(--gold);
}

.bar-group small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.chart-legend span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.table-scroll {
  overflow-x: auto;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 440px;
}

.analytics-table th,
.analytics-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.analytics-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.analytics-table td {
  color: var(--ink);
  font-weight: 800;
}

.analytics-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.metric-list + .metric-list {
  margin-top: 14px;
}

.metric-list h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.metric-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.managed-episode-list {
  display: grid;
  gap: 10px;
}

.managed-episode {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.managed-episode h3 {
  margin: 0;
  font-size: 16px;
}

.managed-episode p {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.5;
}

.compact-actions {
  margin: 0;
  justify-content: flex-end;
}

.empty-state.compact {
  min-height: 0;
  padding: 14px;
}

.policy-copy {
  max-width: 860px;
  line-height: 1.8;
}

.policy-copy h2 {
  margin-top: 28px;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.modal-root.is-open {
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.52);
}

.modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.modal-body {
  padding: 18px;
}

.rating-modal {
  background: var(--surface);
}

.rating-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  margin: 16px 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.rating-summary-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.rating-summary-card strong {
  grid-row: span 2;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #111827, var(--primary));
  color: #fff;
  font-size: 28px;
  line-height: 1;
  text-align: center;
}

.rating-summary-card p {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.score-row {
  --score-percent: 50%;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 86px;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.score-row:last-child {
  border-bottom: 0;
}

.score-row > strong {
  font-size: 14px;
}

.score-control {
  display: grid;
  gap: 8px;
}

.score-control input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  outline: 0;
  background: transparent;
  cursor: pointer;
}

.score-control input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--primary) var(--score-percent), var(--line) var(--score-percent)),
    var(--line);
}

.score-control input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -7px;
  appearance: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}

.score-control input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent), 0 4px 14px rgba(37, 99, 235, 0.32);
}

.score-control input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.score-control input[type="range"]::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
}

.score-control input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}

.score-control input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent), 0 4px 14px rgba(37, 99, 235, 0.32);
}

.score-ticks {
  position: relative;
  height: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.score-ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
}

.score-ticks span:nth-child(1) {
  left: 0;
  transform: translateX(0);
}

.score-ticks span:nth-child(2) {
  left: 25%;
}

.score-ticks span:nth-child(3) {
  left: 50%;
}

.score-ticks span:nth-child(4) {
  left: 75%;
}

.score-ticks span:nth-child(5) {
  left: 100%;
  transform: translateX(-100%);
}

.score-value {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.score-value strong {
  min-width: 42px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.score-value small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--night);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.36);
  backdrop-filter: blur(4px);
}

.busy-overlay.is-visible {
  display: grid;
}

.busy-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(360px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}

.busy-card strong {
  font-size: 17px;
}

.busy-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

:root[data-theme="dark"] .toast {
  border: 1px solid #354052;
  background: #05070a;
  color: #f4f6fb;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: auto;
  padding: 24px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .reader-toolbar {
  background: rgba(23, 27, 34, 0.9);
}

:root[data-theme="dark"] .main-nav,
:root[data-theme="dark"] .segmented-control,
:root[data-theme="dark"] .setting-segmented {
  background: #202632;
}

:root[data-theme="dark"] .brand-mark {
  background: linear-gradient(135deg, #0b1020, #1f3a8a);
}

:root[data-theme="dark"] .point-chip {
  background: #2a2114;
  color: #ffd993;
}

:root[data-theme="dark"] body.is-offline::before {
  border-color: rgba(225, 162, 58, 0.38);
  background: #2a2114;
  color: #ffd993;
}

:root[data-theme="dark"] .main-nav::before,
:root[data-theme="dark"] .segmented-control::before,
:root[data-theme="dark"] .setting-segmented::before {
  background: #05070a;
}

:root[data-theme="dark"] .badge.light {
  background: #273244;
  color: #f4f6fb;
}

:root[data-theme="dark"] .badge.progress {
  background: #173a38;
  color: #8ee6d6;
}

:root[data-theme="dark"] .badge.favorite {
  background: #3b3215;
  color: #ffe39c;
}

:root[data-theme="dark"] .reading-card.accent {
  background: linear-gradient(135deg, rgba(23, 27, 34, 0.92), rgba(53, 33, 31, 0.92));
}

:root[data-theme="dark"] .reading-card.bookmark {
  border-color: rgba(109, 157, 255, 0.35);
}

:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .series-detail-hero,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .content-tile,
:root[data-theme="dark"] .reading-card,
:root[data-theme="dark"] .shelf-progress-item,
:root[data-theme="dark"] .preview-banner,
:root[data-theme="dark"] .reaction-pill,
:root[data-theme="dark"] .mini-review-list article,
:root[data-theme="dark"] .insight-list div,
:root[data-theme="dark"] .webtoon-upload-thumb,
:root[data-theme="dark"] .episode-row,
:root[data-theme="dark"] .empty-state,
:root[data-theme="dark"] .locked-state,
:root[data-theme="dark"] .status-panel,
:root[data-theme="dark"] .review-item,
:root[data-theme="dark"] .analytics-card,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .preflight-check,
:root[data-theme="dark"] .preflight-series-item,
:root[data-theme="dark"] .preflight-policy,
:root[data-theme="dark"] .quality-summary,
:root[data-theme="dark"] .diff-panel,
:root[data-theme="dark"] .release-ops-panel,
:root[data-theme="dark"] .managed-episode,
:root[data-theme="dark"] .episode-preview-item,
:root[data-theme="dark"] .library-toolbar,
:root[data-theme="dark"] .library-stat-row {
  background: rgba(23, 27, 34, 0.92);
}

:root[data-theme="dark"] .empty-state,
:root[data-theme="dark"] .locked-state,
:root[data-theme="dark"] .status-panel {
  background:
    linear-gradient(135deg, rgba(109, 157, 255, 0.1), transparent 46%),
    rgba(23, 27, 34, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .stat,
:root[data-theme="dark"] .metric,
:root[data-theme="dark"] .analytics-filters,
:root[data-theme="dark"] .upload-check,
:root[data-theme="dark"] .webtoon-preview-group,
:root[data-theme="dark"] .library-stat,
:root[data-theme="dark"] .detail-meta-grid span,
:root[data-theme="dark"] .status-visual,
:root[data-theme="dark"] .review-preview,
:root[data-theme="dark"] .webtoon-preview-strip,
:root[data-theme="dark"] .preflight-issues li,
:root[data-theme="dark"] .preflight-ok,
:root[data-theme="dark"] .history-item,
:root[data-theme="dark"] .release-row {
  background: #202632;
}

:root[data-theme="dark"] .preflight-check.warn .preflight-status,
:root[data-theme="dark"] .preflight-series-item.warn .preflight-status,
:root[data-theme="dark"] .preflight-issues li.warn {
  color: #f1bc63;
}

:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea,
:root[data-theme="dark"] .mini-review-form textarea,
:root[data-theme="dark"] .select-field select,
:root[data-theme="dark"] .search-field input,
:root[data-theme="dark"] .analytics-filters input,
:root[data-theme="dark"] .checkbox-field,
:root[data-theme="dark"] .tag {
  background: #11161f;
  color: var(--ink);
}

:root[data-theme="dark"] .field label.file-drop-zone {
  background: #151c27;
}

:root[data-theme="dark"] .file-drop-zone:hover,
:root[data-theme="dark"] .file-drop-zone.is-dragging {
  background: #1f2a3a;
  box-shadow: 0 10px 26px rgba(109, 157, 255, 0.13);
}

:root[data-theme="dark"] .file-input::file-selector-button {
  background: #edf3ff;
  color: #111827;
}

:root[data-theme="dark"] .novel-reader,
:root[data-theme="dark"] .novel-preview {
  background: #fffaf1;
  color: #211d18;
}

:root[data-theme="dark"] .page-heading p,
:root[data-theme="dark"] .hero p {
  color: var(--muted);
}

:root[data-theme="dark"] .series-detail-hero {
  background:
    linear-gradient(90deg, rgba(23, 27, 34, 0.95), rgba(23, 27, 34, 0.74)),
    var(--cover-url) center / cover no-repeat,
    var(--surface);
}

:root[data-theme="dark"] .series-detail-hero::before {
  background: linear-gradient(90deg, rgba(23, 27, 34, 0.98) 0%, rgba(23, 27, 34, 0.86) 48%, rgba(23, 27, 34, 0.6) 100%);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .main-nav a {
    flex: 1 0 auto;
  }

  .hero,
  .series-detail-hero,
  .series-detail-grid,
  .detail-layout,
  .reading-hub,
  .home-ops-grid,
  .reader-layout,
  .point-layout,
  .admin-layout,
  .analytics-grid,
  .settings-layout,
  .upload-form,
  .split-sections {
    grid-template-columns: 1fr;
  }

  .hero {
    height: auto;
  }

  .file-drop-control,
  .managed-episode {
    grid-template-columns: 1fr;
  }

  .feature-cover {
    max-width: 260px;
  }

  .series-meta-grid,
  .upload-checklist,
  .reaction-grid,
  .quality-check-grid,
  .release-ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .file-clear-button {
    min-height: 40px;
  }

  .hero-media {
    order: -1;
    min-height: 380px;
    height: 380px;
  }

  .hero-media img {
    min-height: 0;
  }

  .detail-cover,
  .side-panel {
    position: static;
  }

  .content-grid,
  .metric-strip,
  .analytics-summary,
  .preflight-summary,
  .preflight-grid,
  .analytics-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar {
    grid-template-columns: 1fr;
    padding: 10px 12px;
    gap: 10px;
    overflow: hidden;
  }

  .main-nav {
    display: grid;
    padding: 3px;
    width: 100%;
    max-width: none;
    overflow: hidden;
  }

  .main-nav a {
    min-width: 0;
    padding: 8px 4px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 138px;
  }

  .point-chip {
    display: none;
  }

  #view {
    padding: 16px 12px 36px;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    padding: 22px;
  }

  .hero h1,
  .page-heading h1 {
    font-size: 38px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero p,
  .page-heading p {
    font-size: 15px;
  }

  .hero-stat-row,
  .metric-strip,
  .content-grid,
  .shelf-card-grid,
  .series-meta-grid,
  .upload-checklist,
  .reaction-grid,
  .analytics-summary,
  .preflight-summary,
  .preflight-grid,
  .analytics-filters,
  .check-grid,
  .detail-meta-grid,
  .settings-layout,
  .quality-check-grid,
  .release-ops-grid {
    grid-template-columns: 1fr;
  }

  .release-row {
    grid-template-columns: 1fr;
  }

  .quality-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .preflight-policy {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-stat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
  }

  .library-stat {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 2px;
    font-size: 11px;
  }

  .library-stat strong {
    font-size: 18px;
  }

  .library-toolbar,
  .segmented-control,
  .select-field,
  .search-field {
    width: 100%;
  }

  .segmented-control button {
    flex: 1 1 0;
    min-width: 0;
  }

  .select-field {
    justify-content: space-between;
  }

  .select-field select {
    width: min(210px, 70%);
  }

  .search-field input {
    width: 100%;
  }

  .episode-row,
  .review-item,
  .ledger-row {
    grid-template-columns: 1fr;
  }

  .episode-badges {
    justify-content: flex-start;
  }

  .episode-tools,
  .reader-bottom-nav {
    grid-template-columns: 1fr;
    justify-content: flex-start;
  }

  .review-preview {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .review-preview img {
    width: 78px;
  }

  .webtoon-preview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .episode-number {
    width: 38px;
    height: 34px;
  }

  .reader-toolbar {
    position: static;
  }

  .reader-progress {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .status-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px;
  }

  .status-visual {
    width: 96px;
    height: 96px;
  }

  .status-copy h2 {
    font-size: 25px;
  }

  .score-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .score-value {
    justify-items: start;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 8px;
  }
}
