@media print {
  body.operation-print-cumulative * {
    visibility: hidden !important;
  }

  body.operation-print-cumulative .department-operations-cumulative-print,
  body.operation-print-cumulative .department-operations-cumulative-print * {
    visibility: visible !important;
  }

  body.operation-print-cumulative .department-operations-cumulative-print {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    border: 0;
    box-shadow: none;
  }

  body.operation-print-cumulative .department-operations-cumulative-actions {
    display: none !important;
  }
}

.department-operations-page {
  display: grid;
  gap: 18px;
}

.department-operations-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.department-operations-hero h3 {
  margin: 4px 0 6px;
}

.department-operations-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.department-operations-metric {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.department-operations-metric span,
.department-operations-metric em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.department-operations-metric strong {
  color: var(--ink);
  font-size: 27px;
  line-height: 1;
}

.department-operations-metric.good strong {
  color: var(--good);
}

.department-operations-metric.warn strong {
  color: var(--warn);
}

.department-operations-metric.soft strong {
  color: var(--blue);
}

.department-operations-metric.accent strong {
  color: var(--brand);
}

.department-request-sync-panel {
  padding: 0;
  overflow: hidden;
}

.department-request-sync-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.department-request-sync-panel summary::-webkit-details-marker {
  display: none;
}

.department-request-sync-panel summary h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.department-request-sync-panel summary > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.department-request-sync-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.department-request-sync-grid > section {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.department-request-column-head,
.department-request-meta,
.operation-task-title-cell,
.operation-kanban-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.department-request-column-head {
  justify-content: space-between;
}

.department-request-column-head h4 {
  margin: 0;
  font-size: 13px;
}

.department-request-column-head span,
.department-request-empty,
.department-request-item p,
.department-request-meta time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.department-request-list {
  display: grid;
  gap: 8px;
}

.department-request-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.department-request-title {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

.department-request-item p {
  margin: 4px 0 0;
  line-height: 1.4;
}

.department-request-meta {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.department-request-added,
.operation-linked-request-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.department-request-added {
  background: var(--good-soft);
  color: var(--good);
}

.operation-task-title-cell {
  flex-wrap: wrap;
}

.operation-task-title-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.operation-task-title-link:hover {
  color: var(--brand);
}

.operation-linked-request-badge {
  border: 1px solid var(--blue-soft);
  background: var(--blue-soft);
  color: var(--blue);
  cursor: pointer;
}

.operation-linked-request-badge:hover {
  filter: brightness(0.98);
}

.operation-kanban-card-meta {
  justify-content: space-between;
}

.department-operations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.department-operations-table-panel,
.department-operations-funnel,
.department-operations-cumulative {
  grid-column: 1 / -1;
}

.department-operations-table-wrap {
  overflow-x: auto;
}

.department-operations-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 12px;
}

.department-operations-table th,
.department-operations-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.department-operations-table th {
  color: var(--muted);
  background: var(--soft);
  font-size: 11px;
  font-weight: 900;
}

.department-operations-status,
.department-operations-priority {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

button.department-operations-status,
button.department-operations-priority {
  border: 0;
  cursor: pointer;
}

button.department-operations-status:hover:not(:disabled),
button.department-operations-priority:hover:not(:disabled) {
  filter: brightness(0.98);
}

.department-operations-status.active,
.department-operations-priority.middle {
  background: var(--warn-soft);
  color: var(--warn);
}

.department-operations-status.done,
.department-operations-priority.low {
  background: var(--good-soft);
  color: var(--good);
}

.department-operations-status.paused,
.department-operations-status.todo {
  background: var(--blue-soft);
  color: var(--blue);
}

.department-operations-priority.high {
  background: var(--bad-soft);
  color: var(--bad);
}

.department-operations-kanban-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.department-operations-kanban-column {
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.department-operations-kanban-column > strong {
  font-size: 12px;
}

.department-operations-kanban-card {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.department-operations-kanban-card span,
.department-operations-kanban-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.department-operations-kanban-card p {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.operation-kanban-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.department-operations-deadline-list {
  display: grid;
  gap: 9px;
}

.department-operations-deadline-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.department-operations-deadline-list time {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.department-operations-deadline-list strong,
.department-operations-deadline-list span {
  display: block;
}

.department-operations-deadline-list strong {
  font-size: 12px;
}

.department-operations-deadline-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.department-operations-toolbar {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.department-operations-tabs,
.department-operations-filters,
.department-operations-filters > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.department-operations-tabs button,
.department-operations-filters button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.department-operations-tabs button.active,
.department-operations-filters button.active {
  border-color: var(--blue-soft);
  background: var(--blue-soft);
  color: var(--blue);
}

.department-operations-filters span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.department-operations-dday {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.department-operations-dday.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.department-operations-dday.bad {
  background: var(--bad-soft);
  color: var(--bad);
}

.department-operations-routine-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.department-operations-routine-list h4 {
  margin: 0;
  font-size: 13px;
}

.department-operations-routine-list article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.department-operations-routine-list span,
.department-operations-routine-list em,
.department-operations-empty {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.department-operations-funnel-row,
.department-operations-activity-grid,
.department-operations-summary {
  display: grid;
  gap: 10px;
}

.department-operations-funnel-row {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.department-operations-funnel-row article,
.department-operations-activity-grid article,
.department-operations-summary div {
  position: relative;
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.department-operations-funnel-row span,
.department-operations-funnel-row em,
.department-operations-activity-grid span,
.department-operations-activity-grid em,
.department-operations-summary span {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.department-operations-funnel-row strong,
.department-operations-activity-grid strong,
.department-operations-summary strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.department-operations-funnel-row b {
  position: absolute;
  top: 50%;
  right: -12px;
  color: #94a3b8;
  transform: translateY(-50%);
  z-index: 1;
}

.department-operations-activity-grid,
.department-operations-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.department-operations-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.department-operations-bars {
  display: grid;
  gap: 10px;
}

.department-operations-bars div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.department-operations-bars b {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.department-operations-bars i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.operations-scope-select,
.operations-week-select {
  min-height: 34px;
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.operations-week-select {
  min-width: 170px;
}

.operation-edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.operation-task-form {
  display: grid;
  gap: 12px;
}

.operation-shared-form {
  display: grid;
  gap: 12px;
}

.operation-department-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.operation-task-form textarea {
  resize: vertical;
}

.operation-task-form-action {
  align-self: end;
}

.operation-task-status-control {
  min-width: 92px;
}

.operation-owner-picker,
.operation-deadline-picker {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(120px, 1fr);
  gap: 8px;
}

.department-request-owner-select,
.department-operations-owner-select {
  min-height: 26px;
  max-width: 140px;
  padding: 2px 6px;
  font-size: 12px;
}

.department-operations-cell-input {
  width: 100%;
  min-width: 90px;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 12px;
  font-family: inherit;
  line-height: 1.4;
  border: 1px solid var(--line, #d8dee6);
  border-radius: 6px;
  background: var(--surface, var(--panel));
  color: inherit;
  resize: vertical;
}

textarea.department-operations-cell-input {
  min-height: 30px;
}

.department-operations-cell-input:focus {
  outline: none;
  border-color: var(--accent, #2b6cb0);
}

.operation-deadline-picker {
  grid-template-columns: minmax(130px, 1fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr);
}

.operation-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.operation-category-tags button {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.operation-week-modal {
  width: min(920px, 100%);
}

.operation-week-modal-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.operation-week-section {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.operation-week-section h4 {
  margin: 0;
  font-size: 13px;
}

.operation-week-section input,
.operation-week-section textarea {
  width: 100%;
}

.operation-radio-row,
.operation-week-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.operation-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.operation-archived-week-list {
  display: grid;
  gap: 8px;
}

.operation-archived-week-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 12px;
  font-weight: 900;
}

.department-operations-cumulative-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.department-operations-cumulative-actions select {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.department-operations-completed-table {
  margin-top: 16px;
}

.department-operations-workboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 8px;
  background: #20242a;
  color: #fff;
  box-shadow: var(--shadow);
}

.department-operations-workboard-head h3 {
  margin: 4px 0 6px;
  color: #fff;
}

.department-operations-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.department-operations-title-row h3 {
  margin-right: 4px;
}

.department-operations-workboard-head p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.department-operations-workboard-head .eyebrow {
  color: #93c5fd;
}

.department-operations-head-actions {
  min-width: 260px;
  display: grid;
  gap: 10px;
}

.department-operations-head-actions .department-calendar-export-status {
  min-width: 0;
}

.operation-add-task-toggle {
  width: 100%;
}

.fellowship-operations-page {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.fellowship-operations-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.fellowship-topbar-title {
  min-width: 140px;
}

.fellowship-topbar-title strong,
.fellowship-topbar-title span {
  display: block;
}

.fellowship-topbar-title strong {
  color: var(--blue);
  font-size: 17px;
}

.fellowship-topbar-title span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.fellowship-operations-nav {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.fellowship-operations-nav button {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: var(--panel);
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.fellowship-operations-nav button:hover,
.fellowship-operations-nav button.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.fellowship-operations-nav-label {
  color: inherit;
}

.fellowship-operations-main {
  display: grid;
  gap: 18px;
}

[data-fellowship-operations-panel][hidden] {
  display: none;
}

.fellowship-operations-main section,
#fellowship-evangelism-page {
  scroll-margin-top: 74px;
}

.fellowship-operations-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.fellowship-operations-hero h3 {
  margin: 4px 0 6px;
  font-size: 24px;
}

.fellowship-operations-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.fellowship-operations-health {
  min-width: 170px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 14px;
  border: 1px solid #bde7d2;
  border-radius: 8px;
  background: var(--good-soft);
}

.fellowship-operations-health span,
.fellowship-operations-health em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.fellowship-operations-health strong {
  color: var(--good);
  font-size: 30px;
  line-height: 1;
}

.fellowship-role-grid,
.fellowship-schedule-grid {
  display: grid;
  gap: 12px;
}

.fellowship-dashboard-board,
.fellowship-section-grid {
  display: grid;
  gap: 14px;
}

.fellowship-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.fellowship-board-head h3 {
  margin: 4px 0 6px;
  color: var(--blue);
  font-size: 22px;
}

.fellowship-board-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.fellowship-board-title {
  min-width: 0;
}

.fellowship-week-meta,
.fellowship-check-date-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fellowship-week-closing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.fellowship-week-closing-badge.closed {
  border-color: #fecdd3;
  background: var(--bad-soft);
  color: var(--bad);
}

.fellowship-board-date {
  min-width: 132px;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: var(--blue-soft);
  text-align: right;
}

.fellowship-board-date strong {
  color: var(--blue);
  font-size: 13px;
}

.fellowship-board-date span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.fellowship-week-controls {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.fellowship-change-requests-panel {
  display: grid;
  gap: 12px;
}

.fellowship-change-requests-panel.empty {
  gap: 6px;
  padding-block: 12px;
}

.fellowship-change-requests-head,
.fellowship-change-request-title,
.fellowship-change-request-actions,
.fellowship-change-request-error {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fellowship-change-requests-head {
  justify-content: space-between;
}

.fellowship-change-requests-head > div {
  min-width: 0;
}

.fellowship-change-requests-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.fellowship-change-requests-head span,
.fellowship-change-request-error span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.fellowship-change-requests-head strong {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 13px;
}

.fellowship-change-request-list {
  display: grid;
  gap: 9px;
}

.fellowship-change-request-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.fellowship-change-request-card.pending {
  opacity: 0.62;
}

.fellowship-change-request-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.fellowship-change-request-title {
  align-items: flex-start;
}

.fellowship-change-request-title > span,
.fellowship-change-request-waiting {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.fellowship-change-request-title strong {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.fellowship-change-request-main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.fellowship-change-request-meta {
  min-width: 0;
  display: grid;
  gap: 5px;
  margin: 0;
}

.fellowship-change-request-meta div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 7px;
}

.fellowship-change-request-meta dt,
.fellowship-change-request-meta dd {
  margin: 0;
  font-size: 10px;
  font-weight: 900;
}

.fellowship-change-request-meta dt {
  color: var(--muted);
}

.fellowship-change-request-meta dd {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.fellowship-change-request-actions {
  justify-content: flex-end;
}

.fellowship-change-request-waiting {
  justify-self: end;
  background: var(--soft);
  color: var(--muted);
}

.fellowship-change-request-error {
  justify-content: space-between;
  padding: 10px;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: var(--bad-soft);
}

.fellowship-change-request-error > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.fellowship-change-request-error strong {
  color: var(--bad);
  font-size: 12px;
}

.fellowship-change-request-empty {
  margin: 0;
}

.fellowship-metric-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fellowship-score-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 13px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.fellowship-score-ring {
  width: 82px;
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--panel) 0 56%, transparent 57%),
    conic-gradient(var(--blue) calc(var(--score-value) * 1%), var(--line) 0);
}

.fellowship-score-ring strong {
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
}

.fellowship-score-ring span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.fellowship-score-card > div:last-child {
  display: grid;
  gap: 6px;
}

.fellowship-score-card span,
.fellowship-score-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.fellowship-metric-card {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.fellowship-metric-card span,
.fellowship-metric-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.fellowship-metric-card strong {
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

.fellowship-metric-card em.up {
  color: var(--good);
}

.fellowship-metric-card em.down {
  color: var(--bad);
}

.fellowship-metric-card.health strong {
  color: var(--good);
}

.fellowship-metric-card.muted strong {
  color: var(--muted);
}

.fellowship-screen-grid,
.fellowship-section-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  align-items: start;
}

.fellowship-screen-card.large {
  grid-column: span 1;
}

.fellowship-funnel-visual {
  display: grid;
  gap: 8px;
  align-items: center;
}

.fellowship-funnel-visual div {
  position: relative;
  width: var(--funnel-width);
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #0b5cff, #60a5fa);
  color: #fff;
  box-shadow: 0 6px 12px rgba(30, 99, 182, 0.16);
}

.fellowship-funnel-visual div:nth-child(n+5) {
  color: #0f172a;
  background: linear-gradient(90deg, #93c5fd, #dbeafe);
}

.fellowship-funnel-visual strong,
.fellowship-funnel-visual span {
  font-size: 12px;
  font-weight: 900;
}

.fellowship-funnel-visual em {
  position: absolute;
  right: -18px;
  color: #94a3b8;
  font-style: normal;
}

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

.fellowship-ring {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
}

.fellowship-ring div {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--panel) 0 56%, transparent 57%),
    conic-gradient(var(--good) calc(var(--ring-value) * 1%), var(--line) 0);
}

.fellowship-ring strong {
  color: var(--ink);
  font-size: 15px;
}

.fellowship-ring span,
.fellowship-ring em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.fellowship-bars,
.fellowship-alert-list,
.fellowship-stacked-list {
  display: grid;
  gap: 9px;
}

.fellowship-bars div,
.fellowship-stacked-list div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 44px;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.fellowship-bars b,
.fellowship-stacked-list b {
  display: flex;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.fellowship-bars i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0b5cff;
}

.fellowship-alert-list div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: var(--warn-soft);
}

.fellowship-alert-list div.danger {
  border-color: #fecdd3;
  background: var(--bad-soft);
}

.fellowship-alert-list strong {
  color: var(--ink);
  font-size: 13px;
}

.fellowship-alert-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.fellowship-dashboard-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 12px;
}

.fellowship-dashboard-table th,
.fellowship-dashboard-table td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.fellowship-dashboard-table th {
  color: var(--muted);
  background: var(--soft);
  font-size: 11px;
  font-weight: 900;
}

.fellowship-region-overview-panel {
  grid-column: 1 / -1;
}

.fellowship-region-overview {
  display: grid;
  gap: 12px;
}

.fellowship-region-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.fellowship-region-summary div {
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: var(--blue-soft);
}

.fellowship-region-summary span,
.fellowship-region-summary strong {
  display: block;
}

.fellowship-region-summary span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.fellowship-region-summary strong {
  margin-top: 3px;
  color: var(--blue);
  font-size: 20px;
}

.fellowship-region-matrix {
  min-width: 860px;
}

.fellowship-region-matrix th:first-child,
.fellowship-region-matrix td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 92px;
  background: var(--panel);
  text-align: left;
}

.fellowship-region-matrix th:first-child {
  z-index: 2;
  background: var(--soft);
}

.fellowship-region-row {
  cursor: pointer;
}

.fellowship-region-row:hover td {
  background: var(--soft);
}

.fellowship-matrix-region-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.fellowship-matrix-region-button span {
  width: 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.fellowship-team-detail-row td {
  background: var(--soft);
}

.fellowship-team-indent {
  display: inline-block;
  padding-left: 24px;
  color: var(--muted);
  font-weight: 900;
}

.fellowship-region-meter {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

.fellowship-region-meter b {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.fellowship-region-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
}

.fellowship-region-meter strong {
  color: var(--ink);
  font-size: 12px;
  text-align: right;
}

.fellowship-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.fellowship-status.green {
  background: var(--good-soft);
  color: var(--good);
}

.fellowship-status.yellow {
  background: var(--warn-soft);
  color: var(--warn);
}

.fellowship-status.red {
  background: var(--bad-soft);
  color: var(--bad);
}

.fellowship-status.muted {
  background: var(--soft);
  color: var(--muted);
}

.fellowship-goal-panel {
  display: grid;
  gap: 12px;
}

.fellowship-goal-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.fellowship-goal-panel-head > div {
  display: grid;
  gap: 3px;
}

.fellowship-goal-panel-head h3 {
  margin: 0;
}

.fellowship-goal-metric-field {
  display: grid;
  gap: 4px;
}

.fellowship-goal-metric-field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.fellowship-goal-metric-field select {
  min-width: 160px;
  min-height: 34px;
  padding: 6px 30px 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.fellowship-goal-warning-list {
  display: grid;
  gap: 6px;
}

.fellowship-goal-warning-list[hidden] {
  display: none;
}

.fellowship-goal-warning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px 11px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: var(--warn-soft);
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
}

.fellowship-goal-warning strong {
  white-space: nowrap;
}

.fellowship-goal-warning span {
  min-width: 0;
}

.fellowship-goal-board-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(92px, auto);
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: var(--blue-soft);
}

.fellowship-goal-board-row span,
.fellowship-goal-board-row em {
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.fellowship-goal-board-row em {
  grid-column: 1 / -1;
  color: var(--muted);
}

.fellowship-goal-input {
  width: 92px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.fellowship-goal-input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.2);
  border-color: var(--blue);
}

.fellowship-goal-input:disabled {
  opacity: 0.62;
  cursor: progress;
}

.fellowship-goal-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.fellowship-goal-value > span {
  min-width: 12px;
  color: var(--muted);
  text-align: left;
}

.fellowship-goal-table {
  min-width: 720px;
}

.fellowship-goal-table th:first-child,
.fellowship-goal-table td:first-child {
  text-align: left;
}

.fellowship-goal-region-row td {
  background: var(--blue-soft);
}

.fellowship-goal-team-row td {
  background: var(--soft);
}

.fellowship-goal-team-row .fellowship-team-indent {
  padding-left: 18px;
}

.fellowship-team-goal-achievement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.fellowship-team-goal-achievement > strong {
  color: var(--ink);
  font-size: 12px;
}

.fellowship-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.fellowship-health-grid div {
  padding: 12px;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: var(--soft);
}

.fellowship-health-grid span,
.fellowship-health-grid strong {
  display: block;
}

.fellowship-health-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.fellowship-health-grid strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 21px;
}

.fellowship-health-grid.visit {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.fellowship-trend-grid,
.fellowship-stats-summary {
  display: grid;
  gap: 10px;
}

.fellowship-trend-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fellowship-stats-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fellowship-trend-card,
.fellowship-stats-summary div {
  display: grid;
  gap: 10px;
  min-height: 110px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.fellowship-trend-card span,
.fellowship-stats-summary span,
.fellowship-stats-summary em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.fellowship-trend-card strong,
.fellowship-stats-summary strong {
  color: var(--ink);
  font-size: 20px;
}

.fellowship-sparkline {
  height: 42px;
  display: flex;
  align-items: end;
  gap: 5px;
}

.fellowship-sparkline i {
  flex: 1;
  min-width: 6px;
  border-radius: 999px 999px 0 0;
  background: var(--blue);
}

.fellowship-trend-card.green .fellowship-sparkline i {
  background: var(--good);
}

.fellowship-trend-card.brand .fellowship-sparkline i {
  background: var(--brand);
}

.fellowship-stacked-list i {
  height: 100%;
}

.fellowship-stacked-list i.done {
  background: var(--blue);
}

.fellowship-stacked-list i.progress {
  background: #f59e0b;
}

.fellowship-stacked-list i.pending {
  background: #ef4444;
}

.fellowship-platform-section {
  display: grid;
  gap: 14px;
}

.fellowship-platform-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.fellowship-platform-head h3 {
  margin: 4px 0 6px;
  color: var(--text);
  font-size: 22px;
}

.fellowship-platform-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.fellowship-page-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.fellowship-page-num {
  width: fit-content;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.fellowship-page-card h4 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.fellowship-page-card strong {
  color: var(--blue);
  font-size: 15px;
}

.fellowship-page-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.fellowship-page-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.fellowship-page-point {
  padding: 10px 12px;
  border-left: 4px solid var(--good);
  border-radius: 8px;
  background: var(--good-soft);
  color: var(--good);
  font-size: 12px;
  font-weight: 900;
}

.fellowship-operation-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.fellowship-operation-status.green {
  background: var(--good-soft);
  color: var(--good);
}

.fellowship-operation-status.yellow {
  background: var(--warn-soft);
  color: var(--warn);
}

.fellowship-operation-status.red {
  background: var(--bad-soft);
  color: var(--bad);
}

.fellowship-schedule-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.fellowship-schedule-grid article,
.fellowship-role-grid article {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.fellowship-schedule-grid span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.fellowship-schedule-grid strong,
.fellowship-role-grid strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.fellowship-schedule-grid em,
.fellowship-role-grid span {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.fellowship-role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fellowship-checks-page {
  display: grid;
  gap: 14px;
}

.fellowship-check-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: var(--soft);
}

.fellowship-stats-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.fellowship-stats-filter label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.fellowship-stats-filter input,
.fellowship-stats-search,
.fellowship-incident-input {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.fellowship-stats-search {
  min-width: 220px;
  padding: 10px 12px;
}

.fellowship-incident-summary,
.fellowship-stats-chart-grid {
  margin-bottom: 14px;
}

.fellowship-incident-table input {
  width: 88px;
}

.fellowship-stats-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fellowship-stats-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--ink);
}

.fellowship-stats-list-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.fellowship-stats-worship-panel {
  grid-column: 1 / -1;
}

.fellowship-monthly-comparison {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.fellowship-monthly-comparison-head {
  align-items: flex-end;
}

.fellowship-monthly-comparison-head h3,
.fellowship-monthly-comparison-head p {
  margin: 0;
}

.fellowship-monthly-comparison-head > div:first-child {
  display: grid;
  gap: 4px;
}

.fellowship-month-navigation {
  display: flex;
  align-items: center;
  gap: 7px;
}

.fellowship-month-navigation input {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.fellowship-monthly-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.fellowship-monthly-totals > div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.fellowship-monthly-totals span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.fellowship-monthly-totals strong {
  color: var(--ink);
  font-size: 17px;
}

.fellowship-monthly-comparison-chart {
  width: 100%;
  min-height: 360px;
}

.fellowship-monthly-comparison-table {
  min-width: 880px;
}

.fellowship-monthly-comparison-table th:first-child,
.fellowship-monthly-comparison-table td:first-child,
.fellowship-monthly-comparison-table th:nth-child(2),
.fellowship-monthly-comparison-table td:nth-child(2) {
  text-align: left;
}

.fellowship-monthly-region-row td {
  background: var(--blue-soft);
}

.fellowship-monthly-team-row td:nth-child(2) {
  padding-left: 18px;
}

.fellowship-monthly-comparison-table tfoot th,
.fellowship-monthly-comparison-table tfoot td {
  border-top: 2px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-weight: 900;
}

.fellowship-check-type-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.fellowship-check-type-toggle button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.fellowship-check-type-toggle button.active {
  background: var(--blue);
  color: #fff;
}

.fellowship-check-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.fellowship-check-date input {
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.fellowship-check-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fellowship-check-summary article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.fellowship-check-summary span,
.fellowship-check-summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.fellowship-check-summary strong {
  color: var(--blue);
  font-size: 22px;
  line-height: 1.1;
}

.fellowship-check-board {
  display: grid;
  gap: 12px;
}

.fellowship-check-tree,
.fellowship-check-team-list,
.fellowship-check-member-list {
  display: grid;
  gap: 10px;
}

.fellowship-check-region {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: var(--soft);
}

.fellowship-check-region-head,
.fellowship-check-team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fellowship-check-region-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.fellowship-check-region-head span,
.fellowship-check-team-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.fellowship-check-team {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.fellowship-check-team-head strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.fellowship-check-member-list {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.fellowship-check-member {
  min-height: 42px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  grid-template-areas:
    "box name"
    "box note";
  align-items: center;
  column-gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
}

.fellowship-check-member input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fellowship-check-box {
  grid-area: box;
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: var(--panel);
}

.fellowship-check-member.checked {
  border-color: #2563eb;
  background: var(--blue-soft);
}

.fellowship-check-member.checked .fellowship-check-box {
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: inset 0 0 0 4px #fff;
}

.fellowship-check-member.pending {
  opacity: 0.62;
  cursor: progress;
}

.fellowship-check-member strong {
  grid-area: name;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.fellowship-check-member em {
  grid-area: note;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.fellowship-check-empty {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
}

.fellowship-check-empty strong {
  color: var(--ink);
}

.fellowship-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.7fr);
  gap: 14px;
  align-items: start;
}

.fellowship-admin-panel {
  min-width: 0;
}

.fellowship-admin-structure {
  display: grid;
  gap: 12px;
}

.fellowship-inline-create,
.fellowship-team-create,
.fellowship-member-create,
.fellowship-member-bulk,
.fellowship-role-search,
.fellowship-role-assign,
.fellowship-region-head,
.fellowship-team-head,
.fellowship-member-row {
  display: grid;
  gap: 8px;
  align-items: center;
}

.fellowship-inline-create,
.fellowship-team-create {
  grid-template-columns: minmax(0, 1fr) auto;
}

.fellowship-region-head {
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
}

.fellowship-team-head {
  grid-template-columns: minmax(150px, 1fr) minmax(140px, 0.7fr) auto auto auto;
}

.fellowship-member-row {
  grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 1fr) minmax(220px, 1.4fr) minmax(110px, 0.7fr);
  align-items: end;
}

.fellowship-member-name,
.fellowship-member-team-move {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fellowship-member-name input {
  flex: 1 1 auto;
}

.fellowship-member-status-badge {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.fellowship-member-status-badge.dormant {
  background: var(--panel);
  color: var(--muted);
}

.fellowship-member-status-badge.long_absence {
  background: var(--warn-soft);
  color: var(--warn);
}

.fellowship-member-team-move > select {
  flex: 1 1 auto;
}

.fellowship-member-effective-date {
  flex: 0 1 118px;
  display: grid;
  gap: 2px;
  min-width: 105px;
}

.fellowship-member-effective-date span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.fellowship-member-roster-toggle {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.fellowship-admin-grid .fellowship-member-roster-toggle input {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.fellowship-member-row.is-evangelism-excluded .fellowship-member-name {
  opacity: 0.55;
}

.fellowship-member-history {
  grid-column: 1 / -1;
  align-self: stretch;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.fellowship-member-history[hidden] {
  display: none;
}

.fellowship-member-history .hint {
  margin: 0;
}

.fellowship-member-history-scroll {
  overflow-x: auto;
}

.fellowship-member-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.fellowship-member-history-table th,
.fellowship-member-history-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.fellowship-member-history-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.fellowship-member-history-table tbody tr:last-child td {
  border-bottom: 0;
}

.fellowship-member-create {
  grid-template-columns: minmax(100px, 0.8fr) minmax(120px, 1fr) auto;
}

.fellowship-member-bulk {
  grid-template-columns: minmax(0, 1fr) auto;
}

.fellowship-role-search {
  grid-template-columns: minmax(0, 1fr) auto;
}

.fellowship-role-assign {
  grid-template-columns: minmax(130px, 1fr) minmax(110px, 0.7fr) minmax(110px, 0.8fr) minmax(130px, 1fr) auto;
}

.fellowship-region-editor-list,
.fellowship-team-editor-list,
.fellowship-member-list,
.fellowship-role-list,
.fellowship-role-results {
  display: grid;
  gap: 10px;
}

.fellowship-region-editor,
.fellowship-team-editor,
.fellowship-role-list article {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.fellowship-team-editor {
  background: var(--soft);
}

.fellowship-region-head span,
.fellowship-team-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.fellowship-admin-grid input,
.fellowship-admin-grid select,
.fellowship-admin-grid textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.fellowship-admin-grid input,
.fellowship-admin-grid select {
  min-height: 34px;
  padding: 7px 9px;
}

.fellowship-admin-grid textarea {
  resize: vertical;
  padding: 9px;
  line-height: 1.45;
}

.fellowship-role-results {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.fellowship-role-results button,
.fellowship-role-list article {
  text-align: left;
}

.fellowship-role-results button {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.fellowship-role-results button.active,
.fellowship-role-results button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.fellowship-role-results strong,
.fellowship-role-results span,
.fellowship-role-list strong,
.fellowship-role-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.fellowship-role-results span,
.fellowship-role-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fellowship-role-list article {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.fellowship-check-member-list {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.fellowship-check-member {
  display: block;
  min-width: 0;
  padding: 0;
  cursor: default;
}

.fellowship-check-member.expanded {
  grid-column: 1 / -1;
}

.fellowship-check-member-summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
}

.fellowship-check-member-quick {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  cursor: pointer;
}

.fellowship-check-member-identity {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fellowship-check-member-identity strong,
.fellowship-check-member-identity em {
  grid-area: auto;
}

.fellowship-activity-count-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.fellowship-activity-detail-toggle {
  flex: 0 0 auto;
}

.fellowship-activity-details {
  padding: 10px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.fellowship-activity-details[hidden] {
  display: none;
}

.fellowship-activity-entry-list {
  display: grid;
  gap: 8px;
}

.fellowship-activity-entry-form {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.fellowship-activity-entry-form.new {
  border-style: dashed;
  background: var(--panel);
}

.fellowship-activity-entry-form.pending {
  opacity: 0.62;
}

.fellowship-activity-entry-form fieldset {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 72px minmax(150px, 1.2fr) auto;
  gap: 8px;
  align-items: end;
  margin: 0;
  padding: 0;
  border: 0;
}

.fellowship-activity-entry-form label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.fellowship-activity-entry-form label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.fellowship-check-member .fellowship-activity-details input,
.fellowship-check-member .fellowship-activity-details select {
  position: static;
  min-width: 0;
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  opacity: 1;
  background: var(--panel);
  color: var(--ink);
  pointer-events: auto;
  font: inherit;
  font-size: 12px;
}

.fellowship-check-member .fellowship-activity-details select:disabled {
  color: var(--muted);
  opacity: 1;
}

.fellowship-activity-entry-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.fellowship-activity-inactive {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.fellowship-activity-metric,
.fellowship-goal-progress {
  display: grid;
  gap: 5px;
}

.fellowship-activity-metric > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-align: right;
}

.fellowship-goal-progress .fellowship-region-meter {
  min-width: 180px;
}

.fellowship-region-meter.muted strong {
  color: var(--muted);
}

.fellowship-region-meter.muted i {
  background: var(--line);
}

.fellowship-ring.muted div {
  background:
    radial-gradient(circle at center, var(--panel) 0 56%, transparent 57%),
    conic-gradient(var(--line) 100%, var(--line) 0);
}

.fellowship-ring.muted strong {
  max-width: 58px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.fellowship-admin-side,
.fellowship-settings-panel,
.fellowship-score-settings-form fieldset,
.fellowship-activity-type-list {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.fellowship-score-settings-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.fellowship-score-settings-form.pending {
  opacity: 0.62;
}

.fellowship-settings-fields {
  display: grid;
  gap: 8px;
}

.fellowship-weight-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fellowship-threshold-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fellowship-settings-fields label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.fellowship-settings-fields label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.fellowship-weight-total {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
}

.fellowship-weight-total.valid {
  color: var(--good);
}

.fellowship-weight-total.invalid {
  color: var(--bad);
}

.fellowship-activity-type-create,
.fellowship-activity-type-row {
  min-width: 0;
  display: grid;
  gap: 7px;
  align-items: center;
}

.fellowship-activity-type-create {
  grid-template-columns: minmax(110px, 1fr) 74px auto;
}

.fellowship-activity-type-row {
  grid-template-columns: minmax(110px, 1fr) 68px auto auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.fellowship-activity-type-row.inactive {
  background: var(--soft);
}

.fellowship-activity-type-row.inactive > input {
  color: var(--muted);
}

.fellowship-activity-type-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.fellowship-admin-grid .fellowship-activity-type-toggle input {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.fellowship-reason-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.5);
}

.fellowship-reason-dialog {
  width: min(100%, 480px);
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.24);
}

.fellowship-reason-dialog h3 {
  margin: 4px 0 5px;
  color: var(--ink);
  font-size: 20px;
}

.fellowship-reason-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.fellowship-reason-dialog label {
  display: grid;
  gap: 6px;
}

.fellowship-reason-dialog label > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.fellowship-reason-dialog textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.fellowship-reason-dialog textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.2);
  border-color: var(--blue);
}

.fellowship-reason-dialog .fellowship-reason-error {
  color: var(--bad);
  font-weight: 900;
}

.fellowship-reason-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 900px) {
  .fellowship-stats-summary,
  .fellowship-monthly-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fellowship-admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fellowship-change-request-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .fellowship-change-request-main {
    grid-column: 1 / -1;
  }

  .fellowship-activity-entry-form fieldset {
    grid-template-columns: minmax(120px, 1fr) 72px;
  }

  .fellowship-activity-memo-field,
  .fellowship-activity-entry-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .fellowship-stats-summary,
  .fellowship-monthly-totals {
    grid-template-columns: minmax(0, 1fr);
  }

  .fellowship-monthly-comparison-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fellowship-month-navigation {
    width: 100%;
  }

  .fellowship-month-navigation input {
    min-width: 0;
    flex: 1 1 auto;
  }

  .fellowship-check-member-list,
  .fellowship-weight-fields,
  .fellowship-threshold-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .fellowship-check-member-summary {
    flex-wrap: wrap;
  }

  .fellowship-check-member-quick {
    flex-basis: 100%;
  }

  .fellowship-activity-type-create,
  .fellowship-activity-type-row {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .fellowship-goal-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fellowship-goal-metric-field select {
    width: 100%;
  }

  .fellowship-goal-warning {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .fellowship-board-head {
    align-items: flex-start;
  }

  .fellowship-change-request-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .fellowship-change-request-main,
  .fellowship-change-request-actions {
    grid-column: auto;
  }

  .fellowship-change-request-actions {
    justify-content: flex-start;
  }

  .fellowship-change-request-waiting {
    justify-self: start;
  }
}

/* Fellowship weekly comparison and evangelism status */
.fellowship-metric-grid {
  grid-template-columns: minmax(240px, 1.2fr) repeat(4, minmax(145px, 1fr));
}

.fellowship-week-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-style: normal;
  font-weight: 900;
}

.fellowship-week-delta.up {
  color: var(--good);
}

.fellowship-week-delta.down {
  color: var(--bad);
}

.fellowship-week-delta.same {
  color: var(--muted);
}

.fellowship-volume-deltas {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.fellowship-volume-deltas .fellowship-week-delta {
  font-size: 10px;
}

.fellowship-dashboard-board > .fellowship-monthly-totals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: var(--blue-soft);
}

.fellowship-dashboard-board > .fellowship-monthly-totals > div {
  display: grid;
  gap: 3px;
}

.fellowship-dashboard-board > .fellowship-monthly-totals span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.fellowship-dashboard-board > .fellowship-monthly-totals em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.fellowship-dashboard-board > .fellowship-monthly-totals dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  margin: 0;
}

.fellowship-dashboard-board > .fellowship-monthly-totals dl > div {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px;
}

.fellowship-dashboard-board > .fellowship-monthly-totals dt,
.fellowship-dashboard-board > .fellowship-monthly-totals dd {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
}

.fellowship-dashboard-board > .fellowship-monthly-totals dt {
  color: var(--muted);
}

.fellowship-dashboard-board > .fellowship-monthly-totals dd {
  color: var(--ink);
}

.fellowship-incident-no-target {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.fellowship-evangelism-filter {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 9px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: var(--soft);
}

.fellowship-evangelism-filter label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.fellowship-evangelism-filter label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.fellowship-evangelism-filter input,
.fellowship-evangelism-filter select {
  min-width: 0;
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.fellowship-evangelism-filter :disabled {
  color: var(--muted);
  background: #f8fafc;
}

.fellowship-evangelism-presets {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fellowship-evangelism-presets button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.fellowship-evangelism-presets button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.fellowship-evangelism-summary {
  margin-bottom: 0;
}

.fellowship-evangelism-member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.fellowship-evangelism-member-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.fellowship-evangelism-member-grid .panel {
  min-width: 0;
}

.fellowship-memo-indicator {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.fellowship-memo-indicator.has-memo {
  color: var(--good);
}

@media (max-width: 1100px) {
  .fellowship-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fellowship-score-card {
    grid-column: 1 / -1;
  }

  .fellowship-evangelism-filter {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 760px) {
  .fellowship-dashboard-board > .fellowship-monthly-totals {
    align-items: flex-start;
    flex-direction: column;
  }

  .fellowship-dashboard-board > .fellowship-monthly-totals dl {
    justify-content: flex-start;
  }

  .fellowship-evangelism-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fellowship-evangelism-member-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .fellowship-metric-grid,
  .fellowship-evangelism-filter {
    grid-template-columns: minmax(0, 1fr);
  }

  .fellowship-score-card {
    grid-column: auto;
  }
}

.fellowship-dashboard-board > .fellowship-monthly-totals > div {
  padding: 0;
  border: 0;
  background: transparent;
}
