/* Lakeside's shared visual language. Keep functional component layouts intact. */
:root {
  --lcc-green: #173f36;
  --lcc-surface: #fffdf9;
  --lcc-soft: #edf1e9;
  --lcc-ring: #d5c4ae;
  --lcc-accent: #86623d;
  --lcc-accent-soft: #f1e8d9;
  --lcc-shadow: 0 6px 24px #263c2c06;
  --ink: #25392f;
  --muted: #607064;
  --paper: #f6f6f0;
  --white: #fffdf9;
  --navy: #173f36;
  --blue: #335c45;
  --orange: #d8b184;
  --line: var(--lcc-ring);
  color-scheme: light;
}
html[data-theme=dark] {
  --lcc-surface: #1b2b22;
  --lcc-soft: #24392d;
  --lcc-ring: #756045;
  --lcc-accent: #d0ad7e;
  --lcc-accent-soft: #3b3427;
  --lcc-shadow: 0 6px 24px #00000012;
  --ink: #eef0e8;
  --muted: #bcc7bd;
  --paper: #132019;
  --white: #1b2b22;
  --navy: #d0dfce;
  --blue: #b5cdbb;
  --orange: #d8b184;
  --line: var(--lcc-ring);
  color-scheme: dark;
  background: var(--paper);
  color: var(--ink);
}
html body { background: var(--paper); color: var(--ink); }
html { scroll-padding-top: 20px; }
:where(.section,.page-head,.panel,.card,.form-grid,.split,.actions,.life-grid,.account-layout,.workspace-content,.program-layout,.meeting-page) { min-width: 0; }
:where(h1,h2,h3,h4,p,li,dd,.preserve-lines) { overflow-wrap: break-word; }
:where(.cards,.form-grid,.split,.stats,.support-grid,.life-grid,.profile-details,.program-about) > * { min-width: 0; }
:where(.actions,.life-actions,.form-actions,.section-heading,.summary,.status-row) { flex-wrap: wrap; }
:where(.section-heading,.life-page-heading) > div { min-width: 0; }
:where(.section-heading,.life-page-heading) h1,
:where(.section-heading,.life-page-heading) h2,
:where(.section-heading,.life-page-heading) h3 { margin-bottom: 0; }
button,input,select,textarea { max-width: 100%; }
input,textarea,select { accent-color: #416b50; }
input::placeholder,textarea::placeholder { color: var(--muted); opacity: .88; }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid var(--lcc-accent); outline-offset: 3px; }
::selection { background: #c8d7b8; color: #163326; }

/* The brand, navigation, and account control always have breathing room. */
body > header {
  background: var(--lcc-surface);
  border-bottom: 1px solid var(--line);
  padding-inline: clamp(18px,4vw,64px);
  gap: 16px 24px;
}
body > header .brand { min-width: 0; }
body > header .header-church-name { color: var(--ink); }
body > header > nav { align-items: center; flex-wrap: wrap; min-width: 0; gap: 4px clamp(14px,1.45vw,23px); }
body > header > nav a { line-height: 1.4; padding-block: 9px; color: var(--ink); border-bottom-width: 2px; }
body > header > nav a:is(.active,[aria-current=page]) { border-color: var(--lcc-accent); }
body > header > nav a:hover { color: var(--lcc-accent); }
body > header > .account-link { flex: 0 0 auto; border-color: var(--lcc-ring); }
body > header > .account-link:not(.header-account-chip) { border-radius: 999px; padding: 10px 16px; background: var(--lcc-soft); color: var(--ink); min-height: 44px; }
html[data-theme] .header-account-menu { background: var(--lcc-surface); border-color: var(--lcc-ring); }
html[data-theme] .header-account-chip { border-color: var(--lcc-ring); }

/* Warm paper in light mode, evergreen surfaces edged in brown in dark mode. */
html[data-theme] :is(.section.white,.quick-links,.panel,.card,.card-body,.profile-panel,.life-card,.life-reading,.calendar-reminder,.phone-app-card,.life-feature,.location-card,.directory-person,.reader-settings-dialog,.photo-viewer) {
  background: var(--lcc-surface);
  color: var(--ink);
  border-color: var(--lcc-ring);
}
:is(.panel,.card,.life-card,.life-reading,.calendar-reminder,.phone-app-card,.location-card,.directory-person,.profile-panel,.reader-settings-dialog) {
  border-color: var(--lcc-ring);
  border-radius: 12px;
  box-shadow: var(--lcc-shadow);
}
html[data-theme] :is(.page-head,.location-details) {
  background: linear-gradient(120deg,var(--lcc-soft),var(--paper));
  color: var(--ink);
  border-color: var(--lcc-ring);
}
html[data-theme=dark] :is(.section,.life-shell) { background: var(--paper); color: var(--ink); }
.page-head .eyebrow { color: var(--lcc-accent); }
.page-head h1 { font-size: clamp(38px,4.5vw,62px); line-height: 1.1; }
.page-head p { line-height: 1.75; }
html[data-theme] :is(.card p,.intro,.inline-note,.hint,.life-date,.life-card p,.life-meta small,.support-location,.support-lead,.location-details > p,.directory-identity p,.prayer-summary small,.community-detail > small,.community-credit small,.photo-group-credit,.community-gallery-toolbar > small,.community-post > small,.profile-details small,.profile-details dt,.profile-welcome,.scripture-credit,.scripture-card figcaption,.topic-card-summary,.meeting-card-date,.meeting-card-meta) { color: var(--muted); }
html[data-theme] :is(.eyebrow,.life-category,.scripture-card .scripture-card-label) { color: var(--lcc-accent); }
html[data-theme] :is(.site-empty,.life-empty,.empty-state) { background: var(--lcc-soft); color: var(--muted); border-color: var(--line); }
.site-empty,.life-empty { border-radius: 10px; }
html[data-theme] .date-box,
html[data-theme] .prayer-date-box { background: var(--lcc-accent-soft); color: var(--lcc-accent); border: 1px solid var(--lcc-ring); border-radius: 7px; flex-shrink: 0; }
html[data-theme=dark] .date-box,
html[data-theme=dark] .prayer-date-box { color: #efd4ac; }
.date-mark { flex-wrap: wrap; gap: 12px; }
html[data-theme] .tag { background: var(--lcc-soft); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; font-size: 11px; line-height: 1.45; white-space: normal; }

/* Consistent touch targets, clear selection, and quiet borders. */
.btn { min-height: 44px; border-radius: 7px; max-width: 100%; white-space: normal; overflow-wrap: break-word; text-align: center; transition: background-color .15s,border-color .15s,box-shadow .15s; }
html[data-theme] .btn { background: #173f36; color: #fffdf5; border-color: #173f36; }
html[data-theme] .btn:hover { background: #244f3c; border-color: #49715b; }
html[data-theme=dark] .btn { background: #c6d8c3; color: #183525; border-color: #ad986f; }
html[data-theme=dark] .btn:hover { background: #d9e4cf; border-color: #d0ad7e; }
html[data-theme] .btn.outline { background: transparent; color: var(--ink); border-color: var(--lcc-ring); }
html[data-theme] .btn.outline:hover { background: var(--lcc-soft); border-color: var(--lcc-accent); }
html[data-theme] .btn.orange { background: #d8b184; color: #283328; border-color: #c59c6c; }
html[data-theme] .btn.orange:hover { background: #e5c7a0; border-color: #b48a59; }
html[data-theme] .btn.danger { background: transparent; color: #983d31; border-color: #cdaba0; }
html[data-theme] .btn.danger:hover { background: #f8e9e2; }
html[data-theme=dark] .btn.danger { color: #f4bcb0; border-color: #946458; background: #372820; }
html[data-theme=dark] .btn.danger:hover { background: #4a3025; }
html[data-theme] .text-button { color: var(--blue); line-height: 1.5; }
.text-link { text-underline-offset: 4px; line-height: 1.5; }
.tabs,.amounts { gap: 8px; }
html[data-theme] :is(.tabs button,.amounts button,.schedule-day-tabs button,.wizard-day-strip button,.wizard-segment-list button,.student-segments button,.topic-choice,.leader-choice,.topic-card,.meeting-steps button) {
  border-color: var(--lcc-ring); background: var(--lcc-surface); color: var(--ink); border-radius: 7px;
}
html[data-theme] :is(.tabs button,.amounts button,.schedule-day-tabs button) { min-height: 44px; }
html[data-theme] :is(.tabs button.selected,.amounts button.selected,.schedule-day-tabs button.selected,.wizard-day-strip button.selected,.wizard-segment-list button.selected,.topic-choice.selected,.topic-card.selected,.meeting-filters [aria-pressed=true],.meeting-steps button[aria-current]) {
  background: #244b38; color: #fffdf5; border-color: #8e7857;
}
html[data-theme=dark] :is(.tabs button.selected,.amounts button.selected,.schedule-day-tabs button.selected,.wizard-day-strip button.selected,.wizard-segment-list button.selected,.topic-choice.selected,.topic-card.selected,.meeting-filters [aria-pressed=true],.meeting-steps button[aria-current]) {
  background: #345341; color: #fffdf5; border-color: #bb9668;
}
html[data-theme] :is(.wizard-day-strip button.selected,.wizard-segment-list button.selected,.topic-choice.selected,.topic-card.selected,.meeting-steps button[aria-current]) :is(small,.topic-card-state,.topic-card-summary,.topic-card-summary b) { color: #dce5d6; }
html[data-theme] .meeting-steps button > span,
html[data-theme] .topic-choice > span,
html[data-theme] .topic-card-number { background: var(--lcc-soft); color: var(--ink); }
html[data-theme] .meeting-steps button[aria-current] > span,
html[data-theme] .topic-choice.selected > span,
html[data-theme] .topic-card.selected .topic-card-number { background: #ffffff20; color: #fffdf5; }
html[data-theme] :is(.event-periods,.life-navigation > .life-tabs a) { background: var(--lcc-soft); color: var(--ink); border-color: var(--line); }
html[data-theme] :is(.event-periods button,.event-periods button span) { color: var(--ink); }
html[data-theme] .event-periods button span { background: var(--lcc-surface); }
html[data-theme] :is(.event-periods button.selected,.life-navigation > .life-tabs a[aria-current=page]) { background: #244b38; color: #fffdf5; border-color: var(--lcc-accent); box-shadow: none; }
html[data-theme] .event-periods button.selected span { background: #ffffff24; color: #fffdf5; }
.life-navigation > .life-tabs a { min-height: 42px; }

/* Forms fit their column without crowding labels or actions. */
.field { gap: 8px; }
html[data-theme] .field :is(input,textarea,select),
html[data-theme] :is(.password-control,.password-control input,.password-control button) {
  background: var(--lcc-surface); color: var(--ink); border-color: var(--lcc-ring);
}
.field :is(input,textarea,select) { border-radius: 7px; min-width: 0; width: 100%; padding: 12px 13px; font-size: 16px; line-height: 1.5; }
.field :is(input[type=date],input[type=time],select) { min-height: 48px; }
.field input:is([type=checkbox],[type=radio]) { width: 18px; min-height: 18px; flex: none; }
.field textarea { line-height: 1.65; }
.password-control { border-radius: 7px; }
.password-control input { width: 0; border: 0; }
.password-control button { min-width: 60px; border-radius: 0 6px 6px 0; }
html[data-theme] .password-control button { background: var(--lcc-soft); }
.field input[type=file] { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
input[type=file]::file-selector-button { border: 1px solid var(--lcc-ring); border-radius: 5px; padding: 8px 10px; margin-right: 12px; background: var(--lcc-soft); color: var(--ink); cursor: pointer; font: inherit; }
html[data-theme] .profile-setup-panel input[readonly] { background: var(--lcc-soft); color: var(--muted); }
.check { line-height: 1.6; min-width: 0; }
.check input { flex: 0 0 18px; width: 18px; height: 18px; }
html[data-theme] :is(.notice,.notice.info,.signup-confirmation-help,.event-calendar-note,.summary,.result,.date-range-preview,.wizard-toolbar,.segment-info-editor,.school-header,.service-person,.life-verse,.assignment-card,.leader-selected) {
  background: var(--lcc-soft); color: var(--ink); border-color: var(--lcc-ring); border-radius: 8px;
}
.notice { border-left-color: var(--lcc-accent); }
html[data-theme] .notice.info { border-left-color: var(--lcc-green); }
html[data-theme=dark] .notice.info { border-left-color: var(--lcc-accent); }
html[data-theme] :is(.notice,.notice.info,.signup-confirmation-help,.summary,.service-person) :is(p,small) { color: var(--muted); }
html[data-theme] :is(.auth-success,.signed-in-label,.calendar-confirmed,.profile-feedback) { color: #386949; }
html[data-theme=dark] :is(.auth-success,.signed-in-label,.calendar-confirmed,.profile-feedback) { color: #b5d4af; }
html[data-theme=dark] .login-error { color: #f2b7a8; }

/* Scripture, programs, and meeting notes use the same restrained detailing. */
html[data-theme] .scripture-card { background: var(--lcc-soft); border-color: var(--lcc-ring); border-left-color: var(--lcc-accent); color: var(--ink); }
html[data-theme] .scripture-card blockquote p { color: var(--ink); }
.beliefs-page { --belief-accent: var(--lcc-accent); --belief-soft: var(--lcc-soft); --belief-border: var(--lcc-ring); }
html[data-theme=dark] .beliefs-page { --belief-accent: var(--lcc-accent); --belief-soft: var(--lcc-soft); --belief-border: var(--lcc-ring); }
html[data-theme] .beliefs-hero { background: radial-gradient(ellipse at top,var(--lcc-soft),transparent 75%),var(--paper); }
.beliefs-value { border-radius: 10px; }
html[data-theme] .verse-reference { color: var(--blue); border-color: var(--lcc-ring); }
html[data-theme] :is(.program-date-banner,.agenda-session,.agenda-details,.team-card,.meeting-live-bar,.topic-fields,.topic-record,.topic-edit-panel,.topic-board-empty,.minutes-preview,.attendance-options,.leader-results,.mention-suggestions,.gathering-times,.volunteer-person,.volunteer-list > div,.community-duration) {
  background: var(--lcc-surface); color: var(--ink); border-color: var(--lcc-ring);
}
html[data-theme] :is(.agenda-details,.topic-edit-panel,.topic-fields,.topic-record,.meeting-live-bar) { background: var(--lcc-soft); }
html[data-theme] :is(.agenda-time,.agenda-title small,.agenda-time small,.meeting-timer small,.attendance-total,.meeting-workflow-footer > p,.topic-card-state,.topic-detail strong,.writer-panel summary,.minutes-preview summary,.attendance-person small,.attendance-person .arrival-stamp,.leader-choice small,.mention-list-heading,.mention-suggestions small,.life-cue time) { color: var(--muted); }
html[data-theme] .meeting-timer strong { color: var(--ink); }
html[data-theme] :is(.meeting-card,.meeting-card-footer,.minutes-section,.topic-workspace,.topic-directory,.profile-save-actions,.community-duration,.gathering-times,.volunteer-person,.prayer-manage,.directory-assign,.directory-contact a) { border-color: var(--lcc-ring); }
html[data-theme] .meeting-card { border-top-color: var(--lcc-accent); }
html[data-theme] .meeting-card-footer .meeting-read-button { color: #fffdf5; }
html[data-theme=dark] .meeting-card-footer .meeting-read-button { color: #183525; }
html[data-theme] :is(.mention-suggestions [role=option],.photo-viewer button,.reader-settings-dialog .settings-heading button) { background: var(--lcc-surface); color: var(--ink); border-color: var(--lcc-ring); }
html[data-theme] :is(.mention-suggestions [role=option][aria-selected=true],.mention-suggestions [role=option]:hover,.leader-choice:hover,.leader-choice.selected,.life-cue:hover,.life-cue.current,.person-mention) { background: var(--lcc-soft); color: var(--ink); }
html[data-theme] .timeline-segment.color-0 { background: #254736; color: #fffdf5; }
html[data-theme] .timeline-segment.color-1 { background: #52745b; color: #fffdf5; }
html[data-theme] .timeline-segment.color-2 { background: #d4b58d; color: #293829; }
html[data-theme] .timeline-segment.color-3 { background: #dce6d4; color: #293829; }
html[data-theme] .timeline-segment.selected { outline-color: var(--lcc-accent); }
/* Range inputs sit above the sessions: their surface must stay transparent. */
html[data-theme] .timeline-marker {
  background: transparent; background-image: none; box-shadow: none;
  max-width: none; min-width: 0; min-height: 0; border-radius: 0;
  left: -11px; width: calc(100% + 22px); top: -6px; height: 66px;
  pointer-events: none;
}
.timeline-marker::-webkit-slider-runnable-track { background: transparent; }
.timeline-marker::-moz-range-track { background: transparent; }
.timeline-marker::-moz-range-progress { background: transparent; }
.timeline-marker::-webkit-slider-thumb {
  width: 22px; height: 66px; margin-top: -33px; border: 3px solid #fcfbf5;
  background: #335440; box-shadow: 0 0 0 1px var(--lcc-ring); border-radius: 6px;
  touch-action: none;
}
.timeline-marker::-moz-range-thumb {
  width: 22px; height: 66px; border: 3px solid #fcfbf5; background: #335440;
  box-shadow: 0 0 0 1px var(--lcc-ring); border-radius: 6px; touch-action: none;
}
.timeline-canvas { height: 104px; margin-inline: 12px; }
.timeline-bar { top: 34px; height: 54px; }
.timeline-ticks { top: 23px; height: 8px; }
.timeline-ticks i { height: 6px; border-color: var(--lcc-ring); }
.timeline-axis { height: 22px; }
.timeline-axis span { font-size: 11px; line-height: 1.4; }
.timeline-segment { padding: 6px 12px; gap: 3px; border-radius: 4px; }
.timeline-segment strong { font-size: 12px; line-height: 1.4; }
.timeline-segment span { font-size: 10px; line-height: 1.4; }
.timeline-segment.selected { box-shadow: inset 0 0 0 2px #fcfbf5; }
.timeline-scroll { padding-block: 12px 4px; scrollbar-width: thin; scrollbar-color: var(--lcc-accent) var(--lcc-soft); }
.schedule-wizard .timeline-actions { margin-top: 10px; gap: 8px; }
.schedule-wizard .timeline-actions .btn { padding: 9px 12px; font-size: 12px; min-height: 44px; }
.schedule-wizard .timeline-help { font-size: 12px; line-height: 1.6; margin-block: 10px 0; }
.schedule-wizard .wizard-toolbar { padding: 14px; gap: 10px; }
.schedule-wizard .wizard-toolbar :is(.hint,.inline-note) { font-size: 12px; line-height: 1.5; }
.schedule-wizard .wizard-toolbar > .btn { font-size: 12px; }
.schedule-wizard .wizard-detail-grid { margin-top: 18px; }
.schedule-wizard .wizard-segment-list button { padding: 10px 12px; gap: 4px; }
.schedule-wizard .wizard-segment-list small { font-size: 11px; }
.schedule-wizard .wizard-segment-list strong { font-size: 13px; }

/* Profile and directory: avatars remain fixed while names have room to wrap. */
html[data-theme] .profile-cover { background: linear-gradient(120deg,var(--lcc-soft),var(--lcc-accent-soft)); border-color: var(--lcc-ring); }
html[data-theme] :is(.profile-details,.profile-welcome,.profile-feedback,.profile-edit-body) { background: var(--lcc-surface); }
html[data-theme] .profile-cover .person-avatar { box-shadow: 0 0 0 4px var(--lcc-surface),0 0 0 5px var(--lcc-ring); }
.profile-cover h2 { line-height: 1.15; overflow-wrap: break-word; word-break: normal; }
.person-summary > span:last-child,.directory-identity > div { min-width: 0; }
.person-avatar { background: #e1e9db; color: #284b35; }
html[data-theme=dark] .person-avatar { background: #38503b; color: #f0eadb; }
html[data-theme] .directory-contact a { color: var(--ink); }
.directory-identity h2 { font-family: 'DM Sans',Arial,sans-serif; font-size: 16px; }
.directory-identity .person-avatar.large { width: 42px; height: 42px; flex-basis: 42px; }

/* Preserve full-width manager work areas while bringing their palette together. */
.workspace-shell,
html[data-theme=dark] .workspace-shell { --workspace-surface: var(--lcc-surface); --workspace-soft: var(--lcc-soft); --workspace-border: var(--lcc-ring); --workspace-active: #244b38; --workspace-active-text: #fffdf5; }
html[data-theme] .workspace-shell { background: transparent; }
html[data-theme] .workspace-shell :is(.workspace-navigation-panel,.workspace-content > .panel,.workspace-stats .stat) { box-shadow: var(--lcc-shadow); }
html[data-theme] .workspace-heading .eyebrow { color: var(--lcc-accent); }
html[data-theme] .workspace-shell .workspace-nav button { border-color: var(--lcc-ring); }
html[data-theme] .workspace-shell .workspace-nav button:hover { background: var(--lcc-accent-soft); color: var(--ink); border-color: var(--lcc-accent); }
html[data-theme] .workspace-shell .workspace-nav button.selected { background: #244b38; color: #fffdf5; border-color: #a08359; }
html[data-theme=dark] .workspace-shell .workspace-nav button.selected { background: #345341; border-color: #c19a68; }
html[data-theme] .workspace-user .tag { background: var(--lcc-soft); color: var(--ink); }
html[data-theme] :is(.stat,.giving-stats article,.finance-months > div) { background: var(--lcc-surface); color: var(--ink); border: 1px solid var(--lcc-ring); border-radius: 10px; }
html[data-theme] :is(.stat strong,.giving-stats strong) { color: var(--ink); }
html[data-theme] :is(.access-person,.admin-row,.life-admin-row,.status-row,th,td,.editor-section,.balance-card,.schedule-editor-row,.program-schedule li) { border-color: var(--lcc-ring); }
.workspace-content .table-wrap { max-width: 100%; border: 1px solid var(--lcc-ring); border-radius: 8px; }
.workspace-content table { background: var(--lcc-surface); }
.workspace-content th { background: var(--lcc-soft); }
.workspace-content .table-wrap td { vertical-align: top; }

/* Modals keep their controls on-screen, including long stories and addresses. */
html[data-theme] :is(.session-dialog,.attendance-dialog,.calendar-reminder,.phone-install-dialog,.scripture-popup,.reader-settings-dialog,dialog) { background: var(--lcc-surface); color: var(--ink); border-color: var(--lcc-ring); box-shadow: 0 20px 70px #081d1640; }
dialog { max-width: calc(100vw - 28px); max-height: calc(100dvh - 32px); }
dialog::backdrop { background: #0d211cb0; backdrop-filter: blur(3px); }
html[data-theme] :is(.scripture-popup-heading,.scripture-popup-footer,.scripture-close,.bible-connection,.bible-help) { border-color: var(--lcc-ring); }
html[data-theme] .scripture-close { color: var(--ink); }
.scripture-popup-footer { flex-wrap: wrap; }
.scripture-popup-heading > div { min-width: 0; }
.photo-viewer-toolbar > :first-child,.photo-viewer-caption > :first-child { min-width: 0; overflow-wrap: break-word; }
/* Photo tiles intentionally retain square edges and their two-pixel grouping. */
.life-gallery.community-album img { border-radius: 0; }

/* The separate Bible reader remains edge-to-edge and uses the same theme. */
html[data-theme] :is(.reader-app,.bible-main,.bible-reader) { background: var(--paper); color: var(--ink); }
html[data-theme] [data-yv-sdk] {
  --yv-background: var(--paper);
  --yv-foreground: var(--ink);
  --yv-card: var(--lcc-surface);
  --yv-card-foreground: var(--ink);
  --yv-popover: var(--lcc-surface);
  --yv-popover-foreground: var(--ink);
  --yv-primary: #244b38;
  --yv-primary-foreground: #fffdf5;
  --yv-secondary: var(--lcc-soft);
  --yv-secondary-foreground: var(--ink);
  --yv-muted: var(--lcc-soft);
  --yv-muted-foreground: var(--muted);
  --yv-accent: var(--lcc-soft);
  --yv-accent-foreground: var(--ink);
  --yv-border: var(--lcc-ring);
  --yv-input: var(--lcc-soft);
  --yv-ring: var(--lcc-accent);
}
html[data-theme=dark] [data-yv-sdk] { --yv-primary: #c6d8c3; --yv-primary-foreground: #183525; }
html[data-theme] .reader-bar { background: var(--lcc-surface); border-color: var(--lcc-ring); color: var(--ink); }
.reader-bar { min-width: 0; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
.reader-bar :is(.reader-back,.reader-settings) { min-width: 0; line-height: 1.3; }
html[data-theme] :is(.bible-tools button,.bible-signout) { background: var(--lcc-soft); color: var(--ink); border-color: var(--lcc-ring); }
html[data-theme] :is(.bible-connection small,.bible-help,.reader-settings-dialog p) { color: var(--muted); }
html[data-theme] .reader-settings-dialog a { color: var(--blue); }
.reader-settings-dialog .settings-heading { flex-wrap: nowrap; }
.reader-settings-dialog .settings-heading button { flex: 0 0 44px; }
.bible-tools [role=group] { flex-wrap: wrap; gap: 12px; }
.reader-settings-dialog { overscroll-behavior: contain; }

/* Hero and footer have intentional, consistently high-contrast brand surfaces. */
.hero { background-image: linear-gradient(90deg,#102a22eb,#153329ae 43%,#173f363d),url('https://images.unsplash.com/photo-1512882549909-02d06bf80585?fm=jpg&ixlib=rb-4.1.0&q=85&w=2400'); }
html[data-theme] .hero :is(h1,p) { color: #fffdf5; }
html[data-theme] .hero .eyebrow { color: #e8c49a; }
html[data-theme] .hero .highlight { color: #e8c49a; }
html[data-theme] .hero .btn.outline { color: #fffdf5; border-color: #d8bc96b3; background: #173f3624; }
html[data-theme] .hero .btn.outline:hover { background: #173f368a; }
html[data-theme] :is(.feature-block,.watch-shell,.watch-frame,.meeting-save-bar) .btn.outline { background: transparent; color: #fffdf5; border-color: #c6ad86; }
html[data-theme] :is(.feature-block,.watch-shell,.watch-frame,.meeting-save-bar) .btn.outline:hover { background: #ffffff14; }
html[data-theme] .quick-links { color: var(--ink); }
html[data-theme] .quick-links a { color: var(--ink); border-color: var(--lcc-ring); }
html[data-theme] .quick-links :is(small,.mini-icon) { color: var(--muted); }
.quick-links .mini-icon { flex: 0 0 35px; }
html[data-theme] :is(.feature-block,.watch-shell,.watch-frame,.meeting-save-bar) { background: #183e30; color: #fffdf5; border: 1px solid #8b7150; border-radius: 12px; }
html[data-theme] :is(.feature-block,.watch-shell,.watch-frame,.meeting-save-bar) :is(p,small) { color: #dce7d9; }
html[data-theme] .feature-block .eyebrow { color: #e8c49a; }
html[data-theme] .watch-caption { color: #e4edde; }
html[data-theme] body > footer { background: #14352b; color: #f7f2e8; border-top: 1px solid #937952; gap: 24px 34px; }
html[data-theme] body > footer p { color: #d4ded1; }
html[data-theme] body > footer > small { color: #c2cbbd; border-color: #91765080; }
body > footer > div { flex-wrap: wrap; gap: 12px 24px; }
body > footer a { line-height: 1.5; }
body > footer > div a { text-underline-offset: 5px; }
body > footer > div a:hover { text-decoration: underline; }
html[data-theme] #toast { background: #244b38; color: #fffdf5; border: 1px solid #b59a72; border-radius: 9px; line-height: 1.5; }

@media (min-width:1281px) and (max-width:1500px) {
  body > header { flex-wrap: wrap; }
  body > header > nav { order: 3; width: 100%; justify-content: center; }
}
@media (max-width:950px) {
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .support-give { grid-template-columns: minmax(0,1fr); }
  .quick-links a { align-items: flex-start; }
  .section-heading { align-items: flex-start; }
  .program-layout { gap: 22px; }
}
@media (max-width:700px) {
  body > header > nav { justify-content: flex-start; overflow: visible; white-space: normal; font-size: 12px; gap: 2px 17px; }
  body > header > nav a { padding-block: 9px; }
  .section-heading { gap: 16px; }
  .section-heading .text-link { white-space: normal; }
  .life-compact-shell.section { padding-inline: 16px; }
  .life-navigation > .life-tabs { gap: 6px; }
  .life-navigation > .life-tabs a { flex: 0 1 auto; font-size: 12px; padding: 10px 12px; }
  .life-actions { gap: 9px; }
  .event-periods { display: flex; flex-wrap: nowrap; gap: 3px; }
  .event-periods button { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 6px 4px; justify-content: center; gap: 4px; line-height: 1.2; overflow-wrap: anywhere; }
  .event-periods button span { flex: none; }
  .life-grid > .life-empty { grid-column: 1 / -1; padding: 20px; }
  .life-grid > .life-empty h3 { margin: 0 0 6px; font-size: 1.2rem; line-height: 1.3; }
  .life-grid > .life-empty p { margin: 0; }
  .community-gallery-toolbar .check { max-width: 100%; }
  .profile-details { gap: 20px; }
  .photo-viewer-toolbar,.photo-viewer-nav { gap: 8px; }
  .photo-viewer button { min-height: 44px; padding: 9px 12px; }
  .attendance-person { align-items: flex-start; }
  .attendance-person input { margin-top: 12px; }
  .attendance-person .person-avatar { margin-top: 4px; }
}
@media (max-width:600px) {
  body > header { padding: 14px 16px 10px; gap: 12px 10px; }
  body > header .header-church-name { font-size: 24px; }
  body > header .header-church-name > span { font-size: 8px; letter-spacing: 1.1px; }
  body > header > .account-link:not(.header-account-chip) { max-width: 110px; padding: 10px 12px; font-size: 12px; }
  .hero { min-height: 480px; padding: 48px 22px; }
  .hero h1 { font-size: clamp(43px,10.5vw,56px); }
  .hero p { font-size: 17px; line-height: 1.75; }
  .hero .actions { gap: 10px; }
  .hero .actions .btn { padding: 12px 16px; font-size: 13px; }
  .section { padding: 40px 20px; }
  .page-head { padding: 32px 20px; }
  .page-head h1 { font-size: 40px; }
  .page-head p { font-size: 15px; }
  .panel,.card-body { padding: 22px 20px; }
  .cards,.support-grid,.form-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .account-home { padding: 30px 16px 44px; }
  .account-page-heading h1 { font-size: 34px; }
  .profile-cover { grid-template-columns: 64px minmax(0,1fr); gap: 18px; padding: 24px 20px; }
  .profile-cover h2 { font-size: 29px; }
  .profile-cover .eyebrow { line-height: 1.6; }
  .profile-cover > .btn { min-height: 42px; }
  .prayer-heading { align-items: flex-start; }
  .prayer-heading > div:last-child { min-width: 0; }
  .prayer-heading h2 { line-height: 1.25; }
  .prayer-date-box { flex-basis: 52px; height: 62px; }
  .meeting-editor .section-heading,.meeting-document .section-heading { flex-wrap: wrap; }
  .meeting-live-bar { gap: 10px; }
  .meeting-live-actions { min-width: 0; }
  .meeting-live-actions .btn { max-width: 160px; min-height: 40px; }
  .meeting-live-actions .attendance-total { white-space: normal; }
  .meeting-save-bar .actions .btn { flex: 1 1 130px; }
  .workspace-shell { padding-inline: 16px; }
  .workspace-shell .workspace-content > .panel { padding: 22px 18px; }
  .workspace-shell .workspace-content .section-heading > .actions { width: 100%; }
  .workspace-content .admin-row { gap: 14px; }
  .workspace-content .admin-row > .actions { justify-content: flex-start; }
  .finance-months { gap: 10px; }
  .finance-months > div { padding: 14px; }
  .program-quick-meta { align-items: flex-start; gap: 12px; }
  .program-date-banner { margin-inline: 20px; }
  .agenda-session summary { align-items: flex-start; }
  .agenda-title > strong { line-height: 1.4; }
  .topic-edit-heading > .field { min-width: 0; flex-basis: 100%; }
  .scripture-popup-heading h2 { overflow-wrap: break-word; }
  .phone-install-dialog,.calendar-reminder { padding: 24px 20px; }
  body > footer { padding: 34px 22px; }
  body > footer > div { gap: 10px 20px; font-size: 13px; }
  body > footer .footer-church-icon { width: 52px; height: 52px; }
  body > footer .footer-church-name { font-size: 28px; }
  .loading { padding: 56px 20px; }
}
@media (max-width:360px) {
  body > header .brand { gap: 8px; }
  body > header .header-church-icon { width: 40px; height: 40px; }
  body > header .header-church-name { font-size: 21px; }
  body > header .header-church-name > span { font-size: 7px; letter-spacing: .9px; }
  body > header > nav { gap: 2px 14px; }
  .section { padding-inline: 16px; }
  .hero .actions .btn { flex: 1 1 120px; }
  .profile-cover { grid-template-columns: 54px minmax(0,1fr); gap: 16px; padding-inline: 16px; }
  .profile-cover .person-avatar { width: 54px; height: 54px; }
  .profile-cover h2 { font-size: 27px; }
  .meeting-live-bar { flex-wrap: wrap; }
  .meeting-live-actions { flex: 1; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
  .reader-brand { gap: 5px; font-size: 13px; }
  .reader-back { gap: 5px; padding-inline: 4px; }
  .reader-settings { padding-inline: 4px; }
}
@media (prefers-reduced-motion:reduce) {
  .btn { transition: none; }
}
@media print {
  html[data-theme] body,
  html[data-theme] :is(.section,.panel,.card,.life-reading,.meeting-document,.topic-record,.scripture-card) { background: white; color: #17271e; box-shadow: none; }
}
