.pm-frontend {
  display: block;
  max-width: 1100px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.pm-notice {
  padding: 10px 12px;
  border-left: 4px solid #2271b1;
  background: #ffffff;
  margin: 12px 0;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.pm-notice--success { border-left-color: #00a32a; }
.pm-notice--info { border-left-color: #72aee6; }

.pm-project-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: block;
}

.pm-project-card {
  border: 1px solid #dcdcde;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
  padding: 12px;
  margin: 0 0 10px 0;
}
.pm-project-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.pm-project-card__right {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pm-project-card__title {
  font-weight: 600;
  text-decoration: none;
}
.pm-toggle {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.pm-toggle:hover { text-decoration: underline; }
.pm-toggle__chev { width: 14px; display:inline-block; color:#50575e; }
.pm-panel[hidden] { display: none; }
.pm-project-card__pct { color: #50575e; font-variant-numeric: tabular-nums; }
.pm-project-card__meta { margin-top: 8px; color: #50575e; font-size: 13px; }

.pm-progress {
  height: 10px;
  background: #f3f1ee;
  border-radius: 999px;
  overflow: hidden;
}
.pm-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #2fb66d 0%, #00a32a 100%);
}

.pm-form {
  border: 1px solid #dcdcde;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
  margin: 12px 0 18px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.pm-form input[type="text"],
.pm-form textarea,
.pm-form select {
  width: 100%;
  max-width: 100%;
}
.pm-form button {
  background: #2271b1;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.pm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.pm-linkbtn {
  display: inline-block;
  background: linear-gradient(180deg, #2a7fc8 0%, #2271b1 100%);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.pm-linkbtn:hover { filter: brightness(1.02); }
.pm-linkbtn--sm { padding: 6px 10px; border-radius: 999px; font-size: 12px; }
.pm-linkbtn--secondary {
  background: #f0f0f1;
  color: #1d2327;
}
.pm-section-title { margin-top: 1.5em; }
.pm-actions--detail {
  align-items: center;
}
.pm-actions--detail .pm-inline-form--archive {
  display: inline-flex;
  align-items: center;
  margin: 0;
  vertical-align: middle;
}
.pm-inline-form { display: inline; margin: 0; }
.pm-inline-form button.pm-linkbtn,
.pm-actions--detail .pm-inline-form--archive button.pm-linkbtn {
  border: 0;
  cursor: pointer;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  padding: 6px 10px;
  border-radius: 999px;
  min-height: 0;
  -webkit-appearance: none;
  appearance: none;
}
.pm-modal__panel--wide {
  width: min(960px, 100%);
  max-width: 100%;
}
.pm-modal__body {
  max-height: min(70vh, 720px);
  overflow: auto;
}
.pm-modal--ledger .pm-donations-ledger--scroll {
  max-height: none;
}
.pm-donation-total { margin: 12px 0; }
.pm-ledger-heading { margin-top: 1.25em; }
.pm-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.pm-table th, .pm-table td { border: 1px solid #dcdcde; padding: 8px 10px; text-align: left; }
.pm-table thead th { background: #f6f7f7; }
.pm-donation-totals { list-style: none; padding: 0; margin: 8px 0; }
.pm-donation-totals li { margin: 6px 0; }
.pm-task--locked { opacity: 0.98; }

.pm-paypal-error { color: #b32d2e; font-size: 13px; margin: 8px 0; }
.pm-paypal-button-wrap { min-height: 45px; margin: 12px 0; }
.pm-donation-divider { border: 0; border-top: 1px solid #dcdcde; margin: 16px 0; }
.pm-donation-manual-title { margin: 0 0 8px; font-size: 1rem; }
.pm-donation-notice { margin: 12px 0 !important; }

.pm-ledger-donate-callout {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 4px;
}
.pm-ledger-donate-callout__text {
  margin: 0;
  line-height: 1.5;
}

.pm-id { color: #50575e; font-variant-numeric: tabular-nums; }

.pm-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  z-index: 99999;
}
.pm-modal--open { display: flex; }
.pm-modal__panel {
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #dcdcde;
}
.pm-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pm-modal__close {
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.pm-task-list, .pm-subtask-list {
  list-style: none;
  padding-left: 0;
}
.pm-subtask-list { margin-left: 18px; border-left: 2px solid #f0f0f1; padding-left: 12px; }
.pm-task { border: 1px solid #dcdcde; border-radius: 10px; background:#fff; padding: 10px 12px; margin: 10px 0; }
.pm-task { box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.pm-task__row { display:flex; justify-content: space-between; gap: 12px; align-items:flex-start; }
.pm-task__title { font-weight: 600; }
.pm-task__desc { color:#50575e; font-size: 13px; }
.pm-task__status { display:inline-block; padding: 2px 8px; border-radius: 999px; background:#f0f0f1; font-size: 12px; }
.pm-task__form { margin-top: 8px; display:flex; gap: 8px; align-items:center; }
.pm-task__form select { width:auto; }
.pm-task__progress { margin-top: 10px; }
.pm-task__progress .pm-progress { height: 8px; margin-top: 6px; }
.pm-task__progress-row { display:flex; gap: 10px; align-items:center; flex-wrap: wrap; }
.pm-task__progress-row input[type="range"] { width: min(320px, 100%); }
.pm-muted { color:#50575e; font-size: 13px; }

.pm-back { text-decoration:none; }

