/* Sabbath School home prep theme overrides extracted from app-theme-module.css. */
body[data-theme] .sabbath-prep-card,
body[data-theme] .songbook-dialog {
  border-color: var(--theme-panel-border);
  background: var(--theme-panel-bg);
  box-shadow: var(--theme-panel-shadow);
}

body.theme-dark .sabbath-prep-help,
body.theme-dark .sabbath-prep-meta,
body.theme-dark .sabbath-prep-songs-help,
body.theme-dark .sabbath-prep-songs-status,
body.theme-dark .sabbath-prep-song-result-excerpt,
body.theme-dark .sabbath-prep-song-suggestion-meta {
  color: #aebfdd;
}

body.theme-dark .sabbath-prep-toggle,
body.theme-dark .sabbath-songbook-toggle,
body.theme-dark .sabbath-prep-summary-item,
body.theme-dark .sabbath-prep-song-result,
body.theme-dark .songbook-dialog {
  border-color: rgba(190, 154, 79, 0.22);
  background: rgba(34, 27, 13, 0.58);
}

body.theme-dark .sabbath-prep-card {
  background: linear-gradient(180deg, rgba(34, 27, 13, 0.94), rgba(27, 21, 10, 0.86));
  border-color: rgba(190, 154, 79, 0.22);
}

body.theme-dark .sabbath-songbook-card {
  background: linear-gradient(180deg, rgba(18, 31, 38, 0.96), rgba(14, 24, 30, 0.86));
  border-color: rgba(93, 145, 177, 0.24);
}

body.theme-dark .sabbath-prep-toggle,
body.theme-dark .sabbath-songbook-toggle {
  border-color: transparent;
  background: transparent;
}

body.theme-dark .sabbath-prep-hero-icon,
body.theme-dark .sabbath-songbook-hero-icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 28px rgba(3, 10, 19, 0.26);
}

body.theme-dark .sabbath-prep-hero-icon {
  border-color: rgba(190, 154, 79, 0.26);
  background:
    radial-gradient(circle at 78% 20%, rgba(243, 199, 92, 0.26), transparent 30%),
    linear-gradient(160deg, rgba(56, 41, 15, 0.96), rgba(37, 27, 12, 0.94));
}

body.theme-dark .sabbath-songbook-hero-icon {
  border-color: rgba(93, 156, 181, 0.24);
  background:
    radial-gradient(circle at 80% 18%, rgba(104, 185, 214, 0.22), transparent 28%),
    linear-gradient(160deg, rgba(18, 47, 58, 0.96), rgba(13, 35, 43, 0.94));
}

body.theme-dark .prep-hero-shadow,
body.theme-dark .songbook-hero-shadow {
  fill: rgba(0, 0, 0, 0.26);
}

body.theme-dark .prep-hero-aura {
  fill: rgba(243, 199, 92, 0.22);
}

body.theme-dark .prep-hero-plate {
  fill: rgba(243, 199, 92, 0.18);
}

body.theme-dark .prep-hero-ring {
  stroke: rgba(234, 185, 85, 0.46);
}

body.theme-dark .prep-hero-card-back {
  fill: rgba(74, 57, 23, 0.92);
  stroke: rgba(213, 171, 85, 0.26);
}

body.theme-dark .prep-hero-card {
  fill: rgba(92, 69, 28, 0.98);
  stroke: rgba(227, 186, 95, 0.28);
}

body.theme-dark .prep-hero-tab,
body.theme-dark .prep-hero-dot {
  fill: rgba(236, 191, 83, 0.96);
}

body.theme-dark .prep-hero-arc {
  stroke: rgba(236, 191, 83, 0.82);
}

body.theme-dark .prep-hero-line {
  stroke: rgba(247, 229, 188, 0.86);
}

body.theme-dark .prep-hero-spark {
  fill: rgba(255, 244, 219, 0.92);
  stroke: rgba(243, 199, 92, 0.38);
}

body.theme-dark .songbook-hero-plate {
  fill: rgba(104, 185, 214, 0.18);
}

body.theme-dark .songbook-hero-ring {
  stroke: rgba(129, 198, 224, 0.44);
}

body.theme-dark .songbook-hero-sheet {
  fill: rgba(22, 58, 69, 0.82);
  stroke: rgba(114, 190, 218, 0.22);
}

body.theme-dark .songbook-hero-page {
  fill: rgba(25, 65, 78, 0.98);
  stroke: rgba(129, 198, 224, 0.28);
}

body.theme-dark .songbook-hero-spine {
  stroke: rgba(155, 214, 236, 0.54);
}

body.theme-dark .songbook-hero-line {
  stroke: rgba(141, 211, 236, 0.72);
}

body.theme-dark .songbook-hero-note-stem,
body.theme-dark .songbook-hero-note-flag {
  stroke: rgba(121, 208, 240, 0.94);
}

body.theme-dark .songbook-hero-note-head {
  fill: rgba(121, 208, 240, 0.98);
}

body.theme-dark .songbook-hero-ribbon {
  fill: rgba(77, 178, 207, 0.86);
}

body.theme-dark .sabbath-prep-countdown-card {
  border-color: rgba(190, 154, 79, 0.22);
  background: rgba(34, 27, 13, 0.72);
}

body.theme-dark .sabbath-prep-formation-strip {
  border-color: rgba(190, 154, 79, 0.18);
  background:
    radial-gradient(circle at top right, rgba(214, 169, 78, 0.16), transparent 34%),
    linear-gradient(160deg, rgba(41, 31, 14, 0.92), rgba(30, 23, 10, 0.9));
}

body.theme-dark .sabbath-prep-eyebrow,
body.theme-dark .sabbath-prep-formation-kicker,
body.theme-dark .sabbath-prep-summary-label,
body.theme-dark .sabbath-prep-summary-quote,
body.theme-dark .sabbath-prep-summary-source,
body.theme-dark .sabbath-prep-reminder-eyebrow,
body.theme-dark .sabbath-prep-countdown-label,
body.theme-dark .sabbath-prep-songbook-search-label,
body.theme-dark .sabbath-prep-songbook-filter-label,
body.theme-dark .sabbath-prep-song-result-meta,
body.theme-dark .songbook-dialog-eyebrow,
body.theme-dark .songbook-dialog-slide-label {
  color: #eac97a;
}

body.theme-dark .sabbath-prep-title,
body.theme-dark .sabbath-prep-date,
body.theme-dark .sabbath-prep-formation-lead,
body.theme-dark .sabbath-prep-songs-title,
body.theme-dark .sabbath-prep-song-result-title,
body.theme-dark .sabbath-prep-song-suggestion-title,
body.theme-dark .sabbath-prep-summary-theme,
body.theme-dark .sabbath-prep-summary-value,
body.theme-dark .sabbath-prep-countdown-value,
body.theme-dark .songbook-dialog-title,
body.theme-dark .songbook-dialog-slide-text {
  color: #f7edd4;
}

body.theme-dark .sabbath-prep-countdown-meta,
body.theme-dark .songbook-dialog-meta,
body.theme-dark .songbook-dialog-share-help,
body.theme-dark .songbook-dialog-counter,
body.theme-dark .songbook-dialog-zoom-value {
  color: #cbb690;
}

body.theme-dark .sabbath-prep-summary-theme {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .sabbath-prep-reminder-panel {
  border-color: rgba(214, 169, 78, 0.2);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

body.theme-dark.home-sabbath-prep-active #sabbathPrepCard {
  background:
    radial-gradient(circle at top right, rgba(214, 169, 78, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(18, 15, 10, 0.99), rgba(27, 21, 13, 0.99));
}

body.theme-dark.home-sabbath-songbook-active #sabbathPrepSongbookCard {
  background:
    radial-gradient(circle at top right, rgba(83, 145, 176, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(11, 21, 28, 0.99), rgba(13, 28, 37, 0.99));
}

body.theme-dark.home-sabbath-prep-active #sabbathPrepCard > .sabbath-prep-toggle {
  background: linear-gradient(180deg, rgba(18, 15, 10, 0.96), rgba(18, 15, 10, 0.88));
  border-bottom-color: rgba(190, 154, 79, 0.18);
}

body.theme-dark.home-sabbath-songbook-active #sabbathPrepSongbookCard > .sabbath-songbook-toggle {
  background: linear-gradient(180deg, rgba(11, 21, 28, 0.96), rgba(11, 21, 28, 0.88));
  border-bottom-color: rgba(90, 159, 193, 0.18);
}

body.theme-dark.home-sabbath-prep-active #sabbathPrepSongbookCard.is-quick-switch > .sabbath-songbook-toggle {
  background:
    radial-gradient(circle at top right, rgba(90, 159, 193, 0.14), transparent 34%),
    linear-gradient(160deg, rgba(13, 28, 37, 0.98), rgba(18, 41, 50, 0.95));
}

body.theme-dark .sabbath-prep-reminder-lead-label {
  color: #eac97a;
}

body.theme-dark .sabbath-prep-reminder-toggle-btn.mission-action-btn,
body.theme-dark .sabbath-prep-reminder-lead-btn,
body.theme-dark .sabbath-prep-reminder-step {
  border-color: rgba(255, 255, 255, 0.14);
}

body.theme-dark .sabbath-prep-reminder-lead-btn {
  background: rgba(34, 27, 13, 0.72);
  color: #f7edd4;
}

body.theme-dark .sabbath-prep-reminder-lead-btn.is-active {
  border-color: rgba(214, 169, 78, 0.34);
  background: linear-gradient(135deg, rgba(133, 95, 17, 0.4), rgba(194, 152, 70, 0.28));
}

body.theme-dark .sabbath-prep-responsibilities-title,
body.theme-dark .sabbath-prep-responsibility-title-text,
body.theme-dark .sabbath-prep-notes-input {
  color: #f7edd4;
}

body.theme-dark .sabbath-prep-responsibilities-help,
body.theme-dark .sabbath-prep-responsibility-meta,
body.theme-dark .sabbath-prep-notes-preview,
body.theme-dark .sabbath-prep-notes-save-meta {
  color: #cfbc96;
}

body.theme-dark .sabbath-prep-responsibility-badge {
  background: rgba(214, 169, 78, 0.14);
  color: #f2d89a;
}

body.theme-dark .sabbath-prep-responsibility-label {
  color: #f0d99a;
  background: rgba(236, 199, 112, 0.12);
  box-shadow: inset 0 0 0 1px rgba(236, 199, 112, 0.16);
}

body.theme-dark .sabbath-prep-responsibility-stage {
  color: #f0d99a;
}

body.theme-dark .sabbath-prep-responsibility-card {
  border-color: rgba(190, 154, 79, 0.22);
  background: rgba(34, 27, 13, 0.72);
}

body.theme-dark .sabbath-prep-responsibility-card.is-assigned {
  border-color: rgba(214, 169, 78, 0.34);
  background: linear-gradient(160deg, rgba(70, 49, 11, 0.92), rgba(58, 40, 9, 0.9));
}

body.theme-dark .sabbath-prep-note-toggle,
body.theme-dark .sabbath-prep-notes-input {
  border-color: rgba(190, 154, 79, 0.22);
  background: rgba(24, 19, 10, 0.86);
}

body.theme-dark .sabbath-prep-summary-item {
  border-color: rgba(190, 154, 79, 0.22);
  background: rgba(34, 27, 13, 0.72);
}

body.theme-dark .sabbath-prep-summary-item[data-tone="home"] {
  background: linear-gradient(160deg, rgba(58, 42, 12, 0.92), rgba(49, 35, 10, 0.9));
}

body.theme-dark .sabbath-prep-summary-item[data-tone="rhythm"] {
  background: linear-gradient(160deg, rgba(60, 41, 17, 0.92), rgba(47, 32, 14, 0.9));
}

body.theme-dark .sabbath-prep-summary-item[data-tone="worship"] {
  background: linear-gradient(160deg, rgba(23, 40, 62, 0.92), rgba(18, 31, 49, 0.9));
}

body.theme-dark .sabbath-prep-summary-item[data-tone="care"] {
  background: linear-gradient(160deg, rgba(20, 47, 37, 0.92), rgba(17, 35, 30, 0.9));
}

body.theme-dark .sabbath-prep-songbook-search-input,
body.theme-dark .sabbath-prep-songbook-filter-select,
body.theme-dark .sabbath-prep-songbook-suggestions,
body.theme-dark .sabbath-prep-song-suggestion,
body.theme-dark .songbook-dialog-slide-surface,
body.theme-dark .songbook-dialog-zoom,
body.theme-dark .songbook-dialog-share-trigger.ghost-btn,
body.theme-dark .songbook-dialog-share-action.ghost-btn,
body.theme-dark .songbook-dialog-nav.ghost-btn,
body.theme-dark .songbook-dialog-zoom-btn.ghost-btn,
body.theme-dark .sabbath-prep-song-favorite-btn {
  border-color: rgba(190, 154, 79, 0.22);
  background: rgba(24, 19, 10, 0.86);
  color: #f7edd4;
}

body.theme-dark .songbook-dialog-share-trigger.ghost-btn[aria-expanded="true"] {
  background: rgba(74, 55, 19, 0.96);
}

body.theme-dark .songbook-dialog-share-panel {
  border-color: rgba(190, 154, 79, 0.24);
  background: linear-gradient(180deg, rgba(34, 27, 13, 0.96), rgba(50, 37, 16, 0.94));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

body.theme-dark .songbook-dialog-share-panel-title {
  color: #eac97a;
}

body.theme-dark .sabbath-prep-song-result.is-favorite {
  border-color: rgba(224, 171, 71, 0.42);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

body.theme-dark .sabbath-prep-song-favorite-btn.is-active {
  border-color: rgba(224, 171, 71, 0.42);
  background: rgba(92, 63, 10, 0.92);
  color: #ffd27a;
}

body.theme-dark .sabbath-prep-action-meta {
  color: #cfbc96;
}

body.theme-dark .sabbath-prep-card.is-shabbat-live {
  border-color: rgba(194, 152, 70, 0.32);
  background: linear-gradient(160deg, rgba(56, 39, 9, 0.96), rgba(42, 29, 7, 0.94));
}

body.theme-dark .sabbath-prep-card.is-shabbat-transition {
  border-color: rgba(214, 169, 78, 0.34);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

body.theme-dark .sabbath-prep-card.is-shabbat-transition .sabbath-prep-countdown-card {
  border-color: rgba(214, 169, 78, 0.28);
  background: rgba(65, 46, 11, 0.9);
}

body.theme-dark .sabbath-prep-card.is-shabbat-live .sabbath-prep-toggle,
body.theme-dark .sabbath-prep-card.is-shabbat-live .sabbath-prep-countdown-card,
body.theme-dark .sabbath-prep-card.is-shabbat-live .sabbath-prep-summary-item,
body.theme-dark .sabbath-prep-card.is-shabbat-live .sabbath-prep-song-result,
body.theme-dark .sabbath-prep-card.is-shabbat-live .songbook-dialog {
  background: rgba(52, 37, 11, 0.84);
}

body.theme-dark.sabbath-songbook-dialog-active::after {
  background: linear-gradient(180deg, rgba(16, 14, 11, 0.78), rgba(29, 23, 13, 0.92));
}

body.theme-dark .worship-program-songbook-panel .sabbath-prep-song-result.is-selected {
  border-color: rgba(112, 211, 179, 0.34);
  background: linear-gradient(160deg, rgba(19, 53, 48, 0.98), rgba(16, 46, 43, 0.94));
}

body.theme-dark.worship-program-song-active #worshipProgramSongDialogHost > .songbook-dialog,
body.theme-dark.sabbath-songbook-dialog-active .songbook-dialog.is-sabbath-fullscreen {
  background: linear-gradient(180deg, rgba(34, 27, 13, 0.995), rgba(25, 20, 10, 0.99));
}

body.theme-dark.sabbath-songbook-dialog-active .songbook-dialog.is-sabbath-fullscreen::before {
  background: linear-gradient(180deg, rgba(31, 25, 14, 0.995), rgba(27, 22, 12, 0.96));
  border-bottom-color: rgba(196, 159, 89, 0.16);
}

body.theme-business #sabbathPrepCard,
body.theme-business #sabbathPrepSongbookCard {
  height: 100%;
}

body.theme-business .sabbath-prep-toggle,
body.theme-business .sabbath-songbook-toggle {
  border-radius: 18px;
  border-color: rgba(16, 66, 83, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 248, 249, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body.theme-business .home-priority-grid > .sabbath-prep-card.is-collapsed > .sabbath-prep-toggle,
body.theme-business .home-priority-grid > .sabbath-songbook-card.is-collapsed > .sabbath-songbook-toggle {
  min-height: 188px;
  padding: 18px;
  align-items: end;
  align-content: end;
  background-size: cover, cover, cover;
  background-position: center, center, center;
}

body.theme-business .home-priority-grid > .sabbath-prep-card.is-collapsed > .sabbath-prep-toggle {
  background-image:
    linear-gradient(180deg, rgba(16, 48, 65, 0.02), rgba(16, 48, 65, 0.78)),
    url("../../home-sabbath-preparation.webp"),
    linear-gradient(160deg, rgba(255, 251, 241, 0.98), rgba(246, 223, 168, 0.96));
}

body.theme-business .home-priority-grid > .sabbath-songbook-card.is-collapsed > .sabbath-songbook-toggle {
  background-image:
    linear-gradient(180deg, rgba(16, 48, 65, 0.02), rgba(16, 48, 65, 0.78)),
    url("../../home-hymnal.webp"),
    linear-gradient(160deg, rgba(249, 252, 255, 0.98), rgba(208, 231, 244, 0.96));
}

body.theme-business .home-priority-grid > .sabbath-prep-card.is-collapsed .sabbath-prep-toggle-copy,
body.theme-business .home-priority-grid > .sabbath-songbook-card.is-collapsed .sabbath-songbook-toggle-copy {
  display: grid;
  gap: 5px;
  align-self: end;
  max-width: min(100%, 17rem);
}

body.theme-business .home-priority-grid > .sabbath-prep-card.is-collapsed .sabbath-prep-hero-icon,
body.theme-business .home-priority-grid > .sabbath-songbook-card.is-collapsed .sabbath-songbook-hero-icon {
  display: none;
}

body.theme-business .home-priority-grid > .sabbath-prep-card.is-collapsed .sabbath-prep-eyebrow,
body.theme-business .home-priority-grid > .sabbath-songbook-card.is-collapsed .sabbath-songbook-eyebrow {
  color: rgba(233, 245, 246, 0.78);
}

body.theme-business .home-priority-grid > .sabbath-prep-card.is-collapsed .sabbath-prep-title,
body.theme-business .home-priority-grid > .sabbath-songbook-card.is-collapsed .sabbath-songbook-title {
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(7, 24, 31, 0.42);
}

body.theme-business .home-priority-grid > .sabbath-prep-card.is-collapsed .sabbath-prep-help,
body.theme-business .home-priority-grid > .sabbath-songbook-card.is-collapsed .sabbath-songbook-help {
  display: block !important;
  color: rgba(235, 244, 245, 0.88);
  text-shadow: 0 2px 16px rgba(7, 24, 31, 0.36);
}

body.theme-business .sabbath-prep-hero-icon,
body.theme-business .sabbath-songbook-hero-icon {
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(250, 253, 253, 0.98), rgba(223, 237, 237, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 16px 28px rgba(12, 44, 55, 0.12);
}

body.theme-business .sabbath-prep-title,
body.theme-business .sabbath-songbook-title {
  overflow-wrap: anywhere;
  hyphens: auto;
}

body.theme-business .sabbath-prep-help,
body.theme-business .sabbath-songbook-help {
  color: #5a7481;
}
