:root {
  --app-font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  font-family: var(--app-font-family);
  font-weight: 420;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, #ffe8d2 0%, transparent 24%),
    radial-gradient(circle at 94% 10%, #dcf7ec 0%, transparent 27%),
    radial-gradient(circle at 90% 90%, #e8f2ff 0%, transparent 20%),
    linear-gradient(165deg, var(--bg-1) 0%, var(--bg-2) 65%);
  display: flex;
  justify-content: center;
  padding: max(14px, var(--safe-top)) max(14px, var(--safe-right)) max(14px, var(--safe-bottom)) max(14px, var(--safe-left));
  overflow-x: hidden;
}

body.native-app,
body.compact-layout {
  display: block;
  font-size: 16px;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
}

body.home-sabbath-module-active,
body.home-topic-request-active {
  display: block;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
}

.app-shell,
.app-shell * {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.app-shell::-webkit-scrollbar,
.app-shell *::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
  background: transparent;
}

.app-shell {
  width: min(100%, 430px);
  min-height: calc(100dvh - 28px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  box-shadow:
    0 20px 44px rgba(13, 30, 58, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(16px);
  padding: 18px 16px 100px;
  position: relative;
  overflow: hidden;
  overflow-x: clip;
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
}

body.native-app .app-shell,
body.compact-layout .app-shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding:
    calc(12px + var(--screen-top-blocker))
    calc(12px + var(--safe-right))
    var(--app-bottom-nav-reserve)
    calc(12px + var(--safe-left));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body.home-sabbath-module-active .app-shell,
body.home-topic-request-active .app-shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding:
    calc(12px + var(--screen-top-blocker))
    calc(12px + var(--safe-right))
    var(--app-bottom-nav-reserve)
    calc(12px + var(--safe-left));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body.home-sabbath-module-active .topbar,
body.home-sabbath-module-active .bottom-nav,
body.home-topic-request-active .topbar,
body.home-topic-request-active .bottom-nav {
  display: none;
}

body.native-app .app-shell::before,
body.compact-layout .app-shell::before,
body.home-sabbath-module-active .app-shell::before,
body.home-topic-request-active .app-shell::before {
  display: none;
}

body.home-sabbath-module-active:not(.native-app):not(.compact-layout),
body.home-topic-request-active:not(.native-app):not(.compact-layout) {
  display: flex;
  justify-content: center;
  padding: max(14px, var(--safe-top)) max(14px, var(--safe-right)) max(14px, var(--safe-bottom)) max(14px, var(--safe-left));
}

body.home-sabbath-module-active:not(.native-app):not(.compact-layout) .app-shell,
body.home-topic-request-active:not(.native-app):not(.compact-layout) .app-shell {
  width: min(100%, 430px);
  max-width: 430px;
  min-height: calc(100dvh - 28px);
  height: calc(100dvh - 28px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  box-shadow:
    0 20px 44px rgba(13, 30, 58, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: none;
  padding: 0;
  overflow: hidden;
}

@media (max-width: 900px){
  body:not(.native-app):not(.compact-layout) {
    display: block;
    font-size: 16px;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior-x: none;
    overscroll-behavior-y: contain;
  }

  body:not(.native-app):not(.compact-layout) .app-shell {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding:
      calc(12px + var(--screen-top-blocker))
      calc(12px + var(--safe-right))
      var(--app-bottom-nav-reserve)
      calc(12px + var(--safe-left));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.native-app):not(.compact-layout) .app-shell::before {
    display: none;
  }

  body:not(.native-app):not(.compact-layout) .nav-item svg {
    width: 20px;
    height: 20px;
  }

  body:not(.native-app):not(.compact-layout) .form-dialog,
  body:not(.native-app):not(.compact-layout) .stats-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    overflow-y: auto;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.98));
  }

  body:not(.native-app):not(.compact-layout) .dialog-head,
  body:not(.native-app):not(.compact-layout) .form-dialog-head {
    position: sticky;
    top: 0;
    z-index: 8;
    padding:
      calc(12px + var(--safe-top))
      calc(16px + var(--safe-right))
      10px
      calc(16px + var(--safe-left));
    background: inherit;
  }

  body:not(.native-app):not(.compact-layout) .event-form {
    padding:
      10px
      calc(16px + var(--safe-right))
      calc(20px + var(--safe-bottom))
      calc(16px + var(--safe-left));
  }

  body:not(.native-app):not(.compact-layout) #taskTopicDialog[open] {
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  body:not(.native-app):not(.compact-layout) #taskTopicDialog {
    position: fixed !important;
    inset: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100dvh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    transform: none !important;
  }

  body:not(.native-app):not(.compact-layout) #taskTopicDialog .task-topic-messages {
    max-height: none;
    overflow-y: auto;
    padding:
      0
      calc(12px + var(--safe-right))
      10px
      calc(12px + var(--safe-left));
  }

  body:not(.native-app):not(.compact-layout) #taskTopicDialog .task-topic-form {
    margin: 0;
    border-top: 1px solid rgba(104, 129, 163, 0.24);
    background: rgba(255, 255, 255, 0.96);
    padding:
      8px
      calc(12px + var(--safe-right))
      calc(10px + var(--safe-bottom))
      calc(12px + var(--safe-left));
  }

  body:not(.native-app):not(.compact-layout) #taskTopicDialog .task-msg {
    max-width: 90%;
  }
}

.topbar-link {
  border-radius: 999px;
  border: 1px solid rgba(47, 128, 237, 0.24);
  background: rgba(255, 255, 255, 0.85);
  color: #2b5ca5;
  font: inherit;
  font-size: 0.78rem;
  text-decoration: none;
  padding: 6px 10px;
  cursor: pointer;
}
.page-title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 570;
}


.page[data-tone="mission"] .page-title {
  color: var(--mission-tone);
}

.page[data-tone="service"] .page-title {
  color: var(--service-tone);
}

.page[data-tone="evangelism"] .page-title {
  color: var(--evangelism-tone);
}

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

.feature-card {
  --tone: var(--home-tone);
  --tone-soft: var(--home-soft);
  border: 1px solid rgba(75, 85, 99, 0.2);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(237, 242, 247, 0.84));
  border-radius: 20px;
  padding: 14px 12px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--ink);
  font: inherit;
  font-weight: 510;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(32, 47, 74, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}


.feature-card[data-nav="mission"] {
  --tone: var(--mission-tone);
  --tone-soft: var(--mission-soft);
  border-color: rgba(31, 167, 100, 0.26);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(232, 248, 239, 0.88));
}

.feature-card[data-nav="service"] {
  --tone: var(--service-tone);
  --tone-soft: var(--service-soft);
  border-color: rgba(124, 86, 232, 0.26);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(240, 235, 255, 0.88));
}

.feature-card[data-nav="evangelism"] {
  --tone: var(--evangelism-tone);
  --tone-soft: var(--evangelism-soft);
  border-color: rgba(47, 128, 237, 0.26);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(232, 242, 255, 0.88));
}

.feature-card:active {
  transform: scale(0.98);
}

.feature-card:hover {
  box-shadow: 0 12px 24px rgba(32, 47, 74, 0.12);
  border-color: var(--tone);
}

.icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tone-soft);
  display: grid;
  place-items: center;
}

.icon-wrap svg,
.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.native-app .nav-item svg,
body.compact-layout .nav-item svg {
  width: 20px;
  height: 20px;
}

.icon-wrap svg {
  color: var(--tone);
}

.our-life-card {
  border-color: rgba(52, 82, 126, 0.2);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(239, 245, 255, 0.88));
  display: grid;
  gap: 10px;
}

.our-life-summary-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
  color: inherit;
  cursor: default;
  font: inherit;
}

.our-life-summary-btn:focus-visible {
  outline: 2px solid rgba(53, 111, 202, 0.52);
  outline-offset: 4px;
  border-radius: 14px;
}

.our-life-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.our-life-summary-head h3 {
  margin: 0;
  font-size: 1.26rem;
  color: #1a3560;
}

.our-life-summary-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #4c6892;
  border-bottom: 2px solid #4c6892;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.our-life-card:not(.is-collapsed) .our-life-summary-chevron {
  transform: rotate(-135deg);
}

.our-life-details {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  justify-items: center;
}

.our-life-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.our-life-eyebrow {
  margin: 0 0 4px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5c6f90;
}

.our-life-inline-meta {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #4f6690;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.our-life-period {
  display: flex;
  border: 1px solid rgba(52, 82, 126, 0.18);
  border-radius: 999px;
  padding: 3px;
  background: rgba(247, 251, 255, 0.9);
}

.our-life-period-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #58729b;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 590;
  padding: 6px 10px;
}

.our-life-period-btn.is-active {
  background: linear-gradient(130deg, #356fca, #274f97);
  color: #fff;
}

.our-life-trend-card {
  width: 100%;
  border-color: rgba(31, 167, 100, 0.22);
}

.our-life-trend-card .mission-trend-bars {
  display: grid;
  grid-template-columns: repeat(var(--our-life-columns, 4), minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  min-height: 188px;
  gap: 6px;
  padding: 2px 0 6px;
}

.our-life-trend-card .mission-trend-item {
  min-width: 0;
  width: 100%;
  flex: none;
  position: relative;
  grid-template-rows: 132px minmax(2.35em, auto);
  gap: 8px;
  padding: 6px 3px 8px;
  align-items: stretch;
  justify-items: stretch;
}

.our-life-trend-card .mission-trend-bars.has-compact-copy .mission-trend-item {
  padding-inline: 2px;
}

.our-life-plan-wrap {
  width: 100%;
  height: 132px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.our-life-trend-card .mission-trend-bar {
  width: clamp(32px, 88%, 60px);
  justify-self: center;
}

.our-life-trend-card .mission-trend-bars.has-compact-copy .mission-trend-bar {
  width: clamp(28px, 92%, 58px);
}

.our-life-trend-card .mission-trend-date {
  display: block;
  width: 100%;
  min-height: 2.35em;
  font-size: 0.64rem;
  font-weight: 590;
  line-height: 1.12;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  word-break: normal;
}

.our-life-trend-card .mission-trend-date.is-compact-copy {
  font-size: 0.58rem;
  letter-spacing: -0.02em;
}

.our-life-trend-card .our-life-tower,
.our-life-trend-card .our-life-tower.is-active,
.our-life-trend-card .our-life-tower.is-inactive,
.our-life-trend-card .our-life-tower.is-empty {
  --tower-fill-from: #cad8e8;
  --tower-fill-to: #9fb3c9;
  --tower-border: rgba(134, 154, 177, 0.25);
  --tower-bg: rgba(208, 220, 236, 0.16);
  --tower-text: #5d7594;
  --tower-plan-stroke: #c9d8ea;
  --tower-completed-stroke: #96adc8;
  border-color: var(--tower-border);
  background: var(--tower-bg);
  cursor: pointer;
}

.our-life-trend-card .our-life-tower.is-selected {
  box-shadow: inset 0 0 0 2px rgba(20, 58, 112, 0.24), 0 6px 14px rgba(20, 58, 112, 0.12);
}


.our-life-trend-card .our-life-tower[data-module="mission"] {
  --tower-fill-from: #74d7a3;
  --tower-fill-to: #1fa764;
  --tower-border: rgba(31, 167, 100, 0.34);
  --tower-bg: rgba(31, 167, 100, 0.12);
  --tower-text: #217e4f;
  --tower-plan-stroke: #99e2be;
  --tower-completed-stroke: #4cc588;
}

.our-life-trend-card .our-life-tower[data-module="workshops"] {
  --tower-fill-from: #cab2ff;
  --tower-fill-to: #7c56e8;
  --tower-border: rgba(124, 86, 232, 0.32);
  --tower-bg: rgba(124, 86, 232, 0.12);
  --tower-text: #5e3eb8;
  --tower-plan-stroke: #dccdff;
  --tower-completed-stroke: #9a79f1;
}

.our-life-trend-card .our-life-tower[data-module="evangelism"] {
  --tower-fill-from: #90bcff;
  --tower-fill-to: #2f80ed;
  --tower-border: rgba(47, 128, 237, 0.34);
  --tower-bg: rgba(47, 128, 237, 0.12);
  --tower-text: #2b68bb;
  --tower-plan-stroke: #b1ceff;
  --tower-completed-stroke: #5a9ff8;
}

.our-life-trend-card .our-life-tower .mission-trend-bar,
.our-life-trend-card .our-life-tower .mission-trend-bar.is-inactive,
.our-life-trend-card .our-life-tower .mission-trend-bar.is-empty,
.our-life-trend-card .our-life-tower.is-current .mission-trend-bar,
.our-life-trend-card .our-life-tower.is-current .mission-trend-bar.is-inactive,
.our-life-trend-card .our-life-tower.is-current .mission-trend-bar.is-empty {
  background: linear-gradient(180deg, var(--tower-fill-from), var(--tower-fill-to));
}

.our-life-trend-card .our-life-tower .mission-trend-date {
  color: var(--tower-text);
}

.our-life-completed-stroke {
  position: absolute;
  left: 7px;
  right: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tower-completed-stroke), var(--tower-fill-to));
}

.our-life-completed-stroke.is-hidden {
  display: none;
}

.our-life-plan-stroke {
  position: absolute;
  left: 7px;
  right: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tower-plan-stroke), var(--tower-fill-from));
}

.our-life-plan-stroke.is-hidden {
  display: none;
}

.our-life-index {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 680;
  color: #153566;
  text-align: center;
  line-height: 1;
}

.our-life-range {
  margin: 0;
  font-size: 0.8rem;
  color: #4f6690;
  text-align: center;
  line-height: 1.3;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.our-life-module-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.our-life-module-item {
  border: 1px solid rgba(52, 82, 126, 0.18);
  border-radius: 14px;
  background: rgba(248, 252, 255, 0.9);
  padding: 9px 10px;
  display: grid;
  gap: 7px;
}

.our-life-module-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.our-life-module-name {
  margin: 0;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 590;
  line-height: 1.14;
  color: #243f67;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.our-life-module-val {
  margin: 0;
  min-width: 0;
  font-size: 0.8rem;
  color: #385987;
  text-align: right;
  white-space: nowrap;
}

.our-life-module-track {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.our-life-module-planned,
.our-life-module-completed {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
}

.our-life-module-planned {
  background: #f3c53f;
  opacity: 0.72;
}

.our-life-module-completed {
  background: #2fa866;
}

.home-priority-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.home-priority-grid > .simple-card {
  margin-top: 0;
  min-width: 0;
}

.home-priority-grid > .simple-card.is-collapsed {
  height: 100%;
}

.home-priority-grid > .simple-card:not(.is-collapsed) {
  grid-column: 1 / -1;
}

.home-quick-access-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.home-quick-access-grid.is-single-card {
  grid-template-columns: minmax(0, 1fr);
}

.home-quick-access-grid > .simple-card {
  margin-top: 0;
  min-width: 0;
  height: 100%;
}

section[data-page="home"] > [data-home-layout-item-id] {
  position: relative;
  margin-top: 12px;
}

section[data-page="home"] > [data-home-layout-item-id].is-layout-first {
  margin-top: 0;
}

section[data-page="home"] > [data-home-layout-item-id]:focus-visible {
  outline: 2px solid rgba(57, 122, 188, 0.34);
  outline-offset: 4px;
}

.home-layout-item {
  transform-origin: center top;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease,
    opacity 180ms ease,
    filter 180ms ease;
}

.home-layout-item [data-home-layout-primary-surface="true"] {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  touch-action: manipulation;
}

.home-layout-item.is-dragging {
  opacity: 0.78;
  transform: scale(1.022) rotate(-0.8deg);
  filter: saturate(1.04);
  box-shadow:
    0 34px 64px rgba(21, 36, 58, 0.26),
    0 0 0 1px rgba(109, 143, 193, 0.24);
}

@media (pointer: fine){
  section[data-page="home"] > [data-home-layout-item-id] {
    cursor: grab;
  }

  body.home-layout-drag-active {
    cursor: grabbing;
  }

  body.home-layout-drag-active section[data-page="home"] > [data-home-layout-item-id] {
    cursor: grabbing;
  }

  .home-layout-item.is-dragging {
    cursor: grabbing;
  }
}

body.home-layout-drag-active {
  user-select: none;
  -webkit-user-select: none;
}

body.home-layout-touch-reorder-armed section[data-page="home"] > [data-home-layout-item-id],
body.home-layout-drag-active section[data-page="home"] > [data-home-layout-item-id] {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

body.home-layout-drag-active .home-layout-item [data-home-layout-primary-surface="true"] {
  touch-action: none;
}

body.home-layout-touch-reorder-armed section[data-page="home"] > [data-home-layout-item-id] img,
body.home-layout-drag-active section[data-page="home"] > [data-home-layout-item-id] img {
  -webkit-user-drag: none;
}

.home-layout-placeholder {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px dashed rgba(104, 118, 144, 0.34);
  background:
    linear-gradient(135deg, rgba(239, 245, 252, 0.88), rgba(229, 238, 249, 0.78));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.46),
    0 16px 28px rgba(27, 47, 76, 0.08);
  animation: home-layout-placeholder-pulse 1100ms ease-in-out infinite alternate;
}

.home-layout-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(121, 144, 181, 0.08) 0,
      rgba(121, 144, 181, 0.08) 16px,
      rgba(255, 255, 255, 0.12) 16px,
      rgba(255, 255, 255, 0.12) 32px
    );
  opacity: 0.9;
  pointer-events: none;
}

.home-layout-item.is-drop-settling {
  animation: home-layout-drop-settle 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes home-layout-placeholder-pulse {
  0% {
    transform: scale(0.996);
    border-color: rgba(104, 118, 144, 0.28);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.32),
      0 10px 18px rgba(27, 47, 76, 0.05);
  }

  100% {
    transform: scale(1.004);
    border-color: rgba(78, 119, 187, 0.5);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.62),
      0 18px 34px rgba(27, 47, 76, 0.1);
  }
}

@keyframes home-layout-drop-settle {
  0% {
    transform: scale(1.014);
    box-shadow:
      0 24px 42px rgba(21, 36, 58, 0.16),
      0 0 0 1px rgba(109, 143, 193, 0.22);
  }

  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 rgba(0, 0, 0, 0),
      0 0 0 0 rgba(0, 0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce){
  .home-layout-item,
  .home-layout-placeholder {
    transition: none;
    animation: none;
  }
}

  font-size: 0.84rem;
  letter-spacing: -0.02em;
}

.inspiration-launch-card {
  margin-top: 12px;
  border-color: rgba(81, 118, 94, 0.22);
  background:
    radial-gradient(circle at top right, rgba(180, 214, 189, 0.18), transparent 36%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 245, 0.95));
}

.inspiration-launch-btn {
  width: 100%;
  border: 1px solid rgba(81, 118, 94, 0.18);
  border-radius: 16px;
  background: rgba(248, 252, 248, 0.96);
  padding: 13px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.inspiration-launch-btn:focus-visible {
  outline: 2px solid rgba(81, 118, 94, 0.28);
  outline-offset: 4px;
}

.inspiration-launch-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: #35503d;
  background:
    linear-gradient(160deg, rgba(234, 246, 237, 0.98), rgba(204, 225, 209, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 22px rgba(66, 102, 79, 0.12);
}

.inspiration-launch-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.inspiration-launch-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #617a69;
}

.inspiration-launch-title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 760;
  line-height: 1.08;
  color: #27392d;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.inspiration-launch-help {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #5a6f60;
}

.inspiration-launch-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(93, 136, 108, 0.12);
  color: #3f6049;
  font-size: 0.74rem;
  font-weight: 720;
  white-space: nowrap;
}

.inspiration-page {
  --inspiration-page-top-offset: 0px;
  padding-top: 0;
  padding-bottom: 4px;
}

.inspiration-page-shell {
  display: grid;
  gap: 10px;
  padding-bottom: 0;
}

.inspiration-page-head {
  position: sticky;
  top: var(--inspiration-page-top-offset);
  z-index: 12;
  isolation: isolate;
  padding: 2px 52px 6px 0;
  background: linear-gradient(180deg, rgba(248, 251, 248, 0.98), rgba(248, 251, 248, 0.92) 82%, rgba(248, 251, 248, 0));
}

.inspiration-page-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  padding: 8px 12px;
  border: 1px solid rgba(189, 202, 193, 0.68);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(246, 250, 247, 0.96));
  box-shadow:
    0 10px 22px rgba(88, 110, 95, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.inspiration-page-titlebar {
  display: flex;
  align-items: center;
  min-width: 0;
}

.inspiration-page-titlewrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.inspiration-icon-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.inspiration-back-btn.ghost-btn,
.inspiration-create-btn.ghost-btn {
  border: 1px solid rgba(118, 146, 124, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: #4f6658;
  box-shadow: none;
}

.inspiration-page-close-btn.close-btn.sabbath-module-close-btn {
  top: 4px;
  right: 0;
  z-index: 14;
}

.inspiration-icon-slot,
.inspiration-search-icon,
.inspiration-page-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inspiration-icon-slot svg,
.inspiration-search-icon svg,
.inspiration-page-title-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inspiration-page-title-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #7a5a08;
  background: rgba(255, 232, 163, 0.88);
}

.inspiration-page-title {
  margin: 0;
  font-size: clamp(0.96rem, 2.4vw, 1.06rem);
  line-height: 1.1;
  color: #24342a;
  font-weight: 760;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspiration-toolbar {
  display: grid;
  gap: 10px;
}

.inspiration-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.inspiration-search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(86, 122, 100, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #60756a;
}

.inspiration-search-icon {
  color: #71847a;
}

.inspiration-search-create-btn {
  justify-self: end;
}

.inspiration-search-field input {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #28352d;
  font: inherit;
  padding: 0;
  box-sizing: border-box;
}

.inspiration-search-field input:focus-visible {
  outline: none;
}

.inspiration-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inspiration-filter-btn,
.inspiration-folder-btn {
  width: 100%;
  min-width: 0;
  min-height: 62px;
  padding: 12px;
  border: 1px solid rgba(180, 157, 103, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: #5a4728;
  font: inherit;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.inspiration-filter-btn:hover,
.inspiration-folder-btn:hover {
  transform: translateY(-1px);
}

.inspiration-filter-btn.is-active,
.inspiration-folder-btn.is-active {
  border-color: rgba(167, 104, 31, 0.34);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 246, 232, 0.92));
  box-shadow: 0 10px 18px rgba(128, 95, 39, 0.08);
}

.inspiration-folder-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.inspiration-folder-button-row {
  padding: 0;
}

.inspiration-folder-btn {
  border-color: rgba(86, 122, 100, 0.16);
  color: #3d4c42;
}

.inspiration-folder-btn.is-create {
  color: #6a5218;
}

.inspiration-filter-btn:focus-visible,
.inspiration-folder-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 148, 61, 0.16);
}

.inspiration-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(249, 246, 235, 0.98), rgba(240, 234, 218, 0.92));
  color: #6b5732;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.inspiration-filter-btn .inspiration-tile-icon,
.inspiration-folder-btn.is-active .inspiration-tile-icon,
.inspiration-folder-btn.is-create .inspiration-tile-icon {
  background: linear-gradient(180deg, rgba(255, 230, 149, 0.98), rgba(243, 188, 21, 0.94));
  color: #6f4b00;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 224, 0.88),
    0 10px 16px rgba(156, 111, 8, 0.12);
}

.inspiration-folder-btn .inspiration-tile-icon {
  background: linear-gradient(180deg, rgba(243, 246, 242, 0.98), rgba(230, 237, 229, 0.92));
  color: #57675c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.inspiration-tile-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inspiration-tile-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.inspiration-tile-title {
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 760;
  color: inherit;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.inspiration-tile-meta {
  font-size: 0.74rem;
  line-height: 1.45;
  color: #75684a;
}

.inspiration-folder-btn .inspiration-tile-meta {
  color: #69766d;
}

.inspiration-filter-btn.is-active .inspiration-tile-meta,
.inspiration-folder-btn.is-active .inspiration-tile-meta,
.inspiration-folder-btn.is-create .inspiration-tile-meta {
  color: #8a680f;
}

.inspiration-entry-list {
  display: grid;
  gap: 10px;
}

.inspiration-entry-card,
.inspiration-empty-card {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(86, 122, 100, 0.14);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
}

.inspiration-entry-card.is-pinned {
  border-color: rgba(154, 122, 53, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(255, 255, 255, 0.96));
}

.inspiration-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.inspiration-entry-head.is-minimal {
  justify-content: flex-end;
}

.inspiration-entry-head-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.inspiration-entry-menu-panel {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid rgba(86, 122, 100, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
}

.inspiration-entry-menu-list {
  display: grid;
  gap: 6px;
}

.inspiration-entry-menu-item,
.inspiration-entry-menu-create-btn {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(86, 122, 100, 0.14);
  border-radius: 8px;
  background: rgba(249, 252, 249, 0.95);
  color: #31423a;
  font: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.inspiration-entry-menu-current {
  font-size: 0.68rem;
  font-weight: 760;
}

.inspiration-entry-badges,
.inspiration-entry-tags,
.inspiration-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inspiration-entry-badge,
.inspiration-entry-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(86, 122, 100, 0.1);
  color: #3d5945;
  font-size: 0.72rem;
  font-weight: 720;
}

.inspiration-entry-badge.is-type {
  background: rgba(80, 112, 162, 0.1);
  color: #40578b;
}

.inspiration-entry-badge.is-pinned {
  background: rgba(179, 142, 49, 0.12);
  color: #7c6017;
}

.inspiration-entry-badge.is-folder {
  background: rgba(78, 122, 157, 0.12);
  color: #355f7c;
}

.inspiration-entry-date {
  margin: 2px 0 0;
  font-size: 0.76rem;
  color: #75867b;
  white-space: nowrap;
}

.inspiration-entry-title {
  margin: 12px 0 0;
  font-size: 1.05rem;
  line-height: 1.32;
  color: #223229;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.inspiration-entry-preview,
.inspiration-entry-note,
.inspiration-entry-source,
.inspiration-empty-card p,
.inspiration-status {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: #55685d;
  white-space: pre-wrap;
}

.inspiration-entry-note {
  color: #3d4f44;
}

.inspiration-entry-source {
  font-size: 0.78rem;
  color: #73837a;
}

.inspiration-entry-select-btn {
  border: 1px solid rgba(86, 122, 100, 0.18);
  border-radius: 999px;
  background: rgba(249, 252, 249, 0.95);
  color: #365040;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 720;
  min-height: 30px;
  padding: 0 10px;
  cursor: pointer;
}

.inspiration-entry-select-btn.is-selected,
.inspiration-entry-card.is-selected .inspiration-entry-select-btn {
  border-color: rgba(53, 95, 124, 0.26);
  background: rgba(223, 238, 247, 0.92);
  color: #274f69;
}

.inspiration-entry-card.is-selected {
  border-color: rgba(64, 108, 136, 0.22);
  box-shadow: 0 18px 30px rgba(53, 87, 108, 0.08);
}

.inspiration-entry-action {
  border: 1px solid rgba(86, 122, 100, 0.14);
  border-radius: 999px;
  background: rgba(249, 252, 249, 0.95);
  color: #365040;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 720;
  min-height: 34px;
  padding: 0 11px;
  cursor: pointer;
}

.inspiration-entry-action.is-danger {
  border-color: rgba(172, 85, 85, 0.16);
  color: #8a4343;
}

.inspiration-empty-card h3 {
  margin: 0;
  font-size: 1.02rem;
  color: #2b3d32;
}

.inspiration-editor-dialog {
  width: min(720px, calc(100vw - 28px));
}

.inspiration-editor-source {
  margin: 2px 0 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #62756a;
}

.inspiration-editor-form {
  display: grid;
  gap: 14px;
}

.inspiration-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.inspiration-editor-pin-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: #36463c;
}

.inspiration-editor-pin-row input {
  width: 18px;
  height: 18px;
}

.inspiration-editor-status {
  margin: -4px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #66796f;
}

.inspiration-editor-status.is-warning {
  color: #8a5c2e;
}

.inspiration-editor-status.is-success {
  color: #44664f;
}

.inspiration-editor-status.is-pending {
  color: #40578b;
}

.inspiration-editor-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 720px){
  .home-quick-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inspiration-launch-btn {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .inspiration-launch-badge {
    grid-column: 2;
    justify-self: start;
  }

  .inspiration-editor-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .inspiration-page-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .inspiration-back-btn.ghost-btn,
  .inspiration-create-btn {
    width: 34px;
  }

  .inspiration-editor-grid {
    grid-template-columns: 1fr;
  }
}

body.inspiration-page-active {
  display: block;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
}

body.inspiration-page-active .app-shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding:
    calc(12px + var(--screen-top-blocker))
    calc(16px + var(--safe-right))
    calc(20px + var(--safe-bottom))
    calc(16px + var(--safe-left));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body.inspiration-page-active .topbar,
body.inspiration-page-active .bottom-nav {
  display: none;
}

body.inspiration-page-active .app-shell::before {
  display: none;
}

body.inspiration-page-active:not(.native-app):not(.compact-layout) {
  display: flex;
  justify-content: center;
  padding: max(14px, var(--safe-top)) max(14px, var(--safe-right)) max(14px, var(--safe-bottom)) max(14px, var(--safe-left));
}

body.inspiration-page-active:not(.native-app):not(.compact-layout) .app-shell {
  width: min(100%, 430px);
  max-width: 430px;
  min-height: calc(100dvh - 28px);
  height: calc(100dvh - 28px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  box-shadow:
    0 20px 44px rgba(13, 30, 58, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: none;
  padding: 14px 16px 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

body.native-app .inspiration-page,
body.compact-layout .inspiration-page {
  --inspiration-page-top-offset: 0px;
  padding-top: 0;
  padding-bottom: 0;
}

body.native-app .inspiration-page-shell,
body.compact-layout .inspiration-page-shell {
  gap: 12px;
}

body.native-app .inspiration-page-head,
body.compact-layout .inspiration-page-head {
  padding-bottom: 2px;
}

body.native-app .inspiration-back-btn,
body.native-app .inspiration-create-btn,
body.compact-layout .inspiration-back-btn,
body.compact-layout .inspiration-create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.native-app .inspiration-page-title,
body.compact-layout .inspiration-page-title {
  font-size: clamp(1rem, 5vw, 1.12rem);
}

body.native-app .inspiration-toolbar,
body.compact-layout .inspiration-toolbar {
  gap: 8px;
}

body.native-app .inspiration-filter-row,
body.compact-layout .inspiration-filter-row,
body.native-app .inspiration-folder-list,
body.compact-layout .inspiration-folder-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  overflow: visible;
}

body.native-app .inspiration-filter-btn,
body.compact-layout .inspiration-filter-btn,
body.native-app .inspiration-folder-btn,
body.compact-layout .inspiration-folder-btn {
  min-height: 60px;
  padding: 12px;
}

@media (max-width: 900px){
  body:not(.native-app):not(.compact-layout) .inspiration-page {
    --inspiration-page-top-offset: calc(8px + var(--screen-top-blocker));
    padding-top: var(--inspiration-page-top-offset);
  }
}

@media (max-width: 720px){
    right: 0;
    width: min(300px, calc(100vw - 24px));
  }
}


.home-mission-weekend-banner-card {
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(31, 167, 100, 0.24);
  background:
    radial-gradient(circle at top right, rgba(113, 210, 157, 0.24), transparent 34%),
    linear-gradient(155deg, rgba(252, 255, 253, 0.98), rgba(232, 248, 239, 0.95));
  box-shadow: 0 18px 36px rgba(16, 76, 52, 0.12);
}

.home-mission-weekend-banner-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 18px;
  display: grid;
  gap: 12px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.home-mission-weekend-banner-btn:active {
  transform: translateY(1px);
}

.home-mission-weekend-banner-btn:focus-visible {
  outline: 3px solid rgba(31, 167, 100, 0.28);
  outline-offset: -3px;
}

.home-mission-weekend-banner-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.home-mission-weekend-banner-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-mission-weekend-banner-eyebrow {
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2e8a62;
}

.home-mission-weekend-banner-title {
  font-size: 1.02rem;
  line-height: 1.2;
  font-weight: 700;
  color: #1a513c;
  overflow-wrap: anywhere;
}

.home-mission-weekend-banner-summary {
  display: none;
}

.home-mission-weekend-banner-coverage {
  display: none;
}

.home-mission-weekend-banner-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-mission-weekend-banner-day {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  align-items: center;
  padding: 12px 13px;
  border-radius: 17px;
  border: 1px solid rgba(66, 96, 80, 0.14);
  background: rgba(255, 255, 255, 0.82);
}

.home-mission-weekend-banner-day.is-empty {
  border-color: rgba(31, 167, 100, 0.16);
  background: rgba(244, 251, 247, 0.94);
}

.home-mission-weekend-banner-day.is-half {
  border-color: rgba(31, 167, 100, 0.2);
  background: rgba(238, 250, 243, 0.95);
}

.home-mission-weekend-banner-day.is-full {
  border-color: rgba(31, 167, 100, 0.28);
  background: rgba(229, 248, 237, 0.96);
}

.home-mission-weekend-banner-day-label {
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2b5646;
  overflow-wrap: anywhere;
}

.home-mission-weekend-banner-day-badge {
  border-radius: 999px;
  background: rgba(31, 167, 100, 0.12);
  color: #217a56;
  padding: 4px 9px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  align-self: center;
}

.home-mission-weekend-banner-day.is-empty .home-mission-weekend-banner-day-badge {
  background: rgba(31, 167, 100, 0.08);
  color: #2a7252;
}

.home-mission-weekend-banner-day.is-half .home-mission-weekend-banner-day-badge {
  background: rgba(31, 167, 100, 0.14);
  color: #1f7d57;
}

.home-mission-weekend-banner-day.is-full .home-mission-weekend-banner-day-badge {
  background: rgba(31, 167, 100, 0.18);
  color: #156c49;
}

.home-mission-weekend-banner-day-status {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #217a56;
  overflow-wrap: anywhere;
}

.home-mission-weekend-banner-meta {
  display: none;
}

.home-mission-weekend-banner-cta-row {
  display: none;
}

.home-mission-weekend-banner-cta {
  font-size: 0.8rem;
  font-weight: 650;
  color: #217a56;
}

.home-mission-weekend-banner-chevron {
  width: 10px;
  height: 10px;
  border-top: 2px solid #217a56;
  border-right: 2px solid #217a56;
  transform: rotate(45deg);
  flex: none;
}

@media (max-width: 560px){
  .home-mission-weekend-banner-day {
    padding: 11px 12px;
  }
}

.home-calendar-card {
  margin-top: 12px;
  border-color: rgba(96, 106, 118, 0.2);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.93), rgba(242, 245, 248, 0.9));
}

.home-calendar-main-toggle {
  width: 100%;
  border: 1px solid rgba(98, 108, 120, 0.24);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.95);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.home-calendar-main-title {
  font-size: 0.9rem;
  font-weight: 590;
  color: #2f3642;
}

.home-calendar-main-icons {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.home-calendar-main-help {
  font-size: 0.76rem;
  color: #646e7c;
}

.home-calendar-main-title,
.home-calendar-main-icons,
.home-calendar-main-help {
  grid-column: 1 / 2;
}

.home-calendar-main-toggle .home-calendar-chevron {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  align-self: center;
  justify-self: end;
}

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

.home-calendar-main-body {
  margin-top: 10px;
}

.home-calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.home-calendar-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.home-calendar-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #2f3642;
}

.home-calendar-help {
  margin: 5px 0 0;
  font-size: 0.82rem;
  color: #646e7c;
}

.home-calendar-range {
  border-radius: 999px;
  border: 1px solid rgba(108, 117, 129, 0.26);
  background: rgba(233, 237, 241, 0.95);
  color: #4f5966;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 590;
  white-space: nowrap;
}

.home-calendar-edit-btn {
  border-radius: 999px;
  border: 1px solid rgba(104, 113, 124, 0.32);
  background: rgba(230, 235, 240, 0.95);
  color: #444d5a;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 590;
  padding: 5px 11px;
}

.home-calendar-edit-btn:active {
  transform: translateY(1px);
}

.home-calendar-edit-btn:disabled {
  opacity: 0.6;
}

.home-calendar-list {
  margin-top: 10px;
  display: grid;
  gap: 9px;
}

.home-calendar-month {
  border-radius: 16px;
  border: 1px solid rgba(102, 112, 125, 0.18);
  background: rgba(255, 255, 255, 0.92);
  padding: 9px;
}

.home-calendar-month-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 7px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.home-calendar-month-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.home-calendar-month-label {
  font-size: 0.9rem;
  font-weight: 590;
  color: #333b47;
  text-transform: capitalize;
}

.home-calendar-month-meta {
  font-size: 0.72rem;
  color: #677281;
}

.home-calendar-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #677281;
  border-bottom: 2px solid #677281;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

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

.home-calendar-timeline {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.home-calendar-timeline-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  border: 1px solid rgba(108, 117, 129, 0.22);
  background: rgba(244, 247, 250, 0.96);
}

.home-calendar-body {
  margin-top: 9px;
}

.home-calendar-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.home-calendar-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
}

.home-calendar-event.has-actions {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.home-calendar-event-body {
  min-width: 0;
}

.home-calendar-date {
  border-radius: 10px;
  border: 1px solid rgba(102, 112, 125, 0.22);
  background: rgba(242, 246, 249, 0.95);
  color: #495260;
  font-size: 0.72rem;
  font-weight: 590;
  padding: 4px 6px;
  text-align: center;
  min-width: 98px;
  width: max-content;
  white-space: nowrap;
}

.home-calendar-event-line {
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  font-size: 0.83rem;
  color: #343d49;
}

.home-calendar-event-line span:last-child {
  min-width: 0;
  line-height: 1.22;
}

.home-calendar-service-heading {
  align-items: center;
}

.home-calendar-service-badges {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
}

.home-calendar-inline-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.66rem;
  font-weight: 600;
  border: 1px solid rgba(52, 82, 126, 0.2);
  background: rgba(245, 248, 252, 0.95);
  color: #35527c;
}

.home-calendar-inline-badge.is-guest {
  border-color: rgba(52, 82, 126, 0.24);
  background: rgba(52, 82, 126, 0.13);
  color: #335381;
}

.home-calendar-service-programs {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.home-calendar-service-program {
  border-radius: 12px;
  border: 1px solid rgba(111, 121, 135, 0.18);
  padding: 8px 10px;
  background: rgba(248, 250, 252, 0.96);
}

.home-calendar-service-program.is-sabbath-school {
  border-color: rgba(115, 93, 211, 0.18);
  background: rgba(247, 244, 255, 0.96);
}

.home-calendar-service-program.is-sermon {
  border-color: rgba(53, 118, 209, 0.18);
  background: rgba(244, 248, 255, 0.96);
}

.home-calendar-service-program-line {
  margin: 0;
  display: grid;
  gap: 3px;
  font-size: 0.8rem;
  color: #33404d;
}

.home-calendar-service-program-label {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.home-calendar-service-program-meta {
  margin: 4px 0 0;
  font-size: 0.74rem;
  color: #64707f;
}

.home-calendar-event-meta {
  margin: 3px 0 0;
  font-size: 0.75rem;
  color: #667281;
}

.home-calendar-event-meta.is-no-service {
  color: #9b4242;
  font-weight: 530;
}

.home-calendar-event-meta-critical {
  color: #9f6326;
  font-weight: 530;
}

.home-calendar-reaction-summary {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.home-calendar-reaction-summary-btn {
  border: 1px solid rgba(101, 111, 123, 0.24);
  border-radius: 999px;
  background: rgba(243, 247, 250, 0.96);
  color: #4a5563;
  min-width: 30px;
  height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 590;
  line-height: 1;
}

.home-calendar-event-menu-reactions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.home-calendar-reaction-menu-btn {
  border: 1px solid rgba(101, 111, 123, 0.2);
  border-radius: 8px;
  background: rgba(245, 248, 251, 0.96);
  color: #4b5664;
  min-height: 30px;
  padding: 5px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 590;
  line-height: 1;
}

.home-calendar-reaction-menu-btn:disabled {
  opacity: 0.45;
}

.home-calendar-reaction-menu-btn.is-active {
  border-color: rgba(98, 108, 120, 0.52);
  background: rgba(229, 234, 240, 0.96);
  color: #3f4956;
}

.home-calendar-event-menu-divider {
  height: 1px;
  background: rgba(101, 111, 123, 0.2);
  margin: 2px 0;
}

.home-calendar-reaction-icon {
  font-size: 0.8rem;
}

.home-calendar-reaction-count {
  min-width: 8px;
  text-align: center;
}

.home-reaction-dialog-meta {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: #616c7a;
}

.home-reaction-dialog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.home-reaction-dialog-item {
  border: 1px solid rgba(101, 111, 123, 0.2);
  border-radius: 10px;
  background: rgba(244, 247, 250, 0.96);
  color: #353f4b;
  font-size: 0.82rem;
  font-weight: 510;
  line-height: 1.25;
  padding: 8px 10px;
}

.home-reaction-dialog-empty {
  border: 1px dashed rgba(101, 111, 123, 0.24);
  border-radius: 10px;
  background: rgba(242, 246, 249, 0.82);
  color: #616c7a;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.3;
  padding: 10px 12px;
}

.task-board-card {
  margin-top: 12px;
  border-color: rgba(92, 102, 114, 0.22);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.93), rgba(241, 243, 246, 0.91));
}

.task-board-main-toggle {
  width: 100%;
  border: 1px solid rgba(96, 106, 118, 0.26);
  border-radius: 14px;
  background: rgba(246, 248, 251, 0.95);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.task-board-main-top {
  grid-column: 1 / 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.task-board-main-title {
  min-width: 0;
  color: #2f3642;
  font-size: 0.9rem;
  font-weight: 590;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.task-board-main-help {
  grid-column: 1 / 2;
  color: #5f6976;
  font-size: 0.76rem;
  line-height: 1.35;
}

.task-board-main-icon {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  align-self: start;
  justify-self: end;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(96, 106, 118, 0.24);
  background: rgba(233, 238, 243, 0.95);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.task-board-main-unread-badge {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 590;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0 4px;
  box-shadow: 0 4px 10px rgba(255, 59, 48, 0.36);
}

.task-board-main-toggle .task-board-chevron {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  align-self: end;
  justify-self: end;
}

.task-board-main-toggle.is-open .task-board-chevron {
  transform: rotate(225deg);
}

.task-board-main-body {
  margin-top: 10px;
}

.mission-network-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.mission-network-kpi {
  border: 1px solid rgba(122, 132, 147, 0.28);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.68);
}

.mission-network-kpi-label {
  margin: 0;
  font-size: 12px;
  color: #6d7684;
}

.mission-network-kpi-value {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: #2b3444;
}

.mission-network-canvas {
  margin-bottom: 12px;
  border: 1px solid rgba(122, 132, 147, 0.24);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 10px;
}

.mission-network-canvas-overview {
  display: grid;
  gap: 8px;
}

.mission-network-canvas-church {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(101, 113, 130, 0.34);
  background: rgba(235, 240, 246, 0.95);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 670;
  color: #3b4657;
}

.mission-network-canvas-groups {
  display: grid;
  gap: 8px;
}

.mission-network-canvas-group {
  text-align: left;
  font: inherit;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(122, 132, 147, 0.28);
  background: rgba(255, 255, 255, 0.88);
  padding: 8px;
  display: grid;
  gap: 2px;
}

.mission-network-canvas-group.is-selected {
  border-color: rgba(71, 121, 188, 0.38);
  box-shadow: 0 6px 14px rgba(58, 97, 146, 0.14);
}

.mission-network-canvas-group-title {
  margin: 0;
  font-size: 12px;
  font-weight: 660;
  color: #2f3949;
}

.mission-network-canvas-group-meta {
  margin: 0;
  font-size: 11px;
  color: #627186;
}

.mission-network-canvas-detail {
  border-top: 1px dashed rgba(122, 132, 147, 0.34);
  padding-top: 8px;
}

.mission-network-canvas-detail-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 650;
  color: #374253;
}

.mission-network-canvas-member-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.mission-network-canvas-member {
  border: 1px solid rgba(122, 132, 147, 0.26);
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.82);
}

.mission-network-canvas-member-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mission-network-canvas-member-name {
  margin: 0;
  font-size: 12px;
  color: #2f3949;
}

.mission-network-canvas-member-role {
  border-radius: 999px;
  border: 1px solid rgba(109, 120, 136, 0.34);
  background: rgba(235, 239, 244, 0.95);
  color: #495466;
  font-size: 10px;
  font-weight: 640;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 2px 7px;
}

.mission-network-canvas-member-meta {
  margin: 4px 0 0;
  font-size: 11px;
  color: #627186;
}

.mission-network-canvas-member-guiding {
  color: #2d7a56;
}

.mission-network-program-list {
  display: grid;
  gap: 8px;
}

.mission-network-readiness {
  margin-bottom: 10px;
}

.mission-network-readiness-card {
  border: 1px solid rgba(122, 132, 147, 0.28);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.76);
  display: grid;
  gap: 6px;
}

.mission-network-readiness-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #2e3949;
}

.mission-network-readiness-status {
  margin: 0;
  font-size: 12px;
  color: #5f6d82;
}

.mission-network-readiness-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.mission-network-readiness-item {
  font-size: 12px;
  color: #3c495c;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.mission-network-readiness-item.is-done {
  color: #2d7a56;
}

.mission-network-readiness-item.is-pending {
  color: #5f6d82;
}

.mission-network-readiness-mark {
  width: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.mission-network-readiness-next {
  margin: 0;
  font-size: 11px;
  color: #6a778c;
}

.mission-network-readiness-meta {
  margin: 0;
  font-size: 11px;
  color: #6a778c;
}

.mission-network-readiness-ack-btn {
  justify-self: flex-start;
}

.mission-network-program-item {
  border: 1px solid rgba(122, 132, 147, 0.26);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.mission-network-program-title {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
}

.mission-network-program-meta {
  margin: 0;
  font-size: 12px;
  color: #6d7684;
}

.mission-network-program-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mission-network-program-head-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mission-network-program-toggle {
  border-radius: 999px;
  border: 1px solid rgba(104, 113, 126, 0.34);
  background: rgba(228, 233, 239, 0.95);
  color: #3f4855;
  font: inherit;
  font-size: 11px;
  font-weight: 640;
  padding: 4px 10px;
  white-space: nowrap;
}

.mission-network-program-detail {
  margin-top: 9px;
  border-top: 1px dashed rgba(122, 132, 147, 0.32);
  padding-top: 9px;
}

.mission-network-session-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.mission-network-session-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.mission-network-session-item-empty {
  color: #6d7684;
  font-size: 12px;
}

.mission-network-session-title {
  font-size: 12px;
  color: #2f3949;
}

.mission-network-session-status {
  border-radius: 999px;
  border: 1px solid rgba(109, 120, 136, 0.34);
  background: rgba(235, 239, 244, 0.95);
  color: #495466;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 2px 7px;
}

.mission-network-session-status.is-active {
  border-color: rgba(53, 108, 184, 0.38);
  background: rgba(218, 231, 248, 0.95);
  color: #2f5f99;
}

.mission-network-session-status.is-completed {
  border-color: rgba(59, 135, 101, 0.38);
  background: rgba(220, 243, 234, 0.95);
  color: #2d7a56;
}

.mission-network-session-layer {
  font-size: 11px;
  color: #5f6978;
}

.mission-network-spiritual-unlocked {
  color: #2d7a56;
}

.mission-network-guide-support-meta {
  margin-top: 8px;
}

.mission-network-action-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mission-network-action-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(102, 111, 123, 0.32);
  background: rgba(232, 236, 241, 0.95);
  color: #414a57;
  font: inherit;
  font-size: 11px;
  font-weight: 620;
  padding: 4px 10px;
  text-decoration: none;
}

.mission-network-action-btn.is-loading,
.mission-network-action-btn:disabled {
  opacity: 0.56;
}

.task-board-head {
  display: flex;
  justify-content: flex-end;
}

.task-create-topic-btn {
  border-radius: 999px;
  border: 1px solid rgba(102, 111, 123, 0.32);
  background: rgba(232, 236, 241, 0.95);
  color: #414a57;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 590;
  padding: 5px 11px;
  white-space: nowrap;
}

.task-board-card .task-create-topic-btn {
  border-color: rgba(96, 106, 118, 0.36);
  background: rgba(226, 231, 237, 0.95);
  color: #3f4855;
}

.task-create-topic-btn:active {
  transform: translateY(1px);
}

.task-topic-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.task-archive-admin-card {
  margin-top: 10px;
  border-top: 1px dashed rgba(50, 84, 136, 0.22);
  padding-top: 10px;
}

.task-archive-toggle-btn {
  width: 100%;
  border: 1px solid rgba(50, 84, 136, 0.2);
  border-radius: 10px;
  background: rgba(244, 249, 255, 0.92);
  color: #2b528d;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 590;
  text-align: left;
  padding: 8px 10px;
}

.task-archive-list {
  margin-top: 8px;
  display: grid;
  gap: 7px;
}

.task-archive-empty {
  margin: 0;
  border-radius: 10px;
  border: 1px dashed rgba(50, 84, 136, 0.24);
  background: rgba(245, 250, 255, 0.7);
  color: #4d6791;
  font-size: 0.76rem;
  text-align: center;
  padding: 10px;
}

.task-archive-item {
  border: 1px solid rgba(50, 84, 136, 0.16);
  border-radius: 11px;
  background: rgba(248, 252, 255, 0.88);
  padding: 8px;
  display: grid;
  gap: 7px;
}

.task-archive-open-btn {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  font: inherit;
  display: grid;
  gap: 3px;
}

.task-archive-open-title {
  color: #27497d;
  font-size: 0.82rem;
  font-weight: 590;
  line-height: 1.2;
}

.task-archive-open-meta {
  color: #56719b;
  font-size: 0.7rem;
  line-height: 1.2;
}

.task-archive-restore-btn {
  border-radius: 9px;
  border: 1px solid rgba(53, 118, 209, 0.24);
  background: rgba(53, 118, 209, 0.12);
  color: #1f4f98;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 590;
  min-height: 28px;
  padding: 0 10px;
  justify-self: end;
}

.task-topic-empty {
  margin: 0;
  border-radius: 12px;
  border: 1px dashed rgba(50, 84, 136, 0.24);
  color: #4d6791;
  text-align: center;
  padding: 12px;
  font-size: 0.82rem;
}

.task-topic-item {
  border: 1px solid rgba(50, 84, 136, 0.16);
  border-radius: 12px;
  background: rgba(248, 252, 255, 0.9);
  color: inherit;
  font: inherit;
  width: 100%;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  text-align: left;
  transition:
    transform 160ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.task-topic-item:active {
  transform: translateY(1px) scale(0.995);
  border-color: rgba(53, 118, 209, 0.28);
  background: rgba(242, 248, 255, 0.96);
}

.task-topic-item.is-fresh {
  animation: task-topic-fresh-in 700ms ease;
}

.task-topic-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.task-topic-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-topic-title {
  font-size: 0.87rem;
  font-weight: 590;
  color: #27497d;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-topic-inline-urgent {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(218, 69, 59, 0.28);
  background: rgba(255, 234, 231, 0.95);
  color: #be3028;
  font-size: 0.62rem;
  font-weight: 680;
  line-height: 1;
  padding: 2px 6px;
  white-space: nowrap;
}

.task-topic-preview {
  font-size: 0.75rem;
  color: #516c97;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.task-topic-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.task-topic-unread-badge {
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 680;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0 5px;
  box-shadow: 0 4px 10px rgba(255, 59, 48, 0.34);
}

.task-topic-count {
  font-size: 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(53, 118, 209, 0.2);
  background: rgba(53, 118, 209, 0.1);
  color: #325f9c;
  font-weight: 590;
  padding: 2px 7px;
  white-space: nowrap;
}

.task-topic-time {
  font-size: 0.66rem;
  color: #5c7498;
}

.task-topic-dialog-meta {
  margin: 0 18px 8px;
  font-size: 0.78rem;
  color: #4b678f;
}

.task-create-form {
  gap: 14px;
}

.task-create-form input {
  min-height: 44px;
  font-size: 0.95rem;
}

.task-topic-dialog-actions {
  padding: 0 16px 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.task-topic-urgent-badge {
  margin-right: auto;
  border-radius: 999px;
  border: 1px solid rgba(218, 69, 59, 0.28);
  background: rgba(255, 234, 231, 0.94);
  color: #be3028;
  font-size: 0.68rem;
  font-weight: 680;
  line-height: 1;
  padding: 5px 10px;
}

.task-urgent-toggle-btn {
  width: auto;
  min-height: 30px;
  padding: 7px 12px;
  font-size: 0.74rem;
  border-radius: 10px;
  border-color: rgba(218, 69, 59, 0.24);
  color: #a53a32;
  background: rgba(255, 240, 237, 0.88);
}

.task-archive-topic-btn {
  width: auto;
  min-height: 30px;
  padding: 7px 12px;
  font-size: 0.74rem;
  border-radius: 10px;
  border-color: rgba(201, 88, 65, 0.28);
  color: #a14b39;
  background: rgba(255, 241, 238, 0.9);
}

.task-topic-archived-info {
  margin: 0;
  padding: 0 16px 8px;
  color: #5a749c;
  font-size: 0.74rem;
  line-height: 1.3;
}

#taskTopicDialog[open] {
  animation: task-topic-dialog-in 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

#taskTopicDialog::backdrop {
  animation: task-topic-backdrop-in 220ms ease;
}

.task-topic-messages {
  list-style: none;
  margin: 0;
  padding: 0 16px;
  display: grid;
  gap: 8px;
  max-height: min(52vh, 380px);
  overflow-y: auto;
}

.task-msg {
  border: 1px solid rgba(50, 84, 136, 0.14);
  border-radius: 12px;
  background: rgba(246, 250, 255, 0.92);
  padding: 8px 10px;
  max-width: 86%;
}

.task-msg.is-own {
  margin-left: auto;
  border-color: rgba(53, 118, 209, 0.26);
  background: rgba(225, 238, 255, 0.9);
}

.task-msg-author {
  margin: 0;
  font-size: 0.67rem;
  color: #3f5e8d;
  font-weight: 590;
}

.task-msg-text {
  margin: 3px 0 0;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #1f3967;
  word-break: break-word;
}

.task-msg-time {
  margin: 4px 0 0;
  font-size: 0.63rem;
  color: #6681a8;
}

.task-msg-star {
  margin-left: 5px;
  color: #f2ae2d;
  font-size: 0.74rem;
}

.task-msg-reactions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.task-msg-reaction-chip {
  border: 1px solid rgba(50, 84, 136, 0.2);
  border-radius: 999px;
  background: rgba(245, 250, 255, 0.95);
  color: #2f568f;
  min-height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: inherit;
  font-size: 0.67rem;
  font-weight: 590;
  line-height: 1;
}

.task-msg-reaction-chip.is-active {
  border-color: rgba(53, 118, 209, 0.42);
  background: rgba(212, 230, 255, 0.95);
  color: #1f4f98;
}

.task-msg-reaction-picker {
  margin-top: 7px;
  border: 1px solid rgba(50, 84, 136, 0.18);
  border-radius: 999px;
  background: rgba(248, 252, 255, 0.98);
  box-shadow: 0 6px 14px rgba(23, 39, 63, 0.12);
  padding: 4px 6px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.task-msg-reaction-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(233, 243, 255, 0.9);
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}

.task-msg-reaction-btn:active {
  transform: translateY(1px);
}

.task-msg-action-dialog {
  border: 0;
  background: transparent;
  width: min(95vw, 420px);
  padding: 0;
}

.task-msg-action-dialog::backdrop {
  background: rgba(5, 10, 18, 0.62);
  backdrop-filter: blur(4px);
}

.task-msg-action-body {
  padding: 10px 8px 16px;
  display: grid;
  gap: 10px;
}

.task-msg-action-emoji-list {
  border: 1px solid rgba(133, 151, 183, 0.34);
  border-radius: 999px;
  background: rgba(23, 33, 51, 0.86);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.task-msg-action-emoji-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f5f8ff;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  display: grid;
  place-items: center;
}

.task-msg-action-emoji-btn.is-active {
  background: rgba(102, 153, 226, 0.5);
}

.task-msg-action-preview {
  border: 1px solid rgba(133, 151, 183, 0.28);
  border-radius: 14px;
  background: rgba(24, 35, 56, 0.86);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.task-msg-action-preview-author {
  margin: 0;
  color: #cfe0ff;
  font-size: 0.68rem;
  font-weight: 590;
}

.task-msg-action-preview-text {
  margin: 0;
  color: #f1f5ff;
  font-size: 0.9rem;
  line-height: 1.3;
  word-break: break-word;
}

.task-msg-action-preview-time {
  margin: 2px 0 0;
  color: #afc4e4;
  font-size: 0.68rem;
}

.task-msg-action-menu {
  border: 1px solid rgba(133, 151, 183, 0.3);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(23, 33, 51, 0.9);
}

.task-msg-action-menu button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-top: 1px solid rgba(133, 151, 183, 0.2);
  background: transparent;
  color: #f1f5ff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-msg-action-menu button::after {
  content: attr(data-icon);
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.95;
}

.task-msg-action-menu button:first-child {
  border-top: 0;
}

.task-msg-action-menu button.is-danger {
  color: #ff8a95;
}

.task-msg-action-menu button:active {
  background: rgba(72, 98, 136, 0.38);
}

.task-msg-empty {
  border: 1px dashed rgba(50, 84, 136, 0.24);
  border-radius: 10px;
  background: rgba(245, 249, 255, 0.74);
  color: #4d6791;
  font-size: 0.78rem;
  text-align: center;
  padding: 10px 12px;
}

.task-topic-form {
  gap: 8px;
  padding-top: 10px;
}

.task-topic-emoji-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.task-topic-emoji-label {
  font-size: 0.74rem;
  color: #53709a;
  font-weight: 590;
}

.task-topic-emoji-buttons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.task-reply-banner {
  border: 1px solid rgba(50, 84, 136, 0.2);
  border-radius: 11px;
  background: rgba(236, 245, 255, 0.9);
  min-height: 34px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.task-reply-banner-meta {
  margin: 0;
  color: #2d4f83;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-reply-cancel-btn {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(50, 84, 136, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #355f98;
  font: inherit;
  font-size: 1rem;
  font-weight: 590;
  line-height: 1;
  padding: 0;
}

.task-reply-cancel-btn:active {
  transform: translateY(1px);
}

.task-composer-plus-wrap {
  position: relative;
  display: inline-flex;
}

.task-composer-plus-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(50, 84, 136, 0.22);
  background: rgba(238, 246, 255, 0.96);
  color: #2b528d;
  font: inherit;
  font-size: 1.55rem;
  font-weight: 590;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}

.task-composer-plus-btn:active {
  transform: translateY(1px);
}

.task-composer-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 136px;
  border-radius: 12px;
  border: 1px solid rgba(50, 84, 136, 0.2);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 22px rgba(29, 50, 82, 0.16);
  padding: 6px;
  display: grid;
  gap: 5px;
  z-index: 20;
}

.task-composer-menu-item {
  border: 1px solid rgba(50, 84, 136, 0.18);
  border-radius: 9px;
  background: rgba(246, 251, 255, 0.95);
  color: #2b528d;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 590;
  text-align: left;
  min-height: 30px;
  padding: 0 10px;
}

.task-composer-menu-item:active {
  transform: translateY(1px);
}

.task-topic-emoji-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(50, 84, 136, 0.18);
  background: rgba(248, 252, 255, 0.95);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  display: grid;
  place-items: center;
}

.task-topic-emoji-btn:active {
  transform: translateY(1px);
}

.task-topic-input-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.task-topic-input-row #taskTopicSendBtn {
  width: auto;
  min-width: 72px;
  padding: 10px 12px;
  border-radius: 12px;
}

.task-poll-help {
  margin: 0;
  color: #5b759d;
  font-size: 0.72rem;
}

.task-poll-option-fields {
  display: grid;
  gap: 8px;
}

.task-poll-option-input {
  width: 100%;
  border-radius: 11px;
  border: 1px solid rgba(50, 84, 136, 0.2);
  background: rgba(250, 253, 255, 0.96);
  color: #1f3d6e;
  font: inherit;
  font-size: 0.82rem;
  padding: 9px 11px;
}

.task-poll-add-option-btn {
  min-height: 36px;
  border-radius: 12px;
  padding: 8px 12px;
  border-color: rgba(50, 84, 136, 0.24);
  background: rgba(237, 245, 255, 0.94);
  color: #2f5d98;
  font-size: 0.76rem;
  font-weight: 590;
}

.event-form label.task-poll-multi-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #355889;
  font-weight: 500;
  justify-content: flex-start;
}

.task-poll-multi-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.task-poll-preview-section {
  border: 1px solid rgba(50, 84, 136, 0.18);
  border-radius: 14px;
  background: rgba(243, 248, 255, 0.92);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.task-poll-preview-title {
  margin: 0;
  color: #355c94;
  font-size: 0.74rem;
  font-weight: 590;
}

.task-poll-preview-card .task-poll-card {
  box-shadow: none;
}

.task-poll-preview-card .task-poll-option {
  pointer-events: none;
}

.task-poll-preview-card .task-poll-view-votes-btn {
  display: none;
}

.task-poll-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.task-poll-action-row .task-poll-preview-btn,
.task-poll-action-row .task-poll-submit-btn {
  min-height: 38px;
  border-radius: 12px;
  padding: 10px 12px;
}

.task-poll-submit-btn:disabled {
  opacity: 0.58;
}

.task-msg--poll {
  border: 0;
  background: transparent;
  padding: 0;
  max-width: 96%;
}

.task-msg--poll .task-msg-body {
  padding: 0;
  background: transparent;
  border: 0;
}

.task-msg--poll .task-msg-author {
  margin-bottom: 4px;
  color: #355d97;
}

.task-msg--poll .task-msg-time {
  color: #6683ad;
}

.task-poll-card {
  border: 1px solid rgba(47, 128, 237, 0.28);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(241, 247, 255, 0.98), rgba(230, 240, 255, 0.95));
  box-shadow: 0 8px 16px rgba(24, 55, 98, 0.12);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.task-poll-question {
  margin: 0;
  color: #21416f;
  font-size: 0.84rem;
  font-weight: 590;
  line-height: 1.28;
}

.task-poll-mode {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #476c9d;
  font-size: 0.7rem;
  font-weight: 500;
}

.task-poll-mode::before {
  content: "\2713";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.12);
  box-shadow: inset 0 0 0 1px rgba(47, 128, 237, 0.36);
  color: #2d6fcb;
  font-size: 0.68rem;
  font-weight: 680;
}

.task-poll-options {
  display: grid;
  gap: 7px;
}

.task-poll-option {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(50, 84, 136, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #234372;
  font: inherit;
  min-height: 46px;
  padding: 0 10px 11px;
  text-align: left;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.task-poll-option-fill {
  position: absolute;
  left: 44px;
  right: 10px;
  bottom: 6px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(74, 149, 243, 0.85), rgba(47, 128, 237, 0.85));
  pointer-events: none;
}

.task-poll-option-indicator {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(74, 128, 196, 0.48);
  background: transparent;
  position: relative;
  z-index: 1;
}

.task-poll-option.is-multiple .task-poll-option-indicator {
  border-radius: 5px;
}

.task-poll-option-label,
.task-poll-option-meta {
  position: relative;
  z-index: 1;
}

.task-poll-option-label {
  font-size: 0.81rem;
  color: #1f3f6e;
  line-height: 1.2;
}

.task-poll-option-meta {
  font-size: 0.75rem;
  color: #5172a1;
  font-weight: 590;
  white-space: nowrap;
}

.task-poll-option.is-selected {
  border-color: rgba(47, 128, 237, 0.64);
  background: rgba(227, 239, 255, 0.96);
}

.task-poll-option.is-selected .task-poll-option-indicator {
  border-color: rgba(47, 128, 237, 0.9);
  background: rgba(47, 128, 237, 0.84);
  box-shadow: inset 0 0 0 3px rgba(226, 239, 255, 0.95);
}

.task-poll-total {
  margin: 0;
  color: #4f6f9f;
  font-size: 0.7rem;
  font-weight: 500;
}

.task-poll-view-votes-btn {
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(47, 128, 237, 0.34);
  background: rgba(47, 128, 237, 0.16);
  color: #24548d;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 590;
}

.task-poll-view-votes-btn:active {
  transform: translateY(1px);
}

.task-poll-results-dialog {
  width: min(94vw, 430px);
  border: 1px solid rgba(50, 84, 136, 0.24);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.96));
  color: #1e355b;
}

.task-poll-results-dialog .dialog-head {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(50, 84, 136, 0.2);
}

.task-poll-results-dialog .dialog-head h3 {
  color: #244577;
}

.task-poll-results-dialog .close-btn {
  border-color: rgba(50, 84, 136, 0.28);
  background: rgba(231, 240, 252, 0.9);
}

.task-poll-results-dialog .close-btn span {
  background: #486a99;
}

.task-poll-results-body {
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 12px 12px 16px;
  display: grid;
  gap: 10px;
}

.task-poll-results-question {
  margin: 0;
  border: 1px solid rgba(50, 84, 136, 0.2);
  border-radius: 14px;
  background: rgba(236, 245, 255, 0.94);
  color: #1f3c68;
  font-size: 0.95rem;
  font-weight: 590;
  line-height: 1.32;
  padding: 12px 14px;
}

.task-poll-results-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.task-poll-results-option {
  border: 1px solid rgba(50, 84, 136, 0.18);
  border-radius: 14px;
  background: rgba(247, 251, 255, 0.95);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.task-poll-results-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.task-poll-results-option-title {
  margin: 0;
  color: #213f6d;
  font-size: 0.88rem;
  font-weight: 590;
}

.task-poll-results-option-meta {
  margin: 0;
  color: #5c7ca9;
  font-size: 0.75rem;
  font-weight: 590;
  white-space: nowrap;
}

.task-poll-results-option-top {
  margin-left: 4px;
  color: #ffd88c;
}

.task-poll-results-voters {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.task-poll-results-voter {
  min-height: 36px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(50, 84, 136, 0.14);
  padding-top: 8px;
}

.task-poll-results-voter:first-child {
  border-top: 0;
  padding-top: 0;
}

.task-poll-results-voter.is-empty {
  display: block;
  border-top: 1px dashed rgba(50, 84, 136, 0.24);
  color: #6e87ad;
  font-size: 0.74rem;
  font-style: italic;
}

.task-poll-results-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(76, 130, 198, 0.88);
  color: #f0f6ff;
  font-size: 0.68rem;
  font-weight: 590;
  display: inline-grid;
  place-items: center;
}

.task-poll-results-voter-name {
  color: #254473;
  font-size: 0.8rem;
  line-height: 1.2;
}

.task-poll-results-empty {
  border: 1px dashed rgba(50, 84, 136, 0.26);
  border-radius: 12px;
  background: rgba(233, 243, 255, 0.82);
  color: #4f6f9c;
  font-size: 0.78rem;
  text-align: center;
  padding: 14px 12px;
}

.task-attachment-file-card {
  border: 1px solid rgba(50, 84, 136, 0.16);
  border-radius: 12px;
  background: rgba(244, 249, 255, 0.9);
  color: inherit;
  text-decoration: none;
  min-height: 44px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.task-attachment-file-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.task-attachment-file-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.task-attachment-file-name {
  font-size: 0.76rem;
  color: #2b4f84;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-attachment-file-meta {
  font-size: 0.66rem;
  color: #58759f;
}

.task-attachment-photo-card {
  display: grid;
  gap: 6px;
}

.task-attachment-photo {
  width: min(220px, 100%);
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(50, 84, 136, 0.16);
  background: rgba(248, 252, 255, 0.95);
}

.task-attachment-link {
  font-size: 0.7rem;
  color: #2e5a99;
  text-decoration: none;
}

.home-calendar-event-actions {
  position: relative;
  align-self: flex-start;
}

.home-calendar-event-menu-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(49, 87, 143, 0.2);
  background: rgba(241, 246, 255, 0.96);
  color: #2a508a;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}

.home-calendar-event-menu-btn:active {
  transform: translateY(1px);
}

.home-calendar-event-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 112px;
  border-radius: 10px;
  border: 1px solid rgba(49, 87, 143, 0.2);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 20px rgba(32, 61, 105, 0.14);
  padding: 5px;
  display: grid;
  gap: 4px;
  z-index: 12;
}

.home-calendar-event-menu button {
  border: 1px solid rgba(49, 87, 143, 0.14);
  border-radius: 8px;
  background: rgba(246, 250, 255, 0.95);
  color: #264d84;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 540;
  text-align: left;
  padding: 6px 8px;
}

.home-calendar-event-menu button:disabled {
  opacity: 0.5;
}

.home-calendar-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.66rem;
  font-weight: 590;
  border: 1px solid transparent;
}

button.home-calendar-tag {
  font: inherit;
  line-height: 1.2;
}

.home-calendar-event-banner {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(31, 167, 100, 0.22);
  background: linear-gradient(160deg, rgba(232, 250, 240, 0.96), rgba(242, 255, 248, 0.98));
  padding: 9px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.home-calendar-event-banner:active {
  transform: translateY(1px);
}

.home-calendar-event-banner:focus-visible {
  outline: 2px solid rgba(31, 167, 100, 0.34);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(31, 167, 100, 0.12);
}

.home-calendar-event-banner.is-mission,
.home-calendar-event-banner.is-mission-stand {
  border-color: rgba(31, 167, 100, 0.28);
  box-shadow: 0 10px 20px rgba(31, 167, 100, 0.08);
}

.home-calendar-event-banner-title {
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
  color: #1d5f3d;
}

.home-calendar-event-banner-chevron {
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(27, 110, 66, 0.78);
  border-right: 2px solid rgba(27, 110, 66, 0.78);
  transform: rotate(45deg);
}

.home-calendar-tag.is-sermon {
  border-color: rgba(53, 118, 209, 0.28);
  background: rgba(53, 118, 209, 0.16);
  color: #1f4f98;
}

.home-calendar-timeline-icon.is-sermon {
  border-color: rgba(53, 118, 209, 0.24);
  background: rgba(53, 118, 209, 0.14);
}

.home-calendar-tag.is-lesson {
  border-color: rgba(115, 93, 211, 0.28);
  background: rgba(115, 93, 211, 0.16);
  color: #5338b3;
}

.home-calendar-timeline-icon.is-lesson {
  border-color: rgba(115, 93, 211, 0.24);
  background: rgba(115, 93, 211, 0.14);
}

.home-calendar-tag.is-mission {
  border-color: rgba(31, 167, 100, 0.28);
  background: rgba(31, 167, 100, 0.15);
  color: #1a7c4f;
}

.home-calendar-timeline-icon.is-mission {
  border-color: rgba(31, 167, 100, 0.24);
  background: rgba(31, 167, 100, 0.14);
}

.home-calendar-tag.is-concert {
  border-color: rgba(242, 140, 40, 0.3);
  background: rgba(242, 140, 40, 0.18);
  color: #b36210;
}

.home-calendar-timeline-icon.is-concert {
  border-color: rgba(242, 140, 40, 0.28);
  background: rgba(242, 140, 40, 0.16);
}

.home-calendar-tag.is-guest {
  border-color: rgba(52, 82, 126, 0.26);
  background: rgba(52, 82, 126, 0.13);
  color: #335381;
}

.home-calendar-timeline-icon.is-guest {
  border-color: rgba(52, 82, 126, 0.24);
  background: rgba(52, 82, 126, 0.13);
}

.home-calendar-tag.is-service,
.home-calendar-tag.is-evangelism {
  border-color: rgba(47, 128, 237, 0.26);
  background: rgba(47, 128, 237, 0.14);
  color: #2b5ca5;
}

.home-calendar-timeline-icon.is-service,
.home-calendar-timeline-icon.is-evangelism {
  border-color: rgba(47, 128, 237, 0.24);
  background: rgba(47, 128, 237, 0.13);
}

.home-calendar-tag.is-sabbath-school,
.home-calendar-tag.is-youth-sabbath {
  border-color: rgba(115, 93, 211, 0.28);
  background: rgba(115, 93, 211, 0.16);
  color: #5338b3;
}

.home-calendar-timeline-icon.is-sabbath-school,
.home-calendar-timeline-icon.is-youth-sabbath {
  border-color: rgba(115, 93, 211, 0.24);
  background: rgba(115, 93, 211, 0.14);
}

.home-calendar-tag.is-mission-stand,
.home-calendar-tag.is-feldkonferenz,
.home-calendar-tag.is-gemeindestunde {
  border-color: rgba(31, 167, 100, 0.28);
  background: rgba(31, 167, 100, 0.15);
  color: #1a7c4f;
}

.home-calendar-timeline-icon.is-mission-stand,
.home-calendar-timeline-icon.is-feldkonferenz,
.home-calendar-timeline-icon.is-gemeindestunde {
  border-color: rgba(31, 167, 100, 0.24);
  background: rgba(31, 167, 100, 0.14);
}

.home-calendar-tag.is-holy-supper,
.home-calendar-tag.is-prayer-week,
.home-calendar-tag.is-concert {
  border-color: rgba(242, 140, 40, 0.3);
  background: rgba(242, 140, 40, 0.18);
  color: #b36210;
}

.home-calendar-timeline-icon.is-holy-supper,
.home-calendar-timeline-icon.is-prayer-week,
.home-calendar-timeline-icon.is-concert {
  border-color: rgba(242, 140, 40, 0.28);
  background: rgba(242, 140, 40, 0.16);
}

.home-calendar-tag.is-ausschuss,
.home-calendar-tag.is-kinder-fest,
.home-calendar-tag.is-other {
  border-color: rgba(52, 82, 126, 0.26);
  background: rgba(52, 82, 126, 0.13);
  color: #335381;
}

.home-calendar-tag.is-no-service {
  border-color: rgba(191, 74, 74, 0.34);
  background: rgba(191, 74, 74, 0.16);
  color: #8c2e2e;
}

.home-calendar-timeline-icon.is-ausschuss,
.home-calendar-timeline-icon.is-kinder-fest,
.home-calendar-timeline-icon.is-other {
  border-color: rgba(52, 82, 126, 0.24);
  background: rgba(52, 82, 126, 0.13);
}

.home-calendar-timeline-icon.is-no-service {
  border-color: rgba(191, 74, 74, 0.3);
  background: rgba(191, 74, 74, 0.15);
}

.home-calendar-editor-help {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #4d6791;
}

.home-calendar-editor-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.home-calendar-editor-submit-row .ghost-btn {
  width: auto;
}

.home-calendar-editor-list {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  max-height: 270px;
  overflow: auto;
  padding-right: 2px;
}

.home-calendar-editor-item {
  border-radius: 12px;
  border: 1px solid rgba(50, 84, 136, 0.16);
  background: rgba(248, 251, 255, 0.88);
  padding: 9px;
  display: grid;
  gap: 6px;
}

.home-calendar-editor-line {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-calendar-editor-type {
  font-size: 0.82rem;
  font-weight: 590;
  color: #234377;
}

.home-calendar-editor-date {
  font-size: 0.75rem;
  color: #486692;
}

.home-calendar-editor-assignee {
  margin: 0;
  font-size: 0.78rem;
  color: #486692;
}

.home-calendar-editor-assignee.is-no-service {
  color: #9b4242;
  font-weight: 530;
}

.home-calendar-editor-actions {
  display: flex;
  gap: 8px;
}

.home-calendar-editor-empty {
  margin: 0;
  border-radius: 12px;
  border: 1px dashed rgba(50, 84, 136, 0.24);
  color: #4d6791;
  text-align: center;
  padding: 12px;
  font-size: 0.82rem;
}

.stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.progress-card,
.simple-card,
.metrics-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 18px;
  box-shadow: 0 12px 26px rgba(25, 38, 62, 0.1);
  min-width: 0;
}

.progress-card {
  --tone: var(--mission-tone);
  --tone-strong: #1b8d55;
  --tone-shadow: 31, 167, 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}


.mission-insights-body {
  display: grid;
  gap: 10px;
  padding: 0 16px 18px;
}

.mission-analytics-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mission-analytics-kpi {
  border-radius: 14px;
  border: 1px solid rgba(31, 167, 100, 0.24);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
}

.mission-kpi-label {
  margin: 0;
  font-size: 0.74rem;
  color: #2a7b4e;
}

.mission-kpi-value {
  margin: 4px 0 0;
  font-size: 1.24rem;
  font-weight: 630;
  color: #1f7048;
}

.mission-trend-card {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(31, 167, 100, 0.22);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.mission-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mission-trend-head h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #216f47;
}

.mission-momentum {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 590;
  color: #1f7048;
  background: rgba(31, 167, 100, 0.16);
}

.mission-momentum[data-level="high"] {
  color: #1e7c4c;
  background: rgba(31, 167, 100, 0.22);
}

.mission-momentum[data-level="medium"] {
  color: #8c632f;
  background: rgba(242, 140, 40, 0.2);
}

.mission-trend-bars {
  width: 100%;
  min-height: 132px;
  display: flex;
  gap: 8px;
  align-items: end;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.mission-trend-item {
  display: grid;
  gap: 4px;
  align-items: end;
  justify-items: center;
  min-width: 56px;
  flex: 0 0 56px;
  scroll-snap-align: center;
  border-radius: 10px;
  padding: 4px 3px;
  border: 1px solid transparent;
}

.mission-trend-item.is-current {
  border-color: rgba(31, 167, 100, 0.34);
  background: rgba(31, 167, 100, 0.08);
}

.mission-trend-item.is-inactive {
  border-color: rgba(210, 158, 86, 0.26);
  background: rgba(249, 232, 204, 0.2);
}

.mission-trend-item.is-empty {
  border-color: rgba(134, 154, 177, 0.22);
  background: rgba(208, 220, 236, 0.14);
}

.mission-trend-bar {
  width: 100%;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #56c08a, #1f9b63);
  min-height: 8px;
}

.mission-trend-bar.is-inactive {
  background: linear-gradient(180deg, #f1be78, #d38f2a);
}

.mission-trend-bar.is-empty {
  background: linear-gradient(180deg, #cad8e8, #9fb3c9);
}

.mission-trend-item.is-current .mission-trend-bar {
  background: linear-gradient(180deg, #66ce98, #198554);
}

.mission-trend-item.is-current .mission-trend-bar.is-inactive {
  background: linear-gradient(180deg, #f5c785, #c9831f);
}

.mission-trend-item.is-current .mission-trend-bar.is-empty {
  background: linear-gradient(180deg, #b8d0ea, #7f9bb8);
}

.mission-trend-value {
  font-size: 0.66rem;
  color: #2a7b4e;
}

.mission-trend-value.is-inactive {
  color: #986634;
}

.mission-trend-value.is-empty {
  color: #6e8298;
}

.mission-trend-date {
  font-size: 0.56rem;
  color: #4b8f68;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.mission-trend-item.is-inactive .mission-trend-date {
  color: #9a6934;
}

.mission-trend-item.is-empty .mission-trend-date {
  color: #6f8298;
}

.mission-trend-empty {
  margin: 0;
  color: #2a7b4e;
  font-size: 0.8rem;
}

.mission-analytics-meta {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(31, 167, 100, 0.18);
  background: rgba(255, 255, 255, 0.86);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.mission-analytics-meta p {
  margin: 0;
  font-size: 0.8rem;
  color: #2a6d49;
}

.mission-top-card {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(31, 167, 100, 0.22);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
}

.mission-top-card h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #216f47;
}

.mission-top-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.mission-top-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(31, 167, 100, 0.18);
  background: rgba(236, 252, 243, 0.8);
  padding: 6px 8px;
  font-size: 0.78rem;
  color: #1f7048;
}

.mission-top-empty {
  border-radius: 10px;
  border: 1px dashed rgba(31, 167, 100, 0.28);
  padding: 8px;
  text-align: center;
  color: #2a7b4e;
  font-size: 0.78rem;
}

.mission-calendar-card {
  border-radius: 22px;
  border: 1px solid rgba(31, 167, 100, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(232, 248, 239, 0.9));
  padding: 16px;
  box-shadow: 0 12px 26px rgba(25, 72, 49, 0.1);
  min-width: 0;
}

.mission-calendar-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.mission-calendar-head h3 {
  margin: 0;
  color: #1f7048;
  font-size: 1rem;
}

.mission-calendar-month-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.mission-calendar-month-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(31, 167, 100, 0.3);
  display: grid;
  place-items: center;
  padding: 0;
  font: inherit;
  font-size: 1.15rem;
  color: #1f7048;
  background: rgba(31, 167, 100, 0.12);
}

.mission-calendar-month-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mission-calendar-month-label {
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 620;
  color: #205f3f;
}

.mission-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

.mission-calendar-weekdays span {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 620;
  letter-spacing: 0.02em;
  color: #548367;
}

.mission-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

@keyframes mission-calendar-day-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(242, 184, 63, 0.34);
  }

  45% {
    transform: scale(1.09);
    box-shadow: 0 0 0 12px rgba(242, 184, 63, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(242, 184, 63, 0);
  }
}

@keyframes mission-calendar-day-pulse-ring {
  0% {
    opacity: 0.92;
    transform: scale(0.96);
  }

  70% {
    opacity: 0;
    transform: scale(1.2);
  }

  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes mission-calendar-day-badge-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

.mission-calendar-day {
  position: relative;
  isolation: isolate;
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(31, 167, 100, 0.18);
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 4px;
  display: grid;
  gap: 4px;
  align-content: space-between;
  justify-items: center;
  font: inherit;
  color: #255f40;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
  will-change: transform, box-shadow;
}

.mission-calendar-day:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.mission-calendar-day.is-outside-month {
  opacity: 0.42;
}

.mission-calendar-day.is-weekend {
  border-color: rgba(242, 184, 63, 0.36);
}

.mission-calendar-day.is-saturday .mission-calendar-day-number {
  color: #9a4a18;
}

.mission-calendar-day.is-sunday .mission-calendar-day-number {
  color: #1f5f8f;
}

.mission-calendar-day.is-half,
.mission-calendar-day.is-cta-target {
  border-color: rgba(242, 184, 63, 0.42);
  background: rgba(255, 247, 227, 0.95);
  box-shadow:
    0 0 0 2px rgba(242, 184, 63, 0.22),
    0 14px 24px rgba(187, 129, 24, 0.24);
  animation: mission-calendar-day-pulse 1.15s cubic-bezier(0.22, 0.82, 0.3, 1) infinite;
  z-index: 2;
}

.mission-calendar-day.is-full {
  border-color: #1f9e63;
  background: linear-gradient(180deg, #2bb975, #1f9e63);
  color: #f7fff9;
  box-shadow: 0 10px 18px rgba(31, 116, 76, 0.2);
}

.mission-calendar-day.is-selected {
  border-color: rgba(24, 103, 66, 0.62);
  box-shadow: inset 0 0 0 1px rgba(24, 103, 66, 0.18);
}

.mission-calendar-day-number {
  font-size: 0.84rem;
  font-weight: 620;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.mission-calendar-day-fill {
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.62rem;
  font-weight: 650;
  line-height: 1;
  background: rgba(113, 137, 120, 0.18);
  color: #4d6859;
  position: relative;
  z-index: 1;
}

.mission-calendar-day.is-half .mission-calendar-day-fill,
.mission-calendar-day.is-cta-target .mission-calendar-day-fill {
  background: rgba(242, 184, 63, 0.32);
  color: #734f05;
  box-shadow: 0 0 0 1px rgba(183, 121, 12, 0.12);
  animation: mission-calendar-day-badge-pulse 1.15s ease-in-out infinite;
}

.mission-calendar-day.is-full .mission-calendar-day-fill {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.mission-calendar-day.is-half::after,
.mission-calendar-day.is-cta-target::after,
.mission-calendar-day.is-full::after {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
}

.mission-calendar-day.is-half::before,
.mission-calendar-day.is-cta-target::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 16px;
  border: 2px solid rgba(242, 184, 63, 0.72);
  box-shadow: 0 0 0 4px rgba(242, 184, 63, 0.12);
  pointer-events: none;
  animation: mission-calendar-day-pulse-ring 1.15s ease-out infinite;
}

.mission-calendar-day.is-half::after,
.mission-calendar-day.is-cta-target::after {
  content: "!";
  background: rgba(242, 184, 63, 0.18);
  color: #9a6412;
}

.mission-calendar-day.is-full::after {
  content: "✓";
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce){
  .mission-calendar-day.is-half,
  .mission-calendar-day.is-half::before,
  .mission-calendar-day.is-half .mission-calendar-day-fill,
  .mission-calendar-day.is-cta-target,
  .mission-calendar-day.is-cta-target::before,
  .mission-calendar-day.is-cta-target .mission-calendar-day-fill {
    animation: none;
  }
}

.mission-calendar-day-status {
  margin: 0 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(31, 167, 100, 0.18);
  background: rgba(255, 255, 255, 0.78);
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #2f6a4d;
}

.mission-calendar-day-dialog-meta {
  margin: 0 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(240, 251, 245, 0.7);
  padding: 10px 12px;
  color: #2f6a4d;
  font-size: 0.82rem;
}

.mission-calendar-day-dialog {
  width: min(calc(100vw - 32px), 404px);
  max-width: min(calc(100vw - 32px), 404px);
  border: 1px solid rgba(31, 167, 100, 0.22);
  background:
    radial-gradient(circle at top right, rgba(92, 212, 142, 0.16), transparent 34%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(240, 251, 245, 0.97));
  overflow: hidden;
}

.mission-calendar-day-dialog .dialog-head {
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px 10px;
}

.mission-calendar-day-dialog .dialog-head h3 {
  font-size: 1.22rem;
  line-height: 1.08;
  color: #183a2d;
}

.mission-calendar-day-dialog .close-btn {
  width: 42px;
  height: 42px;
  background: rgba(238, 245, 241, 0.98);
  border: 1px solid rgba(31, 167, 100, 0.14);
  flex-shrink: 0;
}

.mission-calendar-day-dialog .close-btn span {
  background: #456258;
}

.mission-calendar-day-dialog-body {
  display: grid;
  gap: 14px;
  padding: 4px 20px 20px;
}

.mission-calendar-day-dialog-meta {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.mission-calendar-day-form {
  display: grid;
  gap: 14px;
}

.mission-calendar-day-form label {
  display: grid;
  gap: 8px;
  font-size: 0.84rem;
  color: #356550;
  font-weight: 620;
}

.mission-calendar-day-form select {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(31, 167, 100, 0.22);
  padding: 11px 44px 11px 14px;
  font: inherit;
  color: #1e2d27;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.mission-calendar-day-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mission-calendar-day-actions .primary-btn,
.mission-calendar-day-actions .ghost-btn {
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 18px;
  font-size: 0.98rem;
  font-weight: 640;
}

.mission-calendar-day-actions .primary-btn {
  border-color: rgba(31, 167, 100, 0.24);
  background: linear-gradient(160deg, #48b37a, #2f8f61);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(47, 143, 97, 0.2);
}

.mission-calendar-day-actions .ghost-btn {
  border-color: rgba(31, 167, 100, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #315545;
}

@media (max-width: 560px){
  .mission-calendar-day-dialog {
    width: min(calc(100vw - 24px), 404px);
    max-width: min(calc(100vw - 24px), 404px);
  }

  .mission-calendar-day-dialog .dialog-head {
    padding: 16px 16px 10px;
  }

  .mission-calendar-day-dialog-body {
    padding: 2px 16px 16px;
  }

  .mission-calendar-day-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mission-calendar-date-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.mission-calendar-ring-btn {
  border: 0;
  background: transparent;
  padding: 0;
}

.mission-calendar-ring-btn:focus-visible {
  outline: 2px solid rgba(31, 167, 100, 0.56);
  outline-offset: 4px;
}

.mission-calendar-progress {
  border-radius: 16px;
  border: 1px solid rgba(31, 167, 100, 0.18);
  background: rgba(255, 255, 255, 0.76);
  padding: 10px;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.mission-calendar-ring-wrap {
  max-width: 112px;
}

.mission-calendar-ring-center p {
  font-size: 1.15rem;
}

.mission-calendar-meta {
  margin: 0;
  text-align: center;
  color: #2f6a4d;
  font-size: 0.82rem;
  font-weight: 540;
}

.mission-calendar-list {
  display: grid;
  gap: 8px;
}

.home-mission-calendar-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at top right, rgba(92, 212, 142, 0.14), transparent 34%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(240, 251, 245, 0.97));
  overflow: hidden;
  box-shadow: none;
}

.home-mission-calendar-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.home-mission-calendar-dialog::backdrop {
  background: rgba(12, 18, 31, 0.48);
  backdrop-filter: blur(6px);
}

.home-mission-calendar-dialog .dialog-head {
  position: sticky;
  top: 0;
  z-index: 8;
  padding:
    calc(12px + env(safe-area-inset-top, 0px))
    calc(18px + env(safe-area-inset-right, 0px))
    10px
    calc(18px + env(safe-area-inset-left, 0px));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(244, 252, 247, 0.96));
  border-bottom: 1px solid rgba(31, 167, 100, 0.12);
}

.home-mission-calendar-dialog .dialog-head h3 {
  font-size: 1.14rem;
  line-height: 1.08;
  color: #183a2d;
}

.home-mission-calendar-dialog .close-btn {
  width: 42px;
  height: 42px;
  background: rgba(238, 245, 241, 0.98);
  border: 1px solid rgba(31, 167, 100, 0.14);
  flex-shrink: 0;
}

.home-mission-calendar-dialog .close-btn span {
  background: #456258;
}

.home-mission-calendar-dialog-body {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  width: min(100%, 860px);
  box-sizing: border-box;
  margin: 0 auto;
  padding:
    8px
    calc(18px + env(safe-area-inset-right, 0px))
    calc(18px + env(safe-area-inset-bottom, 0px))
    calc(18px + env(safe-area-inset-left, 0px));
}

.mission-calendar-empty {
  border-radius: 14px;
  border: 1px dashed rgba(31, 167, 100, 0.32);
  color: #3b6d56;
  text-align: center;
  padding: 12px;
  font-size: 0.86rem;
}

.mission-shift-item {
  border-radius: 14px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.mission-shift-item.is-active {
  border-color: rgba(31, 167, 100, 0.4);
  background: rgba(236, 252, 243, 0.92);
}

.mission-shift-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.mission-shift-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 590;
  color: #1f5f3f;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-activity-badge {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 650;
  margin-right: 6px;
}

.mission-activity-badge--stand {
  color: #1f7048;
  background: rgba(31, 167, 100, 0.18);
}

.mission-activity-badge--fair {
  color: #166d90;
  background: rgba(44, 164, 204, 0.18);
}

.mission-activity-badge--concert {
  color: #7d5a0f;
  background: rgba(242, 184, 63, 0.22);
}

.mission-activity-badge--youthProgram {
  color: #6541a8;
  background: rgba(124, 86, 232, 0.18);
}

.mission-activity-badge--trip {
  color: #9a4a18;
  background: rgba(242, 140, 40, 0.2);
}

.mission-shift-state {
  margin: 0;
  font-size: 0.76rem;
  color: #4c7461;
  text-align: right;
}

.mission-shift-item.is-active .mission-shift-state {
  color: #166d43;
  font-weight: 590;
}

.mission-shift-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mission-sermons-card {
  border-radius: 22px;
  border: 1px solid rgba(31, 167, 100, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(232, 248, 239, 0.9));
  padding: 16px;
  box-shadow: 0 12px 26px rgba(25, 72, 49, 0.1);
  min-width: 0;
}

.mission-sermons-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mission-sermons-head h3 {
  margin: 0;
  color: #1f7048;
  font-size: 1rem;
}

#missionSermonsCoverageBadge {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 610;
  color: #1f7048;
  background: rgba(31, 167, 100, 0.14);
}

.mission-sermons-meta,
.mission-sermons-goal,
.mission-sermons-source {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: #376852;
}

.mission-sermons-plan-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.mission-sermons-plan-row .mission-action-btn {
  width: auto;
  padding: 8px 12px;
  font-size: 0.72rem;
  border-radius: 12px;
}

.mission-sermons-plan-hint {
  margin: 0;
  font-size: 0.76rem;
  color: #2f7e54;
}

.mission-sermons-theme-stats {
  margin: 0 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(255, 255, 255, 0.86);
  padding: 8px;
  display: grid;
  gap: 8px;
}

.mission-sermons-theme-stats-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.mission-sermons-theme-stats-head h4 {
  margin: 0;
  font-size: 0.82rem;
  color: #206f49;
}

.mission-sermons-theme-stats-meta {
  margin: 0;
  font-size: 0.72rem;
  color: #41795b;
  text-align: right;
}

.mission-sermons-theme-stats-list {
  display: grid;
  gap: 7px;
}

.mission-sermons-theme-row {
  border-radius: 10px;
  border: 1px solid rgba(31, 167, 100, 0.18);
  background: rgba(240, 252, 245, 0.9);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.mission-sermons-theme-row.is-doctrine {
  border-color: rgba(44, 124, 212, 0.2);
  background: rgba(243, 248, 255, 0.92);
}

.mission-sermons-theme-row.is-spiritual {
  border-color: rgba(130, 92, 214, 0.2);
  background: rgba(247, 244, 255, 0.92);
}

.mission-sermons-theme-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.mission-sermons-theme-row-name {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 590;
  color: #1f7048;
}

.mission-sermons-theme-row-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #376852;
  white-space: nowrap;
}

.mission-sermons-theme-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(183, 203, 191, 0.45);
  overflow: hidden;
}

.mission-sermons-theme-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #239b63, #4bc17f);
}

.mission-sermons-theme-row.is-doctrine .mission-sermons-theme-bar-fill {
  background: linear-gradient(90deg, #2f74d1, #59a0ef);
}

.mission-sermons-theme-row.is-spiritual .mission-sermons-theme-bar-fill {
  background: linear-gradient(90deg, #7c56e8, #b08cf4);
}

.mission-sermons-theme-row-meta {
  margin: 0;
  font-size: 0.72rem;
  color: #41795b;
}

.mission-sermons-speaker-stats {
  margin: 0 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(255, 255, 255, 0.86);
  padding: 8px;
  display: grid;
  gap: 7px;
}

.mission-sermons-speaker-stats h4 {
  margin: 0;
  font-size: 0.82rem;
  color: #206f49;
}

.mission-sermons-speaker-stats-list {
  display: grid;
  gap: 6px;
}

.mission-sermons-demand-stats {
  margin: 0 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(255, 255, 255, 0.86);
  padding: 8px;
  display: grid;
  gap: 7px;
}

.mission-sermons-demand-stats h4 {
  margin: 0;
  font-size: 0.82rem;
  color: #206f49;
}

.mission-sermons-demand-help {
  margin: 0;
  font-size: 0.73rem;
  color: #41795b;
}

.mission-sermons-demand-help:empty,
.mission-topic-request-help:empty,
.home-focus-action-meta:empty,
.home-focus-section-help:empty {
  display: none;
}

.mission-sermons-demand-list {
  display: grid;
  gap: 7px;
}

.mission-sermons-demand-group {
  display: grid;
  gap: 7px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(31, 167, 100, 0.16);
  background: rgba(247, 252, 248, 0.84);
}

.mission-sermons-demand-group.is-doctrine {
  border-color: rgba(47, 116, 209, 0.14);
  background: rgba(244, 249, 255, 0.9);
}

.mission-sermons-demand-group.is-spiritual {
  border-color: rgba(187, 141, 48, 0.18);
  background: rgba(255, 250, 241, 0.92);
}

.mission-sermons-demand-group-head h5 {
  margin: 0;
  font-size: 0.76rem;
  color: #295d43;
}

.mission-sermons-demand-group-list {
  display: grid;
  gap: 7px;
}

.mission-sermons-demand-row {
  border-radius: 10px;
  border: 1px solid rgba(31, 167, 100, 0.18);
  background: rgba(240, 252, 245, 0.9);
  padding: 7px 8px;
  display: grid;
  gap: 6px;
}

.mission-sermons-demand-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.mission-sermons-demand-topic {
  margin: 0;
  font-size: 0.76rem;
  color: #1f7048;
  font-weight: 590;
}

.mission-sermons-demand-count {
  font-size: 0.69rem;
  color: #3c7358;
  font-weight: 600;
  white-space: nowrap;
}

.mission-sermons-demand-bar {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(177, 200, 187, 0.42);
}

.mission-sermons-demand-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f74d1, #59a0ef);
}

.mission-sermons-demand-row.is-spiritual .mission-sermons-demand-bar-fill {
  background: linear-gradient(90deg, #b78021, #dca74d);
}

.mission-sermons-demand-empty {
  margin: 0;
  border: 1px dashed rgba(31, 167, 100, 0.24);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  font-size: 0.75rem;
  color: #3b7759;
}

.mission-sermons-speaker-row {
  border-radius: 10px;
  border: 1px solid rgba(31, 167, 100, 0.18);
  background: rgba(240, 252, 245, 0.9);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mission-sermons-speaker-main {
  min-width: 0;
}

.mission-sermons-speaker-name {
  margin: 0;
  font-size: 0.78rem;
  color: #1f7048;
  font-weight: 590;
}

.mission-sermons-speaker-meta {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: #41795b;
}

.mission-sermons-speaker-flag {
  border-radius: 999px;
  border: 1px solid rgba(242, 140, 40, 0.32);
  background: rgba(242, 140, 40, 0.12);
  color: #a46623;
  padding: 2px 8px;
  font-size: 0.66rem;
  font-weight: 590;
  white-space: nowrap;
}

.mission-sermons-speaker-row.is-underrepresented {
  border-color: rgba(242, 140, 40, 0.34);
}

.mission-sermons-speaker-row.is-overrepresented {
  border-color: rgba(63, 126, 214, 0.34);
}

.mission-sermons-speaker-flag.is-overrepresented {
  border-color: rgba(63, 126, 214, 0.34);
  background: rgba(63, 126, 214, 0.12);
  color: #23539d;
}

.mission-sermons-speaker-empty {
  margin: 0;
  border: 1px dashed rgba(31, 167, 100, 0.24);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  font-size: 0.75rem;
  color: #3b7759;
}

.mission-sermons-plan-help,
.mission-sermons-plan-members-help {
  margin: 0 16px 6px;
  font-size: 0.8rem;
  color: #376852;
}

.mission-sermons-plan-preview {
  margin: 8px 16px 14px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(31, 167, 100, 0.22);
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 8px;
}

.mission-sermons-plan-preview h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #1f7048;
}

.mission-sermons-plan-preview-meta {
  margin: 0;
  font-size: 0.76rem;
  color: #376852;
}

.mission-sermons-plan-preview-list {
  max-height: 270px;
  overflow: auto;
  display: grid;
  gap: 7px;
}

.mission-sermons-plan-preview-row {
  border-radius: 11px;
  border: 1px solid rgba(31, 167, 100, 0.18);
  background: rgba(240, 252, 245, 0.9);
  padding: 8px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: start;
}

.mission-sermons-plan-preview-row.is-no-service {
  border-color: rgba(225, 113, 113, 0.28);
  background: rgba(255, 241, 241, 0.9);
}

.mission-sermons-plan-preview-date {
  border-radius: 999px;
  border: 1px solid rgba(31, 167, 100, 0.22);
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 590;
  color: #236d47;
  white-space: nowrap;
}

.mission-sermons-plan-preview-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(31, 167, 100, 0.24);
  background: rgba(255, 255, 255, 0.95);
  color: #123826;
  font: inherit;
  font-size: 0.84rem;
  padding: 8px 10px;
}

.mission-sermons-plan-preview-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mission-sermons-plan-preview-quick-stack {
  display: grid;
  gap: 6px;
}

.mission-sermons-plan-preview-status {
  margin: 0;
  font-size: 0.7rem;
  color: #3c7759;
}

.mission-sermons-plan-preview-row.is-no-service .mission-sermons-plan-preview-status {
  color: #a84646;
}

.mission-sermons-plan-preview-quick-btn {
  width: auto;
  padding: 7px 10px;
  font-size: 0.7rem;
  border-radius: 10px;
  white-space: nowrap;
}

.mission-sermons-plan-preview-guest-btn {
  border-color: rgba(52, 100, 184, 0.24);
  color: #2d5aa3;
  background: rgba(81, 132, 220, 0.1);
}

.mission-sermons-plan-preview-empty {
  border-radius: 12px;
  border: 1px dashed rgba(31, 167, 100, 0.26);
  text-align: center;
  padding: 12px;
  font-size: 0.8rem;
  color: #3a7759;
}

.mission-sermons-plan-save-btn {
  margin-top: 2px;
}

.mission-sermons-source a {
  color: #1b6f47;
  font-weight: 590;
  text-decoration: underline;
}

.mission-sermons-table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(255, 255, 255, 0.8);
  overflow-x: auto;
}

.mission-sermons-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.mission-sermons-table th,
.mission-sermons-table td {
  vertical-align: top;
  padding: 9px 8px;
  border-bottom: 1px solid rgba(31, 167, 100, 0.14);
}

.mission-sermons-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  text-align: left;
  color: #2c7050;
  font-weight: 630;
}

.mission-sermons-table th:nth-child(1),
.mission-sermons-table td:nth-child(1) {
  width: 42%;
}

.mission-sermons-table th:nth-child(2),
.mission-sermons-table td:nth-child(2) {
  width: 36%;
}

.mission-sermons-table th:nth-child(3),
.mission-sermons-table td:nth-child(3) {
  width: 22%;
}

.mission-sermons-table tbody tr:last-child td {
  border-bottom: 0;
}

.mission-sermons-topic-cell {
  font-size: 0.77rem;
  color: #1f5f3f;
}

.mission-sermons-topic-index {
  font-weight: 620;
  margin-right: 4px;
  flex: 0 0 auto;
}

.mission-sermons-topic-main {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-right: 34px;
}

.mission-sermons-topic-title {
  font-weight: 520;
  flex: 1 1 auto;
  word-break: break-word;
}

.mission-sermons-request-badge {
  position: absolute;
  top: -2px;
  right: 0;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d8334a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(216, 51, 74, 0.22);
}

.mission-sermons-selected-cell {
  font-size: 0.72rem;
  color: #4b775f;
}

.mission-sermons-selected-label,
.mission-sermons-selected-count {
  display: block;
  line-height: 1.25;
  word-break: break-word;
}

.mission-sermons-selected-count {
  margin-top: 3px;
  font-weight: 610;
  color: #1f7048;
}

.mission-sermons-action-cell .mission-action-btn {
  width: 100%;
  min-width: 0;
  font-size: 0.69rem;
  padding: 8px 6px;
  white-space: normal;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: center;
}

.mission-sermons-row.is-covered {
  background: rgba(236, 252, 243, 0.45);
}

.mission-sermons-row.is-selected-by-user {
  background: rgba(31, 167, 100, 0.12);
}

.mission-topic-request-card,
.mission-study-groups-card {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(255, 255, 255, 0.82);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.home-topic-request-card {
  margin-top: 0;
  border-radius: 18px;
  border-color: rgba(31, 167, 100, 0.25);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(236, 252, 244, 0.92));
  padding: 0;
  gap: 0;
  box-shadow: 0 14px 26px rgba(27, 93, 61, 0.11);
}

.home-topic-request-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  text-align: left;
  color: #1a5c3d;
}

.home-topic-request-toggle-copy {
  display: grid;
  gap: 2px;
}

.home-topic-request-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 680;
  color: #1a5f40;
}

.home-topic-request-toggle-help {
  font-size: 0.78rem;
  color: #4f7f66;
  line-height: 1.35;
}

.home-topic-request-toggle-side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-topic-request-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 640;
  color: #2a8558;
}

.home-topic-request-head-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  background: rgba(31, 167, 100, 0.14);
  border: 1px solid rgba(31, 167, 100, 0.24);
}

.home-topic-request-body {
  display: grid;
  gap: 12px;
}

.home-topic-request-card .mission-topic-request-help {
  font-size: 0.78rem;
  line-height: 1.4;
}

.home-topic-request-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-topic-request-flow-item {
  border-radius: 14px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(255, 255, 255, 0.86);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.home-topic-request-flow-label {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4c7761;
}

.home-topic-request-flow-value {
  font-size: 0.84rem;
  color: #1c5d3e;
}

.home-topic-request-type-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 9px;
}

.home-topic-request-type-fieldset legend {
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #285f44;
}

.home-topic-request-category-list,
.home-topic-request-type-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-topic-request-category-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-topic-request-type-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.home-topic-request-type-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.home-topic-request-type-card {
  min-height: 90px;
  border-radius: 14px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(255, 255, 255, 0.88);
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.home-topic-request-category-option .home-topic-request-type-card {
  min-height: 82px;
}

.home-topic-request-type-option input:checked + .home-topic-request-type-card {
  border-color: rgba(18, 133, 79, 0.62);
  background: rgba(223, 247, 234, 0.95);
  box-shadow: 0 0 0 1px rgba(31, 167, 100, 0.18) inset;
  transform: translateY(-1px);
}

.home-topic-request-type-option input:focus-visible + .home-topic-request-type-card {
  outline: none;
  border-color: rgba(19, 133, 79, 0.9);
  box-shadow: 0 0 0 3px rgba(31, 167, 100, 0.16);
}

.home-topic-request-type-title {
  font-size: 0.79rem;
  font-weight: 620;
  color: #1e6041;
  line-height: 1.25;
}

.home-topic-request-type-description {
  font-size: 0.71rem;
  line-height: 1.35;
  color: #4b765f;
}

.home-topic-favorites-wrap {
  display: grid;
  gap: 8px;
}

.home-topic-favorites-title {
  margin: 0;
  font-size: 0.73rem;
  font-weight: 620;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2f7855;
}

.home-topic-favorites-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-topic-favorites-empty {
  margin: 0;
  font-size: 0.74rem;
  color: #4f7f66;
}

.home-topic-favorite-chip {
  border: 1px solid rgba(31, 167, 100, 0.25);
  background: rgba(255, 255, 255, 0.9);
  color: #1e6041;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  cursor: pointer;
}

.home-topic-favorite-star {
  color: #e08a1a;
  font-size: 0.75rem;
  line-height: 1;
}

.home-topic-favorite-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

.home-topic-favorite-count {
  border-radius: 999px;
  min-width: 20px;
  padding: 1px 6px;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 610;
  color: #1f7048;
  background: rgba(31, 167, 100, 0.14);
}

.home-topic-favorite-chip.is-active {
  border-color: rgba(21, 136, 81, 0.62);
  background: rgba(31, 167, 100, 0.16);
  box-shadow: 0 0 0 1px rgba(31, 167, 100, 0.2) inset;
}

.home-topic-favorite-chip.is-doctrine {
  border-color: rgba(47, 116, 209, 0.22);
  background: rgba(244, 249, 255, 0.94);
}

.home-topic-favorite-chip.is-spiritual {
  border-color: rgba(191, 146, 52, 0.22);
  background: rgba(255, 250, 241, 0.94);
}

.home-topic-favorite-chip:focus-visible {
  outline: none;
  border-color: rgba(19, 133, 79, 0.9);
  box-shadow: 0 0 0 3px rgba(31, 167, 100, 0.2);
}

.home-topic-request-card .mission-topic-request-form {
  gap: 11px;
}

.home-topic-request-card .mission-topic-request-form label {
  display: grid;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 540;
  color: #285f44;
}

.home-topic-request-card .mission-topic-request-form input:not([type="checkbox"]),
.home-topic-request-card .mission-topic-request-form select,
.home-topic-request-card .mission-topic-request-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(31, 167, 100, 0.26);
  background: rgba(255, 255, 255, 0.95);
  color: #153d2a;
  font: inherit;
  font-size: 0.83rem;
  padding: 10px 12px;
}

.home-topic-request-card .mission-topic-request-form input:not([type="checkbox"]),
.home-topic-request-card .mission-topic-request-form select {
  min-height: 44px;
}

.home-topic-request-card .mission-topic-request-form textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.45;
}

.home-topic-request-card .mission-topic-request-form input:not([type="checkbox"]):focus,
.home-topic-request-card .mission-topic-request-form select:focus,
.home-topic-request-card .mission-topic-request-form textarea:focus {
  outline: none;
  border-color: rgba(19, 133, 79, 0.8);
  box-shadow: 0 0 0 3px rgba(31, 167, 100, 0.15);
}

.home-topic-request-select-help {
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  color: #4b765f;
}

.home-topic-request-card .mission-topic-request-anonymous {
  font-size: 0.78rem;
  color: #2f6249;
}

.home-topic-request-private-note {
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(232, 248, 239, 0.86);
}

.home-topic-request-private-toggle-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-topic-request-private-toggle-main input {
  width: 18px;
  height: 18px;
  accent-color: #1b8d56;
  margin: 0;
}

.home-topic-request-private-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 126, 78, 0.26);
  background: rgba(255, 255, 255, 0.9);
  color: #1b6240;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-topic-request-private-help {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #3b6b54;
}

.home-topic-request-inbox-head {
  display: grid;
  gap: 4px;
}

.home-topic-request-inbox-head h4 {
  margin: 0;
  font-size: 0.86rem;
  color: #1f7048;
}

.home-topic-request-group {
  display: grid;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(31, 167, 100, 0.14);
  background: rgba(255, 255, 255, 0.66);
}

.home-topic-request-group-toggle {
  width: 100%;
  padding: 2px;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.home-topic-request-group-toggle-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-topic-request-group-title {
  font-size: 0.82rem;
  font-weight: 650;
  color: #235d3f;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.home-topic-request-group-meta {
  font-size: 0.72rem;
  line-height: 1.4;
  color: #5b7b6a;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.home-topic-request-group-toggle-side {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 0 auto;
}

.home-topic-request-group-body,
.home-topic-request-group-list {
  display: grid;
  gap: 8px;
}

.home-topic-request-group-chevron,
.home-topic-request-thread-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid #4f755f;
  border-bottom: 2px solid #4f755f;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.home-topic-request-group.is-open .home-topic-request-group-chevron,
.mission-topic-request-thread.is-open .home-topic-request-thread-chevron {
  transform: rotate(225deg);
}

.mission-topic-request-thread {
  gap: 10px;
}

.home-topic-request-thread-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.home-topic-request-thread-summary-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 6px;
}

.home-topic-request-thread-preview {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.42;
  color: #476957;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.home-topic-request-thread-preview.is-response {
  color: #315945;
}

.home-topic-request-thread-preview-label {
  margin-right: 4px;
  font-weight: 650;
  color: #245e42;
}

.home-topic-request-thread-toggle {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: #245e42;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.home-topic-request-group-toggle:hover .home-topic-request-group-title,
.home-topic-request-thread-toggle:hover {
  color: #1b5238;
}

.home-topic-request-group-toggle:focus-visible,
.home-topic-request-thread-toggle:focus-visible {
  outline: none;
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(31, 167, 100, 0.14);
}

.home-topic-request-thread-body {
  display: grid;
  gap: 8px;
}

@media (max-width: 640px){
  .home-topic-request-toggle {
    padding: 14px;
  }

  .home-topic-request-head-icon {
    width: 30px;
    height: 30px;
    font-size: 0.96rem;
  }

  .home-topic-request-category-list,
  .home-topic-request-type-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-topic-request-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-topic-request-group-toggle,
  .home-topic-request-thread-summary {
    flex-direction: column;
  }

  .home-topic-request-group-toggle-side,
  .home-topic-request-thread-toggle {
    width: 100%;
    justify-content: center;
  }

  .home-topic-favorite-text {
    max-width: 160px;
  }
}

.mission-topic-request-card h4,
.mission-study-groups-card h4 {
  margin: 0;
  font-size: 0.84rem;
  color: #1f7048;
}

.mission-topic-request-help {
  margin: 0;
  font-size: 0.74rem;
  color: #3c7156;
}

.mission-topic-request-form {
  display: grid;
  gap: 8px;
}

.mission-topic-request-anonymous {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #2c6648;
}

.mission-topic-request-list,
.mission-study-groups-list {
  display: grid;
  gap: 8px;
}

.mission-topic-request-item,
.mission-study-group-item {
  border-radius: 11px;
  border: 1px solid rgba(31, 167, 100, 0.18);
  background: rgba(239, 251, 244, 0.9);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.mission-topic-request-head,
.mission-study-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mission-topic-request-head-side {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.mission-topic-request-title,
.mission-study-group-topic {
  margin: 0;
  font-size: 0.8rem;
  color: #1c5d3e;
  font-weight: 590;
}

.mission-topic-request-count,
.mission-study-group-mode {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.66rem;
  font-weight: 590;
  color: #1f7048;
  background: rgba(31, 167, 100, 0.16);
  white-space: nowrap;
}

.mission-topic-request-type-badge {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.64rem;
  font-weight: 620;
  color: #355b8f;
  background: rgba(78, 123, 204, 0.12);
  border: 1px solid rgba(78, 123, 204, 0.2);
  white-space: nowrap;
}

.mission-topic-request-type-badge.is-secondary {
  color: #1f7048;
  background: rgba(31, 167, 100, 0.12);
  border-color: rgba(31, 167, 100, 0.18);
}

.mission-topic-request-type-badge.is-private {
  color: #2f58a0;
  background: rgba(28, 78, 168, 0.12);
  border-color: rgba(28, 78, 168, 0.16);
}

.mission-topic-request-type-badge.is-answered {
  color: #1f7048;
  background: rgba(31, 167, 100, 0.18);
  border-color: rgba(31, 167, 100, 0.24);
}

.mission-topic-request-type-badge.is-waiting {
  color: #9c5f1d;
  background: rgba(242, 140, 40, 0.14);
  border-color: rgba(242, 140, 40, 0.24);
}

.mission-topic-request-requesters,
.mission-topic-request-notes,
.mission-study-group-meta,
.mission-study-group-members {
  margin: 0;
  font-size: 0.72rem;
  color: #426f57;
  line-height: 1.35;
}

.mission-topic-request-meta,
.mission-topic-request-message,
.mission-topic-request-response-title,
.mission-topic-request-response-body,
.mission-topic-request-response-meta {
  margin: 0;
}

.mission-topic-request-meta {
  font-size: 0.7rem;
  color: #5a7b69;
}

.mission-topic-request-message {
  font-size: 0.78rem;
  color: #294f3d;
  line-height: 1.45;
  white-space: pre-wrap;
}

.mission-topic-request-response {
  border-radius: 12px;
  border: 1px solid rgba(31, 167, 100, 0.18);
  background: rgba(255, 255, 255, 0.9);
  padding: 9px 10px;
  display: grid;
  gap: 5px;
}

.mission-topic-request-response-title {
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2e6f4c;
}

.mission-topic-request-response-body {
  font-size: 0.76rem;
  color: #214b38;
  line-height: 1.45;
  white-space: pre-wrap;
}

.mission-topic-request-response-meta {
  font-size: 0.69rem;
  color: #5c7e6b;
}

.mission-topic-request-response-editor {
  display: grid;
  gap: 8px;
}

.mission-topic-request-response-editor label {
  display: grid;
  gap: 7px;
  font-size: 0.76rem;
  color: #2d6247;
  font-weight: 540;
}

.mission-topic-request-response-editor textarea {
  width: 100%;
  min-height: 108px;
  border-radius: 12px;
  border: 1px solid rgba(31, 167, 100, 0.26);
  background: rgba(255, 255, 255, 0.95);
  color: #153d2a;
  font: inherit;
  font-size: 0.82rem;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.45;
}

.mission-topic-request-response-editor textarea:focus {
  outline: none;
  border-color: rgba(19, 133, 79, 0.8);
  box-shadow: 0 0 0 3px rgba(31, 167, 100, 0.15);
}

.mission-topic-request-response-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mission-topic-request-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.mission-topic-request-actions .mission-action-btn,
.mission-study-group-item .mission-action-btn {
  width: auto;
  font-size: 0.7rem;
  padding: 7px 10px;
  border-radius: 10px;
}

.mission-topic-request-ready {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.64rem;
  font-weight: 590;
  color: #9c5f1d;
  background: rgba(242, 140, 40, 0.14);
  border: 1px solid rgba(242, 140, 40, 0.28);
}

.mission-topic-request-empty {
  margin: 0;
  text-align: center;
  border-radius: 10px;
  border: 1px dashed rgba(31, 167, 100, 0.24);
  padding: 10px;
  font-size: 0.74rem;
  color: #3a7658;
}

.mission-inventory-card {
  border-radius: 22px;
  border: 1px solid rgba(31, 167, 100, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(232, 248, 239, 0.9));
  padding: 16px;
  box-shadow: 0 12px 26px rgba(25, 72, 49, 0.1);
  min-width: 0;
  position: relative;
  z-index: 4;
}

.mission-inventory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mission-inventory-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.mission-inventory-stats-wrap {
  position: relative;
}

.mission-inventory-stats-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(31, 167, 100, 0.24);
  background: rgba(255, 255, 255, 0.92);
  color: #1f7048;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.mission-inventory-stats-btn[aria-expanded="true"] {
  background: rgba(31, 167, 100, 0.18);
}

.mission-inventory-head h3 {
  margin: 0;
  color: #1f7048;
  font-size: 1rem;
}

#missionInventoryTotalBadge {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 590;
  color: #1f7048;
  background: rgba(31, 167, 100, 0.14);
}

.mission-book-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.mission-book-form[hidden] {
  display: none !important;
}

.mission-book-form.is-disabled {
  opacity: 0.6;
}

.mission-book-form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: #356550;
  font-weight: 500;
}

.mission-book-form input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(31, 167, 100, 0.25);
  padding: 9px 10px;
  font: inherit;
  color: #1e2d27;
  background: rgba(255, 255, 255, 0.92);
}

.mission-add-btn {
  align-self: end;
}

.mission-inventory-add-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.74rem;
  padding: 8px 12px;
  border-color: rgba(31, 167, 100, 0.38);
}

.mission-inventory-add-toggle[aria-expanded="true"] {
  background: rgba(31, 167, 100, 0.25);
}

.mission-inventory-insights {
  display: grid;
  gap: 10px;
}

.mission-inventory-insights-popover {
  position: fixed;
  top: var(--mission-inventory-stats-top, 92px);
  left: var(--mission-inventory-stats-left, 16px);
  width: var(--mission-inventory-stats-width, min(360px, calc(100vw - 32px)));
  max-height: var(--mission-inventory-stats-max-height, min(70vh, 480px));
  border-radius: 16px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(25, 72, 49, 0.16);
  padding: 12px;
  overflow: auto;
  overscroll-behavior: contain;
  z-index: 80;
}

.mission-inventory-insights-head h4 {
  margin: 0;
  font-size: 0.86rem;
  color: #205f3f;
}

.mission-inventory-insights-head p {
  margin: 4px 0 0;
  font-size: 0.74rem;
  color: #547464;
}

.mission-inventory-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mission-inventory-kpis--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mission-inventory-kpi {
  border-radius: 12px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(255, 255, 255, 0.86);
  padding: 8px 9px;
  display: grid;
  gap: 3px;
}

.mission-inventory-kpi .label {
  font-size: 0.68rem;
  color: #3f6b58;
}

.mission-inventory-kpi .value {
  font-size: 1rem;
  font-weight: 700;
  color: #1d5f3d;
}

.mission-inventory-recommendations {
  border-radius: 12px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(255, 255, 255, 0.86);
  padding: 9px;
  display: grid;
  gap: 8px;
}

.mission-inventory-recommendations h4 {
  margin: 0;
  font-size: 0.86rem;
  color: #205f3f;
}

.mission-inventory-recommendation-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.mission-inventory-recommendation-item {
  border-radius: 10px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(245, 252, 248, 0.9);
  padding: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.mission-inventory-recommendation-item[data-inventory-risk="critical"] {
  border-color: rgba(207, 75, 54, 0.36);
  background: rgba(255, 238, 233, 0.92);
}

.mission-inventory-recommendation-item[data-inventory-risk="warning"] {
  border-color: rgba(242, 166, 54, 0.34);
  background: rgba(255, 248, 231, 0.95);
}

.mission-inventory-recommendation-title {
  margin: 0;
  font-size: 0.82rem;
  color: #234a38;
  font-weight: 700;
}

.mission-inventory-recommendation-meta {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: #50705f;
}

.mission-inventory-recommendation-qty {
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #1f6f47;
  background: rgba(31, 167, 100, 0.16);
  white-space: nowrap;
}

.mission-inventory-recommendation-empty {
  margin: 0;
  border-radius: 10px;
  border: 1px dashed rgba(31, 167, 100, 0.26);
  color: #3f6b58;
  text-align: center;
  padding: 8px;
  font-size: 0.8rem;
}

.mission-inventory-recommendations-fold {
  display: grid;
  gap: 8px;
}

.mission-inventory-recommendations-fold summary {
  list-style: none;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(31, 167, 100, 0.24);
  background: rgba(245, 252, 248, 0.94);
  color: #215a3d;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 8px 10px;
}

.mission-inventory-recommendations-fold summary::-webkit-details-marker {
  display: none;
}

.mission-book-list {
  display: grid;
  gap: 10px;
}

.mission-book-empty {
  border-radius: 14px;
  border: 1px dashed rgba(31, 167, 100, 0.32);
  color: #3b6d56;
  text-align: center;
  padding: 12px;
  font-size: 0.86rem;
}

.mission-book-item {
  border-radius: 14px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  display: grid;
  gap: 8px;
  position: relative;
}

.mission-book-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.mission-book-image {
  width: 56px;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: contain;
  object-position: center top;
  border-radius: 8px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: linear-gradient(180deg, #f8fcfa 0%, #eef8f2 100%);
  flex: 0 0 auto;
}

.mission-book-info {
  min-width: 0;
}

.mission-book-info h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #1f5f3f;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.mission-book-stats-wrap {
  position: relative;
  align-self: flex-start;
  z-index: 40;
}

.mission-book-card-stats-btn {
  white-space: nowrap;
  align-self: flex-start;
}

.mission-book-card-stats-btn[aria-expanded="true"] {
  border-color: rgba(31, 167, 100, 0.38);
  background: rgba(215, 240, 226, 0.95);
  color: #21553b;
}

.mission-book-stats-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, calc(100vw - 72px));
  max-height: min(65vh, 420px);
  border-radius: 14px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(25, 72, 49, 0.15);
  padding: 10px;
  display: grid;
  gap: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  z-index: 60;
}

.mission-book-stats-actions {
  display: grid;
  gap: 8px;
}

.mission-book-stats-actions .mission-action-btn {
  width: 100%;
}

.mission-book-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mission-book-stats-card {
  border-radius: 12px;
  border: 1px solid rgba(31, 167, 100, 0.18);
  background: rgba(248, 252, 250, 0.94);
  padding: 8px 9px;
  display: grid;
  gap: 3px;
}

.mission-book-stats-label {
  font-size: 0.68rem;
  color: #5f7b6c;
}

.mission-book-stats-value {
  font-size: 0.92rem;
  color: #205f3f;
}

.mission-book-stats-note {
  margin: 0;
  font-size: 0.74rem;
  color: #456857;
  overflow-wrap: anywhere;
}

.mission-book-planning-meta {
  margin-top: 3px;
  font-size: 0.72rem;
  color: #567867;
}

.mission-book-central-meta {
  margin-top: 3px;
  font-size: 0.72rem;
  color: #2c6f55;
}

.mission-book-health {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mission-book-health--critical {
  color: #a23729;
  background: rgba(235, 82, 60, 0.16);
}

.mission-book-health--warning {
  color: #8a5f13;
  background: rgba(242, 166, 54, 0.18);
}

.mission-book-health--healthy {
  color: #1f7048;
  background: rgba(31, 167, 100, 0.14);
}

.mission-book-actions {
  display: grid;
  gap: 8px;
}

.mission-book-actions-primary {
  display: block;
}

.mission-book-actions-secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.mission-book-actions .mission-action-btn {
  width: 100%;
}

.mission-action-btn {
  border: 1px solid rgba(31, 167, 100, 0.22);
  border-radius: 10px;
  background: rgba(31, 167, 100, 0.13);
  color: #1b6f47;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 540;
  padding: 7px 10px;
}

.mission-action-btn--plus {
  border-color: rgba(31, 167, 100, 0.5);
  background: linear-gradient(135deg, #26b66b 0%, #168a4d 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 670;
  letter-spacing: 0.01em;
  padding: 10px 12px;
}

.mission-action-btn.ghost {
  background: rgba(255, 255, 255, 0.9);
}

.mission-action-btn:disabled {
  opacity: 0.55;
}

.mission-book-edit {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.mission-book-edit.is-open {
  display: grid;
}

.mission-supply-request-form {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.mission-supply-request-form.is-open {
  display: grid;
}

.mission-supply-request-form label {
  display: grid;
  gap: 5px;
  font-size: 0.76rem;
  color: #3e6754;
}

.mission-supply-request-form input,
.mission-central-inventory-controls input,
.mission-supply-request-response input,
.mission-supply-request-response select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(31, 167, 100, 0.24);
  padding: 7px 8px;
  font: inherit;
  font-size: 0.78rem;
}

.mission-supply-request-inline-status {
  margin: 0;
  font-size: 0.75rem;
  color: #2a6a4f;
}

.mission-central-inventory-panel,
.mission-supply-requests-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.mission-central-inventory-head h4,
.mission-supply-requests-head h4 {
  margin: 0;
  color: #205f3f;
  font-size: 0.92rem;
}

.mission-central-inventory-head p,
.mission-supply-requests-head p {
  margin: 4px 0 0;
  font-size: 0.76rem;
  color: #4d715f;
}

.mission-central-inventory-list,
.mission-supply-request-list {
  display: grid;
  gap: 8px;
}

.mission-central-inventory-row,
.mission-supply-request-card {
  border-radius: 12px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(255, 255, 255, 0.9);
  padding: 9px;
}

.mission-central-inventory-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(170px, 0.9fr);
  gap: 10px;
  align-items: end;
}

.mission-central-inventory-meta h4,
.mission-supply-request-head h5 {
  margin: 0;
  color: #22553e;
  font-size: 0.85rem;
}

.mission-central-inventory-meta p,
.mission-supply-request-head p,
.mission-supply-request-meta,
.mission-supply-request-note,
.mission-supply-request-help {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #4d715f;
  overflow-wrap: anywhere;
}

.mission-central-inventory-updated {
  color: #65816f;
}

.mission-central-inventory-controls {
  display: grid;
  gap: 8px;
}

.mission-central-inventory-controls label,
.mission-supply-request-response label {
  display: grid;
  gap: 5px;
  font-size: 0.76rem;
  color: #3e6754;
}

.mission-supply-request-card {
  display: grid;
  gap: 8px;
}

.mission-supply-request-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.mission-supply-request-response {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.mission-supply-request-status-line {
  display: grid;
  gap: 4px;
}

.mission-supply-request-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
}

.mission-supply-request-status--pending {
  color: #8a5f13;
  background: rgba(242, 166, 54, 0.18);
}

.mission-supply-request-status--scheduled {
  color: #1f7048;
  background: rgba(31, 167, 100, 0.15);
}

.mission-supply-request-help.is-warning {
  color: #97513c;
}

.mission-book-edit label {
  display: grid;
  gap: 5px;
  font-size: 0.76rem;
  color: #3e6754;
}

.mission-book-edit input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(31, 167, 100, 0.24);
  padding: 7px 8px;
  font: inherit;
  font-size: 0.78rem;
}

.mission-book-edit-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

@media (max-width: 720px){
  .mission-central-inventory-row,
  .mission-supply-request-response,
  .mission-supply-request-form {
    grid-template-columns: 1fr;
  }
}

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

.mini-metric {
  border-radius: 18px;
  border: 1px solid rgba(31, 167, 100, 0.2);
  background: rgba(255, 255, 255, 0.78);
  padding: 12px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.mini-ring-wrap {
  width: 100%;
  max-width: 122px;
  aspect-ratio: 1 / 1;
  height: auto;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.mini-ring {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.mini-ring-bg,
.mini-ring-progress {
  fill: none;
  stroke-width: 10;
}

.mini-ring-bg {
  stroke: rgba(31, 167, 100, 0.16);
}

.mini-ring-progress {
  stroke: var(--mission-tone);
  stroke-linecap: round;
  transition: stroke-dashoffset 280ms ease;
}

.mini-ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.mini-ring-center p {
  margin: 0;
  font-weight: 620;
  letter-spacing: -0.01em;
  color: #184f36;
}

.mini-ring-center span {
  font-size: 0.76rem;
  color: #3f6a56;
}

.metric-btn {
  background: rgba(31, 167, 100, 0.12);
  border-color: rgba(31, 167, 100, 0.24);
  color: #1a6e46;
  padding-top: 10px;
  padding-bottom: 10px;
}

.service-overview-card,
.service-list-card {
  border-radius: 24px;
  border: 1px solid rgba(124, 86, 232, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(240, 235, 255, 0.9));
  padding: 16px;
  box-shadow: 0 12px 26px rgba(45, 30, 88, 0.1);
}

.service-overview-card.mission-fold-card,
.service-list-card.mission-fold-card {
  padding: 0;
  overflow: hidden;
}

.service-overview-card .mission-fold-toggle,
.service-list-card .mission-fold-toggle {
  color: #5537b3;
}

.service-overview-card .mission-fold-chevron,
.service-list-card .mission-fold-chevron {
  border-right-color: rgba(85, 55, 179, 0.82);
  border-bottom-color: rgba(85, 55, 179, 0.82);
}

.service-overview-card .mission-fold-body,
.service-list-card .mission-fold-body {
  border-top-color: rgba(124, 86, 232, 0.2);
}

.service-ring-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.service-ring-box {
  border-radius: 18px;
  border: 1px solid rgba(124, 86, 232, 0.2);
  background: rgba(255, 255, 255, 0.86);
  padding: 10px;
  min-width: 0;
}

.ring-wrap-sm {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto;
}

.service-overview-card .ring-bg {
  stroke: rgba(124, 86, 232, 0.14);
}

.service-overview-card .ring-progress {
  stroke: var(--service-tone);
  stroke-linecap: round;
  transition: stroke-dashoffset 280ms ease;
}

.service-note {
  margin: 10px 4px 12px;
  text-align: center;
  color: #4f4084;
  font-size: 0.9rem;
  font-weight: 500;
}

.service-create-btn {
  background: linear-gradient(160deg, var(--service-tone), var(--service-strong));
  color: #fff;
  box-shadow: 0 10px 20px rgba(124, 86, 232, 0.32);
}

.service-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.service-list-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #5537b3;
}

#serviceCapacityBadge {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 590;
  color: #5537b3;
  background: rgba(124, 86, 232, 0.14);
}

.service-help {
  margin: 0 0 12px;
  color: #6d5aab;
  font-size: 0.82rem;
}

.service-event-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.service-empty {
  border-radius: 14px;
  border: 1px dashed rgba(124, 86, 232, 0.28);
  color: #6d5aab;
  text-align: center;
  padding: 14px;
  font-size: 0.88rem;
}

.service-event-item {
  width: 100%;
  max-width: 100%;
  text-align: left;
  border: 1px solid rgba(124, 86, 232, 0.2);
  border-radius: 14px;
  padding: 8px 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  min-width: 0;
}

.service-event-item:active {
  transform: translateY(1px);
}

.service-event-item:hover {
  border-color: rgba(124, 86, 232, 0.36);
  box-shadow: 0 8px 14px rgba(85, 56, 166, 0.1);
}

.service-event-item--health {
  border-left: 4px solid #2f80ed;
}

.service-event-item--holySupper {
  border-left: 4px solid #7d5fff;
}

.service-event-item--sermon {
  border-left: 4px solid #2f80ed;
}

.service-event-item--lesson {
  border-left: 4px solid #1fa764;
}

.service-event-item--concert {
  border-left: 4px solid #f28c28;
}

.service-event-item--missionDay {
  border-left: 4px solid #16a34a;
}

.service-event-item--guestProgram {
  border-left: 4px solid #3f5f8f;
}

.service-event-item--youth {
  border-left: 4px solid #1fa764;
}

.service-event-item--humanitarian {
  border-left: 4px solid #7c56e8;
}

.service-event-mark {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.service-mark--health {
  color: #1f62b6;
  background: rgba(47, 128, 237, 0.14);
}

.service-mark--holySupper {
  color: #5d42be;
  background: rgba(125, 95, 255, 0.17);
}

.service-mark--sermon {
  color: #1f62b6;
  background: rgba(47, 128, 237, 0.15);
}

.service-mark--lesson {
  color: #1d7b4c;
  background: rgba(31, 167, 100, 0.15);
}

.service-mark--concert {
  color: #a65a0a;
  background: rgba(242, 140, 40, 0.18);
}

.service-mark--missionDay {
  color: #176b39;
  background: rgba(22, 163, 74, 0.17);
}

.service-mark--guestProgram {
  color: #2e4e7e;
  background: rgba(63, 95, 143, 0.17);
}

.service-mark--youth {
  color: #1d7b4c;
  background: rgba(31, 167, 100, 0.15);
}

.service-mark--humanitarian {
  color: #5b3ac3;
  background: rgba(124, 86, 232, 0.16);
}

.service-event-line {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  color: #4e4272;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-badge {
  font-size: 0.68rem;
  border-radius: 999px;
  padding: 3px 7px;
  font-weight: 590;
  white-space: nowrap;
}

.service-badge.is-confirmed {
  color: #2a7d4f;
  background: rgba(31, 167, 100, 0.16);
}

.service-badge.is-pending {
  color: #9a6c12;
  background: rgba(242, 140, 40, 0.2);
}

.service-badge.is-cancelled {
  color: #9f2430;
  background: rgba(220, 78, 92, 0.2);
}

.evangelism-overview-card,
.ev-list-card {
  border-radius: 24px;
  border: 1px solid rgba(47, 128, 237, 0.24);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(232, 242, 255, 0.9));
  padding: 16px;
  box-shadow: 0 12px 26px rgba(26, 53, 112, 0.1);
  min-width: 0;
}

.evangelism-overview-card.mission-fold-card,
.ev-list-card.mission-fold-card {
  padding: 0;
  overflow: hidden;
}

.evangelism-overview-card .mission-fold-toggle,
.ev-list-card .mission-fold-toggle {
  color: #235eac;
}

.evangelism-overview-card .mission-fold-chevron,
.ev-list-card .mission-fold-chevron {
  border-right-color: rgba(35, 94, 172, 0.82);
  border-bottom-color: rgba(35, 94, 172, 0.82);
}

.evangelism-overview-card .mission-fold-body,
.ev-list-card .mission-fold-body {
  border-top-color: rgba(47, 128, 237, 0.22);
}

.evangelism-ring-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  align-items: stretch;
}

.evangelism-ring-box {
  border-radius: 16px;
  border: 1px solid rgba(47, 128, 237, 0.2);
  background: rgba(255, 255, 255, 0.86);
  padding: 10px;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.evangelism-ring-box .mini-ring-wrap {
  width: min(122px, 100%);
  max-width: 122px;
  margin: 0 auto;
  flex: 0 0 auto;
}

.evangelism-overview-card .mini-ring-bg {
  stroke: rgba(47, 128, 237, 0.16);
}

.evangelism-overview-card .mini-ring-progress {
  stroke: var(--evangelism-tone);
  stroke-linecap: round;
  transition: stroke-dashoffset 280ms ease;
}

.ev-mini-ring-center p {
  margin: 0;
  font-weight: 630;
  color: #1c4d93;
}

.ev-mini-ring-center span {
  font-size: 0.72rem;
  color: #3f648f;
}

.ev-note {
  margin: 10px 4px 12px;
  text-align: center;
  color: #2f5d95;
  font-size: 0.9rem;
  font-weight: 500;
}

.ev-create-btn {
  background: linear-gradient(160deg, var(--evangelism-tone), #2368c7);
  color: #fff;
  box-shadow: 0 10px 20px rgba(47, 128, 237, 0.3);
}

.ev-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ev-list-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #235eac;
}

#evCapacityBadge {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 590;
  color: #235eac;
  background: rgba(47, 128, 237, 0.14);
}

.ev-help {
  margin: 0 0 12px;
  color: #4a73a3;
  font-size: 0.82rem;
}

.ev-event-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ev-empty {
  border-radius: 14px;
  border: 1px dashed rgba(47, 128, 237, 0.3);
  color: #3d6898;
  text-align: center;
  padding: 14px;
  font-size: 0.88rem;
}

.ev-event-item {
  width: 100%;
  max-width: 100%;
  text-align: left;
  border: 1px solid rgba(47, 128, 237, 0.22);
  border-radius: 14px;
  padding: 8px 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  min-width: 0;
}

.ev-event-item:active {
  transform: translateY(1px);
}

.ev-event-item:hover {
  border-color: rgba(47, 128, 237, 0.38);
  box-shadow: 0 8px 14px rgba(31, 81, 152, 0.1);
}

.ev-event-item--sabbath {
  border-left: 4px solid #2f80ed;
}

.ev-event-item--bible {
  border-left: 4px solid #1fa764;
}

.ev-event-item--laws {
  border-left: 4px solid #f28c28;
}

.ev-event-mark {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.ev-mark--sabbath {
  color: #1f62b6;
  background: rgba(47, 128, 237, 0.14);
}

.ev-mark--bible {
  color: #1d7b4c;
  background: rgba(31, 167, 100, 0.15);
}

.ev-mark--laws {
  color: #a65a0a;
  background: rgba(242, 140, 40, 0.18);
}

.ev-event-line {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  color: #355d8c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-badge {
  font-size: 0.68rem;
  border-radius: 999px;
  padding: 3px 7px;
  font-weight: 590;
  white-space: nowrap;
}

.ev-badge.is-confirmed {
  color: #2a7d4f;
  background: rgba(31, 167, 100, 0.16);
}

.ev-badge.is-pending {
  color: #9a6c12;
  background: rgba(242, 140, 40, 0.2);
}

.ev-badge.is-cancelled {
  color: #9f2430;
  background: rgba(220, 78, 92, 0.2);
}

.form-dialog {
  border: 0;
  border-radius: 24px;
  width: min(92vw, 410px);
  padding: 0;
  box-shadow: 0 22px 48px rgba(12, 23, 44, 0.34);
}


.form-dialog::backdrop {
  background: rgba(12, 18, 31, 0.38);
  backdrop-filter: blur(2px);
}

.event-form {
  display: grid;
  gap: 12px;
  padding: 10px 16px 18px;
}

.event-form label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: #3f4653;
  font-weight: 500;
}

.event-form input,
.event-form select,
.event-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 11px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.event-form textarea {
  resize: vertical;
}

.event-form fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.event-form legend {
  padding: 0 6px;
  font-size: 0.8rem;
  color: #3f4653;
}

.app-action-dialog {
  width: min(92vw, 440px);
  border: 1px solid rgba(226, 232, 243, 0.96);
  background:
    radial-gradient(circle at top right, rgba(115, 155, 221, 0.14), transparent 34%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.98));
  overflow: hidden;
}

.app-action-dialog-form {
  gap: 14px;
  padding: 2px 18px 18px;
}

.app-action-dialog-message {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: #425473;
}

.app-action-dialog-input-wrap {
  display: grid;
  gap: 6px;
}

.app-action-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.app-action-dialog-actions .ghost-btn,
.app-action-dialog-confirm {
  width: auto;
  min-width: 118px;
  padding: 12px 18px;
}

.app-action-dialog-confirm {
  border-radius: 16px;
  border: 1px solid rgba(49, 107, 190, 0.28);
  background: linear-gradient(160deg, #4b82d9, #2e5aa3);
  color: #fff;
  font: inherit;
  font-weight: 620;
  box-shadow: 0 12px 24px rgba(46, 90, 163, 0.22);
}

.app-action-dialog-confirm.is-danger {
  border-color: rgba(180, 63, 76, 0.34);
  background: linear-gradient(160deg, #d9646a, #a93543);
  box-shadow: 0 12px 24px rgba(169, 53, 67, 0.2);
}

.app-action-dialog .dialog-head {
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 8px;
}

.app-action-dialog .dialog-head h3 {
  font-size: 1.12rem;
  line-height: 1.08;
  color: #18253d;
}

.custom-date-picker-dialog {
  max-width: 360px;
}

.custom-date-picker-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 6px;
}

.custom-date-picker-nav .ghost-btn {
  padding: 6px 10px;
}

.custom-date-picker-month {
  margin: 0;
  text-align: center;
  font-weight: 590;
  color: #2a4b7a;
  font-size: 0.95rem;
}

.custom-date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 0 16px;
}

.custom-date-picker-weekdays span {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 590;
  color: #5c6f8e;
  text-transform: uppercase;
}

.custom-date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 6px 16px 16px;
}

.custom-date-picker-day {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(72, 112, 176, 0.18);
  background: rgba(247, 250, 255, 0.92);
  color: #254978;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 530;
}

.custom-date-picker-day.is-outside-month {
  opacity: 0.52;
}

.custom-date-picker-day.is-selected {
  border-color: rgba(59, 125, 221, 0.48);
  background: rgba(59, 125, 221, 0.2);
  color: #1f4d90;
}

.custom-date-picker-day:disabled {
  opacity: 0.32;
}

.radio-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: #3f4653;
  font-weight: 500;
}

.radio-row input {
  width: auto;
  margin-top: 2px;
}

.survey-meta {
  border-radius: 14px;
  border: 1px solid rgba(124, 86, 232, 0.22);
  background: rgba(240, 235, 255, 0.74);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.survey-meta-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(84, 101, 168, 0.2);
  margin-bottom: 4px;
  display: block;
}

.survey-meta h4 {
  margin: 0;
  color: #5537b3;
  font-size: 0.9rem;
}

.survey-meta p {
  margin: 0;
  font-size: 0.8rem;
  color: #594d84;
}

.survey-note {
  margin: -2px 0 2px;
  color: #6d5aab;
  font-size: 0.79rem;
}

.survey-feedback {
  margin: -2px 0 2px;
  border-radius: 12px;
  border: 1px solid rgba(54, 109, 194, 0.2);
  background: rgba(236, 243, 255, 0.82);
  padding: 8px 10px;
  color: #2f5a9b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.survey-feedback.is-error {
  border-color: rgba(180, 58, 45, 0.24);
  background: rgba(255, 236, 233, 0.86);
  color: #9f2e24;
}

.survey-public-link {
  border-radius: 14px;
  border: 1px solid rgba(71, 116, 193, 0.24);
  background: rgba(233, 243, 255, 0.78);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.survey-public-link-label {
  margin: 0;
  font-size: 0.79rem;
  font-weight: 590;
  color: #2d4f87;
}

.survey-public-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.survey-public-link-row input {
  width: 100%;
  min-width: 0;
}

.survey-public-link-row .ghost-btn {
  white-space: nowrap;
}

.survey-public-link-hint {
  margin: 0;
  font-size: 0.76rem;
  color: #4a5f82;
}

.survey-owner-panel {
  border-radius: 14px;
  border: 1px solid rgba(52, 93, 150, 0.26);
  background: rgba(244, 248, 255, 0.86);
  padding: 10px;
  display: grid;
  gap: 10px;
}

.survey-owner-head h4 {
  margin: 0;
  font-size: 0.88rem;
  color: #1f4474;
}

.survey-owner-meta {
  margin: 3px 0 0;
  font-size: 0.77rem;
  color: #4b6484;
}

.survey-owner-actions {
  display: grid;
  gap: 8px;
}

.survey-owner-actions label {
  margin: 0;
}

.survey-owner-lists {
  display: grid;
  gap: 8px;
}

.survey-owner-list-title {
  margin: 0 0 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #2f4d77;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.survey-owner-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.survey-owner-list li {
  border-radius: 10px;
  border: 1px solid rgba(102, 123, 160, 0.22);
  background: rgba(255, 255, 255, 0.96);
  padding: 7px 8px;
  font-size: 0.77rem;
  color: #324b70;
  line-height: 1.35;
}

.survey-owner-list li.pending {
  border-color: rgba(206, 151, 50, 0.42);
  background: rgba(255, 249, 236, 0.96);
}

.survey-owner-list li.cancelled {
  border-color: rgba(206, 90, 101, 0.34);
  background: rgba(255, 242, 244, 0.96);
}

.survey-owner-list li.empty {
  border-style: dashed;
  color: #7184a1;
  background: rgba(248, 251, 255, 0.9);
}

.survey-danger-btn {
  color: #9f2430;
  border-color: rgba(170, 62, 73, 0.4);
}


.simple-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.simple-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* Keep the Sabbath Prep reminder readable inside the dark panel. */
  border-color: rgba(255, 240, 205, 0.3);
  background: rgba(255, 247, 227, 0.14);
  color: #fff4d6;
}

.page[data-tone="service"] .simple-card {
  border-color: rgba(124, 86, 232, 0.26);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(240, 235, 255, 0.88));
}

.page[data-tone="evangelism"] .simple-card {
  border-color: rgba(47, 128, 237, 0.26);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(232, 242, 255, 0.88));
}

.stats-dialog {
  border: 0;
  border-radius: 24px;
  width: min(92vw, 390px);
  padding: 0;
  box-shadow: 0 22px 48px rgba(12, 23, 44, 0.34);
}

.stats-dialog::backdrop {
  background: rgba(12, 18, 31, 0.38);
  backdrop-filter: blur(2px);
}

body.native-app .form-dialog,
body.native-app .stats-dialog,
body.compact-layout .form-dialog,
body.compact-layout .stats-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.98));
}

body.native-app .dialog-head,
body.native-app .form-dialog-head,
body.compact-layout .dialog-head,
body.compact-layout .form-dialog-head {
  position: sticky;
  top: 0;
  z-index: 8;
  padding:
    calc(12px + var(--safe-top))
    calc(16px + var(--safe-right))
    10px
    calc(16px + var(--safe-left));
  background: inherit;
}

body.native-app .event-form,
body.compact-layout .event-form {
  padding:
    10px
    calc(16px + var(--safe-right))
    calc(20px + var(--safe-bottom))
    calc(16px + var(--safe-left));
}


body.native-app .app-action-dialog,
body.compact-layout .app-action-dialog {
  position: fixed;
  inset: auto;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(calc(100vw - var(--safe-left) - var(--safe-right) - 24px), 440px);
  max-width: min(calc(100vw - var(--safe-left) - var(--safe-right) - 24px), 440px);
  min-height: 0;
  height: auto;
  max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px);
  margin: 0;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 243, 0.96);
  box-shadow:
    0 24px 56px rgba(18, 31, 58, 0.26),
    0 10px 22px rgba(18, 31, 58, 0.14);
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(115, 155, 221, 0.14), transparent 34%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.98));
}

body.native-app .mission-calendar-day-dialog,
body.compact-layout .mission-calendar-day-dialog {
  width: min(calc(100vw - var(--safe-left) - var(--safe-right) - 32px), 404px);
  max-width: min(calc(100vw - var(--safe-left) - var(--safe-right) - 32px), 404px);
}

body.native-app .app-action-dialog .dialog-head,
body.compact-layout .app-action-dialog .dialog-head {
  position: static;
  top: auto;
  padding: 16px 18px 8px;
  background: transparent;
}

body.native-app .app-action-dialog .event-form,
body.compact-layout .app-action-dialog .event-form {
  padding: 2px 18px 18px;
}

body.native-app .home-mission-calendar-dialog,
body.compact-layout .home-mission-calendar-dialog {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  transform: none;
}

body.native-app .home-mission-calendar-dialog .dialog-head,
body.compact-layout .home-mission-calendar-dialog .dialog-head {
  padding:
    calc(12px + var(--safe-top))
    calc(18px + var(--safe-right))
    10px
    calc(18px + var(--safe-left));
}

body.native-app .home-mission-calendar-dialog .home-mission-calendar-dialog-body,
body.compact-layout .home-mission-calendar-dialog .home-mission-calendar-dialog-body {
  padding:
    8px
    calc(18px + var(--safe-right))
    calc(18px + var(--safe-bottom))
    calc(18px + var(--safe-left));
}

body.home-mission-calendar-dialog-active {
  overflow: hidden;
}


body.native-app .task-poll-results-body,
body.compact-layout .task-poll-results-body {
  max-height: none;
  padding-bottom: calc(20px + var(--safe-bottom));
}

body.native-app #taskTopicDialog[open],
body.compact-layout #taskTopicDialog[open] {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

body.native-app #taskTopicDialog,
body.compact-layout #taskTopicDialog {
  position: fixed !important;
  inset: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100dvh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  transform: none !important;
}

body.native-app #taskTopicDialog .task-topic-dialog-meta,
body.compact-layout #taskTopicDialog .task-topic-dialog-meta {
  margin-left: calc(16px + var(--safe-left));
  margin-right: calc(16px + var(--safe-right));
}

body.native-app #taskTopicDialog .task-topic-dialog-actions,
body.compact-layout #taskTopicDialog .task-topic-dialog-actions {
  padding-left: calc(14px + var(--safe-left));
  padding-right: calc(14px + var(--safe-right));
}

body.native-app #taskTopicDialog .task-topic-messages,
body.compact-layout #taskTopicDialog .task-topic-messages {
  max-height: none;
  overflow-y: auto;
  padding:
    0
    calc(12px + var(--safe-right))
    10px
    calc(12px + var(--safe-left));
}

body.native-app #taskTopicDialog .task-topic-form,
body.compact-layout #taskTopicDialog .task-topic-form {
  margin: 0;
  border-top: 1px solid rgba(104, 129, 163, 0.24);
  background: rgba(255, 255, 255, 0.96);
  padding:
    8px
    calc(12px + var(--safe-right))
    calc(10px + var(--safe-bottom))
    calc(12px + var(--safe-left));
}

body.native-app #taskTopicDialog .task-msg,
body.compact-layout #taskTopicDialog .task-msg {
  max-width: 90%;
}

.dialog-head {
  padding: 16px 18px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.close-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef3f8;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.close-btn span {
  position: absolute;
  width: 16px;
  height: 2px;
  background: #3f4653;
  left: 50%;
  top: 50%;
  transform-origin: center;
}

.close-btn span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.stats-list {
  list-style: none;
  margin: 0;
  padding: 8px 18px 18px;
  display: grid;
  gap: 8px;
}


.stats-empty {
  padding: 18px 0;
  text-align: center;
  color: var(--muted);
}

body.native-app input:not([type="checkbox"]):not([type="radio"]),
body.native-app select,
body.native-app textarea,
body.compact-layout input:not([type="checkbox"]):not([type="radio"]),
body.compact-layout select,
body.compact-layout textarea {
  font-size: 16px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes task-topic-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes task-topic-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes task-topic-fresh-in {
  0% {
    transform: translateY(6px) scale(0.99);
    border-color: rgba(53, 118, 209, 0.28);
    background: rgba(234, 244, 255, 0.98);
  }

  100% {
    transform: translateY(0) scale(1);
    border-color: rgba(50, 84, 136, 0.16);
    background: rgba(248, 252, 255, 0.9);
  }
}

@media (prefers-reduced-motion: reduce){
  #taskTopicDialog[open],
  #taskTopicDialog::backdrop,
  .task-topic-item,
  .task-topic-item.is-fresh {
    animation: none !important;
    transition: none !important;
  }
}


  .mission-analytics-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
  }

  .home-calendar-head {
    flex-direction: column;
  }

  .task-board-head {
    flex-direction: column;
    align-items: stretch;
  }

  .task-create-topic-btn {
    align-self: flex-start;
  }

  .task-topic-emoji-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .task-topic-input-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .task-archive-restore-btn {
    justify-self: stretch;
    width: 100%;
  }

  .home-calendar-range {
    align-self: flex-start;
  }

  .home-calendar-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .home-calendar-editor-submit-row {
    grid-template-columns: 1fr;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .service-ring-grid {
    grid-template-columns: 1fr;
  }

  .evangelism-ring-grid {
    grid-template-columns: 1fr;
  }

  .mission-book-form {
    grid-template-columns: 1fr;
  }

  .mission-inventory-head {
    flex-wrap: wrap;
  }

  .mission-inventory-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .mission-inventory-add-toggle {
    flex: 1 1 auto;
    justify-content: center;
  }

  .mission-inventory-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-calendar-grid {
    gap: 4px;
  }

  .mission-calendar-day {
    min-height: 50px;
    padding: 5px 3px;
  }

  .mission-calendar-day-fill {
    font-size: 0.58rem;
    padding: 2px 5px;
  }

  .mission-calendar-day-actions {
    grid-template-columns: 1fr;
  }

  .mission-book-edit {
    grid-template-columns: 1fr;
  }

  .mission-shift-actions {
    grid-template-columns: 1fr;
  }

  .mission-sermons-table th:nth-child(1),
  .mission-sermons-table td:nth-child(1) {
    width: 44%;
  }

  .mission-sermons-table th:nth-child(2),
  .mission-sermons-table td:nth-child(2) {
    width: 32%;
  }

  .mission-sermons-table th:nth-child(3),
  .mission-sermons-table td:nth-child(3) {
    width: 24%;
  }

  .mission-sermons-action-cell .mission-action-btn {
    min-width: 0;
    font-size: 0.64rem;
    padding: 7px 5px;
    white-space: normal;
    line-height: 1.15;
  }
}

@media (max-width: 430px) {
  .service-ring-grid {
    grid-template-columns: 1fr;
  }

  .evangelism-ring-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px){
  .card-grid {
    grid-template-columns: 1fr;
  }

  .home-calendar-event {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-calendar-event.has-actions {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .home-calendar-date {
    min-width: 90px;
  }

  .nav-item {
    font-size: 0.58rem;
  }
}

.our-life-card {
  margin-top: 12px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-color: rgba(204, 166, 82, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 236, 0.96));
  box-shadow: 0 18px 34px rgba(126, 93, 31, 0.12);
}

.our-life-summary-btn {
  min-height: 134px;
  padding: 14px 16px 12px;
  display: grid;
  align-content: start;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(255, 251, 243, 0.2) 0%, rgba(255, 249, 240, 0.12) 36%, rgba(255, 255, 255, 0.86) 60%, rgba(255, 255, 255, 0.96) 100%),
    url("home-focus.webp");
  background-size: cover;
  background-position: 8% 60%;
}

.our-life-summary-btn:focus-visible {
  outline-color: rgba(183, 138, 42, 0.36);
  border-radius: 24px;
}

.our-life-summary-btn:disabled {
  cursor: default;
  opacity: 1;
}

.our-life-eyebrow {
  margin: 0 0 6px;
  color: #8c6e35;
  text-shadow:
    0 0 20px rgba(255, 249, 238, 0.98),
    0 0 12px rgba(255, 248, 238, 0.86),
    0 2px 8px rgba(255, 248, 238, 0.72);
}

.our-life-summary-head h3 {
  font-size: clamp(1.18rem, 4vw, 1.6rem);
  line-height: 1.08;
  color: #4f3a17;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-shadow:
    0 0 36px rgba(255, 249, 238, 0.99),
    0 0 20px rgba(255, 247, 234, 0.9),
    0 3px 12px rgba(255, 247, 234, 0.74);
}

.our-life-summary-chevron {
  margin-top: 8px;
  border-right-color: #87693a;
  border-bottom-color: #87693a;
  display: none;
}

.our-life-summary-overlay {
  width: min(66%, 228px);
  max-width: 100%;
  margin: 0 0 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(150, 113, 53, 0.12);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 18px rgba(127, 98, 47, 0.09);
  backdrop-filter: blur(8px);
  padding: 7px 8px;
  display: grid;
  gap: 7px;
}

.our-life-steps-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  color: #5a4829;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  text-align: left;
}

.our-life-steps-toggle-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
}

.our-life-steps-toggle-label {
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.our-life-steps-toggle-side {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 1px;
}

.our-life-steps-toggle-count {
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: rgba(211, 155, 61, 0.16);
  color: #6c5326;
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 780;
  line-height: 1;
}

.our-life-steps-toggle-chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(135, 105, 58, 0.9);
  border-bottom: 2px solid rgba(135, 105, 58, 0.9);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.our-life-card.is-steps-open .our-life-steps-toggle-chevron {
  transform: rotate(225deg);
}

.our-life-progress-bars-wrap {
  display: grid;
  gap: 7px;
  margin-top: 1px;
  padding-top: 7px;
  border-top: 1px solid rgba(150, 113, 53, 0.14);
}

.our-life-progress-bars {
  display: grid;
  gap: 7px;
}

.our-life-progress-item {
  --our-life-tone: #d39b3d;
  --our-life-tone-soft: rgba(211, 155, 61, 0.18);
  --our-life-tone-track: rgba(211, 155, 61, 0.14);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 7px;
  align-items: center;
  padding: 0;
  cursor: default;
  transition: opacity 160ms ease;
}

.our-life-progress-item.is-empty {
  opacity: 0.64;
}


.our-life-progress-item[data-module="mission"] {
  --our-life-tone: #74ad7f;
  --our-life-tone-soft: rgba(116, 173, 127, 0.2);
  --our-life-tone-track: rgba(116, 173, 127, 0.14);
}

.our-life-progress-item[data-module="workshops"] {
  --our-life-tone: #b086ea;
  --our-life-tone-soft: rgba(176, 134, 234, 0.22);
  --our-life-tone-track: rgba(176, 134, 234, 0.15);
}

.our-life-progress-item[data-module="evangelism"] {
  --our-life-tone: #6aa1ec;
  --our-life-tone-soft: rgba(106, 161, 236, 0.22);
  --our-life-tone-track: rgba(106, 161, 236, 0.14);
}

.our-life-progress-meta {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.our-life-progress-icon {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--our-life-tone-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
  position: relative;
}

.our-life-progress-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: var(--our-life-tone);
}

.our-life-progress-label {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  color: #4c4337;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.our-life-progress-bars.has-compact-copy .our-life-progress-label {
  font-size: 0.62rem;
}

.our-life-progress-value {
  font-size: 0.64rem;
  font-weight: 760;
  color: #67563b;
  white-space: nowrap;
}

.our-life-progress-track {
  grid-column: 1 / -1;
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(151, 130, 95, 0.1);
  overflow: hidden;
}

.our-life-progress-plan,
.our-life-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
}

.our-life-progress-plan {
  background: var(--our-life-tone-track);
}

.our-life-progress-fill {
  background: linear-gradient(90deg, var(--our-life-tone), var(--our-life-tone));
}

.our-life-summary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.our-life-index {
  font-size: 1.06rem;
  font-weight: 780;
  color: #4d3817;
  text-align: left;
}

.our-life-summary-cta {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 680;
  color: #6d5938;
}

.our-life-summary-cta::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.our-life-summary-overlay .mission-trend-empty {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.45;
  color: #6f5c3d;
}

.our-life-range {
  font-size: 0.62rem;
  text-align: left;
  color: #7b6948;
}

.our-life-module-list {
  margin-top: 0;
}

.our-life-module-item {
  border-color: rgba(177, 140, 75, 0.14);
  background: rgba(255, 252, 246, 0.92);
}

.our-life-module-name,
.our-life-module-val {
  color: #5a4520;
}

.our-life-inline-meta {
  color: #756241;
}

.home-topic-request-card {
  margin-top: 12px;
  overflow: hidden;
  border-color: rgba(210, 177, 100, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 238, 0.95));
  box-shadow: 0 16px 30px rgba(128, 95, 39, 0.1);
}

.home-topic-request-toggle {
  position: relative;
  min-height: 136px;
  padding: 16px 18px;
  align-items: start;
  align-content: start;
  background:
    linear-gradient(90deg, rgba(255, 252, 245, 0.96) 0%, rgba(255, 251, 245, 0.84) 44%, rgba(255, 251, 245, 0.18) 100%),
    url("home-soul-guide.webp");
  background-size: cover;
  background-position: center;
}

.home-topic-request-toggle-copy {
  display: grid;
  align-content: start;
  gap: 2px;
  max-width: min(100%, 252px);
  align-self: start;
}

.home-topic-request-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8c6e35;
}

.home-topic-request-title {
  font-size: clamp(1.18rem, 4.4vw, 1.46rem);
  line-height: 1.08;
  color: #5a4121;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.home-topic-request-hero-lead {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #7d6541;
}

.home-topic-request-hero-cta {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(189, 159, 94, 0.2);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 18px rgba(123, 97, 51, 0.09);
  color: #745830;
  font-size: 0.8rem;
  font-weight: 680;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.home-topic-request-hero-cta-chevron {
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.home-topic-request-toggle-side {
  align-self: start;
}

.home-topic-request-toggle .mission-fold-chevron {
  margin-top: 4px;
  border-right-color: rgba(113, 84, 37, 0.72);
  border-bottom-color: rgba(113, 84, 37, 0.72);
}

.home-topic-request-body {
  padding: 16px;
  border-top: 1px solid rgba(199, 171, 111, 0.18);
}

body.home-topic-request-active #homeTopicRequestCard {
  position: fixed;
  inset: 0;
  z-index: 1680;
  width: 100vw;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    radial-gradient(circle at top right, rgba(245, 223, 175, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(255, 251, 244, 0.995), rgba(245, 234, 204, 0.99));
}

body.home-topic-request-active #homeTopicRequestCard > .home-topic-request-toggle {
  min-height: auto;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 76px 14px 18px;
  border-radius: 0;
}

body.home-topic-request-active #homeTopicRequestCard > .home-topic-request-toggle .mission-fold-chevron {
  display: none;
}

body.home-topic-request-active #homeTopicRequestCard > .home-topic-request-body {
  min-height: 0;
  overflow: auto;
  padding: 0 18px calc(18px + env(safe-area-inset-bottom, 0px));
}

body.home-topic-request-active:not(.native-app):not(.compact-layout) #homeTopicRequestCard {
  position: fixed;
  top: max(14px, var(--safe-top));
  bottom: max(14px, var(--safe-bottom));
  left: max(14px, calc((100vw - 430px) / 2));
  width: min(calc(100vw - 28px), 430px);
  max-width: none;
  margin: 0;
  border-radius: 34px;
}

.home-topic-request-card .mission-topic-request-help,
.home-topic-request-flow-label,
.home-topic-request-select-help,
.home-topic-request-private-help {
  color: #6d755f;
}

.home-topic-request-flow-item,
.home-topic-request-private-note {
  border-color: rgba(180, 157, 103, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

.home-topic-request-flow-value,
.home-topic-request-card .mission-topic-request-form label,
.home-topic-request-title,
.home-topic-request-inbox-head h4 {
  color: #5a4728;
}

.home-topic-request-group {
  border-color: rgba(180, 157, 103, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.home-topic-request-group-title,
.home-topic-request-thread-preview-label,
.home-topic-request-thread-toggle {
  color: #5a4728;
}

.home-topic-request-group-meta,
.home-topic-request-thread-preview {
  color: #74664a;
}

.home-topic-request-group-chevron,
.home-topic-request-thread-chevron {
  border-right-color: #8b7650;
  border-bottom-color: #8b7650;
}

.home-topic-request-thread-toggle {
  border-color: rgba(180, 157, 103, 0.22);
  background: rgba(255, 255, 255, 0.92);
}

.home-topic-request-card .mission-topic-request-form input:not([type="checkbox"]),
.home-topic-request-card .mission-topic-request-form select,
.home-topic-request-card .mission-topic-request-form textarea {
  border-color: rgba(180, 157, 103, 0.2);
}

.home-focus-action-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-focus-action-btn {
  min-width: 0;
  border: 1px solid rgba(180, 157, 103, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  text-align: left;
  color: #5a4728;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.home-focus-action-btn.is-active {
  border-color: rgba(167, 104, 31, 0.34);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 246, 232, 0.92));
  box-shadow: 0 10px 18px rgba(128, 95, 39, 0.08);
  transform: translateY(-1px);
}

.home-focus-action-btn:focus-visible,
.home-focus-theme-card:focus-visible,
.home-topic-favorite-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 148, 61, 0.16);
}

.home-focus-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(222, 194, 140, 0.26);
  font-size: 1.08rem;
}

.home-focus-action-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.home-focus-action-title {
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 760;
  color: #5a4728;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.home-focus-action-meta,
.home-focus-section-help,
.home-focus-search-field span,
.home-focus-update-body,
.home-topic-favorite-card-status {
  font-size: 0.74rem;
  line-height: 1.45;
  color: #74664a;
}

.home-focus-panel {
  display: grid;
  gap: 12px;
}

.home-focus-selector-stack {
  display: grid;
  gap: 10px;
}

.home-focus-selector-block {
  display: grid;
  gap: 6px;
}

.home-focus-selector-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #5a4728;
}

.home-focus-selector-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.home-focus-selector-select,
.home-focus-selector-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(180, 157, 103, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: #4d3b21;
  font: inherit;
  font-size: 0.84rem;
  padding: 11px 12px;
}

.home-focus-selector-select {
  min-height: 44px;
}

.home-focus-selector-select:focus,
.home-focus-selector-input:focus {
  outline: none;
  border-color: rgba(172, 118, 29, 0.42);
  box-shadow: 0 0 0 3px rgba(196, 148, 61, 0.12);
}

.home-topic-favorite-star-btn {
  min-width: 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(180, 157, 103, 0.2);
  background: rgba(255, 255, 255, 0.94);
  color: #8e743f;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.home-topic-favorite-star-btn:hover,
.home-topic-favorite-star-btn:focus-visible {
  outline: none;
  border-color: rgba(172, 118, 29, 0.42);
  box-shadow: 0 0 0 3px rgba(196, 148, 61, 0.12);
}

.home-topic-favorite-star-btn.is-active {
  color: #e0a72f;
  background: rgba(255, 249, 235, 0.96);
}

.home-topic-favorite-star-btn:disabled {
  cursor: default;
  color: rgba(123, 105, 71, 0.4);
}

.home-focus-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.home-focus-section-head h4,
.home-topic-favorite-card-title,
.home-focus-update-title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.32;
  color: #4d3b21;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.home-focus-section-head p {
  margin: 4px 0 0;
}

.home-focus-inline-badge,
.home-focus-update-badge,
.home-topic-favorite-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(180, 157, 103, 0.2);
  background: rgba(255, 255, 255, 0.88);
  color: #6a5530;
  font-size: 0.68rem;
  font-weight: 760;
  white-space: nowrap;
}

.home-focus-search-field {
  display: grid;
  gap: 6px;
}

.home-focus-search-field input,
.home-focus-inline-form input,
.home-focus-inline-form textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(180, 157, 103, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: #4d3b21;
  font: inherit;
  font-size: 0.84rem;
  padding: 11px 12px;
}

.home-focus-search-field input:focus,
.home-focus-inline-form input:focus,
.home-focus-inline-form textarea:focus {
  outline: none;
  border-color: rgba(172, 118, 29, 0.42);
  box-shadow: 0 0 0 3px rgba(196, 148, 61, 0.12);
}

.home-focus-inline-form {
  display: grid;
  gap: 11px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(180, 157, 103, 0.16);
  background: rgba(255, 255, 255, 0.68);
}

.home-focus-inline-form label {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #5a4728;
}

.home-focus-inline-form textarea {
  min-height: 92px;
  resize: vertical;
}

.home-focus-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-focus-theme-picker,
.home-topic-favorites-list,
.home-focus-activity-list {
  display: grid;
  gap: 10px;
}

.home-focus-theme-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-focus-theme-card,
.home-topic-favorite-card,
.home-focus-update-item {
  min-width: 0;
  border-radius: 18px;
  border: 1px solid rgba(180, 157, 103, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: #4d3b21;
}

.home-focus-theme-card {
  padding: 12px;
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.home-focus-theme-card.is-selected {
  border-color: rgba(172, 118, 29, 0.34);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 245, 226, 0.92));
  box-shadow: 0 12px 18px rgba(128, 95, 39, 0.08);
}

.home-focus-theme-card.is-prep {
  border-color: rgba(72, 123, 168, 0.26);
}

.home-focus-theme-card.is-scheduled,
.home-topic-favorite-card.is-scheduled,
.home-focus-update-item.is-scheduled {
  border-color: rgba(55, 128, 83, 0.26);
  background: linear-gradient(180deg, rgba(249, 255, 250, 0.98), rgba(239, 251, 242, 0.92));
}

.home-focus-theme-card-head,
.home-topic-favorite-card-head,
.home-focus-update-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.home-focus-theme-card-title {
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 760;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.home-focus-theme-card-meta {
  font-size: 0.72rem;
  line-height: 1.35;
  color: #79694d;
}

.home-topic-favorite-card,
.home-focus-update-item {
  padding: 12px 13px;
}

.home-topic-favorite-card-status {
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}

.home-topic-favorite-card-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.home-topic-favorite-action {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(180, 157, 103, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: #6a5530;
  font: inherit;
  font-size: 0.73rem;
  font-weight: 720;
  cursor: pointer;
}

.home-focus-update-copy {
  display: grid;
  gap: 8px;
}

.home-focus-update-body {
  margin: 0;
}

.home-topic-favorite-status-badge.is-scheduled,
.home-focus-update-badge.is-scheduled {
  border-color: rgba(55, 128, 83, 0.26);
  background: rgba(226, 246, 232, 0.96);
  color: #2e6d45;
}

.home-topic-favorite-status-badge.is-prep,
.home-focus-update-badge.is-prep {
  border-color: rgba(72, 123, 168, 0.26);
  background: rgba(230, 239, 250, 0.96);
  color: #365f8a;
}

.home-topic-favorite-status-badge.is-done,
.home-focus-update-badge.is-done {
  border-color: rgba(130, 107, 63, 0.22);
  background: rgba(246, 240, 228, 0.96);
  color: #7c6538;
}

.home-topic-favorite-status-badge.is-watching,
.home-focus-update-badge.is-reply,
.home-focus-update-badge.is-watching {
  border-color: rgba(180, 157, 103, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #6a5530;
}

.mission-sermons-plan-preview-main {
  display: grid;
  gap: 8px;
}

.mission-sermons-plan-preview-topic-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(31, 167, 100, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: #2f4235;
  font: inherit;
  font-size: 0.77rem;
  min-height: 38px;
  padding: 0 10px;
}

.mission-sermons-plan-preview-topic-select:focus {
  outline: none;
  border-color: rgba(31, 167, 100, 0.34);
  box-shadow: 0 0 0 3px rgba(31, 167, 100, 0.12);
}

@media (max-width: 720px){
  .home-focus-action-panel,
  .home-focus-theme-picker {
    grid-template-columns: 1fr;
  }
}

@media (pointer: coarse){
  .our-life-summary-overlay {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .our-life-summary-overlay {
    background: rgba(255, 255, 255, 0.82);
  }
}

body.module-intro-open .app-shell {
  overflow: hidden;
  backdrop-filter: none;
}

body.module-intro-open .app-shell::before {
  display: none;
}

body.module-intro-open .bottom-nav {
  display: none;
}

@media (max-width: 640px){
  .our-life-summary-btn {
    min-height: 124px;
    padding: 14px;
  }

  .our-life-summary-overlay {
    width: min(64%, 206px);
    margin: 0 0 0 auto;
    padding: 7px 8px;
  }

  .home-topic-request-toggle {
    padding: 12px;
  }

  .home-topic-request-toggle {
    min-height: 132px;
  }
}

@media (max-width: 430px){
  .our-life-summary-btn {
    min-height: 118px;
    gap: 12px;
    background-position: 4% 62%;
  }

  .home-topic-request-toggle-copy {
    max-width: 100%;
  }

  .our-life-summary-overlay {
    width: min(62%, 184px);
    margin: 0 0 0 auto;
  }

  .our-life-summary-head h3 {
    font-size: 1.18rem;
  }

  .home-topic-request-toggle {
    min-height: 144px;
    background-position: 66% center;
  }
}
