:root {
  --newapp-surface: #ffffff;
  --newapp-surface-soft: #f8f9fa;
  --newapp-border: rgba(0, 0, 0, 0.08);
  --newapp-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --newapp-radius: 20px;
  --newapp-bottom-space: 104px;
  --newapp-primary: var(--phsa-primary);
  --newapp-primary-soft: rgba(50, 90, 168, 0.10);
  --newapp-primary-dark: var(--phsa-primary-dark);
}

[data-bs-theme="dark"] {
  --newapp-surface: #161a20;
  --newapp-surface-soft: #1d232c;
  --newapp-border: rgba(255, 255, 255, 0.08);
  --newapp-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  --newapp-primary-soft: rgba(125, 164, 236, 0.14);
}

.newapp-body {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 220px);
  color: #212529;
}

[data-bs-theme="dark"] .newapp-body {
  background: linear-gradient(180deg, #11151b 0%, #0b0f14 280px);
  color: #e9ecef;
}

.newapp-main {
  padding-bottom: var(--newapp-bottom-space);
}

.newapp-feed-page,
.newapp-devotional-view-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 12px;
}

.newapp-feed-intro,
.newapp-feed-card,
.newapp-devotional-view-head,
.newapp-devotional-reading,
.newapp-devotional-actions,
.newapp-devotional-comments {
  background: var(--newapp-surface);
  border: 1px solid var(--newapp-border);
  border-radius: var(--newapp-radius);
  box-shadow: var(--newapp-shadow);
}

.newapp-feed-intro,
.newapp-devotional-view-head,
.newapp-devotional-reading,
.newapp-devotional-actions,
.newapp-devotional-comments {
  padding: 16px;
}

.newapp-feed-search .input-group {
  align-items: stretch;
}

.newapp-feed-search .input-group-text,
.newapp-feed-search .form-control {
  min-height: 42px;
  background: var(--newapp-surface-soft);
}

.newapp-feed-search .input-group-text {
  border-radius: 12px 0 0 12px;
}

.newapp-feed-search .form-control {
  border-radius: 0;
}

.newapp-feed-search .bto {
  border-radius: 0 12px 12px 0;
  min-width: 44px;
}

.newapp-feed-card {
  padding: 16px;
  margin-bottom: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.newapp-feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.newapp-feed-card-title {
  color: var(--newapp-primary-dark);
  font-size: 1.08rem;
  font-weight: 700;
}

.newapp-feed-card-reference {
  letter-spacing: 0.025em;
}

.newapp-feed-card-excerpt {
  color: var(--bs-secondary-color);
  line-height: 1.6;
  margin-top: 14px;
  overflow-wrap: anywhere;
}

.newapp-feed-card-avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--newapp-border);
  flex-shrink: 0;
}

.newapp-devotional-reading-content {
  line-height: 1.8;
  font-size: 1rem;
}

.newapp-devotional-reading-content h1,
.newapp-devotional-reading-content h2,
.newapp-devotional-reading-content h3 {
  color: var(--newapp-primary-dark);
  margin-top: 1.25rem;
}

.newapp-devotional-reading-content img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 575.98px) {
  .newapp-feed-page,
  .newapp-devotional-view-page {
    padding: 12px 8px;
  }

  .newapp-feed-intro,
  .newapp-feed-card,
  .newapp-devotional-view-head,
  .newapp-devotional-reading,
  .newapp-devotional-actions,
  .newapp-devotional-comments {
    padding: 12px;
  }

  .newapp-feed-card-excerpt {
    margin-top: 10px;
  }

  .newapp-feed-card .devTotalView,
  .newapp-feed-card .devTotalLike,
  .newapp-feed-card .devTotalComentario {
    display: none;
  }
}

.newapp-topbar {
  backdrop-filter: blur(12px);
}

.newapp-topbar-btn,
.newapp-profile-btn {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 600;
}

.newapp-topbar-link {
  color: var(--bs-body-color);
  text-decoration: none;
  padding: 8px 0;
}

.newapp-topbar-link.active {
  color: var(--newapp-primary-dark);
}

.newapp-brand-logo {
  max-height: 52px;
  width: auto;
}

.newapp-profile-photo {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 8px;
}

.newapp-section {
  margin-bottom: 18px;
}

.newapp-elevated-carousel {
  padding: 6px 0;
}

.newapp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.newapp-section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 6px;
}

[data-bs-theme="dark"] .newapp-section-tag {
  color: #9aa4b2;
}

.newapp-section-title {
  font-size: 1.2rem;
  margin: 0;
}

.newapp-hero-card,
.newapp-profile-card,
.newapp-callout-card,
.newapp-link-card,
.newapp-giving-card,
.newapp-event-highlight,
.newapp-event-card,
.newapp-shortcut-card,
.newapp-devotional-card,
.newapp-devotional-feature,
.newapp-address-card,
.newapp-empty-card,
.newapp-bible-wrap {
  background: var(--newapp-surface);
  border: 1px solid var(--newapp-border);
  border-radius: var(--newapp-radius);
  box-shadow: var(--newapp-shadow);
}

.newapp-hero-card {
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(50, 90, 168, 0.14), transparent 28%),
    radial-gradient(circle at left center, rgba(50, 90, 168, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

[data-bs-theme="dark"] .newapp-hero-card {
  background:
    radial-gradient(circle at top right, rgba(125, 164, 236, 0.16), transparent 28%),
    radial-gradient(circle at left center, rgba(125, 164, 236, 0.08), transparent 24%),
    linear-gradient(180deg, #171c23 0%, #12171e 100%);
}

#newappCarousel {
  position: relative;
}

.newapp-carousel-control {
  width: 22px;
  opacity: 1;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.newapp-carousel-control.carousel-control-prev {
  left: 0;
}

.newapp-carousel-control.carousel-control-next {
  right: 0;
}

.newapp-carousel-control-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--phsa-primary);
}

.newapp-carousel-control-icon i {
  font-size: 1.05rem;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.85);
}

.newapp-hero-card-inner {
  height: 100%;
  min-height: 0;
  padding: 18px 22px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.newapp-hero-image-link,
.newapp-hero-image {
  display: block;
  width: 100%;
  height: 100%;
}

.newapp-hero-image-link {
  position: relative;
  overflow: hidden;
}

.newapp-hero-video-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 34%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.newapp-hero-video-label,
.newapp-hero-video-title,
.newapp-hero-video-play {
  position: absolute;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.newapp-hero-video-label {
  top: 14px;
  left: 16px;
  font-size: .8rem;
  font-weight: 700;
}

.newapp-hero-video-title {
  right: 16px;
  bottom: 14px;
  left: 16px;
  font-size: clamp(1rem, 2.3vw, 1.45rem);
  font-weight: 800;
}

.newapp-hero-video-play {
  top: 50%;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(49, 90, 166, 0.9);
  transform: translate(-50%, -50%);
  font-size: 1.15rem;
}

.newapp-hero-image {
  object-fit: cover;
}

.newapp-hero-category {
  min-height: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--newapp-primary);
  margin-bottom: 6px;
}

.newapp-hero-title {
  font-size: 1.35rem;
  line-height: 1.25;
  min-height: 0;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.newapp-hero-text {
  color: #495057;
  min-height: 0;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-bs-theme="dark"] .newapp-hero-text,
[data-bs-theme="dark"] .text-muted {
  color: #adb5bd !important;
}

.newapp-hero-cta {
  margin-top: auto;
  text-align: center;
}

.newapp-profile-card,
.newapp-callout-card,
.newapp-giving-card,
.newapp-live-card {
  padding: 20px;
}

.newapp-callout-card,
.newapp-giving-card,
.newapp-live-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.newapp-member-login-card {
  overflow: hidden;
  border-radius: var(--newapp-radius);
  border: 1px solid var(--newapp-border);
  background:
    linear-gradient(180deg, rgba(50, 90, 168, 0.04) 0%, rgba(255, 255, 255, 0.98) 32%);
  box-shadow: var(--newapp-shadow);
}

.newapp-member-login-card.is-alert {
  border-color: rgba(220, 53, 69, 0.26);
  box-shadow: 0 18px 36px rgba(220, 53, 69, 0.12);
}

[data-bs-theme="dark"] .newapp-member-login-card {
  background:
    linear-gradient(180deg, rgba(125, 164, 236, 0.06) 0%, rgba(22, 26, 32, 0.98) 34%);
}

.newapp-member-login-body {
  padding: 18px;
}

.newapp-member-login-title {
  margin: 8px 0 6px;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--newapp-primary-dark);
}

.newapp-member-login-copy {
  margin-bottom: 14px;
  color: #6c757d;
  line-height: 1.45;
}

[data-bs-theme="dark"] .newapp-member-login-copy {
  color: #adb5bd;
}

.newapp-member-login-form {
  display: grid;
  gap: 12px;
}

.newapp-member-login-input {
  min-height: 48px;
}

.newapp-member-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.newapp-member-login-actions .bto {
  min-height: 46px;
}

.newapp-member-login-alert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(220, 53, 69, 0.08);
  color: #b02a37;
  font-weight: 600;
}

.newapp-member-login-panel,
.newapp-member-recovery-panel {
  margin-top: 12px;
  text-align: left;
}

.newapp-member-login-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 0.9rem;
  color: #6c757d;
}

[data-bs-theme="dark"] .newapp-member-login-footer {
  color: #adb5bd;
}

.newapp-profile-card {
  padding: 0;
  overflow: hidden;
}

.newapp-profile-card.is-alert {
  border-color: rgba(220, 53, 69, 0.26);
  box-shadow: 0 18px 36px rgba(220, 53, 69, 0.12);
}

.newapp-church-card {
  background:
    linear-gradient(180deg, rgba(50, 90, 168, 0.03) 0%, rgba(255, 255, 255, 1) 32%);
}

[data-bs-theme="dark"] .newapp-church-card {
  background:
    linear-gradient(180deg, rgba(125, 164, 236, 0.06) 0%, rgba(22, 26, 32, 1) 34%);
}

.newapp-profile-cover {
  height: 104px;
  background-color: var(--newapp-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.newapp-profile-body {
  padding: 0 20px 20px;
  margin-top: -44px;
}

.newapp-church-card-cover {
  height: 128px;
  background-image:
    linear-gradient(180deg, rgba(50, 90, 168, 0.18), rgba(50, 90, 168, 0.72)),
    url("../../../../storage/site/iprcontagem_background.jpg");
}

.newapp-profile-card-photo {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  background: #fff;
}

[data-bs-theme="dark"] .newapp-profile-card-photo {
  border-color: #161a20;
  background: #fff;
}

.newapp-church-card-logo {
  object-fit: contain;
  padding: 10px;
  background: #fff;
}

.newapp-profile-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 14px 0 4px;
  color: #2f3438;
}

[data-bs-theme="dark"] .newapp-profile-name,
[data-bs-theme="dark"] .h6.text-dark,
[data-bs-theme="dark"] .h5,
[data-bs-theme="dark"] .newapp-section-title {
  color: #f1f3f5 !important;
}

.newapp-church-card-name {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.newapp-profile-meta {
  font-size: 0.92rem;
  color: #6c757d;
  line-height: 1.35;
}

[data-bs-theme="dark"] .newapp-profile-meta {
  color: #adb5bd;
}

.newapp-church-card-theme {
  max-width: 560px;
  margin: 0 auto 6px;
  font-size: 0.97rem;
}

.newapp-church-card-body {
  padding-bottom: 22px;
}

.newapp-church-content {
  padding: 0 8px;
}

.newapp-profile-meta + .newapp-profile-meta {
  margin-top: 2px;
}

.newapp-member-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 16px;
}

.newapp-member-link {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 62px;
  padding: 8px 6px;
  text-decoration: none;
  font-size: clamp(0.58rem, 2.2vw, 0.78rem);
  font-weight: 600;
  line-height: 1.15;
}

.newapp-member-link i {
  font-size: 1rem;
}

.newapp-member-link span {
  display: block;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.newapp-member-event-search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 10px;
  font-size: clamp(0.72rem, 2.4vw, 0.86rem);
}

.newapp-member-event-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.newapp-member-event-actions .bto {
  min-width: 0;
  white-space: nowrap;
  font-size: clamp(0.58rem, 2.2vw, 0.86rem);
  padding-inline: clamp(0.3rem, 1.8vw, 0.75rem);
}

.newapp-profile-page-card {
  overflow: hidden;
}

.newapp-profile-page-cover {
  min-height: 132px;
}

.newapp-profile-page-body {
  padding-bottom: 18px;
}

.newapp-profile-photo-wrap {
  margin-top: -50px;
}

.newapp-profile-page-photo {
  width: 100px;
  height: 100px;
}

.newapp-profile-links {
  margin-top: 18px;
}

.newapp-profile-ministries {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.newapp-profile-contact-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.newapp-profile-contact-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--newapp-primary-soft);
  color: var(--newapp-primary-dark);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(50, 90, 168, 0.12);
}

.newapp-profile-contact-icon i {
  font-size: 1.15rem;
}

.newapp-live-card {
  border-radius: var(--newapp-radius);
  background: linear-gradient(135deg, var(--newapp-primary-dark) 0%, var(--newapp-primary) 100%);
  box-shadow: 0 14px 30px rgba(50, 90, 168, 0.24);
}

.newapp-link-card,
.newapp-event-card,
.newapp-devotional-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}

.newapp-link-icon,
.newapp-event-date {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--newapp-primary-soft);
  color: var(--newapp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.newapp-link-icon i {
  font-size: 1.35rem;
}

.newapp-event-highlight,
.newapp-address-card,
.newapp-empty-card,
.newapp-bible-wrap {
  padding: 20px;
}

.newapp-giving-box {
  padding: 16px;
  background: var(--newapp-surface-soft);
  border: 1px solid var(--newapp-border);
  border-radius: 16px;
}

.newapp-church-card-section {
  height: 100%;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--newapp-border);
}

[data-bs-theme="dark"] .newapp-church-card-section,
[data-bs-theme="dark"] .newapp-giving-minimal {
  background: rgba(255, 255, 255, 0.03);
}

.newapp-church-pix-card {
  padding: 16px;
  border-radius: 18px;
}

.newapp-copy-pix {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 1rem;
}

.newapp-copy-pix span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

.newapp-copy-pix i:last-child {
  font-size: 1rem;
  opacity: 0.8;
}

.newapp-church-social {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--newapp-border);
}

.newapp-church-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.newapp-church-icon-link {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  background: var(--newapp-primary-soft);
  color: var(--newapp-primary-dark);
  box-shadow: 0 8px 18px rgba(50, 90, 168, 0.12);
}

.newapp-church-icon-link i {
  font-size: 1.15rem;
}

.newapp-access-shell {
  background: var(--newapp-surface);
  border: 1px solid var(--newapp-border);
  border-radius: 26px;
  box-shadow: var(--newapp-shadow);
  padding: 20px;
}

.newapp-access-hero,
.newapp-giving-card {
  height: 100%;
}

.newapp-access-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.newapp-access-hero-media {
  position: relative;
  min-height: 240px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 41, 83, 0.08), rgba(18, 41, 83, 0.72)),
    url("../../../../storage/site/iprcontagem_background.jpg");
  background-size: cover;
  background-position: center;
}

.newapp-access-hero-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--newapp-primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.newapp-access-hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 18px 18px;
  color: #fff;
}

.newapp-access-hero-overlay p {
  color: rgba(255, 255, 255, 0.84);
}

.newapp-access-contact {
  padding: 16px;
  border-radius: 20px;
  background: var(--newapp-surface-soft);
  border: 1px solid var(--newapp-border);
}

.newapp-access-link {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--newapp-border);
  color: #212529;
  font-weight: 600;
}

.newapp-access-link i {
  width: 20px;
  text-align: center;
  color: var(--newapp-primary);
}

.newapp-giving-card {
  display: block;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(50, 90, 168, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.newapp-giving-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.newapp-giving-highlight {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--newapp-primary-soft);
  color: #212529;
}

.newapp-account-line + .newapp-account-line {
  margin-top: 4px;
}

.newapp-account-item + .newapp-account-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--newapp-border);
}

.newapp-giving-minimal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--newapp-border);
}

.newapp-events-carousel .slick-list,
.newapp-devotionals-carousel .slick-list {
  margin: 0 -8px;
}

.newapp-events-carousel {
  position: relative;
}

.newapp-devotionals-carousel {
  position: relative;
}

.newapp-events-carousel .newapp-slick-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--phsa-primary);
  transform: translateY(-50%);
}

.newapp-devotionals-carousel .newapp-slick-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--phsa-primary);
  transform: translateY(-50%);
}

.newapp-events-carousel .newapp-slick-arrow i {
  font-size: 1.05rem;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.85);
}

.newapp-devotionals-carousel .newapp-slick-arrow i {
  font-size: 1.05rem;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.85);
}

.newapp-events-carousel .slick-prev {
  left: -2px;
}

.newapp-events-carousel .slick-next {
  right: -2px;
}

.newapp-devotionals-carousel .slick-prev {
  left: -2px;
}

.newapp-devotionals-carousel .slick-next {
  right: -2px;
}

.newapp-events-carousel .slick-prev:before,
.newapp-events-carousel .slick-next:before {
  display: none;
}

.newapp-devotionals-carousel .slick-prev:before,
.newapp-devotionals-carousel .slick-next:before {
  display: none;
}

.newapp-event-slide,
.newapp-devotional-slide {
  min-height: 228px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--newapp-surface);
  border: 1px solid var(--newapp-border);
  border-radius: 18px;
  box-shadow: var(--newapp-shadow);
}

.newapp-event-title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 14px;
  color: var(--newapp-primary-dark);
}

.newapp-event-slide-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--newapp-primary-soft);
  color: var(--newapp-primary-dark);
  font-size: 0.85rem;
}

.newapp-event-message {
  padding-top: 8px;
  margin-top: auto;
}

.newapp-scale-filter-card,
.newapp-scale-hero-card,
.newapp-scale-results-shell,
.newapp-scale-event-card,
.newapp-scale-empty-state {
  background: var(--newapp-surface);
  border: 1px solid var(--newapp-border);
  border-radius: var(--newapp-radius);
  box-shadow: var(--newapp-shadow);
}

.newapp-scale-hero-card,
.newapp-scale-filter-card {
  padding: 16px 7px;
  background:
    radial-gradient(circle at top right, rgba(50, 90, 168, 0.14), transparent 28%),
    radial-gradient(circle at left center, rgba(50, 90, 168, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

[data-bs-theme="dark"] .newapp-scale-hero-card,
[data-bs-theme="dark"] .newapp-scale-filter-card {
  background:
    radial-gradient(circle at top right, rgba(125, 164, 236, 0.16), transparent 28%),
    radial-gradient(circle at left center, rgba(125, 164, 236, 0.08), transparent 24%),
    linear-gradient(180deg, #171c23 0%, #12171e 100%);
}

.newapp-scale-hero-title {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--newapp-primary-dark);
}

.newapp-scale-hero-text {
  color: #495057;
}

[data-bs-theme="dark"] .newapp-scale-hero-text {
  color: #adb5bd;
}

.newapp-scale-results-shell {
  padding: 20px;
}

.newapp-scale-input {
  min-height: 44px;
  border-radius: 16px;
}

.newapp-scale-submit {
  min-height: 44px;
}

.newapp-scale-filter-line {
  margin-left: 0;
  margin-right: 0;
}

.newapp-scale-filter-field {
  min-width: 0;
}

.newapp-scale-filter-action {
  flex: 0 0 auto;
}

.newapp-scale-filter-card .newapp-section-head {
  margin-bottom: 14px;
}

.newapp-scale-filter-card .newapp-section-title {
  font-size: 1.3rem;
}

.newapp-scale-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.newapp-scale-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.newapp-scale-summary-item {
  min-width: 112px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--newapp-primary-soft);
  color: var(--newapp-primary-dark);
  text-align: center;
}

.newapp-scale-summary-item strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.1;
}

.newapp-scale-summary-item span {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.newapp-scale-results {
  display: grid;
  gap: 14px;
}

.newapp-scale-empty-state {
  padding: 26px 18px;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(50, 90, 168, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

[data-bs-theme="dark"] .newapp-scale-empty-state {
  background:
    radial-gradient(circle at top right, rgba(125, 164, 236, 0.12), transparent 34%),
    linear-gradient(180deg, #171c23 0%, #12171e 100%);
}

.newapp-scale-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--newapp-primary-soft);
  color: var(--newapp-primary);
  font-size: 1.5rem;
}

.newapp-scale-empty-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--newapp-primary-dark);
}

.newapp-scale-empty-text {
  color: #6c757d;
}

[data-bs-theme="dark"] .newapp-scale-empty-text {
  color: #adb5bd;
}

.newapp-scale-event-card {
  padding: 18px;
}

.newapp-scale-event-card + .newapp-scale-event-card {
  margin-top: 0;
}

.newapp-scale-event-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 12px;
}

.newapp-scale-event-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--newapp-primary-soft);
  color: var(--newapp-primary-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.newapp-scale-event-date strong {
  font-size: 0.92rem;
}

.newapp-scale-event-title {
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--newapp-primary-dark);
}

.newapp-scale-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.newapp-scale-event-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

[data-bs-theme="dark"] .newapp-scale-event-location {
  color: #adb5bd;
}

.newapp-scale-event-divider {
  height: 1px;
  margin: 16px 0;
  background: var(--newapp-border);
}

.newapp-scale-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.newapp-scale-detail-box {
  padding: 12px;
  border-radius: 16px;
  background: var(--newapp-surface-soft);
  border: 1px solid var(--newapp-border);
}

.newapp-scale-detail-box label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 6px;
}

.newapp-scale-detail-box .value {
  font-size: 0.92rem;
  line-height: 1.35;
}

.newapp-scale-event-details,
.newapp-scale-summary-box {
  padding: 8px 10px;
  border-radius: 12px;
}

.newapp-scale-detail-field label,
.newapp-scale-summary-box label {
  margin-bottom: 1px;
  color: var(--bs-secondary-color);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.newapp-scale-detail-field .value,
.newapp-scale-summary-box .value {
  font-size: 0.86rem;
  line-height: 1.2;
}

.newapp-scale-event-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.newapp-scale-event-detail-columns > .newapp-scale-detail-field:only-child {
  grid-column: 1 / -1;
}

.newapp-scale-public-details {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.newapp-scale-public-ministry-block {
  padding: 8px 10px;
}

.newapp-scale-public-ministry-block .newapp-scale-ministry-block-head {
  margin-bottom: 0;
  color: var(--newapp-primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.newapp-scale-public-details .newapp-scale-event-detail-columns {
  margin-top: 3px;
}

.newapp-scale-public-details .newapp-scale-detail-field-full {
  margin-top: 3px;
}

.newapp-scale-public-media-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 10px;
  margin-top: 3px;
}

.newapp-scale-public-media-link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.86rem;
  line-height: 1.2;
  text-decoration: none;
}

.newapp-scale-public-media-link:only-child {
  grid-column: 1 / -1;
}

.newapp-scale-public-details .newapp-scale-repertoire-list {
  margin: 0;
  padding: 0;
}

.newapp-scale-repertoire-item {
  font-size: 0.86rem;
  line-height: 1.2;
}

.newapp-scale-repertoire-item + .newapp-scale-repertoire-item {
  margin-top: 2px;
  padding-top: 2px;
  border-top: 1px solid var(--newapp-border);
}

.newapp-scale-summary-value {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.newapp-scale-opportunity-list {
  display: grid;
  gap: 0;
}

.newapp-scale-opportunity-row {
  padding: 3px 0;
}

.newapp-scale-opportunity-row + .newapp-scale-opportunity-row {
  border-top: 1px solid var(--newapp-border);
}

.newapp-scale-opportunities-box > label {
  margin-bottom: 1px;
  color: var(--bs-secondary-color);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.newapp-scale-opportunity-item {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--newapp-surface-soft);
  border: 1px solid var(--newapp-border);
}

.newapp-scale-opportunity-name {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--newapp-primary-dark);
}

.newapp-scale-opportunity-meta {
  display: block;
  margin-top: 1px;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.15;
  color: #6c757d;
}

[data-bs-theme="dark"] .newapp-scale-opportunity-meta {
  color: #adb5bd;
}

.newapp-scale-ministry-grid {
  display: grid;
  gap: 10px;
}

.newapp-scale-ministry-card {
  padding: 14px;
  border-radius: 16px;
  background: var(--newapp-surface-soft);
  border: 1px solid var(--newapp-border);
}

.newapp-scale-ministry-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--newapp-primary-dark);
}

.newapp-scale-ministry-items {
  display: grid;
  gap: 8px;
}

.newapp-scale-ministry-item {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--newapp-border);
}

.newapp-scale-ministry-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.newapp-scale-ministry-name {
  font-weight: 700;
  color: var(--bs-body-color);
}

.newapp-scale-ministry-extra {
  display: block;
  margin-top: 3px;
  font-size: 0.83rem;
  color: #6c757d;
}

[data-bs-theme="dark"] .newapp-scale-ministry-extra {
  color: #adb5bd;
}

.newapp-scale-ministry-status {
  flex: 0 0 auto;
  white-space: nowrap;
}

.newapp-scale-event-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.newapp-scale-event-actions .bto,
.newapp-scale-event-actions a {
  min-height: 40px;
}

.newapp-scale-page .form-label,
.newapp-scale-page .form-check-label {
  color: var(--bs-body-color);
}

#newappScaleResults {
  display: grid;
  gap: 14px;
}

.newapp-scale-state,
.newapp-scale-result-card {
  background: var(--newapp-surface);
  border: 1px solid var(--newapp-border);
  border-radius: var(--newapp-radius);
  box-shadow: var(--newapp-shadow);
}

.newapp-scale-state {
  padding: 24px 16px;
  text-align: center;
}

.newapp-scale-state-title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--newapp-primary-dark);
}

.newapp-scale-state-text {
  margin-top: 8px;
  color: #6c757d;
}

[data-bs-theme="dark"] .newapp-scale-state-text {
  color: #adb5bd;
}

.newapp-scale-state-gif {
  width: min(170px, 58vw);
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.newapp-scale-result-card {
  padding: 14px;
}

.newapp-scale-result-top,
.newapp-scale-result-headline,
.newapp-scale-person-row,
.newapp-scale-ministry-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.newapp-scale-result-when {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--newapp-primary-soft);
  color: var(--newapp-primary-dark);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}

.newapp-scale-event-date-line {
  display: block;
}

.newapp-scale-event-date-end {
  margin-top: 2px;
  font-size: 0.76rem;
  font-weight: 500;
}

.newapp-scale-detail-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.newapp-scale-detail-separator {
  color: #6c757d;
}
.newapp-scale-result-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--newapp-primary-dark);
}

.newapp-scale-result-headline {
  margin-top: 8px;
  align-items: flex-end;
}

.newapp-scale-result-headcopy {
  min-width: 0;
}

.newapp-scale-result-subtitle,
.newapp-scale-result-place,
.newapp-scale-ministry-note,
.newapp-scale-person-extra,
.newapp-scale-opportunity-meta {
  color: #6c757d;
}

[data-bs-theme="dark"] .newapp-scale-result-subtitle,
[data-bs-theme="dark"] .newapp-scale-result-place,
[data-bs-theme="dark"] .newapp-scale-ministry-note,
[data-bs-theme="dark"] .newapp-scale-person-extra,
[data-bs-theme="dark"] .newapp-scale-opportunity-meta {
  color: #adb5bd;
}

.newapp-scale-result-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.84rem;
}

.newapp-scale-result-place {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.84rem;
  text-align: right;
}

.newapp-scale-inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.newapp-scale-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.newapp-scale-inline-box,
.newapp-scale-ministry-block,
.newapp-scale-modal-box {
  background: var(--newapp-surface-soft);
  border: 1px solid var(--newapp-border);
  border-radius: 16px;
}

.newapp-scale-inline-box,
.newapp-scale-ministry-block {
  padding: 10px;
}

.newapp-scale-detail-box {
  border-radius: 16px;
}

.newapp-scale-ministry-wrap {
  display: grid;
  gap: 8px;
}

.newapp-scale-ministry-block-head {
  align-items: center;
  flex-wrap: nowrap;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--newapp-primary-dark);
}

.newapp-scale-ministry-note {
  margin-top: 6px;
  font-size: 0.83rem;
  line-height: 1.4;
}

.newapp-scale-ministry-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.76rem;
  line-height: 1.35;
}

.newapp-scale-ministry-detail {
  flex: 1 1 180px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--newapp-border);
  border-radius: 10px;
  background: var(--newapp-surface-soft);
}

.newapp-scale-ministry-detail-label {
  display: block;
  margin-bottom: 2px;
  color: #6c757d;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.newapp-scale-ministry-detail-value {
  overflow-wrap: anywhere;
}

.newapp-scale-detail-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.newapp-scale-detail-chip,
.newapp-scale-color-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.newapp-scale-detail-chip {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--newapp-border);
}

.newapp-scale-color-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border: 1px solid rgba(108, 117, 125, 0.35);
  border-radius: 50%;
}

.newapp-scale-dance-vest-color {
  margin-right: 4px;
}

.newapp-scale-detail-meta,
.newapp-scale-repertoire-author,
.newapp-scale-repertoire-note {
  color: #6c757d;
}

.newapp-scale-repertoire-list {
  margin: 0;
  padding-left: 1.15rem;
}

.newapp-scale-repertoire-note {
  display: block;
  margin-top: 1px;
  font-size: 0.7rem;
}

.newapp-scale-person-detail {
  margin-top: 2px;
  color: #6c757d;
  font-size: 0.74rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

[data-bs-theme="dark"] .newapp-scale-ministry-detail-label,
[data-bs-theme="dark"] .newapp-scale-detail-meta,
[data-bs-theme="dark"] .newapp-scale-repertoire-author,
[data-bs-theme="dark"] .newapp-scale-repertoire-note,
[data-bs-theme="dark"] .newapp-scale-person-detail {
  color: #adb5bd;
}

.newapp-scale-person-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.newapp-scale-person-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--newapp-border);
  flex-wrap: nowrap;
}

.newapp-scale-person-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.newapp-scale-person-entry {
  display: grid;
  gap: 4px;
}

.newapp-scale-person-row.bg-phsa-light {
  padding: 8px;
  border-top: 0;
  border-radius: 14px;
  cursor: pointer;
}

.newapp-scale-person-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.newapp-scale-person-photo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.12);
}

.newapp-scale-person-text {
  min-width: 0;
  overflow: hidden;
}

.newapp-scale-person-name {
  font-weight: 700;
  color: var(--bs-body-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newapp-scale-person-role {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--newapp-primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newapp-scale-person-extra {
  margin-top: 2px;
  font-size: 0.8rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newapp-scale-person-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.newapp-scale-status-badge {
  min-height: 34px;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 700;
}

.newapp-scale-agenda-link-wrap {
  text-align: center;
  margin-top: -2px;
}

.newapp-scale-agenda-link {
  border: 0;
  background: transparent;
  color: var(--newapp-primary-dark);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0 6px;
  text-decoration: none;
}

.newapp-scale-agenda-link i {
  font-size: 0.74rem;
}

.newapp-scale-result-top.js-newapp-scale-share {
  cursor: pointer;
}

.newapp-scale-share-link-wrap {
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px solid var(--newapp-border);
  text-align: center;
}

.newapp-scale-share-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0 6px;
  background: transparent;
  color: var(--newapp-primary-dark);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.newapp-scale-share-link i {
  font-size: 0.74rem;
}

.newapp-scale-agenda-sheet {
  width: min(560px, calc(100% - 18px));
}

.newapp-scale-agenda-sheet-summary {
  display: grid;
  gap: 6px;
  padding: 0 2px 8px;
}

.newapp-scale-agenda-sheet-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.newapp-scale-agenda-sheet-title-row .newapp-bible-footer-sheet-close {
  flex: 0 0 auto;
  margin: -4px 0 0 auto;
}

.newapp-scale-agenda-sheet-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--bs-body-color);
}

.newapp-scale-agenda-sheet-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #6c757d;
}

.newapp-scale-agenda-sheet-meta i {
  color: var(--newapp-primary-dark);
  flex: 0 0 auto;
}

.newapp-scale-agenda-button {
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.newapp-scale-share-sheet {
  width: min(560px, calc(100% - 18px));
}

.newapp-scale-share-summary {
  display: grid;
  gap: 6px;
  padding: 0 2px 8px;
}

.newapp-scale-share-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.newapp-scale-share-title-row .newapp-bible-footer-sheet-close {
  flex: 0 0 auto;
  margin: -4px 0 0 auto;
}

.newapp-scale-share-title,
.newapp-scale-share-event-name {
  color: var(--bs-body-color);
  font-weight: 700;
}

.newapp-scale-share-title {
  font-size: 0.96rem;
}

.newapp-scale-share-event-name {
  color: var(--newapp-primary-dark);
  font-size: 0.9rem;
}

.newapp-scale-share-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
  font-size: 0.84rem;
}

.newapp-scale-share-meta i {
  flex: 0 0 auto;
  color: var(--newapp-primary-dark);
}

.newapp-scale-share-button {
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.newapp-scale-modal-box {
  padding: 12px;
}

.newapp-scale-modal-box label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c757d;
}

.newapp-scale-modal-box .value {
  font-size: 0.92rem;
  line-height: 1.4;
}

@media (max-width: 991.98px) {
  .newapp-scale-inline-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .newapp-scale-person-photo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .newapp-scale-status-badge {
    padding: 0 9px;
  }
}

@media (max-width: 575.98px) {
  .newapp-scale-result-top,
  .newapp-scale-result-headline {
    flex-direction: column;
    align-items: stretch;
  }

  .newapp-scale-result-place {
    justify-content: flex-start;
    text-align: left;
  }
}
.newapp-devotional-slide-highlight {
  background:
    radial-gradient(circle at top right, rgba(50, 90, 168, 0.10), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.newapp-shortcut-card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 18px;
}

.newapp-shortcuts-wrap {
  background: var(--newapp-surface);
  border: 1px solid var(--newapp-border);
  border-radius: var(--newapp-radius);
  box-shadow: var(--newapp-shadow);
  padding: 20px;
}

[data-bs-theme="dark"] .bg-phsa-light {
  background-color: rgba(125, 164, 236, 0.14) !important;
}

.newapp-shortcut-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--newapp-primary-soft);
  color: var(--newapp-primary);
  font-size: 1.25rem;
}

.newapp-shortcut-content {
  flex: 1 1 auto;
}

.newapp-address-card {
  background:
    linear-gradient(180deg, rgba(50, 90, 168, 0.04) 0%, rgba(255, 255, 255, 1) 45%);
}

.newapp-address-shell {
  background:
    linear-gradient(180deg, rgba(50, 90, 168, 0.06) 0%, rgba(255, 255, 255, 1) 32%);
  border: 1px solid var(--newapp-border);
  border-radius: var(--newapp-radius);
  box-shadow: var(--newapp-shadow);
  padding: 20px;
}

[data-bs-theme="dark"] .newapp-address-shell {
  background:
    linear-gradient(180deg, rgba(125, 164, 236, 0.08) 0%, rgba(22, 26, 32, 1) 34%);
}

.newapp-address-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.newapp-map-frame iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 18px;
}

.newapp-download-row {
  display: flex;
  justify-content: center;
  padding: 12px 0 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.newapp-download-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--newapp-primary-dark);
  font-weight: 600;
}

[data-bs-theme="dark"] .newapp-download-row {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .newapp-download-link {
  color: #dbe7ff;
}

.newapp-download-link i {
  font-size: 1.2rem;
}

.newapp-bible-hero,
.newapp-bible-reader,
.newapp-bible-nav-card,
.newapp-bible-controls-card,
.newapp-bible-search-card {
  background: var(--newapp-surface);
  border: 1px solid var(--newapp-border);
  border-radius: var(--newapp-radius);
  box-shadow: var(--newapp-shadow);
}

.newapp-bible-hero {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(50, 90, 168, 0.14), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

[data-bs-theme="dark"] .newapp-bible-hero {
  background:
    radial-gradient(circle at top right, rgba(125, 164, 236, 0.18), transparent 28%),
    linear-gradient(180deg, #171c23 0%, #12171e 100%);
}

.newapp-bible-title {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin-bottom: 10px;
}

.newapp-bible-subtitle {
  max-width: 640px;
  margin-bottom: 0;
  color: #6c757d;
}

.newapp-bible-toolbar-wrap {
  position: sticky;
  top: 72px;
  z-index: 12;
}

.newapp-bible-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.newapp-bible-reader,
.newapp-bible-controls-card {
  padding: 20px;
}

.newapp-bible-controls-card {
  backdrop-filter: blur(10px);
}

.newapp-bible-reference-wrap {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--newapp-primary-soft);
  margin-bottom: 16px;
}

.newapp-bible-reference {
  font-size: 1rem;
  font-weight: 700;
  color: var(--newapp-primary-dark);
}

.newapp-bible-text {
  min-height: 240px;
  max-height: 54vh;
  overflow-y: auto;
  margin: 0;
  padding: 4px 2px 4px 0;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--bs-body-color);
}

.newapp-bible-verse-line {
  display: block;
  margin-bottom: 12px;
}

.newapp-bible-verse-line sup {
  color: var(--newapp-primary-dark);
  font-weight: 700;
  margin-right: 6px;
}

.newapp-bible-reader-shell {
  display: grid;
  gap: 14px;
}

.newapp-bible-reader-shell.is-fullscreen {
  padding: 20px;
  background: var(--newapp-surface);
}

.newapp-bible-nav-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
}

.newapp-bible-nav-btn,
.newapp-bible-current-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.newapp-bible-current-btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newapp-bible-controls-card .form-select,
.newapp-bible-controls-card .form-control,
.newapp-bible-controls-card .input-group .btn {
  min-height: 46px;
  border-radius: 14px;
}

.newapp-bible-controls-card .input-group > .form-control {
  border-radius: 0;
}

.newapp-bible-controls-card .input-group > .btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.newapp-bible-controls-card .input-group > .btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.newapp-bible-verse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: 8px;
}

.newapp-bible-verse-chip {
  min-height: 40px;
  border: 1px solid var(--newapp-border);
  border-radius: 12px;
  background: var(--newapp-surface);
  color: var(--bs-body-color);
  font-weight: 600;
}

.newapp-bible-verse-chip.active {
  background: var(--newapp-primary-soft);
  color: var(--newapp-primary-dark);
  border-color: rgba(50, 90, 168, 0.22);
}

.newapp-bible-search-card {
  padding: 20px;
}

.newapp-bible-search-results {
  display: grid;
  gap: 12px;
}

.newapp-bible-search-item {
  width: 100%;
  text-align: left;
  padding: 16px;
  border: 1px solid var(--newapp-border);
  border-radius: 16px;
  background: var(--newapp-surface-soft);
  color: inherit;
}

.newapp-bible-search-ref {
  font-weight: 700;
  color: var(--newapp-primary-dark);
  margin-bottom: 6px;
}

.newapp-bible-search-text {
  color: #6c757d;
  line-height: 1.6;
}

.newapp-bible-page--comfort .newapp-bible-reader,
.newapp-bible-page--comfort .newapp-bible-nav-card,
.newapp-bible-page--comfort .newapp-bible-controls-card,
.newapp-bible-page--comfort .newapp-bible-search-card {
  background: #f5eddc;
  border-color: rgba(109, 84, 41, 0.14);
}

.newapp-bible-page--comfort .newapp-bible-text,
.newapp-bible-page--comfort .newapp-bible-search-text,
.newapp-bible-page--comfort .newapp-bible-subtitle {
  color: #5a4b36 !important;
}

.newapp-bible-page--comfort .newapp-bible-reference,
.newapp-bible-page--comfort .newapp-bible-search-ref,
.newapp-bible-page--comfort .newapp-bible-verse-line sup {
  color: #7a4f17;
}

[data-bs-theme="dark"] .newapp-bible-page--comfort .newapp-bible-reader,
[data-bs-theme="dark"] .newapp-bible-page--comfort .newapp-bible-nav-card,
[data-bs-theme="dark"] .newapp-bible-page--comfort .newapp-bible-controls-card,
[data-bs-theme="dark"] .newapp-bible-page--comfort .newapp-bible-search-card {
  background: #2c2620;
  border-color: rgba(226, 200, 154, 0.14);
}

[data-bs-theme="dark"] .newapp-bible-page--comfort .newapp-bible-text,
[data-bs-theme="dark"] .newapp-bible-page--comfort .newapp-bible-search-text,
[data-bs-theme="dark"] .newapp-bible-page--comfort .newapp-bible-subtitle {
  color: #eadcc5 !important;
}

[data-bs-theme="dark"] .newapp-bible-page--comfort .newapp-bible-reference,
[data-bs-theme="dark"] .newapp-bible-page--comfort .newapp-bible-search-ref,
[data-bs-theme="dark"] .newapp-bible-page--comfort .newapp-bible-verse-line sup {
  color: #f2c47d;
}

.newapp-clamp-2,
.newapp-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.newapp-clamp-2 {
  -webkit-line-clamp: 2;
}

.newapp-clamp-3 {
  -webkit-line-clamp: 3;
}

.slick-dots li button:before {
  color: var(--newapp-primary);
}

.newapp-bottom-link.active {
  background: var(--newapp-primary-soft);
  color: var(--newapp-primary);
}

.newapp-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 20px));
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 1040;
  padding: 6px;
}

.newapp-bottom-link {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #495057;
  border-radius: 18px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}

.newapp-bottom-link.active {
  background: var(--newapp-primary-soft);
  color: var(--newapp-primary);
}

.newapp-footer {
  padding: 24px 16px 108px;
}

.newapp-bible-card {
  background: var(--newapp-surface);
  border: 1px solid var(--newapp-border);
  border-radius: 26px;
  box-shadow: var(--newapp-shadow);
  padding: 7px 0px;
}

body.newapp-bible-expanded-open {
  overflow: hidden;
}

.newapp-bible-card.is-expanded {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 1080;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.newapp-bible-card-tools {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  flex: 0 0 auto;
  padding: 0px 7px;
}

.newapp-bible-config-pill {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--newapp-border);
  border-radius: 999px;
  background: var(--newapp-surface-soft);
  color: var(--newapp-primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
}

.newapp-bible-config-pill[hidden] {
  display: none !important;
}

.newapp-bible-config-pill:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.newapp-bible-config-pill.is-active {
  background: var(--newapp-primary-soft);
  color: var(--newapp-primary-dark);
  border-color: rgba(50, 90, 168, 0.18);
}

.newapp-bible-config-pill-icon-only {
  width: 40px;
  min-width: 40px;
  padding: 0;
  justify-content: center;
}

.newapp-bible-config-pill-icon {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
}

.newapp-bible-config-pill-text {
  white-space: nowrap;
}

.newapp-bible-page {
  --newapp-bible-font-size: 17px;
  --newapp-bible-line-height: 1.9;
  --newapp-bible-verse-gap: 14px;
  --newapp-bible-font-family: "Source Sans 3", sans-serif;
}

.newapp-bible-reader-card {
  background:
    linear-gradient(180deg, rgba(50, 90, 168, 0.05) 0%, rgba(255, 255, 255, 0) 26%),
    var(--newapp-surface);
  border: 1px solid var(--newapp-border);
  border-radius: 22px;
  padding: 7px;
  min-height: 0;
}

.newapp-bible-card.is-expanded .newapp-bible-reader-card {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  border-radius: 18px;
  overflow: hidden;
}

.newapp-bible-reading-headline {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.newapp-bible-reading-headline-top,
.newapp-bible-reading-headline-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  text-transform: uppercase;
}

.newapp-bible-reading-book-line {
  min-width: 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--newapp-primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.newapp-bible-reading-chapter {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--newapp-primary-dark);
  white-space: nowrap;
  flex: 0 0 auto;
  cursor: pointer;
}

.newapp-bible-reading-verse-count {
  font-size: 0.62rem;
  line-height: 1;
  color: #6c757d;
  white-space: nowrap;
}

.newapp-bible-reading-book-meta {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 700;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.newapp-bible-reading-scroll {
  height: calc(100vh - 265px);
  min-height: 420px;
  max-height: 760px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  margin-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--newapp-primary-soft) transparent;
}

.newapp-bible-card.is-expanded .newapp-bible-reading-scroll {
  height: auto;
  min-height: 0;
  max-height: none;
  margin-bottom: 0;
}

.newapp-bible-card.is-expanded .newapp-bible-chapter-nav {
  margin-top: 0;
}

.newapp-bible-reading-scroll::-webkit-scrollbar {
  width: 8px;
}

.newapp-bible-reading-scroll::-webkit-scrollbar-thumb {
  background: var(--newapp-primary-soft);
  border-radius: 999px;
}

.newapp-bible-reading-content {
  display: flex;
  flex-direction: column;
  gap: var(--newapp-bible-verse-gap);
}

.newapp-bible-loading {
  padding: 14px 4px;
  color: #6c757d;
}

.newapp-bible-verse-row {
  display: grid;
  grid-template-columns: 0 minmax(0, 1fr);
  gap: 0;
  align-items: start;
  scroll-margin-top: 12px;
}

.newapp-bible-verse-row.is-active .newapp-bible-verse-text-wrap {
  background: var(--newapp-primary-soft);
  border-color: rgba(50, 90, 168, 0.14);
}

.newapp-bible-verse-row.is-selected .newapp-bible-verse-text-wrap {
  background: rgba(50, 90, 168, 0.08);
  border-color: rgba(50, 90, 168, 0.2);
}

.newapp-bible-verse-check-slot {
  width: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
}

.newapp-bible-verse-check {
  width: 16px;
  height: 16px;
  visibility: hidden;
  pointer-events: none;
  margin: 0;
}

.newapp-bible-page.is-verse-selection-mode .newapp-bible-verse-row {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
}

.newapp-bible-page.is-verse-selection-mode .newapp-bible-verse-check-slot {
  width: 22px;
  overflow: visible;
  opacity: 1;
  padding-top: 10px;
}

.newapp-bible-page.is-verse-selection-mode .newapp-bible-verse-check {
  visibility: visible;
  pointer-events: auto;
}

.newapp-bible-verse-text-wrap {
  padding: 6px 10px 6px 0;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  text-align: justify;
}

.newapp-bible-developer-credit,
.newapp-bible-verse-spacer {
  padding: 6px 10px 6px 0;
  margin-top: 2px;
}

.newapp-bible-verse-spacer {
  min-height: 100px;
  border-color: transparent;
  background: transparent;
}

.newapp-bible-verse-spacer-preview {
  min-height: 220px;
  display: flex;
  align-items: center;
}

.newapp-bible-developer-credit {
  min-height: auto;
  border-color: transparent;
  background: transparent;
  text-align: center;
}

.newapp-bible-developer-credit-text {
  display: inline-block;
  font-size: 0.62rem;
  line-height: 1;
  color: #6c757d;
}

.newapp-bible-developer-credit-text a {
  color: var(--phsa-primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.newapp-bible-developer-credit-text a:hover {
  text-decoration: underline;
}

.newapp-bible-continuous-preview {
  width: 100%;
  padding: 14px 10px 10px 0;
  margin-top: 2px;
  border-top: 1px solid rgba(108, 117, 125, 0.14);
  opacity: 0.48;
  filter: grayscale(0.12);
}

.newapp-bible-continuous-preview-kicker {
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 6px;
}

.newapp-bible-continuous-preview-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bs-body-color);
  margin-bottom: 8px;
}

.newapp-bible-continuous-preview-verse-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.newapp-bible-continuous-preview-verse {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--bs-body-color);
}

.newapp-bible-continuous-preview-verse sup {
  font-size: 0.62rem;
  line-height: 1;
  color: #6c757d;
  flex: 0 0 auto;
}

.newapp-bible-continuous-preview-loading {
  font-size: 0.72rem;
  color: #6c757d;
}

.newapp-bible-verse-number {
  font-size: 0.82rem;
  font-weight: 700;
}

.newapp-bible-verse-text {
  font-size: var(--newapp-bible-font-size);
  line-height: var(--newapp-bible-line-height);
  font-family: var(--newapp-bible-font-family);
  color: var(--bs-body-color);
}

.newapp-bible-chapter-nav {
  width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(50, 90, 168, 0.12);
}

.newapp-bible-chapter-nav-side,
.newapp-bible-chapter-nav-center {
  min-height: 52px;
  border: 0;
  background: var(--phsa-primary);
  color: #ffffff;
  font-weight: 700;
}

.newapp-bible-chapter-nav-side:disabled,
.newapp-bible-chapter-nav-center:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.newapp-bible-chapter-nav-side {
  font-size: 1rem;
}

.newapp-bible-chapter-nav-center {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newapp-bible-modal-shell {
  min-height: 100vh;
  background: var(--newapp-surface);
  color: var(--bs-body-color);
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.newapp-bible-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.newapp-bible-modal-header.is-verse-stage {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
}

.newapp-bible-modal-header.is-verse-stage .newapp-bible-modal-title {
  text-align: center;
}

.newapp-bible-modal-title {
  font-size: 1.08rem;
  font-weight: 700;
}

.newapp-bible-modal-close,
.newapp-bible-back-inline {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--newapp-surface-soft);
  color: var(--bs-body-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.newapp-bible-modal-searchbar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.newapp-bible-modal-searchinput {
  flex: 1 1 auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--newapp-surface-soft);
  border: 1px solid var(--newapp-border);
}

.newapp-bible-modal-searchinput i {
  color: #6c757d;
}

.newapp-bible-modal-searchinput input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-size: 1rem;
}

.newapp-bible-modal-filter {
  flex: 0 0 52px;
  width: 52px;
  min-height: 52px;
  border: 1px solid var(--newapp-border);
  border-radius: 16px;
  background: var(--newapp-surface-soft);
  color: var(--newapp-primary-dark);
}

.newapp-bible-modal-body-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--newapp-primary-soft) transparent;
}

.newapp-bible-search-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.newapp-bible-search-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newapp-bible-search-filters .multiselect-native-select,
.newapp-bible-search-filters .btn-group {
  width: 100%;
}

.newapp-bible-search-filters .multiselect.dropdown-toggle {
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--newapp-border);
  box-shadow: none;
  background: var(--newapp-surface-soft);
  color: var(--bs-body-color);
}

.newapp-bible-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.newapp-bible-search-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
}

.newapp-bible-search-state {
  min-height: 48vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 24px 12px;
}

.newapp-bible-search-state-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bs-body-color);
  margin: 0;
}

.newapp-bible-search-state-gif {
  width: min(220px, 60vw);
  height: auto;
  display: block;
  object-fit: contain;
}

.newapp-bible-search-state-cancel {
  min-height: 40px;
}

.newapp-bible-search-total {
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--newapp-primary-dark);
  padding: 6px 0 2px;
}

.newapp-bible-search-book-block {
  border: 1px solid var(--newapp-border);
  border-radius: 18px;
  background: var(--newapp-surface);
  padding: 14px;
  box-shadow: 0 12px 26px rgba(50, 90, 168, 0.08);
}

.newapp-bible-search-book-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.newapp-bible-search-book-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--newapp-primary-dark);
}

.newapp-bible-search-book-count {
  font-size: 0.75rem;
  color: #6c757d;
  white-space: nowrap;
}

.newapp-bible-search-book-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6c757d;
  margin-bottom: 10px;
}

.newapp-bible-search-book-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newapp-bible-search-result-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--newapp-surface-soft);
}

.newapp-bible-search-result-ref {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--newapp-primary-dark);
  white-space: nowrap;
}

.newapp-bible-search-result-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--bs-body-color);
}

.newapp-bible-search-result-link {
  border: 0;
  background: transparent;
  color: var(--newapp-primary-dark);
  font-weight: 700;
  text-transform: lowercase;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.newapp-bible-book-group + .newapp-bible-book-group {
  margin-top: 20px;
}

.newapp-bible-book-group-title {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--newapp-border);
  font-size: 0.92rem;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.newapp-bible-book-subgroup-title {
  margin: 18px 0 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.newapp-bible-book-entry + .newapp-bible-book-entry {
  margin-top: 6px;
}

.newapp-bible-book-trigger {
  width: 100%;
  padding: 12px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-size: 1rem;
}

.newapp-bible-book-entry.is-open .newapp-bible-book-trigger {
  color: var(--newapp-primary-dark);
  font-weight: 700;
}

.newapp-bible-chapter-grid,
.newapp-bible-verse-grid-modal {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.newapp-bible-chapter-grid {
  padding: 6px 0 14px;
}

.newapp-bible-chapter-chip,
.newapp-bible-verse-chip-modal {
  min-height: 54px;
  padding: 4px;
  border: 1px solid var(--newapp-border);
  border-radius: 12px;
  background: var(--newapp-surface-soft);
  color: inherit;
  font-size: 0.95rem;
  font-weight: 700;
}

.newapp-bible-chapter-chip.is-active {
  background: var(--newapp-primary-soft);
  border-color: rgba(50, 90, 168, 0.18);
  color: var(--newapp-primary-dark);
}

.newapp-bible-sort-form {
  padding-bottom: 24px;
}

.newapp-bible-checkbox-row {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 600;
}

.newapp-bible-sort-actions {
  display: flex;
  gap: 10px;
}

.newapp-bible-modal-empty {
  padding: 18px 4px;
  color: #6c757d;
}

.newapp-bible-footer-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 1055;
}

.newapp-bible-footer-sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.newapp-bible-footer-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(108%);
  width: min(720px, calc(100% - 18px));
  background: var(--newapp-surface);
  border: 1px solid var(--newapp-border);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease;
  z-index: 1060;
  padding: 8px 14px 12px;
}

.newapp-bible-footer-sheet.is-open {
  transform: translateX(-50%) translateY(0);
}

.newapp-bible-footer-sheet-handle {
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: rgba(108, 117, 125, 0.35);
  margin: 2px auto 10px;
}

.newapp-bible-footer-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.newapp-bible-footer-sheet-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--bs-body-color);
}

.newapp-bible-footer-sheet-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--newapp-border);
  border-radius: 50%;
  background: var(--newapp-surface-soft);
  color: var(--bs-body-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.newapp-bible-footer-sheet-body {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
}

.newapp-bible-footer-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.newapp-bible-footer-grid-two.is-compact {
  align-items: end;
}

.newapp-bible-footer-group {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.newapp-bible-footer-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #6c757d;
  margin-bottom: 4px;
}

.newapp-bible-visual-inline {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.newapp-bible-mode-button {
  width: 42px;
  min-width: 42px;
  height: 38px;
  border: 1px solid var(--newapp-border);
  border-radius: 12px;
  background: var(--newapp-surface-soft);
  color: var(--newapp-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.newapp-bible-mode-button i {
  font-size: 0.96rem;
  line-height: 1;
}

.newapp-bible-footer-help {
  font-size: 0.8rem;
  color: #6c757d;
}

.newapp-bible-footer-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.newapp-bible-triple-control {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--newapp-border);
}

.newapp-bible-triple-side,
.newapp-bible-triple-center {
  min-height: 38px;
  border: 0;
  background: #ffffff;
  color: var(--bs-body-color);
}

.newapp-bible-triple-side {
  font-size: 0.92rem;
  font-weight: 700;
}

.newapp-bible-triple-side.is-large {
  font-size: 1.04rem;
}

.newapp-bible-triple-center {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--newapp-border);
  border-right: 1px solid var(--newapp-border);
  font-weight: 700;
  font-size: 0.92rem;
}

.newapp-bible-select-wrap {
  position: relative;
  flex: 1 1 auto;
}

.newapp-bible-select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--newapp-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--bs-body-color);
  padding: 0 12px;
  outline: 0;
  appearance: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.newapp-bible-switch {
  position: relative;
  display: inline-flex;
}

.newapp-bible-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.newapp-bible-switch-ui {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(108, 117, 125, 0.28);
  position: relative;
  transition: background-color 0.2s ease;
}

.newapp-bible-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.newapp-bible-switch input:checked + .newapp-bible-switch-ui {
  background: var(--phsa-primary);
}

.newapp-bible-switch input:checked + .newapp-bible-switch-ui::after {
  transform: translateX(20px);
}

.newapp-bible-footer-label-toggle {
  cursor: pointer;
  user-select: none;
}

.newapp-bible-footer-option {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--newapp-border);
  border-radius: 16px;
  background: var(--newapp-surface-soft);
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-weight: 600;
}

.newapp-bible-footer-option i {
  width: 18px;
  text-align: center;
  color: var(--newapp-primary-dark);
}

[data-bs-theme="dark"] .newapp-bible-reader-card,
[data-bs-theme="dark"] .newapp-bible-card,
[data-bs-theme="dark"] .newapp-bible-modal-shell {
  background: var(--newapp-surface);
}

[data-bs-theme="dark"] .newapp-bible-config-pill,
[data-bs-theme="dark"] .newapp-bible-modal-searchinput,
[data-bs-theme="dark"] .newapp-bible-modal-filter,
[data-bs-theme="dark"] .newapp-bible-modal-close,
[data-bs-theme="dark"] .newapp-bible-back-inline,
[data-bs-theme="dark"] .newapp-bible-chapter-chip,
[data-bs-theme="dark"] .newapp-bible-verse-chip-modal {
  background: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .newapp-bible-verse-text {
  color: #edf1f6;
}

[data-bs-theme="dark"] .newapp-bible-verse-row.is-active .newapp-bible-verse-text-wrap {
  background: rgba(125, 164, 236, 0.12);
  border-color: rgba(125, 164, 236, 0.18);
}

[data-bs-theme="dark"] .newapp-bible-reading-book,
[data-bs-theme="dark"] .newapp-bible-modal-title {
  color: #f1f3f5;
}

[data-bs-theme="dark"] .newapp-bible-reading-verse-count {
  color: #9aa4b2;
}

[data-bs-theme="dark"] .newapp-bible-footer-sheet,
[data-bs-theme="dark"] .newapp-bible-footer-sheet-close,
[data-bs-theme="dark"] .newapp-bible-footer-option,
[data-bs-theme="dark"] .newapp-bible-triple-side,
[data-bs-theme="dark"] .newapp-bible-triple-center,
[data-bs-theme="dark"] .newapp-bible-select {
  background: var(--newapp-surface);
}

[data-bs-theme="dark"] .newapp-bible-footer-label,
[data-bs-theme="dark"] .newapp-bible-footer-help {
  color: #9aa4b2;
}

.newapp-bible-page[data-reading-mode="paper-light"] .newapp-bible-reader-card {
  background: linear-gradient(180deg, #fffdf8 0%, #f8f3e9 100%);
  border-color: rgba(174, 151, 111, 0.18);
}

.newapp-bible-page[data-reading-mode="paper-light"] .newapp-bible-reading-scroll {
  background: rgba(255, 252, 244, 0.82);
}

.newapp-bible-page[data-reading-mode="paper-light"] .newapp-bible-verse-text,
.newapp-bible-page[data-reading-mode="paper-light"] .newapp-bible-reading-book,
.newapp-bible-page[data-reading-mode="paper-light"] .newapp-bible-reading-chapter,
.newapp-bible-page[data-reading-mode="paper-light"] .newapp-bible-reading-verse-count {
  color: #43331a;
}

.newapp-bible-page[data-reading-mode="paper-light"] .newapp-bible-verse-row.is-active .newapp-bible-verse-text-wrap {
  background: rgba(164, 137, 84, 0.08);
  border-color: rgba(164, 137, 84, 0.14);
}

.newapp-bible-page[data-reading-mode="sepia"] .newapp-bible-reader-card {
  background: linear-gradient(180deg, #f4ead8 0%, #eadcc5 100%);
  border-color: rgba(132, 102, 44, 0.16);
}

.newapp-bible-page[data-reading-mode="sepia"] .newapp-bible-reading-scroll {
  background: rgba(244, 236, 219, 0.78);
}

.newapp-bible-page[data-reading-mode="sepia"] .newapp-bible-verse-text,
.newapp-bible-page[data-reading-mode="sepia"] .newapp-bible-reading-book,
.newapp-bible-page[data-reading-mode="sepia"] .newapp-bible-reading-chapter,
.newapp-bible-page[data-reading-mode="sepia"] .newapp-bible-reading-verse-count {
  color: #473921;
}

.newapp-bible-page[data-reading-mode="sepia"] .newapp-bible-verse-row.is-active .newapp-bible-verse-text-wrap {
  background: rgba(132, 102, 44, 0.08);
  border-color: rgba(132, 102, 44, 0.12);
}

.newapp-bible-page[data-reading-mode="soft-yellow"] .newapp-bible-reader-card {
  background: linear-gradient(180deg, #fff9dd 0%, #fff2bf 100%);
  border-color: rgba(192, 165, 56, 0.18);
}

.newapp-bible-page[data-reading-mode="soft-yellow"] .newapp-bible-reading-scroll {
  background: rgba(255, 248, 214, 0.72);
}

.newapp-bible-page[data-reading-mode="soft-yellow"] .newapp-bible-verse-text,
.newapp-bible-page[data-reading-mode="soft-yellow"] .newapp-bible-reading-book,
.newapp-bible-page[data-reading-mode="soft-yellow"] .newapp-bible-reading-chapter,
.newapp-bible-page[data-reading-mode="soft-yellow"] .newapp-bible-reading-verse-count {
  color: #4e4418;
}

.newapp-bible-page[data-reading-mode="soft-yellow"] .newapp-bible-verse-row.is-active .newapp-bible-verse-text-wrap {
  background: rgba(196, 166, 58, 0.1);
  border-color: rgba(196, 166, 58, 0.16);
}

.newapp-bible-page[data-reading-mode="rest-green"] .newapp-bible-reader-card {
  background: linear-gradient(180deg, #edf7ee 0%, #dceede 100%);
  border-color: rgba(78, 124, 94, 0.18);
}

.newapp-bible-page[data-reading-mode="rest-green"] .newapp-bible-reading-scroll {
  background: rgba(233, 246, 235, 0.78);
}

.newapp-bible-page[data-reading-mode="rest-green"] .newapp-bible-verse-text,
.newapp-bible-page[data-reading-mode="rest-green"] .newapp-bible-reading-book,
.newapp-bible-page[data-reading-mode="rest-green"] .newapp-bible-reading-chapter,
.newapp-bible-page[data-reading-mode="rest-green"] .newapp-bible-reading-verse-count {
  color: #294232;
}

.newapp-bible-page[data-reading-mode="rest-green"] .newapp-bible-verse-row.is-active .newapp-bible-verse-text-wrap {
  background: rgba(83, 131, 97, 0.1);
  border-color: rgba(83, 131, 97, 0.16);
}

.newapp-bible-page[data-reading-mode="rest-blue"] .newapp-bible-reader-card {
  background: linear-gradient(180deg, #edf5fb 0%, #dce8f4 100%);
  border-color: rgba(76, 116, 150, 0.18);
}

.newapp-bible-page[data-reading-mode="rest-blue"] .newapp-bible-reading-scroll {
  background: rgba(233, 242, 250, 0.78);
}

.newapp-bible-page[data-reading-mode="rest-blue"] .newapp-bible-verse-text,
.newapp-bible-page[data-reading-mode="rest-blue"] .newapp-bible-reading-book,
.newapp-bible-page[data-reading-mode="rest-blue"] .newapp-bible-reading-chapter,
.newapp-bible-page[data-reading-mode="rest-blue"] .newapp-bible-reading-verse-count {
  color: #243d54;
}

.newapp-bible-page[data-reading-mode="rest-blue"] .newapp-bible-verse-row.is-active .newapp-bible-verse-text-wrap {
  background: rgba(72, 112, 149, 0.1);
  border-color: rgba(72, 112, 149, 0.16);
}

.newapp-bible-page[data-reading-mode="soft-gray"] .newapp-bible-reader-card {
  background: linear-gradient(180deg, #f2f3f5 0%, #e6e8eb 100%);
  border-color: rgba(121, 126, 135, 0.18);
}

.newapp-bible-page[data-reading-mode="soft-gray"] .newapp-bible-reading-scroll {
  background: rgba(242, 243, 245, 0.74);
}

.newapp-bible-page[data-reading-mode="soft-gray"] .newapp-bible-verse-text,
.newapp-bible-page[data-reading-mode="soft-gray"] .newapp-bible-reading-book,
.newapp-bible-page[data-reading-mode="soft-gray"] .newapp-bible-reading-chapter,
.newapp-bible-page[data-reading-mode="soft-gray"] .newapp-bible-reading-verse-count {
  color: #31353a;
}

.newapp-bible-page[data-reading-mode="soft-gray"] .newapp-bible-verse-row.is-active .newapp-bible-verse-text-wrap {
  background: rgba(119, 126, 135, 0.1);
  border-color: rgba(119, 126, 135, 0.16);
}

@media (min-width: 992px) {
  .newapp-main {
    padding-bottom: 128px;
  }

  .newapp-bottom-nav {
    bottom: 18px;
  }

  .newapp-footer {
    padding-bottom: 120px;
  }
}

@media (max-width: 767px) {
  .newapp-callout-card,
  .newapp-giving-card,
  .newapp-live-card,
  .newapp-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .newapp-hero-title {
    font-size: 1.2rem;
    max-width: 100%;
  }

  .newapp-hero-card {
    min-height: 0;
  }

  .newapp-hero-card-inner {
    padding: 14px 16px 20px;
  }

  .newapp-hero-text {
    font-size: .82rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }

  .newapp-map-frame iframe {
    min-height: 320px;
  }

  .newapp-giving-hero,
  .newapp-giving-minimal {
    flex-direction: column;
    align-items: stretch;
  }

  .newapp-bible-reading-scroll {
    height: calc(100vh - 292px);
    min-height: 380px;
  }

  .newapp-bible-card-tools #newappBibleOpenLanguage {
    display: none;
  }

  .newapp-bible-card-tools #newappBibleOpenVersion {
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
  }

  .newapp-bible-card-tools #newappBibleOpenVersion .newapp-bible-config-pill-text {
    display: none;
  }

  .newapp-bible-footer-sheet {
    width: calc(100% - 12px);
    padding-bottom: 12px;
  }

  .newapp-bible-sort-actions {
    flex-direction: column;
  }

  .newapp-bible-footer-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .newapp-bible-footer-sheet-body {
    gap: 6px;
    padding-bottom: 14px;
  }

  .newapp-bible-footer-label {
    font-size: 0.72rem;
    margin-bottom: 3px;
  }

  .newapp-bible-visual-inline {
    gap: 6px;
  }

  .newapp-bible-triple-control {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    border-radius: 10px;
  }

  .newapp-bible-triple-side,
  .newapp-bible-triple-center {
    min-height: 34px;
  }

  .newapp-bible-triple-side {
    font-size: 0.8rem;
  }

  .newapp-bible-triple-side.is-large {
    font-size: 0.92rem;
  }

  .newapp-bible-triple-center {
    font-size: 0.8rem;
  }

  .newapp-bible-select {
    min-height: 34px;
    font-size: 0.8rem;
  }

  .newapp-bible-mode-button {
    width: 36px;
    min-width: 36px;
    height: 34px;
    border-radius: 10px;
  }

  .newapp-bible-footer-sheet-close {
    width: 32px;
    height: 32px;
  }

  .newapp-scale-results-head,
  .newapp-scale-event-head {
    flex-direction: column;
    align-items: stretch;
  }

  .newapp-scale-summary {
    justify-content: flex-start;
  }

  .newapp-scale-detail-grid {
    grid-template-columns: 1fr;
  }

  .newapp-scale-event-actions {
    justify-content: stretch;
  }

  .newapp-scale-event-actions .bto,
  .newapp-scale-event-actions a {
    width: 100%;
  }

  .newapp-scale-page .form-label,
  .newapp-scale-page .form-check-label {
    font-size: 0.82rem;
  }

  .newapp-scale-filter-card .newapp-section-title {
    font-size: 1.18rem;
  }

  .newapp-scale-filter-line {
    gap: 8px;
  }

  .newapp-scale-filter-field {
    flex: 1 1 0;
  }

  .newapp-scale-filter-action {
    width: auto;
  }

  .newapp-scale-input,
  .newapp-scale-submit {
    min-height: 40px;
  }

  .newapp-scale-input,
  .newapp-scale-submit {
    font-size: 0.84rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .newapp-bible-config-pill {
    min-width: 40px;
    padding: 0;
    justify-content: center;
  }

  .newapp-bible-config-pill-text {
    display: none;
  }

  .newapp-scale-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newapp-scale-page .form-label,
  .newapp-scale-page .form-check-label {
    font-size: 0.84rem;
  }

  .newapp-scale-input,
  .newapp-scale-submit {
    font-size: 0.88rem;
  }
}

@media (max-width: 359px) {
  .newapp-member-links {
    gap: 6px;
  }

  .newapp-member-link {
    min-height: 58px;
    padding: 6px 4px;
    font-size: 0.68rem;
    line-height: 1.05;
  }

  .newapp-member-link i {
    font-size: 0.88rem;
  }

  .newapp-member-link span {
    letter-spacing: -0.01em;
  }

  .newapp-scale-page .form-label,
  .newapp-scale-page .form-check-label {
    font-size: 0.76rem;
  }

  .newapp-profile-page-photo {
    width: 88px;
    height: 88px;
  }

  .newapp-profile-links {
    gap: 6px;
  }

  .newapp-profile-contact-icon {
    width: 44px;
    height: 44px;
  }
}

.newapp-feed-card {
  cursor: pointer;
}

.newapp-feed-card-author-link {
  position: relative;
  z-index: 1;
}

.newapp-feed-loading-gif {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.newapp-devotional-reader-card {
  --newapp-devotional-font-size: 17px;
  --newapp-devotional-line-height: 1.7;
  --newapp-devotional-verse-spacing: 14px;
  --newapp-devotional-font-family: "Source Sans 3", sans-serif;
  background: var(--newapp-surface);
  border: 1px solid var(--newapp-border);
  border-radius: 26px;
  box-shadow: var(--newapp-shadow);
  padding: 7px;
}

.newapp-devotional-card-tools {
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0 7px;
}

.newapp-devotional-card-tools-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.newapp-devotional-reader-content {
  background:
    linear-gradient(180deg, rgba(50, 90, 168, 0.05) 0%, rgba(255, 255, 255, 0) 26%),
    var(--newapp-surface);
  border: 1px solid var(--newapp-border);
  border-radius: 22px;
  padding: 14px;
  min-height: 0;
}

.newapp-devotional-reading-headline {
  margin-bottom: 14px;
}

.newapp-devotional-reading-title {
  color: var(--newapp-primary-dark);
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 4px;
}

.newapp-devotional-reading-reference {
  color: var(--newapp-primary-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.newapp-devotional-reading-reference span {
  color: #6c757d;
}

.newapp-devotional-reading-scroll {
  height: calc(100vh - 365px);
  min-height: 360px;
  max-height: 720px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 5px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--newapp-primary-soft) transparent;
}

.newapp-devotional-reading-scroll::-webkit-scrollbar {
  width: 8px;
}

.newapp-devotional-reading-scroll::-webkit-scrollbar-thumb {
  background: var(--newapp-primary-soft);
  border-radius: 999px;
}

.newapp-devotional-reading-content {
  color: var(--bs-body-color);
  font-family: var(--newapp-devotional-font-family);
  font-size: var(--newapp-devotional-font-size);
  line-height: var(--newapp-devotional-line-height);
  overflow-wrap: anywhere;
}

.newapp-devotional-reading-content > * {
  margin-bottom: var(--newapp-devotional-verse-spacing);
}

.newapp-devotional-reading-content > *:last-child {
  margin-bottom: 0;
}

.newapp-devotional-reading-content img,
.newapp-devotional-reading-content video {
  max-width: 100%;
  height: auto;
}

.newapp-devotional-author-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #6c757d;
  font-size: 0.78rem;
}

.newapp-devotional-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.newapp-devotional-metric {
  min-width: 0;
  padding: 8px 4px;
  border: 0;
  border-radius: 12px;
  background: var(--newapp-primary-soft);
  color: var(--newapp-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.newapp-devotional-metric small {
  width: 100%;
  color: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
}

.newapp-devotional-like-indicator {
  cursor: pointer;
}

.newapp-devotional-overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.newapp-devotional-overlay-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.newapp-devotional-sheet {
  z-index: 1095;
}

.newapp-devotional-sheet.is-open {
  transform: translateX(-50%) translateY(0);
}

body.newapp-devotional-expanded-open {
  overflow: hidden;
}

.newapp-devotional-reader-card.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 1080;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.newapp-devotional-reader-card.is-expanded .newapp-devotional-reader-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.newapp-devotional-reader-card.is-expanded .newapp-devotional-reading-scroll {
  height: auto;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
}

.newapp-devotional-page[data-reading-mode="paper-light"] .newapp-devotional-reader-content,
.newapp-devotional-page[data-reading-mode="paper-light"] .newapp-devotional-reading-scroll {
  background: #fffaf0;
}

.newapp-devotional-page[data-reading-mode="sepia"] .newapp-devotional-reader-content,
.newapp-devotional-page[data-reading-mode="sepia"] .newapp-devotional-reading-scroll {
  background: #f1e5d0;
}

.newapp-devotional-page[data-reading-mode="soft-yellow"] .newapp-devotional-reader-content,
.newapp-devotional-page[data-reading-mode="soft-yellow"] .newapp-devotional-reading-scroll {
  background: #fff8d8;
}

.newapp-devotional-page[data-reading-mode="rest-green"] .newapp-devotional-reader-content,
.newapp-devotional-page[data-reading-mode="rest-green"] .newapp-devotional-reading-scroll {
  background: #eaf5eb;
}

.newapp-devotional-page[data-reading-mode="rest-blue"] .newapp-devotional-reader-content,
.newapp-devotional-page[data-reading-mode="rest-blue"] .newapp-devotional-reading-scroll {
  background: #eaf3fa;
}

.newapp-devotional-page[data-reading-mode="soft-gray"] .newapp-devotional-reader-content,
.newapp-devotional-page[data-reading-mode="soft-gray"] .newapp-devotional-reading-scroll {
  background: #eef0f2;
}

.newapp-devotional-share-actions {
  display: grid;
  gap: 8px;
  padding: 0 0 12px;
}

.newapp-devotional-share-actions .bto {
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
}

@media (max-width: 575.98px) {
  .newapp-devotional-card-tools-right {
    gap: 4px;
  }

  .newapp-devotional-card-tools .newapp-bible-config-pill-icon-only {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .newapp-devotional-reader-content {
    padding: 10px;
  }

  .newapp-devotional-reading-scroll {
    height: calc(100vh - 340px);
    min-height: 300px;
  }

  .newapp-devotional-author-line {
    flex-direction: column;
    gap: 3px;
  }

  .newapp-devotional-metric {
    font-size: 0.72rem;
  }
}
