:root {
  color-scheme: light dark;
  --pm-bg: #f6f7f5;
  --pm-surface: #ffffff;
  --pm-text: #17201d;
  --pm-muted: #59645f;
  --pm-border: #d7ddd5;
  --pm-accent: #315c48;
  --pm-accent-soft: #e5eee8;
  --pm-reader-font-scale: 1;
}

[data-theme="dark"] {
  --pm-bg: #101413;
  --pm-surface: #18201e;
  --pm-text: #f3f6f4;
  --pm-muted: #b9c4bf;
  --pm-border: #33413c;
  --pm-accent: #9fd0b5;
  --pm-accent-soft: #20362d;
  --pm-reader-link: #b7d7c1;
  --pm-reader-link-visited: #a8c8b3;
  --pm-reader-link-hover: #d7f0df;
  --pm-reader-link-focus: rgb(183 215 193 / 55%);
}

* {
  box-sizing: border-box;
}

.pm-sr-only {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body.pm-shell {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--pm-bg);
  color: var(--pm-text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

.pm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 3.7rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--pm-border);
  background: var(--pm-surface);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: nowrap;
}

.pm-brand {
  color: var(--pm-text);
  font-weight: 700;
  text-decoration: none;
  flex: 0 0 auto;
  white-space: nowrap;
}

.pm-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 0.9rem;
  justify-content: center;
  font-family: system-ui, sans-serif;
  font-size: 0.92rem;
  min-width: 0;
  white-space: nowrap;
}

.pm-nav a {
  color: var(--pm-muted);
  text-decoration: none;
}

.pm-topbar-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
  white-space: nowrap;
}

.pm-topbar-account {
  color: var(--pm-text);
  font-size: 0.92rem;
}

.pm-topbar-account:hover,
.pm-topbar-account:focus-visible {
  border-color: var(--pm-accent);
}

.pm-icon-button,
.pm-button {
  border: 1px solid var(--pm-border);
  background: var(--pm-surface);
  color: var(--pm-text);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  font-family: system-ui, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
}

.pm-button:hover,
.pm-icon-button:hover {
  border-color: var(--pm-accent);
}

.pm-button-primary {
  background: var(--pm-accent);
  border-color: var(--pm-accent);
  color: var(--pm-surface);
}

.pm-button-disabled {
  color: var(--pm-muted);
  cursor: default;
}

.pm-placeholder-control {
  color: var(--pm-muted);
}

.pm-placeholder-control[aria-disabled="true"] {
  cursor: default;
}

.pm-main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.pm-hero {
  max-width: 760px;
  margin-bottom: 2rem;
}

.pm-eyebrow,
.pm-card-kicker {
  font-family: system-ui, sans-serif;
  color: var(--pm-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.pm-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0.25rem 0 1rem;
}

.pm-hero-text {
  font-size: 1.2rem;
  color: var(--pm-muted);
}

.pm-breadcrumbs {
  align-items: center;
  color: var(--pm-muted);
  display: flex;
  flex-wrap: wrap;
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pm-breadcrumbs a {
  color: var(--pm-accent);
}

.pm-movement-hero {
  max-width: 900px;
}

.pm-movement-metadata {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.5rem 0;
}

.pm-movement-metadata > div {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.pm-movement-metadata dt {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pm-movement-metadata dd {
  font-weight: 700;
  margin: 0.2rem 0 0;
}

.pm-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.pm-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.pm-card {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  padding: 1.25rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.pm-card h2 {
  margin: 0.25rem 0;
  line-height: 1.15;
}

.pm-card p:not(.pm-card-kicker) {
  color: var(--pm-muted);
}

.pm-card .pm-button {
  margin-top: auto;
  text-align: center;
}

.pm-card-primary {
  border-width: 2px;
  border-color: var(--pm-accent);
}

.pm-section {
  border-top: 1px solid var(--pm-border);
  padding: 2rem 0;
}

.pm-section-header {
  max-width: 760px;
  margin-bottom: 1rem;
}

.pm-section-header h2 {
  margin: 0.25rem 0;
  line-height: 1.15;
}

.pm-section-header p:not(.pm-eyebrow) {
  color: var(--pm-muted);
}

.pm-account-shell {
  display: grid;
  gap: 1.5rem;
  max-width: 920px;
}

.pm-account-hero {
  max-width: 760px;
}

.pm-account-hero h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  margin: 0.25rem 0 1rem;
}

.pm-account-hero p:not(.pm-eyebrow) {
  color: var(--pm-muted);
  font-size: 1.12rem;
}

.pm-account-panel,
.pm-account-form,
.pm-account-section {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  padding: 1.25rem;
}

.pm-member-area {
  display: grid;
  gap: 1rem;
}

.pm-member-primary-card {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pm-accent-soft) 60%, transparent), transparent 54%),
    var(--pm-surface);
  border: 2px solid var(--pm-accent);
  border-radius: 18px;
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.pm-member-primary-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.12;
  margin: 0;
}

.pm-member-primary-card p {
  margin: 0;
}

.pm-member-current-passage {
  color: var(--pm-text);
  font-size: 1.08rem;
  font-weight: 700;
}

.pm-member-continue-button {
  justify-self: start;
  margin-top: 0.25rem;
}

.pm-member-today-support {
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.pm-member-today-support h3 {
  margin: 0;
}

.pm-member-support-status-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pm-member-support-status-grid article {
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
}

.pm-member-support-status-grid span {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
}

.pm-member-support-status-grid strong {
  color: var(--pm-text);
  font-family: system-ui, sans-serif;
}

.pm-account-accordion {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  overflow: hidden;
}

.pm-account-accordion > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.pm-account-accordion > summary::-webkit-details-marker {
  display: none;
}

.pm-account-accordion > summary > span:first-child {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.pm-account-accordion > summary strong {
  color: var(--pm-text);
  font-size: 1.05rem;
}

.pm-account-accordion > summary span:not(.pm-eyebrow):not(.pm-account-accordion-action) {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
}

.pm-account-accordion-action {
  color: var(--pm-accent);
  flex: 0 0 auto;
  font-family: system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
}

.pm-account-accordion-action::after {
  content: " ▼";
}

.pm-account-accordion[open] .pm-account-accordion-action::after {
  content: " ▲";
}

.pm-account-accordion-body,
.pm-account-advanced-support__content {
  border-top: 1px solid var(--pm-border);
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.pm-account-return-strip {
  align-items: center;
  background: color-mix(in srgb, var(--pm-accent-soft) 42%, transparent);
  border: 1px solid color-mix(in srgb, var(--pm-accent) 28%, var(--pm-border));
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.75rem;
}

.pm-account-return-strip p {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  margin: 0;
}

.pm-account-return-reading {
  gap: 0.4rem;
}

.pm-account-return-reading img {
  height: 1.05rem;
  width: 1.05rem;
}

.pm-account-form {
  display: grid;
  gap: 1rem;
  max-width: 560px;
}

.pm-form-field {
  display: grid;
  gap: 0.35rem;
}

.pm-form-field label {
  font-family: system-ui, sans-serif;
  font-weight: 700;
}

.pm-form-field label span,
.pm-form-help,
.pm-account-link-note,
.pm-account-status,
.pm-account-message,
.pm-account-section p {
  color: var(--pm-muted);
}

.pm-form-field input {
  background: var(--pm-bg);
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  color: var(--pm-text);
  font: 1rem/1.4 system-ui, sans-serif;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
}

.pm-form-field input:focus {
  border-color: var(--pm-accent);
  outline: 3px solid var(--pm-accent-soft);
}

.pm-form-help,
.pm-account-message {
  font-family: system-ui, sans-serif;
  font-size: 0.92rem;
  margin: 0;
}

.pm-account-message[data-tone="success"],
.pm-account-status[data-tone="success"] {
  color: var(--pm-accent);
}

.pm-account-message[data-tone="error"],
.pm-account-status[data-tone="error"] {
  color: #9f2f2f;
}

.pm-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pm-account-placeholder-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 1rem;
}

.pm-account-placeholder {
  border: 1px dashed var(--pm-border);
  border-radius: 12px;
  padding: 0.9rem;
}

.pm-account-placeholder h3 {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}

.pm-account-placeholder p {
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  margin: 0;
}

.pm-account-continuity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pm-account-placeholder-primary {
  border-style: solid;
}

.pm-account-placeholder .pm-button {
  margin-top: 0.75rem;
}

.pm-account-entry {
  max-width: 900px;
}

.pm-account-trust-line {
  font-family: system-ui, sans-serif;
  font-size: 0.96rem;
}

.pm-account-trust-line a,
.pm-account-section a {
  color: var(--pm-accent);
}

.pm-account-commitment-list {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.pm-account-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pm-account-advanced-support {
  padding: 0;
}

.pm-account-advanced-support > summary {
  cursor: pointer;
  font-family: system-ui, sans-serif;
  font-weight: 700;
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.pm-account-advanced-support__content {
  border-top: 1px solid var(--pm-border);
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem) clamp(1.1rem, 3vw, 1.5rem) clamp(1.1rem, 3vw, 1.5rem);
}

.pm-account-support-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pm-account-support-grid article {
  border: 1px dashed var(--pm-border);
  border-radius: 12px;
  padding: 0.9rem;
}

.pm-account-support-grid h3 {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}

.pm-account-support-grid p {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  margin: 0;
}

.pm-account-covenant-panel {
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.pm-account-covenant-panel h3,
.pm-account-support-availability h3 {
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0;
}

.pm-account-covenant-panel p {
  margin: 0;
}

.pm-account-covenant-panel .pm-button:disabled {
  background: color-mix(in srgb, var(--pm-muted) 12%, transparent);
  border-color: var(--pm-border);
  color: var(--pm-muted);
  cursor: not-allowed;
  opacity: 1;
}

.pm-account-covenant-action {
  align-items: flex-start;
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}

.pm-account-helper {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
}

.pm-account-helper[data-tone="success"] {
  color: var(--pm-accent);
}

.pm-account-helper[data-tone="error"] {
  color: #9f2f2f;
}

.pm-account-support-availability {
  color: var(--pm-muted);
  display: grid;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  gap: 0.45rem;
  padding-inline: 0.25rem;
}

.pm-account-support-availability h3 {
  color: var(--pm-text);
  font-size: 0.95rem;
}

.pm-account-support-availability ul,
.pm-account-future-actions {
  columns: 2;
  margin: 0;
  padding-left: 1.25rem;
}

.pm-account-support-availability li,
.pm-account-future-actions li {
  break-inside: avoid;
  margin-bottom: 0.2rem;
}

.pm-account-capability-list li::marker {
  color: var(--pm-muted);
}

.pm-account-consent-placeholder {
  align-items: flex-start;
  border-top: 1px solid var(--pm-border);
  color: var(--pm-muted);
  display: flex;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  gap: 0.45rem;
  line-height: 1.35;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.pm-account-covenant-consent {
  border: 1px dashed var(--pm-border);
  border-radius: 10px;
  margin-top: 0;
  padding: 0.75rem;
}

.pm-account-consent-placeholder input {
  margin-top: 0.15rem;
}

.pm-account-support-summary {
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.pm-account-support-summary h3 {
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0;
}

.pm-account-support-summary p {
  margin: 0;
}

.pm-account-support-form {
  display: grid;
  gap: 1rem;
}

.pm-account-support-form fieldset {
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.85rem;
}

.pm-account-support-form legend {
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 0.35rem;
}

.pm-account-support-form label {
  align-items: center;
  color: var(--pm-text);
  display: flex;
  font-family: system-ui, sans-serif;
  font-size: 0.92rem;
  gap: 0.5rem;
}

.pm-account-support-form input {
  accent-color: var(--pm-accent);
}

.pm-account-reading-progress {
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.pm-account-reading-progress__header {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.pm-account-reading-progress__header h3,
.pm-account-progress-overall h4,
.pm-account-progress-last h4 {
  margin: 0;
}

.pm-account-reading-progress__header p,
.pm-account-progress-overall p,
.pm-account-progress-last p {
  margin: 0.2rem 0 0;
}

.pm-account-progress-overall,
.pm-account-progress-last {
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
}

.pm-account-progress-track {
  background: color-mix(in srgb, var(--pm-border) 68%, transparent);
  border-radius: 999px;
  height: 0.7rem;
  overflow: hidden;
}

.pm-account-progress-track span {
  background: linear-gradient(90deg, var(--pm-accent), color-mix(in srgb, var(--pm-accent) 74%, #ffffff));
  display: block;
  height: 100%;
  transition: width 160ms ease;
}

.pm-account-progress-books {
  display: grid;
  gap: 0.65rem;
}

.pm-account-progress-books-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.pm-account-progress-books-header h4 {
  margin: 0;
}

.pm-account-progress-book {
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  overflow: hidden;
}

.pm-account-progress-book summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: minmax(0, 0.35fr) minmax(8rem, 1fr);
  padding: 0.75rem 0.85rem;
}

.pm-account-progress-book__summary {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.pm-account-progress-book__name {
  font-weight: 700;
}

.pm-account-progress-book__meta,
.pm-account-progress-next {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.84rem;
}

.pm-account-progress-book__body {
  border-top: 1px solid var(--pm-border);
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem 0.9rem;
}

.pm-account-progress-book__topline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pm-account-progress-segments {
  display: flex;
  gap: 3px;
  min-height: 1rem;
  width: 100%;
}

.pm-account-progress-strip {
  display: flex;
  gap: 3px;
  min-height: 0.7rem;
  min-width: 0;
  width: 100%;
}

.pm-account-progress-segment,
.pm-account-progress-strip span {
  background: transparent;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pm-border) 72%, transparent);
  flex: 1 1 0;
  min-width: 3px;
}

.pm-account-progress-segment {
  outline-offset: 2px;
}

.pm-account-progress-segment:hover,
.pm-account-progress-segment:focus-visible {
  outline: 2px solid var(--pm-accent);
}

.pm-account-progress-segment[data-progress-status="read"],
.pm-account-progress-strip span[data-progress-status="read"] {
  background: var(--pm-accent);
  box-shadow: none;
}

.pm-account-progress-segment[data-progress-status="next_suggested"],
.pm-account-progress-strip span[data-progress-status="next_suggested"] {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 4px,
      color-mix(in srgb, var(--pm-accent) 28%, transparent) 4px 6px
    );
  box-shadow: inset 0 0 0 2px var(--pm-accent);
}

.pm-account-path-plan {
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.pm-account-path-plan__header {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.pm-account-path-plan__header h3,
.pm-account-path-plan__next h4 {
  margin: 0;
}

.pm-account-path-plan__header p,
.pm-account-path-plan__next p {
  margin: 0.2rem 0 0;
}

.pm-account-path-plan__controls {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pm-account-path-plan__controls label {
  color: var(--pm-muted);
  display: grid;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  gap: 0.3rem;
}

.pm-account-path-plan__controls label span {
  font-weight: 700;
}

.pm-account-path-plan__controls select,
.pm-account-path-plan__controls input {
  background: var(--pm-bg);
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  color: var(--pm-text);
  font: 0.92rem/1.35 system-ui, sans-serif;
  min-height: 2.5rem;
  padding: 0.55rem 0.65rem;
  width: 100%;
}

.pm-account-path-plan__controls select:focus,
.pm-account-path-plan__controls input:focus {
  border-color: var(--pm-accent);
  outline: 3px solid var(--pm-accent-soft);
}

.pm-account-path-plan__results {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pm-account-path-plan__results article,
.pm-account-path-plan__next {
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
}

.pm-account-path-plan__results span {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
}

.pm-account-path-plan__results strong {
  color: var(--pm-text);
  font-family: system-ui, sans-serif;
  font-size: 0.98rem;
}

.pm-account-path-plan__next .pm-button {
  justify-self: start;
  margin-top: 0.4rem;
}

@media (max-width: 700px) {
  .pm-account-reading-progress__header,
  .pm-account-progress-book summary,
  .pm-account-path-plan__header {
    grid-template-columns: 1fr;
  }

  .pm-account-reading-progress__header,
  .pm-account-path-plan__header {
    display: grid;
  }

  .pm-account-path-plan__controls,
  .pm-account-path-plan__results,
  .pm-member-support-status-grid,
  .pm-account-tool-list {
    grid-template-columns: 1fr;
  }

  .pm-account-accordion > summary {
    align-items: flex-start;
    display: grid;
  }
}

.pm-account-reading-archive {
  display: grid;
  gap: 0.9rem;
}

.pm-account-reading-archive h3,
.pm-account-tool-list h4 {
  margin: 0;
}

.pm-account-archive-grid {
  display: grid;
  gap: 1rem;
}

.pm-account-tool-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pm-account-tool-list article {
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
}

.pm-account-tool-list p {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  margin: 0;
}

.pm-account-archive-panel {
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.pm-account-archive-header h3,
.pm-account-entry-card h4 {
  margin: 0;
}

.pm-account-entry-list {
  display: grid;
  gap: 0.85rem;
}

.pm-account-entry-card {
  border-top: 1px solid var(--pm-border);
  display: grid;
  gap: 0.65rem;
  padding-top: 0.85rem;
}

.pm-account-entry-meta {
  color: var(--pm-muted);
  display: grid;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  gap: 0.15rem;
}

.pm-account-entry-card textarea,
.pm-account-entry-status select {
  background: var(--pm-bg);
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  color: var(--pm-text);
  font: 0.92rem/1.4 system-ui, sans-serif;
  padding: 0.6rem 0.7rem;
  width: 100%;
}

.pm-account-entry-card textarea:focus,
.pm-account-entry-status select:focus {
  border-color: var(--pm-accent);
  outline: 3px solid var(--pm-accent-soft);
}

.pm-account-entry-status {
  color: var(--pm-muted);
  display: grid;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  gap: 0.25rem;
}

.pm-account-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pm-account-settings-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.pm-account-settings-list div {
  border-top: 1px solid var(--pm-border);
  display: grid;
  gap: 0.25rem;
  grid-template-columns: minmax(10rem, 0.45fr) minmax(0, 1fr);
  padding-top: 0.5rem;
}

.pm-account-settings-list dt {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.pm-account-settings-list dd {
  color: var(--pm-text);
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  margin: 0;
}

.pm-public-trust-page .pm-main {
  width: min(980px, calc(100% - 2rem));
}

.pm-public-trust-shell {
  display: grid;
  gap: 1rem;
}

.pm-public-trust-hero {
  max-width: 760px;
}

.pm-public-trust-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0.25rem 0 1rem;
}

.pm-public-trust-subtitle {
  color: var(--pm-muted);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  margin: 0;
}

.pm-public-trust-section,
.pm-public-trust-assurance {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  padding: clamp(1.1rem, 3vw, 1.65rem);
}

.pm-public-trust-section h2,
.pm-public-trust-assurance h2 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.pm-public-trust-section p {
  color: var(--pm-muted);
  margin: 0;
  max-width: 760px;
}

.pm-public-trust-section p + p {
  margin-top: 0.85rem;
}

.pm-public-trust-assurance {
  border-left: 4px solid var(--pm-accent);
}

.pm-public-trust-assurance ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.25rem;
}

.pm-find-page .pm-main {
  width: min(1180px, calc(100% - 2rem));
}

.pm-find-shell {
  display: grid;
  gap: 1.25rem;
}

.pm-find-hero {
  max-width: 820px;
}

.pm-find-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  line-height: 1.06;
  margin: 0.25rem 0 1rem;
}

.pm-find-hero p:not(.pm-eyebrow) {
  color: var(--pm-muted);
  font-size: 1.12rem;
}

.pm-find-return,
.pm-find-query,
.pm-find-refinements,
.pm-find-results-region,
.pm-find-result-card,
.pm-find-no-results {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 12px;
}

.pm-find-return {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  padding: 0.8rem 1rem;
}

.pm-find-return p {
  margin: 0;
}

.pm-find-return a {
  color: var(--pm-accent);
  font-weight: 700;
}

.pm-find-query {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.85rem;
}

.pm-find-query input[type="search"] {
  background: color-mix(in srgb, var(--pm-bg) 68%, var(--pm-surface));
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  color: var(--pm-text);
  font: 1rem/1.35 system-ui, sans-serif;
  min-height: 2.7rem;
  padding: 0.7rem 0.85rem;
  width: 100%;
}

.pm-find-query input[type="search"]:focus {
  border-color: var(--pm-accent);
  box-shadow: 0 0 0 3px var(--pm-accent-soft);
  outline: none;
}

.pm-find-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pm-find-tab {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  color: var(--pm-text);
  cursor: pointer;
  font: 0.88rem/1.2 system-ui, sans-serif;
  min-height: 2.3rem;
  padding: 0.55rem 0.85rem;
}

.pm-find-tab.is-active {
  background: var(--pm-accent-soft);
  border-color: var(--pm-accent);
  font-weight: 700;
}

.pm-find-tab:disabled {
  color: var(--pm-muted);
  cursor: default;
  opacity: 0.72;
}

.pm-find-tab span {
  font-size: 0.72rem;
}

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

.pm-find-refinements,
.pm-find-results-region {
  padding: 1rem;
}

.pm-find-refinements {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 5rem;
}

.pm-find-refinements h2,
.pm-find-results-header h2 {
  margin: 0;
}

.pm-find-refinements fieldset {
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem;
}

.pm-find-refinements legend {
  font-family: system-ui, sans-serif;
  font-weight: 700;
  padding: 0 0.25rem;
}

.pm-find-refinements label {
  color: var(--pm-muted);
  display: grid;
  font: 0.88rem/1.35 system-ui, sans-serif;
  gap: 0.3rem;
}

.pm-find-refinements label:has(input[type="checkbox"]) {
  align-items: start;
  color: var(--pm-text);
  grid-template-columns: auto minmax(0, 1fr);
}

.pm-find-refinements select {
  background: color-mix(in srgb, var(--pm-bg) 68%, var(--pm-surface));
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  color: var(--pm-text);
  min-height: 2.35rem;
  padding: 0.45rem 0.55rem;
}

.pm-find-refinements p {
  color: var(--pm-muted);
  font: 0.82rem/1.45 system-ui, sans-serif;
  margin: 0;
}

.pm-find-results-region {
  display: grid;
  gap: 1rem;
}

.pm-find-results-header {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.pm-find-results-header p:not(.pm-eyebrow) {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  margin: 0;
  max-width: 340px;
}

.pm-find-empty {
  background: color-mix(in srgb, var(--pm-accent-soft) 44%, transparent);
  border: 1px dashed var(--pm-border);
  border-radius: 10px;
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
}

.pm-find-empty[hidden] {
  display: none;
}

.pm-find-empty p {
  color: var(--pm-muted);
  margin: 0;
}

.pm-find-empty div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pm-find-empty button {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  color: var(--pm-text);
  cursor: pointer;
  font: 0.85rem/1.2 system-ui, sans-serif;
  padding: 0.45rem 0.7rem;
}

.pm-find-empty button:hover,
.pm-find-empty button:focus-visible {
  border-color: var(--pm-accent);
  outline: none;
}

.pm-find-results {
  display: grid;
  gap: 0.85rem;
}

.pm-find-result-card,
.pm-find-no-results {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.pm-find-result-card__meta {
  color: var(--pm-muted);
  display: flex;
  flex-wrap: wrap;
  font: 0.78rem/1.3 system-ui, sans-serif;
  gap: 0.4rem 0.6rem;
}

.pm-find-result-card__meta span {
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
}

.pm-find-result-card h3,
.pm-find-no-results h3 {
  font-size: 1.25rem;
  line-height: 1.18;
  margin: 0;
}

.pm-find-excerpt,
.pm-find-status-note,
.pm-find-no-results p {
  color: var(--pm-muted);
  margin: 0;
}

.pm-find-zone-matches {
  display: grid;
  gap: 0.55rem;
}

.pm-find-zone-match {
  background: color-mix(in srgb, var(--pm-accent-soft) 30%, transparent);
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  display: grid;
  gap: 0.25rem;
  padding: 0.65rem;
}

.pm-find-zone-match strong {
  color: var(--pm-text);
  font: 0.78rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pm-find-zone-match strong span {
  color: var(--pm-muted);
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 0.35rem;
  text-transform: none;
}

.pm-find-zone-match p {
  color: var(--pm-muted);
  margin: 0;
}

.pm-find-zone-match mark {
  background: color-mix(in srgb, var(--pm-accent) 28%, transparent);
  border-radius: 0.2em;
  color: inherit;
  padding: 0 0.12em;
}

.pm-find-zone-more {
  color: var(--pm-muted);
  font: 0.82rem/1.35 system-ui, sans-serif;
  margin: -0.1rem 0 0;
}

.pm-find-why {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.pm-find-why div {
  background: color-mix(in srgb, var(--pm-bg) 68%, var(--pm-surface));
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  padding: 0.55rem;
}

.pm-find-why dt {
  color: var(--pm-muted);
  font: 0.72rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pm-find-why dd {
  font-family: system-ui, sans-serif;
  font-weight: 700;
  margin: 0.15rem 0 0;
}

.pm-find-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pm-find-unavailable {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
}

@media (max-width: 860px) {
  .pm-find-query,
  .pm-find-layout,
  .pm-find-why {
    grid-template-columns: 1fr;
  }

  .pm-find-refinements {
    position: static;
  }

  .pm-find-results-header {
    display: grid;
  }
}

.pm-book-grid,
.pm-movement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.pm-book-tile,
.pm-movement-card,
.pm-book-facts > div {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  padding: 1rem;
}

.pm-book-tile {
  color: var(--pm-text);
  text-decoration: none;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pm-book-tile small,
.pm-movement-card p,
.pm-movement-card__footer,
.pm-movement-card__meta,
.pm-book-facts p:not(.pm-card-kicker) {
  color: var(--pm-muted);
}

.pm-book-tile-active {
  border-color: var(--pm-accent);
  background: var(--pm-accent-soft);
}

.pm-library-summary {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pm-library-summary > div {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  padding: 1rem;
}

.pm-library-summary strong,
.pm-library-summary span {
  display: block;
}

.pm-library-summary strong {
  color: var(--pm-accent);
  font-size: 1.6rem;
}

.pm-library-summary span {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
}

.pm-library-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pm-library-book {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 1rem;
}

.pm-library-book__heading {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.pm-library-book h3 {
  line-height: 1.15;
  margin: 0.25rem 0;
}

.pm-library-book > p {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
}

.pm-library-status,
.pm-library-unavailable-note {
  background: var(--pm-accent-soft);
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

.pm-library-book-unavailable {
  background: color-mix(in srgb, var(--pm-surface) 86%, var(--pm-bg));
}

.pm-library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.pm-library-unavailable-note {
  align-self: flex-start;
  margin-top: auto;
}

.pm-book-facts {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.pm-book-overview-support {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--pm-accent-soft) 35%, transparent));
}

.pm-book-support-copy {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  display: grid;
  gap: 0.9rem;
  max-width: 980px;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.pm-book-support-copy > section,
.pm-book-support-copy > div {
  display: grid;
  gap: 0.75rem;
}

.pm-book-support-copy h1,
.pm-book-support-copy h2,
.pm-book-support-copy h3 {
  line-height: 1.18;
  margin: 0.4rem 0 0.15rem;
}

.pm-book-support-copy h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.pm-book-support-copy h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.pm-book-support-copy h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
}

.pm-book-support-copy p,
.pm-book-support-copy li {
  max-width: 78ch;
}

.pm-book-support-copy p {
  margin: 0;
}

.pm-book-support-copy ul,
.pm-book-support-copy ol {
  margin: 0.35rem 0 0;
  padding-left: 1.35rem;
}

.pm-book-support-copy--addenda {
  gap: 1.25rem;
}

.pm-book-support-copy--addenda > section + section {
  border-top: 1px solid var(--pm-border);
  padding-top: 1.25rem;
}

.pm-movement-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.pm-movement-card h2 {
  margin: 0.5rem 0;
  line-height: 1.15;
}

.pm-movement-card__meta,
.pm-movement-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
}

.pm-movement-card__footer {
  margin: auto 0 1rem;
}

.pm-movement-card__range {
  font-size: 1.05rem;
}

.pm-recommended-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pm-recommended-entry {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.pm-recommended-entry h3 {
  line-height: 1.25;
  margin: 0.25rem 0 1.25rem;
}

.pm-recommended-entry .pm-button {
  margin-top: auto;
}

.pm-pill {
  background: var(--pm-accent-soft);
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  padding: 0.15rem 0.45rem;
  color: var(--pm-text);
}

.pm-toggle-target {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  background: var(--pm-surface);
}

.pm-book-pericope-index {
  display: grid;
  gap: 1.5rem;
}

.pm-book-pericope-index[hidden] {
  display: none;
}

.pm-book-pericope-index h3 {
  border-bottom: 1px solid var(--pm-border);
  line-height: 1.3;
  padding-bottom: 0.5rem;
}

.pm-book-pericope-index h3 small {
  color: var(--pm-muted);
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
}

.pm-book-pericope-index ol {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-book-pericope-index a {
  align-items: baseline;
  color: var(--pm-text);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 72px minmax(0, 1fr) 90px;
  padding: 0.45rem;
  text-decoration: none;
}

.pm-book-pericope-index a:hover {
  background: var(--pm-accent-soft);
}

.pm-book-pericope-index a span,
.pm-book-pericope-index a small {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
}

.pm-book-pericope-index a small {
  text-align: right;
}

.pm-begin-journey .pm-main {
  width: min(1180px, calc(100% - 2rem));
}

.pm-begin-hero {
  align-items: stretch;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin-bottom: 2rem;
}

.pm-begin-hero__copy {
  background:
    radial-gradient(circle at 12% 18%, var(--pm-accent-soft), transparent 34%),
    var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 22px;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.pm-begin-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin: 0.25rem 0 1.25rem;
  max-width: 10ch;
}

.pm-begin-hero p:not(.pm-eyebrow) {
  color: var(--pm-muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  max-width: 680px;
}

.pm-begin-hero__panel {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--pm-accent) 22%, transparent), transparent 62%),
    var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 22px;
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.pm-begin-hero__panel span {
  align-items: center;
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  color: var(--pm-text);
  display: flex;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  justify-content: center;
  min-height: 4rem;
  padding: 1rem;
  text-align: center;
}

.pm-begin-jump {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  display: flex;
  flex-wrap: wrap;
  font-family: system-ui, sans-serif;
  gap: 0.35rem;
  justify-content: center;
  margin: 0 auto 3rem;
  padding: 0.35rem;
  position: sticky;
  top: 4.75rem;
  z-index: 8;
}

.pm-begin-jump a {
  border-radius: 999px;
  color: var(--pm-muted);
  padding: 0.45rem 0.8rem;
  text-decoration: none;
}

.pm-begin-jump a:hover,
.pm-begin-jump a:focus-visible {
  background: var(--pm-accent-soft);
  color: var(--pm-text);
}

.pm-begin-section,
.pm-panorama,
.pm-pathways,
.pm-reader-promise {
  border-top: 1px solid var(--pm-border);
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.pm-chapter-stack {
  display: grid;
  gap: clamp(1.5rem, 5vw, 3rem);
}

.pm-begin-chapter {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  scroll-margin-top: 8rem;
}

.pm-begin-chapter__meta {
  color: var(--pm-muted);
  display: flex;
  flex-direction: column;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  gap: 0.5rem;
  letter-spacing: 0.06em;
  position: sticky;
  text-transform: uppercase;
  top: 8.5rem;
}

.pm-begin-chapter__meta span {
  background: var(--pm-accent-soft);
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
}

.pm-begin-chapter__body {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 18px;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.pm-begin-chapter h2,
.pm-panorama h2,
.pm-pathways h2,
.pm-reader-promise h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0.25rem 0 1rem;
}

.pm-begin-lede {
  color: var(--pm-text);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.22;
  margin: 0 0 1.25rem;
}

.pm-begin-copy {
  max-width: 760px;
}

.pm-begin-copy p {
  margin: 0 0 1.05rem;
}

.pm-begin-copy-hero {
  border-bottom: 1px solid var(--pm-border);
  color: var(--pm-muted);
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.pm-begin-accordions {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.pm-begin-chapter-doorway {
  margin: 0 0 1.5rem;
  max-width: 760px;
}

.pm-begin-chapter-doorway summary {
  color: var(--pm-accent);
}

.pm-begin-detail {
  background: color-mix(in srgb, var(--pm-surface) 88%, var(--pm-accent-soft));
  border: 1px solid var(--pm-border);
  border-radius: 12px;
}

.pm-begin-detail summary {
  cursor: pointer;
  font-family: system-ui, sans-serif;
  font-weight: 700;
  padding: 0.9rem 1rem;
}

.pm-begin-detail__content {
  border-top: 1px solid var(--pm-border);
  max-width: 760px;
  padding: 0.5rem 1rem 1rem;
}

.pm-begin-detail__content h4 {
  margin-bottom: 0.25rem;
}

.pm-begin-transition {
  border-left: 4px solid var(--pm-accent);
  color: var(--pm-muted);
  margin-top: 2rem;
  max-width: 760px;
  padding-left: 1rem;
}

.pm-panorama {
  scroll-margin-top: 8rem;
}

.pm-panorama-timeline {
  counter-reset: panorama;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.pm-panorama-timeline li {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 16px;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.pm-panorama-node {
  align-items: center;
  background: var(--pm-accent-soft);
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  color: var(--pm-accent);
  display: inline-flex;
  font-family: system-ui, sans-serif;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.pm-panorama-timeline h3 {
  line-height: 1.1;
  margin: 0;
}

.pm-panorama-timeline p {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0.35rem 0 0;
}

.pm-panorama-subtitle {
  color: var(--pm-text) !important;
  font-weight: 700;
}

.pm-pathways {
  scroll-margin-top: 8rem;
}

.pm-pathway-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pm-pathway-card {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 1.15rem;
}

.pm-pathway-card h3 {
  font-size: 1.45rem;
  line-height: 1.1;
  margin: 0.35rem 0 0.8rem;
}

.pm-pathway-card__summary {
  color: var(--pm-muted);
  font-size: 1rem;
  margin: 0 0 1rem;
}

.pm-pathway-card__copy {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
}

.pm-pathway-card__copy p:first-child {
  color: var(--pm-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
}

.pm-pathway-detail {
  margin-bottom: 1rem;
}

.pm-pathway-detail .pm-begin-detail__content {
  max-height: 280px;
  overflow: auto;
}

.pm-pathway-card .pm-button {
  margin-top: auto;
}

.pm-reader-promise {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 22px;
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  scroll-margin-top: 8rem;
}

.pm-reader-promise > div:first-child {
  max-width: 760px;
}

.pm-reader-promise p {
  color: var(--pm-muted);
}

.pm-reader-promise ul {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-reader-promise li {
  background: var(--pm-accent-soft);
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  font-family: system-ui, sans-serif;
  padding: 0.65rem 0.85rem;
}

.pm-daily-boot-kit .pm-main {
  width: min(920px, calc(100% - 2rem));
}

.pm-boot-hero {
  background:
    radial-gradient(circle at top left, var(--pm-accent-soft), transparent 38%),
    var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 26px;
  margin-bottom: 1rem;
  padding: clamp(1.4rem, 5vw, 3.5rem);
}

.pm-boot-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0.25rem 0 1rem;
  max-width: 10ch;
}

.pm-boot-hero p:not(.pm-eyebrow) {
  color: var(--pm-muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  max-width: 620px;
}

.pm-boot-primary-action {
  font-size: 1rem;
  margin-top: 1rem;
  min-height: 3rem;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.pm-boot-account-note {
  align-items: center;
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 20px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 0 1rem;
  padding: 1rem;
}

.pm-boot-account-note h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin: 0.2rem 0 0.5rem;
}

.pm-boot-account-note p {
  color: var(--pm-muted);
  margin: 0.25rem 0;
}

.pm-boot-account-note__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.pm-boot-reading,
.pm-boot-continue,
.pm-boot-inspection {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 22px;
}

.pm-boot-reading {
  border-color: var(--pm-accent);
  box-shadow: 0 18px 56px rgb(0 0 0 / 8%);
  margin: 0 0 clamp(1.5rem, 5vw, 3rem);
  padding: clamp(1.5rem, 5vw, 3.25rem);
}

.pm-boot-reading h2 {
  font-size: clamp(3.25rem, 12vw, 7.5rem);
  letter-spacing: -0.055em;
  line-height: 0.9;
  margin: 0.2rem 0 1rem;
}

.pm-boot-reading p:not(.pm-card-kicker) {
  color: var(--pm-muted);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  max-width: 620px;
}

.pm-boot-flow {
  display: grid;
  gap: 0;
  margin: 0 auto;
  max-width: 780px;
}

.pm-boot-step {
  border-left: 1px solid var(--pm-border);
  display: grid;
  gap: 1rem;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  padding: 0 0 clamp(1.5rem, 5vw, 2.75rem) clamp(1rem, 4vw, 2rem);
  position: relative;
}

.pm-boot-step::before {
  background: var(--pm-bg);
  border: 1px solid var(--pm-accent);
  border-radius: 999px;
  content: "";
  height: 0.75rem;
  left: -0.42rem;
  position: absolute;
  top: 0.5rem;
  width: 0.75rem;
}

.pm-boot-step__label {
  color: var(--pm-accent);
  font-family: system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pm-boot-step h2,
.pm-boot-continue h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 0.75rem;
}

.pm-boot-step p,
.pm-boot-continue p,
.pm-boot-inspection p {
  color: var(--pm-muted);
}

.pm-boot-anticipation {
  background: linear-gradient(90deg, var(--pm-accent-soft), transparent 84%);
  border-left-color: var(--pm-accent);
  border-radius: 0 20px 20px 0;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  padding-top: 1.15rem;
}

.pm-boot-boundary-note {
  border-top: 1px solid var(--pm-border);
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
}

.pm-boot-continue {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 0.25rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.pm-boot-continue > div {
  max-width: 640px;
}

.pm-boot-inspection {
  margin-top: 1rem;
}

.pm-boot-inspection summary {
  cursor: pointer;
  font-family: system-ui, sans-serif;
  font-weight: 700;
  padding: 1rem 1.15rem;
}

.pm-boot-inspection__content {
  border-top: 1px solid var(--pm-border);
  padding: 1rem 1.15rem 1.15rem;
}

.pm-boot-inspection dl {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0;
}

.pm-boot-inspection dl > div {
  background: var(--pm-accent-soft);
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  padding: 0.75rem;
}

.pm-boot-inspection dt {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pm-boot-inspection dd {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.25rem 0 0;
}

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

.pm-reader-rail {
  position: sticky;
  top: 5rem;
}

.pm-reader-controls {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.pm-reader-content {
  max-width: 100%;
  min-width: 0;
}

body.pm-canonical-commentary-reader .pm-main {
  width: min(1680px, calc(100% - 2rem));
  padding-top: 0.95rem;
}

.pm-reader-toolbar {
  align-items: center;
  background: color-mix(in srgb, var(--pm-bg) 90%, transparent);
  border: 1px solid transparent;
  border-radius: 12px;
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 0.3rem;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.12rem;
  position: sticky;
  top: 4.55rem;
  z-index: 12;
}

.pm-reader-toolbar::-webkit-scrollbar {
  display: none;
}

.pm-reader-actions {
  background: color-mix(in srgb, var(--pm-bg) 90%, transparent);
  border-radius: 12px;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
  padding: 0.12rem;
  position: sticky;
  top: 4.55rem;
  z-index: 12;
}

.pm-focus-visible {
  display: none;
}

.pm-focus-current {
  align-items: center;
  color: var(--pm-muted);
  display: inline-flex;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.2;
  padding: 0.35rem 0.65rem;
}

.pm-toolbar-control {
  align-items: center;
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  color: var(--pm-text);
  cursor: pointer;
  display: inline-flex;
  font: 700 0.88rem/1.1 system-ui, sans-serif;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.4rem 0.7rem;
  text-decoration: none;
}

.pm-toolbar-control:hover,
.pm-toolbar-control:focus-visible {
  background: var(--pm-accent-soft);
  border-color: var(--pm-accent);
  outline: none;
}

.pm-toolbar-control:disabled,
.pm-toolbar-control[aria-disabled="true"] {
  color: var(--pm-muted);
  cursor: default;
  opacity: 0.62;
}

.pm-current-passage-indicator {
  display: block;
  flex: 0 1 13rem;
  max-width: min(13rem, 30vw);
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-toolbar-icon {
  font-size: 1rem;
  min-width: 2.15rem;
  padding-inline: 0.55rem;
}

.pm-toolbar-group {
  align-items: center;
  background: color-mix(in srgb, var(--pm-bg) 74%, var(--pm-surface));
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.12rem;
  padding: 0.16rem;
}

.pm-toolbar-group .pm-toolbar-control,
.pm-toolbar-group .pm-text-size-step {
  background: transparent;
  border-color: transparent;
  min-height: 1.95rem;
  min-width: 1.95rem;
}

.pm-toolbar-group .pm-toolbar-control:hover,
.pm-toolbar-group .pm-toolbar-control:focus-visible,
.pm-toolbar-group .pm-text-size-step:hover,
.pm-toolbar-group .pm-text-size-step:focus-visible {
  background: var(--pm-accent-soft);
  border-color: var(--pm-accent);
}

.pm-toolbar-group img {
  display: block;
  height: 1.08rem;
  pointer-events: none;
  width: 1.08rem;
}

.pm-path-state-button[data-path-state="off"] {
  background: var(--pm-accent-soft);
  border-color: color-mix(in srgb, var(--pm-accent) 60%, transparent);
}

.pm-toolbar-book {
  background: color-mix(in srgb, var(--pm-accent-soft) 62%, transparent);
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  color: var(--pm-text);
  font-weight: 700;
  max-width: min(28rem, 100%);
}

.pm-text-size-control {
  align-items: center;
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  color: var(--pm-text);
  display: inline-flex;
  font-family: system-ui, sans-serif;
  gap: 0.2rem;
  min-height: 2.5rem;
  padding: 0.2rem;
}

.pm-text-size-step {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  color: var(--pm-text);
  cursor: pointer;
  font: 700 0.9rem/1 system-ui, sans-serif;
  min-height: 2.15rem;
  min-width: 2.15rem;
  padding: 0.35rem 0.5rem;
}

.pm-text-size-step:hover,
.pm-text-size-step:focus-visible {
  background: var(--pm-accent-soft);
  border-color: var(--pm-accent);
  outline: none;
}

.pm-text-size-step:disabled {
  color: var(--pm-muted);
  cursor: default;
  opacity: 0.55;
}

.pm-focus-marker-icon {
  display: block;
  height: 1.15rem;
  width: 1.15rem;
}

.pm-reader-memory-controls {
  align-items: center;
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-inline: 0;
  padding: 0.2rem;
}

.pm-reader-memory-controls .pm-button {
  border-radius: 999px;
  min-height: 2.15rem;
  padding: 0.4rem 0.7rem;
}

.pm-memory-flag-control {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.pm-reader-toolbar > .pm-companion-toggle,
.pm-reader-actions > .pm-companion-toggle {
  white-space: nowrap;
}

.pm-memory-read-control[aria-pressed="true"],
.pm-memory-flag-control[aria-pressed="true"] {
  background: var(--pm-accent-soft);
  border-color: var(--pm-accent);
  color: var(--pm-accent);
  font-weight: 700;
}

.pm-memory-read-control[data-memory-disabled="true"] {
  color: var(--pm-muted);
  opacity: 0.68;
}

.pm-memory-read-control[data-memory-disabled="true"]:hover,
.pm-memory-read-control[data-memory-disabled="true"]:focus-visible {
  border-color: var(--pm-border);
}

.pm-path-search-dialog[hidden] {
  display: none;
}

.pm-path-search-dialog {
  inset: 0;
  position: fixed;
  z-index: 80;
}

.pm-path-search-backdrop {
  background: rgb(0 0 0 / 38%);
  inset: 0;
  position: absolute;
}

.pm-path-search-box {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 16px;
  box-shadow: 0 24px 72px rgb(0 0 0 / 28%);
  color: var(--pm-text);
  display: grid;
  font-family: system-ui, sans-serif;
  gap: 0.75rem;
  left: 50%;
  max-width: min(26rem, calc(100vw - 2rem));
  padding: 1.1rem;
  position: absolute;
  top: max(5rem, 16vh);
  transform: translateX(-50%);
  width: 100%;
}

.pm-path-search-box h2,
.pm-path-search-box p,
.pm-path-search-box h3 {
  margin: 0;
}

.pm-path-search-box h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.pm-path-search-box p,
.pm-path-search-toggle,
.pm-path-search-status,
.pm-path-search-empty {
  color: var(--pm-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.pm-path-search-close {
  align-items: center;
  background: transparent;
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  color: var(--pm-text);
  cursor: pointer;
  display: inline-flex;
  font: 700 1.1rem/1 system-ui, sans-serif;
  height: 2rem;
  justify-content: center;
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  width: 2rem;
}

.pm-path-search-close:hover,
.pm-path-search-close:focus-visible {
  background: var(--pm-accent-soft);
  border-color: var(--pm-accent);
  outline: none;
}

.pm-path-search-toggle {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
}

.pm-path-search-toggle input {
  accent-color: var(--pm-accent);
}

.pm-path-search-box input[type="search"] {
  background: color-mix(in srgb, var(--pm-bg) 68%, var(--pm-surface));
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  color: var(--pm-text);
  font: 0.95rem/1.3 system-ui, sans-serif;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.pm-path-search-box input[type="search"]:focus {
  border-color: var(--pm-accent);
  box-shadow: 0 0 0 3px var(--pm-accent-soft);
  outline: none;
}

.pm-path-search-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.pm-path-search-actions a {
  color: var(--pm-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.pm-path-search-actions a span {
  font-size: 0.78rem;
}

.pm-path-search-results,
.pm-path-search-recent {
  border-top: 1px solid var(--pm-border);
  display: grid;
  gap: 0.45rem;
  padding-top: 0.65rem;
}

.pm-path-search-results[hidden] {
  display: none;
}

.pm-path-search-results h3,
.pm-path-search-recent h3 {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pm-path-search-results [data-path-search-results],
.pm-path-search-recent [data-path-recent-visits] {
  display: grid;
  gap: 0.35rem;
}

.pm-path-search-result {
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  display: grid;
  gap: 0.3rem;
  padding: 0.6rem 0.65rem;
}

.pm-path-search-result h4 {
  font-size: 0.88rem;
  margin: 0;
}

.pm-path-search-result strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

.pm-path-search-result p {
  margin: 0;
}

.pm-path-search-results a,
.pm-path-search-recent a {
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  color: var(--pm-text);
  display: grid;
  font-size: 0.9rem;
  line-height: 1.25;
  padding: 0.55rem 0.65rem;
  text-decoration: none;
}

.pm-path-search-result a {
  justify-self: start;
  margin-top: 0.1rem;
}

.pm-path-search-results a:hover,
.pm-path-search-results a:focus-visible,
.pm-path-search-recent a:hover,
.pm-path-search-recent a:focus-visible {
  background: var(--pm-accent-soft);
  border-color: var(--pm-accent);
  outline: none;
}

.pm-path-search-recent a span {
  color: var(--pm-muted);
  font-size: 0.76rem;
  margin-top: 0.12rem;
}

.pm-path-search-status {
  min-height: 1.1rem;
}

.pm-memory-remember-control[data-memory-secondary="true"] {
  display: none;
}

.pm-pericope-list {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.5rem;
}

.pm-pericope-list a,
.pm-pericope-list__pending {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 120px;
  gap: 1rem;
  align-items: center;
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  color: var(--pm-text);
  padding: 0.75rem;
  text-decoration: none;
}

.pm-pericope-list em {
  color: var(--pm-muted);
  font-style: normal;
  text-align: right;
}

/* Normalized Commentary Compatibility Layer */
.pm-pericope-source,
.pm-normalized-book-source {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 2rem);
  max-width: 100%;
  min-width: 0;
}

.pm-reader-content .pc-book-header,
.pm-reader-content #BOOK-NAVIGATION,
.pm-reader-content .pc-home-nav,
.pm-reader-content #READING-ACTIONS {
  display: none;
}

.pm-pericope-source .pc-pericope,
.pm-reader-content .pc-book,
.pm-reader-content .pc-pericopes {
  max-width: 900px;
}

.pm-reading-text,
.pm-reader-content .pc-book,
.pm-reader-content .pc-pericopes,
.pm-reader-content .pc-pericope {
  --pm-reader-base-font-size: 1.125rem;
  font-size: calc(var(--pm-reader-base-font-size, 1.125rem) * var(--pm-reader-font-scale, 1));
}

.pm-reader-content .pc-book,
.pm-reader-content .pc-pericopes {
  margin: 0 auto;
  min-width: 0;
}

[data-theme="dark"] body.pm-canonical-commentary-reader .pm-reader-content a,
[data-theme="dark"] body.pm-canonical-commentary-reader .pm-pericope-source a {
  color: var(--pm-reader-link, #b7d7c1);
  text-decoration-color: rgb(183 215 193 / 72%);
  text-underline-offset: 0.16em;
}

[data-theme="dark"] body.pm-canonical-commentary-reader .pm-reader-content a:visited,
[data-theme="dark"] body.pm-canonical-commentary-reader .pm-pericope-source a:visited {
  color: var(--pm-reader-link-visited, #a8c8b3);
}

[data-theme="dark"] body.pm-canonical-commentary-reader .pm-reader-content a:hover,
[data-theme="dark"] body.pm-canonical-commentary-reader .pm-reader-content a:focus-visible,
[data-theme="dark"] body.pm-canonical-commentary-reader .pm-pericope-source a:hover,
[data-theme="dark"] body.pm-canonical-commentary-reader .pm-pericope-source a:focus-visible {
  color: var(--pm-reader-link-hover, #d7f0df);
  text-decoration-color: currentColor;
}

[data-theme="dark"] body.pm-canonical-commentary-reader .pm-reader-content a:focus-visible,
[data-theme="dark"] body.pm-canonical-commentary-reader .pm-pericope-source a:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--pm-reader-link-focus, rgb(183 215 193 / 55%));
  outline-offset: 2px;
}

.pm-reader-content #BOOK-SUPPORT,
.pm-reader-content #MOVEMENT-MAP,
.pm-reader-content #TOC {
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  margin: 0 0 0.6rem;
  padding: 0.65rem 0.85rem;
}

.pm-reader-content #BOOK-SUPPORT-title,
.pm-reader-content #BOOK-SUPPORT > h2 {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.pm-reader-content #BOOK-SUPPORT details {
  border-top: 1px solid var(--pm-border);
  padding: 0.45rem 0;
}

.pm-reader-content #BOOK-SUPPORT summary,
.pm-reader-content #MOVEMENT-MAP summary,
.pm-reader-content #TOC summary {
  cursor: pointer;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
}

/* Older normalized books sometimes place Back-to-TOC links in pericope headers.
   The reader shell keeps the bottom scaffold link as the canonical return pattern. */
.pm-reader-content .pc-pericope > header .pc-pericope__nav,
.pm-reader-content .pc-pericope > header .pc-pericope__backtotoc {
  display: none;
}

.pm-reader-content #GEN001 {
  margin-top: 1rem;
}

.pm-reader-content .pc-pericope {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-left: 4px solid var(--pm-border);
  border-radius: 8px;
  margin: 2rem 0;
  overflow: hidden;
  padding: clamp(1rem, 2vw, 1.5rem);
  scroll-margin-top: 5rem;
}

.pm-pericope-source .pc-pericope__title,
.pm-reader-content .pc-pericope__title {
  font-size: 1.75rem;
  line-height: 1.2;
}

.pm-pericope-source .pc-section__heading,
.pm-reader-content .pc-section__heading {
  margin-top: 2rem;
}

.pm-reader-content .pc-scripture__text {
  background: var(--pm-accent-soft);
  border-left: 4px solid var(--pm-accent);
  border-radius: 8px;
  color: var(--pm-text);
  margin-left: 0;
  margin-right: 0;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
}

.pm-reader-content .pc-scripture-text,
.pm-reader-content blockquote,
.pm-reader-content .pc-scripture {
  color: var(--pm-text);
  line-height: 1.55;
  margin: 0 0 1em;
}

.pm-reader-content [data-style="Scripture Para"],
.pm-reader-content [data-style="Scripture Inline"],
.pm-reader-content em.pc-scripture__inline {
  color: var(--pm-text);
  font-size: 0.95em;
  font-style: italic;
  line-height: 1.55;
}

.pm-reader-content [data-style="Scripture Para"] {
  margin: 0 0 0.75rem;
}

.pm-reader-content [data-style="Scripture Para"] + [data-style="Scripture Para"] {
  margin-top: 0;
}

.pm-reader-content .pc-symbol-spotlight,
.pm-reader-content .pc-figure {
  display: block;
  margin: 1.25rem 0;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

.pm-pericope-source table,
.pm-reader-content .pc-book table,
.pm-reader-content .pc-pericope table,
.pm-reader-content .pc-symbol-spotlight__table {
  border: 1px solid var(--pm-border);
  border-collapse: collapse;
  margin: 1rem 0;
  max-width: 100%;
  table-layout: auto;
  width: 100%;
}

.pm-pericope-source th,
.pm-pericope-source td,
.pm-reader-content .pc-book th,
.pm-reader-content .pc-book td,
.pm-reader-content .pc-pericope th,
.pm-reader-content .pc-pericope td,
.pm-reader-content .pc-symbol-spotlight__table th,
.pm-reader-content .pc-symbol-spotlight__table td {
  border: 1px solid var(--pm-border);
  padding: 0.65rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.pm-pericope-source th,
.pm-reader-content .pc-book th,
.pm-reader-content .pc-pericope th,
.pm-reader-content .pc-symbol-spotlight__table th,
.pm-reader-content .pc-symbol-spotlight__table thead {
  background: var(--pm-accent-soft);
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.pm-reader-content .pc-table--zebra tbody tr:nth-child(even) {
  background: var(--pm-accent-soft);
}


@media (max-width: 860px) {
  .pm-nav {
    display: flex;
    gap: 0.55rem;
    font-size: 0.82rem;
  }

  .pm-topbar {
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.55rem 0.65rem;
  }

  .pm-brand {
    font-size: 0.98rem;
  }

  .pm-topbar-account,
  .pm-topbar .pm-icon-button {
    min-height: 2.25rem;
    padding: 0.42rem 0.58rem;
  }

  .pm-begin-hero,
  .pm-begin-chapter,
  .pm-panorama-timeline,
  .pm-pathway-grid,
  .pm-reader-promise ul,
  .pm-boot-step,
  .pm-boot-inspection dl {
    grid-template-columns: 1fr;
  }

  .pm-boot-step {
    padding-left: 1.25rem;
  }

  .pm-boot-continue {
    align-items: flex-start;
    flex-direction: column;
  }

  .pm-boot-account-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .pm-boot-account-note__actions {
    justify-content: flex-start;
  }

  .pm-begin-jump {
    border-radius: 14px;
    position: static;
  }

  .pm-begin-chapter__meta {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
  }

  .pm-card-grid,
  .pm-entry-grid,
  .pm-book-grid,
  .pm-library-grid,
  .pm-library-summary,
  .pm-movement-grid,
  .pm-recommended-grid,
  .pm-book-facts,
  .pm-reader-layout {
    grid-template-columns: 1fr;
  }

  .pm-pericope-list a,
  .pm-pericope-list__pending {
    grid-template-columns: 1fr;
  }

  .pm-pericope-list em {
    text-align: left;
  }

  .pm-book-pericope-index a {
    gap: 0.2rem;
    grid-template-columns: 1fr;
  }

  .pm-book-pericope-index a small {
    text-align: left;
  }

  .pm-movement-metadata {
    grid-template-columns: 1fr;
  }

  .pm-reader-content .pc-book table,
  .pm-reader-content .pc-pericope table,
  .pm-reader-content .pc-symbol-spotlight__table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: var(--pm-accent) var(--pm-accent-soft);
    scrollbar-width: thin;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .pm-reader-content .pc-book table thead,
  .pm-reader-content .pc-book table tbody,
  .pm-reader-content .pc-book table tfoot,
  .pm-reader-content .pc-pericope table thead,
  .pm-reader-content .pc-pericope table tbody,
  .pm-reader-content .pc-pericope table tfoot,
  .pm-reader-content .pc-symbol-spotlight__table thead,
  .pm-reader-content .pc-symbol-spotlight__table tbody {
    min-width: 640px;
  }

  .pm-reader-content .pc-book table th,
  .pm-reader-content .pc-book table td,
  .pm-reader-content .pc-pericope table th,
  .pm-reader-content .pc-pericope table td,
  .pm-reader-content .pc-symbol-spotlight__table th,
  .pm-reader-content .pc-symbol-spotlight__table td {
    min-width: 9rem;
  }

  .pm-main {
    padding-top: 2rem;
  }
}

.pm-reader-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.pm-canonical-workspace {
  display: block;
  position: relative;
}

.pm-canonical-workspace > .pm-reader-content {
  margin-inline: auto;
  max-width: min(860px, 100%);
  width: 100%;
}

.pm-reader-column {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  min-height: 70vh;
}

.pm-reader-header {
  border-bottom: 1px solid var(--pm-border);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

.pm-reader-header h1 {
  line-height: 1.15;
  margin: 0.25rem 0 0.75rem;
}

.pm-reader-summary {
  color: var(--pm-muted);
  font-size: 1.08rem;
}

.pm-reader-actions,
.pm-reader-next {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.pm-reading-text {
  font-size: calc(var(--pm-reader-base-font-size, 1.125rem) * var(--pm-reader-font-scale, 1));
}

.pm-reading-text p {
  margin: 0 0 1.15rem;
}

.pm-reader-panel {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  padding: 1rem;
  position: sticky;
  top: 5rem;
}

.pm-canonical-workspace .pm-reader-panel {
  max-height: calc(100vh - 6rem);
  overscroll-behavior: contain;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.pm-canonical-workspace > .pm-reader-panel-left {
  bottom: 1.25rem;
  left: max(1rem, calc((100vw - 1680px) / 2 + 1rem));
  max-height: none;
  position: fixed;
  top: 5.25rem;
  width: min(300px, calc(100vw - 2rem));
  z-index: 24;
}

.pm-reader-support-surface {
  bottom: 1rem;
  box-shadow: 0 16px 48px rgb(0 0 0 / 18%);
  max-height: calc(100vh - 5.5rem);
  max-width: calc(100vw - 2rem);
  opacity: 1;
  overscroll-behavior: contain;
  overflow-y: auto;
  position: fixed;
  right: 1rem;
  top: 4.5rem;
  transform: translateX(0);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: visible;
  width: min(280px, calc(100vw - 2rem));
  z-index: 30;
  scrollbar-gutter: stable;
}

.pm-reader-support-surface[data-companion-width="small"] {
  width: min(280px, calc(100vw - 2rem));
}

.pm-reader-support-surface[data-companion-width="large"] {
  width: min(620px, calc(100vw - 2rem));
}

.pm-reader-support-surface.pm-panel-collapsed {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 2rem));
  visibility: hidden;
}

.pm-support-header {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.pm-support-header h2 {
  line-height: 1.2;
  margin: 0;
}

.pm-support-title-block {
  min-width: 0;
}

.pm-support-header-actions {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.35rem;
}

.pm-support-close {
  width: auto;
}

.pm-panel-icon-button {
  align-items: center;
  background: color-mix(in srgb, var(--pm-bg) 72%, transparent);
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  color: var(--pm-text);
  cursor: pointer;
  display: inline-flex;
  font: 700 0.95rem/1 system-ui, sans-serif;
  justify-content: center;
  min-height: 2rem;
  min-width: 2rem;
  padding: 0.3rem 0.5rem;
}

.pm-panel-icon-button:hover,
.pm-panel-icon-button:focus-visible {
  border-color: var(--pm-accent);
  outline: none;
}

.pm-companion-current-reading {
  border-block: 1px solid var(--pm-border);
  margin-bottom: 0.45rem;
  padding: 0.6rem 0;
}

.pm-companion-current-reading h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.25;
  margin: 0 0 0.15rem;
}

.pm-companion-current-meta {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.pm-companion-current-meta p {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.86rem;
  line-height: 1.3;
  margin: 0;
}

.pm-companion-read-dot {
  background: #b85b55;
  border-radius: 999px;
  box-shadow: 0 0 0 4px color-mix(in srgb, #b85b55 16%, transparent);
  display: inline-block;
  flex: 0 0 auto;
  height: 0.58rem;
  width: 0.58rem;
}

.pm-companion-read-dot[data-memory-state="read"] {
  background: #4d8b5a;
  box-shadow: 0 0 0 4px color-mix(in srgb, #4d8b5a 16%, transparent);
}

.pm-support-sections p {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.38;
  margin: 0;
}

.pm-support-sections details {
  border-top: 1px solid var(--pm-border);
  padding: 0.42rem 0;
}

.pm-support-sections details:last-child {
  border-bottom: 1px solid var(--pm-border);
}

.pm-support-sections summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.5rem;
  justify-content: flex-start;
  text-align: left;
}

.pm-support-sections summary::-webkit-details-marker {
  display: none;
}

.pm-support-sections summary::before {
  color: var(--pm-muted);
  content: "▸";
  flex: 0 0 auto;
  font-size: 0.88rem;
  line-height: 1;
}

.pm-support-sections details[open] > summary::before {
  content: "▾";
}

.pm-support-sections summary > span {
  flex: 1 1 auto;
}

.pm-support-sections summary .pm-companion-progress-cycle {
  margin-left: auto;
  min-height: 1.75rem;
  min-width: 1.75rem;
  padding: 0.2rem 0.4rem;
}

.pm-companion-progress {
  margin-top: 0.45rem;
}

.pm-companion-progress__label {
  color: var(--pm-text) !important;
  font-weight: 700;
  margin: 0 0 0.1rem;
}

.pm-companion-progress__count,
.pm-companion-progress__percent,
.pm-companion-progress__note {
  margin: 0.25rem 0 0;
}

.pm-companion-progress__count {
  color: var(--pm-muted);
  white-space: normal;
}

.pm-companion-progress__track {
  background: color-mix(in srgb, var(--pm-border) 60%, transparent);
  border-radius: 999px;
  height: 0.58rem;
  margin-top: 0.38rem;
  overflow: hidden;
}

.pm-companion-progress__track span {
  background: linear-gradient(90deg, var(--pm-accent), color-mix(in srgb, var(--pm-accent) 72%, #ffffff));
  display: block;
  height: 100%;
  transition: width 160ms ease;
}

.pm-companion-placeholder {
  display: grid;
  gap: 0.42rem;
  margin-top: 0.45rem;
}

.pm-companion-placeholder h3,
.pm-companion-placeholder h4 {
  font-family: system-ui, sans-serif;
  line-height: 1.25;
  margin: 0;
}

.pm-companion-placeholder h3 {
  font-size: 0.95rem;
}

.pm-companion-placeholder h4 {
  color: var(--pm-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pm-companion-kicker,
.pm-companion-status {
  color: var(--pm-accent) !important;
  font-weight: 700;
  margin: 0;
}

.pm-daily-mystery-reveal {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.15rem;
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 220ms ease, transform 220ms ease;
}

.pm-daily-mystery-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pm-daily-mystery-reveal hr {
  border: 0;
  border-top: 1px solid var(--pm-border);
  margin: 0.25rem 0;
  width: 100%;
}

.pm-daily-mystery-button {
  overflow: hidden;
  position: relative;
}

.pm-daily-mystery-button.pm-daily-mystery-preparing::after {
  animation: pm-diamond-glint 720ms ease-out 1;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 36%,
    rgb(255 255 255 / 34%) 47%,
    rgb(255 255 255 / 72%) 50%,
    rgb(255 255 255 / 28%) 53%,
    transparent 64%,
    transparent 100%
  );
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-120%);
}

@keyframes pm-diamond-glint {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

.pm-companion-private-note textarea {
  background: color-mix(in srgb, var(--pm-bg) 70%, var(--pm-surface));
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  color: var(--pm-text);
  font: 0.88rem/1.4 system-ui, sans-serif;
  min-height: 6rem;
  padding: 0.65rem;
  resize: vertical;
  width: 100%;
}

.pm-companion-private-note textarea:focus {
  border-color: var(--pm-accent);
  box-shadow: 0 0 0 3px var(--pm-accent-soft);
  outline: none;
}
.pm-companion-issue-report label {
  color: var(--pm-text);
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.pm-companion-issue-report select,
.pm-companion-issue-report textarea {
  background: color-mix(in srgb, var(--pm-bg) 70%, var(--pm-surface));
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  color: var(--pm-text);
  font: 0.88rem/1.4 system-ui, sans-serif;
  padding: 0.6rem;
  width: 100%;
}

.pm-companion-issue-report textarea {
  min-height: 6rem;
  resize: vertical;
}

.pm-companion-issue-report select:focus,
.pm-companion-issue-report textarea:focus {
  border-color: var(--pm-accent);
  box-shadow: 0 0 0 3px var(--pm-accent-soft);
  outline: none;
}

.pm-companion-checkbox {
  align-items: flex-start;
  color: var(--pm-muted) !important;
  display: flex;
  gap: 0.45rem;
  font-weight: 500 !important;
}

.pm-companion-checkbox input {
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

.pm-companion-disclosure {
  border-top: 1px solid var(--pm-border);
  padding-top: 0.55rem;
}

.pm-companion-issue-report .pm-companion-status {
  min-height: 1.15rem;
}

.pm-companion-status[data-status-state="error"] {
  color: #b85b55 !important;
}

.pm-companion-status[data-status-state="success"] {
  color: #4d8b5a !important;
}

.pm-companion-note-actions {
  display: grid;
  gap: 0.38rem;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
}

.pm-companion-note-actions .pm-button {
  font-size: 0.78rem;
  justify-content: center;
  min-height: 2.05rem;
  padding: 0.35rem 0.48rem;
}

.pm-companion-manage-links {
  border-top: 1px solid var(--pm-border);
  display: grid;
  gap: 0.38rem;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  padding-top: 0.55rem;
}

.pm-companion-manage-links .pm-button {
  font-size: 0.78rem;
  justify-content: center;
  min-height: 2.05rem;
  padding: 0.35rem 0.48rem;
}

.pm-companion-private-note .pm-companion-status {
  min-height: 1.15rem;
}

.pm-private-note-flashlight {
  flex: 0 0 auto !important;
  margin-left: auto;
  opacity: 0.62;
}

.pm-private-note-flashlight[data-private-note-state="active"] {
  filter: drop-shadow(0 0 0.45rem color-mix(in srgb, var(--pm-accent) 72%, transparent));
  opacity: 1;
}

.pm-memory-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pm-memory-action-button {
  width: auto;
}

.pm-support-marker-only [data-support-section]:not([data-marker-section]) {
  display: none;
}

.pm-support-marker-only {
  border-color: var(--pm-accent);
  max-width: min(360px, calc(100vw - 2rem));
}

.pm-panel-toggle {
  width: 100%;
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  background: transparent;
  color: var(--pm-text);
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.pm-panel-content {
  margin-top: 1rem;
}

.pm-dock-tabs {
  display: grid;
  gap: 0.3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.pm-dock-tabs button {
  background: transparent;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  color: var(--pm-muted);
  cursor: pointer;
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  min-height: 2rem;
  padding: 0.3rem 0.4rem;
}

.pm-dock-tabs button[aria-selected="true"] {
  background: var(--pm-accent-soft);
  border-color: var(--pm-accent);
  color: var(--pm-text);
  font-weight: 700;
}

.pm-dock-panel[hidden] {
  display: none;
}

.pm-dock-panel h2 {
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0.2rem 0 0.75rem;
}

.pm-dock-support-links {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 0.75rem;
}

.pm-dock-support-links a {
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  line-height: 1.25;
  padding: 0.4rem 0.5rem;
  text-decoration: none;
}

.pm-dock-support-links a:hover,
.pm-dock-support-links a:focus-visible {
  background: var(--pm-accent-soft);
  border-color: var(--pm-accent);
  color: var(--pm-text);
}

.pm-dock-panel > p:not(.pm-eyebrow) {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
}

.pm-dock-bible-intro {
  margin-bottom: 0.75rem;
}

.pm-dock-bible-books {
  display: grid;
  gap: 0.45rem;
}

.pm-dock-testament {
  border: 1px solid var(--pm-border);
  border-radius: 7px;
}

.pm-dock-testament > summary {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.6rem;
}

.pm-dock-testament ul {
  border-top: 1px solid var(--pm-border);
  display: grid;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  max-height: 46vh;
  overflow-y: auto;
  padding: 0.35rem;
}

.pm-dock-testament a,
.pm-dock-book-unavailable {
  border-radius: 5px;
  color: var(--pm-text);
  display: flex;
  font-family: system-ui, sans-serif;
  font-size: 0.76rem;
  gap: 0.35rem;
  justify-content: space-between;
  line-height: 1.25;
  padding: 0.35rem 0.4rem;
  text-decoration: none;
}

.pm-dock-testament a:hover,
.pm-dock-testament a:focus-visible,
.pm-dock-testament a.pm-current-book {
  background: var(--pm-accent-soft);
}

.pm-dock-testament a.pm-current-book {
  color: var(--pm-accent);
  font-weight: 700;
}

.pm-dock-book-unavailable {
  color: var(--pm-muted);
}

.pm-dock-book-unavailable small {
  font-size: 0.62rem;
  text-align: right;
}

.pm-dock-contents {
  display: grid;
  gap: 0.35rem;
}

.pm-reader-panel .pm-dock-movement {
  border: 1px solid var(--pm-border);
  border-radius: 7px;
  padding: 0;
}

.pm-dock-movement summary {
  padding: 0.55rem 0.6rem;
}

.pm-dock-movement summary span,
.pm-dock-movement summary small {
  display: block;
}

.pm-dock-movement summary span {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.pm-dock-movement summary small {
  color: var(--pm-muted);
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

.pm-dock-movement .pm-dock-movement__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.45rem;
  justify-content: space-between;
}

.pm-dock-movement .pm-reader-pericope-list {
  border-top: 1px solid var(--pm-border);
  max-height: 48vh;
  overflow-y: auto;
  padding: 0.35rem 0.55rem 0.55rem;
}

.pm-dock-movement .pm-reader-pericope-list a.pm-current-pericope {
  background: var(--pm-accent-soft);
  color: var(--pm-text);
  font-weight: 700;
}

.pm-movement-list {
  display: grid;
  gap: 0.5rem;
}

.pm-movement-list a {
  color: var(--pm-text);
  text-decoration: none;
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  padding: 0.65rem;
}

.pm-movement-nav-item + .pm-movement-nav-item {
  border-top: 1px solid var(--pm-border);
  padding-top: 0.75rem;
}

.pm-movement-start span,
.pm-movement-start strong,
.pm-movement-start small {
  display: block;
}

.pm-movement-start span,
.pm-movement-start small {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
}

.pm-movement-start strong {
  line-height: 1.25;
  margin: 0.15rem 0;
}

.pm-reader-pericope-list {
  display: grid;
  gap: 0.2rem;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.pm-reader-pericope-list a {
  border: 0;
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  line-height: 1.3;
  padding: 0.35rem 0;
}

.pm-reader-panel details {
  border-top: 1px solid var(--pm-border);
  padding: 0.75rem 0;
}

.pm-reader-panel summary {
  cursor: pointer;
  font-family: system-ui, sans-serif;
}

.pm-panel-collapsed .pm-panel-content {
  display: none;
}

.pm-memory-prompt[hidden] {
  display: none;
}

.pm-memory-prompt {
  inset: 0;
  position: fixed;
  z-index: 70;
}

.pm-memory-prompt__backdrop {
  background: rgb(0 0 0 / 38%);
  inset: 0;
  position: absolute;
}

.pm-memory-prompt__dialog {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgb(0 0 0 / 28%);
  color: var(--pm-text);
  left: 50%;
  max-width: min(92vw, 430px);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.pm-memory-prompt__dialog:focus {
  outline: 2px solid var(--pm-accent);
  outline-offset: 4px;
}

.pm-memory-prompt__dialog h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.2;
  margin: 0.25rem 0 0.75rem;
}

.pm-memory-prompt__dialog p {
  color: var(--pm-muted);
  font-family: system-ui, sans-serif;
  line-height: 1.55;
}

.pm-memory-prompt__detail,
.pm-memory-prompt__authenticated,
.pm-memory-prompt__trust {
  background: var(--pm-accent-soft);
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  margin: 1rem 0;
  padding: 0.8rem;
}

.pm-memory-prompt__trust a {
  color: var(--pm-accent);
}

.pm-memory-prompt__authenticated[hidden],
.pm-memory-prompt__account-actions[hidden] {
  display: none;
}

.pm-memory-prompt__account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 0.75rem;
}

.pm-memory-prompt__status {
  min-height: 1.2rem;
}

.pm-memory-toast {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  bottom: 1rem;
  box-shadow: 0 12px 36px rgb(0 0 0 / 18%);
  color: var(--pm-text);
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  left: 50%;
  padding: 0.6rem 0.95rem;
  position: fixed;
  transform: translateX(-50%);
  z-index: 80;
}

body.mode-focus .pm-topbar,
body.mode-focus .pm-reader-panel-left,
body.mode-focus .pm-reader-panel-right:not(.pm-marker-panel-open):not(.pm-companion-panel-open),
body.mode-focus .pm-reader-support-surface:not(.pm-marker-panel-open):not(.pm-companion-panel-open),
body.mode-focus .pm-reader-next {
  display: none;
}

body.mode-focus .pm-main {
  width: min(1160px, calc(100% - 2rem));
}

body.mode-focus .pm-canonical-workspace {
  display: block;
}

body.mode-focus .pm-canonical-workspace > .pm-reader-content {
  margin-inline: auto;
  max-width: min(980px, 100%);
  width: 100%;
}

body.mode-focus .pm-reader-toolbar,
body.mode-focus .pm-reader-actions {
  background: color-mix(in srgb, var(--pm-bg) 82%, transparent);
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
  justify-content: center;
  gap: 0.35rem;
  padding: 0.28rem;
  position: sticky;
  top: 0.5rem;
  z-index: 5;
}

body.mode-focus .pm-reader-toolbar .pm-button,
body.mode-focus .pm-reader-actions .pm-button,
body.mode-focus .pm-toolbar-control,
body.mode-focus .pm-text-size-step,
body.mode-focus .pm-text-size-control,
body.mode-focus .pm-reader-memory-controls {
  min-height: 2.15rem;
  padding: 0.38rem 0.65rem;
}

body.mode-focus .pm-text-size-control {
  padding: 0.2rem;
}

body.mode-focus .pm-reader-memory-controls {
  margin-inline: 0;
  padding: 0.2rem;
}

body.mode-focus .pm-reader-memory-controls .pm-button {
  min-height: 1.9rem;
  padding: 0.28rem 0.55rem;
}

body.mode-focus .pm-focus-hidden {
  display: none;
}

body.mode-focus .pm-focus-visible {
  display: inline-flex;
}

body.mode-focus .pm-memory-remember-control {
  display: none;
}

body.mode-focus .pm-flag-text {
  display: none;
}

body.mode-focus .pm-reader-column {
  border: none;
  background: transparent;
  padding-top: 1rem;
}

@media (max-width: 980px) {
  .pm-account-placeholder-grid,
  .pm-account-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.pm-canonical-commentary-reader {
    --pm-mobile-utility-height: 3.35rem;
  }

  body.pm-canonical-commentary-reader .pm-topbar {
    background: color-mix(in srgb, var(--pm-surface) 94%, transparent);
    border-bottom: 1px solid var(--pm-border);
    box-shadow: 0 10px 26px rgb(0 0 0 / 12%);
    gap: 0.4rem;
    justify-content: flex-end;
    left: 0;
    min-height: var(--pm-mobile-utility-height);
    padding: 0.4rem 0.6rem 0.4rem 7.4rem;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateY(0);
    transition: transform 160ms ease, opacity 160ms ease;
    z-index: 60;
  }

  body.pm-canonical-commentary-reader.pm-mobile-utility-hidden .pm-topbar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-1 * var(--pm-mobile-utility-height) - 0.5rem));
  }

  body.pm-canonical-commentary-reader .pm-brand,
  body.pm-canonical-commentary-reader .pm-nav {
    display: none;
  }

  body.pm-canonical-commentary-reader .pm-topbar-actions {
    gap: 0.4rem;
  }

  body.pm-canonical-commentary-reader .pm-topbar-actions .pm-icon-button {
    min-height: 2.25rem;
    padding: 0.42rem 0.65rem;
  }

  .pm-reader-workspace {
    display: block;
  }

  .pm-reader-toolbar {
    border-color: var(--pm-border);
    border-radius: 999px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-inline: -0.25rem;
    max-width: calc(100vw - 0.5rem);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0.24rem;
    scrollbar-width: none;
    top: calc(var(--pm-mobile-utility-height, 0rem) + 0.45rem);
    transition: top 160ms ease;
  }

  body.pm-mobile-utility-hidden .pm-reader-toolbar {
    top: 0.5rem;
  }

  .pm-reader-toolbar::-webkit-scrollbar {
    display: none;
  }

  .pm-reader-toolbar [data-focus-toggle],
  .pm-reader-toolbar [data-toolbar-group="recovery"],
  .pm-reader-toolbar [data-toolbar-group="text-size"],
  .pm-reader-toolbar [data-toolbar-group="path-search"],
  .pm-reader-toolbar [data-companion-gate] {
    display: none;
  }

  .pm-reader-toolbar [data-toolbar-group="pericope-navigation"] {
    display: inline-flex;
  }

  .pm-reader-toolbar [data-arc-nav] {
    display: inline-flex;
  }

  .pm-current-passage-indicator {
    flex: 1 1 auto;
    max-width: min(48vw, 14rem);
    min-width: 0;
  }

  .pm-memory-read-control {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .pm-reader-panel {
    margin-bottom: 1rem;
    position: static;
  }

  .pm-canonical-workspace > .pm-reader-panel-left {
    background: var(--pm-surface);
    border-radius: 14px;
    bottom: 1rem;
    box-shadow: 0 18px 54px rgb(0 0 0 / 28%);
    left: 1rem;
    margin: 0;
    max-height: none;
    max-width: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    position: fixed;
    right: 1rem;
    top: 1rem;
    transform: translateX(0);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    visibility: visible;
    width: auto;
    z-index: 65;
  }

  .pm-canonical-workspace > .pm-reader-panel-left.pm-panel-collapsed {
    background: transparent;
    border-color: transparent;
    bottom: auto;
    box-shadow: none;
    left: 0.5rem;
    overflow: visible;
    padding: 0;
    right: auto;
    top: 0.5rem;
    transform: translateY(0);
    transition: transform 160ms ease, opacity 160ms ease;
    visibility: visible;
    width: auto;
    z-index: 70;
  }

  body.pm-mobile-utility-hidden .pm-canonical-workspace > .pm-reader-panel-left.pm-panel-collapsed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-1 * var(--pm-mobile-utility-height) - 0.5rem));
  }

  .pm-canonical-workspace > .pm-reader-panel-left.pm-panel-collapsed .pm-panel-toggle {
    background: var(--pm-surface);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgb(0 0 0 / 18%);
    min-height: 2.25rem;
    padding: 0.45rem 0.75rem;
    width: auto;
  }

  .pm-canonical-workspace > .pm-reader-panel-left.pm-panel-collapsed .pm-panel-content {
    display: none;
  }

  .pm-reader-panel-right {
    margin-top: 1rem;
  }

  .pm-reader-support-surface {
    display: none;
  }

  .pm-reader-support-surface.pm-companion-panel-open {
    display: block;
    border-radius: 14px 14px 0 0;
    bottom: 0;
    left: 0;
    margin: 0;
    max-height: 72vh;
    max-width: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    top: auto;
    transform: translateY(0);
    width: 100%;
  }

  .pm-canonical-workspace .pm-reader-panel {
    max-height: none;
  }

  .pm-canonical-workspace .pm-reader-support-surface {
    max-height: 72vh;
    overflow-y: auto;
  }

  .pm-canonical-workspace .pm-reader-content {
    grid-column: auto;
    width: 100%;
  }

  body.pm-canonical-commentary-reader .pm-main {
    width: min(100% - 0.75rem, 780px);
    padding-top: calc(var(--pm-mobile-utility-height) + 0.55rem);
  }
}

@media (max-width: 640px) {
  .pm-account-actions,
  .pm-nav {
    align-items: stretch;
    flex-wrap: nowrap;
  }

  .pm-account-actions .pm-button {
    width: 100%;
  }

  .pm-account-placeholder-grid {
    grid-template-columns: 1fr;
  }

  .pm-account-support-grid {
    grid-template-columns: 1fr;
  }

  .pm-account-support-availability ul,
  .pm-account-future-actions {
    columns: 1;
  }
}

