// Worship styles extracted from the shared stylesheet.

body.worship-program-presentation-active {
  overflow: hidden;
}

body.worship-program-presentation-active::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1590;
  pointer-events: none;
  background: linear-gradient(180deg, #eef5f0, #e4efe8);
}

body.worship-program-presentation-active #worshipProgramSongDialogHost {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1800;
  pointer-events: none;
}

body.worship-program-presentation-active #worshipProgramSongDialogHost > .songbook-dialog {
  position: fixed;
  inset: 0;
  min-height: 100svh;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  scroll-margin-top: 0;
  pointer-events: auto;
}

body.worship-program-song-active #worshipProgramSongDialogHost {
  pointer-events: auto;
  background: linear-gradient(180deg, #f9f3e3, #ecd9a8);
}

body.worship-program-presentation-active #worshipProgramSongDialogHost > .songbook-dialog .songbook-dialog-shell {
  min-height: 100svh;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 18px calc(18px + env(safe-area-inset-bottom, 0px));
}

body.worship-program-song-active #worshipProgramSongDialogHost > .songbook-dialog {
  background: linear-gradient(180deg, #fbf5e8, #f0dfb6);
}

body.worship-program-presentation-active #worshipProgramSongDialogHost > .songbook-dialog .songbook-dialog-slide-text {
  font-size: calc(1.46rem * var(--songbook-font-scale, 1));
  line-height: 1.6;
}

.worship-program-card {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  border-color: rgba(40, 141, 110, 0.18);
  background:
    radial-gradient(circle at top right, rgba(91, 190, 159, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(241, 173, 100, 0.14), transparent 30%),
    linear-gradient(162deg, rgba(247, 255, 252, 0.97), rgba(236, 249, 244, 0.93));
}

.worship-program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(40, 141, 110, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 141, 110, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.42;
  pointer-events: none;
}

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

.worship-program-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 18px 18px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.worship-program-toggle-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.worship-program-toggle-side {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.worship-program-toggle:focus-visible {
  outline: 2px solid rgba(40, 141, 110, 0.3);
  outline-offset: -2px;
}

.worship-program-eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2b8a65;
}

.worship-program-title {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 720;
  color: #1b4e43;
}

.worship-program-toggle-icon {
  position: relative;
  width: 72px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(40, 141, 110, 0.18);
  background:
    radial-gradient(circle at top right, rgba(89, 173, 151, 0.22), transparent 42%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(240, 250, 246, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 10px 24px rgba(29, 94, 72, 0.12);
  overflow: hidden;
}

.worship-program-toggle-icon-rail {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(38, 173, 132, 0.18), rgba(32, 117, 189, 0.24), rgba(240, 162, 68, 0.28));
}

.worship-program-toggle-icon-node {
  position: absolute;
  left: 14px;
  right: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 14px rgba(21, 69, 52, 0.1);
}

.worship-program-toggle-icon-node::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.worship-program-toggle-icon-node.is-opening {
  top: 11px;
  border-color: rgba(33, 164, 119, 0.22);
  color: #20845f;
}

.worship-program-toggle-icon-node.is-opening::before {
  background: linear-gradient(135deg, #2ac78e, #159a66);
}

.worship-program-toggle-icon-node.is-word {
  top: 23px;
  left: 20px;
  border-color: rgba(56, 121, 214, 0.2);
  color: #295ca6;
}

.worship-program-toggle-icon-node.is-word::before {
  background: linear-gradient(135deg, #5ea6ff, #2d76d8);
}

.worship-program-toggle-icon-node.is-sermon {
  top: 35px;
  height: 13px;
  border-color: rgba(240, 162, 68, 0.22);
  color: #9d5f16;
}

.worship-program-toggle-icon-node.is-sermon::before {
  background: linear-gradient(135deg, #ffbf67, #ef8f33);
}

.worship-program-help {
  margin: 0;
  max-width: 34ch;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #587369;
}

.worship-program-toggle-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
}

.worship-program-toggle-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(40, 141, 110, 0.16);
  background: rgba(255, 255, 255, 0.76);
  padding: 6px 11px;
  font-size: 0.72rem;
  font-weight: 680;
  line-height: 1.35;
  white-space: normal;
  color: #2d675a;
  backdrop-filter: blur(12px);
}

.worship-program-toggle .home-calendar-chevron {
  border-right-color: #5c7a70;
  border-bottom-color: #5c7a70;
}

.worship-program-toggle.is-open .home-calendar-chevron {
  transform: rotate(225deg);
}

.worship-program-body {
  display: grid;
  gap: 18px;
  padding: 0 18px 20px;
}

.worship-program-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(152px, 176px);
  gap: 12px;
  align-items: start;
}

.worship-program-head-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.worship-program-date {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f8165;
}

.worship-program-meta {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #5b746a;
}

.worship-program-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  justify-self: end;
  width: min(100%, 176px);
}

.worship-program-stat {
  min-width: 0;
  border: 1px solid rgba(40, 141, 110, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 11px 12px;
  box-shadow: 0 14px 28px rgba(27, 83, 69, 0.08);
  backdrop-filter: blur(10px);
}

.worship-program-head .worship-program-stat:only-child {
  min-height: 100%;
}

.worship-program-stat-label {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f7d74;
}

.worship-program-stat-value {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 760;
  color: #1e5549;
}

.worship-program-stat-meta {
  margin: 6px 0 0;
  font-size: 0.69rem;
  line-height: 1.35;
  color: #5f7b71;
}

.worship-program-timeline {
  display: grid;
  gap: 10px;
}

.worship-program-timeline.is-reordering,
.worship-program-timeline.is-reordering * {
  -webkit-user-select: none;
  user-select: none;
}

.worship-program-step {
  --program-step-accent: #2f8165;
  --program-step-tint: rgba(47, 129, 101, 0.14);
  --program-step-border: rgba(47, 129, 101, 0.18);
  --program-step-surface: rgba(255, 255, 255, 0.8);
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.worship-program-step.is-cue-open {
  z-index: 4;
}

.worship-program-step-line {
  position: absolute;
  left: 17px;
  top: 26px;
  bottom: -10px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--program-step-tint), rgba(41, 78, 74, 0.08));
}

.worship-program-step:last-child .worship-program-step-line {
  display: none;
}

.worship-program-step-dot {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--program-step-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), var(--program-step-tint));
  color: var(--program-step-accent);
  font-size: 0.63rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 6px rgba(241, 250, 246, 0.95);
}

.worship-program-step-card {
  min-width: 0;
  position: relative;
  border: 1px solid var(--program-step-border);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), var(--program-step-surface));
  padding: 14px 16px;
  box-shadow: 0 18px 32px rgba(31, 75, 67, 0.08);
  backdrop-filter: blur(12px);
  cursor: grab;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease, filter 150ms ease, border-color 150ms ease;
}

.worship-program-step-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(31, 75, 67, 0.1);
}

.worship-program-step.is-completed .worship-program-step-card,
.worship-program-step.is-completed .worship-program-step-dot {
  opacity: 0.54;
  filter: grayscale(0.16);
}

.worship-program-step.is-current .worship-program-step-card {
  border-color: color-mix(in srgb, var(--program-step-accent) 45%, #ffffff);
  box-shadow: 0 24px 40px color-mix(in srgb, var(--program-step-accent) 24%, transparent);
  transform: translateY(-2px);
}

.worship-program-step.is-current .worship-program-step-dot {
  box-shadow: 0 0 0 6px rgba(241, 250, 246, 0.95), 0 12px 22px color-mix(in srgb, var(--program-step-accent) 24%, transparent);
}

.worship-program-step-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: flex-start;
  padding-left: 24px;
}

.worship-program-step-top.has-action {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-right: 0;
}

.worship-program-step-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.worship-program-step-title-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7px;
}

.worship-program-step-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #244f45;
}

.worship-program-step-state {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.worship-program-step-state.is-current {
  background: color-mix(in srgb, var(--program-step-accent) 18%, white);
  color: var(--program-step-accent);
}

.worship-program-step-state.is-completed {
  background: rgba(85, 100, 118, 0.12);
  color: #60707f;
}

.worship-program-step-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--program-step-tint);
  color: var(--program-step-accent);
  font-size: 0.67rem;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: normal;
}

.worship-program-step-badge.is-action {
  appearance: none;
  position: static;
  border: 0;
  font: inherit;
  cursor: pointer;
  min-width: 0;
  padding: 5px 10px;
  background: color-mix(in srgb, var(--program-step-accent) 14%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--program-step-accent) 20%, transparent);
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 0.62rem;
  font-weight: 760;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, opacity 140ms ease;
}

.worship-program-step-badge.is-action.is-play {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--program-step-accent) 86%, #123126),
    color-mix(in srgb, var(--program-step-accent) 52%, #ffffff)
  );
  color: #ffffff;
  box-shadow: 0 10px 18px color-mix(in srgb, var(--program-step-accent) 20%, transparent);
}

.worship-program-step-badge.is-action:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--program-step-accent) 24%, transparent),
    0 10px 18px color-mix(in srgb, var(--program-step-accent) 14%, transparent);
}

.worship-program-step-badge.is-action:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--program-step-accent) 34%, white);
  outline-offset: 2px;
}

.worship-program-step-badge.is-action.is-filled {
  background: color-mix(in srgb, var(--program-step-accent) 20%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--program-step-accent) 28%, transparent);
}

.worship-program-step-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.worship-program-step-drag-hint {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1;
  width: 11px;
  height: 15px;
  border-radius: 999px;
  opacity: 0.72;
  pointer-events: none;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--program-step-accent) 88%, white) 34%, transparent 40%) 0 0 / 5px 5px repeat,
    radial-gradient(circle, color-mix(in srgb, var(--program-step-accent) 88%, white) 34%, transparent 40%) 5px 0 / 5px 5px repeat;
}

.worship-program-step.is-dragging {
  opacity: 0.96;
}

.worship-program-step.is-dragging .worship-program-step-line {
  opacity: 0;
}

.worship-program-step.is-dragging .worship-program-step-card {
  box-shadow:
    0 28px 44px rgba(31, 75, 67, 0.18),
    0 0 0 1px color-mix(in srgb, var(--program-step-accent) 28%, transparent);
  transform: rotate(-0.6deg);
  cursor: grabbing;
}

.worship-program-step-placeholder {
  min-height: 94px;
  border: 1px dashed rgba(46, 121, 96, 0.32);
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.54), rgba(228, 242, 236, 0.8));
}

.worship-program-step-value {
  margin: 9px 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #49655d;
}

.worship-program-step-value.is-hidden-copy {
  color: #708178;
  font-style: italic;
}

.worship-program-step-participant {
  margin: 7px 0 0;
  font-size: 0.77rem;
  line-height: 1.45;
  color: #2d6659;
  font-weight: 620;
}

.worship-program-step-participant.is-empty {
  color: #678076;
  font-weight: 560;
}

.worship-program-step-cue-wrap {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.worship-program-step-cue-trigger {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #7b857f;
  font: inherit;
  font-size: 0.67rem;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  cursor: pointer;
}

.worship-program-step-cue-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  width: min(300px, calc(100vw - 96px), calc(100% - 56px));
  max-width: calc(100% - 56px);
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(40, 141, 110, 0.16);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(31, 75, 67, 0.14);
}

.worship-program-step-cue-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.worship-program-step-cue-popover-title,
.worship-program-step-cue-popover-copy {
  margin: 0;
}

.worship-program-step-cue-popover-title {
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5d6e67;
}

.worship-program-step-cue-popover-copy {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #456159;
}

.worship-program-step-cue-close {
  appearance: none;
  border: 0;
  padding: 0;
  min-width: 18px;
  background: transparent;
  color: #74817b;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.worship-program-step-editor {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(40, 141, 110, 0.14);
}

.worship-program-step-editor-field {
  display: grid;
  gap: 6px;
}

.worship-program-step-editor-field span {
  font-size: 0.74rem;
  font-weight: 700;
  color: #345950;
}

.worship-program-step-editor-field input,
.worship-program-step-editor-field select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(40, 141, 110, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #244942;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.4;
  padding: 10px 12px;
}

.worship-program-step-editor-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.worship-program-step-editor-inline .ghost-btn {
  width: auto;
  min-width: 70px;
  padding: 10px 12px;
}

.worship-program-step-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.worship-program-step-editor-actions .primary-btn,
.worship-program-step-editor-actions .ghost-btn {
  width: auto;
  min-width: 118px;
  padding: 10px 14px;
}

.worship-program-step-editor-help {
  margin: 0;
  font-size: 0.73rem;
  line-height: 1.45;
  color: #637a72;
}

.worship-program-songbook-panel,
.worship-program-bible-panel {
  display: grid;
  gap: 8px;
  padding: 11px 12px 12px;
  border: 1px solid rgba(40, 141, 110, 0.14);
  border-radius: 16px;
  background: rgba(248, 253, 250, 0.86);
}

.worship-program-bible-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.worship-program-bible-preview {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(71, 97, 178, 0.14);
  background: rgba(237, 243, 255, 0.9);
}

.worship-program-bible-preview-meta,
.worship-program-bible-preview-reference,
.worship-program-bible-preview-text {
  margin: 0;
}

.worship-program-bible-preview-meta {
  font-size: 0.68rem;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #61779e;
  font-weight: 700;
}

.worship-program-bible-preview-reference {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #25476b;
  font-weight: 700;
}

.worship-program-bible-preview-text {
  font-size: 0.77rem;
  line-height: 1.55;
  color: #5c6e82;
}

.worship-program-songbook-status {
  margin: 0;
  font-size: 0.73rem;
  line-height: 1.5;
  color: #5f7a71;
}

.worship-program-songbook-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.worship-program-songbook-preview-btn.ghost-btn {
  min-width: 0;
  padding: 8px 12px;
  white-space: nowrap;
}

.worship-program-songbook-banner {
  margin: 0;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 244, 220, 0.9);
  color: #8a5c1a;
  font-size: 0.74rem;
  line-height: 1.45;
  font-weight: 650;
}

.worship-program-songbook-results {
  display: grid;
  gap: 8px;
  max-height: min(38vh, 320px);
  overflow-y: auto;
  padding-right: 2px;
}

.worship-program-songbook-panel .sabbath-prep-song-result {
  border-radius: 16px;
  box-shadow: none;
}

.worship-program-songbook-panel .sabbath-prep-song-result.is-selected {
  border-color: rgba(40, 141, 110, 0.32);
  background: linear-gradient(160deg, rgba(235, 250, 242, 0.98), rgba(228, 247, 238, 0.94));
}

.worship-program-songbook-panel .sabbath-prep-song-result-open {
  min-height: 72px;
  padding: 11px 13px;
}

.worship-program-songbook-panel .sabbath-prep-song-favorite-btn {
  align-self: stretch;
}

.worship-program-step-state.is-hidden {
  background: rgba(85, 100, 118, 0.12);
  color: #5f6f7d;
}

.worship-program-step.is-presentation-hidden .worship-program-step-card {
  border-style: dashed;
}

.worship-program-card.is-presentation {
  position: fixed;
  inset: calc(10px + env(safe-area-inset-top, 0px)) 10px calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 1600;
  margin: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 28px;
  background: linear-gradient(180deg, #f6fbf8, #edf5f1);
  box-shadow: 0 30px 70px rgba(21, 69, 54, 0.22);
}

.worship-program-card.is-presentation::before {
  opacity: 0.18;
}

.worship-program-card.is-presentation .worship-program-toggle {
  padding-right: 76px;
  cursor: default;
  pointer-events: none;
}

.worship-program-card.is-presentation .worship-program-toggle-side {
  display: none;
}

.worship-program-card.is-presentation .worship-program-body {
  overflow-y: auto;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

.worship-program-card.is-presentation .worship-program-step {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
}

.worship-program-card.is-presentation .worship-program-step-line {
  left: 21px;
}

.worship-program-card.is-presentation .worship-program-step-dot {
  width: 44px;
  height: 44px;
  font-size: 0.7rem;
}

.worship-program-card.is-presentation .worship-program-step-card {
  padding: 18px 20px;
  cursor: pointer;
  background: linear-gradient(160deg, #ffffff, #f5faf7);
  backdrop-filter: none;
}

.worship-program-card.is-presentation .worship-program-stat {
  background: #ffffff;
  backdrop-filter: none;
}

body.worship-program-song-active .worship-program-card.is-presentation {
  opacity: 0;
  pointer-events: none;
}

.worship-program-card.is-presentation .worship-program-step-drag-hint {
  display: none;
}

.worship-program-card.is-presentation .worship-program-step-title {
  font-size: 1.02rem;
}

.worship-program-card.is-presentation .worship-program-step-value {
  font-size: 1rem;
  line-height: 1.6;
}

.worship-program-card.is-presentation .worship-program-step-participant {
  font-size: 0.84rem;
}

.worship-program-card.is-presentation .worship-program-step.is-presentation-hidden .worship-program-step-card {
  opacity: 0.78;
}

.worship-program-step.is-quiet {
  --program-step-accent: #5e7b88;
  --program-step-tint: rgba(94, 123, 136, 0.14);
  --program-step-border: rgba(94, 123, 136, 0.2);
  --program-step-surface: rgba(242, 247, 249, 0.92);
}

.worship-program-step.is-song {
  --program-step-accent: #ad6a0d;
  --program-step-tint: rgba(223, 151, 56, 0.16);
  --program-step-border: rgba(223, 151, 56, 0.24);
  --program-step-surface: rgba(255, 247, 232, 0.94);
}

.worship-program-step.is-word,
.worship-program-step.is-verse {
  --program-step-accent: #4761b2;
  --program-step-tint: rgba(71, 97, 178, 0.14);
  --program-step-border: rgba(71, 97, 178, 0.22);
  --program-step-surface: rgba(243, 247, 255, 0.94);
}

.worship-program-step.is-prayer,
.worship-program-step.is-blessing {
  --program-step-accent: #2b8a65;
  --program-step-tint: rgba(43, 138, 101, 0.14);
  --program-step-border: rgba(43, 138, 101, 0.22);
  --program-step-surface: rgba(240, 250, 246, 0.94);
}

.worship-program-step.is-kids {
  --program-step-accent: #8c5bd1;
  --program-step-tint: rgba(140, 91, 209, 0.14);
  --program-step-border: rgba(140, 91, 209, 0.22);
  --program-step-surface: rgba(249, 244, 255, 0.94);
}

.worship-program-step.is-sermon {
  --program-step-accent: #1f5b9b;
  --program-step-tint: rgba(31, 91, 155, 0.14);
  --program-step-border: rgba(31, 91, 155, 0.22);
  --program-step-surface: rgba(240, 247, 255, 0.94);
}

.worship-program-step.is-music {
  --program-step-accent: #b35d3a;
  --program-step-tint: rgba(179, 93, 58, 0.14);
  --program-step-border: rgba(179, 93, 58, 0.22);
  --program-step-surface: rgba(255, 244, 239, 0.94);
}

.worship-program-step.is-note,
.worship-program-step.is-gift {
  --program-step-accent: #556476;
  --program-step-tint: rgba(85, 100, 118, 0.12);
  --program-step-border: rgba(85, 100, 118, 0.18);
  --program-step-surface: rgba(245, 247, 250, 0.94);
}

.worship-program-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.worship-program-panel {
  min-width: 0;
  border: 1px solid rgba(40, 141, 110, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
  display: grid;
  gap: 14px;
  box-shadow: 0 18px 30px rgba(27, 83, 69, 0.08);
  backdrop-filter: blur(12px);
}

.worship-program-panel-head {
  display: grid;
  gap: 6px;
}

.worship-program-panel-head > div {
  display: grid;
  gap: 3px;
}

.worship-program-panel-head h4 {
  margin: 0;
  font-size: 0.98rem;
  color: #1f5649;
}

.worship-program-panel-eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f8768;
}

.worship-program-panel-help {
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.5;
  color: #5d756c;
}

.worship-program-form {
  display: grid;
  gap: 12px;
}

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

.worship-program-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.worship-program-field > span {
  font-size: 0.76rem;
  font-weight: 700;
  color: #32584f;
}

.worship-program-field input,
.worship-program-field textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(40, 141, 110, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  color: #244942;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.45;
  padding: 12px 13px;
}

.worship-program-field textarea {
  min-height: 96px;
  resize: vertical;
}

.worship-program-field-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.worship-program-field-inline .ghost-btn {
  width: auto;
  min-width: 86px;
  padding: 12px 14px;
}

.worship-program-form > .primary-btn {
  width: auto;
  min-width: 168px;
  justify-self: start;
  padding: 12px 16px;
}

.worship-program-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.worship-program-form-actions .primary-btn,
.worship-program-form-actions .ghost-btn {
  width: auto;
  min-width: 162px;
  padding: 12px 16px;
}

.worship-program-offer-list-wrap {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.worship-program-offer-list-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.worship-program-offer-list-head h5,
.worship-program-offer-list-head p {
  margin: 0;
}

.worship-program-offer-list-head h5 {
  font-size: 0.86rem;
  color: #224f45;
}

.worship-program-offer-list-head p {
  font-size: 0.76rem;
  color: #607870;
}

.worship-program-offer-list {
  display: grid;
  gap: 10px;
}

.worship-program-offer-item {
  border: 1px solid rgba(40, 141, 110, 0.14);
  border-radius: 16px;
  background: rgba(248, 255, 252, 0.92);
  padding: 12px 13px;
  display: grid;
  gap: 6px;
}

.worship-program-offer-item.is-current-user {
  border-color: rgba(40, 141, 110, 0.28);
  background: linear-gradient(160deg, rgba(240, 251, 246, 0.98), rgba(230, 247, 239, 0.92));
  box-shadow: 0 14px 24px rgba(40, 141, 110, 0.12);
}

.worship-program-offer-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.worship-program-offer-name,
.worship-program-offer-time,
.worship-program-offer-line,
.worship-program-offer-note {
  margin: 0;
}

.worship-program-offer-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #244f45;
}

.worship-program-offer-time {
  font-size: 0.71rem;
  color: #6c867d;
}

.worship-program-offer-line {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #49635c;
}

.worship-program-offer-note {
  font-size: 0.76rem;
  line-height: 1.5;
  color: #5d746d;
}

.worship-program-empty {
  margin: 0;
  border: 1px dashed rgba(40, 141, 110, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  padding: 14px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #5e766d;
}

@media (max-width: 720px) {
  .worship-program-toggle {
    padding-right: 16px;
    gap: 10px;
  }

  .worship-program-toggle-icon {
    width: 64px;
    height: 52px;
  }

  .worship-program-head,
  .worship-program-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .worship-program-stats {
    justify-self: stretch;
    width: 100%;
  }

  .worship-program-step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .worship-program-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    box-shadow: 0 0 0 5px rgba(241, 250, 246, 0.95);
  }

  .worship-program-step-line {
    left: 15px;
    top: 22px;
  }

  .worship-program-step-title-row,
  .worship-program-offer-head,
  .worship-program-offer-list-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .worship-program-step-top {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 22px;
  }

  .worship-program-step-top.has-action {
    padding-right: 54px;
  }

  .worship-program-step-badge:not(.is-action) {
    justify-self: start;
  }

  .worship-program-step-editor-inline {
    grid-template-columns: minmax(0, 1fr);
  }

  .worship-program-bible-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .worship-program-field-inline {
    grid-template-columns: minmax(0, 1fr);
  }

  .worship-program-field-inline .ghost-btn,
  .worship-program-form > .primary-btn,
  .worship-program-form-actions .primary-btn,
  .worship-program-form-actions .ghost-btn,
  .worship-program-step-editor-actions .primary-btn,
  .worship-program-step-editor-actions .ghost-btn {
    width: 100%;
  }
}
