:root {
  scrollbar-gutter: stable;
  color-scheme: light;
  --ink: #20251f;
  --muted: #6f756d;
  --paper: #f4f1e9;
  --surface: #fffefa;
  --line: #ddd8cc;
  --forest: #234c3d;
  --forest-soft: #e2ebe5;
  --gold: #b4873c;
  --plum: #654a62;
  --plum-soft: #eee7ed;
  --danger: #9b493f;
  /* Shared shell and map controls. Theme palettes can override these once. */
  --app-body-background:
    radial-gradient(circle at 72% 0%, #fff9e9 0, transparent 28rem), var(--paper);
  --app-topbar-background: rgba(255, 254, 250, 0.9);
  --app-control-background: #fff;
  --app-map-control-background: rgb(255 254 250 / 92%);
  --app-map-control-ink: #24392f;
  --app-reader-ink: #33372f;
  --app-reader-hover: #f7f4ec;
  --app-reader-selected: #fbf5df;
  --app-insight-background: #fbfaf6;
  --app-tab-badge-background: #ebe8df;
  --app-account-visual-background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--surface) 88%, var(--forest-soft)),
    var(--surface)
  );
  --reader-font-size: 16px;
  --reader-line-height: 1.65;
  --reader-width: 670px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: var(--paper);
  color: var(--ink);
}
html[data-language-pending] body {
  visibility: hidden;
}
[data-theme='dark'] {
  color-scheme: dark;
  --ink: #edf1e9;
  --muted: #a8afa5;
  --paper: #111612;
  --surface: #181e19;
  --line: #303a32;
  --forest: #8ab89f;
  --forest-soft: #243b30;
  --gold: #d2a65d;
  --plum: #cfacca;
  --plum-soft: #392d38;
  --danger: #df8f84;
  --app-body-background:
    radial-gradient(circle at 72% 0%, #272317 0, transparent 28rem), var(--paper);
  --app-topbar-background: rgba(24, 30, 25, 0.9);
  --app-control-background: #1d241e;
  --app-map-control-background: rgb(24 30 25 / 92%);
  --app-map-control-ink: var(--ink);
  --app-reader-ink: #dce2d9;
  --app-reader-hover: #20271f;
  --app-reader-selected: #332e1f;
  --app-insight-background: #151b16;
  --app-tab-badge-background: #293129;
  --app-account-visual-background: linear-gradient(145deg, #202820, #171d18);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--app-body-background);
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app-shell {
  min-height: 100vh;
}
.topbar {
  height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 680px) minmax(520px, auto);
  align-items: center;
  gap: 24px;
  background: var(--app-topbar-background);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}
.brand__mark {
  width: auto;
  height: auto;
  display: inline;
  color: var(--gold);
  background: transparent;
  font:
    900 20px Inter,
    sans-serif;
  letter-spacing: 0.03em;
}
.brand > span:not(.brand__mark) {
  font-weight: 600;
}
.brand small {
  color: var(--muted);
  font:
    600 9px Inter,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px 6px;
}
.search {
  position: relative;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--app-control-background);
  border-radius: 9px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  color: var(--muted);
  box-shadow: 0 2px 10px rgba(44, 39, 30, 0.04);
}
.search-feedback {
  position: absolute;
  z-index: 10;
  top: 44px;
  left: 0;
  right: 0;
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(44, 39, 30, 0.12);
}
.search-feedback:not(:empty) {
  display: block;
}
.search-feedback--error {
  border-color: #b8554d;
  color: #9f3f38;
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
kbd {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
  background: #f8f6f1;
}
.topnav {
  display: grid;
  grid-template-columns: repeat(6, minmax(56px, 1fr)) 54px;
  align-items: stretch;
  height: 100%;
  gap: 4px;
}
.topnav > * {
  grid-row: 1;
}
.topbar > .topnav {
  grid-column: 3;
}
.topnav a[href='/'] {
  grid-column: 1;
}
.topnav a[href^='/bible/'] {
  grid-column: 2;
}
.topnav a[href^='/map'] {
  grid-column: 3;
}
.topnav a[href='/library'] {
  grid-column: 4;
}
.topnav a[href='/history'] {
  grid-column: 5;
}
.topnav a[href='/settings'],
.topnav a[href='/settings/editions'] {
  grid-column: 6;
}
.topnav .theme-toggle {
  grid-column: 7;
  width: 54px;
}
.topnav a[href='#relations'],
.topnav a[href^='/search'] {
  display: none;
}
.topnav a {
  color: var(--muted);
  text-decoration: none;
  display: grid;
  place-items: center;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
}
.topnav a.active {
  color: var(--forest);
  border-bottom-color: var(--forest);
}
.topnav:has(> a.active[href='/']) {
  grid-template-columns: repeat(6, minmax(56px, 1fr)) 54px;
}
.topnav:has(> a.active[href='/']) > a[href='/'] {
  grid-column: 1;
}
.topnav:has(> a.active[href='/']) > a[href^='/bible/'] {
  grid-column: 2;
}
.topnav:has(> a.active[href='/']) > a[href^='/map'] {
  grid-column: 3;
}
.topnav:has(> a.active[href='/']) > a[href='/library'] {
  grid-column: 4;
}
.topnav:has(> a.active[href='/']) > a[href='/history'] {
  grid-column: 5;
}
.topnav:has(> a.active[href='/']) > a[href='/settings'] {
  grid-column: 6;
}
.topnav:has(> a.active[href='/']) > .theme-toggle {
  grid-column: 7;
}
@media (min-width: 1201px) {
  .topbar > .topnav {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 4px;
  }
  .topbar > .topnav > a {
    flex: 0 0 auto;
    padding-inline: 10px;
    white-space: nowrap;
  }
  .topbar > .topnav > .theme-toggle {
    flex: 0 0 54px;
  }
}
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  place-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}
.theme-toggle {
  align-self: center;
  position: relative;
  width: 54px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--muted);
  padding: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  width: 21px;
  height: 21px;
  top: 3px;
  left: 4px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease;
}
.theme-toggle span {
  position: absolute;
  top: 4px;
  z-index: 1;
  font-size: 13px;
}
.theme-toggle__sun {
  left: 7px;
}
.theme-toggle__moon {
  right: 7px;
}
[data-theme='dark'] .theme-toggle::after {
  transform: translateX(24px);
}
main {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 28px 32px;
}
.passage-head {
  min-height: 118px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 2px;
  font:
    700 32px/1.1 Georgia,
    serif;
  letter-spacing: -0.02em;
}
.passage-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.head-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}
.head-actions label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}
select {
  display: block;
  margin-top: 5px;
  min-width: 190px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
  padding: 0 10px;
  color: var(--ink);
}
.primary,
.secondary,
.icon-button,
.selection-toolbar button,
.chapter-nav button,
.review button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 12px;
}
.primary {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
  font-weight: 700;
}
.icon-button {
  font-size: 20px;
  width: 38px;
  height: 38px;
  padding: 0;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(480px, 0.92fr) minmax(480px, 1.08fr);
  min-height: calc(100vh - 218px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(53, 45, 32, 0.08);
}
.demo-upgrade {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -8px 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--gold);
  background: linear-gradient(90deg, #fbf3df, var(--surface));
}
[data-theme='dark'] .demo-upgrade {
  background: linear-gradient(90deg, #332d1e, var(--surface));
}
.demo-upgrade > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 4px 10px;
}
.demo-upgrade strong {
  font:
    700 13px Georgia,
    serif;
}
.demo-upgrade p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}
.demo-upgrade a {
  text-decoration: none;
  white-space: nowrap;
  font-size: 10px;
}
.release-pill {
  border-radius: 10px;
  background: var(--forest-soft);
  color: var(--forest);
  padding: 4px 7px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.07em;
}
.reading-panel {
  position: relative;
  padding: 28px 38px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.reading-panel::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 7px;
  border: 1px solid color-mix(in srgb, var(--gold) 52%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0 0, var(--gold) 0 2px, transparent 2.5px) 0 0 / 18px 18px no-repeat,
    radial-gradient(circle at 100% 0, var(--gold) 0 2px, transparent 2.5px) 100% 0 / 18px 18px
      no-repeat,
    radial-gradient(circle at 0 100%, var(--gold) 0 2px, transparent 2.5px) 0 100% / 18px 18px
      no-repeat,
    radial-gradient(circle at 100% 100%, var(--gold) 0 2px, transparent 2.5px) 100% 100% / 18px 18px
      no-repeat;
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--gold) 7%, transparent);
  pointer-events: none;
}
.reading-panel::after {
  content: '◆';
  position: absolute;
  z-index: 2;
  top: 3px;
  left: 50%;
  padding: 0 8px;
  background: var(--surface);
  color: color-mix(in srgb, var(--gold) 78%, var(--ink));
  font-size: 8px;
  line-height: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}
.notice {
  background: #f8f3e4;
  border-left: 3px solid var(--gold);
  color: #685b43;
  padding: 10px 13px;
  font-size: 11px;
  margin-bottom: 18px;
}
.selection-toolbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  margin-bottom: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.selection-toolbar--collapsed {
  display: none;
}
.passage-actions-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--surface);
  color: var(--forest);
  padding: 0;
  box-shadow: 0 5px 18px rgba(35, 76, 61, 0.2);
  font-size: 13px;
  font-weight: 900;
}
.passage-actions-toggle:hover,
.passage-actions-toggle.active {
  background: var(--forest);
  color: var(--paper);
}
.passage-actions-toggle[hidden] {
  display: none;
}
.passage-actions-layer {
  position: relative;
  z-index: 18;
  display: grid;
  justify-items: start;
  height: 0;
  margin: 0;
}
.passage-actions-layer--expanded {
  height: auto;
}
.passage-actions-layer .passage-actions-toggle {
  position: absolute;
  top: -38px;
  left: -35px;
}
.passage-actions-layer .selection-toolbar {
  position: static;
  display: grid;
  width: min(260px, calc(100vw - 90px));
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  padding: 10px;
  margin: 8px 0 14px 27px;
  transform: translateY(8px);
  box-shadow: 0 12px 35px rgba(20, 28, 22, 0.22);
}
.passage-actions-layer .selection-toolbar--collapsed {
  display: none;
}
.selection-toolbar > span:first-child {
  margin-bottom: 4px;
}
.selection-toolbar strong,
.selection-toolbar small {
  display: block;
}
.selection-toolbar strong {
  font-size: 12px;
  color: var(--forest);
}
.selection-toolbar small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 9px;
}
.selection-toolbar button {
  width: 100%;
  font-size: 10px;
  padding: 7px 8px;
  text-align: left;
}

.selection-toolbar .selection-favorite {
  min-width: 2.35rem;
  padding-inline: 0.55rem;
  color: var(--danger);
  font-size: 1.15rem;
}

.default-collections {
  position: relative;
}

.default-collections > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.default-collections > summary::-webkit-details-marker {
  display: none;
}
.default-collections > summary::after {
  content: '⌄';
  color: var(--muted);
  font-size: 0.9em;
  transition: transform 120ms ease;
}
.default-collections[open] > summary::after {
  transform: rotate(180deg);
}
.default-collections > summary:hover {
  background: color-mix(in srgb, var(--forest) 5%, transparent);
}

.default-collections[open] {
  display: grid;
  gap: 0.35rem;
}

.default-collections[open] > summary {
  margin-bottom: 0.25rem;
}

.default-collections [data-default-collection-actions] {
  display: contents;
}
.selection-toolbar .toolbar-link {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 8px;
  color: var(--ink);
  font-size: 10px;
  text-align: left;
  text-decoration: none;
}
.selection-toolbar .taxonomy-shortcut {
  border-color: color-mix(in srgb, var(--forest) 45%, var(--line));
  background: var(--forest-soft);
  color: var(--forest);
  font-weight: 800;
}
#favorite-passage {
  min-width: 0;
}
#study-list-passage {
  min-width: 0;
}
.selection-toolbar .collection-add {
  display: grid;
  width: 100%;
}
.selection-toolbar .collection-add select {
  width: 100%;
  max-width: none;
}
.passage-actions-layer .selection-toolbar button,
.passage-actions-layer .selection-toolbar summary,
.passage-actions-layer .selection-toolbar select,
.passage-actions-layer .selection-toolbar .toolbar-link {
  box-sizing: border-box;
  min-height: 32px;
  font-size: 13px;
  line-height: 1.2;
}
.passage-actions-layer .selection-toolbar button,
.passage-actions-layer .selection-toolbar summary,
.passage-actions-layer .selection-toolbar .toolbar-link {
  padding: 6px 8px;
}
.verses {
  max-width: var(--reader-width);
  padding: 8px 8px 18px;
  margin: auto;
}
.verse {
  width: 100%;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  display: grid;
  grid-template-columns: 24px 1fr;
  text-align: left;
  padding: 7px 10px;
  color: var(--app-reader-ink);
  font-family: Georgia, serif;
  font-size: var(--reader-font-size);
  line-height: var(--reader-line-height);
  border-radius: 0 6px 6px 0;
}
.verse:hover {
  background: var(--app-reader-hover);
}
.verse--selected {
  border-left-color: var(--gold);
  background: var(--app-reader-selected);
}
.verse--highlighted {
  background: color-mix(in srgb, var(--gold) 20%, var(--surface));
}
.verse__number {
  position: relative;
  color: var(--gold);
  font:
    700 9px/2.7 Inter,
    sans-serif;
}
.chapter-nav {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}
.chapter-nav--top {
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.chapter-nav--top a {
  min-height: 38px;
}
.chapter-nav a {
  display: grid;
  min-width: 112px;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
}
.chapter-nav button {
  border: 0;
  padding: 6px;
  color: var(--forest);
}
.insight-panel {
  background: var(--app-insight-background);
  min-width: 0;
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 102px);
  align-self: start;
  overflow: auto;
  overflow-x: hidden;
}
.insight-panel > *,
.reader-map-panel,
.reader-map-panel > * {
  min-width: 0;
  max-width: 100%;
}
.mobile-insight-toggle {
  display: none;
}
.mobile-insight-chapter-nav {
  display: none;
}
.insight-panel-toggle {
  position: absolute;
  z-index: 4;
  top: 9px;
  left: 8px;
  width: 30px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--forest);
  font-size: 20px;
}
.insight-panel > .tabs {
  padding-left: 42px;
}
.reader-workspace.insight-panel-collapsed {
  grid-template-columns: minmax(0, 1fr) 42px;
}
.reader-workspace.insight-panel-collapsed:not(.reader-workspace--compare) .reading-panel {
  width: auto;
  min-width: 0;
  max-width: none;
}
.reader-workspace.insight-panel-collapsed:not(.reader-workspace--compare) .verses {
  width: 100%;
  max-width: none;
}
.insight-panel-collapsed .insight-panel > :not(.insight-panel-toggle) {
  display: none;
}
.insight-panel-collapsed .insight-panel {
  overflow: visible;
}
.insight-panel-collapsed .insight-panel-toggle {
  left: 5px;
}
.reader-workspace--compare {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 14px;
  border: 0;
  background: var(--paper);
  box-shadow: none;
}
.reader-workspace--compare .reading-panel,
.reader-workspace--compare .comparison-panel {
  border: 1px solid color-mix(in srgb, var(--gold) 58%, var(--line));
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--gold) 7%, transparent);
}
.reader-workspace--compare .reading-panel::before,
.reader-workspace--compare .reading-panel::after,
.embedded-reader .reading-panel::before,
.embedded-reader .reading-panel::after {
  display: none;
}
.reader-workspace--compare .reading-panel {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  resize: none !important;
  position: sticky;
  top: 68px;
  height: calc(100vh - 88px);
  align-self: start;
  overflow: auto;
}
.reader-workspace--compare > .reading-panel > .reader-controls {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  width: 100%;
  min-height: 82px;
  padding: 0 10px 12px;
}
.reader-workspace--compare > .reading-panel > .reader-controls .reader-controls__title {
  grid-column: 1;
  grid-row: 1;
}
.reader-workspace--compare .insight-panel {
  display: none;
}
.comparison-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-left: 0;
  background: var(--surface);
  padding: 24px;
  overflow: hidden;
}
.reader-workspace--compare .comparison-panel {
  position: sticky;
  top: 68px;
  height: calc(100vh - 88px);
  align-self: start;
}
.comparison-panel[hidden] {
  display: none;
}
.comparison-panel--loaded {
  padding: 0;
}
.comparison-panel--loaded .comparison-head {
  position: absolute;
  z-index: 5;
  top: 8px;
  right: 10px;
}
.comparison-panel--loaded .comparison-head > div,
.comparison-panel--loaded .comparison-search {
  display: none;
}
.comparison-panel--loaded .comparison-head button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}
.comparison-head,
.comparison-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}
.comparison-head button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
}
.comparison-head__actions {
  display: flex;
  gap: 7px;
}
.comparison-head__actions button[data-back-comparison-results] {
  width: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 6px 9px;
  color: var(--forest);
  font-size: 10px;
}
.comparison-head__actions button[hidden] {
  display: none !important;
}
.comparison-panel--loaded
  .comparison-head__actions
  button[data-back-comparison-results]:not([hidden]) {
  width: auto;
  border-radius: 7px;
  padding: 6px 9px;
}
.comparison-search {
  display: flex;
  gap: 8px;
  margin: 16px 0 22px;
}
.comparison-search > span {
  align-self: center;
  color: var(--muted);
}
.comparison-search input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 11px;
}
.comparison-content {
  display: flex;
  min-height: 0;
  flex: 1;
}
.comparison-reader {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
}
.comparison-results {
  width: 100%;
  overflow: auto;
}
.comparison-results > header,
.comparison-results > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px;
}
.comparison-results > header small {
  color: var(--muted);
}
.comparison-results > footer {
  justify-content: flex-end;
}
.comparison-results > footer button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 7px 9px;
  color: var(--ink);
}
.comparison-result {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  width: 100%;
  align-items: start;
  gap: 10px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 11px 3px;
  color: var(--ink);
  text-align: left;
}
.comparison-result:hover {
  background: var(--forest-soft);
}
.comparison-result span,
.comparison-result strong,
.comparison-result small {
  display: block;
}
.comparison-result small,
.comparison-result em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}
.comparison-result p {
  margin: 0;
  font:
    13px/1.45 Georgia,
    serif;
}
.comparison-result mark {
  background: color-mix(in srgb, var(--gold) 30%, transparent);
  color: inherit;
}
.embedded-reader .topbar {
  display: none;
}
.embedded-reader .app-shell {
  min-height: 0;
  padding-bottom: 0;
}
.embedded-reader main {
  padding: 0;
}
.embedded-reader .reader-workspace {
  grid-template-columns: minmax(0, 1fr);
  border: 0;
  box-shadow: none;
}
.embedded-reader .reading-panel {
  border-right: 0;
  padding: 28px 38px 20px;
}
.embedded-reader .reading-panel > .reader-controls {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  width: 100%;
  min-height: 82px;
  padding: 0 10px 12px;
}
.embedded-reader .reading-panel > .reader-controls .reader-controls__title {
  grid-column: 1;
  grid-row: 1;
}
.embedded-reader #compare-passage {
  display: none;
}
.embedded-reader .insight-panel {
  display: none;
}
.reader-popup {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 13, 10, 0.7);
  padding: 18px;
}

.reader-popup[hidden] {
  display: none;
}
.reader-popup__dialog {
  display: flex;
  width: min(100%, var(--reader-width, 670px));
  max-height: min(760px, calc(100vh - 36px));
  flex-direction: column;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.reader-popup__dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}
.reader-popup__dialog > header button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
}
.reader-popup__content {
  min-width: 0;
  width: 100%;
  overflow: auto;
}
.reader-popup__content .tab-content {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.reader-popup__content .reader-map-panel {
  padding: 18px;
}
.reader-popup__content #passage-map {
  width: 100%;
  max-width: 100%;
}
.tab:disabled,
#show-interpretation:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.reader-window-search {
  width: calc(100% - 20px);
  flex: 0 0 40px;
  margin: 10px 10px 0;
}
.comparison-title p,
.comparison-title h3 {
  margin-bottom: 3px;
}
.comparison-title p,
.comparison-title a {
  color: var(--muted);
  font-size: 9px;
}
.comparison-verse {
  width: 100%;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--ink);
  padding: 7px 9px;
  text-align: left;
  font:
    var(--reader-font-size) / var(--reader-line-height) Georgia,
    serif;
}
.comparison-verse.selected {
  border-left-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 9%, transparent);
}
.comparison-verse sup {
  margin-right: 8px;
  color: var(--gold);
  font:
    700 9px Inter,
    sans-serif;
}
.comparison-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 18px;
}
.comparison-actions button,
.comparison-actions a {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--forest);
  padding: 7px 8px;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}
.comparison-actions select {
  min-width: 150px;
  height: 32px;
  margin: 0;
  font-size: 9px;
}
.comparison-note {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}
.comparison-note textarea {
  min-height: 80px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  padding: 9px;
}
.comparison-status {
  margin-left: 9px;
  color: var(--muted);
}
.comparison-error {
  color: var(--danger);
}
.tabs {
  height: 51px;
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  gap: 24px;
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 0 2px;
}
.tab.active {
  color: var(--forest);
  border-bottom-color: var(--forest);
}
.tab span {
  margin-left: 4px;
  background: var(--app-tab-badge-background);
  border-radius: 9px;
  padding: 2px 5px;
  font-size: 8px;
}
.tab .spark {
  color: var(--plum);
  background: transparent;
  font-size: 12px;
}
.tab-content {
  display: none;
  padding: 26px 30px;
}
.tab-content.active {
  display: block;
}
.reader-tag-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.reader-tag {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 12px;
  color: var(--ink);
  text-decoration: none;
}
.reader-tag:hover {
  border-color: var(--forest);
}
.reader-tag span {
  font-weight: 800;
}
.reader-tag small {
  color: var(--forest);
  font-size: 9px;
  text-transform: uppercase;
}
.reader-tag em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.45;
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 24px;
}
.review-feedback {
  display: grid;
  grid-template-columns: 28px 1fr 25px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 11px 12px;
  margin-bottom: 17px;
}
.review-feedback[hidden] {
  display: none;
}
.review-feedback__icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}
.review-feedback strong,
.review-feedback p {
  display: block;
  margin: 0;
}
.review-feedback strong {
  font-size: 10px;
}
.review-feedback p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}
.review-feedback > button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
}
.review-feedback--approved {
  border-color: #8ab79b;
  background: var(--forest-soft);
}
.review-feedback--approved .review-feedback__icon {
  background: var(--forest);
  color: var(--paper);
}
.review-feedback--rejected {
  border-color: color-mix(in srgb, var(--danger) 50%, var(--line));
  background: color-mix(in srgb, var(--danger) 9%, var(--surface));
}
.review-feedback--rejected .review-feedback__icon {
  background: var(--danger);
  color: var(--surface);
}
.panel-title h2,
#interpretation > h2 {
  font:
    700 23px/1.2 Georgia,
    serif;
  margin-bottom: 4px;
}
.panel-title p {
  color: var(--muted);
  font-size: 10px;
}
.secondary {
  color: var(--forest);
  font-size: 10px;
  font-weight: 700;
}
.relation-group {
  margin-top: 24px;
}
.stored-relations {
  margin-top: 18px;
}
.relation--stored small + small {
  margin-top: 4px;
  color: var(--forest);
  font-weight: 700;
}
.stored-relation {
  border-bottom: 1px solid var(--line);
}
.stored-relation .relation {
  border-bottom: 0;
}
.relation-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 10px 0;
}
.relation-filters label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.relation-filters select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 9px;
}
.relation-editor {
  background: var(--surface);
}
.relation-editor summary {
  cursor: pointer;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}
.relation-editor form {
  display: grid;
  gap: 9px;
  padding: 4px 12px 12px;
}
.relation-editor label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.relation-editor select,
.relation-editor textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
  background: var(--paper);
  color: var(--ink);
}
.relation-editor textarea {
  min-height: 62px;
  resize: vertical;
}
.relation-editor form > div {
  display: flex;
  gap: 8px;
}
.danger {
  border: 1px solid #b8554d;
  border-radius: 7px;
  padding: 8px 12px;
  background: transparent;
  color: #9f3f38;
  font-weight: 700;
}
.relation-filter-empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}
.relation-create {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.relation-create summary {
  cursor: pointer;
  padding: 13px 15px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
}
.relation-create form {
  display: grid;
  gap: 12px;
  padding: 0 15px 15px;
}
.relation-create label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.relation-create input,
.relation-create select,
.relation-create textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  background: var(--paper);
  color: var(--ink);
  font:
    13px Inter,
    sans-serif;
  text-transform: none;
}
.relation-create textarea {
  min-height: 74px;
  resize: vertical;
}
.reader-side-empty--compact {
  padding: 14px 8px;
}
.relation-group h3 {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.relation-group h3 span {
  margin-left: 6px;
  color: var(--forest);
  background: var(--forest-soft);
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 7px;
}
.relation-group h3 .ai-label {
  color: var(--plum);
  background: var(--plum-soft);
}
.relation {
  display: grid;
  grid-template-columns: 64px 1fr 15px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  background: white;
  border: 1px solid var(--line);
  border-bottom: 0;
  padding: 11px 12px;
}
.relation:last-child {
  border-bottom: 1px solid var(--line);
}
.relation strong,
.relation small {
  display: block;
}
.relation strong {
  font:
    700 13px Georgia,
    serif;
}
.relation small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.relation__type {
  width: fit-content;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.quote {
  color: #3d6170;
  background: #e4eef1;
}
.typology {
  color: #735637;
  background: #f2e9dc;
}
.thematic {
  color: var(--plum);
  background: var(--plum-soft);
}
.suggestion {
  background: white;
  border: 1px solid var(--line);
  padding: 13px;
  margin-bottom: 8px;
  transition:
    opacity 0.2s,
    border-color 0.2s;
}
.suggestion__head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.suggestion__head strong {
  font:
    700 14px Georgia,
    serif;
}
.confidence {
  margin-left: auto;
  color: var(--forest);
  background: var(--forest-soft);
  border-radius: 10px;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 800;
}
.suggestion p {
  color: #555a53;
  font-size: 10px;
  line-height: 1.5;
  margin: 10px 0;
}
.review {
  display: flex;
  gap: 6px;
}
.review button {
  font-size: 9px;
  padding: 6px 9px;
}
.review .approve {
  color: var(--forest);
  border-color: #bdd0c4;
}
.review .reject {
  color: var(--danger);
  border-color: #ddc2be;
}
.suggestion.compact .review {
  float: right;
  margin-top: -27px;
}
.suggestion--approved {
  border-color: #7ca58f;
}
.suggestion--rejected {
  opacity: 0.5;
}
.reviewed {
  color: var(--forest);
  font-size: 9px;
  font-weight: 700;
}
.interpretation-warning {
  display: flex;
  gap: 11px;
  background: var(--plum-soft);
  border: 1px solid #d9c9d6;
  color: #594456;
  padding: 12px;
  margin-bottom: 25px;
  font-size: 10px;
  line-height: 1.45;
}
.interpretation-warning span {
  font-size: 18px;
}
.interpretation-warning p {
  margin: 0;
}
.lead {
  font:
    16px/1.65 Georgia,
    serif;
  color: #3d423b;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.insight {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid #e9e5dc;
}
.insight > span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
}
.insight h3 {
  margin-bottom: 4px;
  font:
    700 13px Georgia,
    serif;
}
.insight p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.questions {
  margin-top: 20px;
  background: #f3f0e8;
  padding: 14px 16px;
}
.questions h3 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.questions ul {
  padding-left: 18px;
  margin: 0;
  color: #545951;
  font-size: 10px;
  line-height: 1.8;
}
.interpretation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}
.interpretation-meta span {
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 4px 6px;
  font-size: 7px;
  text-transform: uppercase;
}

.note-editor {
  display: block;
  margin-top: 18px;
}
.note-editor textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.55;
}
.note-editor textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.note-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.note-actions small {
  color: var(--muted);
}
#reader-review-feedback {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  background: var(--surface);
}

.library-page {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 80px;
}
.collection-create {
  display: flex;
  gap: 10px;
  margin: 24px 0;
}
.collection-create input,
.collection-card input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  color: var(--ink);
}
.collections-grid {
  display: grid;
  gap: 14px;
}
.collection-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: var(--surface);
}
.collection-card summary,
.collection-card footer,
.collection-passage {
  display: flex;
  align-items: center;
  gap: 10px;
}
.collection-card summary {
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}
.collection-card summary::-webkit-details-marker {
  display: none;
}
.collection-card summary strong {
  font-family: var(--serif);
  font-size: 18px;
}
.collection-card summary span {
  color: var(--muted);
  font-size: 11px;
}
.collection-card__passages {
  margin-top: 12px;
}
.collection-card footer {
  flex-wrap: wrap;
  margin-top: 14px;
}
.collection-card footer small {
  flex-basis: 100%;
  color: var(--muted);
}
.collection-passage {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
}
.collection-passage a {
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
}
.library-back {
  display: inline-block;
  margin-top: 12px;
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
}
.collection-add {
  display: inline-flex;
  gap: 5px;
  position: relative;
  margin-right: 0;
}
.collection-add select {
  max-width: 140px;
}
.collection-add:not(.collection-add--expanded) select {
  display: none;
}
.collection-add--expanded {
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.search-page {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 80px;
}
.search-head {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 24px;
}
.search-head h1 {
  margin: 8px 0;
  font:
    500 38px Georgia,
    serif;
}
.search-head > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 680px;
}
.search-edition {
  position: absolute;
  right: 0;
  bottom: 28px;
}
.search-edition label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.search-edition select {
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: var(--surface);
  color: var(--ink);
}
.search-results {
  display: grid;
  gap: 10px;
}
.search-result-selectable {
  position: relative;
  border: 1px solid transparent;
  border-radius: 10px;
}
.search-result-selectable.selected {
  border-color: var(--forest);
  background: var(--forest-soft);
}
.search-result-compare {
  position: absolute;
  right: 12px;
  bottom: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--forest);
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 800;
}
.search-compare-bar {
  position: fixed;
  z-index: 35;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 12px;
  box-shadow: 0 12px 35px rgba(20, 28, 22, 0.25);
}
.search-compare-bar[hidden] {
  display: none;
}
.search-compare-bar span {
  color: var(--muted);
  font-size: 10px;
}
.search-result {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.search-result:hover {
  border-color: var(--forest);
  transform: translateY(-1px);
}
.search-result__reference {
  color: var(--forest);
  font:
    700 15px Georgia,
    serif;
}
.search-result p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.search-result mark {
  border-radius: 3px;
  padding: 1px 2px;
  background: #f4df9b;
  color: #352b14;
}
.search-result__open {
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}
.pagination__pages {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pagination a {
  text-decoration: none;
}
.pagination__page,
.pagination__edge {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  background: var(--surface);
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
}
.pagination__page.active {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
}
.pagination__edge.disabled {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 720px) {
  .search-edition {
    position: static;
    margin-top: 20px;
  }
  .search-result {
    grid-template-columns: 72px 1fr;
  }
  .search-result__open {
    display: none;
  }
  .pagination {
    align-items: stretch;
    flex-direction: column;
  }
  .pagination__pages {
    justify-content: center;
    flex-wrap: wrap;
  }
}
.library-head {
  margin-bottom: 28px;
}
.library-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin-top: 20px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.library-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.library-shortcuts a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}
.library-shortcuts a:hover {
  border-color: var(--accent);
}
.library-shortcuts span {
  color: var(--muted);
  font-size: 11px;
}
.backup-verify {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.backup-verify label,
.backup-verify label span,
.backup-verify small {
  display: block;
}
.backup-verify label span,
.backup-verify small {
  color: var(--muted);
  font-size: 11px;
}
.backup-verify input {
  width: 100%;
  margin-top: 8px;
}
.backup-verify small {
  grid-column: 1 / -1;
}
.library-filter input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}
.library-head h1 {
  margin: 4px 0 8px;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.library-head > p:last-child,
.library-card small,
.library-empty p {
  color: var(--muted);
}
.library-list {
  display: grid;
  gap: 12px;
}
.library-section {
  margin-top: 34px;
}
.library-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  list-style: none;
}
.library-section > summary::-webkit-details-marker {
  display: none;
}
.library-section > summary h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--serif);
}
.library-section > summary h2 span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--forest-soft);
  color: var(--muted);
  font:
    700 11px Inter,
    sans-serif;
}
.library-section__toggle {
  color: var(--muted);
  font-size: 11px;
}
.library-filter-empty {
  margin-top: 28px;
  color: var(--muted);
  text-align: center;
}
.history-group {
  margin-top: 30px;
}
.history-group > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 18px;
  text-transform: capitalize;
}
.history-group > h2 span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: var(--forest-soft);
  font:
    700 11px Inter,
    sans-serif;
}
.library-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}
.library-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.library-card__icon {
  color: var(--accent);
  font-size: 1.3rem;
}
.library-card strong,
.library-card small {
  display: block;
}
.library-card__preview {
  margin: 8px 0 0;
  color: var(--ink);
  font:
    14px/1.5 Georgia,
    serif;
  text-decoration: none;
}
.library-card--detail small {
  margin-top: 4px;
  line-height: 1.45;
}
.library-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.library-card__actions a {
  white-space: nowrap;
}
.review-status {
  min-width: 76px;
  border-radius: 999px;
  padding: 5px 8px;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.review-status--curated {
  background: var(--forest-soft);
  color: var(--forest);
}
.review-status--rejected {
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  color: var(--danger);
}
.library-empty {
  padding: 72px 24px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
}
.library-empty--compact {
  padding: 20px;
}
.library-empty--compact p {
  margin: 0;
}
.library-empty > span {
  color: var(--accent);
  font-size: 2.5rem;
}
.empty-state {
  text-align: center;
  padding-top: 120px;
  color: var(--muted);
}
.empty-state > span {
  font-size: 32px;
}
.empty-state h2 {
  color: var(--ink);
  font:
    700 20px Georgia,
    serif;
  margin: 12px 0 6px;
}
.empty-state p {
  font-size: 11px;
  max-width: 360px;
  margin: 0 auto 18px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--ink);
  color: white;
  padding: 11px 15px;
  border-radius: 7px;
  font-size: 11px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: min(680px, calc(100vw - 48px));
  max-height: min(360px, calc(100vh - 48px));
  overflow: auto;
}
.toast--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast__message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}
.toast__actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 10px;
}
.toast__actions[hidden] {
  display: none;
}
.toast__actions button {
  border: 1px solid currentColor;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  padding: 5px 9px;
  cursor: pointer;
}
[data-theme='dark'] body {
  background: var(--app-body-background);
}
[data-theme='dark'] .topbar {
  background: var(--app-topbar-background);
}
[data-theme='dark'] .search,
[data-theme='dark'] kbd,
[data-theme='dark'] select,
[data-theme='dark'] .relation,
[data-theme='dark'] .suggestion,
[data-theme='dark'] .primary,
[data-theme='dark'] .secondary,
[data-theme='dark'] .icon-button,
[data-theme='dark'] .selection-toolbar button,
[data-theme='dark'] .chapter-nav button,
[data-theme='dark'] .review button {
  background: var(--app-control-background);
}
[data-theme='dark'] .workspace {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}
[data-theme='dark'] .notice {
  background: #332d1e;
  color: #dac9a8;
}
[data-theme='dark'] .quote {
  background: #26383f;
  color: #a8cedc;
}
[data-theme='dark'] .typology {
  background: #3c3022;
  color: #e0bb88;
}
[data-theme='dark'] .thematic {
  background: var(--plum-soft);
  color: var(--plum);
}
[data-theme='dark'] .suggestion p,
[data-theme='dark'] .lead {
  color: #c6ccc3;
}
[data-theme='dark'] .questions {
  background: #202720;
}
[data-theme='dark'] .questions ul {
  color: #bac1b7;
}
.settings-breadcrumb {
  color: var(--muted);
  font-size: 12px;
}
.settings-breadcrumb a {
  color: var(--forest);
  text-decoration: none;
}
.settings-breadcrumb span {
  margin: 0 8px;
}
.reader-controls {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
  align-items: center;
  gap: 12px;
}
.reader-controls__selectors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(155px, 0.8fr);
  align-items: end;
  gap: 12px;
  min-width: 0;
}
.reader-controls label {
  display: grid;
  align-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.reader-controls select {
  width: 100%;
  min-width: 0;
}
.reader-controls__title {
  min-width: 0;
  text-align: center;
}
.reader-controls__title .eyebrow {
  margin-bottom: 0;
}
.reader-controls__title h1 {
  margin: 2px 0 0;
}
.reader-controls__title h1 {
  font-size: 28px;
}
.reader-workspace {
  min-height: calc(100vh - 200px);
}
.edition-source {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 9px;
}
.edition-source a {
  margin-left: auto;
  color: var(--forest);
  text-decoration: none;
  font-weight: 700;
}
.dynamic-verses {
  width: 100%;
}
.chapter-nav a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 700;
}
.reader-side-empty {
  min-height: 520px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 35px;
  color: var(--muted);
}
.reader-side-empty > span {
  color: var(--gold);
  font-size: 34px;
}
.reader-side-empty h2 {
  color: var(--ink);
  margin: 12px 0 7px;
  font:
    700 19px Georgia,
    serif;
}
.reader-side-empty p {
  max-width: 390px;
  font-size: 10px;
  line-height: 1.7;
}
.reader-side-empty strong {
  color: var(--forest);
  border: 1px solid var(--line);
  padding: 7px 10px;
  font:
    700 12px Georgia,
    serif;
}
.settings-main {
  max-width: 1120px;
}
[data-density='compact'] .library-card {
  padding-top: 12px;
  padding-bottom: 12px;
}
[data-density='compact'] .verse {
  padding-top: 4px;
  padding-bottom: 4px;
}
[data-density='compact'] .selection-toolbar {
  gap: 4px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.settings-heading {
  min-height: 150px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.settings-heading > div > p:last-child {
  color: var(--muted);
  font-size: 12px;
}
.taxonomy-page {
  max-width: 1120px;
  margin: auto;
  padding: 38px 24px 80px;
}
.taxonomy-head > p:not(.eyebrow) {
  color: var(--muted);
}
.taxonomy-head .library-filter {
  max-width: 680px;
  margin-top: 24px;
}
.taxonomy-families {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
}
.taxonomy-families button {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--muted);
  padding: 8px 13px;
  font-size: 11px;
}
.taxonomy-families button.active {
  border-color: var(--forest);
  background: var(--forest-soft);
  color: var(--forest);
}
.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.taxonomy-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 17px;
}
.taxonomy-card[hidden] {
  display: none;
}
.taxonomy-card > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.taxonomy-family {
  color: var(--forest);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.taxonomy-card code {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.taxonomy-card h2 {
  margin: 14px 0 7px;
  font:
    700 18px Georgia,
    serif;
}
.taxonomy-card h2 a {
  color: var(--ink);
  text-decoration: none;
}
.taxonomy-card__open {
  display: inline-block;
  margin-top: 14px;
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
.taxonomy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.taxonomy-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  margin: 13px 0 0;
  list-style: none;
}
.taxonomy-card li {
  border-radius: 10px;
  background: var(--paper);
  padding: 4px 8px;
  color: var(--muted);
  font-size: 9px;
}
.tag-page {
  max-width: 900px;
  margin: auto;
  padding: 38px 24px 90px;
}
.tag-detail-head {
  padding: 34px 0 26px;
}
.tag-detail-head h1 {
  margin: 8px 0;
  font:
    700 36px Georgia,
    serif;
}
.tag-detail-head > p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.55;
}
.tag-bulk {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 240px) minmax(180px, 240px) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  padding: 13px;
  margin-top: 22px;
}
.tag-bulk__new {
  min-width: 0;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 10px;
}
.tag-bulk strong {
  font-size: 11px;
}
.tag-bulk small {
  grid-column: 1 / -1;
  color: var(--muted);
}
.history-clear {
  margin: 16px 0;
}
.tag-synonyms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0;
}
.tag-synonyms span {
  border-radius: 14px;
  background: var(--forest-soft);
  padding: 5px 10px;
  color: var(--forest);
  font-size: 10px;
}
.tagged-passages {
  display: grid;
  gap: 10px;
}
.tagged-passage {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  padding: 15px 17px;
}
.tagged-passage--selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 18%, transparent);
}
.tagged-passage__compare {
  border: 1px solid color-mix(in srgb, var(--forest) 42%, var(--line));
  border-radius: 7px;
  background: var(--forest-soft);
  color: var(--forest);
  padding: 7px 11px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.tagged-passage__compare[aria-pressed='true'] {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
}
.tagged-passage a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
}
.tagged-passage a span {
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
}
.tagged-passage p {
  margin: 9px 0 6px;
  color: var(--muted);
  font-size: 11px;
}
.tagged-passage blockquote {
  margin: 13px 0 10px;
  border-left: 3px solid var(--gold);
  padding: 3px 0 3px 13px;
  color: var(--ink);
  font:
    15px/1.55 Georgia,
    serif;
}
.tagged-passage__missing {
  color: var(--muted) !important;
  font-style: italic !important;
}
.tagged-passage small {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
}
.tagged-passage__footer {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
}
.library-card > button[data-remove-workspace],
.history-card > button[data-remove-history],
.library-card__actions button[data-remove-note] {
  border-color: transparent;
  background: transparent;
  color: var(--danger);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--danger) 35%, transparent);
  text-underline-offset: 3px;
}
.import-panel {
  border: 1px solid var(--gold);
  background: var(--surface);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(54, 43, 25, 0.08);
}
.import-panel[hidden],
.dialog-backdrop[hidden],
.import-progress[hidden] {
  display: none;
}
.import-panel h2 {
  font:
    700 18px Georgia,
    serif;
  margin-bottom: 5px;
}
.import-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.import-panel__head > button {
  align-self: start;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
}
.drop-zone {
  display: grid;
  justify-items: center;
  border: 1px dashed var(--gold);
  background: color-mix(in srgb, var(--gold) 6%, var(--paper));
  padding: 25px 18px;
  margin: 14px 0 10px;
  outline: 0;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.drop-zone:focus,
.drop-zone--active {
  border-color: var(--forest);
  background: var(--forest-soft);
  transform: translateY(-2px);
}
.drop-zone__icon {
  color: var(--gold);
  font-size: 30px;
}
.drop-zone h3 {
  margin: 6px 0 3px;
  font:
    700 15px Georgia,
    serif;
}
.drop-zone p {
  margin-bottom: 13px;
}
.drop-zone p button {
  border: 0;
  background: transparent;
  color: var(--forest);
  padding: 0;
  text-decoration: underline;
  font-weight: 800;
}
.file-requirements {
  display: flex;
  gap: 7px;
}
.file-requirements span {
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  padding: 4px 8px;
  font-size: 8px;
  font-weight: 700;
}
.file-requirements .file-ready {
  border-color: var(--forest);
  background: var(--forest-soft);
  color: var(--forest);
}
.selected-files {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
.selected-files span {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  padding: 7px 9px;
  font-size: 9px;
}
.selected-files small {
  color: var(--muted);
}
.import-files-button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
}
.import-files-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.path-import {
  margin-top: 13px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
}
.path-import summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.path-import form {
  margin-top: 10px;
  grid-template-columns: 1fr auto;
}
.import-panel p {
  color: var(--muted);
  font-size: 11px;
}
.import-panel form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 8px;
}
.import-panel label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.import-panel input {
  display: block;
  width: 100%;
  height: 38px;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 11px;
}
.import-panel form button,
.edition-card__actions button,
.confirm-dialog button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  font-size: 10px;
  font-weight: 700;
}
.import-panel form .primary {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
}
.import-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.import-progress span {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.import-progress p {
  margin: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.edition-summary {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 14px;
  margin-bottom: 12px;
}
.edition-summary strong {
  color: var(--ink);
}
.editions-list {
  display: grid;
  gap: 9px;
}
.edition-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr auto;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 16px 18px;
}
.edition-card__identity {
  display: flex;
  align-items: center;
  gap: 13px;
}
.edition-monogram {
  width: 44px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 3px 9px 3px 9px;
  background: #f5ecda;
  color: #72572a;
  font:
    700 11px Georgia,
    serif;
}
[data-theme='dark'] .edition-monogram {
  background: #332d1e;
  color: #e1bd7d;
}
.edition-card h2 {
  margin-bottom: 4px;
  font:
    700 15px Georgia,
    serif;
}
.edition-card p,
.edition-card small {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}
.edition-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.edition-card__meta small {
  width: 100%;
}
.status {
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted);
  padding: 3px 7px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.status--active {
  background: var(--forest-soft);
  color: var(--forest);
}
.status--default {
  background: #f5ecda;
  color: #72572a;
}
[data-theme='dark'] .status--default {
  background: #332d1e;
  color: #e1bd7d;
}
.edition-card__actions {
  display: flex;
  gap: 5px;
}
.edition-card__actions button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.danger-action {
  color: var(--danger) !important;
  border-color: color-mix(in srgb, var(--danger) 40%, var(--line)) !important;
}
.editions-empty {
  min-height: 330px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
}
.editions-empty > span {
  font-size: 34px;
  color: var(--gold);
}
.editions-empty h2 {
  color: var(--ink);
  font:
    700 18px Georgia,
    serif;
  margin: 12px 0 5px;
}
.editions-empty p {
  font-size: 10px;
}
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 12, 10, 0.7);
  backdrop-filter: blur(4px);
}
.confirm-dialog {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 25px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}
.confirm-dialog h2 {
  font:
    700 21px Georgia,
    serif;
}
.confirm-dialog > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.confirm-dialog > div {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
.toast--error {
  background: var(--danger);
}
[data-theme='dark'] .toast,
[data-theme='dark'] .search-feedback {
  border-color: #59685f;
  background: #17201c;
  color: #f4f1e8;
}
@media (min-width: 981px) {
  .reader-workspace {
    grid-template-columns: auto minmax(360px, 1fr);
  }
  .reader-workspace .reading-panel {
    width: clamp(480px, 52vw, 76vw);
    min-width: 420px;
    max-width: 76vw;
    resize: horizontal;
    overflow: auto;
  }
  .reader-workspace:not(.reader-workspace--compare) .verses {
    max-width: none;
  }
}
@media (max-width: 1100px) {
  .search-edition {
    position: static;
    margin-top: 18px;
  }
  .search-head > p:not(.eyebrow) {
    max-width: none;
  }
}
@media (max-width: 1200px) {
  .topnav:not(.topnav--open) > .theme-toggle {
    display: none;
  }
  .topnav.topnav--open {
    padding-bottom: 8px;
  }
  .topnav.topnav--open > .theme-toggle {
    display: block;
    position: absolute;
    right: 52px;
    bottom: 8px;
  }
  .taxonomy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 48px;
    column-gap: 12px;
    backdrop-filter: none;
  }
  .topbar:has(> .search) {
    position: sticky;
    height: auto;
    min-height: 104px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 40px 40px;
    align-content: start;
    gap: 8px;
    padding: 8px 16px;
  }
  .topbar:has(> .search) > .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .topbar:has(> .search) > .search {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
  }
  .topbar > .topnav {
    position: absolute;
    top: 8px;
    right: 12px;
    bottom: auto;
    left: auto;
    display: flex;
    width: auto;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .topbar > .search {
    margin-right: 0;
  }
  .topnav {
    display: flex;
    position: fixed;
    z-index: 80;
    right: 12px;
    bottom: 12px;
    height: 46px;
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  }
  body:has(.reader-workspace) {
    padding-bottom: 58px;
  }
  .topbar > .topnav {
    grid-column: auto;
  }
  .topnav a {
    display: none;
  }
  .topnav > a[href='/'] {
    display: flex;
    padding: 0 10px;
  }
  .topnav .theme-toggle {
    display: block;
  }
  .topnav .menu-toggle {
    display: grid;
  }
  .topnav.topnav--open {
    width: min(220px, calc(100vw - 24px));
    height: auto;
    flex-direction: column;
    align-items: stretch;
    border-radius: 14px;
    padding: 8px;
  }
  .topnav.topnav--open a {
    display: flex;
    min-height: 40px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 8px 12px;
  }
  .topnav.topnav--open .theme-toggle,
  .topnav.topnav--open .menu-toggle {
    align-self: flex-end;
  }
  .topbar:has(> .search) > .topnav.topnav--open {
    position: absolute;
    z-index: 110;
    top: 56px;
    right: 12px;
    bottom: auto;
    left: auto;
    display: flex;
    width: min(220px, calc(100vw - 24px));
    max-height: calc(100vh - 72px);
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 8px 28px rgb(0 0 0 / 22%);
  }
  .topbar:has(> .search) > .topnav.topnav--open > a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid var(--line);
    padding: 8px 12px;
    font-size: 13px;
  }
  .topbar:has(> .search) > .topnav.topnav--open > .menu-toggle {
    position: sticky;
    z-index: 120;
    top: 0;
    order: -1;
    align-self: flex-end;
    margin: 0 0 6px;
  }
  .topbar:has(> .search) > .topnav.topnav--open > .theme-toggle {
    position: relative;
    inset: auto;
    align-self: flex-end;
    margin: 8px 4px 4px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .reading-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .passage-head {
    align-items: flex-start;
    padding: 24px 0;
  }
  .head-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .edition-card {
    grid-template-columns: 1fr;
  }
  .edition-card__actions {
    justify-content: flex-start;
  }
  .reader-controls {
    grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
    min-height: 82px;
    padding: 8px 0;
  }
}

@media (min-width: 701px) and (max-width: 1200px) {
  .topbar:has(> .search) {
    grid-template-columns: max-content minmax(0, 1fr);
    grid-template-rows: 40px;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 8px 16px;
  }
  .topbar:has(> .search) > .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .topbar:has(> .search) > .search {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    margin: 0 108px 0 0;
  }
}

/* Zgłoszenia: jedno odkrywane zgłoszenie, podium i osobny pełny wykaz. */
.feedback-discovery {
  margin: 28px 0 44px;
}
.feedback-discovery > header,
.feedback-podium > h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feedback-discovery > header div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.feedback-discovery > header button,
.feedback-comments button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 7px 12px;
  color: var(--forest);
}
.feedback-card--rank-2 {
  width: 96%;
}
.feedback-card--rank-3 {
  width: 92%;
}
.feedback-all {
  width: 100%;
}
.feedback-all-link {
  display: block;
  width: fit-content;
  margin: -30px 0 50px auto;
}
.feedback-card footer button:disabled {
  cursor: default;
  opacity: 0.5;
}
.feedback-comments {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.feedback-comments summary {
  cursor: pointer;
  color: var(--forest);
  font-weight: 800;
}
.feedback-comments div {
  display: grid;
  justify-content: stretch;
  gap: 6px;
  margin: 10px 0;
}
.feedback-comments div p {
  margin: 0;
  border-radius: 8px;
  background: var(--paper);
  padding: 8px 10px;
}
.feedback-comments form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.feedback-comments input {
  min-width: 0;
}
.home-feedback-link {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 12px 20px;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}
.home-feedback-link > span {
  grid-row: 1 / 3;
  font-size: 22px;
}
.home-feedback-link small {
  color: var(--forest);
}

/* Kalendarzowe motywy piątku i niedzieli. */
[data-sacred-theme='friday'] body {
  background-color: #17151a;
  background-image:
    linear-gradient(rgb(23 21 26 / 95%), rgb(23 21 26 / 95%)),
    url('/assets/images/friday-golgotha-atmosphere.png');
  background-position:
    center,
    center 15%;
  background-size: cover, min(100% auto, 1500px);
  background-attachment: fixed;
}
[data-sacred-theme='friday'] .home-hero {
  background: #17151a;
}
[data-sacred-theme='friday'] .home-hero::before,
[data-theme='light'][data-sacred-theme='friday'] .home-hero::before {
  background-image: url('/assets/images/ukrzyzowanie.webp?v=20260925-1');
  background-position: var(--motif-image-position, center);
  background-size: cover;
}
[data-theme='light'][data-sacred-theme='friday'] .home-hero::before {
  background-image: url('/assets/images/ukrzyzowanie_light.webp?v=20260925-1');
}
[data-sacred-theme='friday'] .home-hero::after,
[data-theme='light'][data-sacred-theme='friday'] .home-hero::after {
  background: linear-gradient(90deg, rgb(19 16 21 / 62%), rgb(19 16 21 / 26%) 58%, transparent 86%);
}
[data-sacred-theme='friday'] .home-hero,
[data-theme='light'][data-sacred-theme='friday'] .home-hero {
  color: #fffaf0;
}
[data-sacred-theme='friday'] .home-hero > *,
[data-theme='light'][data-sacred-theme='friday'] .home-hero > * {
  text-shadow: 0 2px 16px rgb(0 0 0 / 65%);
}
[data-sacred-theme='friday'] .home-hero h1,
[data-theme='light'][data-sacred-theme='friday'] .home-hero h1,
[data-theme='light'][data-sacred-theme='friday'] .home-hero > .eyebrow {
  margin-left: 0;
  padding: 0;
  background: none;
  color: #fffaf0;
  box-shadow: none;
}
[data-sacred-theme='friday'] .home-readings > header h2 {
  color: #f6eee3;
}
[data-sacred-theme='friday'] .home-reading-card {
  border-color: color-mix(in srgb, #d4b46d 74%, #413642);
  background: linear-gradient(145deg, #302833, #211e25 60%, #29222c);
  color: #f5eee6;
  box-shadow:
    inset 0 0 0 1px rgb(220 184 105 / 13%),
    0 12px 32px rgb(0 0 0 / 18%);
}
[data-sacred-theme='friday'] .home-reading-card[data-reading-role='GOSPEL'] {
  border-color: #d7b96f;
  background: linear-gradient(145deg, #3a2d37, #29222b 58%, #342630);
  box-shadow:
    inset 0 0 0 2px rgb(220 184 105 / 17%),
    0 14px 34px rgb(0 0 0 / 22%);
}
[data-sacred-theme='friday'] .home-reading-card .eyebrow,
[data-sacred-theme='friday'] .home-reading-card .home-verse sup {
  color: #dfbd70;
}
[data-sacred-theme='friday'] .home-reading-card .home-reading-details,
[data-sacred-theme='friday'] .home-reading-card .home-reading-unavailable {
  color: #c8bbc8;
}
[data-sacred-theme='friday'] .home-reading-open small,
[data-sacred-theme='friday'] .home-reading-card footer a:not(.primary) {
  color: #e2c477;
}
[data-sacred-theme='friday'] .home-reading-card .home-tags a {
  background: rgb(218 185 112 / 14%);
  color: #e6cb8c;
}
[data-theme='light'][data-sacred-theme='friday'] .home-readings > header h2 {
  color: #332630;
}
[data-theme='light'][data-sacred-theme='friday'] .home-reading-card {
  border-color: #b69a60;
  background: linear-gradient(145deg, #fffaf0, #f3e9e8 62%, #f4ecdd);
  color: #30252e;
  box-shadow:
    inset 0 0 0 1px rgb(155 119 55 / 12%),
    0 10px 28px rgb(54 37 48 / 9%);
}
[data-theme='light'][data-sacred-theme='friday'] .home-reading-card[data-reading-role='GOSPEL'] {
  border-color: #a7833d;
  background: linear-gradient(145deg, #f8edcf, #f4e5e5 62%, #f4eadb);
  box-shadow:
    inset 0 0 0 2px rgb(155 119 55 / 14%),
    0 12px 30px rgb(54 37 48 / 11%);
}
[data-theme='light'][data-sacred-theme='friday'] .home-reading-card .home-reading-details,
[data-theme='light'][data-sacred-theme='friday'] .home-reading-card .home-reading-unavailable {
  color: #6f5c69;
}
[data-theme='light'][data-sacred-theme='friday'] .home-reading-card .home-reading-open small,
[data-theme='light'][data-sacred-theme='friday'] .home-reading-card footer a:not(.primary) {
  color: #755a24;
}
[data-theme='light'][data-sacred-theme='friday'] .home-reading-card .home-tags a {
  background: rgb(155 119 55 / 13%);
  color: #705522;
}
[data-sacred-theme='friday'][data-friday-variant='dawn'] body {
  background-image:
    linear-gradient(rgb(42 24 24 / 93%), rgb(42 24 24 / 93%)),
    url('/assets/images/friday-golgotha-atmosphere.png');
}
[data-sacred-theme='friday'][data-friday-variant='dawn'] .home-hero::after,
[data-theme='light'][data-sacred-theme='friday'][data-friday-variant='dawn'] .home-hero::after {
  background: linear-gradient(
    90deg,
    rgb(69 29 28 / 72%),
    rgb(113 55 37 / 30%) 58%,
    transparent 86%
  );
}
[data-sacred-theme='friday'][data-friday-variant='dawn'] .home-reading-card {
  border-color: #a96545;
  background: linear-gradient(145deg, #422c2a, #2d2428 62%, #3a2928);
  box-shadow:
    inset 0 0 0 1px rgb(246 179 114 / 17%),
    0 12px 32px rgb(0 0 0 / 18%);
}
[data-sacred-theme='friday'][data-friday-variant='dawn']
  .home-reading-card[data-reading-role='GOSPEL'] {
  border-color: #e3a45d;
  background: linear-gradient(145deg, #58352a, #38272a 62%, #493027);
}
[data-sacred-theme='friday'][data-friday-variant='dawn'] .home-reading-card .eyebrow,
[data-sacred-theme='friday'][data-friday-variant='dawn'] .home-reading-card .home-verse sup,
[data-sacred-theme='friday'][data-friday-variant='dawn'] .home-reading-open small,
[data-sacred-theme='friday'][data-friday-variant='dawn'] .home-reading-card footer a:not(.primary) {
  color: #f1ba77;
}
[data-theme='light'][data-sacred-theme='friday'][data-friday-variant='dawn'] .home-reading-card {
  border-color: #c5875b;
  background: linear-gradient(145deg, #fff6e8, #f8e5d8 65%, #f4e6d8);
  color: #412b2b;
}
[data-theme='light'][data-sacred-theme='friday'][data-friday-variant='dawn']
  .home-reading-card[data-reading-role='GOSPEL'] {
  background: linear-gradient(145deg, #ffe9c8, #f5d8cc 65%, #f6e3ce);
}
[data-sacred-theme='friday'][data-friday-variant='ash'] body {
  background-color: #17191b;
  background-image:
    linear-gradient(rgb(23 25 27 / 94%), rgb(23 25 27 / 94%)),
    url('/assets/images/friday-golgotha-atmosphere.png');
}
[data-sacred-theme='friday'][data-friday-variant='ash'] .home-hero::after,
[data-theme='light'][data-sacred-theme='friday'][data-friday-variant='ash'] .home-hero::after {
  background: linear-gradient(90deg, rgb(18 22 26 / 76%), rgb(37 43 48 / 34%) 58%, transparent 86%);
}
[data-sacred-theme='friday'][data-friday-variant='ash'] .home-reading-card {
  border-color: #89929a;
  background: linear-gradient(145deg, #2a2e32, #202326 62%, #292c2f);
  box-shadow:
    inset 0 0 0 1px rgb(220 226 230 / 10%),
    0 12px 32px rgb(0 0 0 / 18%);
}
[data-sacred-theme='friday'][data-friday-variant='ash']
  .home-reading-card[data-reading-role='GOSPEL'] {
  border-color: #c1ad7b;
  background: linear-gradient(145deg, #36383a, #282b2e 62%, #343230);
}
[data-sacred-theme='friday'][data-friday-variant='ash'] .home-reading-card .eyebrow,
[data-sacred-theme='friday'][data-friday-variant='ash'] .home-reading-card .home-verse sup {
  color: #d7c99f;
}
[data-theme='light'][data-sacred-theme='friday'][data-friday-variant='ash'] .home-reading-card {
  border-color: #9a9da0;
  background: linear-gradient(145deg, #f6f5f2, #e9e9e6 65%, #efefeb);
  color: #25292c;
}
[data-theme='light'][data-sacred-theme='friday'][data-friday-variant='ash']
  .home-reading-card[data-reading-role='GOSPEL'] {
  border-color: #a99a72;
  background: linear-gradient(145deg, #f0eee7, #e5e4e0 65%, #ece9df);
}
[data-theme='light'][data-sacred-theme='friday'][data-friday-variant='ash']
  .home-reading-card
  .home-reading-details,
[data-theme='light'][data-sacred-theme='friday'][data-friday-variant='ash']
  .home-reading-card
  .home-reading-unavailable {
  color: #5f6468;
}
[data-theme='light'][data-sacred-theme='friday'][data-friday-variant='ash']
  .home-reading-card
  .home-reading-open
  small,
[data-theme='light'][data-sacred-theme='friday'][data-friday-variant='ash']
  .home-reading-card
  footer
  a:not(.primary) {
  color: #675b3d;
}
[data-theme='light'][data-sacred-theme='friday'][data-friday-variant='ash']
  .home-reading-card
  .home-tags
  a {
  background: rgb(107 105 95 / 13%);
  color: #55534c;
}
[data-sacred-theme='friday'] .home-reading-card {
  border-left: 3px solid #746c68;
  box-shadow:
    inset 3px 0 0 rgb(116 108 104 / 15%),
    inset 0 0 0 1px rgb(116 108 104 / 8%),
    0 12px 32px rgb(0 0 0 / 16%);
}
[data-sacred-theme='friday'] .home-reading-card[data-reading-role='GOSPEL'] {
  border-left-color: #b7a16d;
  box-shadow:
    inset 3px 0 0 rgb(183 161 109 / 20%),
    inset 0 0 0 2px rgb(183 161 109 / 12%),
    0 14px 34px rgb(0 0 0 / 19%);
}
[data-sacred-theme='friday'] .home-reading-card[data-reading-role='GOSPEL']::before {
  color: #d2bd83;
}
[data-sacred-theme='friday'] .home-readings > header .eyebrow {
  color: #c0ad7c;
}
[data-theme='light'][data-sacred-theme='friday'] .home-reading-card {
  border-left-color: #68615d;
  box-shadow:
    inset 3px 0 0 rgb(104 97 93 / 14%),
    inset 0 0 0 1px rgb(104 97 93 / 8%),
    0 10px 28px rgb(35 37 43 / 7%);
}
[data-theme='light'][data-sacred-theme='friday'] .home-reading-card[data-reading-role='GOSPEL'] {
  border-left-color: #82724f;
  box-shadow:
    inset 3px 0 0 rgb(130 114 79 / 16%),
    inset 0 0 0 2px rgb(130 114 79 / 9%),
    0 12px 30px rgb(35 37 43 / 9%);
}
[data-theme='light'][data-sacred-theme='friday']
  .home-reading-card[data-reading-role='GOSPEL']::before {
  color: #8a7545;
}
[data-theme='light'][data-sacred-theme='friday'] .home-readings > header .eyebrow {
  color: #786b54;
}
[data-theme='light'][data-sacred-theme='friday'][data-friday-variant='ash'] body {
  background-color: #e7e5e0;
  background-image:
    linear-gradient(
      125deg,
      rgb(218 217 213 / 91%) 0%,
      rgb(235 233 228 / 96%) 46%,
      rgb(224 221 215 / 93%) 100%
    ),
    url('/assets/images/friday-golgotha-atmosphere.png');
  background-position:
    center,
    center 15%;
  background-size: cover, min(100% auto, 1500px);
  background-attachment: fixed;
}
[data-theme='light'][data-sacred-theme='friday'][data-friday-variant='ash'] .home-hero::after {
  background: linear-gradient(
    90deg,
    rgb(42 42 43 / 72%) 0%,
    rgb(48 46 43 / 52%) 36%,
    rgb(53 48 43 / 23%) 68%,
    transparent 100%
  );
}
[data-theme='light'][data-sacred-theme='friday'][data-friday-variant='ash'] .home-reading-card {
  border-color: #aaa69c;
  background: linear-gradient(135deg, #eeece7 0%, #e7e5df 66%, #e5e2db 100%);
  color: #302e2b;
}
[data-theme='light'][data-sacred-theme='friday'][data-friday-variant='ash']
  .home-reading-card[data-reading-role='GOSPEL'] {
  border-color: #978a6a;
  background: linear-gradient(135deg, #eee9dc 0%, #e7e3d8 68%, #e2ded3 100%);
}
[data-sacred-theme='sunday'] body {
  background-color: #191a20;
  background-image:
    radial-gradient(ellipse at 50% -10%, rgb(194 157 86 / 13%), transparent 48rem),
    linear-gradient(rgb(25 26 32 / 94%), rgb(25 26 32 / 94%));
  background-position: center, center;
  background-size: cover, cover;
  background-attachment: fixed;
}
[data-sacred-theme='sunday'] .home-hero {
  background: #191a20;
}
[data-sacred-theme='sunday'] .home-hero::before {
  background-image: var(--sunday-hero-image, linear-gradient(125deg, #34343d, #927751));
  background-position: var(--motif-image-position, 70% center);
  background-size: cover;
}
[data-sacred-theme='sunday'] .home-hero::after {
  background: linear-gradient(90deg, rgb(22 25 34 / 64%), rgb(38 38 46 / 22%) 58%, transparent 86%);
}
[data-sacred-theme='sunday'] .home-hero,
[data-sacred-theme='sunday'] .home-hero h1 {
  color: #fff9ed;
}
[data-sacred-theme='sunday'] .home-readings > header h2 {
  color: #f8f3e8;
}
[data-sacred-theme='sunday'] .home-reading-card {
  border-color: #8c825f;
  background: linear-gradient(145deg, #292d31, #22262c 62%, #2a2b30);
  color: #f6f2e8;
  box-shadow:
    inset 0 0 0 1px rgb(226 202 141 / 12%),
    0 12px 32px rgb(0 0 0 / 16%);
}
[data-sacred-theme='sunday'] .home-reading-card[data-reading-role='GOSPEL'] {
  border-color: #d3b66d;
  background: linear-gradient(145deg, #343735, #292b2d 62%, #33332e);
  box-shadow:
    inset 0 0 0 2px rgb(226 202 141 / 14%),
    0 14px 34px rgb(0 0 0 / 18%);
}
[data-sacred-theme='sunday'] .home-reading-card .eyebrow,
[data-sacred-theme='sunday'] .home-reading-card .home-verse sup {
  color: #e4ca83;
}
[data-sacred-theme='sunday'] .home-reading-card .home-reading-details,
[data-sacred-theme='sunday'] .home-reading-card .home-reading-unavailable {
  color: #d0d0cb;
}
[data-theme='light'][data-sacred-theme='sunday'] body {
  background-color: #f7f5ef;
  background-image:
    radial-gradient(ellipse at 50% -10%, rgb(219 187 113 / 14%), transparent 48rem),
    linear-gradient(#f7f5ef, #f7f5ef);
  background-attachment: fixed;
}
[data-theme='light'][data-sacred-theme='sunday'] .home-readings > header h2 {
  color: #34343a;
}
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card {
  border-color: #d3c9a9;
  background: linear-gradient(145deg, #fffdf7, #f2f0e9 62%, #f5f1e5);
  color: #303238;
  box-shadow:
    inset 0 0 0 1px rgb(132 112 66 / 9%),
    0 10px 28px rgb(35 37 43 / 7%);
}
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card[data-reading-role='GOSPEL'] {
  border-color: #c3aa69;
  background: linear-gradient(145deg, #fff9e7, #f4f0e4 62%, #f7f1df);
}
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card .home-reading-details,
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card .home-reading-unavailable {
  color: #68665e;
}
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card .eyebrow,
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card .home-verse sup,
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card .home-reading-open small,
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card footer a:not(.primary) {
  color: #806a32;
}
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card .home-tags a {
  background: rgb(173 146 77 / 13%);
  color: #68582d;
}
[data-sacred-theme='hope'] body {
  background-image: radial-gradient(
    circle at 50% 0%,
    color-mix(in srgb, var(--forest) 15%, transparent),
    transparent 38rem
  );
}
[data-sacred-theme='hope'] .home-reading-card,
[data-sacred-theme='hope'] .home-passage-card,
[data-sacred-theme='hope'] .home-random-prompt,
[data-sacred-theme='hope'] .home-random-result {
  border-color: color-mix(in srgb, var(--forest) 42%, var(--line));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--forest) 9%, transparent),
    0 10px 28px rgb(0 0 0 / 8%);
}
[data-sacred-theme='hope'] .home-random-prompt,
[data-sacred-theme='hope'] .home-passage-card,
[data-sacred-theme='hope'] .home-random-result {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--forest) 9%, var(--surface)),
    var(--surface) 70%
  );
}
[data-theme='light'][data-sacred-theme='hope'] .home-reading-card,
[data-theme='light'][data-sacred-theme='hope'] .home-passage-card,
[data-theme='light'][data-sacred-theme='hope'] .home-random-prompt,
[data-theme='light'][data-sacred-theme='hope'] .home-random-result {
  border-color: #9cae9f;
  background: linear-gradient(135deg, #f1f5ef, #fafbf8 68%, #edf3ec);
  color: #26342d;
}
[data-sacred-theme='friday'] .home-random-prompt,
[data-sacred-theme='friday'] .home-passage-card,
[data-sacred-theme='friday'] .home-random-result {
  border-color: #79736e;
  background: linear-gradient(135deg, #29282a, #222326 62%, #2b2928);
  color: #f1eee7;
}
[data-sacred-theme='friday'] .home-random-prompt .eyebrow,
[data-sacred-theme='friday'] .home-random-prompt > span,
[data-sacred-theme='friday'] .home-passage-card::before,
[data-sacred-theme='friday'] .home-random-prompt::before {
  color: #c0ad7c;
}
[data-theme='light'][data-sacred-theme='friday'] .home-random-prompt,
[data-theme='light'][data-sacred-theme='friday'] .home-passage-card,
[data-theme='light'][data-sacred-theme='friday'] .home-random-result {
  border-color: #aaa69c;
  background: linear-gradient(125deg, #e9e7e2, #eeece7 58%, #e5e2db);
  color: #302e2b;
}
[data-theme='light'][data-sacred-theme='friday'] .home-random-prompt > p:not(.eyebrow),
[data-theme='light'][data-sacred-theme='friday'] .home-passage-card header p:last-child {
  color: #625e58;
}
[data-sacred-theme='sunday'] .home-random-prompt,
[data-sacred-theme='sunday'] .home-passage-card,
[data-sacred-theme='sunday'] .home-random-result {
  border-color: #8a805e;
  background: linear-gradient(135deg, #292d31, #24282d 60%, #30302c);
  color: #f6f2e8;
}
[data-sacred-theme='sunday'] .home-random-prompt .eyebrow,
[data-sacred-theme='sunday'] .home-random-prompt > span,
[data-sacred-theme='sunday'] .home-passage-card::before,
[data-sacred-theme='sunday'] .home-random-prompt::before {
  color: #e4ca83;
}
[data-theme='light'][data-sacred-theme='sunday'] .home-random-prompt,
[data-theme='light'][data-sacred-theme='sunday'] .home-passage-card,
[data-theme='light'][data-sacred-theme='sunday'] .home-random-result {
  border-color: #d0c49e;
  background: linear-gradient(135deg, #fffdf7, #f4f1e7 62%, #eee9d9);
  color: #303238;
}
[data-sacred-theme='sunday'][data-sunday-variant='gold'] {
  --sunday-hero-image: url('/assets/images/Hostia_Gold.webp?v=20260925-1');
  --sunday-accent: #c89a46;
}
[data-sacred-theme='sunday'][data-sunday-variant='blue'] {
  --sunday-hero-image: url('/assets/images/HostiaBlue.webp?v=20260925-1');
  --sunday-accent: #6594c7;
}
[data-sacred-theme='sunday'][data-sunday-variant='green'] {
  --sunday-hero-image: url('/assets/images/Hostia_green.webp?v=20260925-1');
  --sunday-accent: #6b9870;
}
[data-sacred-theme='sunday'] body {
  background-image:
    radial-gradient(
      ellipse at 50% -10%,
      color-mix(in srgb, var(--sunday-accent, #c89a46) 15%, transparent),
      transparent 48rem
    ),
    linear-gradient(rgb(25 26 32 / 94%), rgb(25 26 32 / 94%));
}
[data-sacred-theme='sunday'] .home-hero::after {
  background: linear-gradient(
    90deg,
    rgb(14 19 25 / 78%) 0%,
    rgb(19 22 27 / 54%) 36%,
    rgb(25 25 28 / 18%) 68%,
    transparent 100%
  );
}
[data-sacred-theme='sunday'] .home-reading-card,
[data-sacred-theme='sunday'] .home-passage-card,
[data-sacred-theme='sunday'] .home-random-prompt,
[data-sacred-theme='sunday'] .home-random-result {
  border-color: color-mix(in srgb, var(--sunday-accent, #c89a46) 62%, #45464a);
}
[data-sacred-theme='sunday'] .home-reading-card[data-reading-role='GOSPEL'] {
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--sunday-accent, #c89a46) 22%, transparent),
    0 14px 34px rgb(0 0 0 / 18%);
}
[data-sacred-theme='sunday'] .home-reading-card .eyebrow,
[data-sacred-theme='sunday'] .home-reading-card .home-verse sup,
[data-sacred-theme='sunday'] .home-random-prompt > span,
[data-sacred-theme='sunday'] .home-random-prompt .eyebrow {
  color: color-mix(in srgb, var(--sunday-accent, #c89a46) 82%, #fff8e8);
}
[data-theme='light'][data-sacred-theme='sunday'] body {
  background-image:
    radial-gradient(
      ellipse at 50% -10%,
      color-mix(in srgb, var(--sunday-accent, #c89a46) 13%, transparent),
      transparent 48rem
    ),
    linear-gradient(#f7f5ef, #f7f5ef);
}
[data-theme='light'][data-sacred-theme='sunday'] .home-hero::after {
  background: linear-gradient(
    90deg,
    rgb(17 22 29 / 74%) 0%,
    rgb(21 25 31 / 52%) 38%,
    rgb(25 26 30 / 18%) 70%,
    transparent 100%
  );
}
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card,
[data-theme='light'][data-sacred-theme='sunday'] .home-passage-card,
[data-theme='light'][data-sacred-theme='sunday'] .home-random-prompt,
[data-theme='light'][data-sacred-theme='sunday'] .home-random-result {
  border-color: color-mix(in srgb, var(--sunday-accent, #c89a46) 45%, #e5e1d7);
}
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card[data-reading-role='GOSPEL'] {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--sunday-accent, #c89a46) 12%, #fffdf7),
    #f4f1e7 65%,
    #eee9d9
  );
}
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card .eyebrow,
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card .home-verse sup,
[data-theme='light'][data-sacred-theme='sunday'] .home-random-prompt > span,
[data-theme='light'][data-sacred-theme='sunday'] .home-random-prompt .eyebrow {
  color: color-mix(in srgb, var(--sunday-accent, #c89a46) 72%, #4a4437);
}
.biblical-place-marker--cross > span::after {
  content: '✝';
  position: absolute;
  left: 50%;
  bottom: 100%;
  color: #8c2f27;
  font-size: 24px;
  text-shadow: 0 1px 3px var(--paper);
  transform: translateX(-50%);
}
.cross-journey-map-only .biblical-place-marker--cross > span::after,
.cross-journey-experience .biblical-place-marker--cross > span::after {
  font-size: 34px;
  font-weight: 900;
  filter: drop-shadow(0 0 5px color-mix(in srgb, #761f2a 50%, transparent));
}
.biblical-map-overlay .journey-route-cross {
  fill: none;
  stroke: #761f2a;
  stroke-width: 6;
  stroke-dasharray: 12 9;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 35%));
}
.cross-journey-panel {
  margin: 8px 0 18px;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid color-mix(in srgb, #761f2a 48%, var(--line));
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 88% 8%,
      color-mix(in srgb, #761f2a 12%, transparent),
      transparent 22rem
    ),
    var(--surface);
}
.cross-journey-panel header {
  max-width: 760px;
  margin-bottom: 24px;
}
.cross-journey-panel h2 {
  margin: 4px 0 10px;
  font:
    700 clamp(28px, 4vw, 48px) Georgia,
    serif;
}
.cross-journey-panel ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}
.cross-journey-panel li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cross-journey-panel li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--forest-soft);
  color: var(--forest);
  font-weight: 900;
}
.cross-journey-panel li small {
  grid-column: 2;
  color: #9d4650;
  font-weight: 800;
}
.cross-journey-panel .cross-station--crucifixion {
  border-color: #8f3440;
  background: color-mix(in srgb, #761f2a 9%, var(--surface));
}
.cross-journey-panel footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}
.cross-journey-experience #passage-map,
.cross-journey-experience .passage-map-layers,
.cross-journey-experience .passage-map-camera,
.cross-journey-experience .map-context-legend {
  display: none;
}
@media (max-width: 700px) {
  .cross-journey-panel ol {
    grid-template-columns: 1fr;
  }
}
.home-page {
  --motif-image-position: 70% center;
  --motif-image-position-mobile: 100% center;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 58px 24px 80px;
}
.site-privacy-link {
  padding: 0 24px 32px;
  text-align: center;
  font-size: 0.875rem;
}
.home-day-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px 0 0;
}
.home-day-switcher > a,
.home-day-switcher button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 13px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.home-day-switcher > a:not(.home-today-link) {
  font-size: 20px;
  line-height: 1;
}
.home-day-switcher form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-day-switcher label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.home-day-switcher input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  color-scheme: light dark;
}
.home-day-switcher .home-today-link {
  color: var(--forest);
  font-weight: 700;
}
.home-hero {
  position: relative;
  display: grid;
  align-content: end;
  max-width: none;
  min-height: clamp(330px, 42vw, 500px);
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 20px;
  padding: clamp(28px, 6vw, 72px);
  isolation: isolate;
  color: #fffaf0;
  background: #071714;
}
.home-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url('/assets/images/Jesus_on_the_boat_homepage.png?v=20260923')
    var(--motif-image-position, center) / cover no-repeat;
  content: '';
}
.home-hero__video {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--motif-image-position, center);
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}
.home-hero__video.is-visible {
  opacity: 1;
}
[data-theme='light'] .home-hero__video,
[data-sacred-theme='friday'] .home-hero__video,
[data-sacred-theme='sunday'] .home-hero__video--default {
  display: none;
}
.home-hero__video--sunday {
  display: none;
}
[data-theme='dark'][data-sacred-theme='sunday'] .home-hero__video--sunday {
  display: block;
}
.home-page [data-motif-image] {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--motif-image-position, center);
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__video,
  html[data-theme='dark'][data-sacred-theme='sunday'] .home-hero__video--sunday {
    display: none;
  }
}
.home-hero::after {
  position: absolute;
  z-index: -1;
  inset: -1px;
  background:
    linear-gradient(90deg, rgb(5 22 19 / 12%) 0%, rgb(5 22 19 / 7%) 38%, transparent 66%),
    linear-gradient(180deg, rgb(5 22 19 / 36%), transparent 30%, rgb(5 22 19 / 28%));
  content: '';
  pointer-events: none;
}
/* The artwork stays a crisp rounded card; a blurred copy of it glows and
   drifts around the card. --hero-art mirrors the image each theme puts in
   .home-hero::before. */
.home-hero {
  --hero-art: url('/assets/images/Jesus_on_the_boat_homepage.png?v=20260923');
}
[data-theme='light'] .home-hero {
  --hero-art: url('/assets/images/Jesus_on_the_boat_homepage_light_mode.png?v=20260923');
}
[data-sacred-theme='friday'] .home-hero {
  --hero-art: url('/assets/images/ukrzyzowanie.webp?v=20260925-1');
}
[data-sacred-theme='sunday'] .home-hero {
  --hero-art: var(--sunday-hero-image, linear-gradient(125deg, #34343d, #927751));
}
[data-theme='light'][data-sacred-theme='friday'] .home-hero {
  --hero-art: url('/assets/images/ukrzyzowanie_light.webp?v=20260925-1');
}
[data-theme='light'][data-sacred-theme='sunday'] .home-hero {
  --hero-art: url('/assets/images/Hostia_Light.webp?v=20260925-1');
}
.app-shell:has(> .home-page) {
  overflow-x: clip;
}
.home-page > .home-hero {
  overflow: visible;
}
/* The hero is positioned, so its glow would paint over the static sections
   below it; positioning them keeps their content above the glow. */
.home-page > .home-hero ~ :is(.home-readings, .home-day-switcher, .home-community) {
  position: relative;
}
.home-page > .home-hero::before,
.home-page > .home-hero::after,
.home-page > .home-hero > .home-hero__video {
  border-radius: inherit;
}
/* Two glow layers with unrelated periods and negative delays, so the motion
   never shows a start or a loop. Only transform and opacity animate, which
   the compositor handles without repainting the blur. */
.home-hero__haze {
  position: absolute;
  z-index: -3;
  inset: -34px;
  border-radius: 36px;
  background: var(--hero-art) var(--motif-image-position, center) / cover no-repeat;
  filter: blur(46px) saturate(1.45);
  opacity: 0.55;
  pointer-events: none;
  will-change: transform, opacity;
  animation:
    hero-glow-drift 11.5s ease-in-out -4s infinite alternate,
    hero-glow-breathe 4.7s ease-in-out -1.5s infinite alternate;
}
.home-hero__haze--drift {
  inset: -18px -42px;
  background-size: 150% auto;
  filter: blur(84px) saturate(1.55);
  animation-duration: 15.5s, 7.3s;
  animation-delay:
    -8s,
    -2.5s;
  animation-direction: alternate-reverse, alternate;
}
@keyframes hero-glow-drift {
  0% {
    transform: translate3d(-4%, 3%, 0) rotate(-3deg) scale(1.04);
  }
  30% {
    transform: translate3d(3%, -4.5%, 0) rotate(2deg) scale(1.13);
  }
  65% {
    transform: translate3d(4.5%, 4%, 0) rotate(3.5deg) scale(1);
  }
  100% {
    transform: translate3d(-2.5%, -3%, 0) rotate(-1.5deg) scale(1.1);
  }
}
@keyframes hero-glow-breathe {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
@keyframes hero-glow-breathe-strong {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}
/* The page gutter is narrow on phones, so the glow spreads further and
   shines brighter to stay visible around the card. */
@media (max-width: 700px) {
  .home-hero__haze {
    inset: -44px -30px;
    filter: blur(48px) saturate(1.55);
    animation-name: hero-glow-drift, hero-glow-breathe-strong;
  }
  .home-hero__haze--drift {
    inset: -28px -26px;
    filter: blur(80px) saturate(1.65);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__haze {
    animation: none;
  }
}
.home-hero > *:not(.home-hero__video, .home-hero__haze) {
  width: min(520px, 46%);
  text-shadow: 0 2px 18px rgb(0 0 0 / 65%);
}
.home-hero .home-day-meta {
  border-color: #e9be66;
  background: rgb(4 19 16 / 58%);
}
.home-hero .home-day-meta span,
.home-hero .home-day-meta a {
  color: #fff5dd;
}
[data-theme='light'] .home-hero {
  color: #17251f;
  background: #fbf8ef;
}
[data-theme='light'] .home-hero::before {
  background-image: url('/assets/images/Jesus_on_the_boat_homepage_light_mode.png?v=20260923');
}
[data-theme='light'] .home-hero::after {
  background: radial-gradient(
    ellipse 24% 27% at 22% 61%,
    rgb(255 253 247 / 74%) 0%,
    rgb(255 253 247 / 52%) 42%,
    rgb(255 253 247 / 12%) 76%,
    transparent 100%
  );
}
[data-theme='light'] .home-hero > * {
  text-shadow: 0 1px 2px rgb(255 255 255 / 45%);
}
[data-theme='light'] .home-hero > .eyebrow {
  width: fit-content;
  max-width: 100%;
  border-radius: 6px;
  padding: 2px 8px;
  background: rgb(255 253 247 / 82%);
  box-shadow: 0 0 12px 5px rgb(255 253 247 / 44%);
  color: #80601f;
}
[data-theme='light'] .home-hero .home-day-meta {
  border-color: var(--gold);
  background: rgb(255 253 247 / 68%);
}
[data-theme='light'] .home-hero .home-day-meta span,
[data-theme='light'] .home-hero .home-day-meta a {
  color: #33443c;
}
.home-hero h1 {
  margin: 5px 0 10px;
  font:
    700 clamp(34px, 5vw, 62px) Georgia,
    serif;
  white-space: pre-line;
}
[data-theme='light'] .home-hero h1 {
  color: #24312b;
}
.home-hero > p:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.home-day-meta {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  border-left: 2px solid var(--gold);
  padding: 9px 12px;
  background: color-mix(in srgb, var(--gold) 7%, transparent);
  font-size: 11px;
}
.home-day-meta span {
  color: var(--muted);
}
.home-day-meta a {
  color: var(--forest);
  font-weight: 700;
}
.home-readings > header {
  margin-bottom: 14px;
}
.home-readings > header h2 {
  margin: 4px 0 0;
  font:
    700 30px Georgia,
    serif;
}
.home-reading-grid {
  columns: 2;
  column-gap: 18px;
}
.home-reading-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
}
.home-reading-card[data-reading-role='GOSPEL'] {
  border-width: 2px;
  border-color: var(--forest);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--forest) 9%, var(--surface)),
    var(--surface) 55%
  );
}
.home-reading-card[data-reading-role='GOSPEL']::before {
  content: '✦';
}
.home-passages {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}
.home-passage-card,
.home-random-prompt {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 58%, var(--line));
  border-radius: 16px;
  background: var(--surface);
  padding: 28px;
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--gold) 7%, transparent);
}
.home-passage-card::before,
.home-random-prompt::before {
  content: '◆';
  position: absolute;
  top: 8px;
  left: 50%;
  color: var(--gold);
  font-size: 8px;
  transform: translateX(-50%);
}
.home-passage-card > header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.home-passage-card h2,
.home-random-prompt h2 {
  margin: 5px 0;
  font:
    700 27px Georgia,
    serif;
}
.home-passage-card header p:last-child,
.home-random-prompt > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 11px;
}
.home-passage-card blockquote {
  margin: 28px 0 22px;
  border: 0;
  padding: 0;
  font:
    20px/1.7 Georgia,
    serif;
}
.home-reading-card blockquote {
  max-height: none;
  overflow: visible;
  font-size: var(--reader-font-size);
  line-height: var(--reader-line-height);
}
.home-reading-unavailable {
  min-height: 90px;
  margin: 28px 0 22px;
  color: var(--muted);
  line-height: 1.6;
}
.home-verse sup {
  margin-right: 4px;
  color: var(--gold);
  font:
    700 9px Inter,
    sans-serif;
}
.home-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.home-tags a {
  border-radius: 12px;
  background: var(--forest-soft);
  padding: 5px 9px;
  color: var(--forest);
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}
.home-passage-card footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.home-passage-card footer a:not(.primary) {
  color: var(--forest);
  font-size: 10px;
}
.home-random-prompt {
  display: grid;
  align-content: center;
  margin: 24px 0 28px;
  min-height: 230px;
  text-align: center;
}
.home-random-prompt > span {
  color: var(--gold);
  font-size: 34px;
}
.home-random-prompt .primary {
  justify-self: center;
  margin-top: 14px;
  text-decoration: none;
}
.home-random-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 24px;
  margin: 24px 0 28px;
  border: 1px solid color-mix(in srgb, var(--gold) 58%, var(--line));
  border-radius: 16px;
  padding: 24px 28px;
  background: var(--surface);
}
.home-random-result h2 {
  margin: 4px 0;
  font:
    700 25px Georgia,
    serif;
}
.home-random-result p:not(.eyebrow) {
  grid-column: 1 / -1;
  font:
    var(--reader-font-size) / var(--reader-line-height) Georgia,
    serif;
}
.home-random-result .primary {
  width: fit-content;
}
.home-passage-card .primary,
.home-random-prompt .primary,
.home-random-result .primary {
  text-decoration: none;
}
.feedback-launcher {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 79;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgb(0 0 0 / 20%);
}
body:has(.persistent-media-player--minimized:not([hidden])) .feedback-launcher {
  bottom: calc(80px + env(safe-area-inset-bottom));
  transition: bottom 0.2s ease;
}
.feedback-launcher__label {
  display: none;
}
.feedback-context-menu {
  position: fixed;
  z-index: 80;
  width: min(280px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgb(0 0 0 / 28%);
}
.feedback-context-menu[hidden],
.feedback-dialog[hidden] {
  display: none;
}
.feedback-context-menu button {
  width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.feedback-context-menu button:hover {
  background: var(--forest-soft);
}
.feedback-dialog {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(0 0 0 / 55%);
}
.feedback-dialog__panel {
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: var(--surface);
}
.feedback-dialog__panel header {
  display: flex;
  justify-content: space-between;
}
.feedback-dialog__panel h2 {
  margin: 3px 0 0;
  font:
    700 28px Georgia,
    serif;
}
.feedback-dialog__panel label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
}
.feedback-dialog__panel select,
.feedback-dialog__panel textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-strong);
  color: var(--ink);
}
.feedback-dialog__panel select option {
  background: var(--surface);
  color: var(--ink);
}
.feedback-dialog__close {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}
.feedback-dialog__close span {
  position: absolute;
  top: 15px;
  left: 8px;
  width: 16px;
  height: 1px;
  background: var(--ink);
  transform: rotate(45deg);
}
.feedback-dialog__close span:last-child {
  transform: rotate(-45deg);
}
.feedback-dialog__panel textarea {
  min-height: 130px;
  resize: vertical;
}
.feedback-dialog__panel .feedback-checkbox {
  display: flex;
  align-items: center;
  font-weight: 500;
}
.feedback-list {
  width: min(760px, 100%);
  margin: 52px auto 0;
  text-align: center;
}
.feedback-page {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 56px 20px 80px;
}
.feedback-link {
  display: flex;
  justify-content: center;
  margin: 46px auto 0;
}
.feedback-link a {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  gap: 2px 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--ink);
  text-decoration: none;
}
.feedback-link span {
  grid-row: 1 / 3;
}
.feedback-link small {
  color: var(--muted);
}
.feedback-list > header {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.feedback-list h2 {
  margin: 2px 0;
  font:
    700 25px Georgia,
    serif;
}
.feedback-list article {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--surface);
  text-align: left;
}
.feedback-list article div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}
.feedback-list article p {
  margin: 9px 0;
}
.feedback-list article small,
.feedback-empty {
  color: var(--muted);
}
.feedback-page {
  width: min(1280px, calc(100% - 32px));
}
.feedback-list {
  width: 100%;
}
.feedback-list > header,
.home-feedback-preview > header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  text-align: left;
}
.feedback-list > header h1 {
  margin: 4px 0;
  font:
    700 clamp(34px, 5vw, 64px) Georgia,
    serif;
}
.feedback-podium {
  display: grid;
  gap: 18px;
  margin: 34px 0 54px;
}
.feedback-card {
  margin: 10px auto 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  background: var(--surface);
  text-align: left;
}
.feedback-card--rank-1 {
  width: 100%;
  border: 2px solid #c9a43b;
  box-shadow: 0 0 24px rgb(201 164 59 / 14%);
}
.feedback-card--rank-2 {
  width: 86%;
  border: 2px solid #9da5aa;
}
.feedback-card--rank-3 {
  width: 72%;
  border: 2px solid #a66b3d;
}
.feedback-card__meta,
.feedback-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.feedback-card__meta {
  color: var(--muted);
  font-size: 11px;
}
.feedback-card footer {
  justify-content: flex-end;
  margin-top: 14px;
}
.feedback-card footer strong {
  margin-right: auto;
}
.feedback-card footer button,
.home-community button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: transparent;
  color: var(--forest);
  font-weight: 800;
  cursor: pointer;
}
.feedback-all {
  width: min(900px, 100%);
  margin: 0 auto;
}
.home-community {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding: 60px 0 80px;
  text-align: center;
}
.home-community > h2 {
  margin: 8px auto 16px;
  font:
    700 clamp(30px, 4vw, 52px) Georgia,
    serif;
}
.home-community__lead {
  font-size: 19px;
  line-height: 1.6;
}
.home-community__share {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px auto 8px;
}
.home-community__share a,
.home-community__share button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  background: transparent;
  color: var(--forest);
  font:
    800 13px Inter,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.home-community__share-note {
  display: block;
  color: var(--muted);
}
.home-community__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 32px auto;
}
.home-community__actions p {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  line-height: 2;
}
.home-feedback-preview {
  margin-top: 44px;
}
.home-reading-open {
  position: relative;
  display: block;
  flex: 1;
  min-width: 0;
  padding-right: 8px;
  color: inherit;
  text-decoration: none;
}
.home-reading-details {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 2px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.25;
}
.home-reading-play {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  margin: 2px 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}
.home-reading-play svg {
  display: block;
  width: 20px;
  height: 20px;
  opacity: 0.9;
}
.home-reading-play:hover {
  border-color: #f03;
  background: color-mix(in srgb, #f03 7%, var(--surface));
}
.home-reading-play:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
.home-reading-play:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.42;
}
.home-reading-open small {
  position: static;
  display: inline-block;
  color: var(--forest);
  font-family: Inter, sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}
.home-reading-open:hover h2 {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
@media (max-width: 700px) {
  .feedback-card--rank-2,
  .feedback-card--rank-3 {
    width: 100%;
  }
  .home-community__actions {
    grid-template-columns: 1fr;
  }
  .feedback-list > header {
    align-items: stretch;
    flex-direction: column;
  }
}

/* One quiet scrollbar language across panels, lists and the document. */
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--forest) 58%, var(--line)) transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--forest) 58%, var(--line));
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--forest);
  background-clip: padding-box;
}

.book-selector--enhanced {
  display: none;
}
.book-picker {
  position: relative;
  width: 100%;
  min-width: 0;
}
.book-search {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.3;
  text-transform: none;
}
.book-search:focus {
  outline: 2px solid color-mix(in srgb, var(--forest) 42%, transparent);
  outline-offset: 2px;
}
.book-search-options[hidden] {
  display: none;
}
.book-search-options {
  position: absolute;
  z-index: 140;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  max-height: min(320px, 50vh);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgb(0 0 0 / 28%);
}
.book-search-option {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.book-search-option:hover,
.book-search-option.is-active,
.book-search-option[aria-selected='true'] {
  background: color-mix(in srgb, var(--forest) 16%, var(--surface));
}
.reader-loading-overlay {
  position: fixed;
  z-index: 2000;
  top: 74px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 8px 28px rgb(0 0 0 / 18%);
  color: var(--forest);
  pointer-events: none;
  transform: translateX(-50%);
}
.reader-loading-overlay span {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: reader-loading-spin 0.75s linear infinite;
}
@keyframes reader-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
.app-navigation-progress {
  position: fixed;
  z-index: 2100;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}
.app-navigation-progress span {
  display: block;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), var(--forest), transparent);
  animation: app-navigation-progress 0.8s ease-in-out infinite;
}
@keyframes app-navigation-progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(360%);
  }
}
.support-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  font:
    800 13px Inter,
    sans-serif;
  text-decoration: none;
}
.support-link:hover {
  border-color: var(--forest);
  background: var(--forest-soft);
}

@media (max-width: 1200px) {
  .topnav.topnav--open > a[href='/'] {
    order: 1;
  }
  .topnav.topnav--open > .theme-toggle {
    order: 5;
  }
  .topnav.topnav--open > a:not([href='/']) {
    order: 4;
  }
  .topnav.topnav--open > .menu-toggle {
    order: 5;
  }
  .mobile-insight-toggle {
    position: fixed;
    z-index: 90;
    right: 18px;
    bottom: 12px;
    width: 58px;
    height: auto;
    align-items: stretch;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  }
  .mobile-insight-summary {
    flex-direction: column;
    gap: 4px;
    color: var(--forest);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
  }
  .mobile-insight-summary button {
    flex: 0 0 42px;
    width: 42px;
    min-height: 42px;
  }
  body:has(.persistent-media-player--minimized:not([hidden])) .mobile-insight-toggle {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
  body:has(.persistent-media-player:not(.persistent-media-player--minimized):not([hidden]))
    .mobile-insight-toggle {
    bottom: calc(min(42vh, 360px) + 16px + env(safe-area-inset-bottom));
  }
  .insight-panel > .tabs {
    min-height: 62px;
    height: auto;
    align-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-block: 6px;
  }
  .mobile-insight-chapter-nav {
    position: sticky;
    z-index: 4;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 20px;
    min-height: 54px;
    margin: 0;
    border-bottom: 1px solid var(--line);
    padding: 6px 12px;
    background: var(--surface);
  }
  .mobile-insight-chapter-nav > span:nth-child(2) {
    padding-inline: 8px;
    white-space: nowrap;
  }
  .mobile-insight-chapter-nav a:last-child {
    text-align: right;
  }
  .mobile-insight-close {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    padding: 0;
    background: var(--surface);
    color: var(--ink);
    font-size: 22px;
    cursor: pointer;
    transform: translateY(-50%);
  }
  .mobile-insight-chapter-nav > a:last-of-type {
    padding-right: 38px;
  }
}
.reader-map-return {
  display: inline-flex;
  margin: 14px 0 0 18px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.reader-map-return:hover,
.reader-map-return:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.home-reading-gap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 13px 0;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.home-reading-gap::before,
.home-reading-gap::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--line);
}
.home-reading-gap small {
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.mobile-insight-summary {
  display: flex;
  width: 100%;
  gap: 5px;
}
.mobile-insight-summary button {
  display: inline-flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 4px;
  background: var(--surface);
  color: var(--forest);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 480px) {
  .mobile-insight-toggle {
    right: 18px;
    width: 58px;
    padding: 6px;
  }
  .topnav .theme-toggle {
    display: none;
  }
}

/* Responsive header fixes. */
@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
  .topbar {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    position: sticky;
    height: 60px;
    min-height: 60px;
    padding-inline: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .topbar > .brand {
    justify-self: start;
    gap: 8px;
  }
  .topbar:not(:has(.reader-workspace)) {
    row-gap: 16px;
  }
  .topnav {
    position: static;
    height: 46px;
    align-self: center;
    overflow: visible;
  }
  .home-page {
    padding: 30px 16px 80px;
  }
  .home-hero::before {
    background-position: var(
      --motif-image-position-mobile,
      var(--motif-image-position, right center)
    );
  }
  .settings-main {
    padding-inline: 16px;
  }
}
.mobile-insight-summary button:hover,
.mobile-insight-summary button:focus-visible {
  border-color: var(--forest);
  background: var(--forest-soft);
}
.insight-panel > .tabs .tab {
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  min-height: 62px;
  gap: 3px;
  border-bottom: 0;
  padding: 7px 8px 9px;
}
.insight-panel > .tabs .tab.active {
  border-bottom: 0;
}
.insight-panel > .tabs .tab i {
  color: var(--forest);
  font-size: 18px;
  font-style: normal;
}
.insight-panel > .tabs .tab::before {
  content: none !important;
}
.insight-panel > .tabs .tab span {
  margin: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.insight-panel > .tabs .tab .tab-symbol {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  gap: 5px;
}
.insight-panel > .tabs .tab .tab-count {
  border-radius: 9px;
  padding: 2px 5px;
  background: #ebe8df;
  color: #33443c;
  font-size: 9px;
}
.insight-panel > .tabs .tab .tab-label {
  color: currentColor;
  font-size: 9px;
  line-height: 1.1;
}
.insight-panel > .tabs .tab.active .tab-label {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.media-search-fallback > div {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.media-search-fallback a {
  text-decoration: none;
}
.personal-media {
  margin: 18px 28px 28px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.personal-media > summary {
  width: fit-content;
  border: 1px solid var(--forest);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--forest);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.personal-media > summary::-webkit-details-marker {
  display: none;
}
.personal-media__body {
  margin-top: 18px;
}
.personal-media__body > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.personal-media h3 {
  margin: 3px 0;
}
.personal-media__body > header a {
  text-decoration: none;
}
.personal-media__hint {
  color: var(--muted);
  font-size: 12px;
}
.personal-media__form {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(190px, 1.3fr) auto;
  gap: 8px;
}
.personal-media__form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: var(--surface);
  color: var(--ink);
}
.personal-media__list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.personal-media__list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
}
.personal-media__list article div {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.personal-media__list button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--surface);
  color: var(--forest);
  cursor: pointer;
}
.personal-media__status {
  display: block;
  min-height: 1.4em;
  margin-top: 7px;
  color: var(--forest);
}
@media (max-width: 700px) {
  .personal-media {
    margin-inline: 0;
  }
  .personal-media__body > header {
    align-items: flex-start;
    flex-direction: column;
  }
  .personal-media__form {
    grid-template-columns: 1fr;
  }
  .personal-media__list article {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 700px) {
  .home-hero {
    min-height: 380px;
    align-content: end;
    padding: 18px 22px 12px;
  }
  .home-page [data-motif-image] {
    object-position: var(--motif-image-position-mobile, var(--motif-image-position, center));
  }
  .home-readings > header {
    margin-bottom: 10px;
  }
  .home-readings > header h2 {
    font-size: 26px;
  }
  .home-hero h1 {
    margin-top: 0;
    transform: translateY(12px);
  }
  .home-hero > .eyebrow {
    margin-bottom: 0;
    transform: translateY(12px);
  }
  .home-hero::before {
    background-position: var(
      --motif-image-position-mobile,
      var(--motif-image-position, right center)
    );
    background-size: cover;
  }
  [data-sacred-theme='friday'] .home-hero::before,
  [data-theme='light'][data-sacred-theme='friday'] .home-hero::before {
    background-position: var(
      --motif-image-position-mobile,
      var(--motif-image-position, right center)
    );
    background-size: cover;
  }
  [data-sacred-theme='sunday'] .home-hero::before {
    background-position: var(
      --motif-image-position-mobile,
      var(--motif-image-position, right center)
    );
    background-size: cover;
  }
  .home-hero::after {
    background: linear-gradient(
      180deg,
      transparent 30%,
      rgb(4 18 15 / 88%) 76%,
      rgb(4 18 15 / 96%)
    );
  }
  [data-theme='light'] .home-hero::after {
    background: radial-gradient(
      ellipse 34% 24% at 22% 84%,
      rgb(255 253 247 / 74%) 0%,
      rgb(255 253 247 / 52%) 42%,
      rgb(255 253 247 / 12%) 76%,
      transparent 100%
    );
  }
  .home-hero > *:not(.home-hero__video, .home-hero__haze) {
    width: 100%;
  }
  [data-theme='light'] .home-hero::before {
    background-position: var(
      --motif-image-position-mobile,
      var(--motif-image-position, right center)
    );
  }
}
.reader-map-panel {
  padding: 18px;
}
#passage-map {
  width: 100%;
  height: min(560px, calc(100vh - 280px));
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
}

#passage-map .maplibregl-canvas {
  filter: none;
}

.biblical-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.biblical-map-overlay [data-overlay-regions] path {
  fill: rgb(180 135 60 / 20%);
  stroke: #9a6d25;
  stroke-width: 2;
  stroke-dasharray: 7 5;
}

.biblical-map-overlay [data-overlay-regions] text {
  fill: #604916;
  stroke: rgb(255 250 240 / 92%);
  stroke-width: 3px;
  paint-order: stroke fill;
  text-anchor: middle;
  font:
    800 14px/1 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: 0.08em;
}

.biblical-map-overlay [data-overlay-routes] path {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.biblical-map-overlay [data-overlay-routes] .journey-route-current,
.biblical-map-overlay [data-overlay-routes] .journey-route-previous {
  stroke: #2f9368;
  stroke-width: 4;
  filter: drop-shadow(0 1px 1px rgb(255 255 255 / 65%));
}

.biblical-map-overlay [data-overlay-routes] .journey-route-current {
  opacity: 0.84;
}

.biblical-map-overlay [data-overlay-routes] .journey-route-active {
  stroke: #deb240;
  stroke-width: 5;
  opacity: 0.94;
}

.biblical-map-overlay [data-overlay-routes] .journey-route--boat {
  stroke: #2677c9;
  stroke-dasharray: 10 8;
}

.biblical-map-overlay [data-overlay-routes] .journey-route--direct {
  stroke-linecap: butt;
}

.passage-location-banner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.8rem 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--forest) 42%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--forest-soft) 65%, var(--surface));
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
}

.passage-location-banner__icon {
  color: var(--muted);
  font-size: 1.25rem;
}

.passage-location-banner__place {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.passage-map-link {
  margin-left: auto;
  border: 1px solid var(--forest);
  border-radius: 6px;
  background: color-mix(in srgb, var(--forest) 12%, var(--surface));
  color: var(--forest);
  font-weight: 700;
}

html:not([data-map-standalone='true']) .biblical-place-marker strong {
  opacity: 1;
}

.biblical-map-page {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.biblical-map-page > header p:last-child {
  color: var(--muted);
}

.journey-book-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.journey-book-picker a {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  text-decoration: none;
}

.standalone-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 1rem;
}

.standalone-map-layout #passage-map {
  height: min(72vh, 760px);
}

html[data-map-journey]:not([data-map-journey='']) .standalone-map-layout #passage-map {
  height: min(55vh, 620px);
}

.standalone-map-layout aside {
  max-height: min(72vh, 760px);
  overflow: auto;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.journey-stage {
  display: grid !important;
  grid-template-columns: 2rem 1fr;
  gap: 0.15rem 0.5rem;
}
.journey-stage[role='button'] {
  cursor: pointer;
}
.journey-stage[role='button']:hover,
.journey-stage[role='button']:focus-visible {
  border-color: var(--forest);
  background: color-mix(in srgb, var(--forest) 8%, transparent);
  outline: none;
}

.journey-stage > span {
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--surface);
}

.journey-stage a {
  color: var(--forest);
  font-size: 0.78rem;
}

.journey-stage small {
  color: var(--muted);
  font-size: 0.72rem;
}

.journey-stage--future {
  opacity: 0.68;
}

.journey-stage--current {
  border-color: var(--gold) !important;
  background: color-mix(in srgb, var(--gold) 9%, transparent);
}

.journey-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2rem 0.8rem;
  align-items: center;
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.journey-progress input {
  width: 100%;
  accent-color: var(--forest);
}

.journey-progress output {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
}

.journey-playback {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.25rem 0 0.75rem;
}

.journey-playback button {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--forest);
  font-weight: 700;
}

.journey-playback button[aria-pressed='true'] {
  border-color: var(--forest);
  background: var(--forest-soft);
}

.journey-more {
  width: fit-content;
  margin: -0.35rem 0 0.75rem;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.journey-more summary {
  width: fit-content;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  background: var(--surface);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.journey-more summary::-webkit-details-marker {
  display: none;
}

.journey-more__content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.journey-more__content .passage-map-layers {
  margin: 0;
}

.journey-more__content button {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  background: transparent;
  font-weight: 700;
}

.map-center-control {
  position: absolute;
  z-index: 7;
  top: 92px;
  right: 10px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--app-map-control-ink);
  background: var(--app-map-control-background);
  box-shadow: 0 1px 4px rgb(0 0 0 / 30%);
  font-size: 18px;
  font-weight: 800;
}

.map-context-legend {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font:
    0.75rem/1.4 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
}

.map-context-legend i {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #496b9b;
}

.maplibregl-ctrl-scale {
  border-color: var(--app-map-control-ink);
  color: var(--app-map-control-ink);
  background: var(--app-map-control-background);
  font-weight: 700;
}

@media (max-width: 820px) {
  .passage-location-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .passage-location-banner a:first-of-type {
    margin-left: 0;
  }

  .standalone-map-layout {
    grid-template-columns: 1fr;
  }
}
.passage-map-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 12px 0;
  color: var(--muted);
  font-size: 9px;
}

.passage-map-layers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
}

.passage-map-layers button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.passage-map-layers button[aria-pressed='true'] {
  border-color: var(--forest);
  color: var(--forest);
  background: color-mix(in srgb, var(--forest) 12%, var(--surface));
}

.biblical-place-marker {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #173a2e;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgb(255 250 240 / 90%));
  z-index: 3;
}

.biblical-place-marker span {
  display: block;
  width: 16px;
  height: 16px;
  border: 3px solid #fffaf0;
  border-radius: 50%;
  background: #818985;
  box-shadow: 0 1px 5px rgb(0 0 0 / 35%);
}

.biblical-place-marker--context span {
  position: absolute;
  inset: 2px;
  width: 12px;
  height: 12px;
  border-width: 2px;
  background: #818985;
}

.biblical-place-marker--context strong {
  color: #354f73;
  font-size: 10px;
}

.biblical-place-marker--travelled span,
.biblical-place-marker--from span {
  background: #2f9368;
}

.biblical-place-marker--current span {
  outline: 4px solid rgb(222 178 64 / 35%);
  background: #deb240;
}

.biblical-place-marker--requested span {
  outline: 7px solid rgb(255 196 37 / 80%);
  background: #ffbd12;
  transform: scale(1.3);
}

.biblical-place-marker--requested::after {
  position: absolute;
  inset: -13px;
  border: 3px solid #ffbd12;
  border-radius: 50%;
  content: '';
  animation: requested-place-pulse 900ms ease-out infinite;
}

.biblical-event-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #fffaf0;
  border-radius: 9px 9px 9px 2px;
  background: #6f4a85;
  box-shadow: 0 2px 8px rgb(0 0 0 / 35%);
  color: #fff;
  cursor: pointer;
  font:
    800 15px/1 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  transform: rotate(-45deg);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.biblical-event-marker > span {
  transform: rotate(45deg);
}

.biblical-event-marker--healing {
  background: #247a66;
}

.biblical-event-marker--miracle {
  background: #9b6e15;
}

.biblical-event-marker--prayer {
  background: #405a8c;
}

.biblical-event-marker--active {
  outline: 5px solid rgb(222 178 64 / 45%);
  transform: rotate(-45deg) scale(1.18);
}

.biblical-event-marker--future {
  opacity: 0.45;
}

.journey-context-panel {
  position: absolute;
  z-index: 7;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  left: clamp(12px, 2vw, 24px);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  width: min(680px, calc(100% - clamp(24px, 4vw, 48px)));
  max-height: min(42%, 310px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 12px 36px rgb(0 0 0 / 24%);
  backdrop-filter: blur(15px) saturate(1.15);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.journey-context-panel__toggle {
  display: grid;
  place-items: center;
  align-self: start;
  justify-self: center;
  width: 30px;
  height: 30px;
  margin-top: 0.65rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--forest);
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.journey-context-panel__toggle:hover {
  border-color: var(--forest);
  background: var(--forest-soft);
}

.journey-context-panel__toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.journey-context-panel__toggle[aria-expanded='true'] svg {
  transform: rotate(180deg);
}

.journey-context-panel__content {
  min-width: 0;
  padding: 0.75rem 1rem;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.journey-context-panel .eyebrow {
  margin: 0 0 0.16rem;
}

.journey-context-panel h2 {
  margin: 0;
  overflow: hidden;
  font:
    700 clamp(1rem, 2vw, 1.3rem) / 1.25 Georgia,
    serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-context-panel h2 a {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  text-overflow: ellipsis;
}

.journey-context-panel h2 a:hover,
.journey-context-panel h2 a:focus-visible {
  text-decoration-color: currentColor;
}

.journey-context-panel__meta {
  margin: 0.22rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.journey-context-panel__excerpt,
.journey-context-panel footer {
  display: none;
}

.journey-context-panel--expanded .journey-context-panel__excerpt {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-family: Georgia, serif;
  line-height: 1.55;
}

.journey-context-panel--expanded .journey-context-panel__excerpt p {
  margin: 0;
}

.journey-context-panel--expanded footer:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.journey-context-panel footer button,
.journey-context-panel footer a {
  padding: 0.42rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 750;
  text-decoration: none;
}

.journey-context-panel footer .primary {
  margin-right: auto;
  background: var(--forest);
  color: var(--surface);
}

.journey-context-panel footer button:disabled {
  opacity: 0.42;
}

.journey-stage--boat > span {
  border: 2px dashed #fffaf0;
  background: #2677c9;
}

.journey-stage--same-position > span {
  background: #777;
}

@media (max-width: 620px) {
  .journey-context-panel {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: 36%;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .journey-context-panel__content {
    padding: 0.6rem 0.75rem;
  }

  .journey-context-panel--expanded footer:not([hidden]) {
    flex-wrap: wrap;
  }

  .journey-context-panel footer .primary {
    order: -1;
    width: 100%;
    margin-right: 0;
    text-align: center;
  }
}

@keyframes requested-place-pulse {
  from {
    opacity: 1;
    transform: scale(0.55);
  }
  to {
    opacity: 0;
    transform: scale(1.35);
  }
}

.verse-place-badge {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-inline-start: 0.35rem;
  border-radius: 50%;
  color: var(--forest);
  opacity: 0.58;
  font:
    700 0.78rem/1 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
}

.journey-speed {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font:
    700 0.75rem/1 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
}

.journey-speed select {
  width: auto;
  min-width: 4.5rem;
  padding: 0.35rem 1.7rem 0.35rem 0.55rem;
}

.journey-auto-zoom {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font:
    700 0.75rem/1 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
}

.verse-place-badge:hover,
.verse-place-badge:focus-visible {
  background: color-mix(in srgb, var(--gold) 18%, var(--surface));
  opacity: 1;
}

.biblical-place-marker strong {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.12rem 0.3rem;
  border-radius: 3px;
  background: rgb(255 250 240 / 88%);
  font:
    700 12px/1.2 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.biblical-place-marker--from strong,
.biblical-place-marker--current strong,
.biblical-place-marker:hover strong,
.biblical-place-marker:focus-visible strong {
  opacity: 1;
}

.biblical-place-marker--label-visible strong {
  opacity: 1;
}

#passage-map.map-all-places
  .biblical-place-marker:not(.biblical-place-marker--label-visible):not(:hover):not(
    :focus-visible
  ):not(.biblical-place-marker--current):not(.biblical-place-marker--from)
  strong {
  opacity: 0;
}

#passage-map.map-route-endpoints-only
  .biblical-place-marker:not(.biblical-place-marker--from):not(.biblical-place-marker--current) {
  display: none;
}
.passage-map-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.passage-map-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.passage-map-legend span:first-child i {
  background: var(--forest);
}
#passage-map-relations {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}
#passage-map-relations li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 7px 2px;
  font-size: 10px;
}
#passage-map-relations li span,
.map-data-note {
  color: var(--muted);
}
.maplibregl-popup-content {
  border-radius: 8px;
  color: #17251f;
  font-family: Inter, sans-serif;
}
@media (max-width: 800px) {
  .home-page {
    padding: 34px 14px 72px;
  }
  .home-passages,
  .home-random-result {
    grid-template-columns: 1fr;
  }
  .home-reading-grid {
    columns: 1;
  }
  .home-passage-card,
  .home-random-prompt {
    padding: 24px 20px;
  }
  .home-passage-card blockquote {
    font-size: 18px;
  }
}
@media (max-width: 650px) {
  .reader-workspace--compare {
    grid-template-columns: 1fr !important;
  }
  .comparison-panel {
    position: static;
    height: min(760px, calc(100vh - 90px));
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 20px 14px;
  }
  .search-compare-bar {
    right: 10px;
    bottom: 68px;
    left: 10px;
    flex-wrap: wrap;
  }
  .passage-actions-layer {
    margin-left: 0;
  }
  .passage-actions-layer .passage-actions-toggle {
    left: -11px;
  }
  .passage-actions-layer .selection-toolbar {
    position: static;
    width: min(260px, calc(100vw - 72px));
  }
  .tag-bulk {
    grid-template-columns: 1fr;
  }
  .tag-bulk small {
    grid-column: auto;
  }
  .taxonomy-page {
    padding: 26px 12px 80px;
  }
  .taxonomy-grid {
    grid-template-columns: 1fr;
  }
  .app-shell {
    padding-bottom: 66px;
  }
  .topbar {
    height: auto;
    padding: 12px 16px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .brand {
    justify-content: center;
  }
  .topnav {
    top: 8px;
    right: 8px;
    bottom: auto;
    left: auto;
    justify-content: flex-end;
  }
  .topnav a {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 5px;
    font-size: 9px;
  }
  .topnav > a[href='/'] {
    display: none;
  }
  .topnav.topnav--open a {
    display: flex;
  }
  body:has(.reader-workspace) .topbar {
    position: relative;
    display: block;
    height: 60px;
    min-height: 60px;
    padding: 0 14px;
  }
  body:has(.reader-workspace) .brand {
    display: none;
  }
  body:has(.reader-workspace) #passage-search {
    position: absolute;
    z-index: 81;
    top: 9px;
    right: 58px;
    left: auto;
    display: flex;
    width: min(260px, calc(100vw - 94px));
    height: 42px;
    margin: 0;
  }
  body:has(.reader-workspace) #passage-search input {
    min-width: 0;
    margin-top: 0;
  }
  body:has(.reader-workspace) .topnav {
    position: absolute;
    top: 9px;
    right: 10px;
    bottom: auto;
    left: auto;
    width: 40px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  body:has(.reader-workspace) .topnav > .menu-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  body:has(.reader-workspace) .topnav.topnav--open {
    z-index: 82;
    top: 54px;
    right: 10px;
    width: min(220px, calc(100vw - 20px));
    height: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 8px 28px rgb(0 0 0 / 18%);
  }
  body:has(.reader-workspace) .topnav.topnav--open > a[href='/'] {
    display: flex;
  }
  main {
    padding: 0 12px 16px;
  }
  .passage-head {
    display: block;
  }
  .head-actions {
    margin-top: 16px;
    justify-content: flex-start;
  }
  .head-actions label {
    width: 100%;
  }
  select {
    width: 100%;
  }
  .workspace {
    border-left: 0;
    border-right: 0;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .reading-panel,
  .tab-content {
    padding: 20px 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .insight-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .selection-toolbar {
    position: static;
    flex-wrap: wrap;
    overflow: visible;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: none;
  }
  .selection-toolbar > span:first-child {
    min-width: 150px;
  }
  .reader-controls label,
  .reader-controls select {
    min-width: 0;
    max-width: 100%;
  }
  .edition-source {
    overflow-wrap: anywhere;
  }
  .verses {
    padding-left: 0;
    padding-right: 0;
  }
  .verse {
    font-size: var(--reader-font-size);
  }
  .tabs {
    gap: 13px;
    padding: 0 12px;
  }
  .tab {
    font-size: 10px;
  }
  .settings-heading {
    align-items: flex-start;
    padding: 24px 0;
  }
  .import-panel form {
    grid-template-columns: 1fr;
  }
  .edition-summary {
    flex-wrap: wrap;
  }
  .edition-card__actions {
    flex-wrap: wrap;
  }
  .reader-controls {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 8px;
    padding: 8px 0;
  }
  .reader-controls__selectors {
    grid-template-columns: minmax(0, 1fr) 86px;
  }
  .reader-controls__selectors label:has(#edition-selector) {
    grid-column: 1 / -1;
  }
  .library-shortcuts {
    grid-template-columns: 1fr;
  }
  .backup-verify {
    grid-template-columns: 1fr;
  }
  .backup-verify button,
  .backup-verify small {
    grid-column: 1;
  }
  .collection-create {
    align-items: stretch;
    flex-direction: column;
  }
  .collection-card footer input,
  .collection-card footer button {
    width: 100%;
  }
  .chapter-nav {
    gap: 8px;
    font-size: 9px;
  }
  .chapter-nav a {
    min-width: 104px;
    min-height: 58px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Spójne akcje i bardziej zwarty układ ekranów roboczych. */
.search-result-selectable {
  padding-bottom: 34px;
}
.search-result-compare {
  bottom: 2px;
}
.search-compare-bar [data-clear-compare],
.search-compare-bar [data-clear-comparison] {
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  padding: 7px 10px;
  color: var(--muted);
  font-weight: 700;
}
.library-section--muted {
  opacity: 0.58;
}
.history-headline {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.history-headline p {
  margin: 0;
}
.history-headline span {
  border-radius: 12px;
  background: var(--forest-soft);
  padding: 3px 8px;
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
}
.history-headline .history-clear {
  margin: 0 0 0 auto;
}
.history-page .library-head {
  margin-bottom: 18px;
}
.history-page .history-group {
  margin-top: 20px;
}
.history-page .library-list {
  gap: 7px;
}
.history-page .history-card {
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 54px;
  padding: 10px 14px;
}
.history-card__select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: transparent;
  color: var(--forest);
  font-size: 9px;
  font-weight: 800;
}
.history-card--selected {
  border-color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--forest);
}
.collection-passage button,
.collection-card footer button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 700;
}
.collection-passage button,
.collection-card footer .danger {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
  color: var(--danger);
}
@media (max-width: 980px) {
  .reader-workspace:not(.reader-workspace--compare) {
    grid-template-columns: minmax(0, 1fr);
  }
  .reader-workspace:not(.reader-workspace--compare) > .insight-panel {
    position: fixed;
    z-index: 70;
    inset: 72px 10px 62px;
    display: none;
    box-sizing: border-box;
    width: auto;
    height: calc(100vh - 134px);
    height: calc(100dvh - 134px);
    min-height: 0;
    max-width: none;
    max-height: none;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 60px rgb(0 0 0 / 48%);
  }
  .reader-workspace:not(.reader-workspace--compare) > .insight-panel.insight-panel--mobile-open {
    display: block;
  }
  .mobile-insight-toggle {
    display: inline-flex;
    width: 58px;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 6px;
    background: var(--surface);
    color: var(--forest);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    box-shadow: none;
  }
  .mobile-insight-summary {
    flex-direction: column;
    gap: 4px;
  }
  .mobile-insight-toggle:not(.mobile-insight-toggle--open) .mobile-insight-summary {
    display: none;
  }
  .mobile-insight-toggle:not(.mobile-insight-toggle--open) {
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .mobile-insight-handle {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    align-self: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    padding: 0;
    background: var(--surface);
    color: var(--forest);
    cursor: pointer;
  }
  .mobile-insight-handle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
  }
  .mobile-insight-summary button {
    box-sizing: border-box;
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 5px 2px;
    gap: 2px;
  }
  body:has(.mobile-insight-toggle) .feedback-launcher {
    bottom: calc(76px + env(safe-area-inset-bottom));
    z-index: 95;
  }
  body:has(.mobile-insight-toggle--open) .feedback-launcher {
    bottom: calc(352px + env(safe-area-inset-bottom));
  }
  body:has(.persistent-media-player--minimized:not([hidden])) .feedback-launcher {
    bottom: calc(146px + env(safe-area-inset-bottom));
  }
  body:has(.persistent-media-player--minimized:not([hidden])):has(.mobile-insight-toggle--open)
    .feedback-launcher {
    bottom: calc(422px + env(safe-area-inset-bottom));
  }
  body:has(.persistent-media-player:not(.persistent-media-player--minimized):not([hidden]))
    .feedback-launcher {
    bottom: calc(min(42vh, 360px) + 80px + env(safe-area-inset-bottom));
  }
  body:has(.persistent-media-player:not(.persistent-media-player--minimized):not([hidden])):has(
      .mobile-insight-toggle--open
    )
    .feedback-launcher {
    bottom: calc(min(42vh, 360px) + 356px + env(safe-area-inset-bottom));
  }
}

.admin-login {
  width: min(100% - 32px, 520px);
  margin: clamp(40px, 12vh, 120px) auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  background: var(--surface);
}
.admin-login h1 {
  margin-bottom: 8px;
}
.admin-login form {
  display: grid;
  gap: 10px;
  margin: 24px 0 16px;
}
.admin-login form label {
  font-size: 12px;
  font-weight: 700;
}
.admin-login form input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--paper);
  color: var(--ink);
}
.admin-login form button {
  justify-self: start;
  margin-top: 6px;
}
.admin-login > a {
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
}
.admin-login-message {
  border-left: 2px solid var(--gold);
  padding: 8px 12px;
  color: var(--muted);
}
.admin-login-message--error {
  border-left-color: var(--danger);
  color: var(--danger);
}
.settings-heading__actions,
.settings-admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.settings-admin-actions form {
  margin: 0;
}
.settings-admin-actions a,
.settings-admin-login {
  font-size: 12px;
}

.map-disclaimer,
.map-data-note {
  display: block;
  border-left: 2px solid var(--gold);
  padding: 8px 10px;
  color: var(--muted);
  line-height: 1.45;
}
.passage-media {
  margin: 0 28px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 14px;
}
.passage-media summary {
  cursor: pointer;
  color: var(--forest);
  font-weight: 800;
}
.passage-media__recommendation {
  display: grid;
  gap: 8px;
  padding: 12px 0;
}
.passage-media__recommendation + .passage-media__recommendation {
  border-top: 1px solid var(--line);
}
.passage-media__recommendation > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.passage-media__recommendation h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}
.passage-media__recommendation h3 a {
  color: var(--ink);
  text-decoration: none;
}
.passage-media__recommendation h3 a::after {
  margin-inline-start: 0.35em;
  color: var(--muted);
  content: '↗';
  font-size: 0.72em;
  opacity: 0.55;
}
.passage-media__recommendation h3 a:hover,
.passage-media__recommendation h3 a:focus-visible {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.passage-media__language {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
  opacity: 0.68;
}
.passage-media__language--pl {
  background: linear-gradient(to bottom, #fff 0 50%, #dc143c 50% 100%);
}
.passage-media__language--en {
  background:
    linear-gradient(#3c3b6e, #3c3b6e) left top / 42% 54% no-repeat,
    repeating-linear-gradient(to bottom, #b22234 0 7.7%, #fff 7.7% 15.4%);
}
.passage-media__channel,
.passage-media__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}
.passage-media__channel span {
  margin-inline-end: 0.45rem;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.passage-media__links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}
.personal-media__list a {
  color: var(--forest);
  font-weight: 700;
}
.passage-media__frame {
  position: relative;
  width: 100%;
  margin: 12px 0;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}
.passage-media__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 700px) {
  .passage-media {
    margin-inline: 0;
  }
}

/* Reader action labels use one UI typeface and remain explicit on touch screens. */
.selection-toolbar,
.selection-toolbar button,
.selection-toolbar summary,
.selection-toolbar select,
.selection-toolbar .toolbar-link {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.selection-toolbar .selection-favorite {
  font-size: 10px;
  font-weight: 800;
}

/* Tabs use two calm rows instead of a horizontal scrollbar. */
.insight-panel > .tabs {
  flex-wrap: wrap;
  gap: clamp(5px, 1.4vw, 16px);
  height: auto;
  min-height: 76px;
  align-content: center;
  overflow-x: visible;
  padding-block: 8px;
}
.insight-panel > .tabs .tab {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}

/* Ranking is communicated by medals, not competing widths and border colours. */
.feedback-card--rank-1,
.feedback-card--rank-2,
.feedback-card--rank-3 {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: none;
}
.feedback-medal {
  display: inline-block;
  margin-right: 0.45rem;
  font-size: 1rem;
  vertical-align: middle;
}

.support-page {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding-block: 42px 80px;
}
.support-page > header {
  margin: 32px 0;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.support-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

@media (max-width: 820px) {
  .standalone-map-layout > div {
    display: flex;
    flex-direction: column;
  }
  .standalone-map-layout #passage-map {
    order: 1;
    height: min(68vh, 680px);
  }
  .standalone-map-layout .passage-map-layers {
    order: 2;
    margin-top: 0.8rem;
  }
  .standalone-map-layout .journey-progress {
    order: 3;
  }
  .standalone-map-layout .journey-playback {
    order: 4;
  }
  .standalone-map-layout .journey-more {
    order: 5;
  }
  .standalone-map-layout .map-context-legend {
    order: 6;
  }
}

@media (max-width: 700px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.support-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  overflow: hidden;
}
.support-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--forest) 10%, var(--surface));
  color: var(--forest);
  font-size: 1.35rem;
}
.support-card h2 {
  margin-top: 5px;
}
.support-card button,
.support-card a {
  color: var(--forest);
  font-weight: 800;
}
.support-card button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.support-dialog {
  width: min(590px, calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 70px rgb(0 0 0 / 24%);
}
.support-dialog::backdrop {
  background: rgb(10 18 14 / 58%);
}
.support-dialog form,
.support-dialog label {
  display: grid;
  gap: 8px;
}
.support-dialog form {
  gap: 16px;
}
.support-dialog header {
  display: flex;
  justify-content: space-between;
}
.support-dialog input,
.support-dialog textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 10px;
}
.support-dialog textarea {
  min-height: 125px;
}

.passage-media__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--forest);
  font:
    700 13px Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  cursor: pointer;
}
.passage-media__play:hover {
  border-color: var(--forest);
  background: var(--forest-soft);
}
.passage-media__play svg {
  display: block;
  width: 19px;
  height: 19px;
  opacity: 0.9;
}
.persistent-media-player {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: 16px;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 55px rgb(0 0 0 / 28%);
}
.persistent-media-player header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 10px 8px 13px;
  cursor: move;
  user-select: none;
}
.persistent-media-player header div {
  min-width: 0;
  margin-right: auto;
}
.persistent-media-player header small,
.persistent-media-player header strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.persistent-media-player header small {
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
}
.persistent-media-player header button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}
.persistent-media-player header [data-player-youtube] {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font:
    700 11px Inter,
    sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.persistent-media-player header [data-player-youtube]:hover {
  border-color: #f03;
  color: #f03;
}
.persistent-media-player__video {
  aspect-ratio: 16 / 9;
  background: #000;
}
.persistent-media-player__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.persistent-media-player--minimized {
  width: min(300px, calc(100vw - 32px));
}
.persistent-media-player--minimized .persistent-media-player__video {
  display: none;
}
.persistent-app-stage {
  position: fixed;
  z-index: 900;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper);
}
@media (max-width: 700px) {
  .persistent-media-player {
    right: 118px !important;
    bottom: 64px !important;
    left: auto !important;
    top: auto !important;
    width: min(390px, calc(100vw - 130px));
    border-radius: 12px;
  }
  .persistent-media-player:not(.persistent-media-player--minimized) {
    display: flex;
    flex-direction: column;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    top: auto !important;
    width: 100vw;
    height: min(42vh, 360px);
    max-height: min(42vh, 360px);
    border-radius: 14px 14px 0 0;
  }
  .persistent-media-player:not(.persistent-media-player--minimized) header {
    flex: 0 0 auto;
  }
  .persistent-media-player--minimized {
    right: 10px !important;
    bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    left: auto !important;
    top: auto !important;
    width: min(300px, calc(100vw - 20px));
    border-radius: 12px;
    box-shadow: 0 8px 28px rgb(0 0 0 / 24%);
  }
  body:has(.persistent-media-player--minimized:not([hidden])) .feedback-launcher {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
  .persistent-media-player header {
    cursor: default;
  }
  .persistent-media-player__video {
    max-height: 32vh;
  }
  .persistent-media-player:not(.persistent-media-player--minimized)
    .persistent-media-player__video {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }
  body:has(.persistent-media-player:not(.persistent-media-player--minimized):not([hidden]))
    .feedback-launcher {
    bottom: calc(min(42vh, 360px) + 12px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 480px) {
  .persistent-media-player {
    right: 66px !important;
    width: calc(100vw - 74px);
  }
}

/* Keep the compact navigation in the header and let its menu overlay the page. */
@media (max-width: 700px) {
  .topbar {
    z-index: 100;
  }
  .topbar > .topnav,
  body:has(.reader-workspace) .topnav {
    position: absolute;
    top: 8px;
    right: 12px;
    bottom: auto;
    left: auto;
    display: flex;
    width: auto;
    height: 40px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
  }
  .topbar > .topnav:not(.topnav--open) > a[href='/'],
  body:has(.reader-workspace) .topnav:not(.topnav--open) > a[href='/'] {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
  }
  .topbar > .topnav > .menu-toggle,
  body:has(.reader-workspace) .topnav > .menu-toggle {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .topbar > .topnav.topnav--open,
  body:has(.reader-workspace) .topnav.topnav--open {
    z-index: 110;
    top: 54px;
    right: 12px;
    left: auto;
    display: flex;
    width: min(220px, calc(100vw - 24px));
    max-height: calc(100vh - 66px);
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 8px 28px rgb(0 0 0 / 22%);
  }
  .topbar > .topnav.topnav--open > a,
  body:has(.reader-workspace) .topnav.topnav--open > a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid var(--line);
    padding: 8px 12px;
    font-size: 13px;
  }
  .topbar > .topnav.topnav--open > .theme-toggle,
  body:has(.reader-workspace) .topnav.topnav--open > .theme-toggle {
    display: block;
    position: relative;
    inset: auto;
    align-self: flex-end;
    margin: 8px 4px 4px;
  }
  .topbar > .topnav.topnav--open > .menu-toggle,
  body:has(.reader-workspace) .topnav.topnav--open > .menu-toggle {
    align-self: flex-end;
  }
  body:has(.reader-workspace) .topbar {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 40px 40px;
    align-content: start;
    gap: 8px;
    width: 100%;
    height: auto;
    min-height: 104px;
    padding: 8px 16px;
  }
  body:has(.reader-workspace) .brand {
    display: flex;
    justify-content: flex-start;
    min-width: 0;
    white-space: nowrap;
  }
  body:has(.reader-workspace) #passage-search {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  body:has(.reader-workspace) .topbar > .topnav {
    position: absolute;
    top: 8px;
    right: 12px;
  }
  .home-hero {
    background-color: #111b18;
  }
  .home-hero::after {
    background:
      linear-gradient(90deg, rgb(5 22 19 / 10%) 0%, rgb(5 22 19 / 5%) 38%, transparent 66%),
      linear-gradient(180deg, rgb(5 22 19 / 32%), transparent 38%, rgb(5 22 19 / 24%)),
      radial-gradient(ellipse at center, transparent 72%, rgb(17 22 18 / 68%) 100%);
  }
  [data-theme='light'] .home-hero::after {
    background: radial-gradient(
      ellipse 34% 24% at 22% 84%,
      rgb(255 253 247 / 74%) 0%,
      rgb(255 253 247 / 52%) 42%,
      rgb(255 253 247 / 12%) 76%,
      transparent 100%
    );
  }
}

@media (min-width: 981px) and (max-width: 1200px) {
  .reader-workspace {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  }
  .reader-workspace > .reading-panel {
    width: auto;
    min-width: 0;
    max-width: none;
    resize: none;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}

@media (max-width: 1200px) {
  .topbar:has(> .search) > .topnav.topnav--open,
  .topbar > .topnav.topnav--open,
  body:has(.reader-workspace) .topbar > .topnav.topnav--open {
    position: absolute;
    z-index: 110;
    top: 8px;
    right: 12px;
    bottom: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(220px, calc(100vw - 24px));
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 48px 8px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .topbar:has(> .search) > .topnav.topnav--open::before,
  .topbar > .topnav.topnav--open::before,
  body:has(.reader-workspace) .topbar > .topnav.topnav--open::before {
    position: absolute;
    z-index: 0;
    inset: 48px 0 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 8px 28px rgb(0 0 0 / 22%);
    content: '';
  }
  .topbar:has(> .search) > .topnav.topnav--open > a[href='/'],
  .topbar > .topnav.topnav--open > a[href='/'],
  body:has(.reader-workspace) .topbar > .topnav.topnav--open > a[href='/'] {
    position: fixed;
    z-index: 2;
    top: 8px;
    right: 52px;
    display: flex;
    width: auto;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 0;
    padding: 0 8px;
    background: transparent;
  }
  .topbar:has(> .search) > .topnav.topnav--open > a:not([href='/']),
  .topbar > .topnav.topnav--open > a:not([href='/']),
  body:has(.reader-workspace) .topbar > .topnav.topnav--open > a:not([href='/']) {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 40px;
    width: 100%;
    box-sizing: border-box;
  }
  .topbar:has(> .search) > .topnav.topnav--open > .menu-toggle,
  .topbar > .topnav.topnav--open > .menu-toggle,
  body:has(.reader-workspace) .topbar > .topnav.topnav--open > .menu-toggle {
    position: fixed;
    z-index: 2;
    top: 8px;
    right: 12px;
    display: grid;
    align-self: auto;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: 0;
  }
  .topbar:has(> .search) > .topnav.topnav--open > .theme-toggle,
  .topbar > .topnav.topnav--open > .theme-toggle,
  body:has(.reader-workspace) .topbar > .topnav.topnav--open > .theme-toggle {
    position: relative;
    z-index: 1;
    align-self: flex-end;
    margin: 8px;
  }
  .topbar > .topnav:not(.topnav--open) > a[href='/'],
  .topbar:has(> .search) > .topnav:not(.topnav--open) > a[href='/'],
  body:has(.reader-workspace) .topbar > .topnav:not(.topnav--open) > a[href='/'] {
    position: fixed;
    z-index: 2;
    top: 8px;
    right: 52px;
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
  }
  .topbar > .topnav:not(.topnav--open) > .menu-toggle,
  .topbar:has(> .search) > .topnav:not(.topnav--open) > .menu-toggle,
  body:has(.reader-workspace) .topbar > .topnav:not(.topnav--open) > .menu-toggle {
    position: fixed;
    z-index: 2;
    top: 8px;
    right: 12px;
    display: grid;
    width: 40px;
    height: 40px;
    margin: 0;
  }
}

/* Mobile reader tools use a full-screen layer so reader content cannot show around them. */
@media (max-width: 980px) {
  .reader-workspace:not(.reader-workspace--compare) > .insight-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 150;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: none;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    overscroll-behavior: contain;
  }
  .reader-workspace:not(.reader-workspace--compare):has(
      > .insight-panel.insight-panel--mobile-open
    ) {
    overflow: visible;
  }
  body:has(
    .reader-workspace:not(.reader-workspace--compare) > .insight-panel.insight-panel--mobile-open
  ) {
    overflow: hidden;
  }
}
[data-theme='light'][data-sacred-theme='sunday'] body {
  color: #30343a;
  background-color: #f5f3ed;
  background-image:
    radial-gradient(
      ellipse at 88% 8%,
      color-mix(in srgb, var(--sunday-accent, #c89a46) 17%, transparent),
      transparent 34rem
    ),
    linear-gradient(145deg, #f4f2ec 0%, #efeee9 54%, #f8f6f0 100%);
  background-attachment: fixed;
}
[data-theme='light'][data-sacred-theme='sunday'] .topbar {
  border-bottom-color: color-mix(in srgb, var(--sunday-accent, #c89a46) 32%, #d9d8d2);
  background: rgb(255 254 250 / 94%);
  color: #30343a;
  box-shadow: 0 5px 22px rgb(49 50 44 / 7%);
}
[data-theme='light'][data-sacred-theme='sunday'] .home-hero::before {
  background-image: url('/assets/images/Hostia_Light.webp?v=20260925-1');
}
[data-theme='light'][data-sacred-theme='sunday'] .home-hero {
  background: #f8f7f3;
  color: #34332f;
}
[data-theme='light'][data-sacred-theme='sunday'] .home-hero::after {
  background: linear-gradient(90deg, rgb(255 255 255 / 8%), transparent 72%);
}
[data-theme='light'][data-sacred-theme='sunday'] .home-hero > * {
  text-shadow: none;
}
[data-theme='light'][data-sacred-theme='sunday'] .home-hero h1 {
  color: #34332f;
}
[data-theme='light'][data-sacred-theme='sunday'] .home-hero > .eyebrow {
  background: rgb(255 254 250 / 82%);
  color: #82672d;
}
[data-theme='light'][data-sacred-theme='sunday'] .home-hero .home-day-meta {
  border-color: color-mix(in srgb, var(--sunday-accent, #c89a46) 68%, #b4a783);
  background: rgb(255 254 250 / 84%);
  color: #34332f;
}
[data-theme='light'][data-sacred-theme='sunday'] .home-hero .home-day-meta span,
[data-theme='light'][data-sacred-theme='sunday'] .home-hero .home-day-meta a {
  color: #454744;
}
[data-theme='light'][data-sacred-theme='sunday'] .home-readings > header h2,
[data-theme='light'][data-sacred-theme='sunday'] .home-random-prompt h2,
[data-theme='light'][data-sacred-theme='sunday'] .home-random-result h2,
[data-theme='light'][data-sacred-theme='sunday'] .home-passage-card h2 {
  color: #30343a;
}
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card,
[data-theme='light'][data-sacred-theme='sunday'] .home-passage-card,
[data-theme='light'][data-sacred-theme='sunday'] .home-random-prompt,
[data-theme='light'][data-sacred-theme='sunday'] .home-random-result {
  border-color: color-mix(in srgb, var(--sunday-accent, #c89a46) 48%, #e1ded5);
  background: linear-gradient(
    138deg,
    color-mix(in srgb, var(--sunday-accent, #c89a46) 8%, #fffefa),
    #fffefa 48%,
    color-mix(in srgb, var(--sunday-accent, #c89a46) 5%, #f1efe8)
  );
  color: #30343a;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 78%),
    0 10px 26px rgb(43 45 49 / 7%);
}
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card[data-reading-role='GOSPEL'] {
  border-color: color-mix(in srgb, var(--sunday-accent, #c89a46) 66%, #c9c2ae);
  background: linear-gradient(
    138deg,
    color-mix(in srgb, var(--sunday-accent, #c89a46) 13%, #fffefa),
    #fffdf7 54%,
    color-mix(in srgb, var(--sunday-accent, #c89a46) 9%, #f1eee5)
  );
}
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card blockquote,
[data-theme='light'][data-sacred-theme='sunday'] .home-random-prompt > p:not(.eyebrow),
[data-theme='light'][data-sacred-theme='sunday'] .home-random-result > p,
[data-theme='light'][data-sacred-theme='sunday'] .home-passage-card header p:last-child {
  color: #4d5052;
}
[data-theme='light'][data-sacred-theme='sunday'] .home-day-switcher {
  width: fit-content;
  margin-inline: auto;
  padding: 7px;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--sunday-accent, #c89a46) 35%, #dedbd2);
  border-radius: 14px;
  background: rgb(255 254 250 / 82%);
  box-shadow: 0 6px 20px rgb(43 45 49 / 5%);
}
[data-theme='light'][data-sacred-theme='sunday'] .home-day-switcher a,
[data-theme='light'][data-sacred-theme='sunday'] .home-day-switcher button {
  border-color: color-mix(in srgb, var(--sunday-accent, #c89a46) 42%, #d9d6ce);
  background: #fffefa;
  color: #34383d;
}
[data-theme='light'][data-sacred-theme='sunday'] .home-reading-card .home-tags a {
  border-color: color-mix(in srgb, var(--sunday-accent, #c89a46) 26%, transparent);
  background: color-mix(in srgb, var(--sunday-accent, #c89a46) 11%, #fffefa);
  color: color-mix(in srgb, var(--sunday-accent, #c89a46) 68%, #34383d);
}
[data-i18n='home.wordSelectedDay'] {
  white-space: pre-line;
}
[data-theme='light'] .account-page {
  background:
    radial-gradient(ellipse at 20% 40%, rgba(207, 182, 130, 0.22), transparent 35rem), var(--paper);
}
.account-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(129, 165, 143, 0.14), transparent 35rem), var(--paper);
}
.account-topbar {
  grid-template-columns: minmax(180px, 1fr) minmax(0, 680px) minmax(520px, auto);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.account-topbar .topnav {
  grid-template-columns: repeat(6, minmax(56px, 1fr)) 54px;
}
.account-topbar > .topnav {
  grid-column: 3;
}
.account-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 6vw 64px;
  justify-items: center;
  gap: 36px;
}
.account-visual {
  position: relative;
  width: min(100%, 760px);
  min-height: 300px;
  padding: 36px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--line));
  border-radius: 28px;
  background: var(--app-account-visual-background);
  box-shadow: 0 28px 80px rgba(36, 48, 39, 0.08);
}
.account-visual__halo {
  position: absolute;
  top: 30px;
  right: -30px;
  width: min(31vw, 390px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--gold) 12%, transparent),
    transparent 68%
  );
  box-shadow:
    0 0 0 26px color-mix(in srgb, var(--gold) 5%, transparent),
    0 0 0 54px color-mix(in srgb, var(--gold) 4%, transparent);
}
.account-visual__cross {
  z-index: 1;
  margin-bottom: 18px;
  color: var(--gold);
  font:
    300 64px/1 Georgia,
    serif;
}
.account-visual .eyebrow,
.account-card .eyebrow {
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.account-visual blockquote {
  z-index: 1;
  max-width: 610px;
  margin: 18px 0 14px;
  color: var(--ink);
  font:
    clamp(28px, 3.6vw, 48px) / 1.28 Georgia,
    'Times New Roman',
    serif;
  letter-spacing: -0.025em;
}
.account-visual cite {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}
.account-visual__line {
  width: 62px;
  height: 1px;
  margin: 34px 0 18px;
  background: var(--gold);
}
.account-visual__caption,
.account-privacy,
.account-footnote,
.account-panel__footer {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.account-panel {
  width: 100%;
  max-width: 520px;
  justify-self: center;
}
.account-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.account-back:hover {
  color: var(--forest);
}
.account-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(36, 48, 39, 0.09);
}
.account-card h1 {
  margin: 12px 0 18px;
  color: var(--ink);
  font:
    clamp(34px, 4vw, 48px) / 1.08 Georgia,
    'Times New Roman',
    serif;
  letter-spacing: -0.035em;
}
.account-intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.account-google {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: #3c4043;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}
.account-google:hover {
  background: #f8faff;
  border-color: #d2e3fc;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3);
}
.account-google:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}
.account-google__logo {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.account-privacy {
  margin: 16px 0 0;
  text-align: center;
}
.account-panel__footer {
  margin-top: 18px;
  text-align: center;
}
.account-error,
.account-unconfigured {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  color: var(--danger);
  font-size: 13px;
  line-height: 1.55;
}
.account-status:empty {
  display: none;
}
.account-status {
  color: var(--danger);
  font-size: 13px;
}
.account-card__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-weight: 650;
}
.account-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-soft);
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 20px;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.account-actions > * {
  flex: 1 1 auto;
  text-align: center;
}
.account-footnote {
  margin: 22px 0 0;
}
.account-consent {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.account-consent h2,
.account-consent p {
  margin: 0;
}
.account-consent h2 {
  font-size: 19px;
}
.account-consent label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.account-consent input[type='checkbox'] {
  flex: none;
  margin-top: 5px;
}
.account-consent button {
  justify-self: start;
}
.account-consent button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.account-consent .danger {
  padding: 10px 14px;
  border: 1px solid var(--danger);
  border-radius: 8px;
  background: transparent;
  color: var(--danger);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
[data-theme='dark'] .account-visual {
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}
[data-theme='dark'] .account-visual .eyebrow,
[data-theme='dark'] .account-card .eyebrow {
  color: var(--gold);
}
[data-app-theme='h-bible-original'][data-sacred-theme='friday'] .account-visual {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--plum-soft) 72%, var(--surface)),
    var(--surface)
  );
}
@media (max-width: 800px) {
  .account-main {
    max-width: 820px;
    padding: 32px 22px 44px;
    gap: 24px;
  }
  .account-visual {
    min-height: 260px;
    padding: 28px;
    border-radius: 20px;
  }
  .account-visual__cross {
    margin-bottom: 20px;
    font-size: 42px;
  }
  .account-visual blockquote {
    font-size: clamp(25px, 6vw, 36px);
  }
  .account-visual blockquote br {
    display: none;
  }
  .account-visual__halo {
    top: -75px;
    right: -50px;
    width: 230px;
  }
  .account-panel {
    max-width: none;
  }
}
@media (max-width: 480px) {
  .account-topbar {
    height: 60px;
    padding: 0 14px;
    grid-template-columns: 1fr auto;
  }
  .account-topbar .topnav {
    min-width: 112px;
    grid-template-columns: auto auto;
  }
  .account-topbar .topnav a {
    font-size: 12px;
  }
  .account-main {
    padding: 16px 14px 32px;
    gap: 20px;
  }
  .account-visual {
    min-height: 240px;
    padding: 24px 20px;
  }
  .account-visual__cross {
    margin-bottom: 14px;
    font-size: 34px;
  }
  .account-card {
    padding: 26px 22px;
  }
}

/* Settings: one card per topic, live reading preview kept in view while editing. */
.prefs {
  --prefs-nav-height: 52px;
  display: grid;
  gap: 18px;
  max-width: 1040px;
  padding: 28px 24px 96px;
}
.prefs [id] {
  scroll-margin-top: calc(var(--prefs-sticky-top, 68px) + var(--prefs-nav-height) + 12px);
}
.prefs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.prefs-head h1 {
  margin: 4px 0 6px;
  font:
    700 clamp(28px, 4vw, 40px) / 1.1 Georgia,
    serif;
}
.prefs-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.prefs-head .secondary {
  min-height: 40px;
  font-size: 13px;
}
.prefs-nav {
  position: sticky;
  top: var(--prefs-sticky-top, 68px);
  z-index: 6;
  display: flex;
  gap: 6px;
  height: var(--prefs-nav-height);
  box-sizing: border-box;
  align-items: center;
  margin-inline: -8px;
  padding: 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
}
.prefs-nav::-webkit-scrollbar {
  display: none;
}
.prefs-nav a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.prefs-nav a[aria-current='true'] {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--surface);
}
.prefs-nav .prefs-nav__external {
  margin-left: auto;
  border-color: transparent;
  background: transparent;
  color: var(--forest);
}
.prefs-form {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.prefs-section {
  display: grid;
  gap: 20px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: var(--surface);
}
.prefs-section__head h2 {
  margin: 4px 0 0;
  font:
    700 22px / 1.2 Georgia,
    serif;
}
.prefs-section__head .prefs-hint {
  margin: 6px 0 0;
}
.prefs-hint {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

/* Reading: the preview sticks under the header and section navigation. */
.prefs-reading {
  display: grid;
  gap: 20px;
}
.prefs-preview {
  position: sticky;
  top: calc(var(--prefs-sticky-top, 68px) + var(--prefs-nav-height));
  z-index: 4;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 10px 24px -18px rgb(0 0 0 / 0.55);
}
.prefs-preview figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 0;
}
.prefs-preview figcaption .eyebrow {
  margin: 0;
}
.prefs-preview__summary {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.prefs-preview__page {
  max-height: 240px;
  overflow: hidden;
  padding: 0 14px;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.prefs-preview .prefs-preview__verses {
  box-sizing: border-box;
  border-inline: 1px dashed color-mix(in srgb, var(--gold) 55%, transparent);
  padding-bottom: 28px;
}
.prefs-preview .verse {
  cursor: default;
}
.prefs-hint--notice {
  color: var(--forest);
}
.prefs-hint[hidden] {
  display: none;
}
.prefs-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}
.prefs-range {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.prefs-range__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.prefs-range__label label,
.prefs-select > label,
.prefs-segmented legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.prefs-range__label output {
  color: var(--forest);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.prefs-range__control {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
}
.prefs-range__control input[type='range'] {
  width: 100%;
  min-width: 0;
  height: 32px;
  margin: 0;
  accent-color: var(--forest);
}
.prefs-step {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--forest);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.prefs-step:hover:not(:disabled) {
  border-color: var(--forest);
  background: var(--forest-soft);
}
.prefs-step:disabled {
  opacity: 0.4;
  cursor: default;
}
.prefs-segmented {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}
.prefs-segmented legend {
  margin-bottom: 8px;
  padding: 0;
}
.prefs-segmented__options {
  display: inline-grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3px;
  background: var(--paper);
}
.prefs-segmented label {
  position: relative;
  display: block;
}
.prefs-segmented input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.prefs-segmented span {
  display: block;
  border-radius: 9px;
  padding: 9px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.prefs-segmented input:checked + span {
  background: var(--forest);
  color: var(--surface);
}
.prefs-segmented input:focus-visible + span,
.prefs-switch input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.prefs-select {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.prefs-select[hidden] {
  display: none;
}
.prefs-select select {
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  border-radius: 10px;
}

/* Appearance */
.prefs-theme {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}
.prefs-theme__fields {
  display: grid;
  gap: 18px;
}
.prefs-theme-preview {
  --motif-image-position: 70% center;
  --motif-image-position-mobile: 100% center;
  display: grid;
  gap: 10px;
}
.prefs-theme-preview__days {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.prefs-chip {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.prefs-chip[aria-pressed='true'] {
  border-color: var(--forest);
  background: var(--forest-soft);
  color: var(--forest);
}
.prefs-theme-preview__date {
  margin-left: auto;
}
.prefs-theme-preview__date input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.prefs-theme-preview .home-hero {
  min-height: 230px;
  margin: 0;
  border-radius: 14px;
  padding: clamp(18px, 3vw, 30px);
}
.prefs-theme-preview .home-hero > * {
  width: min(460px, 78%);
}
.prefs-theme-preview .home-hero h3 {
  margin: 6px 0;
  font:
    700 clamp(24px, 3vw, 34px) / 1.1 Georgia,
    serif;
}
.prefs-theme-preview .home-hero p:last-child {
  margin: 0;
  font-size: 14px;
}

/* Map switches */
.prefs-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  cursor: pointer;
}
.prefs-section__head + .prefs-switch {
  border-top: 0;
  padding-top: 0;
}
.prefs-switch strong {
  display: block;
  font-size: 15px;
}
.prefs-switch small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.prefs-switch input {
  position: relative;
  width: 48px;
  height: 28px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  appearance: none;
  transition: background 160ms ease;
}
.prefs-switch input::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  content: '';
  transition: transform 160ms ease;
}
.prefs-switch input:checked {
  border-color: var(--forest);
  background: var(--forest);
}
.prefs-switch input:checked::before {
  background: var(--surface);
  transform: translateX(20px);
}

/* Personal data and operator */
.prefs-link-button {
  display: inline-block;
  width: fit-content;
  font-size: 13px;
  text-decoration: none;
}
.prefs .backup-verify {
  margin-top: 0;
}

/* Save confirmation; clear of the floating feedback button. */
.prefs-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 112px);
  border-radius: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  box-shadow: 0 12px 28px -12px rgb(0 0 0 / 0.5);
  transform: translateX(-50%);
}
.prefs-toast[hidden],
.prefs-toast__undo[hidden] {
  display: none;
}
.prefs-toast__undo {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 860px) {
  .prefs-controls,
  .prefs-theme {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .prefs {
    --prefs-nav-height: 50px;
    gap: 14px;
    padding: 18px 16px 88px;
  }
  .prefs-nav {
    margin-inline: -16px;
    padding-inline: 16px;
  }
  .prefs-nav .prefs-nav__external {
    margin-left: 0;
  }
  .prefs-section {
    gap: 18px;
    border-radius: 14px;
    padding: 18px 16px;
  }
  /* The reading card widens so the preview gets as much of the screen as possible. */
  .prefs-section--reading {
    margin-inline: -8px;
    padding-inline: 12px;
  }
  .prefs-preview__page {
    max-height: max(130px, 26vh);
    padding-inline: 6px;
  }
  .prefs-preview figcaption {
    padding-inline: 10px;
  }
  .prefs-range__control {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  .prefs-step {
    width: 44px;
    height: 44px;
  }
  .prefs-segmented__options {
    width: 100%;
  }
  .prefs-theme-preview__date {
    margin-left: 0;
  }
  .prefs-theme-preview .home-hero {
    min-height: 190px;
  }
  .prefs-theme-preview .home-hero > * {
    width: 100%;
  }
  .prefs-toast {
    right: 84px;
    left: 16px;
    max-width: none;
    transform: none;
  }
}
