/* 30 — shared dark paint layer. Light theme and all layout geometry unchanged. */
html[data-theme="dark"][data-theme] {--b27-bg:#141716!important;--b27-bg-deep:#101312!important;--b27-ink:#f2f3f1!important;--b27-muted:#bbc2be!important;--b27-milk:rgba(35,39,37,.90)!important;--b27-milk-solid:#232725!important;--b27-line:rgba(255,255,255,.16)!important;--paper:#141716!important;--ink:#f2f3f1!important;--text:#f2f3f1!important;--muted:#bbc2be!important;--soft:rgba(255,255,255,.08)!important;--line:rgba(255,255,255,.16)!important;--card:#232725!important;background-color:#141716!important;color-scheme:dark!important;}

html[data-theme="dark"][data-theme] body{color:#f2f3f1!important;--ink:#f2f3f1!important;--text:#f2f3f1!important;--muted:#bbc2be!important;--paper:#141716!important;--card:#232725!important;--line:rgba(255,255,255,.16)!important;}

html[data-theme="dark"][data-theme] body[data-page="contacts"],
html[data-theme="dark"][data-theme] body[data-page="sunday"],
html[data-theme="dark"][data-theme] body[data-page="kids"]{background:#141716!important;}

html[data-theme="dark"][data-theme] body[data-page="contacts"] .app,
html[data-theme="dark"][data-theme] body[data-page="sunday"] .app{background:transparent!important;}

html[data-theme="dark"][data-theme] body[data-page="contacts"] .hero{display:none!important;}

html[data-theme="dark"][data-theme] body[data-page="sunday"] .photo{filter:brightness(.22) saturate(.35)!important;}

html[data-theme="dark"][data-theme] body[data-page="contacts"] .brand b,

html[data-theme="dark"][data-theme] body[data-page="contacts"] .intro h1,

html[data-theme="dark"][data-theme] body[data-page="contacts"] .church h2,

html[data-theme="dark"][data-theme] body[data-page="contacts"] .section h2,

html[data-theme="dark"][data-theme] body[data-page="contacts"] .links h2,

html[data-theme="dark"][data-theme] body[data-page="contacts"] .day,
html[data-theme="dark"][data-theme] .calendar-app h1,
html[data-theme="dark"][data-theme] .calendar-app h2,
html[data-theme="dark"][data-theme] .calendar-app .brand-row strong,
html[data-theme="dark"][data-theme] .calendar-app .week-heading strong,
html[data-theme="dark"][data-theme] body[data-page="sunday"] .brand b,
html[data-theme="dark"][data-theme] body[data-page="sunday"] .title,
html[data-theme="dark"][data-theme] body[data-page="sunday"] .service b,
html[data-theme="dark"][data-theme] body[data-page="kids"] h1,
html[data-theme="dark"][data-theme] body[data-page="kids"] h2,
html[data-theme="dark"][data-theme] body[data-page="kids"] .card p{color:#f2f3f1!important;}

html[data-theme="dark"][data-theme] body[data-page="contacts"] .brand span,

html[data-theme="dark"][data-theme] body[data-page="contacts"] .intro p,

html[data-theme="dark"][data-theme] body[data-page="contacts"] .city,

html[data-theme="dark"][data-theme] body[data-page="contacts"] .detail,

html[data-theme="dark"][data-theme] body[data-page="contacts"] .legal,
html[data-theme="dark"][data-theme] .calendar-app .brand-row span,
html[data-theme="dark"][data-theme] .calendar-app .brand-row small,
html[data-theme="dark"][data-theme] .calendar-app .calendar-hero p,
html[data-theme="dark"][data-theme] .calendar-app .week-heading small,
html[data-theme="dark"][data-theme] .calendar-app .week-heading em,
html[data-theme="dark"][data-theme] .calendar-app .day-heading p,
html[data-theme="dark"][data-theme] .calendar-app .day-heading h2 span,
html[data-theme="dark"][data-theme] .calendar-app .weekday-row,
html[data-theme="dark"][data-theme] body[data-page="sunday"] .ey,
html[data-theme="dark"][data-theme] body[data-page="sunday"] .copy,
html[data-theme="dark"][data-theme] body[data-page="sunday"] .service span,
html[data-theme="dark"][data-theme] body[data-page="sunday"] .footer,
html[data-theme="dark"][data-theme] body[data-page="kids"] .muted,
html[data-theme="dark"][data-theme] body[data-page="kids"] footer,
html[data-theme="dark"][data-theme] body[data-page="kids"] .story small,
html[data-theme="dark"][data-theme] body[data-page="kids"] .status{color:#bbc2be!important;}

html[data-theme="dark"][data-theme] body[data-page="contacts"] .card,
html[data-theme="dark"][data-theme] .calendar-panel,
html[data-theme="dark"][data-theme] .week-section--soft,
html[data-theme="dark"][data-theme] .event-sheet,
html[data-theme="dark"][data-theme] .registration-dialog,
html[data-theme="dark"][data-theme] body[data-page="kids"] .card,
html[data-theme="dark"][data-theme] body[data-page="sunday"] .service,
html[data-theme="dark"][data-theme] body[data-page="sunday"] .other-date,
html[data-theme="dark"][data-theme] .stats-glass{background:rgba(35,39,37,.94)!important;border-color:rgba(255,255,255,.18)!important;color:#f2f3f1!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.12),0 12px 32px rgba(0,0,0,.2)!important;}

html[data-theme="dark"][data-theme] body[data-page="contacts"] .schedule,

html[data-theme="dark"][data-theme] body[data-page="contacts"] .link,

html[data-theme="dark"][data-theme] body[data-page="contacts"] .church-link,
html[data-theme="dark"][data-theme] .day-card,
html[data-theme="dark"][data-theme] .event-details,
html[data-theme="dark"][data-theme] .moderator-note,
html[data-theme="dark"][data-theme] .empty-day{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.16)!important;}

html[data-theme="dark"][data-theme] body[data-page="contacts"] .row{border-color:rgba(255,255,255,.14)!important;}

html[data-theme="dark"][data-theme] .calendar-app .day-cell,
html[data-theme="dark"][data-theme] .calendar-toolbar h2,
html[data-theme="dark"][data-theme] .event-row__title,
html[data-theme="dark"][data-theme] .event-row__time,
html[data-theme="dark"][data-theme] .detail-row,
html[data-theme="dark"][data-theme] .sheet-brand b,
html[data-theme="dark"][data-theme] .event-sheet h2,
html[data-theme="dark"][data-theme] .event-sheet h3,
html[data-theme="dark"][data-theme] .registration-dialog h2,
html[data-theme="dark"][data-theme] .date-dialog h2,
html[data-theme="dark"][data-theme] .card-sheet h2{color:#f2f3f1!important;}

html[data-theme="dark"][data-theme] .calendar-app .day-cell.is-other{color:#858f89!important;}

html[data-theme="dark"][data-theme] .event-row__subtitle,
html[data-theme="dark"][data-theme] .event-row__chevron,
html[data-theme="dark"][data-theme] .sheet-brand span,
html[data-theme="dark"][data-theme] .event-sheet p,
html[data-theme="dark"][data-theme] .event-sheet__body>small,
html[data-theme="dark"][data-theme] .registration-dialog p,
html[data-theme="dark"][data-theme] .date-dialog p{color:#bbc2be!important;}

html[data-theme="dark"][data-theme] .detail-row{border-color:rgba(255,255,255,.14)!important;}

html[data-theme="dark"][data-theme] .calendar-toolbar button:not(.today),
html[data-theme="dark"][data-theme] .sheet-close,
html[data-theme="dark"][data-theme] .sheet-bottom-close,
html[data-theme="dark"][data-theme] .event-secondary button,
html[data-theme="dark"][data-theme] .registration-dialog__close,
html[data-theme="dark"][data-theme] .registration-dialog__cancel,
html[data-theme="dark"][data-theme] .moderator-note a,
html[data-theme="dark"][data-theme] .detail-row i{background:#343a36!important;border-color:rgba(255,255,255,.18)!important;color:var(--section-ink,#f2f3f1)!important;}

html[data-theme="dark"][data-theme] .calendar-app .day-cell.is-selected .day-cell__number{background:var(--section-accent,#f40820)!important;color:#fff!important;}

html[data-theme="dark"][data-theme] .calendar-toolbar .today{background:var(--section-accent,#f40820)!important;color:#fff!important;}

html[data-theme="dark"][data-theme] .feed-status{background:#3c331d!important;color:#f6d566!important;}

html[data-theme="dark"][data-theme] .skeleton i{background:linear-gradient(90deg,#252b27,#343a36,#252b27)!important;}

html[data-theme="dark"][data-theme] .b27-date-popover,
html[data-theme="dark"][data-theme] .date-dialog,
html[data-theme="dark"][data-theme] .card-sheet,
html[data-theme="dark"][data-theme] .fontbox,
html[data-theme="dark"][data-theme] .bar[data-verse-actions]{background:rgba(35,39,37,.98)!important;border-color:rgba(255,255,255,.2)!important;color:#f2f3f1!important;}

html[data-theme="dark"][data-theme] .b27-date-popover strong,

html[data-theme="dark"][data-theme] .b27-date-popover .b27-calendar-day,
html[data-theme="dark"][data-theme] .b27-date-button b,
html[data-theme="dark"][data-theme] body[data-page="sunday"] .b27-date-button,
html[data-theme="dark"][data-theme] .fontbox output,
html[data-theme="dark"][data-theme] .fontbox .fontbox__title{color:#f2f3f1!important;}

html[data-theme="dark"][data-theme] .b27-calendar-weekdays,
html[data-theme="dark"][data-theme] .b27-date-button span,
html[data-theme="dark"][data-theme] .fontbox__label{color:#bbc2be!important;}

html[data-theme="dark"][data-theme] .b27-calendar-day.is-outside{color:#858f89!important;}

html[data-theme="dark"][data-theme] .b27-calendar-day.is-selected{background:var(--section-accent,#ffc900)!important;color:#141716!important;}

html[data-theme="dark"][data-theme] .b27-calendar-header button,
html[data-theme="dark"][data-theme] .b27-calendar-today,
html[data-theme="dark"][data-theme] body[data-page="sunday"] .b27-date-arrow,
html[data-theme="dark"][data-theme] body[data-page="sunday"] .b27-date-button,
html[data-theme="dark"][data-theme] body[data-page="sunday"] .clock,
html[data-theme="dark"][data-theme] .date-close,
html[data-theme="dark"][data-theme] .fontbox button:not(.is-active),
html[data-theme="dark"][data-theme] .bar[data-verse-actions] button,
html[data-theme="dark"][data-theme] .card-actions button,
html[data-theme="dark"][data-theme] .card-sheet .close{background:#343a36!important;border-color:rgba(255,255,255,.18)!important;color:#f2f3f1!important;}

html[data-theme="dark"][data-theme] [data-v2-native-file],
html[data-theme="dark"][data-theme] .card-sheet input[type="file"]{background:#2b302d!important;border-color:rgba(255,255,255,.25)!important;color:#f2f3f1!important;}

html[data-theme="dark"][data-theme] [data-v2-native-file] span{color:#bbc2be!important;}

html[data-theme="dark"][data-theme] [data-card-error]{color:#ffaba5!important;}

html[data-theme="dark"][data-theme] body[data-page="kids"] button,

html[data-theme="dark"][data-theme] body[data-page="kids"] select,

html[data-theme="dark"][data-theme] body[data-page="kids"] input{background:#343a36!important;color:#f2f3f1!important;border-color:rgba(255,255,255,.2)!important;}

html[data-theme="dark"][data-theme] body[data-page="kids"] .story[aria-current="true"]{background:#354727!important;border-color:#91ce16!important;}

html[data-theme="dark"][data-theme] body[data-page="listen"] .combined-settings,

html[data-theme="dark"][data-theme] body[data-page="listen"] .combined-tools button{background:#2b302d!important;border-color:rgba(255,255,255,.18)!important;color:#f2f3f1!important;}

html[data-theme="dark"][data-theme] select option{background:#232725!important;color:#f2f3f1!important;}

html[data-theme="dark"][data-theme] .nav,
html[data-theme="dark"][data-theme] .calendar-nav,
html[data-theme="dark"][data-theme] .nav-v2{background:rgba(35,39,37,.94)!important;border-color:rgba(255,255,255,.22)!important;}

html[data-theme="dark"][data-theme] .nav>a,
html[data-theme="dark"][data-theme] .calendar-nav>a,
html[data-theme="dark"][data-theme] .nav-v2>a{color:#bbc2be!important;}

html[data-theme="dark"][data-theme] .nav>a.active,
html[data-theme="dark"][data-theme] .calendar-nav>a.active,
html[data-theme="dark"][data-theme] .nav-v2>a.active{color:#f2f3f1!important;}
/* Reader dialogs: no pale surfaces with inherited white text. */
html[data-theme="dark"][data-theme] .sheet-v2,
html[data-theme="dark"][data-theme] .b27-studio__sheet{background:rgba(35,39,37,.98)!important;color:#f2f3f1!important;border-color:rgba(255,255,255,.18)!important}
html[data-theme="dark"][data-theme] .book-grid .book-tile:not(.is-selected),
html[data-theme="dark"][data-theme] .chapter-tile:not(.is-current),
html[data-theme="dark"][data-theme] .selected-book,
html[data-theme="dark"][data-theme] .translation-row-v2,
html[data-theme="dark"][data-theme] .empty-comments,
html[data-theme="dark"][data-theme] .tabs-v2,
html[data-theme="dark"][data-theme] .sheet-header-v2 button,
html[data-theme="dark"][data-theme] .b27-studio__close,
html[data-theme="dark"][data-theme] .b27-studio__actions button,
html[data-theme="dark"][data-theme] .b27-studio__primary,
html[data-theme="dark"][data-theme] .b27-studio__upload{background:#343a36!important;color:#f2f3f1!important;border-color:rgba(255,255,255,.18)!important}
html[data-theme="dark"][data-theme] .tabs-v2 .is-active{background:#354727!important;color:#b7e45f!important}
html[data-theme="dark"][data-theme] .testament-title.new{color:#c8b0ff!important}
html[data-theme="dark"][data-theme] .book-grid[data-old-books] .book-tile:not(.is-selected){border-color:#847234!important}
html[data-theme="dark"][data-theme] .book-grid[data-new-books] .book-tile:not(.is-selected){border-color:#76608e!important}
html[data-theme="dark"][data-theme] .sheet-handle,
html[data-theme="dark"][data-theme] .date-handle,
html[data-theme="dark"][data-theme] .card-sheet .handle{background:#77817b!important}
/* 31 — Calendar timeline wrappers and rows also had legacy light paint. */
html[data-theme="dark"][data-theme] .week-section{background:rgba(35,39,37,.94)!important;border-color:rgba(255,255,255,.18)!important;color:#f2f3f1!important}
html[data-theme="dark"][data-theme] .event-row{background:#2b302d!important;color:#f2f3f1!important;border-color:rgba(255,255,255,.14)!important}
