/* ── Themes ─────────────────────────────────────────────────────────────── */
:root,
:root[data-theme='paper'] {
  --desk: #ddd3c1;
  --desk-2: #cfc3ad;
  --page: #fbf7ee;
  --page-edge: #eee5d3;
  --ink: #2b2622;
  --ink-soft: #7a6f62;
  --accent: #7a2e38;
  --chrome: rgba(251, 247, 238, 0.86);
  --chrome-line: rgba(60, 45, 30, 0.14);
  --gutter: rgba(70, 50, 25, 0.16);
  color-scheme: light;
}
:root[data-theme='sepia'] {
  --desk: #c9b28b;
  --desk-2: #b89f76;
  --page: #f4e7cb;
  --page-edge: #e5d3ae;
  --ink: #45341f;
  --ink-soft: #85694a;
  --accent: #8a3b1f;
  --chrome: rgba(244, 231, 203, 0.88);
  --chrome-line: rgba(80, 55, 25, 0.18);
  --gutter: rgba(90, 60, 20, 0.2);
  color-scheme: light;
}
:root[data-theme='night'] {
  --desk: #0f0e0d;
  --desk-2: #171513;
  --page: #1f1c19;
  --page-edge: #2a2622;
  --ink: #d8cfc0;
  --ink-soft: #8f8577;
  --accent: #e0939c;
  --chrome: rgba(24, 22, 20, 0.9);
  --chrome-line: rgba(255, 240, 220, 0.1);
  --gutter: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

:root {
  --font-ui: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --top-h: 52px;
  --bottom-h: 52px;
  --player-h: 0px; /* narration bar; the page area shrinks to make room */
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, var(--desk), var(--desk-2));
  color: var(--ink);
  font-family: var(--font-ui);
  transition: background-color 0.3s ease;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ── Chrome ─────────────────────────────────────────────────────────────── */
.r-top,
.r-bottom {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 max(12px, env(safe-area-inset-left));
  background: var(--chrome);
  backdrop-filter: blur(12px);
  color: var(--ink);
}
.r-top {
  top: 0;
  height: var(--top-h);
  border-bottom: 1px solid var(--chrome-line);
}
.r-bottom {
  bottom: 0;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--chrome-line);
  font-size: 13px;
  color: var(--ink-soft);
}

.r-back {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 10px 6px 4px;
  border-radius: 8px;
  flex-shrink: 0;
}
.r-back svg {
  width: 22px;
  height: 22px;
}
.r-back:hover {
  background: var(--chrome-line);
}

.r-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
#book-title {
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#book-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#book-author {
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.r-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 600 17px var(--font-display);
}
.icon-btn svg {
  width: 22px;
  height: 22px;
}
.icon-btn:hover,
.icon-btn[aria-expanded='true'] {
  background: var(--chrome-line);
}
.icon-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pos-chapter,
.pos-detail {
  flex: 0 1 28%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-detail {
  text-align: right;
}
#scrubber {
  flex: 1;
  min-width: 80px;
  accent-color: var(--accent);
  cursor: pointer;
}

@media (max-width: 640px) {
  .r-back span {
    display: none;
  }
  .r-bottom {
    flex-wrap: wrap;
    gap: 0 12px;
    align-content: center;
    --bottom-h: 60px;
  }
  :root {
    --bottom-h: 60px;
  }
  #scrubber {
    order: -1;
    flex-basis: 100%;
    height: 22px;
  }
  .pos-chapter,
  .pos-detail {
    flex: 1 1 40%;
  }
}

/* ── Stage & book ───────────────────────────────────────────────────────── */
.r-stage {
  position: fixed;
  top: var(--top-h);
  bottom: calc(var(--bottom-h) + var(--player-h) + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.book {
  --page-w: 400px;
  --page-h: 600px;
  --pad-x: 40px;
  --pad-top: 44px;
  --pad-bottom: 44px;
  --gap: 80px;
  --r-size: 18px;
  --r-leading: 1.6;
  --r-font: var(--serif);

  position: relative;
  width: calc(var(--page-w) * 2);
  height: var(--page-h);
  perspective: 2600px;
  user-select: none;
  -webkit-user-select: none;
}
.book.single {
  width: var(--page-w);
}

/* page stack edges beneath the spread */
.book::before {
  content: '';
  position: absolute;
  inset: 3px -5px -6px -5px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, var(--page-edge) 0 1px, var(--page) 1px 3px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 0;
}
.book.single::before {
  inset: 3px -5px -6px 0;
}

.page {
  position: absolute;
  top: 0;
  width: var(--page-w);
  height: var(--page-h);
  background: var(--page);
  color: var(--ink);
  overflow: hidden;
  z-index: 1;
}
.page-left {
  left: 0;
  border-radius: 4px 0 0 4px;
}
.page-right {
  left: var(--page-w);
  border-radius: 0 4px 4px 0;
}
.book.single .page-left {
  border-radius: 2px 4px 4px 2px;
}
.book.single .page-right {
  display: none;
}

/* gutter shading toward the spine */
.page::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14%;
  pointer-events: none;
}
.page.is-left::after {
  right: 0;
  background: linear-gradient(to left, var(--gutter), transparent);
}
.page.is-right::after {
  left: 0;
  background: linear-gradient(to right, var(--gutter), transparent);
}
.book.single .page::after {
  left: 0;
  width: 5%;
  background: linear-gradient(to right, var(--gutter), transparent);
}

.page-head,
.page-foot {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.page-head {
  top: calc(var(--pad-top) * 0.42);
}
.page-foot {
  bottom: calc(var(--pad-bottom) * 0.4);
  letter-spacing: 0.06em;
  font-variant-numeric: oldstyle-nums;
}

.page-body {
  position: absolute;
  top: var(--pad-top);
  left: var(--pad-x);
  width: calc(var(--page-w) - var(--pad-x) * 2);
  height: calc(var(--page-h) - var(--pad-top) - var(--pad-bottom));
  overflow: hidden;
}

/* The chapter flows into columns exactly one page wide; a page is shown by
   sliding the flow sideways. */
.flow {
  width: calc(var(--page-w) - var(--pad-x) * 2);
  height: 100%;
  column-width: calc(var(--page-w) - var(--pad-x) * 2);
  column-gap: var(--gap);
  column-fill: auto;
  font-family: var(--r-font);
  font-size: var(--r-size);
  line-height: var(--r-leading);
  hyphens: auto;
  -webkit-hyphens: auto;
  text-align: justify;
  font-optical-sizing: auto;
  will-change: transform;
}

.flow p {
  margin: 0;
  text-indent: 1.4em;
  orphans: 2;
  widows: 2;
}
.flow .ch-title + p,
.flow .part + p,
.flow .break + p,
.flow .center + p,
.flow .verse + p,
.flow .ch > p:first-child {
  text-indent: 0;
}
.flow .ch-start > .ch-title + p::first-letter {
  float: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3.3em;
  line-height: 0.82;
  padding: 0.08em 0.08em 0 0;
  color: var(--accent);
}
.flow .verse {
  text-indent: 0;
  text-align: left;
  margin: 0.8em 0 0.8em 1.2em;
  hyphens: manual;
}
.flow .center {
  text-align: center;
  text-indent: 0;
  margin: 0.6em 0;
}
.flow .break {
  text-align: center;
  text-indent: 0;
  margin: 0.8em 0;
  color: var(--ink-soft);
}
.flow em {
  font-style: italic;
}

.ch-title {
  break-after: avoid;
  margin: 2.4em 0 1.8em;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  hyphens: manual;
}
.ch-num {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ch-name {
  display: block;
  font-size: 1.35em;
  margin-top: 0.3em;
  text-wrap: balance;
}
.ch-num:only-child {
  font-family: var(--font-display);
  font-size: 1.3em;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  font-weight: 500;
}
.flow .part {
  break-after: avoid;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.5em 0 0;
}

/* Title and end pages */
.title-page,
.end-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  break-inside: avoid;
  padding-bottom: 8%;
}
.tp-orn {
  font-size: 2em;
  color: var(--accent);
  margin-bottom: 0.6em;
}
.tp-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
.tp-sub {
  display: block;
  font-weight: 500;
  font-size: 0.55em;
  margin-top: 0.5em;
  color: var(--ink-soft);
}
.tp-rule {
  width: 3em;
  height: 1px;
  background: var(--ink-soft);
  margin: 1.4em auto;
}
.tp-author {
  font-size: 1.1em;
  font-style: italic;
  margin: 0 !important;
  text-indent: 0 !important;
  text-align: center;
}
.tp-src {
  margin: 3em 0 0 !important;
  text-indent: 0 !important;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.62em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.end-page h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 2em;
  margin: 0 0 1em;
}
.end-page p {
  text-indent: 0 !important;
  text-align: center;
  margin: 0 0 0.9em !important;
}
.end-page a {
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.85em;
  font-weight: 600;
}

.page.blank .page-head,
.page.blank .page-foot {
  display: none;
}

/* ── The turning leaf ───────────────────────────────────────────────────── */
.leaf {
  position: absolute;
  top: 0;
  left: var(--page-w);
  width: var(--page-w);
  height: var(--page-h);
  transform-style: preserve-3d;
  transform-origin: left center;
  z-index: 10;
  pointer-events: none;
  display: none;
}
.leaf.active {
  display: block;
}
.leaf.from-left {
  left: 0;
  transform-origin: right center;
}
.book.single .leaf {
  left: 0;
  transform-origin: left center;
}
.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.18);
}
.face .page {
  left: 0;
}
.face.back {
  transform: rotateY(180deg);
}
.face .shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
/* curl light: darker toward the fold */
.leaf:not(.from-left) .face.front .shade,
.book.single .leaf .face.front .shade {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05) 60%, rgba(255, 255, 255, 0.06));
}
.leaf:not(.from-left) .face.back .shade,
.book.single .leaf .face.back .shade {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05) 60%, rgba(255, 255, 255, 0.06));
}
.leaf.from-left .face.front .shade {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05) 60%, rgba(255, 255, 255, 0.06));
}
.leaf.from-left .face.back .shade {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05) 60%, rgba(255, 255, 255, 0.06));
}
/* the back of a single page in one-page mode */
.page.verso {
  background: linear-gradient(to left, var(--page-edge), var(--page));
}

/* Hidden page used to measure how many pages a chapter needs. */
.page.measure {
  visibility: hidden;
  pointer-events: none;
  left: 0;
  z-index: -1;
}

/* First-page hint pointing at the right edge, where the next page turns. */
.turn-hint {
  position: absolute;
  right: 14px;
  bottom: calc(var(--pad-bottom) + 18px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 13px var(--font-ui);
  letter-spacing: 0.02em;
  color: var(--accent);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.turn-hint.show {
  opacity: 1;
}
.turn-hint svg {
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .turn-hint svg {
    animation: none;
  }
}

/* ── Turn zones ─────────────────────────────────────────────────────────── */
.turn-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 20;
  -webkit-tap-highlight-color: transparent;
}
.turn-zone.prev {
  left: 0;
  cursor: w-resize;
}
.turn-zone.next {
  right: 0;
  cursor: e-resize;
}
.turn-zone:focus-visible {
  outline: none;
  background: linear-gradient(to var(--dir, right), transparent, rgba(0, 0, 0, 0.06));
}
.turn-zone.prev:focus-visible {
  --dir: left;
}

.book.bump {
  animation: bump 0.3s ease;
}
@keyframes bump {
  30% {
    transform: translateX(var(--bump, 8px));
  }
}

/* ── Narration ──────────────────────────────────────────────────────────── */
body.narrating {
  --player-h: 58px;
}
.narrator {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  height: var(--player-h);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--chrome);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--chrome-line);
  color: var(--ink);
}
.n-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.n-btn:hover {
  background: var(--chrome-line);
}
.n-play {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--page);
}
.n-play:hover {
  background: var(--accent);
  filter: brightness(1.08);
}
.n-play .i-pause,
.n-play.is-playing .i-play {
  display: none;
}
.n-play.is-playing .i-pause {
  display: block;
}
.n-rate {
  min-width: 48px;
  height: 32px;
  margin-left: 8px;
  border: 1px solid var(--chrome-line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 13px var(--font-ui);
  cursor: pointer;
}
.n-rate:hover {
  border-color: var(--accent);
}
.n-voice {
  height: 32px;
  max-width: 190px;
  border: 1px solid var(--chrome-line);
  border-radius: 999px;
  background: var(--page);
  color: var(--ink);
  font: 13px var(--font-ui);
  padding: 0 10px;
  text-overflow: ellipsis;
  cursor: pointer;
}
.n-status {
  font-size: 13px;
  color: var(--ink-soft);
  margin-left: 6px;
}
.n-close {
  margin-left: 4px;
  color: var(--ink-soft);
}
#listen-btn[aria-pressed='true'] {
  background: var(--chrome-line);
  color: var(--accent);
}
/* The sentence being read aloud. */
::highlight(narration) {
  background-color: color-mix(in srgb, var(--accent) 24%, transparent);
}
@media (max-width: 480px) {
  .narrator {
    gap: 2px;
    padding: 0 6px;
  }
  .n-voice {
    max-width: 30vw;
  }
  .n-rate {
    margin-left: 2px;
  }
}

/* ── Status (loading / error) ───────────────────────────────────────────── */
.r-status {
  text-align: center;
  padding: 24px;
  max-width: 420px;
  color: var(--ink-soft);
  font-size: 15px;
}
.r-status a {
  color: var(--accent);
}
.loader {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 12px;
}
.loader span {
  width: 10px;
  height: 14px;
  border-radius: 1px 3px 3px 1px;
  background: var(--accent);
  animation: loader 1s ease-in-out infinite;
}
.loader span:nth-child(2) {
  animation-delay: 0.15s;
}
.loader span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes loader {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
  50% {
    transform: scaleX(0.15);
    opacity: 0.5;
  }
}

/* ── Panels ─────────────────────────────────────────────────────────────── */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.25);
}

.panel {
  position: fixed;
  z-index: 50;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(360px, 88vw);
  background: var(--page);
  color: var(--ink);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  animation: slide-in 0.22s ease;
}
@keyframes slide-in {
  from {
    transform: translateX(-100%);
  }
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 20px;
  border-bottom: 1px solid var(--chrome-line);
}
.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 24px;
  overflow-y: auto;
  flex: 1;
}
.toc-list button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: var(--ink);
  font: 15px/1.35 var(--serif);
  padding: 9px 20px;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.toc-list button:hover {
  background: var(--chrome-line);
}
.toc-list button[aria-current='true'] {
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.toc-part {
  padding: 16px 20px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.popover {
  position: fixed;
  z-index: 50;
  top: calc(var(--top-h) + 6px);
  right: 10px;
  width: min(330px, calc(100vw - 20px));
  background: var(--page);
  color: var(--ink);
  border: 1px solid var(--chrome-line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  padding: 16px;
  animation: pop 0.16s ease;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}
.setting {
  margin-bottom: 14px;
}
.setting-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.stepper,
.segmented {
  display: flex;
  border: 1px solid var(--chrome-line);
  border-radius: 10px;
  overflow: hidden;
}
.stepper button,
.segmented button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 14px var(--font-ui);
  padding: 9px 6px;
  cursor: pointer;
}
.stepper button {
  font: 600 18px var(--serif);
}
.stepper button small {
  font-size: 0.7em;
}
.stepper button:first-child {
  font-size: 14px;
}
.stepper output {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--ink-soft);
  border-inline: 1px solid var(--chrome-line);
}
.segmented button + button {
  border-left: 1px solid var(--chrome-line);
}
.stepper button:hover,
.segmented button:hover {
  background: var(--chrome-line);
}
.segmented button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--page);
  font-weight: 600;
}
.stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}
.serif-sample {
  font-family: var(--serif) !important;
}
.swatch.paper {
  --sw: #fbf7ee;
}
.swatch.sepia {
  --sw: #f4e7cb;
}
.swatch.night {
  --sw: #1f1c19;
}
.swatch::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sw);
  border: 1px solid rgba(0, 0, 0, 0.25);
  margin-right: 6px;
  vertical-align: -1px;
}
.setting-link {
  display: block;
  margin: 2px 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--chrome-line);
  border-radius: 10px;
  color: var(--accent);
  font: 600 14px var(--font-ui);
  text-decoration: none;
}
.setting-link:hover {
  border-color: var(--accent);
}
.setting-hint {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .panel,
  .popover {
    animation: none;
  }
}
