.muted {
  color: var(--text-muted);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm, 10px);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm, 10px);
}

.section-head.is-center {
  align-items: center;
}

.section-head.is-tight {
  margin-bottom: var(--space-sm, 10px);
}

.section-title {
  margin: 0;
  font-size: var(--text-section-title, 1.15rem);
  font-weight: var(--weight-section, 700);
  letter-spacing: -0.01em;
}

.section-subtitle {
  margin: 0 0 var(--space-sm, 10px);
  font-size: var(--text-body, 0.98rem);
  color: var(--text-muted);
  font-weight: var(--weight-section, 700);
}

.section-note {
  margin: var(--space-xs, 6px) 0 var(--space-md, 16px);
  color: var(--text-muted);
  font-size: var(--text-aux, 0.88rem);
  line-height: 1.65;
}

.page-kicker {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stack-sm,
.stack-md,
.stack-lg,
.grid-stack {
  display: grid;
}

.stack-sm {
  gap: var(--space-xs, 6px);
}

.stack-md,
.grid-stack {
  gap: var(--space-sm, 10px);
}

.stack-lg {
  gap: var(--space-md, 16px);
}

.grid-auto-fit-160 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md, 16px);
}

.grid-auto-fit-220 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md, 16px);
}

.grid-full-span,
.field-full {
  grid-column: 1 / -1;
}

.flex-row,
.flex-center {
  display: flex;
  gap: var(--space-sm, 10px);
}

.flex-center {
  align-items: center;
  gap: var(--space-xs, 6px);
}

.flex-row.align-start,
.items-start {
  align-items: flex-start;
}

.flex-row.align-center,
.items-center {
  align-items: center;
}

.flex-row.justify-between,
.justify-between {
  justify-content: space-between;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm, 10px);
}

.inline-actions.action-grid {
  align-items: stretch;
}

.inline-actions.action-grid .btn {
  flex: 0 1 auto;
}

.inline-actions select {
  min-width: 220px;
  max-width: 300px;
  flex: 0 1 260px;
}

.inline-actions .btn,
.inline-actions select,
.inline-actions input:not([type="checkbox"]):not([type="radio"]) {
  min-height: 44px;
}

.inline-actions .btn,
.top-actions .btn,
.actions .btn,
.row-actions .btn {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  word-break: break-word;
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.85em;
}

.text-warning {
  color: #b45309;
}

.text-danger {
  color: var(--danger);
}

.font-semibold {
  font-weight: 600;
}

.heading-strong {
  font-weight: 700;
  color: #16324f;
}

.pre-wrap {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.cell-wrap-260 {
  max-width: 260px;
  white-space: pre-wrap;
}

.cell-wrap-320 {
  max-width: 320px;
  white-space: pre-wrap;
}

.mono-textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: 4px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 12px; }
.mt-lg { margin-top: 16px; }
.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: 4px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 12px; }
.mb-lg { margin-bottom: 16px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 12px; }

.fatal-error {
  padding: 24px;
  color: #b42318;
  line-height: 1.6;
}

.status-text {
  text-align: center;
  padding: 12px;
}

.volunteer-tag {
  margin-left: 6px;
  color: var(--text-muted);
}

.check-row-normal {
  font-weight: normal;
}

.section-title-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .inline-actions.action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .inline-actions.action-grid .btn {
    width: 100%;
    min-width: 0;
    flex: none;
  }

  .inline-actions.action-grid .btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

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

  .meta-pill-grid .meta-pill {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    justify-content: flex-start;
    border-radius: 12px;
    white-space: normal;
  }
}
