/* Generated by build.rs from assets/sass/reader.scss (grass) — do not edit. */
:root {
  --bg: #fff6d5;
  --bg-soft: #ffffff;
  --text: #000000;
  --text-muted: #57574b;
  --border: #ffeeaa;
  --primary: #ffe680;
  --primary-hover: #ffeeaa;
  --primary-soft: #ffeeaa;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --max: 1120px;
  --max-wide: 1720px;
  --max-prose: 70ch;
  --header-h: 56px;
}

[data-theme=dark] {
  --bg: #0e0e10;
  --bg-soft: #1a1a1e;
  --text: #f2f2f3;
  --text-muted: #a1a1aa;
  --border: #2a2a2e;
  --primary: #ffe680;
  --primary-hover: #ffe680;
  --primary-soft: #ffe680;
}

:root {
  --bg: #fff6d5;
  --bg-soft: #ffffff;
  --text: #000000;
  --text-muted: #57574b;
  --border: #ffeeaa;
  --primary: #ffe680;
  --primary-hover: #ffeeaa;
  --primary-soft: #ffeeaa;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --max: 1120px;
  --max-wide: 1720px;
  --max-prose: 70ch;
  --header-h: 56px;
}

[data-theme=dark] {
  --bg: #0e0e10;
  --bg-soft: #1a1a1e;
  --text: #f2f2f3;
  --text-muted: #a1a1aa;
  --border: #2a2a2e;
  --primary: #ffe680;
  --primary-hover: #ffe680;
  --primary-soft: #ffe680;
}

.m-1 {
  margin: 0.25rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.mx-1 {
  margin-right: 0.25rem;
  margin-left: 0.25rem;
}

.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.p-1 {
  padding: 0.25rem;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pr-1 {
  padding-right: 0.25rem;
}

.pb-1 {
  padding-bottom: 0.25rem;
}

.pl-1 {
  padding-left: 0.25rem;
}

.px-1 {
  padding-right: 0.25rem;
  padding-left: 0.25rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.m-2 {
  margin: 0.375rem;
}

.mt-2 {
  margin-top: 0.375rem;
}

.mr-2 {
  margin-right: 0.375rem;
}

.mb-2 {
  margin-bottom: 0.375rem;
}

.ml-2 {
  margin-left: 0.375rem;
}

.mx-2 {
  margin-right: 0.375rem;
  margin-left: 0.375rem;
}

.my-2 {
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
}

.p-2 {
  padding: 0.375rem;
}

.pt-2 {
  padding-top: 0.375rem;
}

.pr-2 {
  padding-right: 0.375rem;
}

.pb-2 {
  padding-bottom: 0.375rem;
}

.pl-2 {
  padding-left: 0.375rem;
}

.px-2 {
  padding-right: 0.375rem;
  padding-left: 0.375rem;
}

.py-2 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.m-3 {
  margin: 0.5rem;
}

.mt-3 {
  margin-top: 0.5rem;
}

.mr-3 {
  margin-right: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.5rem;
}

.ml-3 {
  margin-left: 0.5rem;
}

.mx-3 {
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}

.my-3 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.p-3 {
  padding: 0.5rem;
}

.pt-3 {
  padding-top: 0.5rem;
}

.pr-3 {
  padding-right: 0.5rem;
}

.pb-3 {
  padding-bottom: 0.5rem;
}

.pl-3 {
  padding-left: 0.5rem;
}

.px-3 {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

.py-3 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.m-4 {
  margin: 0.625rem;
}

.mt-4 {
  margin-top: 0.625rem;
}

.mr-4 {
  margin-right: 0.625rem;
}

.mb-4 {
  margin-bottom: 0.625rem;
}

.ml-4 {
  margin-left: 0.625rem;
}

.mx-4 {
  margin-right: 0.625rem;
  margin-left: 0.625rem;
}

.my-4 {
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
}

.p-4 {
  padding: 0.625rem;
}

.pt-4 {
  padding-top: 0.625rem;
}

.pr-4 {
  padding-right: 0.625rem;
}

.pb-4 {
  padding-bottom: 0.625rem;
}

.pl-4 {
  padding-left: 0.625rem;
}

.px-4 {
  padding-right: 0.625rem;
  padding-left: 0.625rem;
}

.py-4 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.m-5 {
  margin: 0.75rem;
}

.mt-5 {
  margin-top: 0.75rem;
}

.mr-5 {
  margin-right: 0.75rem;
}

.mb-5 {
  margin-bottom: 0.75rem;
}

.ml-5 {
  margin-left: 0.75rem;
}

.mx-5 {
  margin-right: 0.75rem;
  margin-left: 0.75rem;
}

.my-5 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.p-5 {
  padding: 0.75rem;
}

.pt-5 {
  padding-top: 0.75rem;
}

.pr-5 {
  padding-right: 0.75rem;
}

.pb-5 {
  padding-bottom: 0.75rem;
}

.pl-5 {
  padding-left: 0.75rem;
}

.px-5 {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.py-5 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.m-6 {
  margin: 0.875rem;
}

.mt-6 {
  margin-top: 0.875rem;
}

.mr-6 {
  margin-right: 0.875rem;
}

.mb-6 {
  margin-bottom: 0.875rem;
}

.ml-6 {
  margin-left: 0.875rem;
}

.mx-6 {
  margin-right: 0.875rem;
  margin-left: 0.875rem;
}

.my-6 {
  margin-top: 0.875rem;
  margin-bottom: 0.875rem;
}

.p-6 {
  padding: 0.875rem;
}

.pt-6 {
  padding-top: 0.875rem;
}

.pr-6 {
  padding-right: 0.875rem;
}

.pb-6 {
  padding-bottom: 0.875rem;
}

.pl-6 {
  padding-left: 0.875rem;
}

.px-6 {
  padding-right: 0.875rem;
  padding-left: 0.875rem;
}

.py-6 {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.m-7 {
  margin: 1rem;
}

.mt-7 {
  margin-top: 1rem;
}

.mr-7 {
  margin-right: 1rem;
}

.mb-7 {
  margin-bottom: 1rem;
}

.ml-7 {
  margin-left: 1rem;
}

.mx-7 {
  margin-right: 1rem;
  margin-left: 1rem;
}

.my-7 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.p-7 {
  padding: 1rem;
}

.pt-7 {
  padding-top: 1rem;
}

.pr-7 {
  padding-right: 1rem;
}

.pb-7 {
  padding-bottom: 1rem;
}

.pl-7 {
  padding-left: 1rem;
}

.px-7 {
  padding-right: 1rem;
  padding-left: 1rem;
}

.py-7 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.m-8 {
  margin: 1.25rem;
}

.mt-8 {
  margin-top: 1.25rem;
}

.mr-8 {
  margin-right: 1.25rem;
}

.mb-8 {
  margin-bottom: 1.25rem;
}

.ml-8 {
  margin-left: 1.25rem;
}

.mx-8 {
  margin-right: 1.25rem;
  margin-left: 1.25rem;
}

.my-8 {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.p-8 {
  padding: 1.25rem;
}

.pt-8 {
  padding-top: 1.25rem;
}

.pr-8 {
  padding-right: 1.25rem;
}

.pb-8 {
  padding-bottom: 1.25rem;
}

.pl-8 {
  padding-left: 1.25rem;
}

.px-8 {
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}

.py-8 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.m-9 {
  margin: 1.5rem;
}

.mt-9 {
  margin-top: 1.5rem;
}

.mr-9 {
  margin-right: 1.5rem;
}

.mb-9 {
  margin-bottom: 1.5rem;
}

.ml-9 {
  margin-left: 1.5rem;
}

.mx-9 {
  margin-right: 1.5rem;
  margin-left: 1.5rem;
}

.my-9 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.p-9 {
  padding: 1.5rem;
}

.pt-9 {
  padding-top: 1.5rem;
}

.pr-9 {
  padding-right: 1.5rem;
}

.pb-9 {
  padding-bottom: 1.5rem;
}

.pl-9 {
  padding-left: 1.5rem;
}

.px-9 {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.py-9 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.m-10 {
  margin: 1.75rem;
}

.mt-10 {
  margin-top: 1.75rem;
}

.mr-10 {
  margin-right: 1.75rem;
}

.mb-10 {
  margin-bottom: 1.75rem;
}

.ml-10 {
  margin-left: 1.75rem;
}

.mx-10 {
  margin-right: 1.75rem;
  margin-left: 1.75rem;
}

.my-10 {
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.p-10 {
  padding: 1.75rem;
}

.pt-10 {
  padding-top: 1.75rem;
}

.pr-10 {
  padding-right: 1.75rem;
}

.pb-10 {
  padding-bottom: 1.75rem;
}

.pl-10 {
  padding-left: 1.75rem;
}

.px-10 {
  padding-right: 1.75rem;
  padding-left: 1.75rem;
}

.py-10 {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.m-11 {
  margin: 2rem;
}

.mt-11 {
  margin-top: 2rem;
}

.mr-11 {
  margin-right: 2rem;
}

.mb-11 {
  margin-bottom: 2rem;
}

.ml-11 {
  margin-left: 2rem;
}

.mx-11 {
  margin-right: 2rem;
  margin-left: 2rem;
}

.my-11 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.p-11 {
  padding: 2rem;
}

.pt-11 {
  padding-top: 2rem;
}

.pr-11 {
  padding-right: 2rem;
}

.pb-11 {
  padding-bottom: 2rem;
}

.pl-11 {
  padding-left: 2rem;
}

.px-11 {
  padding-right: 2rem;
  padding-left: 2rem;
}

.py-11 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.m-12 {
  margin: 2.5rem;
}

.mt-12 {
  margin-top: 2.5rem;
}

.mr-12 {
  margin-right: 2.5rem;
}

.mb-12 {
  margin-bottom: 2.5rem;
}

.ml-12 {
  margin-left: 2.5rem;
}

.mx-12 {
  margin-right: 2.5rem;
  margin-left: 2.5rem;
}

.my-12 {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.p-12 {
  padding: 2.5rem;
}

.pt-12 {
  padding-top: 2.5rem;
}

.pr-12 {
  padding-right: 2.5rem;
}

.pb-12 {
  padding-bottom: 2.5rem;
}

.pl-12 {
  padding-left: 2.5rem;
}

.px-12 {
  padding-right: 2.5rem;
  padding-left: 2.5rem;
}

.py-12 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.m-0 {
  margin: 0;
}

.mt-0 {
  margin-top: 0;
}

.mr-0 {
  margin-right: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.ml-0 {
  margin-left: 0;
}

.mx-0 {
  margin-right: 0;
  margin-left: 0;
}

.my-0 {
  margin-top: 0;
  margin-bottom: 0;
}

.p-0 {
  padding: 0;
}

.pt-0 {
  padding-top: 0;
}

.pr-0 {
  padding-right: 0;
}

.pb-0 {
  padding-bottom: 0;
}

.pl-0 {
  padding-left: 0;
}

.px-0 {
  padding-right: 0;
  padding-left: 0;
}

.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.375rem;
}

.gap-3 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 0.625rem;
}

.gap-5 {
  gap: 0.75rem;
}

.gap-6 {
  gap: 0.875rem;
}

.gap-7 {
  gap: 1rem;
}

.gap-8 {
  gap: 1.25rem;
}

.gap-9 {
  gap: 1.5rem;
}

.gap-10 {
  gap: 1.75rem;
}

.gap-11 {
  gap: 2rem;
}

.gap-12 {
  gap: 2.5rem;
}

.fs-65 {
  font-size: 0.65rem;
}

.fs-70 {
  font-size: 0.7rem;
}

.fs-72 {
  font-size: 0.72rem;
}

.fs-75 {
  font-size: 0.75rem;
}

.fs-78 {
  font-size: 0.78rem;
}

.fs-80 {
  font-size: 0.8rem;
}

.fs-82 {
  font-size: 0.82rem;
}

.fs-85 {
  font-size: 0.85rem;
}

.fs-90 {
  font-size: 0.9rem;
}

.fs-95 {
  font-size: 0.95rem;
}

.fs-100 {
  font-size: 1rem;
}

.fs-110 {
  font-size: 1.1rem;
}

.fs-115 {
  font-size: 1.15rem;
}

.fs-120 {
  font-size: 1.2rem;
}

.fs-140 {
  font-size: 1.4rem;
}

.fs-145 {
  font-size: 1.45rem;
}

.fs-150 {
  font-size: 1.5rem;
}

.fs-180 {
  font-size: 1.8rem;
}

.fs-200 {
  font-size: 2rem;
}

.fs-260 {
  font-size: 2.6rem;
}

.fs-300 {
  font-size: 3rem;
}

.fw-normal {
  font-weight: 400;
}

.fw-medium {
  font-weight: 500;
}

.fw-semi {
  font-weight: 600;
}

.fw-bold {
  font-weight: 700;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-end {
  text-align: end;
}

.lh-tight {
  line-height: 1.25;
}

.lh-snug {
  line-height: 1.4;
}

.lh-normal {
  line-height: 1.6;
}

.font-sans {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.font-serif {
  font-family: Literata, "Source Serif 4", Georgia, serif;
}

.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.capitalize {
  text-transform: capitalize;
}

.underline {
  text-decoration: underline;
}

.no-underline {
  text-decoration: none;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pre-wrap {
  white-space: pre-wrap;
}

.break-all {
  word-break: break-all;
}

.break-words {
  overflow-wrap: break-word;
}

.italic {
  font-style: italic;
}

.nowrap {
  white-space: nowrap;
}

.text {
  color: var(--text);
}

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

.text-inverse {
  color: var(--bg);
}

.text-primary {
  color: var(--primary);
}

.text-green {
  color: #166534;
}

.text-amber {
  color: #92400e;
}

.text-red {
  color: #991b1b;
}

.text-blue {
  color: #1e40af;
}

.text-gray {
  color: #374151;
}

.text-green-bright {
  color: #16a34a;
}

.text-red-bright {
  color: #dc2626;
}

.text-blue-bright {
  color: #2563eb;
}

.bg {
  background: var(--bg);
}

.bg-soft {
  background: var(--bg-soft);
}

.bg-transparent {
  background: transparent;
}

.bg-surface {
  background: #fff;
}

.bg-subtle {
  background: #f9fafb;
}

.bg-muted {
  background: #f3f4f6;
}

.bg-green {
  background: #dcfce7;
}

.bg-green-light {
  background: #f0fdf4;
}

.bg-amber {
  background: #fef3c7;
}

.bg-red {
  background: #fef2f2;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-auto {
  margin-top: auto;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.border-default {
  border: 1px solid var(--border);
}

.border-t-default {
  border-top: 1px solid var(--border);
}

.border-b-default {
  border-bottom: 1px solid var(--border);
}

.border-l-default {
  border-left: 1px solid var(--border);
}

.border-r-default {
  border-right: 1px solid var(--border);
}

.border-light {
  border: 1px solid #eee;
}

.border-t-light {
  border-top: 1px solid #eee;
}

.border-b-light {
  border-bottom: 1px solid #eee;
}

.border-l-light {
  border-left: 1px solid #eee;
}

.border-r-light {
  border-right: 1px solid #eee;
}

.border-warm {
  border: 1px solid #f0f0e8;
}

.border-t-warm {
  border-top: 1px solid #f0f0e8;
}

.border-b-warm {
  border-bottom: 1px solid #f0f0e8;
}

.border-l-warm {
  border-left: 1px solid #f0f0e8;
}

.border-r-warm {
  border-right: 1px solid #f0f0e8;
}

.border-gray {
  border: 1px solid #e5e7eb;
}

.border-t-gray {
  border-top: 1px solid #e5e7eb;
}

.border-b-gray {
  border-bottom: 1px solid #e5e7eb;
}

.border-l-gray {
  border-left: 1px solid #e5e7eb;
}

.border-r-gray {
  border-right: 1px solid #e5e7eb;
}

.border-green {
  border: 1px solid #bbf7d0;
}

.border-t-green {
  border-top: 1px solid #bbf7d0;
}

.border-b-green {
  border-bottom: 1px solid #bbf7d0;
}

.border-l-green {
  border-left: 1px solid #bbf7d0;
}

.border-r-green {
  border-right: 1px solid #bbf7d0;
}

.border-amber {
  border: 1px solid #fde68a;
}

.border-t-amber {
  border-top: 1px solid #fde68a;
}

.border-b-amber {
  border-bottom: 1px solid #fde68a;
}

.border-l-amber {
  border-left: 1px solid #fde68a;
}

.border-r-amber {
  border-right: 1px solid #fde68a;
}

.border-red {
  border: 1px solid #fecaca;
}

.border-t-red {
  border-top: 1px solid #fecaca;
}

.border-b-red {
  border-bottom: 1px solid #fecaca;
}

.border-l-red {
  border-left: 1px solid #fecaca;
}

.border-r-red {
  border-right: 1px solid #fecaca;
}

.border-strong {
  border: 1px solid var(--border);
  border-bottom-width: 2px;
}

.r-sm {
  border-radius: 4px;
}

.r-md {
  border-radius: 8px;
}

.r-lg {
  border-radius: 12px;
}

.r-full {
  border-radius: 999px;
}

.block {
  display: block;
}

.inline {
  display: inline;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.items-start {
  align-items: flex-start;
}

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

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.items-end {
  align-items: flex-end;
}

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

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

.justify-stretch {
  justify-content: stretch;
}

.items-baseline {
  align-items: baseline;
}

.justify-baseline {
  justify-content: baseline;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1;
}

.flex-none {
  flex: none;
}

.shrink-0 {
  flex-shrink: 0;
}

.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

.h-auto {
  height: auto;
}

.min-w-0 {
  min-width: 0;
}

.min-w-120 {
  min-width: 120px;
}

.min-w-140 {
  min-width: 140px;
}

.min-w-150 {
  min-width: 150px;
}

.min-w-200 {
  min-width: 200px;
}

.min-w-220 {
  min-width: 220px;
}

.min-w-480 {
  min-width: 480px;
}

.max-w-100 {
  max-width: 100%;
}

.max-w-400 {
  max-width: 400px;
}

.max-w-480 {
  max-width: 480px;
}

.max-w-520 {
  max-width: 520px;
}

.max-w-640 {
  max-width: 640px;
}

.max-w-700 {
  max-width: 700px;
}

.max-w-720 {
  max-width: 720px;
}

.max-w-800 {
  max-width: 800px;
}

.max-w-960 {
  max-width: 960px;
}

.max-w-1120 {
  max-width: 1120px;
}

.w-64 {
  width: 64px;
}

.w-80 {
  width: 80px;
}

.w-120 {
  width: 120px;
}

.w-150 {
  width: 150px;
}

.w-160 {
  width: 160px;
}

.w-180 {
  width: 180px;
}

.w-220 {
  width: 220px;
}

.w-240 {
  width: 240px;
}

.w-480 {
  width: 480px;
}

.h-8 {
  height: 8px;
}

.h-24 {
  height: 24px;
}

.h-28 {
  height: 28px;
}

.h-32 {
  height: 32px;
}

.h-64 {
  height: 64px;
}

.h-120 {
  height: 120px;
}

.h-180 {
  height: 180px;
}

.h-200 {
  height: 200px;
}

.h-320 {
  height: 320px;
}

.h-400 {
  height: 400px;
}

.h-480 {
  height: 480px;
}

.overflow-auto {
  overflow: auto;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-help {
  cursor: help;
}

.cursor-default {
  cursor: default;
}

.pointer-events-none {
  pointer-events: none;
}

.select-none {
  user-select: none;
}

.resize-none {
  resize: none;
}

.align-middle {
  vertical-align: middle;
}

.list-none {
  list-style: none;
}

.list-inside {
  list-style-position: inside;
}

.table-auto {
  table-layout: auto;
}

.table-fixed {
  table-layout: fixed;
}

.table-collapse {
  border-collapse: collapse;
}

.resize-vertical {
  resize: vertical;
}

.episode-note {
  color: var(--color-text-muted, currentColor);
  font-size: 0.875em;
  font-style: italic;
}

:root {
  --color-bg: #0e0e10;
  --color-bg-elevated: #1a1a1e;
  --color-bg-soft: #2a2a2e;
  --color-text: #f2f2f3;
  --color-text-muted: #a1a1aa;
  --color-border: #2a2a2e;
  --color-accent: #ffe680;
  --color-accent-hover: #ffeeaa;
  --color-progress: #ffe680;
  --bg: #0e0e10;
  --bg-soft: #2a2a2e;
  --text: #f2f2f3;
  --text-muted: #a1a1aa;
  --border: #2a2a2e;
  --primary: #ffe680;
  --primary-hover: #ffeeaa;
  --primary-soft: #ffeeaa;
  --font-sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Literata, Source Serif 4, Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --reader-font-size: 18px;
  --reader-line-height: 1.7;
  --reader-max-width: 720px;
  --reader-page-max: 860px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --header-h: 56px;
  --max: 1120px;
}

[data-theme=light] {
  --color-bg: #fff6d5;
  --color-bg-elevated: #ffffff;
  --color-bg-soft: #ffffff;
  --color-text: #000000;
  --color-text-muted: #57574b;
  --color-border: #ffeeaa;
  --color-accent: #ffe680;
  --color-accent-hover: #ffeeaa;
  --color-progress: #ffe680;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --bg: #fff6d5;
  --bg-soft: #ffffff;
  --text: #000000;
  --text-muted: #57574b;
  --border: #ffeeaa;
  --primary: #ffe680;
  --primary-hover: #ffeeaa;
  --primary-soft: #ffeeaa;
}

[data-theme=sepia] {
  --color-bg: #f6f1e7;
  --color-bg-elevated: #fffaf0;
  --color-bg-soft: #ede6d6;
  --color-text: #3d2e1f;
  --color-text-muted: #8a7a67;
  --color-border: #d9cfb8;
  --color-accent: #ffe680;
  --color-accent-hover: #ffeeaa;
  --color-progress: #ffe680;
  --bg: #f6f1e7;
  --bg-soft: #ede6d6;
  --text: #3d2e1f;
  --text-muted: #8a7a67;
  --border: #d9cfb8;
  --primary: #ffe680;
  --primary-hover: #ffeeaa;
  --primary-soft: #ffeeaa;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar,
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: #000;
  color: #fff6d5;
  border-bottom: 1px solid #000;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.brand,
.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #fff6d5;
  text-decoration: none;
}
.brand span,
.logo span {
  color: var(--primary);
}
.brand img,
.logo img {
  height: 28px;
  width: auto;
  vertical-align: middle;
  margin-right: 6px;
  display: inline-block;
}
.brand:hover,
.logo:hover {
  color: var(--primary);
  text-decoration: none;
}

.episode-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.episode-title {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 32ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.license-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--color-bg-soft);
  color: var(--color-text-muted);
  vertical-align: middle;
  white-space: nowrap;
}
.license-badge[hidden] {
  display: none;
}
.license-badge.license-pd {
  background: #ffe680;
  color: #000;
}
.license-badge.license-cc0 {
  background: #e8f5e9;
  color: #1b5e20;
}
.license-badge.license-ccby {
  background: #e3f2fd;
  color: #0d47a1;
}
.license-badge.license-ccbysa {
  background: #fce4ec;
  color: #880e4f;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn,
.reader__btn {
  appearance: none;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
}
.btn:hover,
.reader__btn:hover {
  border-color: var(--color-text-muted);
}
.btn:disabled,
.reader__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.reader__btn--ghost {
  background: transparent;
}

.reader__btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #000;
}
.reader__btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #000;
}

.settings {
  position: relative;
}
.settings__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: none;
}
.settings__panel.is-open {
  display: block;
}
.settings__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.settings__row:last-child {
  margin-bottom: 0;
}
.settings__label {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  font-weight: 600;
}
.settings__control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.settings__control button {
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
}

.theme-dots {
  display: flex;
  gap: 0.35rem;
}

.theme-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  cursor: pointer;
}
.theme-dot[data-theme=dark] {
  background: #0e0e10;
}
.theme-dot[data-theme=light] {
  background: #fff6d5;
}
.theme-dot[data-theme=sepia] {
  background: #f6f1e7;
}
.theme-dot.is-active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 25%, transparent);
}

.main {
  flex: 1;
  display: grid;
  place-items: start center;
  padding: 0 0 2rem;
}

.reader {
  width: 100%;
  outline: none;
}
.reader:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-accent);
}

.reader__empty {
  max-width: var(--reader-max-width);
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-bg-elevated);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
}

.reader__error {
  padding: 1rem;
  text-align: center;
  color: #ff8a7a;
  font-size: 0.88rem;
}

.reader--scroll .reader__scroll-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.reader--scroll .reader__page--scroll {
  margin: 0;
  width: 100%;
  max-width: var(--reader-page-max);
  line-height: 0;
}
.reader--scroll .reader__page--scroll .reader__image {
  width: 100%;
  height: auto;
  display: block;
}

.reader__caption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
}

.reader__header {
  max-width: var(--reader-page-max);
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1rem 0.5rem;
}
.reader__header .reader__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.reader__end {
  padding: 2.5rem 1rem;
  text-align: center;
}
.reader__end .reader__end-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.reader--page {
  display: grid;
  place-items: center;
  padding: 1rem 0.75rem 0;
}
.reader--page .reader__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: var(--reader-page-max);
  min-height: min(78dvh, 900px);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.reader--page .reader__page--single {
  margin: 0;
  width: 100%;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.reader--page .reader__page--single.is-enter {
  opacity: 1;
  transform: none;
}
.reader--page .reader__page--single.is-loaded .reader__image--page {
  filter: none;
}
.reader--page .reader__image--page {
  max-width: 100%;
  max-height: 76dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: blur(6px);
  transition: filter 200ms ease;
}
.reader--page .reader__hitarea {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}
.reader--page .reader__hitarea--prev {
  left: 0;
}
.reader--page .reader__hitarea--next {
  right: 0;
}
.reader--page .reader__hitarea:disabled {
  cursor: default;
  opacity: 0;
}

.reader__counter {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.reader--prose {
  padding: 1rem 1rem 0;
}
.reader--prose .reader__prose {
  max-width: var(--reader-max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: var(--reader-font-size);
  line-height: var(--reader-line-height);
  color: var(--color-text);
}
.reader--prose .reader__prose-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  line-height: 1.2;
}
.reader--prose .reader__prose p {
  margin: 0 0 1.1em;
}
.reader--prose .reader__prose p:last-child {
  margin-bottom: 0;
}
.reader--prose .reader__prose-block {
  max-width: var(--reader-max-width);
  margin: 0 auto 1.5rem;
  padding: 1.25rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: var(--reader-font-size);
  line-height: var(--reader-line-height);
  white-space: pre-wrap;
}
.reader--prose .reader__prose-nav {
  max-width: var(--reader-max-width);
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.reader--prose .reader__prose-indicator {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.reader__progress {
  max-width: var(--reader-page-max);
  width: 100%;
  height: 3px;
  margin: 0.75rem auto 0;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}
.reader--prose .reader__progress {
  max-width: var(--reader-max-width);
}
.reader__progress-bar {
  height: 100%;
  background: var(--color-progress);
  transition: width 200ms ease;
}

.ad-rails {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 14;
  height: 0;
  overflow: visible;
}
.ad-rails[aria-hidden=true] {
  visibility: hidden;
}

.ad-rail {
  pointer-events: auto;
  width: 300px;
  height: 250px;
  min-height: 250px;
  margin: 0 12px;
  padding: 8px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.ad-rail[hidden] {
  display: none !important;
}
.ad-rail--left {
  margin-right: auto;
}
.ad-rail--right {
  margin-left: auto;
}

.ad-rail__placeholder,
.ad-anchor__placeholder {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.ad-anchor {
  position: sticky;
  bottom: 56px;
  left: 0;
  right: 0;
  z-index: 13;
  display: none;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  padding: 8px 12px;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}
.ad-anchor[hidden] {
  display: none !important;
}
.ad-anchor.is-visible {
  display: flex;
}

@media (max-width: 1399px) {
  .ad-rails {
    display: none !important;
  }

  .ad-rail {
    display: none !important;
  }

  .ad-anchor {
    display: block;
    min-height: 60px;
  }
  .ad-anchor[hidden] {
    display: none !important;
  }
}
@media (min-width: 1400px) {
  :root {
    --reader-page-max: min(860px, calc(100vw - 672px));
  }

  .ad-rail {
    display: block;
    width: 300px;
    height: 250px;
    min-height: 250px;
  }

  .ad-anchor {
    display: none !important;
  }

  .ad-anchor.is-visible {
    display: none !important;
  }

  .ad-rails {
    display: flex;
  }
}
.bottombar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
}
.bottombar__center {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.reader__edit-fab {
  position: fixed;
  right: 1.25rem;
  bottom: calc(3.25rem + 16px);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  background: var(--primary, var(--color-accent));
  color: var(--bg, #000);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms, background 150ms ease;
}
.reader__edit-fab[hidden] {
  display: none;
}
.reader__edit-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.reader__edit-fab:hover {
  background: var(--primary-hover, var(--color-accent-hover));
  color: var(--bg, #000);
  text-decoration: none;
}
.reader__edit-fab:focus-visible {
  outline: 2px solid var(--primary, var(--color-accent));
  outline-offset: 2px;
}

.reader__edit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--primary, var(--color-accent));
  color: var(--bg, #000);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--primary, var(--color-accent));
  white-space: nowrap;
}
.reader__edit-link[hidden] {
  display: none !important;
}
.reader__edit-link:hover {
  background: var(--primary-hover, var(--color-accent-hover));
  border-color: var(--primary-hover, var(--color-accent-hover));
  color: var(--bg, #000);
  text-decoration: none;
}
.reader__edit-link:focus-visible {
  outline: 2px solid var(--primary, var(--color-accent));
  outline-offset: 2px;
}

.chapter-nav {
  position: sticky;
  bottom: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-soft, var(--color-bg-elevated));
  border-top: 1px solid var(--border, var(--color-border));
}
.chapter-nav[hidden] {
  display: none !important;
}
.chapter-nav__link {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  max-width: 38%;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.2;
}
.chapter-nav__link:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
  text-decoration: none;
}
.chapter-nav__link[hidden] {
  display: none !important;
}
.chapter-nav__link--prev {
  align-items: flex-start;
}
.chapter-nav__link--next {
  align-items: flex-end;
  margin-left: auto;
}
.chapter-nav__link__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.chapter-nav__link__title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.chapter-nav__list-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.chapter-nav__cta {
  white-space: nowrap;
}
.chapter-nav__cta[hidden] {
  display: none !important;
}

.episode-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
}
.episode-drawer[hidden] {
  display: none !important;
}
.episode-drawer[aria-hidden=true] {
  visibility: hidden;
  pointer-events: none;
}
.episode-drawer[aria-hidden=false] {
  visibility: visible;
  pointer-events: auto;
}
.episode-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}
.episode-drawer__panel {
  position: relative;
  margin-top: auto;
  max-height: 72dvh;
  background: var(--bg-soft, var(--color-bg-elevated));
  border-top: 1px solid var(--border, var(--color-border));
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}
.episode-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.episode-drawer__header__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.episode-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.episode-drawer__item {
  margin: 0;
}
.episode-drawer__item__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.episode-drawer__item__link:hover {
  background: var(--color-bg-soft);
  text-decoration: none;
  color: var(--color-text);
}
.episode-drawer__item__link.is-active {
  background: color-mix(in srgb, var(--primary, var(--color-accent)) 12%, var(--bg-soft, var(--color-bg-elevated)));
  border-left-color: var(--primary, var(--color-accent));
  font-weight: 700;
}
.episode-drawer__item__title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.88rem;
}
.episode-drawer__item__meta {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.reader__comments {
  width: 100%;
  max-width: var(--reader-max-width);
  margin: 2rem auto 0;
  padding: 0 1rem 1rem;
}
.reader__comments-inner {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.reader__comments-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.comments__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 2rem;
}

.comment__empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.comment {
  padding: 0.9rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.comment__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.comment__author {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
}
.comment__date {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.comment__body {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text);
  white-space: pre-wrap;
  word-break: break-word;
}
.comment__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.comment__actions .btn {
  font-size: 0.76rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}
.comment__delete {
  color: #ff8a7a;
  border-color: color-mix(in srgb, #ff8a7a 35%, var(--color-border));
}
.comment__delete:hover {
  background: color-mix(in srgb, #ff8a7a 10%, var(--color-bg));
  border-color: #ff8a7a;
}
.comment__vote {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 0.25rem;
}
.comment__vote-btn {
  min-width: 1.7rem;
  line-height: 1.2;
}
.comment__vote-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.comment__vote-score {
  min-width: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.comment__edited {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--color-text-muted);
}
.comment__editor {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.comment__editor-area {
  min-height: 64px;
}
.comment__replies {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.comment--thread {
  border-left: 2px solid var(--color-border);
  padding-left: 0.75rem;
  margin-left: 0.25rem;
}
.comment--reply {
  background: var(--color-bg-soft);
  border-style: dashed;
}

.comment__form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.comment__form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.comment__form-reply-hint {
  margin-right: auto;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}
.comment__form-reply-hint[hidden] {
  display: none !important;
}

.comment__textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
}
.comment__textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 0;
  border-color: var(--color-accent);
}
.comment__textarea::placeholder {
  color: var(--color-text-muted);
}

.comment__error {
  margin: 0;
  font-size: 0.82rem;
  color: #ff8a7a;
}
.comment__error[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 12px;
  }

  .topbar,
.site-header {
    padding: 0;
  }

  .episode-title {
    display: none;
  }

  .reader__prose {
    padding: 1rem 0.9rem;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .reader__stage {
    min-height: 62dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}
.user-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: #fff6d5;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.user-pill:hover {
  color: var(--primary);
  text-decoration: none;
}

.lang-chooser {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.lang-chooser a {
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 2px 4px;
}
.lang-chooser a:hover {
  color: var(--primary);
}
.lang-chooser a.active {
  color: #fff6d5;
  font-weight: 700;
}
