:root {
  --paper: #F5F6F1;
  --paper-deep: #D4DCCD;
  --page-surrounding: #AEBCA5;
  --shell-surface: #F5F6F1;
  --card: #FFFEFA;
  --card-warm: #F7F7EF;
  --ink: #283229;
  --muted: #626B5D;
  --olive: #365343;
  --olive-soft: #6F8375;
  --olive-pale: #E5EDE3;
  --gold: #A34455;
  --gold-soft: #F3DDE2;
  --accent-text: white;
  --blue: #49603B;
  --blue-soft: #E5EDE3;
  --terracotta: #326449;
  --terracotta-soft: #DCEDE3;
  --line: #D4DCCD;
  --line-strong: #B8C3B1;
  --error: #8f2f2f;
  --success: #326449;
  --shadow: 0 20px 55px rgba(40, 50, 41, .16);
  --shadow-small: 0 10px 28px rgba(40, 50, 41, .12);
  --radius: 8px;
  --prayer-readable-width: 920px;
  --dashboard-cover-image: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=78");
  --heading-font: Lora, Georgia, serif;
  --body-font: "Source Sans 3", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--body-font);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .24), transparent 18rem),
    var(--page-surrounding);
  color: var(--ink);
  min-height: 100vh;
  overflow-wrap: anywhere;
}

body.theme-still-waters {
  --paper: #F3F6F8;
  --paper-deep: #CDD8E1;
  --page-surrounding: #B4C6D4;
  --shell-surface: #F3F6F8;
  --card: #FFFFFF;
  --card-warm: #F8FBFD;
  --ink: #202D38;
  --muted: #596875;
  --olive: #234E70;
  --olive-soft: #5A7E9A;
  --olive-pale: #E3EDF5;
  --gold: #AD582A;
  --gold-soft: #F2DED2;
  --accent-text: white;
  --blue: #305D7B;
  --blue-soft: #E3EDF5;
  --terracotta: #32664B;
  --terracotta-soft: #DDEEE6;
  --line: #CDD8E1;
  --line-strong: #AEBFCD;
  --success: #32664B;
}

body.theme-royal-light {
  --paper: #F7F4FA;
  --paper-deep: #DED3E7;
  --page-surrounding: #C9B8D8;
  --shell-surface: #F7F4FA;
  --card: #FFFFFF;
  --card-warm: #FBF8FD;
  --ink: #302737;
  --muted: #6D6076;
  --olive: #503568;
  --olive-soft: #7E6494;
  --olive-pale: #EEE5F4;
  --gold: #E0B84F;
  --gold-soft: #F8EDC9;
  --accent-text: var(--ink);
  --blue: #64427D;
  --blue-soft: #EEE5F4;
  --terracotta: #38654B;
  --terracotta-soft: #DDEDE4;
  --line: #DED3E7;
  --line-strong: #C4B1D1;
  --success: #38654B;
}

body.theme-desert-bloom {
  --paper: #F8F4EF;
  --paper-deep: #DCD7CC;
  --page-surrounding: #C8BEAA;
  --shell-surface: #F8F4EF;
  --card: #FFFDFA;
  --card-warm: #F7F2EC;
  --ink: #293432;
  --muted: #686B63;
  --olive: #245B5A;
  --olive-soft: #5D8583;
  --olive-pale: #E0EEEA;
  --gold: #B6513C;
  --gold-soft: #F2DCD5;
  --accent-text: white;
  --blue: #326765;
  --blue-soft: #E0EEEA;
  --terracotta: #396448;
  --terracotta-soft: #DFEEE4;
  --line: #DCD7CC;
  --line-strong: #C5BEAF;
  --success: #396448;
}

body.font-classic-devotional {
  --heading-font: "Cormorant Garamond", Georgia, serif;
  --body-font: "Source Sans 3", Inter, ui-sans-serif, system-ui, sans-serif;
}

body.font-clean-quiet {
  --heading-font: Inter, "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --body-font: Inter, "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
}

body.font-journal-style {
  --heading-font: Lora, "Cormorant Garamond", Georgia, serif;
  --body-font: "Source Sans 3", Inter, ui-sans-serif, system-ui, sans-serif;
}

a {
  color: var(--olive);
  text-decoration-color: rgba(73, 98, 84, .32);
  text-underline-offset: .18em;
}

a:hover {
  color: var(--olive-soft);
}

.lucide {
  width: 1.05em;
  height: 1.05em;
  stroke-width: 2;
  flex: 0 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-strong);
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(40, 50, 41, .1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header form {
  margin: 0;
}

.mobile-header-row,
.mobile-nav-panel {
  display: contents;
}

.mobile-menu-toggle {
  display: none;
}

.brand,
.nav a,
.nav-menu-trigger,
.nav-submenu a,
.nav-logout,
button,
.button-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.brand {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--olive);
  text-decoration: none;
  font-size: 1.12rem;
  min-width: max-content;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--olive);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-small);
}

.nav {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.nav a,
.link-button {
  color: var(--olive);
  text-decoration: none;
  font-weight: 750;
}

.nav > a,
.nav-menu-trigger {
  min-height: 2.45rem;
  border-radius: var(--radius);
  padding: .52rem .7rem;
}

.nav > a:hover,
.nav > a:focus-visible,
.nav-menu-trigger:hover,
.nav-menu-trigger:focus-visible {
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  outline: 0;
}

.link-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.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;
}

.page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem);
  min-height: calc(100vh - 4rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .36), transparent 16rem),
    var(--shell-surface);
  border-inline: 1px solid rgba(255, 255, 255, .44);
  box-shadow:
    0 30px 80px rgba(40, 50, 41, .18),
    0 0 0 1px rgba(40, 50, 41, .04);
}

.hero,
.auth-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

.auth-panel {
  width: min(680px, 100%);
  margin: 2rem auto;
  display: grid;
  gap: 1.5rem;
}

.dashboard-hero {
  min-height: clamp(21rem, 40vw, 29rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg, rgba(30, 41, 35, .76), rgba(30, 41, 35, .38) 48%, rgba(30, 41, 35, .16)),
    var(--dashboard-cover-image) center/cover;
  color: white;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(30, 41, 35, .45), transparent);
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
}

.dashboard-hero h1,
.dashboard-hero p,
.dashboard-hero .eyebrow {
  color: white;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.dashboard-hero .button-link.secondary {
  background: var(--gold-soft);
  color: var(--ink);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
  font-weight: 850;
  color: var(--terracotta);
  margin: 0 0 .45rem;
}

h1,
h2,
h3 {
  font-family: var(--heading-font);
  line-height: 1.15;
  margin: 0 0 .75rem;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.18rem, 2.2vw, 1.45rem);
}

h3 {
  font-size: 1rem;
}

.dashboard-card h2,
.card h2,
form.card h2 {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.muted,
p {
  color: var(--muted);
  line-height: 1.65;
}

p {
  margin-top: 0;
}

.stack {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: .42rem;
  font-weight: 750;
  color: var(--ink);
}

fieldset {
  display: grid;
  gap: .75rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--card-warm);
}

legend {
  padding: 0 .35rem;
  color: var(--olive);
  font-family: var(--heading-font);
  font-weight: 700;
}

.check {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.check input {
  width: auto;
}

.default-controls-grid .check {
  align-items: flex-start;
  gap: .85rem;
  cursor: pointer;
}

.default-controls-grid .check input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: .15rem;
  flex: 0 0 auto;
  accent-color: var(--olive);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: .75rem;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .82rem .9rem;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px var(--olive-pale), 0 0 0 5px var(--olive);
  outline: 0;
}

input[type=color] {
  height: 3rem;
  padding: .25rem;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

button,
.button-link {
  max-width: 100%;
  white-space: normal;
  border: 0;
  border-radius: var(--radius);
  background: var(--olive);
  color: white;
  padding: .84rem 1rem;
  font-family: var(--body-font);
  font-weight: 850;
  text-decoration: none;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(73, 98, 84, .18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

button:hover,
.button-link:hover {
  transform: translateY(-1px);
  background: var(--olive-soft);
  color: white;
  box-shadow: 0 14px 30px rgba(73, 98, 84, .22);
}

button:focus-visible,
.button-link:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--gold-soft);
}

.button-prominent {
  min-height: 3.2rem;
  padding-inline: 1.25rem;
  font-size: 1.02rem;
}

button.secondary,
.button-link.secondary {
  background: var(--gold-soft);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

button.secondary:hover,
.button-link.secondary:hover {
  background: var(--gold);
  color: var(--accent-text);
}

button.danger {
  background: var(--error);
}

button.compact,
.button-link.compact {
  padding: .55rem .72rem;
  min-height: 2.25rem;
}

.grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.dashboard-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(19rem, .85fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.dashboard-main,
.dashboard-side {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}

.dashboard-layout .card,
.dashboard-grid .card {
  margin-top: 0;
}

.dashboard-card {
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.prayer-moment-form {
  padding: clamp(1rem, 3vw, 1.45rem);
}

.prayer-moment-form .section-heading {
  margin-bottom: 0;
}

.prayer-moment-form .section-heading p:last-child {
  margin-bottom: 0;
}

.moment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1rem;
}

.moment-panel {
  display: grid;
  align-content: start;
  gap: .75rem;
  padding: 1rem;
  background: var(--card-warm);
  border: 1px solid rgba(222, 213, 196, .82);
  border-radius: var(--radius);
}

.moment-panel h3 {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .1rem;
  color: var(--olive);
}

.moment-panel textarea {
  min-height: 7rem;
}

.moment-panel .button-link {
  justify-self: start;
}

.notice {
  padding: .85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid;
}

.notice.success {
  background: #eef8f1;
  color: var(--success);
  border-color: #c9e8d1;
}

.notice.error {
  background: #fff1ee;
  color: var(--error);
  border-color: #efc9c2;
}

.offline-notice {
  background: #fff8e9;
  color: #725321;
  border-color: #efd59d;
}

.reminder-alert {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.reminder-alert p {
  margin: 0;
}

.notification-enable {
  padding: .55rem .75rem;
}

.actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.action-panel {
  position: relative;
}

.action-panel summary {
  list-style: none;
}

.action-panel summary::-webkit-details-marker {
  display: none;
}

.action-panel-body {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  z-index: 30;
  width: min(24rem, calc(100vw - 2rem));
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(73, 98, 84, .18);
}

.action-panel-body h2 {
  font-size: 1rem;
}

.action-panel-body textarea {
  min-height: 6rem;
}

.table-wrap {
  max-width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin-top: 1rem;
  box-shadow: var(--shadow-small);
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

td {
  overflow-wrap: anywhere;
}

th {
  font-size: .78rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .08em;
}

th a {
  color: inherit;
  text-decoration: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: .22rem .55rem;
  font-size: .75rem;
  font-weight: 850;
}

.pill:nth-of-type(2n) {
  background: var(--gold-soft);
  color: var(--ink);
}

.pill .lucide {
  width: .95rem;
  height: .95rem;
}

.status-pill {
  background: var(--olive-pale);
  color: var(--olive);
}

.status-pill.answered {
  background: var(--terracotta-soft);
  color: var(--terracotta);
}

.meta-row,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}

.tag-pill {
  background: var(--gold-soft);
  color: var(--ink);
}

.stat {
  display: block;
  font-size: 2.65rem;
  line-height: 1;
  margin: .75rem 0 .55rem;
  color: var(--olive);
  font-weight: 850;
}

.swatch {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  vertical-align: middle;
  margin-right: .4rem;
}

.thumb {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ece5d8;
  display: block;
}

.thumb.placeholder {
  background: linear-gradient(135deg, var(--olive-pale), var(--gold-soft));
}

.prayer-hero-image {
  display: block;
  width: min(420px, 100%);
  aspect-ratio: 4 / 3;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  filter: saturate(.86) contrast(.94);
}

.prayer-show-hero {
  display: grid;
  gap: 1rem;
  width: min(var(--prayer-readable-width), 100%);
  max-width: var(--prayer-readable-width);
  margin-inline: auto;
}

.prayer-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 26rem);
  align-items: start;
  gap: 1.25rem;
}

.prayer-hero-copy {
  max-width: 72ch;
}

.prayer-lead {
  font-size: 1.05rem;
  line-height: 1.75;
}

.prayer-primary-actions {
  justify-content: flex-start;
}

.reminder-set {
  border-color: rgba(73, 98, 84, .42) !important;
  background: var(--olive-pale) !important;
  color: var(--olive) !important;
}

.reminder-empty {
  border-color: var(--line) !important;
  color: var(--muted) !important;
}

.prayer-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  width: min(var(--prayer-readable-width), 100%);
  max-width: var(--prayer-readable-width);
  margin-inline: auto;
}

.prayer-cover-card {
  max-width: 920px;
}

.cover-action {
  position: relative;
}

.cover-action summary {
  display: block;
  position: relative;
  cursor: pointer;
  list-style: none;
}

.cover-action summary::-webkit-details-marker {
  display: none;
}

.cover-action summary:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 4px;
}

.cover-placeholder {
  display: grid;
  place-items: center;
  color: var(--olive);
  background: linear-gradient(135deg, var(--olive-pale), var(--gold-soft));
}

.cover-placeholder .lucide {
  width: 2rem;
  height: 2rem;
}

.cover-edit-badge {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .38rem .65rem;
  background: var(--card);
  color: var(--olive);
  border: 1px solid rgba(222, 213, 196, .86);
  box-shadow: var(--shadow-small);
  font-size: .82rem;
  font-weight: 850;
}

.cover-action-body {
  right: 0;
  left: auto;
  width: min(24rem, 92vw);
}

.prayer-moment-shell > summary {
  margin-bottom: 0;
}

.prayer-moment-band,
.prayer-record-band {
  width: min(var(--prayer-readable-width), 100%);
  max-width: var(--prayer-readable-width);
  margin: 1.5rem auto 0;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}

.prayer-moment-band {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--olive-pale), var(--gold-soft));
}

.prayer-record-band {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--blue-soft), var(--card));
}

.prayer-moment-heading {
  margin-bottom: 1rem;
}

.prayer-moment-heading h2 {
  margin-bottom: .35rem;
}

.prayer-moment-heading h2 .lucide {
  color: var(--olive);
}

.prayer-moment-heading .muted {
  max-width: 58ch;
  margin-bottom: 0;
}

.prayer-moment-shell {
  width: 100%;
  margin-top: 0;
  margin-inline: auto;
}

.prayer-moment-shell[open] > summary {
  margin-bottom: 1rem;
}

.prayer-section-toolbar {
  margin: 0 0 1rem;
}

.prayer-section-toolbar h2 {
  margin-bottom: 0;
}

.prayer-section-toolbar .eyebrow {
  color: var(--blue);
}

.prayer-supporting-sections {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin-inline: auto;
}

.prayer-supporting-sections .card {
  margin-top: 0;
}

.section-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  margin-left: .5rem;
  border-radius: 999px;
  padding: .18rem .52rem;
  font-family: var(--body-font);
  font-size: .72rem;
  font-weight: 850;
  line-height: 1;
  vertical-align: .08em;
}

.section-status-empty {
  background: var(--terracotta-soft);
  color: #783f2e;
  border: 1px solid rgba(181, 111, 79, .34);
}

.section-status-has {
  background: var(--olive-pale);
  color: var(--olive);
  border: 1px solid rgba(73, 98, 84, .28);
}

.table-wrap th,
.table-wrap td {
  text-align: left;
}

.table-wrap td {
  vertical-align: middle;
}

.prayer-cell {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 18rem;
}

.prayer-cell strong { color: var(--olive); }

.prayer-row-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 2.35rem; align-items: start; justify-content: end; gap: .45rem; }
.prayer-row-actions > * { width: 2.35rem; min-width: 2.35rem; }
.prayer-index-table tbody tr { background: var(--olive-pale); }
.prayer-index-table tbody tr:has(.prayer-row-details[open]) { background: var(--card); }
.prayer-index-table tbody tr:has(.prayer-row-details[open]) > td { background: linear-gradient(to bottom, var(--olive-pale) 0 4.1rem, var(--card) 4.1rem 100%); }
.prayer-index-table td:last-child { vertical-align: top; }
.prayer-index-table .icon-action { width: 2.35rem; min-width: 2.35rem; height: 2.35rem; padding: .45rem; justify-content: center; }
.prayer-index-table .icon-action .lucide { margin: 0; }
.prayer-quick-reminder .action-panel-body { right: 0; }
.prayer-index-table th:first-child, .prayer-index-table td:first-child { width: auto; }
.prayer-index-table th:last-child, .prayer-index-table td:last-child { width: 1%; white-space: nowrap; }
.prayer-index-secondary { display: none; }
.prayer-index-people { min-width: 14rem; }
.prayer-index-people-list { display: grid; gap: .35rem; color: var(--muted); font-size: .84rem; }
.prayer-index-people-list span { display: grid; gap: .08rem; }
.prayer-index-people-list strong { color: var(--ink); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.prayer-index-table tr:has(.prayer-row-details[open]) .prayer-index-people-list { visibility: hidden; }
.prayer-row-details summary { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; cursor: pointer; list-style: none; }
.prayer-row-details summary::-webkit-details-marker { display: none; }
.prayer-row-expanded { display: block; clear: both; width: calc(100% - 3.1rem); margin: .85rem 0 .1rem 3.1rem; padding: .9rem 0 0; border-top: 1px solid var(--line); }
.prayer-row-body { max-width: 72rem; white-space: pre-wrap; }
.prayer-row-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .65rem; margin: .9rem 0; }
.prayer-row-stats span { display: grid; gap: .18rem; color: var(--muted); font-size: .86rem; }
.prayer-row-stats strong { color: var(--ink); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.prayer-row-expanded .button-link { display: inline-flex; }

.prayer-cell > .thumb {
  width: clamp(1.75rem, 3.33vh, 2.35rem) !important;
  height: clamp(1.75rem, 3.33vh, 2.35rem) !important;
  flex: 0 0 clamp(1.75rem, 3.33vh, 2.35rem) !important;
  max-width: 2.35rem !important;
  max-height: 2.35rem !important;
}

.collapsible-section summary {
  display: block;
  cursor: pointer;
  font-weight: 850;
  font-size: 1.05rem;
  color: var(--ink);
  list-style: none;
  font-family: var(--heading-font);
}

.collapsible-section summary .lucide {
  margin-right: .35rem;
  color: var(--olive);
  vertical-align: -.14em;
}

.collapsible-section summary::-webkit-details-marker {
  display: none;
}

.collapsible-section summary::after {
  content: "Open";
  float: right;
  font-family: var(--body-font);
  font-size: .74rem;
  color: var(--olive);
  background: var(--olive-pale);
  border-radius: 999px;
  padding: .22rem .55rem;
}

.collapsible-section[open] summary::after {
  content: "Close";
}

.collapsible-section .section-content {
  max-height: 18rem;
  overflow: auto;
  padding-top: .75rem;
}

.collapsible-section[open] {
  align-self: start;
}

.collapsible-section.section-expanded .section-content {
  max-height: none;
  overflow: visible;
}

.section-toggle {
  margin-top: .75rem;
}

.section-link {
  display: inline-flex;
  margin-top: .65rem;
  color: var(--olive);
  font-weight: 850;
}

.reader-page {
  max-width: 880px;
  margin: 1rem auto 0;
}

.reader-page .card {
  font-size: 1.03rem;
  line-height: 1.75;
}

.reader-page h2 {
  font-size: 1.1rem;
  margin-bottom: .35rem;
}

.story-list {
  display: grid;
  gap: .85rem;
}

.story-day,
.story-group {
  display: grid;
  gap: .65rem;
  padding-left: .9rem;
  border-left: 2px solid var(--gold-soft);
}

.story-day h3,
.story-group h2 {
  color: var(--olive);
  margin: 0;
}

.story-day p,
.story-card p:last-child,
.scripture-card p:last-child {
  margin-bottom: 0;
}

.story-card {
  border-left: 3px solid var(--gold);
}

.scripture-card {
  border-left: 3px solid var(--blue);
}

.stat-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  min-height: 12rem;
}

.stat-card:hover,
.stat-card:focus {
  transform: translateY(-2px);
  border-color: var(--olive-soft);
  box-shadow: 0 16px 38px rgba(73, 98, 84, .15);
  outline: 0;
}

.stat-card h2 {
  color: var(--ink);
  margin-bottom: .3rem;
}

.stat-card p {
  margin: 0;
}

.stat-card.answered .stat {
  color: var(--terracotta);
}

.stat-card.follow-up .stat {
  color: var(--gold);
}

.card-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
}

.card-icon.small {
  width: 2rem;
  height: 2rem;
}

.card-icon.olive {
  background: var(--olive-pale);
  color: var(--olive);
  border-color: rgba(73, 98, 84, .12);
}

.card-icon.gold {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: var(--line);
}

.card-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: var(--line);
}

.card-icon.terracotta {
  background: var(--terracotta-soft);
  color: var(--terracotta);
  border-color: var(--line);
}

.nav-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-menu-trigger {
  background: transparent;
  color: var(--olive);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 750;
}

.nav-menu-trigger::after {
  content: "";
  width: .42rem;
  height: .42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.nav-menu.is-open .nav-menu-trigger::after {
  transform: rotate(225deg) translateY(-1px);
}

.account-menu .nav-menu-trigger {
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow-small);
}

.announcement-menu {
  position: relative;
}

.announcement-trigger {
  position: relative;
  min-width: 2.7rem;
  padding-inline: .72rem;
  background: var(--card);
  color: var(--terracotta);
  border-color: rgba(181, 111, 79, .28);
  box-shadow: var(--shadow-small);
}

.announcement-trigger .lucide {
  margin-right: 0;
}

.announcement-trigger::after {
  display: none;
}

.announcement-badge {
  position: absolute;
  right: -.32rem;
  top: -.42rem;
  display: inline-grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 2px solid var(--card);
  border-radius: 999px;
  background: var(--terracotta);
  color: white;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .55rem;
  box-shadow: 0 18px 42px rgba(73, 98, 84, .18);
  z-index: 20;
}

.nav-submenu-right {
  left: auto;
  right: 0;
}

.announcement-submenu {
  width: min(24rem, calc(100vw - 2rem));
  gap: .55rem !important;
}

.announcement-card {
  display: grid;
  gap: .45rem;
  padding: .72rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.announcement-card p {
  margin: 0;
  color: var(--blue);
}

.announcement-card button {
  justify-self: start;
}

.nav-submenu a {
  padding: .64rem .72rem;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.nav-submenu-label {
  display: block;
  padding: .25rem .7rem .35rem;
  color: var(--terracotta);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-submenu-separator {
  display: block;
  height: 1px;
  margin: .45rem .2rem;
  background: var(--line);
}

.nav-submenu a:hover,
.nav-submenu a:focus,
.nav-logout:hover,
.nav-logout:focus {
  background: var(--card-warm);
}

.nav-submenu form {
  margin: 0;
}

.nav-logout {
  width: 100%;
  justify-content: flex-start;
  color: var(--ink);
  padding: .64rem .72rem;
  border-radius: 6px;
  font-weight: 750;
}

.nav-menu:hover .nav-submenu,
.nav-menu:focus-within .nav-submenu,
.nav-menu.is-open .nav-submenu {
  display: grid;
  gap: .1rem;
}

.image-choice-grid {
  align-items: stretch;
}

.image-choice {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .75rem;
  display: grid;
  grid-template-columns: auto 3rem minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
  font-weight: 750;
  background: var(--card);
}

.image-choice input {
  width: auto;
}

.image-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.image-choice:has(input:checked) {
  border-color: var(--olive);
  box-shadow: 0 0 0 2px var(--olive-pale);
}

.image-delete-choice {
  grid-column: 2 / 4;
  font-size: .88rem;
  color: var(--error);
}

.guide-card {
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: .7rem;
}

.guide-card h2,
.guide-card p {
  margin-bottom: 0;
}

.guide-cover {
  display: block;
  width: 100%;
  min-height: 5.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--olive-pale), var(--gold-soft));
  filter: saturate(.75) contrast(.95);
}

img.guide-cover {
  height: 9rem;
  object-fit: cover;
}

.guide-cover.hero-cover {
  width: min(28rem, 100%);
  min-height: 8.5rem;
  margin-bottom: 1rem;
}

img.guide-cover.hero-cover {
  height: clamp(10rem, 24vw, 16rem);
}

.current-cover {
  grid-template-columns: 3rem minmax(0, 1fr);
}

.scope-family .guide-cover,
.guide-cover.scope-family {
  background:
    linear-gradient(135deg, rgba(73, 98, 84, .72), rgba(181, 111, 79, .28)),
    url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=900&q=70") center/cover;
}

.scope-community .guide-cover,
.scope-church .guide-cover,
.guide-cover.scope-community,
.guide-cover.scope-church {
  background:
    linear-gradient(135deg, rgba(73, 98, 84, .72), rgba(96, 123, 145, .34)),
    url("https://images.unsplash.com/photo-1490730141103-6cac27aaab94?auto=format&fit=crop&w=900&q=70") center/cover;
}

.scope-city .guide-cover,
.scope-nation .guide-cover,
.guide-cover.scope-city,
.guide-cover.scope-nation {
  background:
    linear-gradient(135deg, rgba(73, 98, 84, .76), rgba(96, 123, 145, .36)),
    url("https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?auto=format&fit=crop&w=900&q=70") center/cover;
}

.recent-prayer-list,
.timeline-list {
  display: grid;
  gap: .75rem;
}

.recent-prayer-card,
.timeline-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .78rem;
  border-radius: var(--radius);
  background: var(--card-warm);
  border: 1px solid rgba(222, 213, 196, .72);
}

.recent-prayer-card h3,
.timeline-item p {
  margin: 0;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  width: .76rem;
  height: .76rem;
  border-radius: 999px;
  background: var(--olive);
  margin-top: .42rem;
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px var(--olive-pale);
}

.timeline-dot.gold {
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.timeline-dot.terracotta {
  background: var(--terracotta);
  box-shadow: 0 0 0 4px var(--terracotta-soft);
}

.reminder-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.reminder-manage-grid {
  grid-template-columns: minmax(18rem, .85fr) minmax(0, 1.35fr);
  align-items: start;
}

.reminder-manage-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.reminder-manage-item > .actions {
  grid-column: 2;
  justify-content: flex-start;
}

.reminder-manage-item.is-muted {
  opacity: .76;
}

.notification-admin-grid {
  grid-template-columns: minmax(18rem, .85fr) minmax(0, 1.35fr);
  align-items: start;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  scroll-margin-top: 1rem;
}

.tabs {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

.tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: .55rem .85rem;
  border-radius: var(--radius);
  background: var(--card-warm);
  border: 1px solid var(--line);
  color: var(--olive);
  font-weight: 850;
  text-decoration: none;
}

.tabs a.active {
  background: var(--olive);
  border-color: var(--olive);
  color: white;
}

.calendar-jump {
  display: flex;
  align-items: end;
  gap: .5rem;
  flex-wrap: wrap;
}

.calendar-jump label {
  min-width: 11rem;
}

.reminder-calendar {
  overflow: hidden;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .5rem;
}

.calendar-weekdays {
  margin: 1rem 0 .5rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 7.5rem;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: .35rem;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-warm);
}

.calendar-day.is-muted {
  opacity: .58;
}

.calendar-day h3 {
  margin: 0;
  color: var(--olive);
}

.calendar-entry {
  display: block;
  padding: .35rem .45rem;
  border-radius: 6px;
  background: var(--gold-soft);
  color: #614618;
  font-size: .84rem;
  line-height: 1.3;
  text-decoration: none;
}

.calendar-entry span {
  font-weight: 850;
}

.calendar-entry small {
  display: block;
  margin-top: .12rem;
  color: inherit;
  opacity: .82;
}

.calendar-entry.state-due {
  background: var(--terracotta-soft);
  color: #783e28;
}

.calendar-entry.state-completed {
  background: var(--olive-pale);
  color: var(--olive);
}

.calendar-entry.state-dismissed {
  background: var(--line);
  color: var(--muted);
}

.scripture-focus {
  position: relative;
  overflow: hidden;
  background: var(--blue-soft);
}

.scripture-focus blockquote {
  margin: .9rem 0 .45rem;
  color: var(--blue);
  font-family: var(--heading-font);
  font-size: clamp(1.24rem, 3vw, 1.65rem);
  line-height: 1.45;
}

.scripture-ref {
  color: var(--blue);
  font-weight: 800;
  margin: 0;
}

.focus-source {
  font-size: .9rem;
  margin-top: .45rem;
}

.torah-focus {
  background: var(--gold-soft);
}

.torah-focus blockquote {
  color: var(--ink);
}

.companion-readings {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

.companion-readings h3 {
  margin-bottom: .45rem;
  color: var(--olive);
}

.companion-readings p {
  margin-bottom: .65rem;
}

.appearance-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: .85rem;
}

.appearance-options.two {
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
}

.appearance-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-warm);
  cursor: pointer;
}

.appearance-choice input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: .12rem;
  accent-color: var(--olive);
}

.appearance-choice span {
  min-width: 0;
}

.appearance-choice strong,
.appearance-choice small {
  display: block;
}

.appearance-choice strong {
  color: var(--ink);
  margin-bottom: .25rem;
}

.appearance-choice small {
  color: var(--muted);
  line-height: 1.45;
}

.appearance-choice:has(input:checked) {
  border-color: rgba(73, 98, 84, .55);
  background: var(--olive-pale);
  box-shadow: inset 0 0 0 1px rgba(73, 98, 84, .18);
}

.font-preview-classic-devotional strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
}

.font-preview-clean-quiet strong {
  font-family: Inter, "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
}

.font-preview-journal-style strong {
  font-family: Lora, "Cormorant Garamond", Georgia, serif;
}

.theme-swatches {
  display: flex;
  gap: .35rem;
  margin-top: .55rem;
}

.theme-swatches i {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  border: 1px solid rgba(41, 51, 45, .16);
}

.theme-swatches-still-waters i:nth-child(1) { background: #F3F6F8; }
.theme-swatches-still-waters i:nth-child(2) { background: #234E70; }
.theme-swatches-still-waters i:nth-child(3) { background: #AD582A; }
.theme-swatches-still-waters i:nth-child(4) { background: #305D7B; }
.theme-swatches-olive-rose i:nth-child(1) { background: #F5F6F1; }
.theme-swatches-olive-rose i:nth-child(2) { background: #365343; }
.theme-swatches-olive-rose i:nth-child(3) { background: #A34455; }
.theme-swatches-olive-rose i:nth-child(4) { background: #49603B; }
.theme-swatches-royal-light i:nth-child(1) { background: #F7F4FA; }
.theme-swatches-royal-light i:nth-child(2) { background: #503568; }
.theme-swatches-royal-light i:nth-child(3) { background: #E0B84F; }
.theme-swatches-royal-light i:nth-child(4) { background: #64427D; }
.theme-swatches-desert-bloom i:nth-child(1) { background: #F8F4EF; }
.theme-swatches-desert-bloom i:nth-child(2) { background: #245B5A; }
.theme-swatches-desert-bloom i:nth-child(3) { background: #B6513C; }
.theme-swatches-desert-bloom i:nth-child(4) { background: #326765; }

body.layout-simple .dashboard-layout {
  grid-template-columns: 1fr;
}

body.layout-simple .dashboard-side {
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
}

body.layout-simple .card,
body.layout-simple .hero {
  padding: clamp(1rem, 3vw, 1.8rem);
}

body.layout-simple .collapsible-section:not([open]) {
  background: var(--card);
}

.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  gap: .45rem;
  min-height: 8rem;
  padding: 1rem;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
}

.empty-state.compact {
  min-height: 5.5rem;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state .lucide {
  width: 1.65rem;
  height: 1.65rem;
  color: var(--gold);
}

.account-cover-panel {
  width: min(920px, 100%);
  margin: 1rem auto 0;
}

.cover-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: .85rem;
}

.cover-choice {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .65rem;
  align-items: center;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-warm);
  cursor: pointer;
}

.cover-choice input {
  width: auto;
}

.cover-choice img {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(.82) contrast(.94);
}

.cover-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cover-choice:has(input:checked) {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px var(--olive-pale);
}

@media print {
  .site-header,
  .no-print {
    display: none !important;
  }

  body {
    background: white;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .card,
  .hero,
  .auth-panel {
    box-shadow: none;
  }
}

@media (max-width: 920px) {
  .dashboard-summary,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    background:
      linear-gradient(0deg, rgba(30, 41, 35, .76), rgba(30, 41, 35, .34)),
      var(--dashboard-cover-image) center/cover;
  }
}

@media (max-width: 720px) {
  .page-shell {
    border-inline: 0;
    box-shadow: none;
    min-height: auto;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    position: static;
  }

  .mobile-header-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .mobile-nav-panel {
    display: none;
    width: 100%;
  }

  .mobile-nav-panel.is-open {
    display: grid;
    gap: .45rem;
  }

  .brand {
    width: auto;
    min-width: 0;
  }

  .nav {
    width: 100%;
    gap: .45rem;
    justify-content: stretch;
  }

  .nav > a,
  .nav-menu,
  .account-menu {
    width: 100%;
  }

  .nav > a,
  .nav-menu-trigger {
    width: 100%;
    justify-content: flex-start;
    line-height: 1.3;
    background: var(--card);
    border: 1px solid var(--line);
  }

  .site-header .link-button {
    padding: .35rem 0;
  }

  h1 {
    font-size: 2.15rem;
  }

  .dashboard-hero {
    min-height: 26rem;
    align-items: end;
  }

  .prayer-hero-layout {
    grid-template-columns: 1fr;
  }

  .prayer-hero-image {
    width: 100%;
    max-height: 18rem;
  }

  .actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .actions > *,
  .section-heading > * {
    width: 100%;
  }

  .action-panel-body {
    position: static;
    width: 100%;
    margin-top: .5rem;
    box-shadow: none;
  }

  .table-wrap .actions {
    align-items: flex-start;
  }

  .table-wrap .prayer-row-actions {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 2.35rem;
    justify-content: end;
  }

  .table-wrap .actions > * {
    width: auto;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
    width: 100%;
  }

  .table-wrap td.prayer-index-secondary,
  .table-wrap th.prayer-index-secondary {
    display: none;
  }

  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .table-wrap tr {
    margin-bottom: .85rem;
    padding: .9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-small);
  }

  .table-wrap .prayer-index-table tbody tr {
    background: var(--olive-pale);
  }

  .table-wrap .prayer-index-table tbody tr:has(.prayer-row-details[open]) {
    background: var(--card);
  }

  .table-wrap .prayer-index-table tbody tr:has(.prayer-row-details[open]) > td {
    background: linear-gradient(to bottom, var(--olive-pale) 0 6rem, var(--card) 6rem 100%);
  }

  .table-wrap td {
    display: grid;
    grid-template-columns: minmax(5.75rem, .42fr) minmax(0, 1fr);
    gap: .75rem;
    align-items: start;
    padding: .62rem 0;
    border-bottom: 1px solid var(--line);
  }

  .table-wrap td:first-child {
    display: block;
    padding-top: 0;
  }

  .table-wrap td:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .76rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .table-wrap td:first-child::before {
    display: none;
  }

  .table-wrap .prayer-cell {
    grid-template-columns: 4.8rem minmax(0, 1fr);
    gap: .8rem;
  }

  .table-wrap .prayer-cell > .thumb {
    width: 4.8rem;
    height: 4.8rem;
  }

  .table-wrap .prayer-row-expanded {
    width: calc(100% - 5.6rem);
    margin-left: 5.6rem;
  }

  .table-wrap .actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem;
  }

  .table-wrap .actions > * {
    flex: 1 1 8rem;
    width: auto;
  }

  .table-wrap .actions button,
  .table-wrap .actions .button-link {
    width: 100%;
  }

  .table-wrap .prayer-row-actions .icon-action,
  .table-wrap .prayer-row-actions form {
    flex: 0 0 2.35rem;
    width: 2.35rem;
  }

  .table-wrap .prayer-row-actions .icon-action {
    width: 2.35rem;
  }

  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-jump,
  .calendar-jump label {
    width: 100%;
  }

  .calendar-weekdays {
    display: none;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: auto;
  }

  .nav-menu {
    display: grid;
  }

  .announcement-trigger {
    width: 100%;
    justify-content: flex-start;
  }

  .announcement-badge {
    position: static;
    margin-left: auto;
  }

  .nav-submenu {
    position: static;
    box-shadow: none;
    margin-top: .35rem;
    width: 100%;
  }

  .nav-submenu-right {
    right: auto;
  }

  .reminder-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .reminder-item button {
    grid-column: 1 / -1;
  }
}
