﻿:root {
  --ink: #182128;
  --muted: #5d6570;
  --teal: #437f8b;
  --accent: #437f8b;
  --teal-dark: #366d78;
  --green: #4e7c39;
  --line: #e4e7e3;
  --soft: #f3f6ef;
  --surface: rgba(255, 255, 255, 0.88);
  --shadow: 0 16px 40px rgba(29, 39, 37, 0.1);
}

/* Final dashboard service-card sizing overrides older breakpoint rules. */
body .service-card {
  min-height: 190px;
  border-radius: 14px;
  padding: 22px 24px;
  background: linear-gradient(110deg, #5895a0, var(--teal) 55%, var(--teal-dark));
  box-shadow: 0 12px 30px rgba(67, 127, 139, 0.18);
}

body .service-card .eyebrow {
  margin-bottom: 7px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

body .service-card h2 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(27px, 3vw, 38px);
  white-space: nowrap;
}

body .service-card .service-details {
  gap: 9px;
}

body .service-card .service-details li {
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
}

body .service-card .service-details svg {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
}

@media (max-width: 700px) {
  body .service-card {
    min-height: 178px;
    border-radius: 12px;
    padding: 16px;
  }

  body .service-card .eyebrow,
  body .service-card .service-details li {
    font-size: 12px;
  }

  body .service-card h2 {
    margin-bottom: 12px;
    font-size: clamp(20px, 5.7vw, 24px);
  }

  body .service-card .service-details {
    gap: 6px;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f7f8f5;
  touch-action: pan-x pan-y;
}

.auth-pending body {
  visibility: hidden;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(67, 127, 139, 0.08), transparent 34%),
    radial-gradient(circle at 95% 18%, rgba(67, 127, 139, 0.06), transparent 38%),
    linear-gradient(180deg, #f8f9f9 0%, #f1f4f4 100%);
}

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

button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 102px;
}

.app-page-view[hidden],
.app-shell[hidden] {
  display: none;
}

.app-page-view {
  min-height: 100vh;
}

.app-view-error {
  margin: 0;
  padding: 120px 24px 24px;
  color: var(--muted);
  text-align: center;
}

.sheet-content {
  display: grid;
  gap: 18px;
  padding: 20px 20px 96px;
}

.sheet-content h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.5rem, 2vw, 2.15rem);
  line-height: 1.1;
}

.sheet-list {
  display: grid;
  gap: 12px;
}

.sheet-list > .app-loading-screen {
  width: 100%;
  min-height: 44vh;
}

.sheet-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(25, 42, 50, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(25, 42, 50, 0.08);
}

.sheet-card-head {
  display: grid;
  gap: 4px;
}

.sheet-card-title {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
}

a.sheet-card-title {
  color: var(--accent);
}

.sheet-card-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.sheet-fields {
  display: grid;
  gap: 8px;
}

.sheet-field {
  display: grid;
  gap: 2px;
}

.sheet-field span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sheet-field b,
.sheet-field a {
  color: var(--text);
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sheet-field a {
  color: var(--accent);
}

.sheet-empty {
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  text-align: center;
}

.calendar-event-card,
.contact-card,
.community-card,
.office-category,
.office-card {
  overflow: hidden;
  border: 1px solid rgba(25, 42, 50, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px rgba(25, 42, 50, 0.08);
}

.calendar-event-card summary,
.contact-card summary,
.community-card summary,
.office-category summary,
.office-card summary {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.calendar-event-card summary::-webkit-details-marker,
.contact-card summary::-webkit-details-marker,
.community-card summary::-webkit-details-marker,
.office-category summary::-webkit-details-marker,
.office-card summary::-webkit-details-marker {
  display: none;
}

.sheet-list-calendar,
.sheet-list-contacts,
.sheet-list-offices,
.sheet-list-links,
.sheet-list-community {
  grid-template-columns: 1fr !important;
}

.calendar-event-card {
  border-left: 5px solid var(--event-color, var(--accent));
  position: relative;
}

.calendar-event-card.is-next-event {
  border-color: #c62828;
  box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.45), 0 12px 32px rgba(25, 42, 50, 0.08);
}

.calendar-events {
  display: grid;
  gap: 10px;
}

.calendar-list-view {
  display: grid;
  gap: 10px;
}

.calendar-list-view .calendar-events {
  width: 100%;
}

.calendar-filter-card {
  overflow: hidden;
  border: 1px solid rgba(25, 42, 50, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px rgba(25, 42, 50, 0.08);
}

.calendar-filter-card summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 16px;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
}

.calendar-filter-card summary::-webkit-details-marker {
  display: none;
}

.calendar-filter-summary-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.calendar-filter-summary-icon {
  width: 24px;
  height: 24px;
  background: var(--accent);
  -webkit-mask: url("icon-filter-inactive.png?v=20260710-2") center / contain no-repeat;
  mask: url("icon-filter-inactive.png?v=20260710-2") center / contain no-repeat;
}

.calendar-filter-summary-icon.is-active {
  -webkit-mask-image: url("icon-filter-active.png?v=20260710-2");
  mask-image: url("icon-filter-active.png?v=20260710-2");
}

.calendar-filter-reset-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calendar-filter-reset-wrap[hidden] {
  display: none;
}

.calendar-filter-reset-wrap small {
  color: var(--accent);
  white-space: nowrap;
}

.calendar-filter-card summary strong {
  color: var(--accent);
  font-size: 15px;
}

.calendar-filter-card summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.calendar-filter-card .filter-state {
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

.calendar-filter-card summary .calendar-filter-chevron {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.calendar-filter-card[open] summary .calendar-filter-chevron {
  transform: rotate(90deg);
}

.calendar-filter-panel {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.calendar-filter-panel .filter-row {
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--rubric-color, var(--accent)) 24%, white);
  border-radius: 12px;
  background: color-mix(in srgb, var(--rubric-color, var(--accent)) 8%, white);
}

.calendar-filter-disable-all {
  min-height: 40px;
  border: 1px solid rgba(67, 127, 139, 0.22);
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--accent);
  background: rgba(67, 127, 139, 0.08);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.calendar-filter-close {
  display: grid;
  justify-self: center;
  width: 44px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
}

.calendar-filter-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transform: rotate(-90deg);
}

.filter-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.filter-row-child {
  padding-left: 18px;
}

.filter-row strong {
  min-width: 0;
  color: var(--rubric-color, var(--accent));
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.community-filter-group {
  display: grid;
  gap: 8px;
}

.community-filter-group h3 {
  margin: 6px 2px 0;
  color: var(--accent);
  font-size: 0.9rem;
  line-height: 1.2;
}

.filter-eye {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--rubric-color, var(--accent));
}

.filter-eye svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.calendar-event-card summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  column-gap: 14px;
  min-height: 78px;
  padding: 10px 14px 10px 0;
  align-items: stretch;
}

.calendar-event-card[open] summary {
  min-height: 96px;
}

.event-date {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 1px;
  width: 58px;
  min-width: 58px;
  padding: 4px 0 0;
  border-right: 1px solid rgba(25, 42, 50, 0.09);
  color: var(--text);
}

.calendar-event-card[open] > summary > .event-date {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  height: auto;
  min-height: 100%;
  padding-top: 14px;
}

.event-date b,
.event-date em {
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.event-date strong {
  font-size: 28px;
  line-height: 0.96;
}

.event-main {
  display: grid;
  grid-column: 2;
  gap: 3px;
  min-width: 0;
  align-self: start;
  padding-top: 4px;
}

.event-main strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.event-main small {
  color: var(--muted);
  font-size: 12px;
}

.event-rubric {
  grid-column: 3;
  justify-self: end;
  align-self: start;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--event-color, var(--accent)) 12%, white);
  color: var(--event-color, var(--accent));
  font-size: 11px;
  font-weight: 700;
}

.calendar-event-card > .sheet-fields {
  padding: 0 16px 16px 72px;
}

.calendar-event-card > .sheet-fields .sheet-field {
  grid-template-columns: minmax(70px, max-content) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  font-size: 0.86rem;
}

.calendar-event-card > .sheet-fields .sheet-field span {
  font-size: 0.68rem;
}

.calendar-event-card > .sheet-fields .sheet-field b,
.calendar-event-card > .sheet-fields .sheet-field a {
  font-size: 0.86rem;
}

.calendar-month-heading {
  margin: 12px 0 2px;
  color: var(--accent);
  font-size: 15px;
  line-height: 1.25;
}

.calendar-past-toggle {
  display: block;
  justify-self: center;
  margin: 0 auto 10px;
  border: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.calendar-event-card.is-past {
  filter: grayscale(0.45);
}

.calendar-event-card.is-past summary,
.calendar-event-card.is-past .event-date,
.calendar-event-card.is-past .event-main strong,
.calendar-event-card.is-past .event-main small,
.calendar-event-card.is-past .event-rubric,
.calendar-event-card.is-past .sheet-field,
.calendar-event-card.is-past .sheet-field span,
.calendar-event-card.is-past .sheet-field b {
  color: #7f8588;
}

.calendar-filter-switch {
  width: 46px;
  height: 26px;
}

.calendar-view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 12px;
}

.calendar-view-tabs button {
  min-height: 44px;
  border: 1px solid rgba(25, 42, 50, 0.12);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(25, 42, 50, 0.06);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
}

.calendar-view-tabs button.is-active {
  border-color: transparent;
  color: #fff;
  background: var(--accent);
}

.calendar-month-view {
  display: grid;
  gap: 18px;
}

[data-calendar-view-panel][hidden],
.calendar-month-block[hidden] {
  display: none !important;
}

.calendar-month-nav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
}

.calendar-month-nav strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
}

.calendar-month-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.calendar-month-nav button:disabled {
  opacity: 0.28;
  cursor: default;
}

.calendar-months {
  display: grid;
  gap: 22px;
}

.calendar-month-block {
  display: grid;
  gap: 12px;
}

.calendar-month-block h2,
.calendar-selected-day-title {
  margin: 0;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
}

.calendar-selected-day-title {
  text-align: left;
  font-size: 16px;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays span {
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.calendar-month-empty {
  min-height: 44px;
}

.calendar-day-button {
  position: relative;
  display: grid;
  place-items: center;
  justify-items: center;
  gap: 4px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-weight: 750;
}

.calendar-day-button.is-outside-month {
  color: #a5adb1;
}

.calendar-day-button.is-outside-month > span {
  opacity: 0.6;
}

.calendar-day-button > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.calendar-day-button.is-today > span {
  box-shadow: 0 0 0 2px #c62828 inset;
}

.calendar-day-button.is-selected > span {
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}

.calendar-day-button i {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 7px;
  font-style: normal;
}

.calendar-day-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--event-color, var(--accent));
}

.calendar-day-dot.is-past-dot {
  opacity: 0.42;
}

.calendar-day-dot[hidden] {
  display: none;
}

.calendar-selected-events {
  display: grid;
  gap: 10px;
}

.community-card {
  border-left: 5px solid var(--member-color, var(--accent));
  background: linear-gradient(90deg, color-mix(in srgb, var(--member-color, var(--accent)) 10%, white), rgba(255, 255, 255, 0.96) 42%);
}

.community-card > .sheet-fields {
  padding: 10px 14px 16px 14px;
}

.community-search {
  display: grid;
  gap: 7px;
  margin: 2px 0 12px;
}

.community-search span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 850;
}

.community-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.community-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(67, 127, 139, 0.14);
}

.community-card > .sheet-fields .sheet-field {
  grid-template-columns: minmax(108px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.community-card > .sheet-fields .sheet-field span {
  text-transform: none;
  letter-spacing: 0;
}

.community-subheading {
  margin: 10px 0 4px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--group-color, var(--accent));
  color: #111;
  font-size: 0.86rem;
  line-height: 1.1;
}

.community-subheading.is-membership-heading {
  color: #fff;
}

.community-offices-block[hidden] {
  display: none;
}

.community-offices-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--text);
  list-style: disc;
}

.community-offices-list li {
  margin: 3px 0;
  font-weight: 700;
  line-height: 1.35;
}

@media (min-width: 860px) {
  .community-card > .sheet-fields {
    column-count: 2;
    column-gap: 28px;
  }

  .community-card > .sheet-fields .sheet-field,
  .community-card > .sheet-fields .community-subheading,
  .community-card > .sheet-fields .community-offices-block {
    break-inside: avoid;
  }
}

.contacts-feature,
.contacts-list {
  display: grid;
  gap: 14px;
}

.contacts-feature h2,
.contacts-list h2 {
  margin: 0;
  color: var(--accent);
  font-size: 1.25rem;
}

.pastor-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(25, 42, 50, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 36px rgba(25, 42, 50, 0.08);
}

.pastor-card img {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 18%;
  pointer-events: none;
  user-select: none;
}

.pastor-card strong {
  display: block;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1.15;
}

.pastor-card p {
  margin: 6px 0 14px;
  color: var(--muted);
  font-weight: 650;
}

.contact-links {
  display: grid;
  gap: 10px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: min(100%, fit-content);
  min-width: 0;
  color: #182128;
  font-weight: 750;
  text-decoration: none;
}

.contact-links em {
  min-width: 0;
  font-style: normal;
  color: #182128;
  overflow-wrap: anywhere;
}

.contact-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--accent);
  -webkit-mask: var(--contact-icon) center / contain no-repeat;
  mask: var(--contact-icon) center / contain no-repeat;
}

.contact-icon-phone {
  --contact-icon: url("icon-phone.png?v=20260710-2");
}

.contact-icon-mobile {
  --contact-icon: url("icon-mobile.png?v=20260710-2");
}

.contact-icon-mail {
  --contact-icon: url("icon-mail.png?v=20260710-2");
}

.contact-icon-whatsapp {
  --contact-icon: url("icon-whatsapp.png?v=20260710-2");
}

.accordion-list,
.community-card-list,
.office-groups,
.link-list {
  display: grid;
  gap: 10px;
}

.contact-card summary,
.community-card summary {
  justify-content: space-between;
  padding: 16px 18px;
}

.contact-card summary span,
.community-card summary span {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
}

.community-card summary small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.contact-card svg,
.community-card svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.contact-card[open] summary svg,
.community-card[open] summary svg {
  transform: rotate(90deg);
}

.contact-card-body {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px 18px;
}

.office-category summary {
  justify-content: space-between;
  padding: 16px 18px;
  color: var(--accent);
}

.office-category summary strong,
.office-card summary strong {
  color: var(--accent);
}

.office-category summary span,
.office-card summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.office-list {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.office-card {
  border-radius: 12px;
  box-shadow: none;
}

.office-card summary {
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--accent);
  color: #fff;
}

.office-card summary strong,
.office-card summary span {
  color: #fff;
}

.office-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 12px 14px 14px 14px;
  color: var(--text);
  font-weight: 650;
  list-style: none;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: stretch;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(25, 42, 50, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px rgba(25, 42, 50, 0.08);
  text-decoration: none;
}

.link-card strong {
  flex: 1;
  min-width: 0;
  color: var(--accent);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.sheet-details-card {
  padding: 0;
}

.sheet-details-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.sheet-details-card summary::-webkit-details-marker {
  display: none;
}

.sheet-details-card summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sheet-details-card summary small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.sheet-details-card summary svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.sheet-details-card[open] summary svg {
  transform: rotate(90deg);
}

.sheet-details-card > .sheet-fields {
  padding: 0 16px 16px;
}

.sheet-field.has-copy-button b {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
}

.sheet-list-konten-spenden .sheet-details-card summary {
  align-items: center;
}

.sheet-list-konten-spenden .sheet-details-card summary span {
  display: flex;
  align-items: center;
}

.copy-field-button {
  justify-self: end;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(67, 127, 139, 0.1);
  cursor: pointer;
}

.dashboard-message-box {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0 0 10px;
  padding: 14px 16px;
  border: 1px solid rgba(198, 40, 40, 0.2);
  border-left: 4px solid #c62828;
  border-radius: 12px;
  background: #fff5f5;
  box-shadow: 0 10px 24px rgba(198, 40, 40, 0.08);
}

.dashboard-message-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #c62828;
  background: rgba(198, 40, 40, 0.1);
}

.dashboard-message-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.dashboard-message-box strong {
  color: #c62828;
}

.dashboard-message-box p {
  margin: 0;
  color: #7c1f1f;
  line-height: 1.38;
}

.copy-icon {
  width: 16px;
  height: 16px;
  background: var(--accent);
  -webkit-mask: url("icon-copy.png?v=20260710-2") center / contain no-repeat;
  mask: url("icon-copy.png?v=20260710-2") center / contain no-repeat;
}

.copy-field-button.is-copied {
  background: rgba(67, 127, 139, 0.22);
}

.link-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  background: rgba(67, 127, 139, 0.1);
  color: var(--accent);
}

.link-icon-action {
  margin-left: auto;
  text-decoration: none;
}

.link-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 900px) {
  .sheet-content {
    padding-bottom: 40px;
  }

  .sheet-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .sheet-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mobile-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
  padding: 25px 39px 0 48px;
  color: #05070a;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.status-right {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
}

.signal {
  display: inline-grid;
  grid-template-columns: repeat(4, 5px);
  align-items: end;
  gap: 3px;
  height: 24px;
}

.signal i {
  display: block;
  width: 5px;
  border-radius: 4px;
  background: #0b1014;
}

.signal i:nth-child(1) { height: 8px; }
.signal i:nth-child(2) { height: 12px; }
.signal i:nth-child(3) { height: 17px; }
.signal i:nth-child(4) { height: 22px; }

.battery {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 26px;
  border-radius: 7px;
  color: #fff;
  background: #6b6f73;
  font-size: 18px;
  font-weight: 800;
}

.battery::after {
  content: "";
  position: absolute;
  right: -4px;
  width: 3px;
  height: 12px;
  border-radius: 0 3px 3px 0;
  background: #b9bab8;
}

.dashboard {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 20px 20px 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 42px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 24px;
  color: var(--teal);
  font-size: 24px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 102px;
  height: 92px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 55px;
  height: 55px;
  border: 0;
  color: var(--teal);
  background: transparent;
  cursor: pointer;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button svg {
  width: 45px;
  height: 45px;
}

.hero-copy {
  margin-bottom: 28px;
}

.hero-copy h1 {
  margin: 0 0 17px;
  color: #1a2027;
  font-size: clamp(39px, 10.4vw, 52px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-copy p,
.hero-copy span {
  margin: 0;
  color: #515862;
  font-size: clamp(23px, 6.2vw, 28px);
  line-height: 1.45;
  font-weight: 420;
}

.daily-verse,
.daily-verse .dailyVerses {
  max-width: 760px;
  color: #515862;
  font-size: clamp(18px, 4.8vw, 24px);
  line-height: 1.45;
}

.daily-verse p,
.daily-verse span,
.daily-verse div {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.daily-verse a {
  display: inline-block;
  margin-top: 7px;
  color: var(--teal);
  font-size: 0.78em;
  font-weight: 800;
}

.daily-verse-reference {
  display: inline-block;
  margin-top: 7px;
  color: var(--accent) !important;
  font-size: 0.68em;
  font-weight: 900 !important;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  min-height: 322px;
  padding: 32px 30px;
  color: #fff;
  border-radius: 25px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18), transparent 27%),
    linear-gradient(115deg, #5895a0 0%, #437f8b 55%, #366d78 100%);
  box-shadow: 0 16px 28px rgba(25, 62, 59, 0.2);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background:
    linear-gradient(75deg, transparent 0 20%, rgba(255, 255, 255, 0.5) 20% 21%, transparent 21% 100%),
    linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.34) 36% 37%, transparent 37% 100%);
  pointer-events: none;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-title,
.small-heading {
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.eyebrow {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  font-weight: 800;
}

.service-card h2 {
  max-width: 620px;
  margin: 0 0 30px;
  font-size: clamp(40px, 9vw, 54px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
}

.service-details {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-details li {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(20px, 5.4vw, 26px);
  line-height: 1.2;
}

.service-details svg {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: rgba(222, 236, 220, 0.82);
}

.church-art {
  align-self: flex-end;
  flex: 0 0 auto;
  width: 190px;
  margin: 0 -6px 8px 0;
  color: rgba(222, 236, 220, 0.8);
  stroke-width: 4;
}

.section-title {
  margin: 0 0 17px 4px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}

.list-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.info-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.list-card {
  overflow: hidden;
}

.dashboard-calendar-list {
  display: grid;
  gap: 10px;
}

.info-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 18px;
  min-height: 102px;
  padding: 16px 24px 16px 20px;
  border-bottom: 1px solid var(--line);
}

.info-item:last-child {
  border-bottom: 0;
}

.info-icon,
.quick-button .quick-icon,
.birthday-day {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(67, 127, 139, 0.1);
  color: var(--teal);
}

.info-icon {
  width: 68px;
  height: 68px;
}

.info-icon svg {
  width: 39px;
  height: 39px;
}

.info-text strong {
  display: block;
  margin-bottom: 4px;
  color: #182029;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
}

.info-text span {
  color: #555b64;
  font-size: 21px;
  line-height: 1.2;
}

.chevron {
  width: 32px;
  height: 32px;
  color: #111820;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quick-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 150px;
  padding: 18px 9px;
  border: 1px solid #e8ece3;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 9px 22px rgba(34, 45, 35, 0.06);
  color: #1f2730;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.quick-button .quick-icon {
  width: 48px;
  height: 48px;
  background: transparent;
}

.quick-button svg {
  width: 45px;
  height: 45px;
  color: var(--teal);
  stroke-width: 2.2;
}

.small-heading svg,
.bottom-nav svg,
.info-item .chevron {
  color: var(--teal);
}

.sabbath-card,
.birthdays-card {
  overflow: hidden;
  min-height: 305px;
}

.sabbath-card {
  position: relative;
  isolation: isolate;
  padding: 25px 25px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 15, 20, 0.72), rgba(7, 15, 20, 0.28) 55%, rgba(7, 15, 20, 0.1)),
    url("sabbatbeginn.webp?v=20260710-2") center / cover;
  border: 0;
}

.sabbath-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: inherit;
}

.sabbath-card.is-end {
  background:
    linear-gradient(90deg, rgba(7, 15, 20, 0.74), rgba(7, 15, 20, 0.3) 55%, rgba(7, 15, 20, 0.12)),
    url("sabbatschluss.webp?v=20260710-2") center / cover;
}

.small-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #20252c;
  font-size: 17px;
  font-weight: 800;
}

.sabbath-card .small-heading {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.small-heading svg {
  width: 34px;
  height: 34px;
  color: #252b31;
}

.sabbath-card .small-heading svg {
  color: #fff;
  filter: none;
}

.sabbath-card strong {
  display: block;
  margin-top: 8px;
  font-size: 43px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.sabbath-card p {
  margin: 12px 0 0;
  font-size: 21px;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

#sabbath-date {
  margin-top: 30px;
}

.sabbath-countdown {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(8, 18, 24, 0.38);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  backdrop-filter: blur(8px);
}

.sabbath-countdown[hidden] {
  display: none;
}

.landscape {
  display: none;
}

.sun {
  position: absolute;
  right: 45px;
  top: 31px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #efc57d;
  box-shadow:
    0 -28px 0 -16px #efc57d,
    0 28px 0 -16px #efc57d,
    28px 0 0 -16px #efc57d,
    -28px 0 0 -16px #efc57d;
}

.range {
  position: absolute;
  left: -8%;
  width: 116%;
  height: 95px;
  clip-path: polygon(0 68%, 15% 44%, 31% 64%, 48% 34%, 66% 60%, 82% 31%, 100% 58%, 100% 100%, 0 100%);
}

.range-back {
  bottom: 41px;
  background: #c9d9ca;
}

.range-mid {
  bottom: 20px;
  background: #a8c0a9;
  opacity: 0.9;
}

.range-front {
  bottom: -8px;
  background: #789b79;
}

.tree {
  position: absolute;
  bottom: 15px;
  width: 20px;
  height: 48px;
  background: #52795d;
  clip-path: polygon(50% 0, 76% 29%, 64% 29%, 90% 61%, 65% 61%, 79% 100%, 21% 100%, 35% 61%, 10% 61%, 36% 29%, 24% 29%);
}

.tree-left { left: 30px; }
.tree-right { right: 16px; transform: scale(0.8); }

.birthdays-card {
  padding: 24px 26px 0;
}

.birthday-list {
  display: grid;
  gap: 18px;
  margin: 26px 0 20px;
}

.birthday-row {
  display: grid;
  grid-template-columns: 49px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.birthday-day {
  width: 49px;
  height: 49px;
  color: #27322b;
  font-size: 15px;
  font-weight: 700;
}

.birthday-name {
  display: block;
  margin-bottom: 3px;
  font-size: 19px;
  line-height: 1.12;
  font-weight: 500;
}

.birthday-date {
  color: #5b626b;
  font-size: 17px;
  line-height: 1.1;
}

.show-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -26px;
  padding: 16px 29px 18px;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-size: 17px;
  font-weight: 800;
}

.show-all svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.6;
}

.bottom-nav {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 96px;
  padding: 11px 26px 17px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  color: #5c626b;
  font-size: 16px;
  font-weight: 500;
}

.bottom-nav a[aria-disabled="true"],
.desktop-nav a[aria-disabled="true"] {
  cursor: default;
}

.bottom-nav svg {
  width: 34px;
  height: 34px;
  stroke-width: 2;
}

.bottom-nav .active {
  color: var(--teal);
  font-weight: 800;
}

.bottom-nav .active::after {
  content: "";
  position: absolute;
  right: 24%;
  bottom: -4px;
  left: 24%;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
}

.bottom-nav .active svg {
  fill: var(--teal);
  stroke: var(--teal);
}

.bottom-nav .active svg rect {
  fill: none;
}

@media (max-width: 720px) {
  .dashboard {
    padding-inline: 20px;
  }

  .brand {
    gap: 22px;
    font-size: clamp(21px, 5.8vw, 24px);
  }

  .brand-mark {
    width: 106px;
    height: 88px;
  }

  .service-card {
    min-height: 322px;
  }

  .church-art {
    width: clamp(116px, 28vw, 168px);
  }
}

@media (max-width: 610px) {
  .dashboard {
    padding-inline: 20px;
  }

  .mobile-status {
    padding-inline: 31px 25px;
  }

  .topbar {
    margin-bottom: 34px;
  }

  .service-card {
    padding: 26px 24px;
  }

  .church-art {
    opacity: 0.65;
  }

  .quick-actions {
    gap: 12px;
  }

  .quick-button {
    min-height: 132px;
    font-size: 15px;
  }
}

@media (max-width: 470px) {
  .dashboard {
    padding-inline: 20px;
  }

  .mobile-status {
    height: 62px;
    padding-top: 18px;
    font-size: 21px;
  }

  .status-right {
    font-size: 18px;
  }

  .brand {
    gap: 13px;
  }

  .brand-mark {
    width: 68px;
    height: 62px;
  }

  .icon-button {
    width: 46px;
    height: 46px;
  }

  .icon-button svg {
    width: 36px;
    height: 36px;
  }

  .service-card {
    min-height: 286px;
    border-radius: 21px;
  }

  .service-details {
    gap: 16px;
  }

  .service-details svg {
    width: 29px;
    height: 29px;
  }

  .church-art {
    display: none;
  }

  .info-item {
    grid-template-columns: 58px minmax(0, 1fr) 26px;
    min-height: 87px;
    gap: 13px;
    padding: 13px 18px 13px 15px;
  }

  .info-icon {
    width: 54px;
    height: 54px;
  }

  .info-icon svg {
    width: 32px;
    height: 32px;
  }

  .info-text strong {
    font-size: 19px;
  }

  .info-text span {
    font-size: 17px;
  }

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

  .bottom-nav {
    padding-inline: 10px;
  }

  .bottom-nav a {
    font-size: 13px;
  }
}

@media (min-width: 860px) {
  .mobile-status {
    display: none;
  }

  .app-shell {
    padding-bottom: 0;
  }

  .dashboard {
    padding: 42px 44px 118px;
  }

  .topbar {
    margin-bottom: 34px;
  }

  .hero-copy {
    margin-bottom: 32px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    align-items: start;
    gap: 36px 40px;
  }

  .service-card,
  .quick-section {
    grid-column: 1 / -1;
  }

  .quick-actions {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .bottom-nav {
    right: 50%;
    bottom: 22px;
    left: 50%;
    width: min(720px, calc(100% - 48px));
    height: 76px;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
}

/* Account roles, notifications and persistent mobile navigation */
.preference-pending {
  visibility: hidden;
}

.account-pending .quick-section,
.account-pending .birthdays-card,
.account-pending .desktop-nav a[href*="termine"],
.account-pending .desktop-nav a[href*="dienstplan"],
.account-pending .bottom-nav a[href*="termine"],
.account-pending .bottom-nav a[href*="dienstplan"] {
  display: none !important;
}

.account-no-schedule-access [data-page="dienstplan.html"] {
  display: none !important;
}

.signed-in-user {
  width: fit-content;
  margin: 0 0 18px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #315d66;
  background: #eaf3f2;
  font-size: 13px;
  font-weight: 800;
}

.admin-user-list {
  grid-template-columns: minmax(0, 1fr) !important;
}

.admin-user-card {
  display: block;
  padding: 0;
  overflow: hidden;
}

.admin-user-card[hidden] {
  display: none;
}

.admin-user-summary,
.notification-summary {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  padding: 16px 18px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.admin-user-summary {
  min-height: 44px;
  padding: 2px 12px;
}

.admin-user-summary > svg,
.notification-summary > svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.admin-user-summary[aria-expanded="true"] > svg,
.notification-summary[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}

.admin-user-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.member-role-badge {
  border-radius: 999px;
  padding: 3px 7px;
  color: #26333a;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.role-guest { background: #6d9eeb; }
.role-member { background: #93c47d; }
.role-youth { background: #c27ba0; color: #fff; }
.role-admin { background: #d94b55; color: #fff; }
.role-pending { background: #f4c47b; }

.admin-user-details {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 14px;
}

.admin-user-details[hidden] {
  display: none;
}

.role-selection {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #354148;
  font-size: 13px;
  font-weight: 850;
}

.admin-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.role-selection select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8dfdd;
  border-radius: 8px;
  padding: 0 42px 0 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.admin-permissions[hidden] {
  display: none;
}

.more-options > button[hidden],
.schedule-options > button[hidden],
.quick-actions > button[hidden] {
  display: none !important;
}

.role-selection label,
.admin-permissions label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 750;
}

.admin-permissions {
  border-radius: 8px;
  padding: 14px;
  background: #f4f7f5;
}

.admin-permissions > strong {
  flex-basis: 100%;
  color: #315d66;
  font-size: 13px;
}

.member-list-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
}

.member-list-toolbar label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
}

.member-list-toolbar select {
  min-width: 180px;
  min-height: 48px;
  border: 1px solid #d8dfdd;
  border-radius: 8px;
  padding: 0 38px 0 12px;
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.notification-page > section,
.notification-list {
  display: grid;
  gap: 12px;
}

.notification-page h2 {
  margin: 0;
  font-size: 18px;
}

.notification-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.notification-item.is-unread {
  border-left: 4px solid #d94b55;
}

.notification-summary > span {
  display: grid;
  gap: 5px;
}

.notification-summary time {
  color: var(--muted);
  font-size: 12px;
}

.notification-details {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 16px 18px;
}

.notification-details[hidden] {
  display: none;
}

.notification-details p {
  margin: 0;
  line-height: 1.55;
}

.notification-unread-button {
  width: fit-content;
  border: 0;
  padding: 5px 0;
  color: var(--teal);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.profile-modal-dialog {
  width: min(100%, 650px);
  padding: 28px;
}

.profile-form {
  display: grid;
  gap: 18px;
}

.profile-delete-section {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  border-top: 1px solid #ecd4d6;
  padding-top: 20px;
}

.profile-delete-section[hidden] {
  display: none;
}

.profile-delete-section p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-delete-button {
  width: fit-content;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  color: #9a2f36;
  background: #fff0f1;
  font-weight: 850;
  cursor: pointer;
}

.registration-success-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 29, 33, 0.58);
  backdrop-filter: blur(5px);
}

.registration-success-modal[hidden] {
  display: none;
}

.registration-success-dialog {
  width: min(100%, 440px);
  border-radius: 10px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 29, 33, 0.3);
}

.registration-success-dialog h2 {
  margin: 0 0 12px;
}

.registration-success-dialog p {
  margin: 0 0 20px;
  line-height: 1.55;
}

.registration-success-dialog .login-submit {
  width: fit-content;
  margin-inline: auto;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.notification-delete-button {
  width: fit-content;
  border: 0;
  padding: 5px 0;
  color: #9a2f36;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.notification-delete-button[hidden] {
  display: none;
}

.admin-user-list {
  overflow-anchor: none;
}

@media (max-width: 859px) {
  .app-shell {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    position: fixed;
    z-index: 40;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 14px;
    width: auto;
    min-height: 70px;
    border: 1px solid rgba(67, 127, 139, 0.14);
    border-radius: 999px;
    padding: 7px 6px 10px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 12px 36px rgba(29, 39, 37, 0.16);
    -webkit-backdrop-filter: blur(42px) saturate(1.35);
    backdrop-filter: blur(42px) saturate(1.35);
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }

  .bottom-nav a {
    min-height: 52px;
    border-radius: 12px;
    padding: 5px 2px 7px;
  }

  .bottom-nav a.active {
    color: var(--teal);
    background: #eaf3f2;
  }

  .bottom-nav .active::after {
    display: none;
  }

  .bottom-nav .active svg {
    fill: none;
  }

  .footer-notification {
    bottom: calc(108px + env(safe-area-inset-bottom));
  }

  .admin-user-name {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

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

  .profile-modal-dialog {
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 1120px) {
  .service-card {
    min-height: 300px;
    padding-inline: 44px;
  }

  .church-art {
    width: 220px;
    margin-right: 18px;
  }

  .info-panel {
    grid-column: 1;
  }

  .quick-section {
    grid-column: 1 / -1;
  }
}

/* Current layout pass: compact mobile dashboard and website-like desktop. */
.mobile-status {
  display: none;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desktop-nav {
  display: none;
}

.desktop-logout {
  display: none;
}

.header-notification,
.footer-notification {
  display: none;
  border: 0;
  color: var(--teal);
  background: #fff;
  cursor: pointer;
}

.header-notification svg,
.footer-notification svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.more-page {
  min-height: 100dvh;
}

.more-content {
  display: grid;
  gap: 28px;
  padding-top: 20px;
}

.more-options {
  margin-top: 0;
}

.more-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.more-content h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.05;
}

.more-content p:not(.more-kicker) {
  max-width: 580px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.more-logout-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  min-height: 58px;
  border: 1px solid #dfe4e2;
  border-radius: 8px;
  padding: 0 18px;
  color: #9a2f36;
  background: #fff;
  box-shadow: 0 10px 28px rgba(29, 39, 37, 0.07);
  font-weight: 800;
  cursor: pointer;
}

.more-logout-button svg,
.desktop-logout svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.utility-page {
  min-height: 100dvh;
}

.utility-content {
  padding-top: 20px;
}

.utility-intro p {
  margin: 0 0 7px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.utility-intro h1,
.empty-utility-content h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.05;
}

.schedule-options {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.utility-content > .schedule-options:first-child {
  margin-top: 0;
}

.schedule-options > button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 28px rgba(29, 39, 37, 0.07);
  text-align: left;
  cursor: pointer;
}

.more-options > button {
  min-height: 86px;
}

@media (min-width: 860px) {
  .more-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(112px, 1fr);
    align-items: stretch;
    width: 100%;
  }

  .more-options > button {
    height: 100%;
    min-height: 112px;
  }

  .more-options > button[data-page="gebetsanliegen.html"] { grid-column: 1; grid-row: 1; }
  .more-options > button[data-page="kontakte.html"] { grid-column: 1; grid-row: 2; }
  .more-options > button[data-page="spenden.html"] { grid-column: 1; grid-row: 3; }
  .more-options > button[data-page="aemterverteilung.html"] { grid-column: 1; grid-row: 4; }
  .more-options > button[data-page="gemeindeliste.html"] { grid-column: 1; grid-row: 5; }
  .more-options > button[data-page="links.html"] { grid-column: 2; grid-row: 1; }
  .more-options > button[data-page="einstellungen.html"] { grid-column: 2; grid-row: 2; }
  .more-options > button[data-open-support] { grid-column: 2; grid-row: 3; }
  .more-options > button[data-page="mitgliederverwaltung.html"] { grid-column: 2; grid-row: 4; }
}

@media (min-width: 860px) {
  .utility-page .utility-content,
  .more-page .more-content,
  .sheet-content[data-sheet-mode="donations"],
  .settings-content {
    width: 100%;
    max-width: none;
  }

  .termine-page .schedule-options,
  .utility-page .schedule-options:not(.more-options),
  .sheet-content[data-sheet-mode="donations"] .sheet-list,
  .settings-content,
  .settings-list {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
}

.schedule-option-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal);
  background: rgba(67, 127, 139, 0.1);
}

.schedule-option-icon svg,
.schedule-chevron,
.header-back svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.schedule-options strong {
  font-size: 17px;
}

.schedule-chevron {
  color: var(--teal);
}

.empty-utility-content {
  min-height: 45vh;
  padding-top: 18px;
}

.duty-page-content {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.duty-loading-screen {
  display: grid;
  min-height: 52vh;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 750;
}

.app-loading-screen {
  display: grid;
  min-height: 52vh;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 750;
}

.duty-loading-screen[hidden] {
  display: none;
}

.duty-loading-screen:not([hidden]) ~ * {
  display: none;
}

.duty-next-service {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 14px;
  padding: 22px 24px;
  color: #fff;
  background: linear-gradient(110deg, #5895a0, var(--teal) 55%, var(--teal-dark));
  box-shadow: 0 12px 30px rgba(67, 127, 139, 0.18);
}

.duty-next-copy p,
.duty-next-copy h1 {
  margin: 0;
}

.duty-next-copy p {
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 650;
}

.duty-next-hint {
  max-width: 680px;
  margin-top: 7px !important;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
}

.duty-next-copy h1 {
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.08;
}

.duty-service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px;
}

.duty-service-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}

.duty-service-meta svg,
.my-duties-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.my-duties-button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: var(--teal);
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 66, 63, 0.12);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.my-duties-button.is-active {
  border: 2px solid #fff;
  color: #fff;
  background: var(--teal-dark);
  box-shadow: 0 8px 22px rgba(17, 66, 63, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.my-duties-button:disabled {
  opacity: 0.58;
  cursor: default;
}

.duty-overview,
.duty-plan {
  min-width: 0;
}

.duty-overview h2,
.duty-plan h2 {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 16px;
  line-height: 1.25;
}

.duty-date-navigation {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.duty-date-strip {
  display: flex;
  min-width: 0;
  gap: 12px;
  overflow-x: auto;
  padding: 3px;
  scroll-behavior: smooth;
  scroll-snap-type: none;
  scrollbar-width: none;
  overscroll-behavior-inline: none;
  overscroll-behavior-x: none;
  touch-action: pan-x;
  user-select: none;
}

.duty-date-strip.is-short {
  justify-content: flex-start;
  overflow-x: hidden;
}

/* Dashboard service card follows the compact duty-plan visual language. */
.service-card {
  min-height: 190px;
  border-radius: 14px;
  padding: 22px 24px;
  background: linear-gradient(110deg, #5895a0, var(--teal) 55%, var(--teal-dark));
  box-shadow: 0 12px 30px rgba(67, 127, 139, 0.18);
}

.service-card::before {
  display: none;
}

.service-card .eyebrow {
  margin-bottom: 7px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.service-card h2 {
  margin-bottom: 18px;
  font-size: clamp(27px, 3vw, 38px);
}

.service-card .service-details {
  gap: 9px;
}

.service-card .service-details li {
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
}

.service-card .service-details svg {
  width: 19px;
  height: 19px;
}

.service-card .church-art {
  width: 112px;
  opacity: 0.55;
}

@media (max-width: 700px) {
  .service-card {
    min-height: 178px;
    border-radius: 12px;
    padding: 16px;
  }

  .service-card .eyebrow,
  .service-card .service-details li {
    font-size: 12px;
  }

  .service-card h2 {
    margin-bottom: 12px;
    font-size: clamp(20px, 5.7vw, 24px);
  }

  .service-card .service-details {
    gap: 6px;
  }

  .service-card .service-details svg {
    width: 17px;
    height: 17px;
  }
}

.duty-date-strip::-webkit-scrollbar {
  display: none;
}

.duty-scroll-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #dfe6e3;
  border-radius: 50%;
  color: var(--teal);
  background: #fff;
  box-shadow: 0 5px 14px rgba(29, 39, 37, 0.07);
  cursor: pointer;
}

.duty-scroll-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.duty-scroll-button:disabled {
  opacity: 0.28;
  cursor: default;
}

.duty-date,
.duty-calendar-button {
  display: grid;
  min-height: 92px;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 1px solid #dfe6e3;
  border-radius: 12px;
  padding: 10px 8px;
  color: #26333a;
  background: #fff;
  box-shadow: 0 6px 18px rgba(29, 39, 37, 0.04);
  font: inherit;
  cursor: pointer;
  scroll-snap-align: center;
}

.duty-date {
  flex: 0 0 clamp(82px, 12vw, 116px);
}

.duty-date span {
  font-size: 12px;
  font-weight: 750;
}

.duty-date strong {
  font-size: 25px;
  line-height: 1;
}

.duty-date small {
  margin-top: 3px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 750;
}

.duty-date.is-active {
  border-color: transparent;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(67, 127, 139, 0.2);
}

.duty-date.is-past:not(.is-active) {
  opacity: 0.48;
  filter: grayscale(0.7);
}

.duty-date.is-next {
  border-color: #d94b55;
  box-shadow: 0 0 0 2px #d94b55, 0 8px 20px rgba(217, 75, 85, 0.14);
}

.duty-calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -2px 0 12px;
}

.duty-calendar-actions[hidden] {
  display: none;
}

.duty-calendar-actions button {
  min-height: 40px;
  border: 1px solid rgba(67, 127, 139, 0.3);
  border-radius: 8px;
  padding: 8px 13px;
  color: var(--teal-dark);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.duty-calendar-actions button:hover {
  background: #eef8f6;
}

.duty-calendar-button {
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
}

.duty-calendar-button svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.duty-plan {
  margin-top: 2px;
}

.duty-list {
  overflow: hidden;
  border: 1px solid #e2e7e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(29, 39, 37, 0.06);
}

.duty-important-notes {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  border: 1px solid rgba(190, 52, 62, 0.24);
  border-left: 4px solid #be343e;
  border-radius: 10px;
  padding: 13px 15px;
  color: #a62933;
  background: #fff5f5;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.duty-important-notes p {
  margin: 0;
}

.duty-row {
  display: grid;
  width: 100%;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 66px;
  border: 0;
  border-bottom: 1px solid #e7ebe9;
  padding: 8px 16px 8px 12px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: default;
}

.duty-row:last-child {
  border-bottom: 0;
}

.duty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--duty-color, #437f8b);
  background: var(--duty-tint, #eef8fa);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 23px;
  line-height: 1;
}

.duty-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.duty-text {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.duty-text strong {
  overflow-wrap: anywhere;
  color: var(--duty-color, #26333a);
  font-size: 15px;
  line-height: 1.2;
}

.duty-text small {
  overflow-wrap: anywhere;
  color: #526069;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.duty-text small.is-unassigned {
  color: #89949a;
  font-style: italic;
}

.duty-chevron {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #1d3439;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.duty-loading {
  margin: 0;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.header-back {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--teal);
  background: #f1f6f5;
  cursor: pointer;
}

.subpage-header .brand {
  margin-right: auto;
}

.page-view {
  min-height: 100vh;
}

.page-heading {
  min-height: 55vh;
}

.page-heading h1 {
  margin: 0;
  color: #1a2027;
  font-size: clamp(34px, 8vw, 56px);
  line-height: 1.08;
  font-weight: 850;
}

.sermons-page {
  max-width: 720px;
}

.sermons-topbar {
  margin-bottom: 24px;
}

.sermons-title-stack {
  display: grid;
  gap: 2px;
}

.sermons-title-stack > span {
  color: var(--teal);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
}

.sermons-title-stack strong {
  color: #182128;
  font-size: clamp(30px, 6.5vw, 40px);
  line-height: 1;
  font-weight: 850;
}

.dashboard-title-stack strong {
  white-space: nowrap;
}

.sermons-audio-button svg {
  width: 38px;
  height: 38px;
}

.sermons-live-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  margin-bottom: 28px;
  border-radius: 12px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(37, 115, 112, 0.94), rgba(37, 115, 112, 0.72) 46%, rgba(37, 115, 112, 0.08)),
    url("livestream-hintergrund.webp?v=20260710-2") center / cover;
  box-shadow: var(--shadow);
}

.sermons-loading-screen {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 52vh;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}

.loading-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid rgba(67, 127, 139, 0.18);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: loading-spin 0.85s linear infinite;
}

@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

.sermons-view:not(.youtube-loading) .sermons-loading-screen {
  display: none;
}

.sermons-view.youtube-loading .sermons-live-card,
.sermons-view.youtube-loading .youtube-load-status,
.sermons-view.youtube-loading .sermons-section {
  display: none;
}

.live-status-indicator {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(155, 21, 26, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.live-status-indicator[hidden] {
  display: none;
}

.live-status-indicator > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff3038;
  box-shadow: 0 0 0 rgba(255, 48, 56, 0.55);
  animation: live-pulse 1.4s infinite;
}

.sermons-countdown {
  width: fit-content;
  margin: -6px 0 14px;
  padding: 7px 10px;
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 800;
}

.sermons-countdown[hidden] {
  display: none;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 48, 56, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(255, 48, 56, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 48, 56, 0); }
}

.quick-button.is-live .quick-icon,
.quick-button.is-live svg {
  color: #d5232b;
}

.quick-button.is-live .quick-icon {
  animation: live-icon-pulse 1.4s infinite;
}

.quick-live-status {
  margin-top: -5px;
  color: #d5232b;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.quick-live-status[hidden] {
  display: none;
}

.quick-button {
  position: relative;
}

.quick-live-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  border-radius: 999px !important;
  background: #ff3038;
  box-shadow: 0 0 0 rgba(255, 48, 56, 0.55);
  animation: live-pulse 1.4s infinite;
}

.quick-live-dot[hidden] {
  display: none;
}

@keyframes live-icon-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.68; }
}

.sermons-live-content {
  display: grid;
  align-content: center;
  min-height: 280px;
  max-width: 58%;
  padding: 28px;
}

.sermons-kicker {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
}

.sermons-live-card h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 5vw, 34px);
  line-height: 1.1;
  font-weight: 850;
}

.sermons-meta,
.sermons-topic {
  margin: 0 0 14px;
  white-space: pre-line;
  font-size: 16px;
  line-height: 1.35;
}

.sermons-topic {
  font-weight: 800;
}

.sermons-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font-weight: 800;
}

.sermons-action[hidden],
.sermons-kicker[hidden] {
  display: none !important;
}

.sermons-action svg {
  width: 20px;
  height: 20px;
}

.sermons-section {
  margin-top: 26px;
}

.sermons-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  gap: 16px;
  margin-bottom: 12px;
}

.more-content > .more-logout-button {
  justify-self: center;
}

.settings-content {
  display: grid;
  gap: 30px;
  padding-top: 18px;
}

.settings-content h1 {
  margin: 0;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.08;
}

.settings-list {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(29, 39, 37, 0.07);
  cursor: pointer;
}

.setting-row > span:first-child {
  display: grid;
  gap: 6px;
}

.setting-row strong {
  font-size: 17px;
}

.setting-row small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.setting-row-button {
  width: 100%;
  color: inherit;
  text-align: left;
}

.setting-row-button > svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.profile-modal[hidden] {
  display: none;
}

.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 29, 33, 0.56);
  backdrop-filter: blur(4px);
}

.profile-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 580px);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 12px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 29, 33, 0.3);
}

.profile-modal-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-modal-dialog h2,
.profile-modal-dialog h3 {
  margin: 0;
}

.profile-modal-dialog h3 {
  margin-top: 8px;
  font-size: 16px;
}

.profile-modal-close {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #f1f4f2;
  cursor: pointer;
}

.profile-modal-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.profile-modal-open {
  overflow: hidden;
}

.setting-switch {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 28px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: #cbd2d0;
  transition: background 160ms ease;
  cursor: pointer;
}

.setting-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(24, 33, 40, 0.22);
  transition: transform 160ms ease;
}

.setting-switch.is-on {
  background: var(--teal);
}

.setting-switch.is-on::after {
  transform: translateX(22px);
}

.setting-switch:focus-visible {
  outline: 3px solid rgba(67, 127, 139, 0.2);
}

.setting-status {
  min-height: 20px;
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-user-details .setting-status:empty {
  display: none;
}

.account-panel,
.admin-user-card {
  display: grid;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(29, 39, 37, 0.07);
}

.account-panel {
  margin-bottom: 18px;
}

.account-panel h2,
.account-panel h3,
.admin-content h1,
.admin-request-section h2 {
  margin: 0;
}

.account-panel h3 {
  margin-top: 10px;
  font-size: 16px;
}

.profile-form label,
.admin-user-fields label {
  display: grid;
  gap: 6px;
  color: #354148;
  font-size: 13px;
  font-weight: 800;
}

.profile-form input,
.admin-user-fields input,
.admin-user-fields select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8dfdd;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.profile-form input:disabled {
  color: #6b7479;
  background: #f1f3f2;
}

.profile-name-grid,
.admin-user-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-save-button,
.admin-save-button,
.admin-delete-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.profile-save-button,
.admin-save-button {
  color: #fff;
  background: var(--teal);
}

.admin-delete-button {
  color: #9a2f36;
  background: #fff0f1;
}

.admin-content {
  display: grid;
  gap: 28px;
  padding-top: 18px;
}

.admin-content h1 {
  font-size: clamp(28px, 8vw, 42px);
}

.admin-request-section,
.admin-user-list {
  display: grid;
  gap: 14px;
}

.admin-user-card-heading,
.admin-user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-card-heading {
  justify-content: space-between;
}

.admin-user-card-heading > span {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.admin-user-card-heading .is-pending {
  color: #9b3b18;
  background: #fff0e5;
}

.admin-user-card-heading .is-approved {
  color: #28704f;
  background: #e8f6ef;
}

.approval-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.admin-empty-state,
.header-notification,
.footer-notification {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0 4px;
  color: #fff;
  background: #d52e38;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.notification-badge[hidden],
[data-admin-only][hidden] {
  display: none !important;
}

.login-error.is-success {
  border-left-color: var(--teal);
  color: #28606b;
  background: #edf7f6;
}

.registration-review-note {
  margin: 0;
  border-left: 3px solid var(--teal);
  padding: 10px 12px;
  color: #36545a;
  background: #edf5f4;
  font-size: 13px;
  line-height: 1.45;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .profile-name-grid,
  .admin-user-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-user-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .approval-control {
    justify-content: space-between;
    width: 100%;
  }

  .profile-modal {
    align-items: end;
    padding: 0;
  }

  .profile-modal-dialog {
    width: 100%;
    max-height: 91vh;
    border-radius: 12px 12px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  }
}

.sermons-section-header h2 {
  margin: 0;
  color: var(--teal);
  font-size: 20px;
  line-height: 1.2;
}

.sermons-section-header a,
.sermons-show-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  color: #1f2730;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.sermons-section-header svg,
.sermons-show-all svg {
  width: 19px;
  height: 19px;
  color: var(--teal);
}

.sermon-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sermon-row {
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.sermon-row:last-child {
  border-bottom: 0;
}

.sermon-row {
  grid-template-columns: 210px minmax(0, 1fr) 34px;
  gap: 18px;
  min-height: 140px;
  padding: 10px 18px 10px 10px;
  width: 100%;
  border-right: 0;
  border-left: 0;
  border-top: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sermon-thumb {
  position: relative;
  align-self: center;
  width: 100%;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
}

.sermon-thumb img,
.playlist-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  border-radius: inherit;
  background: #fff;
}

.playlist-thumb img {
  object-position: center top;
}

.sermon-thumb span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 6px;
  border-radius: 5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.sermon-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.sermon-date {
  color: #5a626b;
  font-size: 14px;
}

.sermon-info strong {
  color: #172029;
  font-size: 19px;
  line-height: 1.15;
}

.sermon-info > span {
  color: #4c555f;
  font-size: 15px;
}

.sermon-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: pre-line;
}

.sermon-row.description-expanded .sermon-description {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.sermon-description-more,
.sermon-actions {
  display: block;
  margin-top: 4px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 750;
}

.sermon-download {
  width: 25px;
  height: 25px;
  color: var(--teal);
}

.playlist-list {
  display: grid;
  gap: 16px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.playlist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.playlist-thumb {
  position: relative;
  display: block;
  align-self: start;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.playlist-thumb:focus-visible {
  outline: 3px solid rgba(67, 127, 139, 0.32);
  outline-offset: 3px;
}

.playlist-title-cover {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(rgba(19, 52, 57, 0.58), rgba(19, 52, 57, 0.72)),
    url("livestream-hintergrund.webp?v=20260710-2") center / cover no-repeat;
  text-align: center;
}

.playlist-cover-loading {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.72) 42%, transparent 64%),
    #e9eeee;
  background-size: 220% 100%, auto;
  animation: playlist-cover-loading 1.25s ease-in-out infinite;
}

@keyframes playlist-cover-loading {
  to {
    background-position: -140% 0, 0 0;
  }
}

.playlist-title-cover > span {
  max-width: 720px;
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 850;
  line-height: 1.15;
}

.playlist-row strong,
.playlist-copy > span {
  display: block;
}

.playlist-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.playlist-row strong {
  color: #527245;
  font-size: 17px;
  line-height: 1.2;
}

.playlist-copy em {
  display: block;
  margin-top: 3px;
  color: var(--teal);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.playlist-copy > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 4px;
  color: #46505a;
  font-size: 14px;
  line-height: 1.35;
}

.playlist-row.expanded .playlist-copy > span {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.playlist-copy button {
  margin-top: 8px;
  border: 0;
  padding: 0;
  color: var(--teal);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.playlist-copy [data-playlist-title] {
  display: block;
  margin-left: auto;
  text-align: right;
}

.playlist-open-button {
  display: inline-flex;
  width: fit-content;
  margin-top: 20px !important;
  padding: 8px 11px !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: var(--teal) !important;
  font-size: 13px !important;
}

.login-page {
  min-height: 100dvh;
  background: #eef3f2;
}

.login-layout {
  display: grid;
  min-height: 100dvh;
  background: #fff;
}

.login-panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.login-brand span {
  display: grid;
  gap: 2px;
}

.login-brand small {
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.login-brand strong {
  color: var(--ink);
  font-size: 22px;
}

.login-copy {
  margin-top: clamp(64px, 13vh, 120px);
}

.login-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.login-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 10vw, 52px);
  line-height: 1;
}

.login-copy > p:last-child {
  max-width: 390px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 38px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #354148;
  font-size: 14px;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  height: 52px;
  border: 1px solid #d8dfdd;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  outline: 0;
  background: #fff;
  font-size: 17px;
}

.login-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(67, 127, 139, 0.14);
}

.login-form input.is-invalid {
  border-color: #c9343f;
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(201, 52, 63, 0.12);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 52px;
}

.password-field button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  color: var(--teal);
  background: transparent;
  cursor: pointer;
}

.password-field svg,
.login-submit svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.login-error {
  margin: -4px 0 0;
  padding: 11px 13px;
  border-left: 3px solid #c7353d;
  color: #8d2027;
  background: #fff2f2;
  font-size: 14px;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-weight: 850;
  cursor: pointer;
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.login-session-note {
  margin: auto 0 0;
  padding-top: 40px;
  color: #788087;
  font-size: 13px;
  text-align: center;
}

.auth-mode-link {
  align-self: center;
  margin: 18px auto 0;
  border: 0;
  padding: 4px;
  color: var(--teal);
  background: transparent;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.login-form[hidden],
.register-form[hidden],
.auth-mode-link[hidden] {
  display: none;
}

.register-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 860px) {
  .playlist-open-button {
    margin-top: auto !important;
  }

  .login-layout {
    grid-template-columns: minmax(440px, 0.82fr) minmax(0, 1.18fr);
  }

  .login-panel {
    width: min(100%, 560px);
    padding: 38px 56px;
  }

  .login-visual {
    min-height: 100dvh;
    background:
      linear-gradient(90deg, rgba(30, 70, 77, 0.34), rgba(30, 70, 77, 0.02)),
      url("livestream-hintergrund.webp?v=20260710-2") center / cover no-repeat;
  }

  .admin-user-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.playlist-chevron {
  display: none;
  width: 24px;
  height: 24px;
  color: #527245;
}

.modal-open {
  overflow: hidden;
}

.video-modal[hidden] {
  display: none;
}

.playlist-modal[hidden] {
  display: none;
}

.video-modal,
.playlist-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 24, 0.58);
  backdrop-filter: blur(10px);
}

.video-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(100%, 760px);
  max-height: min(92vh, 920px);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.video-close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  cursor: pointer;
}

.video-close svg {
  width: 22px;
  height: 22px;
}

.video-frame-wrap {
  flex: 0 0 auto;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #101820;
}

.video-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-unavailable {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 24px;
  color: #fff;
  text-align: center;
}

.video-detail-content {
  overflow-y: auto;
  padding: 22px 24px 28px;
}

.video-date,
.video-meta {
  margin: 0;
  color: #44505b;
  font-size: 14px;
}

.video-detail-content h2 {
  margin: 8px 0 10px;
  color: #101820;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.1;
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0 26px;
}

.video-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  color: #183f42;
  background: transparent;
  cursor: pointer;
}

.video-actions svg {
  width: 22px;
  height: 22px;
}

.video-description-block,
.video-info-block {
  margin-top: 22px;
}

.video-description-block h3,
.video-info-block h3 {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 17px;
}

#video-modal-description,
#dashboard-live-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #172029;
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

#video-modal-description.expanded,
#dashboard-live-description.expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

#video-description-toggle,
#dashboard-live-description-toggle {
  margin-top: 10px;
  border: 0;
  padding: 0;
  color: var(--teal);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.video-info-block dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.video-info-block div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.video-info-block dt,
.video-info-block dd {
  margin: 0;
  color: #35404a;
  font-size: 14px;
}

.video-info-block dd {
  text-align: right;
}

.sermon-list-controls,
.playlist-list-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.sermon-list-controls:empty,
.playlist-list-controls:empty {
  display: none;
}

.sermon-list-controls button,
.playlist-list-controls button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(29, 39, 37, 0.08);
  font-weight: 800;
  cursor: pointer;
}

.playlist-list-controls {
  padding: 16px;
  background: rgba(255, 255, 255, 0.75);
}

.playlist-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(100%, 860px);
  max-height: min(92vh, 920px);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.playlist-modal-header {
  flex: 0 0 auto;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.playlist-modal-header p,
.playlist-modal-header h2 {
  margin: 0;
}

.playlist-modal-header p {
  color: var(--teal);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.playlist-modal-header h2 {
  margin-top: 5px;
  color: #172029;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
}

#playlist-modal-count {
  display: block;
  margin-top: 8px;
  color: #4b5660;
  font-size: 14px;
  font-weight: 750;
}

.playlist-video-list {
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.playlist-video-list .sermon-row {
  align-items: start;
}

.playlist-video-list .sermon-thumb {
  align-self: start;
}

.playlist-loading {
  padding: 28px;
  color: #4b5660;
}

.sermons-empty-state {
  margin: 0;
  padding: 24px;
  color: #4b5660;
  line-height: 1.5;
}

.youtube-load-status {
  grid-column: 1 / -1;
  margin: -12px 0 8px;
  padding: 10px 14px;
  border: 1px solid rgba(67, 127, 139, 0.18);
  border-radius: 10px;
  color: var(--teal-dark);
  background: rgba(67, 127, 139, 0.07);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.youtube-load-status[hidden] {
  display: none;
}

.dashboard > .sheet-content,
.dashboard > .utility-content,
.dashboard > .more-content,
.dashboard > .duty-page-content,
.dashboard > .admin-content,
.dashboard > .settings-content,
.dashboard > .empty-utility-content {
  padding: 0;
}

@media (max-width: 859px) {
  body.sermons-view {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    background: #fbfbf8;
  }

  .sermons-view .app-shell {
    width: 100%;
    min-height: 100dvh;
  }

  .sermons-view .sermons-page {
    width: 100%;
    max-width: none;
    min-height: calc(100dvh - 78px);
    margin: 0;
  }

  .app-shell {
    padding-bottom: 78px;
  }

  .dashboard {
    padding: calc(88px + env(safe-area-inset-top)) 20px 20px;
  }

  .more-page {
    padding-bottom: 96px;
  }

  .utility-page {
    padding-bottom: 96px;
  }

  .duty-page-content {
    gap: 16px;
    padding-top: 10px;
  }

  .duty-next-service {
    position: relative;
    display: block;
    min-height: 128px;
    border-radius: 12px;
    padding: 16px;
  }

  .duty-next-copy h1 {
    font-size: clamp(20px, 5.7vw, 24px);
    white-space: nowrap;
  }

  .duty-next-copy p,
  .duty-service-meta span {
    font-size: 12px;
  }

  .duty-service-meta {
    display: grid;
    max-width: calc(100% - 132px);
    gap: 5px;
    margin-top: 9px;
  }

  .my-duties-button {
    position: absolute;
    right: 14px;
    bottom: 22px;
    min-height: 42px;
    gap: 7px;
    padding: 0 13px;
    font-size: 12px;
  }

  .my-duties-button svg {
    width: 17px;
    height: 17px;
  }

  .duty-overview h2,
  .duty-plan h2 {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .duty-date-strip {
    gap: 7px;
  }

  .duty-date-navigation {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 5px;
  }

  .duty-scroll-button {
    width: 30px;
    height: 42px;
    border-radius: 10px;
  }

  .duty-date {
    flex-basis: 58px;
  }

  .duty-date,
  .duty-calendar-button {
    min-width: 0;
    min-height: 80px;
    border-radius: 10px;
    padding: 7px 3px;
  }

  .duty-date strong {
    font-size: 22px;
  }

  .duty-calendar-button {
    font-size: 10px;
  }

  .duty-calendar-button svg {
    width: 23px;
    height: 23px;
  }

  .duty-list {
    border-radius: 12px;
  }

  .duty-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    min-height: 60px;
    padding: 7px 11px 7px 9px;
  }

  .duty-icon {
    width: 38px;
    height: 38px;
  }

  .duty-icon svg {
    width: 22px;
    height: 22px;
  }

  .duty-text strong {
    font-size: 14px;
  }

  .duty-text small {
    font-size: 11px;
  }

  .subpage-header {
    gap: 8px;
  }

  .subpage-header .brand {
    gap: 8px;
  }

  .subpage-header .brand-mark {
    width: 46px;
    height: 46px;
  }

  .subpage-header .sermons-title-stack > span {
    font-size: 12px;
  }

  .subpage-header .sermons-title-stack strong {
    font-size: clamp(21px, 5vw, 27px);
  }

  .app-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 5;
    gap: 12px;
    min-height: calc(68px + env(safe-area-inset-top));
    margin: 0;
    padding: calc(8px + env(safe-area-inset-top)) 18px 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(29, 39, 37, 0.08);
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .footer-notification:active {
    background: #eef4f3;
  }

  .footer-notification {
    position: fixed;
    z-index: 11;
    right: 12px;
    bottom: calc(108px + env(safe-area-inset-bottom));
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(67, 127, 139, 0.18);
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(29, 39, 37, 0.16);
  }

  .app-header::before {
    content: none;
  }

  .brand {
    gap: 12px;
    font-size: clamp(17px, 4.9vw, 21px);
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .icon-button svg {
    width: 32px;
    height: 32px;
  }

  .hero-copy {
    margin-bottom: 20px;
  }

  .hero-copy h1 {
    margin-bottom: 10px;
    font-size: 29px;
    line-height: 1.05;
    white-space: nowrap;
  }

  .hero-copy p,
  .hero-copy span {
    font-size: clamp(17px, 4.5vw, 21px);
    line-height: 1.35;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .service-card,
  .info-panel,
  .quick-section {
    grid-column: 1 / -1;
  }

  .service-card { order: 1; }
  .quick-section { order: 2; }
  .info-panel { order: 3; }
  .sabbath-card { order: 4; }
  .birthdays-card { order: 5; }

  .service-card {
    min-height: 238px;
    padding: 22px 20px;
    border-radius: 20px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .service-card h2 {
    max-width: none;
    margin-bottom: 18px;
    font-size: 25px;
    white-space: nowrap;
  }

  .service-details {
    gap: 13px;
  }

  .service-details li {
    gap: 14px;
    font-size: clamp(17px, 4.5vw, 21px);
  }

  .service-details svg {
    width: 27px;
    height: 27px;
  }

  .church-art {
    width: clamp(96px, 25vw, 134px);
    margin-bottom: 4px;
  }

  .section-title {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 15px;
  }

  .info-item {
    grid-template-columns: 52px minmax(0, 1fr) 24px;
    min-height: 74px;
    gap: 12px;
    padding: 11px 15px 11px 14px;
  }

  .info-icon {
    width: 48px;
    height: 48px;
  }

  .info-icon svg {
    width: 29px;
    height: 29px;
  }

  .info-text strong {
    margin-bottom: 2px;
    font-size: 18px;
  }

  .info-text span {
    font-size: 15px;
  }

  .quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .quick-button {
    min-height: 92px;
    gap: 7px;
    padding: 10px 4px;
    border-radius: 14px;
    font-size: clamp(10px, 2.65vw, 12px);
    line-height: 1.1;
    min-width: 0;
  }

  .quick-button > span:last-child {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .quick-button .quick-icon {
    width: 34px;
    height: 34px;
  }

  .quick-button svg {
    width: 32px;
    height: 32px;
  }

  .sabbath-card,
  .birthdays-card {
    min-height: 232px;
    border-radius: 18px;
  }

  .sabbath-card {
    padding: 16px 14px 0;
  }

  .birthdays-card {
    padding: 16px 14px 0;
  }

  .small-heading {
    gap: 8px;
    font-size: clamp(11px, 3vw, 13px);
    letter-spacing: 0.07em;
    line-height: 1.25;
  }

  .small-heading svg {
    width: 24px;
    height: 24px;
  }

  .sabbath-card strong {
    margin-top: 7px;
    font-size: clamp(31px, 8.5vw, 38px);
  }

  .sabbath-card p {
    margin-top: 7px;
    font-size: clamp(13px, 3.5vw, 16px);
  }

  #sabbath-date {
    margin-top: 21px;
  }

  .sabbath-countdown {
    margin-top: 8px;
    padding: 6px 8px;
    border-radius: 12px;
    font-size: clamp(11px, 3vw, 13px);
  }

  .landscape {
    height: 82px;
  }

  .sun {
    right: 24px;
    top: 18px;
    width: 25px;
    height: 25px;
  }

  .range {
    height: 70px;
  }

  .range-back {
    bottom: 28px;
  }

  .range-mid {
    bottom: 13px;
  }

  .birthday-list {
    gap: 10px;
    margin: 18px 0 12px;
  }

  .birthday-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
  }

  .birthday-day {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .birthday-name {
    font-size: clamp(13px, 3.4vw, 16px);
  }

  .birthday-date {
    font-size: clamp(12px, 3.2vw, 14px);
  }

  .show-all {
    margin: 0 -14px;
    padding: 11px 15px 13px;
    font-size: 14px;
  }

  .bottom-nav {
    height: 72px;
    padding: 7px 10px calc(10px + env(safe-area-inset-bottom));
  }

  .bottom-nav svg {
    width: 27px;
    height: 27px;
  }

  .bottom-nav a {
    gap: 3px;
    font-size: 12px;
  }

  .bottom-nav .active::after {
    right: 28%;
    bottom: 0;
    left: 28%;
    height: 3px;
  }

  .sermons-page {
    padding-top: calc(90px + env(safe-area-inset-top));
  }

  .sermons-topbar .brand {
    gap: 14px;
  }

  .sermons-topbar .brand-mark {
    width: 52px;
    height: 52px;
  }

  .sermons-title-stack > span {
    font-size: 15px;
  }

  .sermons-title-stack strong {
    font-size: clamp(26px, 6vw, 32px);
  }

  .sermons-live-card {
    min-height: 194px;
    margin-bottom: 22px;
    border-radius: 12px;
  }

  .sermons-live-content {
    min-height: 194px;
    max-width: 68%;
    padding: 20px 18px;
  }

  .sermons-kicker,
  .sermons-meta,
  .sermons-topic {
    font-size: 14px;
  }

  .sermons-live-card h2 {
    margin-bottom: 12px;
    font-size: 21px;
  }

  .sermons-action {
    padding: 9px 13px;
    font-size: 13px;
  }

  .sermons-section {
    margin-top: 22px;
  }

  .sermons-section-header h2 {
    font-size: 17px;
  }

  .sermons-section-header a {
    font-size: 13px;
  }

  .sermon-row {
    grid-template-columns: 136px minmax(0, 1fr) 22px;
    gap: 11px;
    min-height: 102px;
    padding: 8px 12px 8px 8px;
  }

  .sermon-thumb {
    min-height: 0;
  }

  .sermon-date,
  .sermon-info > span {
    font-size: 12px;
  }

  .sermon-info strong {
    font-size: 15px;
  }

  .sermon-actions {
    gap: 14px;
    font-size: 12px;
  }

  .sermon-download {
    width: 20px;
    height: 20px;
  }

  .playlist-row {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 13px;
  }

  .playlist-thumb {
    width: 100%;
    height: auto;
  }

  .playlist-row strong {
    font-size: 15px;
  }

  .playlist-copy > span {
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .dashboard {
    padding-inline: 20px;
  }

  .app-header {
    padding-inline: 20px;
  }

  .quick-actions {
    gap: 7px;
  }

  .quick-button {
    min-height: 84px;
  }

  .hero-copy h1 {
    font-size: 25px;
  }

  .service-card h2 {
    font-size: 21px;
  }
}

@media (min-width: 860px) {
  html {
    scrollbar-gutter: stable;
  }

  body {
    background:
      linear-gradient(180deg, rgba(245, 248, 244, 0.94), rgba(250, 250, 247, 0.98)),
      radial-gradient(circle at 12% 0%, rgba(238, 224, 197, 0.44), transparent 32%),
      radial-gradient(circle at 92% 8%, rgba(209, 230, 219, 0.6), transparent 34%);
  }

  .app-shell {
    padding-bottom: 0;
  }

  .dashboard {
    width: min(100%, 1280px);
    padding: 0 20px 48px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 48px;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    margin: 0 0 28px;
    padding: 10px 14px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 12px 34px rgba(29, 39, 37, 0.08);
    backdrop-filter: none;
  }

  .sermons-topbar {
    box-shadow: 0 10px 28px rgba(29, 39, 37, 0.08);
  }

  .topbar::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 10px 28px rgba(29, 39, 37, 0.08);
  }

  .brand {
    justify-self: start;
    gap: 14px;
    width: auto;
    font-size: 18px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
  }

  .app-header .sermons-title-stack {
    gap: 3px;
    min-width: 0;
  }

  .app-header .sermons-title-stack > span {
    font-size: 14px;
    white-space: nowrap;
  }

  .app-header .sermons-title-stack strong {
    display: block;
    padding-bottom: 2px;
    font-size: 26px;
    line-height: 1.18;
    white-space: nowrap;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
    margin-left: 0;
    padding: 6px;
    border: 1px solid #e6eae3;
    border-radius: 999px;
    background: #f6f8f2;
  }

  .desktop-nav a,
  .desktop-logout {
    padding: 7px 12px;
    border-radius: 999px;
    color: #48505a;
    font-size: 13px;
    font-weight: 750;
  }

  .desktop-logout {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    padding: 0;
    color: var(--teal);
    background: #fff;
    cursor: pointer;
  }

  .desktop-nav + .header-notification {
    display: grid;
    justify-self: end;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin-left: 0;
    place-items: center;
    border: 1px solid #e6eae3;
    border-radius: 50%;
    color: var(--teal);
    background: #f6f8f2;
  }

  .desktop-logout:hover,
  .desktop-nav + .header-notification:hover {
    color: #fff;
    background: var(--teal);
  }

  .desktop-logout svg,
  .desktop-nav + .header-notification svg {
    width: 19px;
    height: 19px;
  }

  .desktop-nav + .header-notification svg {
    width: 23px;
    height: 23px;
  }

  .desktop-nav .active {
    color: #fff;
    background: var(--teal);
  }

  .subpage-header {
    position: sticky;
  }

  .subpage-header .header-back {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
  }

  .subpage-header .brand {
    margin-right: 0;
  }

  .icon-button {
    width: 38px;
    height: 38px;
    margin-left: 6px;
    border: 1px solid #e6eae3;
    border-radius: 999px;
    background: #fff;
  }

  .icon-button svg {
    width: 24px;
    height: 24px;
  }

  .hero-copy {
    max-width: 660px;
    margin-bottom: 24px;
  }

  .hero-copy h1 {
    margin-bottom: 12px;
    font-size: clamp(36px, 4vw, 50px);
  }

  .hero-copy p,
  .hero-copy span {
    font-size: 18px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
  }

  .service-card {
    grid-column: span 8;
    min-height: 258px;
    padding: 26px 30px;
    border-radius: 20px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .service-card h2 {
    max-width: 420px;
    margin-bottom: 20px;
    font-size: clamp(32px, 3.6vw, 44px);
  }

  .service-details {
    gap: 14px;
  }

  .service-details li {
    gap: 14px;
    font-size: 19px;
  }

  .service-details svg {
    width: 27px;
    height: 27px;
  }

  .church-art {
    width: 160px;
    margin-right: 0;
  }

  .info-panel {
    grid-column: span 4;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .section-title {
    margin: 4px 0 12px;
    font-size: 15px;
  }

  .info-item {
    grid-template-columns: 56px minmax(0, 1fr) 26px;
    min-height: 80px;
    gap: 14px;
    padding: 12px 18px 12px 16px;
  }

  .info-icon {
    width: 50px;
    height: 50px;
  }

  .info-icon svg {
    width: 30px;
    height: 30px;
  }

  .info-text strong {
    margin-bottom: 2px;
    font-size: 19px;
  }

  .info-text span {
    font-size: 16px;
  }

  .quick-section {
    grid-column: 1 / -1;
  }

  .quick-button {
    min-height: 108px;
    gap: 8px;
    border-radius: 14px;
    font-size: 15px;
  }

  .quick-button .quick-icon {
    width: 38px;
    height: 38px;
  }

  .quick-button svg {
    width: 36px;
    height: 36px;
  }

  .sabbath-card,
  .birthdays-card {
    grid-column: span 6;
    min-height: 250px;
  }

  .sabbath-card,
  .birthdays-card {
    border-radius: 18px;
  }

  .small-heading {
    font-size: 14px;
  }

  .small-heading svg {
    width: 26px;
    height: 26px;
  }

  .sabbath-card strong {
    margin-top: 22px;
    font-size: 36px;
  }

  .sabbath-card p {
    font-size: 16px;
  }

  .sabbath-countdown {
    font-size: 14px;
  }

  .birthday-list {
    gap: 13px;
    margin-top: 20px;
  }

  .birthday-day {
    width: 42px;
    height: 42px;
    font-size: 13px;
  }

  .birthday-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
  }

  .birthday-name {
    font-size: 16px;
  }

  .birthday-date {
    font-size: 14px;
  }

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

  .bottom-nav {
    display: none;
  }

  .more-page {
    width: min(100%, 1280px);
  }

  .more-content {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    min-height: 300px;
    padding: 20px 0 48px;
  }

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

  .more-logout-button {
    width: fit-content;
  }

  .utility-content {
    padding: 20px 0 48px;
  }

  .dashboard > .sheet-content,
  .dashboard > .utility-content,
  .dashboard > .more-content,
  .dashboard > .duty-page-content,
  .dashboard > .admin-content,
  .dashboard > .settings-content,
  .dashboard > .empty-utility-content {
    padding: 0;
  }

  .schedule-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .schedule-options > button {
    grid-template-columns: 58px minmax(0, 1fr) 24px;
    min-height: 108px;
    padding: 18px;
  }

  .schedule-option-icon {
    width: 58px;
    height: 58px;
  }

  .empty-utility-content {
    padding: 48px 8px;
  }

  .sermons-page {
    width: min(100%, 1280px);
    max-width: 1280px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 22px;
  }

  .sermons-topbar,
  .sermons-live-card {
    grid-column: 1 / -1;
  }

  .sermons-topbar {
    margin-bottom: 4px;
  }

  .sermons-live-card {
    min-height: 300px;
    margin-bottom: 4px;
  }

  .sermons-live-content {
    min-height: 300px;
    max-width: 46%;
  }

  .latest-sermons-section {
    grid-column: 1 / -1;
  }

  .playlists-section {
    grid-column: 1 / -1;
  }

  .playlists-section .playlist-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .sermons-section {
    margin-top: 0;
  }

  .sermon-row {
    grid-template-columns: 180px minmax(0, 1fr) 30px;
  }

  .playlist-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .playlist-thumb {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .playlist-chevron {
    display: none;
  }
}

/* Final dashboard top-row layout overrides all earlier responsive passes. */
.dashboard-grid > .daily-verse-card {
  position: relative;
  overflow: hidden;
  display: flex;
  grid-column: 1 / -1;
  order: 0;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(67, 127, 139, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.24)),
    var(--daily-verse-background, url("bible-verse-backgrounds/verse-01.jpg?v=20260710-2"));
  background-color: #f5edda;
  background-repeat: no-repeat;
  background-position: center, center bottom;
  background-size: 100% 100%, 100% auto;
  box-shadow: 0 10px 26px rgba(29, 39, 37, 0.09);
}

.daily-verse-card .daily-verse,
.daily-verse-card .dailyVerses {
  position: relative;
  z-index: 1;
  max-width: none;
}

.dashboard-grid > .service-card {
  order: 0;
}

.dashboard-grid > .daily-verse-card {
  order: 1;
}

.service-card > .church-art {
  display: block;
  flex: 0 0 clamp(116px, 18vw, 190px);
  width: clamp(116px, 18vw, 190px);
  height: auto;
  aspect-ratio: 487 / 435;
  background: url("church-pictogram-white.png?v=20260710-2") center / contain no-repeat;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

@media (min-width: 860px) {
  .dashboard-grid {
    align-items: stretch;
  }

  body .dashboard-grid > .service-card {
    grid-column: span 8;
    order: 0;
    height: 100%;
  }

  .dashboard-grid > .hero-copy.daily-verse-card {
    grid-column: span 4;
    order: 0;
    max-width: none;
    min-height: 190px;
    margin: 0;
    padding: 24px 26px;
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .daily-verse-card .daily-verse,
  .daily-verse-card .dailyVerses {
    max-width: none;
    font-size: clamp(17px, 1.45vw, 21px);
  }
}
.notification-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 35, 38, 0.45);
}

.form-modal[hidden] {
  display: none;
}

.form-modal-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100dvh - 40px));
  overflow: auto;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(24, 43, 47, 0.24);
}

.form-modal-dialog h2 {
  margin: 0 40px 20px 0;
}

.form-modal-dialog form,
.support-form {
  display: grid;
  gap: 18px;
}

.form-modal-dialog label,
.support-form label {
  display: grid;
  gap: 7px;
}

.form-modal-dialog input,
.form-modal-dialog textarea,
.support-form input,
.support-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #ccd5d6;
  border-radius: 8px;
  color: #18282b;
  background: #fff;
  font: inherit;
}

.form-modal-dialog textarea,
.support-form textarea {
  resize: vertical;
}

.modal-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #28454a;
  background: #edf2f1;
  font-size: 24px;
  line-height: 1;
}

.message-recipient-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid #d9e1e1;
  border-radius: 8px;
}

.message-recipient-options label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}

.message-recipient-options input {
  width: auto;
}

.admin-message-button {
  border: 1px solid #437f8b;
  border-radius: 8px;
  padding: 10px 14px;
  color: #275f69;
  background: #fff;
  font: inherit;
  font-weight: 700;
}

.support-note {
  padding: 20px;
  border-left: 4px solid #437f8b;
  background: #f2f6f5;
}

.support-note h2 {
  margin-top: 0;
}

.support-form {
  max-width: 760px;
}

.community-list {
  display: grid;
  gap: 10px;
}

.community-entry {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(150px, auto);
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #e0e5e4;
  border-radius: 8px;
  background: #fff;
}

.community-entry > div {
  display: grid;
  gap: 3px;
}

.community-entry a {
  color: #275f69;
  overflow-wrap: anywhere;
}

.maintenance-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: center;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #e0d5d5;
  border-radius: 8px;
  background: #fffafa;
}

.maintenance-panel[hidden],
[data-notification-manager][hidden],
[data-sensitive-members][hidden],
[data-main-admin][hidden] {
  display: none;
}

.maintenance-panel > div {
  display: grid;
  gap: 4px;
}

.maintenance-panel .setting-status {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.more-content {
  gap: 10px;
}

.more-content > div:first-child {
  display: grid;
  gap: 10px;
}

.signed-in-user {
  justify-self: start;
  margin: 0;
  padding: 0;
  border-radius: 0;
  color: #c62828;
  background: transparent;
  text-align: left;
}

.more-content .more-kicker {
  margin-top: 0;
}

.more-content h1 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.more-options > button[data-page="gebetsanliegen.html"] { order: 1; }
.more-options > button[data-page="kontakte.html"] { order: 3; }
.more-options > button[data-page="spenden.html"] { order: 4; }
.more-options > button[data-page="aemterverteilung.html"] { order: 6; }
.more-options > button[data-page="gemeindeliste.html"] { order: 7; }
.more-options > button[data-page="links.html"] { order: 9; }
.more-options > button[data-page="einstellungen.html"] { order: 11; }
.more-options > button[data-open-support] { order: 12; }
.more-options > button[data-page="mitgliederverwaltung.html"] { order: 13; }

.more-options > button[data-page="kontakte.html"],
.more-options > button[data-page="aemterverteilung.html"],
.more-options > button[data-page="links.html"],
.more-options > button[data-page="einstellungen.html"] {
  margin-top: 16px;
}

.maintenance-panel {
  padding: 20px;
}

.maintenance-panel .setting-status {
  min-height: 0;
}

@media (min-width: 860px) {
  .more-options > button[data-page="kontakte.html"],
  .more-options > button[data-page="aemterverteilung.html"],
  .more-options > button[data-page="links.html"],
  .more-options > button[data-page="einstellungen.html"] {
    margin-top: 0;
  }
}

@media (min-width: 860px) {
  .more-page .header-notification {
    display: grid;
  }
}

.maintenance-login-message {
  padding: 14px 16px;
  border: 1px solid #c95353;
  border-radius: 8px;
  color: #8d2424;
  background: #fff3f3;
  font-weight: 700;
}

.notification-details p {
  white-space: pre-line;
}

.personal-duty-roles {
  margin: 0 0 2px;
}

.personal-duty-roles[hidden] {
  display: none;
}

.personal-duty-roles h2 {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 16px;
  line-height: 1.25;
}

#personal-duty-role-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

#personal-duty-role-list.is-single {
  grid-template-columns: minmax(0, 280px);
}

.personal-duty-role {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--duty-color) 22%, #e5e9e7);
  border-radius: 8px;
  color: var(--duty-color);
  background: color-mix(in srgb, var(--duty-tint) 68%, #fff);
}

.personal-duty-role .duty-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}

.personal-duty-role strong {
  color: #263236;
  font-size: 13px;
  line-height: 1.2;
}

img,
.protected-asset {
  -webkit-user-drag: none;
  user-select: none;
}

@media (max-width: 720px) {
  .notification-heading-row {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-heading-row .admin-save-button {
    width: fit-content;
  }

  .form-modal {
    align-items: end;
    padding: 10px;
  }

  .form-modal-dialog {
    max-height: calc(100dvh - 20px);
    padding: 22px 18px;
  }

  .community-entry {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  #personal-duty-role-list.is-single {
    grid-template-columns: 1fr;
  }

  .personal-duty-roles {
    margin-top: 0;
  }
}

.notification-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px 18px 30px;
  text-align: center;
  color: #06112a;
}

.notification-empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #f1f1f1;
}

.notification-empty-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #1f5a96;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-empty-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.notification-empty-state h2 {
  margin: 6px 0 0;
  color: #06112a;
  font-size: 20px;
  line-height: 1.2;
}

.notification-empty-state p {
  max-width: 390px;
  margin: 0;
  color: #06112a;
  font-size: 15px;
  line-height: 1.35;
}

.district-page {
  display: grid;
  gap: 22px;
}

.district-logo-panel {
  display: grid;
  justify-items: center;
  padding: 8px 0 2px;
}

.district-logo-panel img {
  width: min(100%, 420px);
  height: auto;
  pointer-events: none;
}

.district-page h1,
.district-page h2 {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 16px;
  line-height: 1.25;
}

.district-community-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.district-community-card {
  position: relative;
  display: grid;
  min-height: 104px;
  align-content: center;
  justify-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--district-color) 38%, #e4e7e3);
  border-radius: 8px;
  padding: 10px 8px;
  color: var(--district-color);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(29, 39, 37, 0.06);
  text-decoration: none;
}

.district-community-card.is-active::after {
  content: "";
  position: absolute;
  right: 35%;
  bottom: 7px;
  left: 35%;
  height: 3px;
  border-radius: 99px;
  background: var(--district-color);
}

.district-community-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  pointer-events: none;
}

.district-community-card strong {
  color: #1d2730;
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
}

.district-event-list {
  display: grid;
  gap: 8px;
}

.district-event-card {
  --event-soft: color-mix(in srgb, var(--district-color) 9%, #fff);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 54px minmax(70px, auto);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  border: 1px solid #e7e9e7;
  border-left: 4px solid var(--district-color);
  border-radius: 10px;
  padding: 10px 12px 10px 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(29, 39, 37, 0.06);
}

.district-event-date {
  display: grid;
  place-items: center;
  align-self: stretch;
  border-right: 1px solid #ecefed;
  color: #1e2630;
  text-transform: uppercase;
}

.district-event-date span,
.district-event-date small {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.district-event-date strong {
  font-size: 28px;
  line-height: 0.96;
}

.district-event-copy strong {
  display: block;
  color: #182128;
  font-size: 14px;
  line-height: 1.2;
}

.district-event-copy span,
.district-event-copy time {
  display: block;
  margin-top: 4px;
  color: #26313a;
  font-size: 12px;
}

.district-event-icon {
  display: grid;
  justify-items: center;
  color: var(--district-color);
  font-size: 30px;
  line-height: 1;
}

.district-event-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  pointer-events: none;
}

.district-event-place {
  justify-self: end;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--district-color);
  background: var(--event-soft);
  font-size: 11px;
  font-weight: 700;
}

.district-sermon-table-wrap {
  overflow-x: auto;
  border: 1px solid #e7e9e7;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(29, 39, 37, 0.06);
}

.district-sermon-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}

.district-sermon-table th,
.district-sermon-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0ee;
  text-align: left;
  vertical-align: top;
}

.district-sermon-table th {
  color: var(--teal);
  background: rgba(67, 127, 139, 0.08);
  font-weight: 800;
}

.district-sermon-table td:first-child {
  color: #1d2730;
  font-weight: 800;
  white-space: nowrap;
}

.district-sermon-table tr.is-alt-month .district-sermon-date-cell {
  background: rgba(67, 127, 139, 0.08);
}

.district-sermon-table tr.is-main-month .district-sermon-date-cell {
  background: rgba(255, 255, 255, 0.92);
}

.district-sermon-table tr.is-past-sermon td {
  color: rgba(29, 39, 48, 0.42);
}

.district-sermon-table tr.is-next-sermon td {
  border-top: 2px solid #d94b55;
  border-bottom: 2px solid #d94b55;
}

.district-sermon-table tr.is-next-sermon td:first-child {
  border-left: 2px solid #d94b55;
}

.district-sermon-table tr.is-next-sermon td:last-child {
  border-right: 2px solid #d94b55;
}

.district-sermon-table tr:last-child td {
  border-bottom: 0;
}

.district-detail-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--district-color) 28%, #e4e7e3);
  border-radius: 12px;
  padding: 34px 18px;
  background: color-mix(in srgb, var(--district-color) 7%, #fff);
  text-align: center;
}

.district-detail-hero img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.district-detail-hero h1 {
  margin: 0;
  color: var(--district-color);
  font-size: 28px;
}

.district-detail-tabs {
  display: grid;
  gap: 14px;
  margin-top: 5px;
}

.district-tab-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid #e4e8e5;
  border-radius: 14px;
  padding: 4px;
  background: #f4f6f2;
}

.district-tab {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  color: #48505a;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.district-tab:hover {
  color: var(--district-color);
  background: color-mix(in srgb, var(--district-color) 7%, white);
}

.district-tab.is-active {
  color: #fff;
  background: var(--district-color);
}

.district-tab:focus-visible {
  outline: 2px solid var(--district-color);
  outline-offset: 2px;
}

.district-detail-tabs [role="tabpanel"][hidden] {
  display: none;
}

.district-inline-loading {
  min-height: 110px;
}

.district-contact-list {
  display: grid;
  gap: 10px;
}

.district-contact-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(25, 42, 50, 0.1);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(25, 42, 50, 0.07);
}

.district-contact-card h3 {
  margin: 0;
  color: var(--district-color, var(--accent));
  font-size: 1.05rem;
  line-height: 1.2;
}

.district-contact-card .contact-links p {
  margin: 0;
  color: #182128;
  font-weight: 700;
  line-height: 1.35;
}

.district-contact-info-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: min(100%, fit-content);
  min-width: 0;
}

.district-contact-info-line em {
  min-width: 0;
  font-style: normal;
  overflow-wrap: anywhere;
}

.district-contact-location-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.district-contact-item,
.district-sermon-live-card {
  border: 1px solid color-mix(in srgb, var(--district-color, var(--accent)) 20%, #e4e8e5);
  border-radius: 14px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--district-color, var(--accent)) 6%, white);
  color: #1d2730;
  line-height: 1.45;
  box-shadow: 0 8px 22px rgba(29, 39, 37, 0.05);
}

.district-sermon-live-table {
  overflow-x: auto;
  border-radius: 14px;
}

.district-sermon-live-cards {
  display: none;
  gap: 10px;
}

.district-sermon-live-card {
  display: grid;
  gap: 10px;
}

.district-sermon-live-card div {
  display: grid;
  grid-template-columns: minmax(100px, 0.4fr) minmax(0, 1fr);
  gap: 12px;
}

.district-sermon-live-card strong {
  color: var(--accent);
}

@media (max-width: 520px) {
  .district-tab-list {
    gap: 3px;
    padding: 3px;
  }

  .district-tab {
    min-height: 42px;
    padding: 8px 4px;
    font-size: 12px;
  }

  .district-sermon-live-table {
    display: none;
  }

  .district-sermon-live-cards {
    display: grid;
  }

  .district-community-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .district-community-card {
    min-height: 98px;
    padding: 9px 5px;
  }

  .district-community-card img {
    width: 43px;
    height: 43px;
  }

  .district-community-card strong {
    font-size: 11px;
  }

  .district-logo-panel img {
    width: min(67%, 280px);
  }

  .district-event-card {
    grid-template-columns: 52px minmax(0, 1fr) 42px minmax(64px, auto);
    gap: 8px;
    padding-right: 10px;
  }

  .district-event-date strong {
    font-size: 25px;
  }

  .district-event-place {
    padding: 7px 10px;
    font-size: 10px;
  }
}

@media (max-width: 859px) {
  .bottom-nav {
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    background: #437f8b;
    box-shadow: 0 14px 34px rgba(29, 68, 75, 0.3);
  }

  .bottom-nav a,
  .bottom-nav svg {
    color: #fff;
    stroke: #fff;
  }

  .bottom-nav a.active,
  .bottom-nav .active {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
  }

  .bottom-nav .active svg,
  .bottom-nav .active svg rect {
    color: #fff;
    fill: none;
    stroke: #fff;
  }
}

/* Final shared header, dashboard and duty-plan refinements. */
.mobile-header-logout {
  display: none;
}

@media (min-width: 860px) {
  .desktop-logout,
  .desktop-logout:hover,
  .desktop-logout:focus-visible {
    color: #c62828;
  }

  .desktop-logout:hover,
  .desktop-logout:focus-visible {
    background: #fff0f0;
  }

  .dashboard-grid > .quick-section {
    grid-column: 1 / -1;
    order: 2;
  }

  .dashboard-grid > .info-panel {
    grid-column: 1 / -1;
    order: 3;
  }

  .dashboard-grid > .sabbath-card,
  .dashboard-grid > .birthdays-card {
    grid-column: span 6;
    order: 4;
  }
}

@media (max-width: 859px) {
  .district-logo-panel img {
    width: min(54%, 224px);
  }

  .more-page .mobile-header-logout {
    position: absolute;
    top: 50%;
    right: 16px;
    z-index: 3;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(198, 40, 40, 0.18);
    border-radius: 50%;
    color: #c62828;
    background: #fff4f4;
  }

  .more-page .mobile-header-logout svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .more-page .header-notification {
    display: none;
  }
}

/* Final notification, support and district refinements. */
.support-form {
  gap: 9px;
}

.support-form .setting-status:empty {
  display: none;
}

.notification-reply-form {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.notification-reply-form[hidden] {
  display: none;
}

.notification-reply-form label {
  display: grid;
  gap: 6px;
}

.notification-reply-form input,
.notification-reply-form textarea {
  width: 100%;
  border: 1px solid #ccd5d6;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.notification-reply-form .setting-status:empty {
  display: none;
}

.notification-reply-form .admin-save-button {
  margin-top: 4px;
}

.district-sermon-table th.is-ueberlingen {
  color: #c95757;
  background: rgba(201, 87, 87, 0.11);
}

.district-sermon-table th.is-singen {
  color: #5f9565;
  background: rgba(95, 149, 101, 0.12);
}

.district-sermon-table th.is-pfullendorf {
  color: #5d85b1;
  background: rgba(93, 133, 177, 0.12);
}

.district-sermon-table th.is-konstanz {
  color: #b9a23a;
  background: rgba(185, 162, 58, 0.13);
}

.district-sermon-mobile {
  display: none;
}

@media (min-width: 860px) {
  .duty-list {
    column-count: 2;
    column-gap: 0;
  }

  .duty-row {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
  }

  .duty-row:nth-child(9) {
    border-bottom: 0;
  }

  .duty-row:nth-child(n + 10) {
    border-left: 1px solid #e7ebe9;
  }
}

@media (max-width: 859px) {
  .district-logo-panel img {
    width: min(54%, 224px);
  }

  .district-sermon-table-wrap {
    display: none;
  }

  .district-sermon-live-table {
    display: none;
  }

  .district-sermon-mobile {
    display: grid;
    gap: 12px;
  }

  .district-sermon-date-navigation {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 5px;
    overflow: hidden;
  }

  .district-sermon-date-strip {
    gap: 7px;
  }

  .district-sermon-card {
    display: grid;
    gap: 10px;
    border: 1px solid #e2e7e5;
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(29, 39, 37, 0.06);
  }

  .district-sermon-card[hidden] {
    display: none;
  }

  .district-sermon-card div {
    display: grid;
    grid-template-columns: 34px 104px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .district-sermon-card img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    pointer-events: none;
  }

  .district-sermon-card strong {
    color: var(--teal);
    font-size: 13px;
  }

  .district-sermon-card span {
    min-width: 0;
    color: #1d2730;
    font-size: 13px;
    font-weight: 750;
    overflow-wrap: anywhere;
  }
}

/* Final utility-page refinements. Keep these after earlier responsive passes. */
@media (min-width: 860px) {
  .app-header .header-notification,
  .desktop-nav + .header-notification,
  .more-page .header-notification {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid #e6eae3;
    border-radius: 50%;
    color: var(--teal);
    background: #f6f8f2;
  }

  .app-header .header-notification svg,
  .desktop-nav + .header-notification svg,
  .more-page .header-notification svg {
    width: 23px;
    height: 23px;
  }

  .app-header .header-notification:hover,
  .desktop-nav + .header-notification:hover,
  .more-page .header-notification:hover {
    color: #fff;
    background: var(--teal);
  }

  .dashboard > .more-content,
  .dashboard > .utility-content,
  .dashboard > .settings-content,
  .dashboard > .sheet-content[data-sheet-mode="donations"] {
    width: 100%;
    max-width: none;
  }

  .more-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .utility-content[aria-label="Termine"] > .schedule-options,
  .settings-list,
  .sheet-list-donations {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: none;
  }

  .sheet-list-donations > .app-loading-screen {
    width: 100%;
    min-height: 50vh;
  }
}

/* Final dashboard service-icon stabilization. */
.service-card {
  position: relative;
}

.service-card > div {
  min-width: 0;
  padding-right: clamp(108px, 22vw, 178px);
}

.service-card > .church-art {
  position: absolute;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 26px);
  width: clamp(104px, 20vw, 168px);
  height: auto;
  margin: 0;
}

@media (max-width: 470px) {
  .service-card > div {
    padding-right: 0;
  }

  .service-card > .church-art {
    display: none;
  }
}

@media (min-width: 860px) {
  .community-card > .sheet-fields {
    display: block;
    column-count: 2;
    column-gap: 28px;
  }

  .community-card > .sheet-fields .sheet-field,
  .community-card > .sheet-fields .community-subheading,
  .community-card > .sheet-fields .community-offices-block {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Final polish for update 20260710-2. */
.admin-request-section[hidden],
.dashboard-notification-section[hidden],
[data-member-management][hidden],
[data-notification-manager][hidden] {
  display: none !important;
}

.community-search-control {
  position: relative;
  display: block;
}

.community-search-control input {
  padding-right: 46px;
}

.community-search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(67, 127, 139, 0.1);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}

.community-search-clear[hidden] {
  display: none;
}

.community-card > .sheet-fields .sheet-field {
  align-items: center;
}

.community-card > .sheet-fields .sheet-field span {
  line-height: 1.25;
}

.service-card > div {
  padding-right: clamp(82px, 16vw, 132px);
}

.service-card > .church-art {
  display: block;
  width: clamp(76px, 11vw, 124px);
}

@media (max-width: 470px) {
  .service-card > div {
    padding-right: 82px;
  }

  .service-card > .church-art {
    display: block;
    right: 12px;
    bottom: 14px;
    width: 72px;
  }
}

.dashboard,
.sermons-page {
  padding-bottom: max(104px, calc(env(safe-area-inset-bottom) + 92px));
}

@media (min-width: 860px) {
  .dashboard,
  .sermons-page {
    padding-bottom: 96px;
  }
}

.sheet-list-donations .sheet-details-card summary,
.sheet-list-konten-spenden .sheet-details-card summary {
  align-items: center;
  min-height: 62px;
}

.sheet-list-donations .sheet-details-card summary span,
.sheet-list-konten-spenden .sheet-details-card summary span {
  display: flex;
  align-items: center;
  min-height: 1.4em;
}

/* Final refinements for update 20260710-2. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
}

.signed-in-user {
  display: block;
  width: auto;
  margin: 0 0 18px auto;
  border-radius: 0;
  padding: 0;
  color: #c62828;
  background: transparent;
  text-align: right;
}

.daily-verse-card .daily-verse,
.daily-verse-card .dailyVerses {
  font-size: clamp(16px, 4.1vw, 21px);
  line-height: 1.42;
}

.service-card > div {
  padding-right: clamp(102px, 18vw, 156px);
}

.service-card > .church-art {
  width: clamp(96px, 15vw, 152px);
}

@media (max-width: 470px) {
  .service-card > div {
    padding-right: 96px;
  }

  .service-card > .church-art {
    width: 88px;
  }
}

.sheet-list-donations .sheet-details-card summary,
.sheet-list-konten-spenden .sheet-details-card summary {
  min-height: 58px;
  padding-block: 14px;
}

.sheet-list-donations .sheet-details-card summary span,
.sheet-list-konten-spenden .sheet-details-card summary span {
  align-self: stretch;
  line-height: 1.2;
}

.sheet-list-donations .sheet-details-card summary strong,
.sheet-list-konten-spenden .sheet-details-card summary strong {
  display: flex;
  align-items: center;
}

/* Final refinements for update 20260710-2. */
.dashboard-carousel-section {
  min-width: 0;
}

.carousel-mobile-title {
  display: none;
}

.dashboard-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  column-gap: 10px;
  row-gap: 5px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-carousel[hidden] {
  display: none;
}

.carousel-stage {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.carousel-image-button {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.carousel-stage img,
.carousel-image-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.carousel-empty {
  max-width: 24ch;
  margin: 0;
  color: #667173;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

.carousel-arrow {
  position: static;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  transform: none;
  border: 1px solid rgba(67, 127, 139, 0.22);
  border-radius: 50%;
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-prev {
  grid-column: 1;
  grid-row: 2;
}

.carousel-next {
  grid-column: 3;
  grid-row: 2;
}

.carousel-dots {
  display: flex;
  grid-column: 2;
  grid-row: 2;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.24;
}

.carousel-dots button.is-active {
  opacity: 1;
}

.carousel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  background: rgba(12, 19, 21, 0.92);
}

.carousel-lightbox[hidden] {
  display: none;
}

.carousel-lightbox-close {
  justify-self: end;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(67, 127, 139, 0.95);
  font-size: 28px;
  line-height: 1;
}

.carousel-lightbox-stage {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  place-items: center;
}

.carousel-lightbox-stage img {
  max-width: none;
  width: min(100%, 1400px);
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  touch-action: pinch-zoom pan-x pan-y;
}

.carousel-lightbox-stage img.is-zoomed {
  width: auto;
  min-width: min(160vw, 1800px);
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.form-modal {
  align-items: center;
  justify-items: center;
  overflow: auto;
}

.form-modal-dialog {
  margin: auto;
  max-height: min(760px, calc(100dvh - 40px));
}

.modal-close-button {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

.support-note {
  margin-bottom: 16px;
}

.support-form label:first-of-type {
  margin-top: 8px;
}

.sheet-list-donations .sheet-details-card:not([open]) summary,
.sheet-list-konten-spenden .sheet-details-card:not([open]) summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  padding-top: 0;
  padding-bottom: 0;
}

.sheet-list-donations .sheet-details-card:not([open]) summary span,
.sheet-list-konten-spenden .sheet-details-card:not([open]) summary span {
  display: flex;
  align-items: center;
  min-height: 58px;
  margin: 0;
}

.calendar-event-card .sheet-field b strong,
.dashboard-event-card .sheet-field b strong {
  font-weight: 850;
}

@media (min-width: 860px) {
  .dashboard-grid > .quick-section {
    grid-column: 1 / -1;
    order: 4;
  }

  .dashboard-grid > .dashboard-carousel-section {
    grid-column: span 6;
    order: 2;
  }

  .dashboard-grid > .info-panel {
    grid-column: span 6;
    order: 2;
  }

  .dashboard-grid > .sabbath-card,
  .dashboard-grid > .birthdays-card {
    order: 5;
  }

  .carousel-arrow {
    display: grid;
  }
}

@media (max-width: 859px) {
  .dashboard-grid > .quick-section {
    order: 2;
  }

  .dashboard-grid > .dashboard-carousel-section {
    order: 3;
  }

  .dashboard-grid > .info-panel {
    order: 4;
  }

  .dashboard-grid > .sabbath-card,
  .dashboard-grid > .birthdays-card {
    order: 5;
  }
}

/* Final corrections for update 20260710-2. */
.more-content .signed-in-user,
.signed-in-user {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  color: #c62828 !important;
  background: transparent !important;
  text-align: right !important;
}

.daily-verse-card .daily-verse,
.daily-verse-card .dailyVerses,
.daily-verse-card .daily-verse p,
.daily-verse-card .daily-verse span,
.daily-verse-card .daily-verse div {
  font-size: clamp(15px, 3.75vw, 19px) !important;
  line-height: 1.38;
}

.daily-verse-reference {
  font-size: 0.62em !important;
}

.sheet-list-donations .sheet-details-card:not([open]) summary,
.sheet-list-konten-spenden .sheet-details-card:not([open]) summary {
  display: flex !important;
  align-items: center !important;
  min-height: 58px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.sheet-list-donations .sheet-details-card:not([open]) summary > span,
.sheet-list-konten-spenden .sheet-details-card:not([open]) summary > span {
  display: flex !important;
  align-items: center !important;
  align-self: stretch !important;
  min-height: 58px !important;
  margin: 0 !important;
}

.sheet-list-donations .sheet-details-card:not([open]) summary strong,
.sheet-list-konten-spenden .sheet-details-card:not([open]) summary strong {
  margin: 0 !important;
  line-height: 1.2;
}

.support-note {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.form-modal-dialog {
  isolation: isolate;
}

.modal-close-button {
  position: sticky;
  top: 0;
  z-index: 4;
  float: right;
  margin: -14px -14px 0 0;
  display: grid !important;
  place-items: center !important;
  line-height: 0 !important;
}

.modal-close-button::first-letter {
  line-height: 1;
}

.community-search input {
  font-size: 16px;
}

.community-search input[type="search"]::-webkit-search-cancel-button,
.community-search input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.community-search-clear {
  display: none;
  font-size: 0;
}

.community-search-clear::before {
  content: "×";
  display: block;
  color: currentColor;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
}

@media (max-width: 859px) {
  .community-search-clear:not([hidden]) {
    display: grid;
  }
}

/* Final corrections for update 20260710-2. */
.more-content > .signed-in-user {
  grid-column: 1 / -1 !important;
  justify-self: stretch !important;
  width: 100% !important;
  margin: 0 0 2px !important;
  color: #c62828 !important;
  text-align: right !important;
}

.hero-copy.daily-verse-card,
.hero-copy.daily-verse-card .daily-verse,
.hero-copy.daily-verse-card .dailyVerses,
.hero-copy.daily-verse-card p,
.hero-copy.daily-verse-card span,
.hero-copy.daily-verse-card div {
  font-size: clamp(14px, 3.45vw, 18px) !important;
  line-height: 1.34 !important;
}

.hero-copy.daily-verse-card .daily-verse-reference {
  font-size: 0.75em !important;
}

.form-modal-dialog {
  padding-top: 28px;
  overflow: auto;
}

.modal-close-button {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  float: none !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 0 2px !important;
  font-size: 25px !important;
  line-height: 1 !important;
}

.community-search-clear {
  display: none !important;
}

@media (max-width: 859px) {
  .community-search-clear:not([hidden]) {
    display: grid !important;
  }
}

/* Final corrections for update 20260710-2. */
.hero-copy.daily-verse-card .daily-verse-reference,
.daily-verse-card .daily-verse-reference {
  font-size: 0.75em !important;
}

@media (max-width: 859px) {
  .dashboard-grid > .dashboard-carousel-section {
    width: 100%;
    margin-inline: 0;
  }

  .dashboard-carousel {
    border-right: 1px solid #e3e8e6;
    border-left: 1px solid #e3e8e6;
    border-radius: 18px;
  }

  .carousel-stage {
    border-radius: 10px;
  }
}

/* Final dashboard layout corrections for update 20260710-2. */
#dashboard-message-box {
  grid-column: 1 / -1;
  order: -1;
  margin-bottom: -14px;
}

@media (min-width: 860px) {
  .dashboard-grid > .dashboard-carousel-section,
  .dashboard-grid > .info-panel {
    grid-column: span 6 !important;
    order: 2 !important;
  }

  .dashboard-grid > .quick-section {
    grid-column: 1 / -1 !important;
    order: 3 !important;
  }
}

@media (max-width: 859px) {
  .dashboard-grid > .dashboard-carousel-section {
    grid-column: 1 / -1;
    width: 100% !important;
    margin-inline: 0 !important;
  }

  .carousel-mobile-title {
    display: block;
  }

  .dashboard-grid > .info-panel > .section-title {
    display: none;
  }
}

/* Final carousel and dashboard spacing corrections for update 20260710-2. */
.dashboard-grid {
  row-gap: 20px !important;
}

#dashboard-message-box {
  margin-bottom: 0 !important;
}

.dashboard-carousel {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.carousel-stage {
  border-radius: 0 !important;
  background: transparent !important;
}

.carousel-image-button {
  -webkit-tap-highlight-color: transparent;
}

.carousel-arrow {
  border-color: transparent !important;
  background: transparent !important;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  color: #fff;
  background: var(--accent) !important;
}

.carousel-lightbox-close {
  display: grid;
  place-items: center;
  padding: 0 0 2px;
}

.carousel-stage,
.carousel-image-button,
.carousel-stage img,
.carousel-image-button img {
  border-radius: 14px !important;
}

@media (max-width: 470px) {
  .carousel-stage,
  .carousel-image-button,
  .carousel-stage img,
  .carousel-image-button img {
    border-radius: 12px !important;
  }
}

.carousel-dots,
.carousel-dots button,
.carousel-arrow,
.carousel-prev,
.carousel-next {
  box-shadow: none !important;
}

.carousel-arrow {
  border: 0 !important;
}

.dashboard-more-events-link {
  display: inline-flex;
  width: fit-content;
  margin: 4px auto 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.dashboard-more-events-link:hover,
.dashboard-more-events-link:focus-visible {
  text-decoration: underline;
}

@media (min-width: 860px) {
  .more-content > .signed-in-user,
  .signed-in-user {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: right !important;
  }
}

/* Dashboard layout corrections for carousel/settings update. */
@media (min-width: 860px) {
  .dashboard-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    column-gap: 20px !important;
    row-gap: 20px !important;
  }

  .dashboard-grid > .service-card,
  .dashboard-grid > .daily-verse-card {
    grid-column: span 6 !important;
    order: 1 !important;
  }

  .dashboard-grid > .dashboard-carousel-section {
    grid-column: span 6 !important;
    order: 2 !important;
  }

  .dashboard-grid > .info-panel {
    grid-column: span 6 !important;
    order: 2 !important;
  }

  .dashboard-grid > .info-panel.is-full-width,
  .dashboard-carousel-disabled .dashboard-grid > .info-panel {
    grid-column: 1 / -1 !important;
  }

  .dashboard-grid > .sabbath-card,
  .dashboard-grid > .quick-section,
  .dashboard-grid > .birthdays-card {
    grid-column: span 4 !important;
    order: 3 !important;
  }

  .quick-section .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 859px) {
  .dashboard-grid > .service-card {
    order: 1 !important;
  }

  .dashboard-grid > .dashboard-carousel-section {
    order: 2 !important;
  }

  .dashboard-grid > .info-panel {
    order: 3 !important;
  }

  .dashboard-grid > .quick-section {
    order: 4 !important;
  }

  .dashboard-grid > .daily-verse-card {
    order: 5 !important;
  }

  .dashboard-grid > .sabbath-card {
    order: 6 !important;
  }

  .dashboard-grid > .birthdays-card {
    order: 7 !important;
  }
}

.dashboard-carousel-section[hidden] {
  display: none !important;
}

.carousel-lightbox-stage {
  display: flex !important;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

.carousel-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto !important;
  height: auto !important;
  margin: auto;
  object-fit: contain;
  touch-action: pinch-zoom pan-x pan-y;
}

.carousel-lightbox-stage img.is-zoomed {
  max-width: none;
  max-height: none;
  min-width: 0 !important;
  width: auto !important;
  margin: 0;
}

.carousel-lightbox-loader {
  color: #fff;
  font-size: 15px;
  font-weight: 850;
}

/* Final corrections for update 20260710-2. */
button,
a,
[role="button"],
[role="link"],
summary,
.quick-button,
.schedule-options button,
.calendar-event-card summary,
.sheet-details-card summary,
.playlist-thumb,
.playlist-title-button,
.playlist-open-icon {
  cursor: pointer;
}

.settings-list {
  gap: 14px !important;
}

.settings-list .setting-status {
  margin: -8px 0 0 !important;
}

.technical-settings-panel {
  margin: 0 !important;
}

@media (min-width: 860px) {
  .dashboard-grid > .sabbath-card {
    grid-column: 1 / span 4 !important;
    order: 3 !important;
  }

  .dashboard-grid > .quick-section {
    grid-column: 5 / span 4 !important;
    order: 4 !important;
  }

  .dashboard-grid > .birthdays-card {
    grid-column: 9 / span 4 !important;
    order: 5 !important;
  }
}

.sheet-list-contacts .accordion-list {
  display: grid;
  gap: 12px;
}

@media (min-width: 860px) {
  .sheet-list-contacts .accordion-list {
    display: block;
    columns: 2;
    column-gap: 16px;
  }

  .sheet-list-contacts .accordion-list > * {
    break-inside: avoid;
    margin-bottom: 12px;
  }
}

.sheet-list-donations .sheet-details-card:not([open]) summary,
.sheet-list-konten-spenden .sheet-details-card:not([open]) summary {
  align-items: center !important;
  min-height: 50px !important;
  padding: 0 18px !important;
}

.sheet-list-donations .sheet-details-card:not([open]) summary > span,
.sheet-list-konten-spenden .sheet-details-card:not([open]) summary > span {
  align-self: center !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.sheet-list-donations .sheet-card-title,
.sheet-list-konten-spenden .sheet-card-title {
  color: var(--accent) !important;
}

.calendar-ics-button,
.calendar-bulk-ics-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 10px 0 0 76px;
  border: 0;
  padding: 8px 10px;
  color: var(--accent);
  background: rgba(67, 127, 139, 0.09);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.calendar-bulk-ics-button {
  justify-self: center;
  margin: 10px auto 14px;
}

.calendar-ics-button svg,
.calendar-bulk-ics-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.duty-calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.duty-calendar-actions[hidden] {
  display: none !important;
}

.duty-calendar-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  color: #fff;
  background: var(--accent);
  font-weight: 850;
}

.duty-calendar-actions svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.personal-duty-role-list,
#personal-duty-role-list ul {
  margin: 0;
  padding-left: 20px;
}

#personal-duty-role-list {
  color: inherit;
}

#personal-duty-role-list .personal-duty-role {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 0;
  padding: 1px 0;
  color: var(--duty-color);
  background: transparent !important;
}

#personal-duty-role-list .duty-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

#personal-duty-role-list .personal-duty-role strong {
  color: var(--duty-color);
  font-size: 13px;
}

.duty-important-notes {
  position: relative;
  padding-left: 54px !important;
}

.duty-info-icon {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  width: 24px;
  height: 24px;
  color: #c62828;
}

.duty-info-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-modal {
  background: rgba(13, 25, 30, 0.42) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.form-modal-dialog {
  border-radius: 22px !important;
}

.support-note {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.support-form label:first-of-type {
  margin-top: 14px;
}

.sermons-action,
#next-live-link {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.playlist-row {
  padding: 14px !important;
}

.playlist-title-button,
.playlist-open-icon {
  border: 0;
  padding: 0;
  color: #527245;
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-align: left;
}

.playlist-title-button {
  font-size: 17px;
  line-height: 1.2;
}

.playlist-open-icon {
  align-self: flex-end;
  margin-top: auto;
  color: var(--accent);
}

.playlist-open-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.dashboard-notification-section h2,
.admin-request-section h2,
.notification-page section > h2 {
  color: var(--accent) !important;
}

.carousel-lightbox {
  background: rgba(10, 22, 27, 0.58) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.carousel-lightbox-stage img {
  transform-origin: top left;
  transition: transform 160ms ease;
  cursor: zoom-in;
}

.carousel-lightbox-stage img:not([hidden]) {
  display: block;
}

.stats-page {
  display: grid;
  gap: 18px;
  padding-bottom: 34px;
}

.stats-total-card,
.stats-chart-card,
.stats-controls {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.stats-total-card span {
  display: block;
  color: var(--accent);
  font-weight: 850;
}

.stats-total-card strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.stats-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stats-controls label {
  display: grid;
  gap: 6px;
  color: #4c5661;
  font-weight: 750;
}

.stats-controls select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
}

.stats-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  color: #4c5661;
  font-weight: 800;
}

.stats-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stats-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.stats-legend .mobile {
  background: var(--accent);
}

.stats-legend .desktop {
  background: #c94b4b;
}

.stats-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(42px, 1fr);
  gap: 12px;
  min-height: 240px;
  align-items: end;
  overflow-x: auto;
}

.stats-bucket {
  display: grid;
  min-height: 240px;
  grid-template-rows: 1fr auto;
  gap: 8px;
  text-align: center;
  font-size: 12px;
}

.stats-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  border-bottom: 1px solid var(--line);
}

.stats-bar {
  position: relative;
  width: 14px;
  min-height: 2px;
  border-radius: 6px 6px 0 0;
}

.stats-bar-mobile {
  background: var(--accent);
}

.stats-bar-desktop {
  background: #c94b4b;
}

.stats-bar em {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  color: #1c2730;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

/* Stability/layout fixes after server preview update. */
@media (min-width: 860px) {
  .dashboard-grid > .sabbath-card {
    grid-column: 1 / span 4 !important;
    order: 3 !important;
  }

  .dashboard-grid > .quick-section {
    grid-column: 5 / span 4 !important;
    order: 4 !important;
  }

  .dashboard-grid > .birthdays-card {
    grid-column: 9 / span 4 !important;
    order: 5 !important;
  }

  .sheet-list-contacts .accordion-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    columns: auto !important;
    column-gap: 0 !important;
  }

  .sheet-list-contacts .accordion-list > * {
    break-inside: auto !important;
    margin-bottom: 0 !important;
  }
}

.calendar-event-card {
  position: relative;
}

.calendar-ics-button,
.dashboard-ics-button {
  width: 54px !important;
  height: 54px !important;
  margin: 12px 0 0 22px !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: var(--accent) !important;
  background: transparent !important;
}

.calendar-ics-button span,
.dashboard-ics-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.calendar-ics-button svg,
.dashboard-ics-button svg {
  display: none !important;
}

.calendar-ics-button::before,
.dashboard-ics-button::before {
  content: "";
  display: block;
  width: 54px;
  height: 54px;
  background-color: currentColor;
  -webkit-mask: url("calendar-import-icon.png") center / contain no-repeat;
  mask: url("calendar-import-icon.png") center / contain no-repeat;
}

.event-date .calendar-ics-button {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 38px !important;
  height: 38px !important;
  max-width: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateX(-50%);
  justify-self: center;
  align-self: end;
  color: var(--accent) !important;
  background: transparent !important;
}

.calendar-event-card:not([open]) .event-date .calendar-ics-button {
  display: none;
}

.event-date .calendar-ics-button::before {
  width: 38px !important;
  height: 38px !important;
}

.calendar-bulk-ics-button::before,
.duty-calendar-actions button::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: url("calendar-import-icon.png") center / contain no-repeat;
  mask: url("calendar-import-icon.png") center / contain no-repeat;
}

.calendar-bulk-ics-button svg,
.duty-calendar-actions svg {
  display: none !important;
}

.stats-chart-card {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.stats-chart {
  width: max-content;
  min-width: 100%;
  padding-top: 24px;
  overflow: visible !important;
}

.stats-bars {
  padding-top: 20px;
}

.stats-bucket {
  min-width: 44px;
}

@media (max-width: 640px) {
  .stats-chart-card {
    padding-inline: 14px;
  }

  .stats-chart {
    grid-auto-columns: 44px;
  }
}

.more-options button[data-page="statistik.html"] {
  order: 99;
}

@media (max-width: 640px) {
  .stats-controls {
    grid-template-columns: 1fr;
  }
}

.more-options button[data-page="statistik.html"][hidden],
[data-technical-management][hidden] {
  display: none !important;
}

.dashboard-notification-edit-form,
.notification-reply-form {
  display: grid;
  gap: 12px;
}

.dashboard-notification-edit-form label,
.notification-reply-form label {
  display: grid;
  gap: 6px;
}

.dashboard-notification-edit-form input,
.dashboard-notification-edit-form textarea,
.notification-reply-form input,
.notification-reply-form textarea {
  width: 100%;
  box-sizing: border-box;
}

.dashboard-message-option {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}

.dashboard-message-option input {
  width: auto;
}

/* Final interaction/layout fixes for update 20260710-2. */
[data-calendar-month-title] {
  cursor: pointer;
}

.dashboard-message-box {
  display: grid;
  gap: 10px;
}

.dashboard-message-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

#personal-duty-role-list {
  display: block !important;
  padding-left: 0 !important;
}

#personal-duty-role-list .personal-duty-role {
  display: flex !important;
  gap: 9px !important;
  padding: 2px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#personal-duty-role-list .duty-icon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.sheet-list-donations .sheet-details-card:not([open]) summary,
.sheet-list-konten-spenden .sheet-details-card:not([open]) summary {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  min-height: 54px !important;
  padding: 0 18px !important;
}

.sheet-list-donations .sheet-details-card:not([open]) summary > span,
.sheet-list-konten-spenden .sheet-details-card:not([open]) summary > span {
  display: flex !important;
  align-items: center !important;
  align-self: center !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
}

.sheet-list-donations .sheet-details-card:not([open]) summary strong,
.sheet-list-konten-spenden .sheet-details-card:not([open]) summary strong {
  display: block !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}

.dashboard-notification-edit-form input,
.dashboard-notification-edit-form textarea {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.35;
}

.dashboard-notification-edit-form textarea {
  min-height: 118px;
}

.stats-legend {
  position: sticky;
  left: 0;
  z-index: 2;
  width: fit-content;
  padding: 4px 10px 4px 0;
  background: rgba(255, 255, 255, 0.96);
}

.carousel-lightbox-stage img.is-zoomed {
  max-width: none !important;
  max-height: none !important;
  width: auto;
  height: auto;
  margin: 0 !important;
}

.account-no-schedule-access [data-page="dienstplan.html"] {
  display: none !important;
}

.dashboard-message-box {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

.dashboard-message-item {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
}

.sheet-list-donations .sheet-details-card:not([open]) > summary,
.sheet-list-konten-spenden .sheet-details-card:not([open]) > summary {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 22px !important;
  align-items: center !important;
  min-height: 54px !important;
  padding: 0 18px !important;
}

.sheet-list-donations .sheet-details-card:not([open]) > summary > span,
.sheet-list-konten-spenden .sheet-details-card:not([open]) > summary > span {
  display: grid !important;
  align-content: center !important;
  align-self: stretch !important;
  min-height: 54px !important;
  height: 54px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sheet-list-donations .sheet-details-card:not([open]) .sheet-card-title,
.sheet-list-konten-spenden .sheet-details-card:not([open]) .sheet-card-title {
  display: block !important;
  margin: 0 !important;
  color: var(--accent) !important;
  line-height: 1.25 !important;
}

.event-time-unknown {
  font-style: italic;
}

.playlist-list-controls button,
#playlist-video-list [data-load-more-playlist] {
  color: var(--accent) !important;
}

.sheet-content[data-sheet-mode="donations"] .sheet-details-card:not([open]) {
  min-height: 0 !important;
}

.sheet-content[data-sheet-mode="donations"] .sheet-details-card:not([open]) > summary {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 22px !important;
  align-items: center !important;
  min-height: 56px !important;
  height: 56px !important;
  padding: 0 18px !important;
  gap: 14px !important;
}

.sheet-content[data-sheet-mode="donations"] .sheet-details-card:not([open]) > summary > span {
  display: flex !important;
  align-items: center !important;
  min-height: 0 !important;
  height: auto !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.sheet-content[data-sheet-mode="donations"] .sheet-details-card:not([open]) .sheet-card-title {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--accent) !important;
  line-height: 1.2 !important;
}

.sheet-content[data-sheet-mode="donations"] .sheet-details-card:not([open]) > summary > svg {
  align-self: center !important;
  margin: 0 !important;
}

.sheet-content[data-sheet-mode="donations"] .donation-details-card:not([open]) {
  display: block !important;
  padding: 0 !important;
}

.sheet-content[data-sheet-mode="donations"] .donation-details-card:not([open]) > .donation-card-summary {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 22px !important;
  align-items: center !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 18px !important;
  margin: 0 !important;
}

.sheet-content[data-sheet-mode="donations"] .donation-details-card:not([open]) .donation-card-title {
  align-self: center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--accent) !important;
  line-height: 1 !important;
}

.sheet-content[data-sheet-mode="donations"] .donation-details-card > .donation-card-summary {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 22px !important;
  align-items: center !important;
  min-height: 56px !important;
  padding: 0 18px !important;
  margin: 0 !important;
  gap: 14px !important;
}

.sheet-content[data-sheet-mode="donations"] .donation-details-card > .donation-card-summary .donation-card-title {
  color: var(--accent) !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

#pending-user-list > .admin-empty-state {
  display: grid;
  min-height: 58px;
  place-items: center;
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(25, 42, 50, 0.08);
  color: var(--muted);
}

#playlist-video-list .sermon-description-more,
#playlist-video-list .playlist-list-controls button,
#playlist-video-list [data-load-more-playlist] {
  color: var(--accent) !important;
}

.carousel-lightbox-stage {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  touch-action: none !important;
}

.carousel-lightbox-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
}

.carousel-lightbox-loader[hidden] {
  display: none !important;
}

.carousel-lightbox-stage img,
.carousel-lightbox-stage img.is-zoomed {
  max-width: min(92vw, 1400px) !important;
  max-height: 82vh !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  transform-origin: center center !important;
  transition: none !important;
  will-change: transform;
  user-select: none;
  touch-action: none !important;
}

.daily-verse-card .daily-verse,
.daily-verse-card .dailyVerses,
.daily-verse-card .daily-verse p,
.daily-verse-card .daily-verse span,
.daily-verse-card .daily-verse div {
  font-size: clamp(20px, 4.9vw, 25px) !important;
}

.hero-copy.daily-verse-card .daily-verse-reference,
.daily-verse-card .daily-verse-reference {
  font-size: 0.81em !important;
}

@media (max-width: 640px) {
  .dashboard-grid > .daily-verse-card {
    min-height: 80px;
  }
}

/* Corrections for 20260701 statistics, calendar day alignment and verse sizing. */
.stats-page {
  padding-bottom: var(--page-bottom-space, 96px) !important;
  margin-bottom: 0 !important;
}

.stats-chart-card {
  overflow-x: auto !important;
  overscroll-behavior-x: contain;
}

.stats-chart {
  overflow: visible !important;
}

.calendar-day-button {
  -webkit-appearance: none;
  appearance: none;
  grid-template-rows: 34px minmax(11px, auto);
  justify-items: center !important;
  align-items: center !important;
  padding: 0 !important;
  text-align: center !important;
}

.calendar-day-button > span,
.calendar-day-button > i {
  justify-self: center !important;
  align-self: center !important;
}

.calendar-day-button > i {
  display: flex !important;
  width: 100% !important;
  max-width: 44px;
  margin: 0 auto !important;
  justify-content: center !important;
  align-items: center !important;
}

.calendar-day-dot {
  flex: 0 0 auto;
}

.dashboard-grid > .hero-copy.daily-verse-card,
.dashboard-grid > .daily-verse-card {
  min-height: 80px !important;
}

.dashboard-grid > .hero-copy.daily-verse-card .daily-verse,
.dashboard-grid > .hero-copy.daily-verse-card .dailyVerses,
.dashboard-grid > .hero-copy.daily-verse-card .daily-verse p,
.dashboard-grid > .hero-copy.daily-verse-card .daily-verse span,
.dashboard-grid > .hero-copy.daily-verse-card .daily-verse div,
.dashboard-grid > .daily-verse-card .daily-verse,
.dashboard-grid > .daily-verse-card .dailyVerses,
.dashboard-grid > .daily-verse-card .daily-verse p,
.dashboard-grid > .daily-verse-card .daily-verse span,
.dashboard-grid > .daily-verse-card .daily-verse div {
  font-size: clamp(20px, 4.9vw, 25px) !important;
  line-height: 1.38 !important;
}

.dashboard-grid > .hero-copy.daily-verse-card .daily-verse-reference,
.dashboard-grid > .daily-verse-card .daily-verse-reference {
  font-size: 0.98em !important;
  line-height: 1.25 !important;
}

@media (min-width: 860px) {
  .dashboard-grid > .hero-copy.daily-verse-card .daily-verse,
  .dashboard-grid > .hero-copy.daily-verse-card .dailyVerses,
  .dashboard-grid > .hero-copy.daily-verse-card .daily-verse p,
  .dashboard-grid > .hero-copy.daily-verse-card .daily-verse span,
  .dashboard-grid > .hero-copy.daily-verse-card .daily-verse div,
  .dashboard-grid > .daily-verse-card .daily-verse,
  .dashboard-grid > .daily-verse-card .dailyVerses,
  .dashboard-grid > .daily-verse-card .daily-verse p,
  .dashboard-grid > .daily-verse-card .daily-verse span,
  .dashboard-grid > .daily-verse-card .daily-verse div {
    font-size: clamp(21px, 1.75vw, 27px) !important;
  }
}

/* Follow-up corrections for 20260702. */
.stats-page {
  padding-bottom: 0 !important;
}

@media (max-width: 859px) {
  .stats-page {
    padding-bottom: 0 !important;
  }
}

.stats-chart-card {
  min-height: 310px;
}

.stats-chart.is-loading {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-auto-columns: auto !important;
  width: 100% !important;
  min-width: 100% !important;
  place-items: center !important;
  align-items: center !important;
  justify-items: center !important;
  overflow: hidden !important;
}

.stats-chart .app-loading-screen {
  grid-column: 1 / -1;
  width: 100%;
  min-width: min(100%, 320px);
  min-height: 240px;
  display: grid !important;
  place-items: center !important;
  justify-content: center !important;
  align-content: center !important;
  text-align: center;
}

.dashboard-grid > .hero-copy.daily-verse-card .daily-verse,
.dashboard-grid > .hero-copy.daily-verse-card .dailyVerses,
.dashboard-grid > .hero-copy.daily-verse-card .daily-verse p,
.dashboard-grid > .hero-copy.daily-verse-card .daily-verse span,
.dashboard-grid > .hero-copy.daily-verse-card .daily-verse div,
.dashboard-grid > .daily-verse-card .daily-verse,
.dashboard-grid > .daily-verse-card .dailyVerses,
.dashboard-grid > .daily-verse-card .daily-verse p,
.dashboard-grid > .daily-verse-card .daily-verse span,
.dashboard-grid > .daily-verse-card .daily-verse div {
  font-size: clamp(16px, 3.92vw, 20px) !important;
}

@media (min-width: 860px) {
  .dashboard-grid > .hero-copy.daily-verse-card .daily-verse,
  .dashboard-grid > .hero-copy.daily-verse-card .dailyVerses,
  .dashboard-grid > .hero-copy.daily-verse-card .daily-verse p,
  .dashboard-grid > .hero-copy.daily-verse-card .daily-verse span,
  .dashboard-grid > .hero-copy.daily-verse-card .daily-verse div,
  .dashboard-grid > .daily-verse-card .daily-verse,
  .dashboard-grid > .daily-verse-card .dailyVerses,
  .dashboard-grid > .daily-verse-card .daily-verse p,
  .dashboard-grid > .daily-verse-card .daily-verse span,
  .dashboard-grid > .daily-verse-card .daily-verse div {
    font-size: clamp(17px, 1.4vw, 22px) !important;
  }
}

.link-rubric-group {
  display: grid;
  gap: 10px;
}

.link-rubric-group + .link-rubric-group {
  margin-top: 22px;
}

.link-rubric-group h2 {
  margin: 0;
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
}

/* Keep the statistics page from stacking multiple bottom spacers. */
body.utility-view:has([data-stats-page]) .app-shell {
  padding-bottom: 0 !important;
}

body.utility-view:has([data-stats-page]) .dashboard.utility-page {
  padding-bottom: 96px !important;
}

body.utility-view #utility-app-view .app-shell:has([data-stats-page]) {
  padding-bottom: 0 !important;
}

body.utility-view #utility-app-view .dashboard.utility-page:has([data-stats-page]),
.dashboard.utility-page:has([data-stats-page]) {
  padding-bottom: 96px !important;
}

@media (max-width: 859px) {
  body.utility-view:has([data-stats-page]) .dashboard.utility-page {
    padding-bottom: 180px !important;
  }

  body.utility-view #utility-app-view .dashboard.utility-page:has([data-stats-page]),
  .dashboard.utility-page:has([data-stats-page]) {
    padding-bottom: 180px !important;
  }
}



/* Final dashboard/calendar access refinements for update 20260710-2. */
@media (max-width: 859px) {
  .dashboard-grid {
    row-gap: 14px !important;
  }

  .dashboard-carousel-section,
  .dashboard-grid > .dashboard-carousel-section {
    margin-bottom: 0 !important;
  }
}

.dashboard-carousel {
  row-gap: 0 !important;
}

.calendar-view-tabs {
  margin-top: 14px !important;
  margin-bottom: 14px !important;
}

.sheet-list-calendar {
  gap: 0 !important;
}

.calendar-tools-card[hidden] {
  display: none !important;
}

.calendar-tools-card summary {
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  min-height: 44px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.calendar-tools-icon {
  display: grid;
  place-items: center;
  color: var(--accent);
}

.calendar-tools-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.calendar-tools-panel {
  gap: 12px;
}

.calendar-search-field {
  display: grid;
  gap: 7px;
}

.calendar-search-field span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 850;
}

.calendar-search-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(67, 127, 139, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.calendar-ics-button::before,
.dashboard-ics-button::before,
.calendar-bulk-ics-button::before,
.duty-calendar-actions button::before {
  content: none !important;
  display: none !important;
}

.calendar-ics-button svg,
.dashboard-ics-button svg,
.calendar-bulk-ics-button svg,
.duty-calendar-actions svg {
  display: block !important;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.event-date .calendar-ics-button svg,
.dashboard-ics-button svg {
  width: 38px !important;
  height: 38px !important;
}

.calendar-bulk-ics-button svg,
.duty-calendar-actions svg {
  width: 20px !important;
  height: 20px !important;
}

/* Final radius and daily verse sizing refinements for update 20260710-2. */
:where(
  [class*="card"],
  [class*="panel"],
  [class*="box"],
  [class*="tile"],
  [class*="modal"],
  [class*="sheet"],
  [class*="option"],
  [class*="button"],
  [class*="thumb"],
  [class*="preview"],
  details,
  summary
) {
  border-radius: 14px !important;
}

.bottom-nav {
  border-radius: 999px !important;
}

.dashboard-grid > .hero-copy.daily-verse-card,
.dashboard-grid > .daily-verse-card {
  width: 90% !important;
  max-width: 90% !important;
  justify-self: center;
}

@media (max-width: 640px) {
  .dashboard-grid > .hero-copy.daily-verse-card,
  .dashboard-grid > .daily-verse-card {
    min-height: 180px !important;
  }
}

/* Final dashboard and calendar refinements for update 20260710-2. */
.dashboard-grid > .hero-copy.daily-verse-card,
.dashboard-grid > .daily-verse-card {
  width: 100% !important;
  max-width: 100% !important;
  justify-self: stretch;
}

.dashboard-grid > .hero-copy.daily-verse-card .daily-verse,
.dashboard-grid > .hero-copy.daily-verse-card .dailyVerses,
.dashboard-grid > .hero-copy.daily-verse-card .daily-verse p,
.dashboard-grid > .hero-copy.daily-verse-card .daily-verse span,
.dashboard-grid > .hero-copy.daily-verse-card .daily-verse div,
.dashboard-grid > .daily-verse-card .daily-verse,
.dashboard-grid > .daily-verse-card .dailyVerses,
.dashboard-grid > .daily-verse-card .daily-verse p,
.dashboard-grid > .daily-verse-card .daily-verse span,
.dashboard-grid > .daily-verse-card .daily-verse div {
  padding-right: 10% !important;
}

.dashboard-grid > .sabbath-card,
.dashboard-grid > .birthdays-card,
.sabbath-card,
.birthdays-card {
  padding: 16px !important;
}

.more-content > .more-logout-button {
  margin-top: 20px !important;
}

.calendar-search-control {
  position: relative;
  display: block;
}

.calendar-search-control input {
  padding-right: 46px !important;
}

.calendar-search-clear {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px !important;
  background: rgba(67, 127, 139, 0.12);
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.calendar-search-clear[hidden] {
  display: none !important;
}

.dashboard-grid > .hero-copy.daily-verse-card .daily-verse,
.dashboard-grid > .hero-copy.daily-verse-card .dailyVerses,
.dashboard-grid > .daily-verse-card .daily-verse,
.dashboard-grid > .daily-verse-card .dailyVerses {
  padding-right: 10% !important;
}

.dashboard-grid > .hero-copy.daily-verse-card .daily-verse p,
.dashboard-grid > .hero-copy.daily-verse-card .daily-verse span,
.dashboard-grid > .hero-copy.daily-verse-card .daily-verse div,
.dashboard-grid > .daily-verse-card .daily-verse p,
.dashboard-grid > .daily-verse-card .daily-verse span,
.dashboard-grid > .daily-verse-card .daily-verse div {
  padding-right: 0 !important;
}

/* Final field radius and calendar search spacing for update 20260710-2. */
.calendar-search-field {
  margin-bottom: 14px !important;
}

.calendar-search-field[hidden] {
  display: none !important;
  margin-bottom: 0 !important;
}

.schedule-options > button,
.more-options > button,
.calendar-view-tabs button,
.calendar-tools-card,
.calendar-tools-card summary,
.calendar-filter-card,
.calendar-filter-card summary,
.calendar-filter-disable-all,
.calendar-bulk-ics-button,
.calendar-past-toggle,
.calendar-search-field input,
.community-search input,
.sheet-field,
.setting-card,
.settings-card,
.admin-save-button,
.more-logout-button {
  border-radius: 14px !important;
}

.bottom-nav,
.bottom-nav a.active,
.footer-notification,
.header-notification,
.desktop-logout,
.mobile-header-logout,
.calendar-search-clear,
.community-search-clear,
.setting-switch {
  border-radius: 999px !important;
}

/* Community statistics panel for update 20260710-2. */
.community-statistics-block {
  display: grid;
  gap: 14px;
}

.community-statistics-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 14px !important;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.community-statistics-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  transition: transform 0.2s ease;
}

.community-statistics-toggle-icon {
  stroke-width: 2.7;
}

.community-statistics-toggle[aria-expanded="true"] .community-statistics-toggle-chevron {
  transform: rotate(90deg);
}

.community-statistics-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(67, 127, 139, 0.18);
  border-radius: 14px !important;
  background: #fff;
  box-shadow: 0 12px 30px rgba(30, 45, 50, 0.07);
}

.community-statistics-panel[hidden] {
  display: none !important;
}

.community-statistics-panel h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(18px, 2.8vw, 24px);
  font-weight: 900;
  line-height: 1.2;
}

.community-statistics-page {
  display: grid;
  gap: 10px;
  width: 100%;
}

.sheet-content[data-sheet-mode="community-statistics"],
.sheet-list-community-statistics {
  width: 100%;
}

.dashboard > .sheet-content[data-sheet-mode="community-statistics"] {
  width: 100%;
  max-width: none;
}

@media (min-width: 860px) {
  .sheet-content[data-sheet-mode="community-statistics"] {
    width: 100%;
    max-width: none;
    justify-items: stretch;
  }

  .sheet-list-community-statistics {
    width: 100%;
    justify-self: center;
  }
}

.community-statistics-list {
  display: grid;
  gap: 14px;
  width: 100%;
}

.community-statistics-column {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.community-statistics-card {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--section-color, var(--accent)) 26%, transparent);
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--section-color, var(--accent)) 14%, #fff);
  box-shadow: 0 10px 24px rgba(25, 42, 50, 0.06);
}

.community-statistics-card.is-empty {
  background: var(--section-color, var(--accent));
}

.community-statistics-card.is-empty .community-statistics-section {
  min-height: 100%;
  display: grid;
  align-items: center;
  background: transparent;
  padding: 12px;
}

.community-statistics-card-body {
  display: grid;
  gap: 1px;
  padding: 7px 0 9px;
}

.community-statistics-section,
.community-statistics-row {
  border-radius: 0;
}

.community-statistics-section {
  background: var(--section-color, var(--accent));
  color: #000;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 6px;
  font-size: 0.95rem;
  line-height: 1.25;
  margin: 0;
  padding: 6px 12px;
  width: 100%;
}

.community-statistics-section:first-child {
  margin-top: 0;
}

.community-statistics-section strong {
  font-weight: 900;
}

.community-statistics-section span {
  font-weight: 500;
}

.community-statistics-section.is-dark {
  color: #fff;
}

.community-statistics-row {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #000;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 6px;
  font-size: 0.93rem;
  line-height: 1.25;
  min-height: 0;
  padding: 3px 12px 3px calc(12px + (var(--indent, 0) * 32px));
  width: 100%;
}

.community-statistics-number {
  font-weight: 900;
  text-align: right;
}

.community-statistics-label {
  font-weight: 500;
  min-width: 0;
}

@media (max-width: 720px) {
  .community-statistics-section,
  .community-statistics-row {
    font-size: 0.98rem;
  }

  .community-statistics-row {
    padding-left: calc(12px + (var(--indent, 0) * 24px));
  }
}

/* Final statistics and mobile footer refinements for update 20260710-2. */
@media (max-width: 859px) {
  .community-statistics-toggle {
    width: 100%;
  }

.bottom-nav {
  position: fixed !important;
  z-index: 40 !important;
    right: 14px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    left: 14px !important;
    width: auto !important;
    transform: none !important;
    align-items: stretch;
  min-height: 82px;
  padding: 4px !important;
  -webkit-touch-callout: none;
  touch-action: pan-y;
  user-select: none;
}

  .bottom-nav a {
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border-radius: 28px !important;
  }

  .bottom-nav a.active,
  .bottom-nav .active {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    background: rgba(255, 255, 255, 0.18);
  }

  .footer-notification {
    width: 58px;
    height: 58px;
  }

  .footer-notification svg {
    width: 30px;
    height: 30px;
  }

  .footer-notification .notification-badge {
    top: -7px;
    right: -7px;
  }
}

@media (min-width: 860px) {
  .dashboard.utility-page:has([data-sheet-mode="community-statistics"]) {
    width: min(100%, 1280px);
  }

  .dashboard > .sheet-content[data-sheet-mode="community-statistics"] {
    width: 100% !important;
    max-width: none !important;
  }

  .sheet-content[data-sheet-mode="community-statistics"] .sheet-list-community-statistics {
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sheet-content[data-sheet-mode="community-statistics"] .community-statistics-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

/* Dashboard carousel/events height balancing for update 20260710-2. */
.dashboard-calendar-events-stack {
  display: grid;
  gap: 10px;
}

@media (min-width: 860px) {
  .dashboard-grid {
    align-items: stretch !important;
  }

  .dashboard-grid > .dashboard-carousel-section {
    align-self: stretch;
    min-height: 0;
  }

  .dashboard-grid > .info-panel {
    align-self: start;
    min-height: 0;
  }

  .dashboard-grid > .dashboard-carousel-section .dashboard-carousel {
    row-gap: 10px !important;
  }

  .dashboard-grid > .info-panel {
    display: flex;
    flex-direction: column;
  }

  .dashboard-grid > .info-panel .dashboard-calendar-list {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
  }

  .dashboard-grid > .info-panel .dashboard-calendar-events-stack {
    display: flex;
    flex: 1 1 auto;
    height: var(--dashboard-events-stack-height, auto);
    min-height: 0;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
  }

  .quick-section .quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* Final interaction and radius refinements for update 20260710-2. */
.link-title-action {
  color: var(--accent);
  font-weight: 850;
  text-decoration: none;
}

.link-title-action:hover,
.link-title-action:focus-visible {
  text-decoration: underline;
}

.settings-content .setting-row,
.settings-content .maintenance-panel,
.settings-content .technical-settings-panel,
.settings-content .profile-modal-dialog,
.admin-content .role-selection,
.admin-content .admin-user-card,
.admin-content .admin-user-details,
.admin-content .member-list-toolbar {
  border-radius: 14px !important;
}

/* Final dashboard row and community filter refinements for update 20260710-2. */
@media (min-width: 860px) {
  .dashboard-grid > .sabbath-card,
  .dashboard-grid > .quick-section,
  .dashboard-grid > .birthdays-card {
    margin-top: -10px !important;
  }
}

/* Larger active marker in the desktop navigation. */
@media (min-width: 860px) {
  .desktop-nav {
    padding: 3px !important;
  }

  .desktop-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 15px;
  }

  .desktop-nav .active {
    padding-inline: 17px;
  }

  .desktop-nav .desktop-logout {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }

  .dashboard-calendar-events-stack:has(> .dashboard-event-card[open]) {
    justify-content: flex-start !important;
    gap: 6px;
  }

  .dashboard-calendar-events-stack:has(> .dashboard-event-card[open])
    > .dashboard-event-card:not([open]) {
    flex: 0 0 auto;
  }

  .dashboard-calendar-events-stack:has(> .dashboard-event-card[open])
    > .dashboard-event-card:not([open]) summary {
    min-height: 50px;
    padding-block: 4px;
  }

  .dashboard-calendar-events-stack:has(> .dashboard-event-card[open])
    > .dashboard-event-card:not([open]) .event-date {
    align-content: center;
    padding-top: 0;
  }

  .dashboard-calendar-events-stack:has(> .dashboard-event-card[open])
    > .dashboard-event-card:not([open]) .event-date b,
  .dashboard-calendar-events-stack:has(> .dashboard-event-card[open])
    > .dashboard-event-card:not([open]) .event-date em,
  .dashboard-calendar-events-stack:has(> .dashboard-event-card[open])
    > .dashboard-event-card:not([open]) .event-main small,
  .dashboard-calendar-events-stack:has(> .dashboard-event-card[open])
    > .dashboard-event-card:not([open]) .event-rubric {
    display: none;
  }

  .dashboard-calendar-events-stack:has(> .dashboard-event-card[open])
    > .dashboard-event-card:not([open]) .event-date strong {
    font-size: 22px;
  }

  .dashboard-calendar-events-stack:has(> .dashboard-event-card[open])
    > .dashboard-event-card:not([open]) .event-main {
    align-self: center;
    padding-top: 0;
  }
}










































