@import url("./tokens.css");

.mpc-grants-screen {
  --module-color: var(--grants);
  --module-tint: var(--grants-tint);
  width: 100%;
  color: var(--text-strong);
  font-family: var(--font-ui);
}

.mpc-grants-screen :where(button, input, select, textarea) {
  font: inherit;
}

.mpc-grants-screen :where(a) {
  color: inherit;
}

#view-grants .gt-grant-create-modal {
  width: min(520px, calc(100vw - (var(--s4) * 2)));
  max-width: 520px !important;
  max-height: calc(100vh - (var(--s6) * 2)) !important;
  padding: 0 !important;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--elev-overlay);
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
}

#view-grants #gtApplicationImportModal.modal-overlay,
#view-grants #gtReportImportModal.modal-overlay {
  --gt-import-modal-top-clearance: 148px;
  align-items: flex-start;
  z-index: 20000;
  padding-top: var(--gt-import-modal-top-clearance);
  padding-bottom: var(--s4);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#view-grants #gtApplicationImportModal .gt-grant-create-modal,
#view-grants #gtReportImportModal .gt-grant-create-modal {
  max-height: calc(100vh - var(--gt-import-modal-top-clearance) - var(--s4)) !important;
  max-height: calc(100dvh - var(--gt-import-modal-top-clearance) - var(--s4)) !important;
}

body.gt-grant-import-modal-open {
  overflow: hidden;
}

#view-grants .gt-grant-create-form {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

#view-grants .gt-grant-create-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s6) var(--s6) var(--s4);
  border-bottom: 1px solid var(--line);
}

#view-grants .gt-grant-create-kicker {
  margin-bottom: var(--s1);
  color: var(--grants);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

#view-grants .gt-grant-create-header h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
}

#view-grants .gt-grant-create-header p {
  margin: var(--s2) 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

#view-grants .gt-grant-create-close {
  flex: 0 0 auto;
  color: var(--text-muted);
}

#view-grants .gt-grant-create-body {
  display: grid;
  gap: var(--s4);
  padding: var(--s6);
  overflow: auto;
}

#view-grants .gt-grant-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
}

#view-grants .gt-grant-create-modal .modal-field {
  margin: 0;
}

#view-grants .gt-grant-create-modal .modal-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

#view-grants .gt-grant-create-modal .modal-input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-strong);
  font-family: var(--font-ui);
  font-size: 14px;
}

#view-grants .gt-grant-create-modal .modal-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 10%, transparent);
}

#view-grants .gt-grant-create-modal .modal-err {
  margin: 0;
  padding: var(--s3);
  border: 1px solid color-mix(in srgb, var(--danger) 26%, var(--line));
  border-radius: var(--r-sm);
  background: var(--danger-tint);
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

#view-grants .gt-grant-create-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s3);
  padding: var(--s4) var(--s6) var(--s6);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

#view-grants .gt-grant-create-modal .gt-grant-create-secondary,
#view-grants .gt-grant-create-modal .gt-grant-create-primary {
  min-height: 40px;
  padding: 0 var(--s4);
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

#view-grants .gt-grant-create-modal .gt-grant-create-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text-strong);
}

#view-grants .gt-grant-create-modal .gt-grant-create-primary {
  background: var(--grants);
  color: var(--surface);
}

#view-grants .gt-grant-create-modal .gt-grant-create-primary:hover,
#view-grants .gt-grant-create-modal .gt-grant-create-primary:focus-visible {
  background: color-mix(in srgb, var(--grants) 86%, var(--navy-dark));
}

#view-grants .gt-grant-create-modal .gt-grant-create-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

#view-grants .gt-grant-create-modal .gt-grant-create-secondary:disabled {
  opacity: 0.6;
  cursor: default;
}

#view-grants .gt-grant-setup-wizard-modal {
  width: min(680px, calc(100vw - 32px));
  max-width: 680px !important;
}

#view-grants .gt-setup-form {
  min-height: 0;
  background: #FFFFFF;
}

#view-grants .gt-setup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid #EEF1F6;
  border-radius: 8px 8px 0 0;
  background: #FAFBFD;
}

#view-grants .gt-setup-head h2 {
  margin: 0;
  color: #111E3A;
  font-family: "PT Sans", sans-serif;
  font-size: 21px;
  line-height: 1.15;
}

#view-grants .gt-setup-head p {
  max-width: 560px;
  margin: 4px 0 0;
  color: #8A94A6;
  font-size: 12.5px;
  line-height: 1.45;
}

#view-grants .gt-setup-context {
  margin-top: 8px;
  color: #5A647A;
  font-size: 12.5px;
}

#view-grants .gt-setup-context b {
  color: #111E3A;
}

#view-grants .gt-setup-context span {
  color: #1F7A52;
  font-weight: 700;
}

#view-grants .gt-setup-body {
  display: grid;
  gap: 18px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 20px 6px;
  overflow-y: auto;
}

#view-grants .gt-setup-section {
  display: grid;
  gap: 10px;
}

#view-grants .gt-setup-section-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

#view-grants .gt-setup-section-name {
  color: #111E3A;
  font-size: 14px;
  font-weight: 700;
}

#view-grants .gt-setup-section-count {
  color: #8A94A6;
  font-size: 12px;
}

#view-grants .gt-setup-modtag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}

#view-grants .gt-setup-modtag.prog {
  background: #EFF4FB;
  color: #2B6CB0;
}

#view-grants .gt-setup-modtag.fin {
  background: #F0F7F4;
  color: #1F7A52;
}

#view-grants .gt-setup-modtag.vol {
  background: #FBF5EC;
  color: #9A6A12;
}

#view-grants .gt-setup-rows {
  display: grid;
  gap: 8px;
}

#view-grants .gt-setup-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid #E2E6EE;
  border-radius: 9px;
  background: #FFFFFF;
}

#view-grants .gt-setup-row.has-error {
  border-color: color-mix(in srgb, #B0413A 34%, #E2E6EE);
  background: color-mix(in srgb, #B0413A 5%, #FFFFFF);
}

#view-grants .gt-setup-pill {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: uppercase;
}

#view-grants .gt-setup-pill.new.prog {
  background: #2B6CB0;
  color: #FFFFFF;
}

#view-grants .gt-setup-pill.linked {
  background: #EEF1F6;
  color: #5A647A;
}

#view-grants .gt-setup-row-main {
  min-width: 0;
  flex: 1 1 auto;
}

#view-grants .gt-setup-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: #111E3A;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-grants .gt-setup-needs-approval {
  flex: 0 0 auto;
  padding: 1px 6px;
  border: 1px solid #ECDFC2;
  border-radius: 5px;
  background: #FBF5EC;
  color: #9A6A12;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

#view-grants .gt-setup-row-meta,
#view-grants .gt-setup-row-error {
  margin-top: 2px;
  color: #8A94A6;
  font-size: 11.5px;
  line-height: 1.35;
}

#view-grants .gt-setup-row-error {
  color: #B0413A;
  font-weight: 700;
}

#view-grants .gt-setup-row-map {
  flex: 0 0 auto;
  color: #8A94A6;
  font-size: 11.5px;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

#view-grants .gt-setup-row-map b {
  color: #5A647A;
  font-weight: 700;
}

#view-grants .gt-setup-row-remove {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #C2C9D6;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

#view-grants .gt-setup-addghost {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed #C7D0DE;
  border-radius: 9px;
  background: #FFFFFF;
  color: #5A647A;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
}

#view-grants .gt-setup-addghost span {
  font-size: 15px;
}

#view-grants .gt-setup-addform {
  display: grid;
  gap: 13px;
  padding: 14px;
  border: 1px solid #2B6CB0;
  border-radius: 9px;
  background: #F7FAFD;
}

#view-grants .gt-setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#view-grants .gt-setup-field {
  display: grid;
  gap: 5px;
}

#view-grants .gt-setup-field.wide {
  grid-column: 1 / -1;
}

#view-grants .gt-setup-field label {
  color: #8A94A6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

#view-grants .gt-setup-field input,
#view-grants .gt-setup-field select {
  width: 100%;
  min-height: 39px;
  padding: 9px 11px;
  border: 1px solid #D6DCE8;
  border-radius: 8px;
  background: #FFFFFF;
  color: #2A3445;
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
}

#view-grants .gt-setup-field textarea {
  width: 100%;
  min-height: 62px;
  padding: 9px 11px;
  border: 1px solid #D6DCE8;
  border-radius: 8px;
  background: #FFFFFF;
  color: #2A3445;
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
}

#view-grants .gt-setup-field input:focus,
#view-grants .gt-setup-field select:focus {
  border-color: #2B6CB0;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
  outline: none;
}

#view-grants .gt-setup-field textarea:focus {
  border-color: #2B6CB0;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
  outline: none;
}

#view-grants .gt-setup-combo {
  position: relative;
}

#view-grants .gt-setup-combo input {
  padding-right: 30px;
  border-color: #2B6CB0;
}

#view-grants .gt-setup-combo-chev {
  position: absolute;
  top: 17px;
  right: 11px;
  width: 0;
  height: 0;
  border-top: 6px solid #A6AEBD;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  pointer-events: none;
}

#view-grants .gt-setup-combo-menu {
  position: static;
  max-height: 210px;
  overflow-y: auto;
  padding: 5px;
  margin-top: 6px;
  border: 1px solid #E2E6EE;
  border-radius: 9px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(17, 30, 58, 0.04);
}

#view-grants .gt-setup-combo-label {
  padding: 6px 8px 3px;
  color: #A6AEBD;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

#view-grants .gt-setup-combo-group {
  display: grid;
}

#view-grants .gt-setup-combo-row,
#view-grants .gt-setup-combo-output {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #111E3A;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

#view-grants .gt-setup-combo-row:hover,
#view-grants .gt-setup-combo-row.is-open,
#view-grants .gt-setup-combo-output:hover {
  background: #F5F8FC;
}

#view-grants .gt-setup-combo-row .nm {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-grants .gt-setup-combo-row .c2 {
  margin-left: auto;
  color: #A6AEBD;
  font-size: 11.5px;
  white-space: nowrap;
}

#view-grants .gt-setup-combo-row.create,
#view-grants .gt-setup-combo-output.new-output {
  margin-top: 3px;
  border-top: 1px solid #EEF1F6;
  border-radius: 0 0 7px 7px;
  color: #2B6CB0;
  font-weight: 700;
}

#view-grants .gt-setup-combo-outputs {
  display: grid;
  padding: 0 0 5px 18px;
}

#view-grants .gt-setup-combo-output {
  justify-content: space-between;
  color: #2A3445;
  font-size: 12.5px;
}

#view-grants .gt-setup-combo-output em {
  color: #A6AEBD;
  font-size: 11px;
  font-style: normal;
}

#view-grants .gt-setup-combo-empty,
#view-grants .gt-setup-combo-lock {
  padding: 8px;
  color: #8A94A6;
  font-size: 12px;
  line-height: 1.4;
}

#view-grants .gt-setup-derived {
  padding: 10px 12px;
  border: 1px solid #D4E2F2;
  border-radius: 8px;
  background: #FFFFFF;
  color: #5A647A;
  font-size: 12.5px;
}

#view-grants .gt-setup-derived b {
  color: #111E3A;
}

#view-grants .gt-setup-add-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

#view-grants .gt-grant-create-modal .gt-grant-create-primary.prog {
  background: #2B6CB0;
}

#view-grants .gt-grant-create-modal .gt-grant-create-primary.fin {
  background: #1F7A52;
}

#view-grants .gt-grant-create-modal .gt-grant-create-primary.vol {
  background: #9A6A12;
}

#view-grants .gt-setup-coming {
  padding: 12px;
  border: 1px dashed #C7D0DE;
  border-radius: 9px;
  background: #FAFBFD;
  color: #8A94A6;
  font-size: 12.5px;
  font-weight: 700;
}

#view-grants .gt-setup-request-banner {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid #ECDFC2;
  border-radius: 9px;
  background: #FBF5EC;
  color: #7A5C12;
  font-size: 12.5px;
  line-height: 1.5;
}

#view-grants .gt-setup-request-banner b {
  color: #5A4A1E;
}

#view-grants .gt-setup-request-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid #ECDFC2;
  border-radius: 50%;
  color: #9A6A12;
  font-size: 12px;
  font-weight: 700;
}

#view-grants .gt-setup-note-field {
  margin-bottom: 14px;
}

#view-grants .gt-setup-footer-wrap {
  padding: 10px 20px 18px;
  border-top: 1px solid #EEF1F6;
  background: #FFFFFF;
}

#view-grants .gt-setup-summary {
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid #E2E6EE;
  border-radius: 10px;
  background: #FAFBFD;
}

#view-grants .gt-setup-summary-title {
  margin-bottom: 9px;
  color: #8A94A6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

#view-grants .gt-setup-summary-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 3px 0;
  color: #2A3445;
  font-size: 13px;
}

#view-grants .gt-setup-summary-line span:first-child {
  color: #1F7A52;
  font-weight: 700;
}

#view-grants .gt-setup-summary-line b,
#view-grants .gt-setup-summary-total b {
  color: #111E3A;
}

#view-grants .gt-setup-summary-muted,
#view-grants .gt-setup-summary-total {
  color: #5A647A;
  font-size: 12.5px;
}

#view-grants .gt-setup-summary-total {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #EEF1F6;
}

#view-grants .gt-setup-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

#view-grants .gt-setup-spacer {
  flex: 1 1 auto;
}

#view-grants .gt-setup-skip {
  border: 0;
  background: transparent;
  color: #8A94A6;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
}

#view-grants .gt-grant-create-modal .gt-setup-primary {
  background: #1B2F5A;
  border-color: #1B2F5A;
}

#view-grants .gt-grant-create-modal .gt-setup-primary:hover,
#view-grants .gt-grant-create-modal .gt-setup-primary:focus-visible {
  background: #111E3A;
}

#view-grants .gt-setup-error,
#view-grants .gt-setup-result {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}

#view-grants .gt-setup-error {
  border: 1px solid color-mix(in srgb, #B0413A 26%, #E2E6EE);
  background: color-mix(in srgb, #B0413A 7%, #FFFFFF);
  color: #B0413A;
}

#view-grants .gt-setup-result {
  border: 1px solid color-mix(in srgb, #2D9B6F 28%, #E2E6EE);
  background: color-mix(in srgb, #2D9B6F 7%, #FFFFFF);
  color: #1F7A52;
}

#view-grants .gt-setup-result.neutral {
  border-color: #E2E6EE;
  background: #FAFBFD;
  color: #5A647A;
}

#view-grants .gt-setup-award-prompt {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #E2E6EE;
  border-radius: 9px;
  background: #FAFBFD;
}

#view-grants .gt-setup-award-prompt strong {
  display: block;
  color: #111E3A;
  font-size: 13px;
}

#view-grants .gt-setup-award-prompt span {
  display: block;
  margin-top: 2px;
  color: #5A647A;
  font-size: 12.5px;
  line-height: 1.4;
}

#view-grants .gt-setup-award-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

#view-grants .gt-setup-pending-wrap {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

#view-grants .gt-setup-pending-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #ECDFC2;
  border-radius: 10px;
  background: #FBF5EC;
  color: #5A4A1E;
  font-size: 13px;
  line-height: 1.4;
}

#view-grants .gt-setup-pending-banner b {
  color: #5A4A1E;
}

#view-grants .gt-setup-pending-clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #9A6A12;
  font-size: 18px;
  line-height: 1;
}

#view-grants .gt-setup-pending-view {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #7A5C12;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

#view-grants .gt-setup-pending-list {
  display: grid;
  gap: 10px;
}

#view-grants .gt-setup-pending-card {
  padding: 14px 16px;
  border: 1px dashed #D6DCE8;
  border-radius: 10px;
  background: #FCFCFD;
  opacity: 0.88;
}

#view-grants .gt-setup-pending-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5A647A;
  font-size: 14px;
  font-weight: 700;
}

#view-grants .gt-setup-pending-tag {
  flex: 0 0 auto;
  padding: 1px 6px;
  border: 1px solid #ECDFC2;
  border-radius: 5px;
  background: #FBF5EC;
  color: #9A6A12;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

#view-grants .gt-setup-pending-meta {
  margin-top: 3px;
  color: #8A94A6;
  font-size: 12px;
  line-height: 1.4;
}

#view-grants .gt-grant-setup-review-modal {
  width: min(680px, calc(100vw - 32px));
  max-width: 680px !important;
}

#view-grants .gt-setup-reviewer-block {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid #EEF1F6;
  border-radius: 9px;
  background: #F7F8FA;
}

#view-grants .gt-setup-reviewer-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1B2F5A;
  color: #FFFFFF;
  font-family: "PT Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
}

#view-grants .gt-setup-reviewer-block div {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}

#view-grants .gt-setup-reviewer-block strong {
  color: #111E3A;
  font-size: 13.5px;
}

#view-grants .gt-setup-reviewer-block span,
#view-grants .gt-setup-reviewer-block em,
#view-grants .gt-setup-reviewer-block time {
  color: #8A94A6;
  font-size: 12px;
  font-style: normal;
}

#view-grants .gt-setup-reviewer-block time {
  flex: 0 0 auto;
  color: #A6AEBD;
  white-space: nowrap;
}

#view-grants .gt-setup-review-note {
  margin: -2px 0 0;
  padding: 9px 13px;
  border-left: 3px solid #1B2F5A;
  border-radius: 0 8px 8px 0;
  background: #FAFAFE;
  color: #2A3445;
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
}

#view-grants .gt-setup-review-list {
  display: grid;
  gap: 8px;
}

#view-grants .gt-setup-review-item {
  display: grid;
  gap: 7px;
}

#view-grants .gt-setup-review-status {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

#view-grants .gt-setup-review-status.pending {
  border: 1px solid #ECDFC2;
  background: #FBF5EC;
  color: #9A6A12;
}

#view-grants .gt-setup-review-status.approved {
  background: color-mix(in srgb, #2D9B6F 14%, #FFFFFF);
  color: #1F7A52;
}

#view-grants .gt-setup-review-status.rejected {
  background: color-mix(in srgb, #B0413A 10%, #FFFFFF);
  color: #B0413A;
}

#view-grants .gt-setup-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

#view-grants .gt-setup-review-actions.is-final {
  justify-content: flex-start;
}

#view-grants .gt-setup-review-disabled,
#view-grants .gt-setup-review-reason {
  padding-left: 12px;
  color: #8A94A6;
  font-size: 12px;
  font-weight: 700;
}

#view-grants .gt-setup-review-reject-box {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, #B0413A 18%, #E2E6EE);
  border-radius: 8px;
  background: color-mix(in srgb, #B0413A 4%, #FFFFFF);
}

#view-grants .gt-setup-review-reject-box label {
  color: #8A94A6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

#view-grants .gt-setup-review-reject-box textarea {
  min-height: 54px;
  padding: 9px 11px;
  border: 1px solid #D6DCE8;
  border-radius: 8px;
  color: #2A3445;
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  resize: vertical;
}

#view-grants .gt-grant-create-modal .gt-grant-create-primary.approve {
  background: #2D9B6F;
  border-color: #2D9B6F;
}

#view-grants .gt-grant-create-modal .gt-grant-create-primary.danger {
  background: #B0413A;
  border-color: #B0413A;
}

#view-grants .gt-grant-create-modal .gt-grant-create-secondary.danger {
  border-color: color-mix(in srgb, #B0413A 28%, #D6DCE8);
  color: #B0413A;
}

@media (max-width: 720px) {
  #view-grants .gt-setup-grid {
    grid-template-columns: 1fr;
  }

  #view-grants .gt-setup-row,
  #view-grants .gt-setup-award-prompt,
  #view-grants .gt-setup-footer {
    align-items: stretch;
    flex-direction: column;
  }

  #view-grants .gt-setup-row-map {
    text-align: left;
  }

  #view-grants .gt-setup-award-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

#view-grants .gt-application-import-modal,
#view-grants .gt-report-import-modal,
#view-grants .gt-report-submit-modal {
  width: min(740px, calc(100vw - (var(--s4) * 2)));
  max-width: 740px !important;
}

#view-grants .gt-application-import-modal .gt-grant-create-body,
#view-grants .gt-report-import-modal .gt-grant-create-body {
  flex: 1 1 auto;
  max-height: min(58vh, 560px);
  overflow-y: auto;
}

#view-grants .gt-app-import-intro,
#view-grants .gt-app-import-note,
#view-grants .gt-app-import-saved-copy {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

#view-grants .gt-app-import-file-input {
  display: none;
}

#view-grants .gt-app-import-drop {
  display: grid;
  justify-items: center;
  padding: 30px 22px;
  border: 2px dashed color-mix(in srgb, var(--grants) 28%, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--grants-tint) 44%, var(--surface));
  text-align: center;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

#view-grants .gt-app-import-drop:focus-visible,
#view-grants .gt-app-import-drop.is-dragging {
  border-color: color-mix(in srgb, var(--grants) 68%, var(--line));
  background: color-mix(in srgb, var(--grants-tint) 70%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--grants) 12%, transparent);
  outline: none;
}

#view-grants .gt-app-import-drop-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--grants-tint) 78%, var(--surface));
  color: var(--grants);
}

#view-grants .gt-app-import-drop-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

#view-grants .gt-app-import-drop-title {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

#view-grants .gt-app-import-drop-detail {
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.4;
}

#view-grants .gt-app-import-browse {
  min-height: 34px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid var(--grants);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--grants);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 800;
}

#view-grants .gt-app-import-browse:disabled {
  cursor: default;
  opacity: .55;
}

#view-grants .gt-app-import-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--hover) 58%, var(--surface));
}

#view-grants .gt-app-import-selected div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

#view-grants .gt-app-import-selected strong,
#view-grants .gt-app-import-selected span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-grants .gt-app-import-selected strong {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 800;
}

#view-grants .gt-app-import-selected span {
  color: var(--text-muted);
  font-size: 12px;
}

#view-grants .gt-app-import-selected button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

#view-grants .gt-app-import-next {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--success) 24%, var(--line));
  border-radius: 9px;
  background: var(--success-tint);
}

#view-grants .gt-app-import-next svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  stroke: var(--success);
}

#view-grants .gt-app-import-next-text {
  color: color-mix(in srgb, var(--success) 56%, var(--text-strong));
  font-size: 11.5px;
  line-height: 1.45;
}

#view-grants .gt-app-import-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
}

#view-grants .gt-app-import-divider span {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

#view-grants .gt-app-import-divider strong {
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 800;
}

#view-grants .gt-app-import-paste {
  display: grid;
  gap: 7px;
}

#view-grants .gt-app-import-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

#view-grants .gt-app-import-textarea {
  width: 100%;
  min-height: 220px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-strong);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}

#view-grants .gt-app-import-entry .gt-app-import-textarea {
  min-height: 92px;
  font-size: 13px;
  line-height: 1.55;
}

#view-grants .gt-app-import-textarea:focus,
#view-grants .gt-app-import-question-input:focus,
#view-grants .gt-app-import-limit-input:focus {
  border-color: color-mix(in srgb, var(--grants) 38%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--grants) 10%, transparent);
  outline: none;
}

#view-grants .gt-app-import-error,
#view-grants .gt-app-import-warning {
  padding: var(--s3);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
}

#view-grants .gt-app-import-error {
  border: 1px solid color-mix(in srgb, var(--danger) 26%, var(--line));
  background: var(--danger-tint);
  color: var(--danger);
}

#view-grants .gt-app-import-warning {
  display: grid;
  gap: var(--s1);
  border: 1px solid color-mix(in srgb, var(--warning) 28%, var(--line));
  background: var(--warning-tint);
  color: color-mix(in srgb, var(--warning) 76%, var(--text-strong));
}

#view-grants .gt-app-import-review-list {
  display: grid;
  gap: var(--s3);
}

#view-grants .gt-app-import-review-card {
  display: grid;
  gap: var(--s3);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}

#view-grants .gt-app-import-review-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s3);
  align-items: start;
}

#view-grants .gt-app-import-question-meta {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

#view-grants .gt-app-import-question-input {
  width: 100%;
  min-height: 80px;
  margin-top: var(--s2);
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--hover) 45%, var(--surface));
  color: var(--text-strong);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  resize: vertical;
}

#view-grants .gt-app-import-remove {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

#view-grants .gt-app-import-remove:hover,
#view-grants .gt-app-import-remove:focus-visible {
  border-color: color-mix(in srgb, var(--danger) 28%, var(--line));
  color: var(--danger);
}

#view-grants .gt-app-import-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s3);
  align-items: end;
}

#view-grants .gt-app-import-limit-wrap,
#view-grants .gt-app-import-required-wrap {
  display: grid;
  gap: 6px;
}

#view-grants .gt-app-import-label {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

#view-grants .gt-app-import-limit-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
}

#view-grants .gt-app-import-limit-seg {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--hover);
}

#view-grants .gt-app-import-limit-seg button {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

#view-grants .gt-app-import-limit-seg button[aria-pressed="true"] {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: var(--elev-page);
}

#view-grants .gt-app-import-limit-input {
  width: 132px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-strong);
  font-family: var(--font-ui);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

#view-grants .gt-app-import-required-wrap {
  min-height: 58px;
  align-content: end;
}

#view-grants .gt-app-import-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--hover);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 800;
}

#view-grants .gt-app-import-required input {
  width: 16px;
  height: 16px;
  accent-color: var(--grants);
}

#view-grants .gt-app-import-saved {
  display: grid;
  gap: var(--s3);
  justify-items: start;
  padding: var(--s4);
  border: 1px solid color-mix(in srgb, var(--success) 22%, var(--line));
  border-radius: var(--r-sm);
  background: var(--success-tint);
}

#view-grants .gt-app-import-saved strong {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
}

#view-grants .gt-report-submit-summary {
  display: grid;
  gap: 5px;
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--hover) 58%, var(--surface));
}

#view-grants .gt-report-submit-summary strong {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
}

#view-grants .gt-report-submit-summary span {
  color: var(--text-muted);
  font-size: 13px;
}

#view-grants .gt-report-submit-warning {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s4);
  padding: var(--s4);
  border: 1px solid color-mix(in srgb, var(--warning) 42%, var(--line));
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--warning) 10%, var(--surface));
}

#view-grants .gt-report-submit-warning strong {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.25;
}

#view-grants .gt-report-submit-warning p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

#view-grants .gt-report-submit-warning ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#view-grants .gt-report-submit-warning li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

#view-grants .gt-report-submit-warning em {
  flex: 0 0 auto;
  font-style: normal;
  color: var(--warning);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 560px) {
  #view-grants #gtApplicationImportModal.modal-overlay,
  #view-grants #gtReportImportModal.modal-overlay {
    --gt-import-modal-top-clearance: var(--s4);
  }

  #view-grants .gt-grant-create-header,
  #view-grants .gt-grant-create-body,
  #view-grants .gt-grant-create-footer {
    padding-left: var(--s4);
    padding-right: var(--s4);
  }

  #view-grants .gt-grant-create-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #view-grants .gt-app-import-controls,
  #view-grants .gt-app-import-review-top {
    grid-template-columns: minmax(0, 1fr);
  }

  #view-grants .gt-app-import-remove {
    justify-self: start;
  }
}

.mpc-grants-screen .grant-module-sidebar,
.mpc-grants-screen .gt-page-header,
.mpc-grants-screen + .gt-grants-footer,
#view-grants > .gt-grants-footer,
.mpc-grants-screen .gt-grants-footer {
  display: none !important;
}

.mpc-grants-screen .grant-module-layout,
.mpc-grants-screen .gt-module-content,
.mpc-grants-screen .gt-wrap,
.mpc-grants-screen .gt-module-shell,
.mpc-grants-screen #grantTrackerWorkspace {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.mpc-grants-screen .grant-module-layout {
  display: block !important;
  grid-template-columns: minmax(0, 1fr) !important;
  padding: 0 !important;
}

.mpc-grants-screen .gt-module-content {
  flex: 1 1 auto !important;
}

.mpc-grants-screen .gt-wrap,
.mpc-grants-screen .gt-module-shell {
  padding: 0 !important;
}

.mpc-grants-screen,
#view-grants,
#view-grants .page-wrap,
.mpc-grants-screen .grant-module-layout,
.mpc-grants-screen .gt-module-content,
.mpc-grants-screen .gt-wrap,
.mpc-grants-screen .gt-module-shell,
.mpc-grants-screen .gt-workspace-sections,
.mpc-grants-screen .gt-workspace-section.is-active {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

body.mpc-production-shell-page .mpc-shell__canvas:has(#view-grants.active),
body.mpc-production-shell-page .mpc-shell__canvas > .content-area:has(#view-grants.active),
body.grant-page-active .mpc-shell__canvas,
body.grant-page-active .content-area,
body.grant-page-active .main {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.mpc-grants-screen .grant-module-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin: 0 0 24px;
  padding: 8px 24px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
}

.mpc-grants-screen .grant-module-tab {
  min-height: 44px;
  margin: 0 0 -1px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.mpc-grants-screen .grant-module-tab:hover {
  color: var(--text-strong);
}

.mpc-grants-screen .grant-module-tab.is-active {
  border-bottom-color: var(--grants);
  color: var(--grants);
  font-weight: 600;
}

.mpc-grants-screen .grant-module-settings-btn {
  min-height: 34px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mpc-grants-screen .grant-module-settings-btn:hover {
  border-color: color-mix(in srgb, var(--grants) 24%, var(--line));
  color: var(--text-strong);
}

.mpc-grants-screen .gt-workspace-sections {
  min-width: 0 !important;
  padding-bottom: var(--s2) !important;
}

.mpc-grants-screen .gt-workspace-section {
  display: none !important;
  padding-bottom: var(--s3) !important;
}

.mpc-grants-screen .gt-workspace-section.is-active {
  display: block !important;
}

.mpc-grants-screen .gt-record-workspace {
  padding: 0 30px 36px;
}

.mpc-grants-screen .gt-record-head {
  padding: 4px 0 0;
}

.mpc-grants-screen .gt-record-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--grants);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mpc-grants-screen .gt-record-back:hover,
.mpc-grants-screen .gt-record-back:focus-visible {
  text-decoration: underline;
}

.mpc-grants-screen .gt-record-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.mpc-grants-screen .gt-record-title-wrap {
  min-width: 0;
}

.mpc-grants-screen .gt-record-title-wrap h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.mpc-grants-screen .gt-record-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-record-meta b {
  color: var(--text);
  font-weight: 700;
}

.mpc-grants-screen .gt-record-sep {
  color: var(--line);
}

.mpc-grants-screen .gt-record-deadline.danger {
  color: var(--danger);
  font-weight: 700;
}

.mpc-grants-screen .gt-record-deadline.warning {
  color: var(--warning);
  font-weight: 700;
}

.mpc-grants-screen .gt-record-deadline.missing {
  color: var(--text-faint);
  font-style: italic;
}

.mpc-grants-screen .gt-record-actions {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  flex-shrink: 0;
}

.mpc-grants-screen .gt-record-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 33px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--text-faint));
  border-radius: 999px;
  background: color-mix(in srgb, var(--hover) 64%, var(--surface));
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.mpc-grants-screen .gt-record-stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--stage-dot, var(--text-faint));
  flex: 0 0 auto;
}

.mpc-grants-screen .gt-record-stage-action {
  position: relative;
}

.mpc-grants-screen .gt-record-btn,
.mpc-grants-screen .gt-record-mini,
.mpc-grants-screen .gt-record-link {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mpc-grants-screen .gt-record-btn {
  min-height: 33px;
  padding: 0 14px;
}

.mpc-grants-screen .gt-record-btn:hover,
.mpc-grants-screen .gt-record-btn:focus-visible,
.mpc-grants-screen .gt-record-link:hover,
.mpc-grants-screen .gt-record-link:focus-visible {
  border-color: color-mix(in srgb, var(--grants) 30%, var(--line));
  color: var(--grants);
}

.mpc-grants-screen .gt-record-stage-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: min(320px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--navy-dark) 16%, transparent);
}

.mpc-grants-screen .gt-record-stage-menu-group + .gt-record-stage-menu-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}

.mpc-grants-screen .gt-record-stage-menu-label {
  padding: 4px 8px 6px;
  color: var(--text-faint);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-record-stage-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.mpc-grants-screen .gt-record-stage-option:hover,
.mpc-grants-screen .gt-record-stage-option:focus-visible,
.mpc-grants-screen .gt-record-stage-option.is-active {
  background: color-mix(in srgb, var(--grants-tint) 54%, var(--surface));
  color: var(--grants);
}

.mpc-grants-screen .gt-record-award-capture {
  display: grid;
  gap: 8px;
  margin-top: 9px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--grants) 24%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--grants-tint) 42%, var(--surface));
}

.mpc-grants-screen .gt-record-award-capture-title {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.mpc-grants-screen .gt-record-award-capture-copy {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.mpc-grants-screen .gt-record-award-capture label {
  color: var(--text-faint);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-record-award-capture input {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.mpc-grants-screen .gt-record-award-capture input:focus {
  border-color: color-mix(in srgb, var(--grants) 38%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--grants) 10%, transparent);
}

.mpc-grants-screen .gt-record-award-error {
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.mpc-grants-screen .gt-record-award-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.mpc-grants-screen .gt-record-facetnav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 20px 0 0;
  padding: 4px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--hairline) 76%, var(--hover));
}

.mpc-grants-screen .gt-record-facettab {
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.mpc-grants-screen .gt-record-facettab.is-active {
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--navy-dark) 10%, transparent);
}

.mpc-grants-screen .gt-record-facettab span {
  margin-left: 5px;
  color: var(--text-faint);
  font-size: 12px;
}

.mpc-grants-screen .gt-record-facettab.is-active span {
  color: var(--grants);
}

.mpc-grants-screen .gt-record-body {
  padding-top: 22px;
}

.mpc-grants-screen .gt-record-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}

.mpc-grants-screen .gt-record-overview-main,
.mpc-grants-screen .gt-record-overview-rail {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.mpc-grants-screen .gt-record-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 20px 22px;
}

.mpc-grants-screen .gt-record-award-summary {
  border-color: color-mix(in srgb, var(--success) 22%, var(--line));
  background: color-mix(in srgb, var(--success-tint) 34%, var(--surface));
}

.mpc-grants-screen .gt-record-award-kv {
  background: color-mix(in srgb, var(--success) 12%, var(--hairline));
}

.mpc-grants-screen .gt-record-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mpc-grants-screen .gt-record-card h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0;
}

.mpc-grants-screen .gt-record-card p {
  margin: 3px 0 0;
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-record-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--grants);
}

.mpc-grants-screen .gt-record-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--hairline);
}

.mpc-grants-screen .gt-record-kv-cell {
  min-width: 0;
  background: var(--surface);
  padding: 13px 15px;
}

.mpc-grants-screen .gt-record-k {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-record-v {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.mpc-grants-screen .gt-record-v > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mpc-grants-screen .gt-record-v.danger {
  color: var(--danger);
}

.mpc-grants-screen .gt-record-v.warning {
  color: var(--warning);
}

.mpc-grants-screen .gt-record-missing {
  color: var(--text-faint);
  font-style: italic;
  font-weight: 500;
}

.mpc-grants-screen .gt-record-edit {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--grants);
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  cursor: pointer;
}

.mpc-grants-screen .gt-record-kv-cell:hover .gt-record-edit,
.mpc-grants-screen .gt-record-edit:focus-visible {
  opacity: 1;
}

.mpc-grants-screen .gt-record-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
}

.mpc-grants-screen .gt-record-inline-form input,
.mpc-grants-screen .gt-record-inline-form select {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.mpc-grants-screen .gt-record-inline-form input:focus,
.mpc-grants-screen .gt-record-inline-form select:focus {
  border-color: color-mix(in srgb, var(--grants) 38%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--grants) 10%, transparent);
}

.mpc-grants-screen .gt-record-inline-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mpc-grants-screen .gt-record-mini {
  min-height: 34px;
  padding: 0 10px;
}

.mpc-grants-screen .gt-record-mini.primary {
  border-color: var(--grants);
  background: var(--grants);
  color: var(--surface);
}

.mpc-grants-screen .gt-record-btn.primary {
  border-color: var(--grants);
  background: var(--grants);
  color: var(--surface);
}

.mpc-grants-screen .gt-record-recommendation-card {
  padding-top: 19px;
}

.mpc-grants-screen .gt-record-trust-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.mpc-grants-screen .gt-record-fit-score {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid color-mix(in srgb, var(--success) 22%, var(--line));
  border-radius: 8px;
  background: var(--success-tint);
}

.mpc-grants-screen .gt-record-fit-score.possible,
.mpc-grants-screen .gt-record-fit-score.good {
  border-color: color-mix(in srgb, var(--warning) 22%, var(--line));
  background: var(--warning-tint);
}

.mpc-grants-screen .gt-record-fit-score-number {
  color: var(--success);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.mpc-grants-screen .gt-record-fit-score.possible .gt-record-fit-score-number,
.mpc-grants-screen .gt-record-fit-score.good .gt-record-fit-score-number {
  color: var(--warning);
}

.mpc-grants-screen .gt-record-fit-score-label {
  color: color-mix(in srgb, var(--success) 78%, var(--text));
  font-size: 12px;
  font-weight: 700;
  line-height: 1.18;
}

.mpc-grants-screen .gt-record-fit-score.possible .gt-record-fit-score-label,
.mpc-grants-screen .gt-record-fit-score.good .gt-record-fit-score-label {
  color: color-mix(in srgb, var(--warning) 78%, var(--text));
}

.mpc-grants-screen .gt-record-verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
}

.mpc-grants-screen .gt-record-verify-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--success);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mpc-grants-screen .gt-record-fit-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.mpc-grants-screen .gt-record-fit-columns.single {
  grid-template-columns: minmax(0, 1fr);
}

.mpc-grants-screen .gt-record-reason-head {
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-record-reason-head.good {
  color: var(--success);
}

.mpc-grants-screen .gt-record-reason-head.warn {
  color: var(--warning);
}

.mpc-grants-screen .gt-record-reason-item {
  display: flex;
  gap: 9px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-record-reason-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--success);
}

.mpc-grants-screen .gt-record-reason-item.warn .gt-record-reason-dot {
  background: var(--warning);
}

.mpc-grants-screen .gt-record-rail-card h2 {
  margin-bottom: 10px;
}

.mpc-grants-screen .gt-record-rail-sub {
  margin: 0 0 8px;
}

.mpc-grants-screen .gt-record-progress {
  height: 7px;
  margin: 10px 0 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--hairline);
}

.mpc-grants-screen .gt-record-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grants);
}

.mpc-grants-screen .gt-record-readiness-list {
  margin-top: 4px;
}

.mpc-grants-screen .gt-record-readiness-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.35;
}

.mpc-grants-screen .gt-record-readiness-row:last-child {
  border-bottom: 0;
}

.mpc-grants-screen .gt-record-readiness-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.mpc-grants-screen .gt-record-readiness-icon.done {
  background: var(--success);
  color: var(--surface);
}

.mpc-grants-screen .gt-record-readiness-icon.progress {
  border: 1px solid color-mix(in srgb, var(--warning) 32%, var(--line));
  background: var(--warning-tint);
  color: var(--warning);
}

.mpc-grants-screen .gt-record-readiness-icon.todo {
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--text-faint));
  background: var(--surface);
}

.mpc-grants-screen .gt-record-readiness-row span {
  min-width: 0;
  font-weight: 600;
}

.mpc-grants-screen .gt-record-readiness-row small {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.mpc-grants-screen .gt-record-ops-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
}

.mpc-grants-screen .gt-record-ops-row:last-child {
  border-bottom: 0;
}

.mpc-grants-screen .gt-record-ops-k {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-record-ops-v {
  margin-top: 3px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.mpc-grants-screen .gt-record-ops-v.danger {
  color: var(--danger);
}

.mpc-grants-screen .gt-record-ops-v.warning {
  color: var(--warning);
}

.mpc-grants-screen .gt-record-ops-s {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.4;
}

.mpc-grants-screen .gt-record-rail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.mpc-grants-screen .gt-record-rail-actions .gt-record-btn {
  width: 100%;
  min-height: 38px;
  text-align: center;
}

.mpc-grants-screen .gt-record-facet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.mpc-grants-screen .gt-record-facet-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.mpc-grants-screen .gt-record-facet-head h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0;
}

.mpc-grants-screen .gt-record-facet-head p,
.mpc-grants-screen .gt-record-footnote {
  max-width: 660px;
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.mpc-grants-screen .gt-record-footnote {
  margin-top: 14px;
}

.mpc-grants-screen .gt-record-footnote strong {
  color: var(--text);
}

.mpc-grants-screen .gt-record-facet-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--s2);
}

.mpc-grants-screen .gt-record-application-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--grants) 18%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--grants-tint) 36%, var(--surface));
}

.mpc-grants-screen .gt-record-application-progress strong {
  color: var(--text-strong);
  font-size: 13.5px;
  font-weight: 800;
}

.mpc-grants-screen .gt-record-application-progress span {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 650;
}

.mpc-grants-screen .gt-record-load-error {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--danger) 24%, var(--line));
  border-radius: 9px;
  background: var(--danger-tint);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-record-load-error strong {
  color: var(--text-strong);
  font-weight: 800;
}

.mpc-grants-screen .gt-record-load-error span {
  color: var(--text-muted);
}

.mpc-grants-screen .gt-record-empty.compact {
  padding: var(--s3);
  font-size: 12.5px;
}

.mpc-grants-screen .gt-deliv-list {
  display: grid;
  gap: var(--s4);
}

.mpc-grants-screen .gt-deliv-card {
  display: grid;
  gap: var(--s3);
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.mpc-grants-screen .gt-deliv-card-top,
.mpc-grants-screen .gt-deliv-progress-head,
.mpc-grants-screen .gt-deliv-foot,
.mpc-grants-screen .gt-deliv-editor-actions,
.mpc-grants-screen .gt-deliv-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.mpc-grants-screen .gt-deliv-card-top {
  align-items: flex-start;
}

.mpc-grants-screen .gt-deliv-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.mpc-grants-screen .gt-deliv-meta,
.mpc-grants-screen .gt-deliv-foot,
.mpc-grants-screen .gt-deliv-note {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-deliv-card-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: var(--s2);
}

.mpc-grants-screen .gt-deliv-progress-head {
  align-items: flex-start;
}

.mpc-grants-screen .gt-deliv-progress-head strong {
  color: var(--text);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.mpc-grants-screen .gt-deliv-access-note {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.mpc-grants-screen .gt-deliv-chip-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.mpc-grants-screen .gt-deliv-source-chip,
.mpc-grants-screen .gt-deliv-module-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
}

.mpc-grants-screen a.gt-deliv-source-chip {
  text-decoration: none;
}

.mpc-grants-screen .gt-deliv-source-chip.is-link {
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.mpc-grants-screen .gt-deliv-source-chip.is-link:hover,
.mpc-grants-screen .gt-deliv-source-chip.is-link:focus-visible {
  box-shadow: 0 3px 8px rgba(17, 30, 58, 0.12);
  transform: translateY(-1px);
}

.mpc-grants-screen .gt-deliv-source-chip.programs,
.mpc-grants-screen .gt-deliv-module-tag.programs {
  background: var(--programs-tint);
  color: var(--programs);
}

.mpc-grants-screen .gt-deliv-source-chip.finances,
.mpc-grants-screen .gt-deliv-module-tag.finances {
  background: var(--finances-tint);
  color: var(--finances);
}

.mpc-grants-screen .gt-deliv-source-chip.volunteers,
.mpc-grants-screen .gt-deliv-module-tag.volunteers {
  background: var(--volunteers-tint);
  color: var(--volunteers);
}

.mpc-grants-screen .gt-deliv-source-chip.manual,
.mpc-grants-screen .gt-deliv-module-tag.manual,
.mpc-grants-screen .gt-deliv-source-chip.muted {
  background: var(--hairline);
  color: var(--text-faint);
}

.mpc-grants-screen .gt-deliv-track {
  position: relative;
  height: 9px;
  border-radius: var(--r-pill);
  background: var(--hairline);
}

.mpc-grants-screen .gt-deliv-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--text-faint);
}

.mpc-grants-screen .gt-deliv-fill.on {
  background: var(--success);
}

.mpc-grants-screen .gt-deliv-fill.under {
  background: var(--warning);
}

.mpc-grants-screen .gt-deliv-fill.behind {
  background: var(--danger);
}

.mpc-grants-screen .gt-deliv-pace {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  border-radius: var(--r-pill);
  background: var(--text-strong);
}

.mpc-grants-screen .gt-deliv-pace-text {
  font-weight: 800;
}

.mpc-grants-screen .gt-deliv-pace-text.on {
  color: var(--success);
}

.mpc-grants-screen .gt-deliv-pace-text.under {
  color: var(--warning);
}

.mpc-grants-screen .gt-deliv-pace-text.behind {
  color: var(--danger);
}

.mpc-grants-screen .gt-deliv-note.panel {
  margin-bottom: var(--s3);
  padding: var(--s3);
  border: 1px solid color-mix(in srgb, var(--warning) 22%, var(--line));
  border-radius: var(--r-sm);
  background: var(--warning-tint);
  color: color-mix(in srgb, var(--warning) 72%, var(--text));
  font-weight: 700;
}

.mpc-grants-screen .gt-deliv-editor-card {
  margin-bottom: var(--s4);
  max-width: 760px;
}

.mpc-grants-screen .gt-deliv-editor {
  display: grid;
  gap: var(--s4);
}

.mpc-grants-screen .gt-deliv-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(96px, .55fr) minmax(110px, .65fr) minmax(140px, .75fr);
  gap: var(--s3);
}

.mpc-grants-screen .gt-deliv-editor-grid label,
.mpc-grants-screen .gt-deliv-manual-value {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.mpc-grants-screen .gt-deliv-editor-grid label > span,
.mpc-grants-screen .gt-deliv-manual-value span,
.mpc-grants-screen .gt-deliv-src-label {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-deliv-editor-grid input,
.mpc-grants-screen .gt-deliv-manual-value input,
.mpc-grants-screen .gt-deliv-browse-head input {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.mpc-grants-screen .gt-deliv-editor-grid input:focus,
.mpc-grants-screen .gt-deliv-manual-value input:focus,
.mpc-grants-screen .gt-deliv-browse-head input:focus {
  border-color: color-mix(in srgb, var(--grants) 38%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--grants) 10%, transparent);
}

.mpc-grants-screen .gt-deliv-picker {
  display: grid;
  gap: var(--s3);
}

.mpc-grants-screen .gt-deliv-helper {
  margin: -6px 0 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-deliv-error,
.mpc-grants-screen .gt-deliv-combine-line {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.4;
}

.mpc-grants-screen .gt-deliv-error {
  border: 1px solid color-mix(in srgb, var(--danger) 26%, var(--line));
  background: var(--danger-tint);
  color: var(--danger);
}

.mpc-grants-screen .gt-deliv-combine-line {
  border: 1px solid color-mix(in srgb, var(--grants) 22%, var(--line));
  background: color-mix(in srgb, var(--grants-tint) 42%, var(--surface));
  color: var(--text);
}

.mpc-grants-screen .gt-deliv-combine-line.muted {
  border-color: var(--line);
  background: var(--hover);
  color: var(--text-muted);
}

.mpc-grants-screen .gt-deliv-source-list,
.mpc-grants-screen .gt-deliv-browse-list {
  display: grid;
  gap: var(--s2);
}

.mpc-grants-screen .gt-deliv-source-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--s3);
  align-items: center;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
}

.mpc-grants-screen .gt-deliv-source-option:hover,
.mpc-grants-screen .gt-deliv-source-option:focus-within,
.mpc-grants-screen .gt-deliv-source-option.is-selected {
  border-color: color-mix(in srgb, var(--programs) 30%, var(--line));
  background: color-mix(in srgb, var(--info-tint) 50%, var(--surface));
}

.mpc-grants-screen .gt-deliv-source-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mpc-grants-screen .gt-deliv-source-check {
  width: 18px;
  height: 18px;
  border: 2px solid color-mix(in srgb, var(--line) 70%, var(--text-faint));
  border-radius: 5px;
  background: var(--surface);
}

.mpc-grants-screen .gt-deliv-source-option.is-selected .gt-deliv-source-check {
  border-color: var(--programs);
  background: var(--programs);
  box-shadow: inset 0 0 0 3px var(--surface);
}

.mpc-grants-screen .gt-deliv-browse .gt-deliv-source-option {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.mpc-grants-screen .gt-deliv-browse .gt-deliv-module-tag {
  grid-column: 2;
  justify-self: start;
}

.mpc-grants-screen .gt-deliv-source-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mpc-grants-screen .gt-deliv-source-title {
  min-width: 0;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mpc-grants-screen .gt-deliv-source-detail,
.mpc-grants-screen .gt-deliv-browse-empty {
  color: var(--text-faint);
  font-size: 11.5px;
  line-height: 1.4;
}

.mpc-grants-screen .gt-deliv-manual-option {
  display: grid;
  gap: var(--s2);
}

.mpc-grants-screen .gt-deliv-manual-value {
  max-width: 180px;
  margin-left: 42px;
}

.mpc-grants-screen .gt-deliv-browse {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  max-height: 360px;
  overflow: auto;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--hover);
}

.mpc-grants-screen .gt-deliv-browse-module {
  display: grid;
  gap: var(--s2);
  min-width: 0;
  align-content: start;
}

.mpc-grants-screen .gt-deliv-browse-head {
  display: grid;
  gap: var(--s2);
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: var(--s2);
  background: var(--hover);
}

.mpc-grants-screen .gt-deliv-browse-head strong {
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.3;
}

.mpc-grants-screen .gt-deliv-nudge {
  display: flex;
  align-items: center;
  gap: var(--s3);
  justify-content: space-between;
  padding: var(--s3);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line));
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--warning-tint) 48%, var(--surface));
  color: color-mix(in srgb, var(--warning) 62%, var(--text));
  font-size: 12.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-deliv-nudge strong {
  color: color-mix(in srgb, var(--warning) 74%, var(--text-strong));
}

.mpc-grants-screen .gt-deliv-nudge .gt-record-btn {
  flex: 0 0 auto;
}

.mpc-grants-screen .gt-report-list {
  display: grid;
  gap: var(--s3);
}

.mpc-grants-screen .gt-report-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s4);
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.mpc-grants-screen .gt-report-card-open {
  margin: -8px 0 -8px -8px;
  padding: 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
}

.mpc-grants-screen .gt-report-card-open:hover,
.mpc-grants-screen .gt-report-card-open:focus-visible {
  background: color-mix(in srgb, var(--grants-tint) 32%, transparent);
  outline: none;
}

.mpc-grants-screen .gt-report-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.mpc-grants-screen .gt-report-title-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-width: 0;
}

.mpc-grants-screen .gt-report-card h3 {
  min-width: 0;
  margin: 0;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.mpc-grants-screen .gt-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-report-meta span {
  min-width: 0;
}

.mpc-grants-screen .gt-report-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.mpc-grants-screen .gt-report-status.submitted {
  border-color: color-mix(in srgb, var(--success) 24%, var(--line));
  background: var(--success-tint);
  color: var(--success);
}

.mpc-grants-screen .gt-report-status.overdue {
  border-color: color-mix(in srgb, var(--danger) 24%, var(--line));
  background: var(--danger-tint);
  color: var(--danger);
}

.mpc-grants-screen .gt-report-status.soon {
  border-color: color-mix(in srgb, var(--warning) 28%, var(--line));
  background: var(--warning-tint);
  color: color-mix(in srgb, var(--warning) 74%, var(--text));
}

.mpc-grants-screen .gt-report-status.upcoming {
  border-color: var(--line);
  background: var(--hairline);
  color: var(--text-faint);
}

.mpc-grants-screen .gt-report-actions,
.mpc-grants-screen .gt-report-editor-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s2);
}

.mpc-grants-screen .gt-report-editor-card {
  margin-bottom: var(--s4);
  border-style: dashed;
  border-color: color-mix(in srgb, var(--grants) 28%, var(--line));
  background: color-mix(in srgb, var(--grants-tint) 22%, var(--surface));
}

.mpc-grants-screen .gt-report-editor {
  display: grid;
  gap: var(--s4);
}

.mpc-grants-screen .gt-report-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(130px, .7fr) minmax(150px, .65fr);
  gap: var(--s3);
}

.mpc-grants-screen .gt-report-editor-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.mpc-grants-screen .gt-report-editor-grid label > span {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-report-editor-grid input {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.mpc-grants-screen .gt-report-editor-grid input:focus {
  border-color: color-mix(in srgb, var(--grants) 38%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--grants) 10%, transparent);
}

.mpc-grants-screen .gt-report-error {
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--danger) 26%, var(--line));
  border-radius: var(--r-sm);
  background: var(--danger-tint);
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.4;
}

.mpc-grants-screen .gt-report-draft {
  display: grid;
  gap: var(--s4);
}

.mpc-grants-screen .gt-report-draft-header {
  display: grid;
  gap: var(--s3);
}

.mpc-grants-screen .gt-report-draft-back {
  justify-self: start;
  min-height: 30px;
  padding: 0 10px;
}

.mpc-grants-screen .gt-report-draft-header-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s4);
  min-width: 0;
}

.mpc-grants-screen .gt-report-draft-eyebrow {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-report-draft-header h2 {
  margin: 5px 0 0;
  color: var(--text-strong);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.15;
}

.mpc-grants-screen .gt-report-draft-meta,
.mpc-grants-screen .gt-report-draft-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
}

.mpc-grants-screen .gt-report-draft-meta {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.mpc-grants-screen .gt-report-draft-saved {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--success-tint) 64%, var(--surface));
  color: var(--success);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.mpc-grants-screen .gt-report-draft-saved.saving {
  background: var(--hairline);
  color: var(--text-faint);
}

.mpc-grants-screen .gt-report-draft-saved.error {
  background: var(--danger-tint);
  color: var(--danger);
}

.mpc-grants-screen .gt-report-draft-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(190px, 240px);
  align-items: start;
  gap: var(--s4);
}

.mpc-grants-screen .gt-report-draft-rail {
  display: grid;
  gap: var(--s3);
  position: sticky;
  top: 16px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.mpc-grants-screen .gt-report-draft-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.mpc-grants-screen .gt-report-draft-rail-head span {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-report-draft-need-list {
  display: grid;
  gap: 8px;
}

.mpc-grants-screen .gt-report-draft-need {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.mpc-grants-screen button.gt-report-draft-need {
  cursor: pointer;
}

.mpc-grants-screen button.gt-report-draft-need:hover,
.mpc-grants-screen button.gt-report-draft-need:focus-visible {
  border-color: var(--hairline);
  background: color-mix(in srgb, var(--hover) 72%, var(--surface));
  outline: none;
}

.mpc-grants-screen .gt-report-draft-need-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--text-faint);
}

.mpc-grants-screen .gt-report-draft-need.complete .gt-report-draft-need-dot {
  background: var(--success);
}

.mpc-grants-screen .gt-report-draft-need.deadline .gt-report-draft-need-dot {
  background: var(--gold);
}

.mpc-grants-screen .gt-report-draft-need strong,
.mpc-grants-screen .gt-report-draft-need small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mpc-grants-screen .gt-report-draft-need strong {
  color: var(--text-strong);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
}

.mpc-grants-screen .gt-report-draft-need small {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 11.5px;
  line-height: 1.35;
}

.mpc-grants-screen .gt-report-live-figure-refresh {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--grants);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.mpc-grants-screen .gt-report-live-figure-refresh:hover,
.mpc-grants-screen .gt-report-live-figure-refresh:focus-visible {
  border-color: color-mix(in srgb, var(--grants) 34%, var(--line));
  background: color-mix(in srgb, var(--grants) 7%, var(--surface));
  outline: none;
}

.mpc-grants-screen .gt-report-live-figure-refresh:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.mpc-grants-screen .gt-report-live-figure-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.mpc-grants-screen .gt-report-live-figure-title {
  color: var(--text-strong);
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.3;
}

.mpc-grants-screen .gt-report-live-figure-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--hover) 44%, var(--surface));
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.mpc-grants-screen .gt-report-live-figure-row:hover,
.mpc-grants-screen .gt-report-live-figure-row:focus-visible {
  border-color: color-mix(in srgb, var(--grants) 32%, var(--line));
  background: color-mix(in srgb, var(--grants) 7%, var(--surface));
  outline: none;
}

.mpc-grants-screen .gt-report-live-figure-row:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.mpc-grants-screen .gt-report-live-figure-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.mpc-grants-screen .gt-report-live-figure-dot.programs {
  background: #2B6CB0;
}

.mpc-grants-screen .gt-report-live-figure-dot.finances {
  background: #2D9B6F;
}

.mpc-grants-screen .gt-report-live-figure-dot.volunteers {
  background: #C97A1B;
}

.mpc-grants-screen .gt-report-live-figure-dot.manual {
  background: #1B2F5A;
}

.mpc-grants-screen .gt-report-live-figure-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mpc-grants-screen .gt-report-live-figure-main strong,
.mpc-grants-screen .gt-report-live-figure-main small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mpc-grants-screen .gt-report-live-figure-main strong {
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.mpc-grants-screen .gt-report-live-figure-main small,
.mpc-grants-screen .gt-report-live-figure-empty {
  color: var(--text-faint);
  font-size: 11.5px;
  line-height: 1.35;
}

.mpc-grants-screen .gt-report-live-figure-plus {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--grants);
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
}

.mpc-grants-screen .gt-report-live-figure-plus.disabled {
  border-color: transparent;
  background: transparent;
}

.mpc-grants-screen .gt-report-draft-document {
  min-width: 0;
}

.mpc-grants-screen .gt-report-draft-page {
  display: grid;
  gap: 20px;
  width: min(100%, 780px);
  min-height: 840px;
  margin: 0 auto;
  padding: 34px 38px 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(31, 42, 68, .08);
}

.mpc-grants-screen .gt-report-draft-section {
  display: grid;
  gap: 12px;
  min-width: 0;
  scroll-margin-top: 18px;
}

.mpc-grants-screen .gt-report-draft-section + .gt-report-draft-section {
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.mpc-grants-screen .gt-report-draft-section-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  min-width: 0;
}

.mpc-grants-screen .gt-report-draft-section-main {
  display: grid;
  flex: 1 1 auto;
  gap: 5px;
  min-width: 0;
}

.mpc-grants-screen .gt-report-draft-heading {
  margin: 0;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.28;
  overflow-wrap: anywhere;
  outline: none;
}

.mpc-grants-screen .gt-report-draft-heading:hover {
  border-color: var(--hairline);
  background: color-mix(in srgb, var(--hover) 64%, var(--surface));
}

.mpc-grants-screen .gt-report-draft-heading:focus {
  border-color: color-mix(in srgb, var(--grants) 42%, var(--line));
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--grants) 10%, transparent);
}

.mpc-grants-screen .gt-report-draft-section.readonly .gt-report-draft-heading,
.mpc-grants-screen .gt-report-draft-section.readonly .gt-report-draft-heading:hover,
.mpc-grants-screen .gt-report-draft-section.readonly .gt-report-draft-heading:focus {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  cursor: default;
}

.mpc-grants-screen .gt-report-draft-answer {
  min-height: 124px;
  padding: 14px 15px 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.62;
  outline: none;
  overflow-wrap: anywhere;
}

.mpc-grants-screen .gt-report-draft-answer-shell.readonly {
  background: color-mix(in srgb, var(--hover) 36%, var(--surface));
}

.mpc-grants-screen .gt-report-draft-answer[aria-readonly="true"] {
  cursor: default;
  user-select: text;
}

.mpc-grants-screen .gt-report-draft-answer:empty::before {
  color: var(--text-faint);
  content: attr(data-placeholder);
  font-style: italic;
}

.mpc-grants-screen .gt-report-draft-answer p {
  margin: 0 0 10px;
}

.mpc-grants-screen .gt-report-draft-answer p:last-child,
.mpc-grants-screen .gt-report-draft-answer ul:last-child,
.mpc-grants-screen .gt-report-draft-answer ol:last-child {
  margin-bottom: 0;
}

.mpc-grants-screen .gt-report-draft-answer ul,
.mpc-grants-screen .gt-report-draft-answer ol {
  margin: 0 0 10px;
  padding-left: 22px;
}

.mpc-grants-screen .gt-report-live-figure-chip {
  display: inline;
  padding: 2px 6px 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--hover) 52%, var(--surface));
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: var(--text-strong);
  cursor: default;
  font-size: .94em;
  font-weight: 760;
  white-space: normal;
}

.mpc-grants-screen .gt-report-live-figure-chip.programs {
  border-color: color-mix(in srgb, #2B6CB0 36%, var(--line));
  background: color-mix(in srgb, #2B6CB0 8%, var(--surface));
}

.mpc-grants-screen .gt-report-live-figure-chip.finances {
  border-color: color-mix(in srgb, #2D9B6F 36%, var(--line));
  background: color-mix(in srgb, #2D9B6F 8%, var(--surface));
}

.mpc-grants-screen .gt-report-live-figure-chip.volunteers {
  border-color: color-mix(in srgb, #C97A1B 36%, var(--line));
  background: color-mix(in srgb, #C97A1B 9%, var(--surface));
}

.mpc-grants-screen .gt-report-live-figure-chip.manual {
  border-color: color-mix(in srgb, #1B2F5A 32%, var(--line));
  background: color-mix(in srgb, #1B2F5A 7%, var(--surface));
}

.mpc-grants-screen .gt-report-draft-assist-copy {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-report-draft-assist.readonly {
  opacity: .74;
}

.mpc-grants-screen .gt-report-draft-assist.readonly .gt-report-live-figure-panel,
.mpc-grants-screen .gt-report-draft-assist.readonly .gt-report-draft-assist-copy {
  filter: grayscale(.18);
}

.mpc-grants-screen .gt-report-draft-assist-box {
  width: 100%;
  min-height: 118px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--hover) 42%, var(--surface));
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  outline: none;
  resize: vertical;
}

.mpc-grants-screen .gt-report-draft-assist-box:focus {
  border-color: color-mix(in srgb, var(--grants) 42%, var(--line));
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--grants) 9%, transparent);
}

.mpc-grants-screen .gt-report-draft-assist-box:disabled {
  cursor: not-allowed;
  background: color-mix(in srgb, var(--hover) 74%, var(--surface));
  color: var(--text-faint);
}

.mpc-grants-screen .gt-report-command {
  display: grid;
  gap: var(--s4);
}

.mpc-grants-screen .gt-report-command-head,
.mpc-grants-screen .gt-report-command-score-head {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.mpc-grants-screen .gt-report-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s5);
  padding: 19px 21px;
  border-radius: var(--r);
}

.mpc-grants-screen .gt-report-command-kicker,
.mpc-grants-screen .gt-report-command-lens-head {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-report-command-head h2,
.mpc-grants-screen .gt-report-command-score-head h2 {
  margin: 4px 0 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
}

.mpc-grants-screen .gt-report-command-head p,
.mpc-grants-screen .gt-report-command-score-head p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-report-command-alert {
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--warning) 28%, var(--line));
  border-radius: var(--r-sm);
  background: var(--warning-tint);
  color: color-mix(in srgb, var(--warning) 72%, var(--text));
  font-size: 12.5px;
  font-weight: 800;
}

.mpc-grants-screen .gt-report-command-portfolio {
  display: grid;
  gap: var(--s3);
}

.mpc-grants-screen .gt-report-command-pgrant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}

.mpc-grants-screen .gt-report-command-pgrant:hover,
.mpc-grants-screen .gt-report-command-pgrant:focus-visible,
.mpc-grants-screen .gt-report-command-pgrant.is-selected {
  border-color: color-mix(in srgb, var(--gold) 44%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 10%, transparent);
}

.mpc-grants-screen .gt-report-command-pgrant-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mpc-grants-screen .gt-report-command-pgrant-name {
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.mpc-grants-screen .gt-report-command-pgrant-funder,
.mpc-grants-screen .gt-report-command-pgrant-summary {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.mpc-grants-screen .gt-report-command-pgrant-summary {
  color: var(--text);
}

.mpc-grants-screen .gt-report-command-health {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 3px 11px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.mpc-grants-screen .gt-report-command-health::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: currentColor;
}

.mpc-grants-screen .gt-report-command-health.ok {
  border-color: color-mix(in srgb, var(--success) 24%, var(--line));
  background: var(--success-tint);
  color: var(--success);
}

.mpc-grants-screen .gt-report-command-health.risk {
  border-color: color-mix(in srgb, var(--warning) 30%, var(--line));
  background: var(--warning-tint);
  color: color-mix(in srgb, var(--warning) 76%, var(--text));
}

.mpc-grants-screen .gt-report-command-health.behind {
  border-color: color-mix(in srgb, var(--danger) 24%, var(--line));
  background: var(--danger-tint);
  color: var(--danger);
}

.mpc-grants-screen .gt-report-command-health.setup {
  border-color: var(--line);
  background: var(--hairline);
  color: var(--text-faint);
}

.mpc-grants-screen .gt-report-command-scorecard {
  display: grid;
}

.mpc-grants-screen .gt-report-command-score-head {
  padding: 18px 20px 16px;
  border-radius: var(--r) var(--r) 0 0;
  border-bottom: 0;
}

.mpc-grants-screen .gt-report-command-score-title-row,
.mpc-grants-screen .gt-report-command-period-label,
.mpc-grants-screen .gt-report-command-del-top,
.mpc-grants-screen .gt-report-command-del-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
}

.mpc-grants-screen .gt-report-command-period {
  display: grid;
  gap: 6px;
  margin-top: var(--s4);
}

.mpc-grants-screen .gt-report-command-period-label {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.mpc-grants-screen .gt-report-command-period-label strong {
  color: var(--text);
  font-weight: 800;
}

.mpc-grants-screen .gt-report-command-period-track,
.mpc-grants-screen .gt-report-command-track {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--hairline);
}

.mpc-grants-screen .gt-report-command-period-track {
  height: 8px;
}

.mpc-grants-screen .gt-report-command-period-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--navy);
}

.mpc-grants-screen .gt-report-command-lenses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 0 0 var(--r) var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.mpc-grants-screen .gt-report-command-lens {
  display: grid;
  align-content: start;
  gap: var(--s4);
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--hairline);
}

.mpc-grants-screen .gt-report-command-lens:last-child {
  border-right: 0;
}

.mpc-grants-screen .gt-report-command-del,
.mpc-grants-screen .gt-report-command-money {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.mpc-grants-screen .gt-report-command-del-name,
.mpc-grants-screen .gt-report-command-date-name {
  min-width: 0;
  color: var(--text-strong);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.mpc-grants-screen .gt-report-command-del-value,
.mpc-grants-screen .gt-report-command-money-row {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.mpc-grants-screen .gt-report-command-money-row strong {
  color: var(--text-strong);
}

.mpc-grants-screen .gt-report-command-track {
  height: 9px;
  overflow: visible;
}

.mpc-grants-screen .gt-report-command-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--text-faint);
}

.mpc-grants-screen .gt-report-command-fill.on {
  background: var(--success);
}

.mpc-grants-screen .gt-report-command-fill.under {
  background: var(--warning);
}

.mpc-grants-screen .gt-report-command-fill.behind {
  background: var(--danger);
}

.mpc-grants-screen .gt-report-command-fill.neutral {
  background: var(--text-faint);
}

.mpc-grants-screen .gt-report-command-pace {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  border-radius: var(--r-pill);
  background: var(--text-strong);
}

.mpc-grants-screen .gt-report-command-pace-text {
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.35;
}

.mpc-grants-screen .gt-report-command-pace-text.on {
  color: var(--success);
}

.mpc-grants-screen .gt-report-command-pace-text.under {
  color: color-mix(in srgb, var(--warning) 78%, var(--text));
}

.mpc-grants-screen .gt-report-command-pace-text.behind {
  color: var(--danger);
}

.mpc-grants-screen .gt-report-command-source-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.mpc-grants-screen .gt-report-command-source {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.mpc-grants-screen .gt-report-command-source.programs {
  background: var(--programs-tint);
  color: var(--programs);
}

.mpc-grants-screen .gt-report-command-source.finances {
  background: var(--finances-tint);
  color: var(--finances);
}

.mpc-grants-screen .gt-report-command-source.volunteers {
  background: var(--volunteers-tint);
  color: var(--volunteers);
}

.mpc-grants-screen .gt-report-command-source.manual,
.mpc-grants-screen .gt-report-command-source.muted {
  background: var(--hairline);
  color: var(--text-faint);
}

.mpc-grants-screen .gt-report-command-note,
.mpc-grants-screen .gt-report-command-date-meta,
.mpc-grants-screen .gt-report-command-empty span {
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-report-command-date-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-width: 0;
}

.mpc-grants-screen .gt-report-command-date-row .gt-report-status {
  grid-column: 2;
  justify-self: start;
}

.mpc-grants-screen .gt-report-command-date-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: var(--r-pill);
  background: var(--text-faint);
}

.mpc-grants-screen .gt-report-command-date-dot.on {
  background: var(--success);
}

.mpc-grants-screen .gt-report-command-date-dot.under {
  background: var(--warning);
}

.mpc-grants-screen .gt-report-command-date-dot.behind {
  background: var(--danger);
}

.mpc-grants-screen .gt-report-command-date-main,
.mpc-grants-screen .gt-report-command-empty {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mpc-grants-screen .gt-report-command-empty {
  gap: var(--s2);
  padding: var(--s3);
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  background: var(--hover);
}

.mpc-grants-screen .gt-report-command-empty strong {
  color: var(--text-strong);
  font-size: 13px;
}

.mpc-grants-screen .gt-report-command-link {
  justify-self: start;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mpc-grants-screen .gt-report-command-link:hover,
.mpc-grants-screen .gt-report-command-link:focus-visible {
  border-color: color-mix(in srgb, var(--grants) 30%, var(--line));
  color: var(--grants);
}

.mpc-grants-screen .gt-record-application-list {
  display: grid;
  gap: 14px;
}

.mpc-grants-screen .gt-record-application-card {
  display: grid;
  gap: 13px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.mpc-grants-screen .gt-record-application-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.mpc-grants-screen .gt-record-application-question-block {
  min-width: 0;
}

.mpc-grants-screen .gt-record-application-question-number {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-record-application-card h3 {
  margin: 4px 0 0;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.mpc-grants-screen .gt-record-application-card-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mpc-grants-screen .gt-record-application-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mpc-grants-screen .gt-record-application-status,
.mpc-grants-screen .gt-record-application-word-count,
.mpc-grants-screen .gt-record-application-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--hover);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
}

.mpc-grants-screen .gt-record-application-status.not-started {
  color: var(--text-muted);
}

.mpc-grants-screen .gt-record-application-status.draft {
  border-color: color-mix(in srgb, var(--warning) 24%, var(--line));
  background: var(--warning-tint);
  color: var(--warning);
}

.mpc-grants-screen .gt-record-application-status.complete {
  border-color: color-mix(in srgb, var(--success) 24%, var(--line));
  background: var(--success-tint);
  color: var(--success);
}

.mpc-grants-screen .gt-record-application-word-count.danger {
  border-color: color-mix(in srgb, var(--danger) 24%, var(--line));
  background: var(--danger-tint);
  color: var(--danger);
}

.mpc-grants-screen .gt-record-application-required {
  border-color: color-mix(in srgb, var(--grants) 22%, var(--line));
  background: color-mix(in srgb, var(--grants-tint) 54%, var(--surface));
  color: var(--grants);
}

.mpc-grants-screen .gt-record-application-answer,
.mpc-grants-screen .gt-record-application-answer-empty {
  padding: 13px 14px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: color-mix(in srgb, var(--hover) 52%, var(--surface));
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.mpc-grants-screen .gt-record-application-answer-empty {
  color: var(--text-faint);
  font-style: italic;
}

.mpc-grants-screen .gt-record-application-form {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--hover) 70%, var(--surface));
}

.mpc-grants-screen .gt-record-application-form.inline {
  margin: 0;
  background: var(--surface);
}

.mpc-grants-screen .gt-record-application-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 160px) auto;
  align-items: end;
  gap: 12px;
}

.mpc-grants-screen .gt-record-application-form label {
  display: grid;
  gap: 6px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-record-application-form label.wide {
  grid-column: 1 / -1;
}

.mpc-grants-screen .gt-record-application-form textarea,
.mpc-grants-screen .gt-record-application-form input[type="number"] {
  width: 100%;
  min-height: 36px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  outline: none;
}

.mpc-grants-screen .gt-record-application-form textarea {
  resize: vertical;
}

.mpc-grants-screen .gt-record-application-form textarea:focus,
.mpc-grants-screen .gt-record-application-form input[type="number"]:focus {
  border-color: color-mix(in srgb, var(--grants) 38%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--grants) 10%, transparent);
}

.mpc-grants-screen .gt-record-application-check,
.mpc-grants-screen .gt-record-application-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.mpc-grants-screen .gt-record-application-check input,
.mpc-grants-screen .gt-record-application-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--grants);
}

.mpc-grants-screen .gt-record-application-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.mpc-grants-screen .gt-record-application-error {
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

#view-grants .gt-application-delete-modal {
  width: min(420px, calc(100vw - (var(--s4) * 2)));
  max-width: 420px !important;
}

#view-grants .gt-application-comment-delete-modal {
  width: min(420px, calc(100vw - (var(--s4) * 2)));
  max-width: 420px !important;
}

#view-grants .gt-grant-create-modal .gt-grant-create-primary.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: var(--surface);
}

#view-grants .gt-grant-create-modal .gt-grant-create-primary.danger:hover,
#view-grants .gt-grant-create-modal .gt-grant-create-primary.danger:focus-visible {
  background: color-mix(in srgb, var(--danger) 88%, var(--navy-dark));
}

.mpc-grants-screen .gt-record-application-card {
  gap: 14px;
  border-radius: var(--r-sm);
}

.mpc-grants-screen .gt-record-application-question-block {
  display: grid;
  flex: 1 1 auto;
  gap: 6px;
}

.mpc-grants-screen .gt-record-application-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mpc-grants-screen .gt-record-application-meta-sep {
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1;
}

.mpc-grants-screen .gt-record-application-status,
.mpc-grants-screen .gt-record-application-word-count,
.mpc-grants-screen .gt-record-application-required {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-record-application-status.not-started {
  color: var(--text-faint);
}

.mpc-grants-screen .gt-record-application-status.draft {
  color: var(--warning);
}

.mpc-grants-screen .gt-record-application-status.complete {
  color: var(--success);
}

.mpc-grants-screen .gt-record-application-required {
  color: var(--grants);
}

.mpc-grants-screen .gt-record-application-meta-sep[hidden],
.mpc-grants-screen .gt-record-application-required[hidden] {
  display: none !important;
}

.mpc-grants-screen .gt-record-application-question-input {
  width: 100%;
  min-height: 44px;
  margin-left: -7px;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-strong);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  outline: none;
  resize: none;
  overflow: hidden;
}

.mpc-grants-screen .gt-record-application-question-input:hover {
  border-color: var(--hairline);
  background: color-mix(in srgb, var(--hover) 72%, var(--surface));
}

.mpc-grants-screen .gt-record-application-question-input:focus {
  border-color: color-mix(in srgb, var(--grants) 42%, var(--line));
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--grants) 10%, transparent);
}

.mpc-grants-screen .gt-record-application-inline-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--s3);
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--hover) 48%, var(--surface));
}

.mpc-grants-screen .gt-record-application-limit-wrap {
  display: grid;
  gap: 6px;
}

.mpc-grants-screen .gt-record-application-answer-shell {
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--hover) 44%, var(--surface));
  overflow: hidden;
}

.mpc-grants-screen .gt-record-application-answer-shell:focus-within {
  border-color: color-mix(in srgb, var(--grants) 42%, var(--line));
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--grants) 9%, transparent);
}

.mpc-grants-screen .gt-record-application-answer-input {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.55;
  outline: none;
  resize: vertical;
}

.mpc-grants-screen .gt-record-application-answer-shell.empty .gt-record-application-answer-input {
  color: var(--text-muted);
}

.mpc-grants-screen .gt-record-application-answer-input::placeholder {
  color: var(--text-faint);
  font-style: italic;
}

.mpc-grants-screen .gt-record-application-answer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 33px;
  padding: 8px 14px;
  border-top: 1px solid var(--hairline);
}

.mpc-grants-screen .gt-record-application-save-status {
  min-width: 0;
  color: var(--text-faint);
  font-size: 11.5px;
  line-height: 1.2;
}

.mpc-grants-screen .gt-record-application-save-status.saving {
  color: var(--text-faint);
  font-style: italic;
}

.mpc-grants-screen .gt-record-application-save-status.saved {
  color: var(--success);
  font-weight: 800;
}

.mpc-grants-screen .gt-record-application-save-status.error {
  color: var(--danger);
  font-weight: 800;
}

.mpc-grants-screen .gt-record-application-word-count {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mpc-grants-screen .gt-record-application-word-count.warning {
  color: var(--warning);
}

.mpc-grants-screen .gt-record-application-word-count.danger {
  color: var(--danger);
  font-weight: 800;
}

.mpc-grants-screen .gt-record-application-card-actions .gt-record-doc-open.muted {
  color: var(--grants);
}

.mpc-grants-screen .gt-record-application-comments-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.mpc-grants-screen .gt-record-application-comments-button:hover,
.mpc-grants-screen .gt-record-application-comments-button:focus-visible,
.mpc-grants-screen .gt-record-application-comments-button.open {
  color: var(--grants);
  outline: none;
}

.mpc-grants-screen .gt-record-application-comments-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mpc-grants-screen .gt-record-application-comments-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--grants);
  color: var(--surface);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mpc-grants-screen .gt-record-question-comments {
  display: grid;
  gap: 12px;
  margin-top: -1px;
  padding-top: 13px;
  border-top: 1px solid var(--hairline);
}

.mpc-grants-screen .gt-record-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.mpc-grants-screen .gt-record-comments-title {
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-record-comment-empty {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-record-comment-thread {
  display: grid;
  gap: 10px;
}

.mpc-grants-screen .gt-record-comment-thread.resolved {
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--hover) 48%, var(--surface));
}

.mpc-grants-screen .gt-record-comment-thread-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-record-comment-thread-top button,
.mpc-grants-screen .gt-record-comment-actions button,
.mpc-grants-screen .gt-record-comment-replying button {
  border: 0;
  background: transparent;
  color: var(--success);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.mpc-grants-screen .gt-record-comment-thread-top button:disabled {
  cursor: default;
  opacity: .62;
}

.mpc-grants-screen .gt-record-comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.mpc-grants-screen .gt-record-comment.reply {
  margin-left: 40px;
}

.mpc-grants-screen .gt-record-comment-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 70%, var(--text-faint));
  border-radius: 999px;
  background: var(--navy);
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
}

.mpc-grants-screen .gt-record-comment-avatar.mini {
  width: 26px;
  height: 26px;
  font-size: 10px;
}

.mpc-grants-screen .gt-record-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mpc-grants-screen .gt-record-comment-main {
  min-width: 0;
  flex: 1 1 auto;
}

.mpc-grants-screen .gt-record-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.3;
}

.mpc-grants-screen .gt-record-comment-meta strong {
  color: var(--text-strong);
  font-weight: 800;
}

.mpc-grants-screen .gt-record-comment-body {
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mpc-grants-screen .gt-record-comment-mention {
  color: var(--grants);
  font-weight: 800;
}

.mpc-grants-screen .gt-record-comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.mpc-grants-screen .gt-record-comment-actions button {
  color: var(--text-muted);
}

.mpc-grants-screen .gt-record-comment-actions button:hover,
.mpc-grants-screen .gt-record-comment-actions button:focus-visible {
  color: var(--grants);
  outline: none;
}

.mpc-grants-screen .gt-record-comment-actions button.danger:hover,
.mpc-grants-screen .gt-record-comment-actions button.danger:focus-visible {
  color: var(--danger);
}

.mpc-grants-screen .gt-record-comment-resolved-row {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
}

.mpc-grants-screen .gt-record-comment-resolved-row:hover,
.mpc-grants-screen .gt-record-comment-resolved-row:focus-visible {
  color: var(--text-strong);
  outline: none;
}

.mpc-grants-screen .gt-record-comment-resolved-row svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--success);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mpc-grants-screen .gt-record-comment-composer-wrap {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.mpc-grants-screen .gt-record-comment-replying {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--hover);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.mpc-grants-screen .gt-record-comment-replying button {
  color: var(--grants);
}

.mpc-grants-screen .gt-record-comment-composer {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mpc-grants-screen .gt-record-comment-input {
  min-height: 38px;
  flex: 1 1 auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.45;
  outline: none;
  resize: none;
}

.mpc-grants-screen .gt-record-comment-input:focus {
  border-color: color-mix(in srgb, var(--grants) 42%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--grants) 9%, transparent);
}

.mpc-grants-screen .gt-record-comment-submit {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--grants);
  border-radius: var(--r-sm);
  background: var(--grants);
  color: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.mpc-grants-screen .gt-record-comment-submit:disabled {
  cursor: default;
  opacity: .62;
}

.mpc-grants-screen .gt-record-comment-picker {
  position: absolute;
  top: calc(100% + 7px);
  left: 40px;
  z-index: 30;
  width: min(280px, calc(100vw - 72px));
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--elev-overlay);
}

.mpc-grants-screen .gt-record-comment-picker-head {
  padding: 6px 8px 4px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
}

.mpc-grants-screen .gt-record-comment-picker-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.mpc-grants-screen .gt-record-comment-picker-row:hover,
.mpc-grants-screen .gt-record-comment-picker-row:focus-visible {
  background: var(--hover);
  outline: none;
}

.mpc-grants-screen .gt-record-comment-picker-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpc-grants-screen .gt-record-comment-picker-role {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.mpc-grants-screen .gt-record-comment-picker-empty {
  padding: 8px;
  color: var(--text-muted);
  font-size: 12.5px;
}

.mpc-grants-screen .gt-record-doc-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.mpc-grants-screen .gt-record-doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 15px 18px;
  border-bottom: 1px solid var(--hairline);
}

.mpc-grants-screen .gt-record-doc-row:last-child {
  border-bottom: 0;
}

.mpc-grants-screen .gt-record-doc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--hover);
  color: var(--text-muted);
}

.mpc-grants-screen .gt-record-doc-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mpc-grants-screen .gt-record-doc-main {
  min-width: 0;
  flex: 1 1 auto;
}

.mpc-grants-screen .gt-record-doc-name {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.mpc-grants-screen .gt-record-doc-sub {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-record-doc-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex: 0 0 auto;
}

.mpc-grants-screen .gt-record-doc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--hover);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
}

.mpc-grants-screen .gt-record-doc-status span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.mpc-grants-screen .gt-record-doc-status.draft {
  background: var(--warning-tint);
  color: var(--warning);
}

.mpc-grants-screen .gt-record-doc-status.final {
  background: var(--success-tint);
  color: var(--success);
}

.mpc-grants-screen .gt-record-doc-open {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--grants);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.mpc-grants-screen .gt-record-doc-open.primary {
  color: var(--text-strong);
}

.mpc-grants-screen .gt-record-doc-open:hover,
.mpc-grants-screen .gt-record-doc-open:focus-visible {
  text-decoration: underline;
  outline: none;
}

.mpc-grants-screen .gt-record-empty {
  padding: 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mpc-grants-screen .gt-record-team-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.mpc-grants-screen .gt-record-team-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 15px 18px;
  border-bottom: 1px solid var(--hairline);
}

.mpc-grants-screen .gt-record-team-row:last-child {
  border-bottom: 0;
}

.mpc-grants-screen .gt-record-team-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--text-faint));
  border-radius: 999px;
  background: color-mix(in srgb, var(--hover) 72%, var(--surface));
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.mpc-grants-screen .gt-record-team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mpc-grants-screen .gt-record-team-main {
  min-width: 0;
}

.mpc-grants-screen .gt-record-team-name {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpc-grants-screen .gt-record-team-email {
  overflow: hidden;
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpc-grants-screen .gt-record-team-role-slot {
  min-width: 104px;
}

.mpc-grants-screen .gt-record-team-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--hover);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-record-team-role.lead {
  border-color: color-mix(in srgb, var(--grants) 26%, var(--line));
  background: color-mix(in srgb, var(--grants-tint) 54%, var(--surface));
  color: var(--grants);
}

.mpc-grants-screen .gt-record-team-role.writer {
  border-color: color-mix(in srgb, var(--programs) 24%, var(--line));
  background: color-mix(in srgb, var(--info-tint) 70%, var(--surface));
  color: var(--programs);
}

.mpc-grants-screen .gt-record-team-role.reviewer {
  border-color: color-mix(in srgb, var(--board) 24%, var(--line));
  background: color-mix(in srgb, var(--hover) 58%, var(--surface));
  color: var(--board);
}

.mpc-grants-screen .gt-record-team-role.budget {
  border-color: color-mix(in srgb, var(--warning) 26%, var(--line));
  background: var(--warning-tint);
  color: var(--warning);
}

.mpc-grants-screen .gt-record-team-role-select,
.mpc-grants-screen .gt-record-team-assign select {
  min-height: 34px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.mpc-grants-screen .gt-record-team-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mpc-grants-screen .gt-record-doc-open.muted {
  color: var(--text-muted);
}

.mpc-grants-screen .gt-record-team-assign {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--hover) 70%, var(--surface));
}

.mpc-grants-screen .gt-record-team-assign-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px auto;
  align-items: end;
  gap: 12px;
}

.mpc-grants-screen .gt-record-team-assign label {
  display: grid;
  gap: 6px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-record-team-assign-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mpc-grants-screen .gt-record-team-error {
  margin-top: 10px;
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 700;
}

.mpc-grants-screen .gt-record-doc-editor-card {
  margin-top: 18px;
}

.mpc-grants-screen .gt-record-doc-editor-mount {
  margin-top: 16px;
  min-width: 0;
}

.mpc-grants-screen .gt-record-rem-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border: 1px solid color-mix(in srgb, var(--success) 22%, var(--line));
  border-radius: 9px;
  background: var(--success-tint);
  color: color-mix(in srgb, var(--success) 78%, var(--text));
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}

.mpc-grants-screen .gt-record-rem-banner.off {
  border-color: var(--line);
  background: var(--hover);
  color: var(--text-muted);
}

.mpc-grants-screen .gt-record-rem-banner svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mpc-grants-screen .gt-record-rem-current {
  margin-top: 16px;
}

.mpc-grants-screen .gt-record-rem-current-head h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0;
}

.mpc-grants-screen .gt-record-rem-current-head p {
  margin: 3px 0 12px;
}

.mpc-grants-screen .gt-record-rem-current-note {
  margin: -6px 0 12px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-record-rem-state {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mpc-grants-screen .gt-record-rem-state strong {
  min-width: 120px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 800;
}

.mpc-grants-screen .gt-record-rem-state span:last-child,
.mpc-grants-screen .gt-record-rem-what {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-record-rem-state b {
  color: var(--danger);
}

.mpc-grants-screen .gt-record-rem-upcoming,
.mpc-grants-screen .gt-record-rem-schedule {
  display: grid;
  gap: 0;
}

.mpc-grants-screen .gt-record-rem-upcoming-row,
.mpc-grants-screen .gt-record-rem-line {
  display: grid;
  grid-template-columns: auto minmax(120px, .35fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}

.mpc-grants-screen .gt-record-rem-line {
  grid-template-columns: auto 130px minmax(0, 1fr);
}

.mpc-grants-screen .gt-record-rem-upcoming-row:last-child,
.mpc-grants-screen .gt-record-rem-line:last-child {
  border-bottom: 0;
}

.mpc-grants-screen .gt-record-rem-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--text-faint);
  flex: 0 0 auto;
}

.mpc-grants-screen .gt-record-rem-dot.gold {
  background: var(--gold);
}

.mpc-grants-screen .gt-record-rem-dot.warning {
  background: var(--warning);
}

.mpc-grants-screen .gt-record-rem-dot.danger {
  background: var(--danger);
}

.mpc-grants-screen .gt-record-rem-dot.neutral {
  background: var(--text-faint);
}

.mpc-grants-screen .gt-record-rem-when {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.mpc-grants-screen .gt-record-rem-status {
  justify-self: end;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 800;
}

.mpc-grants-screen .gt-record-section-label {
  margin: 20px 0 10px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-record-rem-group-stack {
  display: grid;
  gap: 12px;
}

.mpc-grants-screen .gt-record-rem-group-stack .gt-record-rem-current {
  margin-top: 0;
}

@media (max-width: 760px) {
  .mpc-grants-screen .gt-record-workspace {
    padding-inline: 18px;
  }

  .mpc-grants-screen .gt-record-overview-grid,
  .mpc-grants-screen .gt-record-fit-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .mpc-grants-screen .gt-record-top,
  .mpc-grants-screen .gt-record-card-head {
    display: grid;
  }

  .mpc-grants-screen .gt-record-actions {
    flex-wrap: wrap;
  }

  .mpc-grants-screen .gt-record-facetnav {
    display: flex;
    overflow-x: auto;
    width: 100%;
  }

  .mpc-grants-screen .gt-record-facet-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .mpc-grants-screen .gt-record-facettab {
    flex: 0 0 auto;
  }

  .mpc-grants-screen .gt-record-kv {
    grid-template-columns: minmax(0, 1fr);
  }

  .mpc-grants-screen .gt-record-inline-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .mpc-grants-screen .gt-record-facet-head,
  .mpc-grants-screen .gt-record-application-card-top,
  .mpc-grants-screen .gt-record-doc-row,
  .mpc-grants-screen .gt-record-team-row,
  .mpc-grants-screen .gt-record-doc-right,
  .mpc-grants-screen .gt-record-rem-state {
    display: grid;
  }

  .mpc-grants-screen .gt-record-facet-actions {
    justify-content: flex-start;
  }

  .mpc-grants-screen .gt-record-doc-right {
    margin-left: 50px;
    justify-items: start;
  }

  .mpc-grants-screen .gt-record-team-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mpc-grants-screen .gt-record-team-role-slot,
  .mpc-grants-screen .gt-record-team-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .mpc-grants-screen .gt-record-team-assign-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mpc-grants-screen .gt-record-application-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mpc-grants-screen .gt-record-application-inline-settings {
    grid-template-columns: minmax(0, 1fr);
  }

  .mpc-grants-screen .gt-record-application-card-actions,
  .mpc-grants-screen .gt-record-application-form-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .mpc-grants-screen .gt-record-rem-upcoming-row,
  .mpc-grants-screen .gt-record-rem-line {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mpc-grants-screen .gt-record-rem-what,
  .mpc-grants-screen .gt-record-rem-status {
    grid-column: 2;
    justify-self: start;
  }
}

.mpc-grants-screen__head,
.mpc-grants-screen .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.mpc-grants-screen .head {
  margin-bottom: 18px;
}

.mpc-grants-screen .eyebrow {
  color: var(--grants);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.mpc-grants-screen .ptitle {
  margin: 6px 0 0;
  color: var(--text-strong);
  font: 700 27px/1.08 var(--font-display);
  letter-spacing: 0;
}

.mpc-grants-screen .psub {
  max-width: 620px;
  margin: 9px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.mpc-grants-screen .hact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s3);
}

.mpc-grants-screen .btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--grants);
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.mpc-grants-screen .btn svg {
  width: 15px;
  height: 15px;
}

.mpc-grants-screen .btn.sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.mpc-grants-screen .btn.bghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--navy);
}

.mpc-grants-screen .btn.bghost:hover {
  border-color: var(--grants);
}

.mpc-grants-screen .btn.bnavy {
  background: var(--navy);
  color: var(--surface);
}

.mpc-grants-screen .btn.bnavy:hover,
.mpc-grants-screen .btn.bnavy:focus-visible {
  background: var(--navy-dark);
}

.mpc-grants-screen .btn[disabled] {
  cursor: default;
  opacity: .62;
}

.mpc-grants-screen .tabs {
  display: flex;
  gap: 2px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.mpc-grants-screen .tabs button {
  position: relative;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--text-muted) 86%, var(--text-faint));
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.mpc-grants-screen .tabs button.active,
.mpc-grants-screen .tabs button.is-active {
  color: var(--navy);
  font-weight: 600;
}

.mpc-grants-screen .tabs button.active::after,
.mpc-grants-screen .tabs button.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2.5px;
  background: var(--grants);
}

.mpc-grants-screen .seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--page-bg) 55%, var(--surface));
}

.mpc-grants-screen .seg button {
  border: 0;
  padding: 6px 15px;
  border-radius: 7px;
  background: transparent;
  color: color-mix(in srgb, var(--text-muted) 84%, var(--text-faint));
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.mpc-grants-screen .seg button.on,
.mpc-grants-screen .seg button[aria-pressed="true"] {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--elev-page);
}

.mpc-grants-screen .grants-discovery {
  min-width: 0;
}

.mpc-grants-screen .gt-transparency-head-action {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.mpc-grants-screen .gt-transparency-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid #E3CDD1;
  border-radius: 2px;
  background: #F2E8EA;
  color: #8B2635;
  cursor: pointer;
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.mpc-grants-screen .gt-transparency-trigger:hover,
.mpc-grants-screen .gt-transparency-trigger:focus-visible {
  border-color: #D9BBC1;
  background: #EDDEE1;
  outline: none;
}

.mpc-grants-screen .gt-transparency-trigger svg {
  flex: 0 0 auto;
}

#grantTrackerTransparencyModal.modal-overlay {
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
  background: rgba(17, 30, 58, 0.45);
  z-index: 20000;
}

#grantTrackerTransparencyModal .gt-transparency-modal {
  width: min(720px, 100%);
  max-width: 720px !important;
  max-height: calc(100vh - 96px) !important;
  max-height: calc(100dvh - 96px) !important;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #E4E7EC;
  border-radius: 2px;
  background: #FFFFFF;
  box-shadow: 0 20px 60px rgba(17, 30, 58, 0.28);
  font-family: "Work Sans", sans-serif;
  color: #3D434F;
}

#grantTrackerTransparencyModal .gt-transparency-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid #EDEFF3;
}

#grantTrackerTransparencyModal .gt-transparency-title-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

#grantTrackerTransparencyModal .gt-transparency-badge {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E3CDD1;
  border-radius: 2px;
  background: #F2E8EA;
  color: #8B2635;
}

#grantTrackerTransparencyModal .gt-transparency-modal-head h2 {
  margin: 0;
  color: #1B2F5A;
  font-family: "PT Sans", sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

#grantTrackerTransparencyModal .gt-transparency-modal-head p {
  margin: 2px 0 0;
  color: #6B7280;
  font-size: 13px;
  line-height: 1.45;
}

#grantTrackerTransparencyModal .gt-transparency-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #9AA1AD;
  cursor: pointer;
}

#grantTrackerTransparencyModal .gt-transparency-close:hover,
#grantTrackerTransparencyModal .gt-transparency-close:focus-visible {
  background: #F6F7F9;
  color: #5A6172;
  outline: none;
}

#grantTrackerTransparencyModal .gt-transparency-body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
}

#grantTrackerTransparencyModal .gt-transparency-tabs {
  width: 184px;
  flex: 0 0 184px;
  padding: 14px 0;
  border-right: 1px solid #EDEFF3;
  background: #FBFBFD;
}

#grantTrackerTransparencyModal .gt-transparency-tab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #5A6172;
  cursor: pointer;
  font-family: "Work Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
}

#grantTrackerTransparencyModal .gt-transparency-tab:hover,
#grantTrackerTransparencyModal .gt-transparency-tab:focus-visible {
  background: #F4F1EC;
  outline: none;
}

#grantTrackerTransparencyModal .gt-transparency-tab.is-active {
  border-left-color: #C9A84C;
  background: #F2E8EA;
  color: #8B2635;
  font-weight: 700;
}

#grantTrackerTransparencyModal .gt-transparency-tab svg {
  flex: 0 0 auto;
}

#grantTrackerTransparencyModal .gt-transparency-panel {
  min-width: 0;
  flex: 1 1 auto;
  padding: 22px 26px;
  overflow: auto;
}

#grantTrackerTransparencyModal .gt-transparency-panel h3 {
  margin: 0 0 4px;
  color: #1B2F5A;
  font-family: "PT Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

#grantTrackerTransparencyModal .gt-transparency-intro {
  margin: 0 0 18px;
  color: #6B7280;
  font-size: 13.5px;
  line-height: 1.5;
}

#grantTrackerTransparencyModal .gt-transparency-section-list {
  display: grid;
  gap: 16px;
}

#grantTrackerTransparencyModal .gt-transparency-section {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#grantTrackerTransparencyModal .gt-transparency-section h4 {
  margin: 0 0 3px;
  color: #2B3A5C;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}

#grantTrackerTransparencyModal .gt-transparency-section p {
  margin: 0;
  color: #5A6172;
  font-size: 13.5px;
  line-height: 1.5;
}

#grantTrackerTransparencyModal .gt-transparency-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid #EDEFF3;
  background: #FAFBFC;
  color: #6B7280;
  font-size: 13px;
  line-height: 1.45;
}

#grantTrackerTransparencyModal .gt-transparency-modal-foot a {
  color: #8B2635;
  font-weight: 600;
  text-decoration: none;
}

#grantTrackerTransparencyModal .gt-transparency-modal-foot a:hover,
#grantTrackerTransparencyModal .gt-transparency-modal-foot a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

#grantTrackerTransparencyModal .gt-transparency-primary {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 9px 18px;
  border: 0;
  border-radius: 2px;
  background: #1B2F5A;
  color: #FFFFFF;
  cursor: pointer;
  font-family: "Work Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
}

#grantTrackerTransparencyModal .gt-transparency-primary:hover,
#grantTrackerTransparencyModal .gt-transparency-primary:focus-visible {
  background: #111E3A;
  outline: none;
}

.mpc-grants-screen .gt-discovery-settings-page {
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid #E2E6EE;
  border-radius: 12px;
  background: #F7F8FA;
}

.mpc-grants-screen .gt-discovery-drift-banner,
.mpc-grants-screen .gt-discovery-stale-nudge {
  margin-bottom: 14px;
  border: 1px solid #E8D9B2;
  border-radius: 12px;
  background: #FFF9EA;
  color: #3D4557;
}

.mpc-grants-screen .gt-discovery-drift-banner {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 16px;
}

.mpc-grants-screen .gt-discovery-drift-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #C9A84C;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.mpc-grants-screen .gt-discovery-drift-body,
.mpc-grants-screen .gt-discovery-focus-suggestion-body {
  min-width: 0;
}

.mpc-grants-screen .gt-discovery-drift-copy {
  color: #27334A;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.mpc-grants-screen .gt-discovery-drift-copy b {
  color: #0F1E3B;
}

.mpc-grants-screen .gt-discovery-drift-sub {
  margin-top: 3px;
  color: #6A7283;
  font-size: 12px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-discovery-drift-actions,
.mpc-grants-screen .gt-discovery-stale-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.mpc-grants-screen .gt-discovery-drift-primary {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #8B2635;
  border-radius: 8px;
  background: #8B2635;
  color: #FFFFFF;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
}

.mpc-grants-screen .gt-discovery-drift-primary[disabled] {
  cursor: default;
  opacity: .55;
}

.mpc-grants-screen .gt-discovery-drift-dismiss,
.mpc-grants-screen .gt-discovery-stale-actions button,
.mpc-grants-screen .gt-discovery-focus-suggestion button {
  border: 0;
  background: transparent;
  color: #7F899A;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}

.mpc-grants-screen .gt-discovery-stale-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #FFFCF4;
}

.mpc-grants-screen .gt-discovery-stale-copy {
  min-width: 0;
  color: #5A647A;
  font-size: 12.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-discovery-onramp-page {
  min-width: 0;
  display: grid;
  justify-items: center;
  padding: 34px 22px;
  border: 1px solid #E2E6EE;
  border-radius: 12px;
  background: #F7F8FA;
}

.mpc-grants-screen .gt-discovery-onramp-card {
  width: min(560px, 100%);
  padding: 26px 28px;
  border: 1px solid #E2E6EE;
  border-radius: 14px;
  background: #FFFFFF;
  color: #111E3A;
}

.mpc-grants-screen .gt-discovery-onramp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #8B2635;
  font-size: 12px;
  font-weight: 700;
}

.mpc-grants-screen .gt-discovery-onramp-mauzy {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #8B2635;
}

.mpc-grants-screen .gt-discovery-onramp-mauzy svg {
  width: 14px;
  height: 14px;
  stroke: #FFFFFF;
}

.mpc-grants-screen .gt-discovery-onramp-title {
  margin: 0;
  color: #111E3A;
  font: 700 22px/1.2 var(--font-display);
}

.mpc-grants-screen .gt-discovery-onramp-sub {
  margin: 5px 0 22px;
  color: #5A647A;
  font-size: 13px;
  line-height: 1.5;
}

.mpc-grants-screen .gt-discovery-onramp-block-label {
  display: block;
  margin: 0 0 8px;
  color: #8A94A6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-discovery-onramp-known {
  padding: 6px 14px;
  border: 1px solid #D4E8DE;
  border-radius: 10px;
  background: #F0F7F4;
}

.mpc-grants-screen .gt-discovery-onramp-known-row {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #DCEDE5;
}

.mpc-grants-screen .gt-discovery-onramp-known-row:last-child {
  border-bottom: 0;
}

.mpc-grants-screen .gt-discovery-onramp-check {
  width: 14px;
  min-width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2D9B6F;
  font-size: 13px;
  font-weight: 900;
}

.mpc-grants-screen .gt-discovery-onramp-known-key {
  color: #5A647A;
  font-size: 12.5px;
  line-height: 1.35;
}

.mpc-grants-screen .gt-discovery-onramp-known-value {
  margin-left: auto;
  color: #1F4536;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.mpc-grants-screen .gt-discovery-onramp-profile-link {
  display: inline-flex;
  margin-top: 9px;
  color: #8B2635;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}

.mpc-grants-screen .gt-discovery-onramp-profile-link::after {
  content: '→';
  margin-left: 4px;
}

.mpc-grants-screen .gt-discovery-onramp-group {
  margin-top: 22px;
}

.mpc-grants-screen .gt-discovery-onramp-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  padding: 8px 11px;
  border: 1px solid #ECE0DC;
  border-radius: 9px;
  background: #F7F4F2;
  color: #5A4A4A;
  font-size: 11.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-discovery-onramp-hint b {
  color: #8B2635;
}

.mpc-grants-screen .gt-discovery-onramp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mpc-grants-screen .gt-discovery-onramp-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid #E2E6EE;
  border-radius: 20px;
  background: #F2F4F8;
  color: #2A3445;
  font-size: 12.5px;
  font-weight: 700;
}

.mpc-grants-screen .gt-discovery-onramp-chip button {
  border: 0;
  background: transparent;
  color: #8A94A6;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1;
  padding: 0;
}

.mpc-grants-screen .gt-discovery-onramp-add-chip {
  min-height: 30px;
  padding: 5px 12px;
  border: 1px dashed #C9A8AE;
  border-radius: 20px;
  background: #FFFFFF;
  color: #8B2635;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
}

.mpc-grants-screen .gt-discovery-onramp-add-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mpc-grants-screen .gt-discovery-onramp-add-wrap input {
  width: 170px;
  min-height: 30px;
  border: 1px solid #D6DCE8;
  border-radius: 20px;
  padding: 0 12px;
  color: #2A3445;
  font: 600 12.5px/1.3 var(--font-body);
}

.mpc-grants-screen .gt-discovery-onramp-add-wrap button {
  min-height: 30px;
  border: 1px dashed #C9A8AE;
  border-radius: 20px;
  background: #FFFFFF;
  color: #8B2635;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  padding: 0 12px;
}

.mpc-grants-screen .gt-discovery-onramp-matches {
  margin-top: 24px;
  padding: 16px 16px 14px;
  border: 1px solid #E2E6EE;
  border-radius: 11px;
  background: #FFFFFF;
}

.mpc-grants-screen .gt-discovery-onramp-match-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.mpc-grants-screen .gt-discovery-onramp-match-number {
  color: #111E3A;
  font: 700 30px/1 var(--font-display);
}

.mpc-grants-screen .gt-discovery-onramp-match-title {
  color: #37496B;
  font-size: 13px;
  font-weight: 700;
}

.mpc-grants-screen .gt-discovery-onramp-match-copy,
.mpc-grants-screen .gt-discovery-onramp-empty-copy {
  margin-top: 5px;
  color: #8A94A6;
  font-size: 11.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-discovery-onramp-sample {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #EEF1F6;
}

.mpc-grants-screen .gt-discovery-onramp-sample-name {
  color: #111E3A;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.mpc-grants-screen .gt-discovery-onramp-sample-funder {
  color: #8A94A6;
  font-size: 11px;
  line-height: 1.35;
}

.mpc-grants-screen .gt-discovery-onramp-band {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.mpc-grants-screen .gt-discovery-onramp-band.strong {
  background: #EAF5F0;
  color: #1F7A52;
}

.mpc-grants-screen .gt-discovery-onramp-band.possible {
  background: #EEF1F6;
  color: #5A647A;
}

.mpc-grants-screen .gt-discovery-onramp-band.stretch {
  background: #FBF3E3;
  color: #9A6A12;
}

.mpc-grants-screen .gt-discovery-onramp-band.low {
  background: #F3F4F6;
  color: #69748A;
}

.mpc-grants-screen .gt-discovery-onramp-matches.empty {
  background: #FBFCFE;
}

.mpc-grants-screen .gt-discovery-onramp-empty-title {
  color: #37496B;
  font-size: 13px;
  font-weight: 800;
}

.mpc-grants-screen .gt-discovery-onramp-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.mpc-grants-screen .gt-discovery-onramp-go {
  min-height: 43px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  background: #8B2635;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.mpc-grants-screen .gt-discovery-onramp-go[disabled],
.mpc-grants-screen .gt-discovery-onramp-later[disabled] {
  cursor: progress;
  opacity: .65;
}

.mpc-grants-screen .gt-discovery-onramp-later {
  border: 0;
  background: transparent;
  color: #5A647A;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  padding: 0;
}

.mpc-grants-screen .gt-discovery-onramp-sharpen {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #EEF1F6;
  color: #5A647A;
  font-size: 11.5px;
  line-height: 1.55;
}

.mpc-grants-screen .gt-discovery-onramp-sharpen b {
  color: #2A3445;
}

.mpc-grants-screen .gt-discovery-settings-shell {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr) 280px;
  min-height: 680px;
  border: 1px solid #E2E6EE;
  border-radius: 12px;
  background: #FFFFFF;
  overflow: hidden;
}

.mpc-grants-screen .gt-discovery-settings-nav {
  padding: 20px 14px;
  border-right: 1px solid #E2E6EE;
  background: #FFFFFF;
}

.mpc-grants-screen .gt-discovery-completion {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 4px 4px 18px;
  border-bottom: 1px solid #E2E6EE;
}

.mpc-grants-screen .gt-discovery-ring {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #FFFFFF 55%, transparent 56%),
    conic-gradient(#2D9B6F var(--gt-discovery-complete, 0%), #E2E6EE 0);
  color: #0F1E3B;
  font-size: 18px;
  font-weight: 800;
}

.mpc-grants-screen .gt-discovery-ring-copy {
  color: #69748A;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.mpc-grants-screen .gt-discovery-ring-reviewed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 7px;
  color: #556176;
  font-size: 11px;
  font-weight: 800;
}

.mpc-grants-screen .gt-discovery-ring-reviewed span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #C9A84C;
}

.mpc-grants-screen .gt-discovery-nav-group {
  margin-top: 18px;
}

.mpc-grants-screen .gt-discovery-nav-label {
  margin: 0 0 8px;
  padding: 0 8px;
  color: #778299;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-discovery-nav-list {
  display: grid;
  gap: 4px;
}

.mpc-grants-screen .gt-discovery-nav-item {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #4F5D75;
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.mpc-grants-screen .gt-discovery-nav-item > span:nth-child(2) {
  min-width: 0;
}

.mpc-grants-screen .gt-discovery-nav-item.is-active {
  background: #F2E8EA;
  color: #8B2635;
}

.mpc-grants-screen .gt-discovery-nav-review {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid #E6D9BD;
  border-radius: 999px;
  background: #FFF8E8;
  color: #9A6A12;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.mpc-grants-screen .gt-discovery-nav-icon {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 15px;
  border: 1px solid #C2C9D6;
  border-radius: 999px;
  color: transparent;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.mpc-grants-screen .gt-discovery-nav-icon.is-done {
  border-color: #2D9B6F;
  background: #2D9B6F;
  color: #FFFFFF;
}

.mpc-grants-screen .gt-discovery-settings-main {
  min-width: 0;
  padding: 28px 32px 34px;
  background: #FFFFFF;
}

.mpc-grants-screen .gt-discovery-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.mpc-grants-screen .gt-discovery-section-eyebrow {
  color: #8B2635;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-discovery-section-title {
  margin: 6px 0 0;
  color: #0F1E3B;
  font: 700 24px/1.18 var(--font-display);
}

.mpc-grants-screen .gt-discovery-section-copy {
  max-width: 640px;
  margin-top: 7px;
  color: #69748A;
  font-size: 13.5px;
  line-height: 1.55;
}

.mpc-grants-screen .gt-discovery-readonly-note,
.mpc-grants-screen .gt-discovery-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #E2E6EE;
  border-radius: 10px;
  background: #FBFCFE;
  color: #4F5D75;
  font-size: 12.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-discovery-callout.avoid {
  border-color: #E7CCD2;
  background: #FBF5F6;
  color: #6E1F2B;
}

.mpc-grants-screen .gt-discovery-suggest-exclusion {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 15px;
  border: 1px solid #ECD9DD;
  border-radius: 11px;
  background: #F9F0F2;
}

.mpc-grants-screen .gt-discovery-focus-suggestion {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid #E8D9B2;
  border-radius: 10px;
  background: #FFF9EA;
}

.mpc-grants-screen .gt-discovery-focus-suggestion-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #C9A84C;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.mpc-grants-screen .gt-discovery-focus-suggestion-copy {
  color: #4F5D75;
  font-size: 12.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-discovery-focus-suggestion-copy b {
  color: #27334A;
}

.mpc-grants-screen .gt-discovery-focus-suggestion button {
  margin-top: 8px;
}

.mpc-grants-screen .gt-discovery-suggest-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #8B2635;
  color: #FFFFFF;
}

.mpc-grants-screen .gt-discovery-suggest-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.mpc-grants-screen .gt-discovery-suggest-body {
  min-width: 0;
}

.mpc-grants-screen .gt-discovery-suggest-copy {
  color: #5A2A33;
  font-size: 12.5px;
  line-height: 1.5;
}

.mpc-grants-screen .gt-discovery-suggest-copy b {
  color: #8B2635;
}

.mpc-grants-screen .gt-discovery-suggest-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 11px;
}

.mpc-grants-screen .gt-discovery-suggest-add {
  border: 0;
  border-radius: 8px;
  background: #8B2635;
  color: #FFFFFF;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 14px;
}

.mpc-grants-screen .gt-discovery-suggest-no {
  border: 0;
  background: transparent;
  color: #8A94A6;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
}

.mpc-grants-screen .gt-discovery-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mpc-grants-screen .gt-discovery-form-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.mpc-grants-screen .gt-discovery-field {
  display: grid;
  gap: 7px;
}

.mpc-grants-screen .gt-discovery-field.full {
  grid-column: 1 / -1;
}

.mpc-grants-screen .gt-discovery-label {
  color: #394760;
  font-size: 12px;
  font-weight: 800;
}

.mpc-grants-screen .gt-discovery-helper {
  color: #69748A;
  font-size: 12px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-discovery-input,
.mpc-grants-screen .gt-discovery-textarea {
  width: 100%;
  border: 1px solid #D6DCE8;
  border-radius: 8px;
  background: #FFFFFF;
  color: #17243E;
  font: 500 13.5px/1.45 var(--font-body);
}

.mpc-grants-screen .gt-discovery-input {
  min-height: 42px;
  padding: 0 12px;
}

.mpc-grants-screen .gt-discovery-textarea {
  min-height: 112px;
  padding: 11px 12px;
  resize: vertical;
}

.mpc-grants-screen .gt-discovery-input[disabled],
.mpc-grants-screen .gt-discovery-textarea[disabled],
.mpc-grants-screen .gt-discovery-chip-add input[disabled] {
  background: #F7F8FA;
  color: #69748A;
}

.mpc-grants-screen .gt-discovery-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mpc-grants-screen .gt-discovery-confirm-row {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #E2E6EE;
  border-radius: 10px;
  background: #FFFFFF;
}

.mpc-grants-screen .gt-discovery-confirm-label {
  color: #778299;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-discovery-confirm-value {
  color: #0F1E3B;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.mpc-grants-screen .gt-discovery-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 16px;
  padding: 0 13px;
  border: 1px solid #D6DCE8;
  border-radius: 8px;
  background: #FFFFFF;
  color: #8B2635;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.mpc-grants-screen .gt-discovery-chip-editor {
  display: grid;
  gap: 9px;
}

.mpc-grants-screen .gt-discovery-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
}

.mpc-grants-screen .gt-discovery-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #D6DCE8;
  border-radius: 999px;
  background: #F7F8FA;
  color: #2A3445;
  font-size: 12.5px;
  font-weight: 700;
}

.mpc-grants-screen .gt-discovery-chip.locked {
  border-color: #CFE8DC;
  background: #F1FAF5;
  color: #216E4E;
}

.mpc-grants-screen .gt-discovery-chip-remove {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #FFFFFF;
  color: #69748A;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.mpc-grants-screen .gt-discovery-chip-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.mpc-grants-screen .gt-discovery-chip-input-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.mpc-grants-screen .gt-discovery-chip-add input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #D6DCE8;
  border-radius: 8px;
  padding: 0 11px;
  color: #17243E;
  font-size: 13px;
}

.mpc-grants-screen .gt-discovery-category-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  max-height: 238px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #D6DCE8;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 16px 34px rgba(17, 30, 58, 0.12);
}

.mpc-grants-screen .gt-discovery-category-suggestions.show {
  display: grid;
  gap: 4px;
}

.mpc-grants-screen .gt-discovery-category-suggestion {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #17243E;
  text-align: left;
  cursor: pointer;
}

.mpc-grants-screen .gt-discovery-category-suggestion:hover,
.mpc-grants-screen .gt-discovery-category-suggestion:focus-visible,
.mpc-grants-screen .gt-discovery-category-suggestion.is-active {
  outline: none;
  background: #F4F7FB;
}

.mpc-grants-screen .gt-discovery-category-suggestion-label {
  font-size: 13px;
  font-weight: 800;
}

.mpc-grants-screen .gt-discovery-category-suggestion-parent,
.mpc-grants-screen .gt-discovery-category-suggestion-status {
  color: #69748A;
  font-size: 11px;
  font-weight: 700;
}

.mpc-grants-screen .gt-discovery-category-suggestion-status {
  padding: 9px 10px;
}

.mpc-grants-screen .gt-discovery-chip-editor.is-category-editor {
  gap: 12px;
}

.mpc-grants-screen .gt-discovery-category-capture {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #D7B15A;
  border-radius: 4px;
  background: #FFF4D8;
  color: #3F2A14;
}

.mpc-grants-screen .gt-discovery-category-capture.is-empty {
  background: #FFF6DF;
}

.mpc-grants-screen .gt-discovery-category-mauzy {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.mpc-grants-screen .gt-discovery-category-capture-body {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.mpc-grants-screen .gt-discovery-category-capture-title {
  color: #5E1729;
  font-size: 13px;
  font-weight: 900;
}

.mpc-grants-screen .gt-discovery-category-capture-copy,
.mpc-grants-screen .gt-discovery-category-capture-error {
  color: #3F2A14;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
}

.mpc-grants-screen .gt-discovery-category-capture-error {
  color: #8B2635;
}

.mpc-grants-screen .gt-discovery-category-description {
  width: 100%;
  min-height: 86px;
  padding: 10px 11px;
  border: 1px solid #D7B15A;
  border-radius: 4px;
  background: #FFFFFF;
  color: #17243E;
  font: 500 13px/1.45 var(--font-body);
  resize: vertical;
}

.mpc-grants-screen .gt-discovery-category-suggest-btn {
  min-height: 36px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #8B2635;
  border-radius: 4px;
  background: #8B2635;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
}

.mpc-grants-screen .gt-discovery-category-suggest-btn[disabled] {
  cursor: default;
  opacity: .62;
}

.mpc-grants-screen .gt-discovery-category-proposals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mpc-grants-screen .gt-discovery-category-proposed-chip {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px dashed #B88A2B;
  border-radius: 4px;
  background: #FFF9EA;
  color: #533716;
  font: 800 12.5px/1.25 var(--font-body);
  text-align: left;
  cursor: pointer;
}

.mpc-grants-screen .gt-discovery-category-proposed-label,
.mpc-grants-screen .gt-discovery-category-proposed-evidence {
  display: block;
}

.mpc-grants-screen .gt-discovery-category-proposed-evidence {
  margin-top: 2px;
  color: #6B5533;
  font-size: 11px;
  font-weight: 700;
}

.mpc-grants-screen .gt-discovery-category-proposed-add {
  flex: 0 0 auto;
  color: #8B2635;
  font-weight: 900;
}

.mpc-grants-screen .gt-discovery-category-confirmed-chip {
  border-color: #C88E9A;
  border-radius: 4px;
  background: #F6E8EA;
  color: #5E1729;
}

.mpc-grants-screen .gt-discovery-category-confirmed-chip .gt-discovery-chip-remove {
  border-radius: 4px;
  background: #FFFFFF;
  color: #5E1729;
}

.mpc-grants-screen .gt-discovery-category-unresolved-chip {
  border-color: #B7C0D1;
  border-style: dashed;
  border-radius: 4px;
  background: #FFFFFF;
  color: #394760;
}

.mpc-grants-screen .gt-discovery-small-btn,
.mpc-grants-screen .gt-discovery-save-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.mpc-grants-screen .gt-discovery-small-btn {
  padding: 0 12px;
  border: 1px solid #D6DCE8;
  background: #FFFFFF;
  color: #0F1E3B;
}

.mpc-grants-screen .gt-discovery-save-btn {
  padding: 0 16px;
  border: 1px solid #8B2635;
  background: #8B2635;
  color: #FFFFFF;
}

.mpc-grants-screen .gt-discovery-save-btn[disabled],
.mpc-grants-screen .gt-discovery-small-btn[disabled] {
  cursor: default;
  opacity: .58;
}

.mpc-grants-screen .gt-discovery-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mpc-grants-screen .gt-discovery-choice-card,
.mpc-grants-screen .gt-discovery-segment-btn {
  border: 1px solid #D6DCE8;
  border-radius: 10px;
  background: #FFFFFF;
  color: #2A3445;
  cursor: pointer;
}

.mpc-grants-screen .gt-discovery-choice-card {
  min-height: 88px;
  padding: 13px 14px;
  text-align: left;
}

.mpc-grants-screen .gt-discovery-choice-card.is-selected,
.mpc-grants-screen .gt-discovery-segment-btn.is-selected {
  border-color: #8B2635;
  background: #F2E8EA;
  color: #8B2635;
}

.mpc-grants-screen .gt-discovery-choice-title {
  font-size: 13.5px;
  font-weight: 800;
}

.mpc-grants-screen .gt-discovery-choice-copy {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4;
  color: #69748A;
}

.mpc-grants-screen .gt-discovery-choice-card.is-selected .gt-discovery-choice-copy {
  color: #6E1F2B;
}

.mpc-grants-screen .gt-discovery-segment {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mpc-grants-screen .gt-discovery-segment-btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 800;
}

.mpc-grants-screen .gt-discovery-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #E2E6EE;
}

.mpc-grants-screen .gt-discovery-save-state {
  color: #69748A;
  font-size: 12px;
  line-height: 1.4;
}

.mpc-grants-screen .gt-discovery-preview-rail {
  min-width: 0;
  padding: 20px 18px;
  border-left: 1px solid #EEF1F6;
  background: #FAFBFD;
}

.mpc-grants-screen .gt-discovery-live-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.mpc-grants-screen .gt-discovery-preview-kicker {
  color: #8A94A6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.3;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-discovery-preview-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 5px 0 16px;
  color: #5A647A;
  font-size: 11px;
  font-weight: 700;
}

.mpc-grants-screen .gt-discovery-preview-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2D9B6F;
}

.mpc-grants-screen .gt-discovery-preview-live.is-updating::before {
  background: #D9A21B;
}

.mpc-grants-screen .gt-discovery-preview-stat {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.mpc-grants-screen .gt-discovery-preview-stat-number {
  color: #111E3A;
  font: 700 28px/1 var(--font-display);
}

.mpc-grants-screen .gt-discovery-preview-stat-copy {
  margin-top: 4px;
  color: #5A647A;
  font-size: 12px;
  line-height: 1.4;
}

.mpc-grants-screen .gt-discovery-preview-program-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px solid #DCE6F3;
  border-radius: 9px;
  background: #EFF4FB;
  color: #37496B;
  font-size: 11.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-discovery-preview-program-line b {
  color: #2B6CB0;
}

.mpc-grants-screen .gt-discovery-preview-program-icon {
  display: inline-grid;
  place-items: center;
  width: 15px;
  min-width: 15px;
  height: 15px;
  margin-top: 1px;
  color: #2B6CB0;
  font-size: 13px;
  line-height: 1;
}

.mpc-grants-screen .gt-discovery-preview-divider {
  height: 1px;
  margin: 16px 0;
  background: #E7EBF2;
}

.mpc-grants-screen .gt-discovery-preview-subtitle {
  margin-bottom: 10px;
  color: #5A647A;
  font-size: 11.5px;
  font-weight: 800;
}

.mpc-grants-screen .gt-discovery-match-list {
  display: grid;
  gap: 8px;
}

.mpc-grants-screen .gt-discovery-match-card {
  border: 1px solid #E2E6EE;
  border-radius: 9px;
  background: #FFFFFF;
  padding: 10px 12px;
}

.mpc-grants-screen .gt-discovery-match-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.mpc-grants-screen .gt-discovery-match-name {
  color: #111E3A;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}

.mpc-grants-screen .gt-discovery-fit-band {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}

.mpc-grants-screen .gt-discovery-fit-band.strong {
  background: #EAF5F0;
  color: #1F7A52;
}

.mpc-grants-screen .gt-discovery-fit-band.possible {
  background: #EEF1F6;
  color: #5A647A;
}

.mpc-grants-screen .gt-discovery-fit-band.stretch {
  background: #FBF3E3;
  color: #9A6A12;
}

.mpc-grants-screen .gt-discovery-fit-band.low {
  background: #F3F4F6;
  color: #69748A;
}

.mpc-grants-screen .gt-discovery-match-funder {
  margin-top: 3px;
  color: #8A94A6;
  font-size: 11px;
  line-height: 1.3;
}

.mpc-grants-screen .gt-discovery-match-reason {
  margin-top: 7px;
  color: #4A5468;
  font-size: 11.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-discovery-match-fresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #F0F2F6;
  color: #5A647A;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
}

.mpc-grants-screen .gt-discovery-match-fresh.soon {
  color: #9A6A12;
}

.mpc-grants-screen .gt-discovery-match-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2D9B6F;
}

.mpc-grants-screen .gt-discovery-match-fresh.soon .gt-discovery-match-dot {
  background: #D9A21B;
}

.mpc-grants-screen .gt-discovery-match-feedback {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #8A94A6;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 0;
}

.mpc-grants-screen .gt-discovery-match-feedback:hover,
.mpc-grants-screen .gt-discovery-match-feedback:focus-visible {
  color: #8B2635;
  outline: none;
}

.mpc-grants-screen .gt-discovery-next-nudge {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #E6D9BD;
  border-radius: 9px;
  background: #FFFDF7;
  color: #5A647A;
  font-size: 11.5px;
  line-height: 1.5;
}

.mpc-grants-screen .gt-discovery-next-nudge button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #8B2635;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

.mpc-grants-screen .gt-discovery-preview-empty {
  border: 1px solid #E2E6EE;
  border-radius: 9px;
  background: #FFFFFF;
  color: #69748A;
  font-size: 12px;
  line-height: 1.45;
  padding: 11px 12px;
}

.mpc-grants-screen .grants-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s4);
}

.mpc-grants-screen .grants-mode-note {
  color: var(--text-muted);
  font-size: 13px;
}

.mpc-grants-screen .mauzy-note {
  display: flex;
  gap: var(--s3);
  align-items: center;
  margin-bottom: 18px;
  padding: 13px var(--s4);
  border: 1px solid color-mix(in srgb, var(--grants) 14%, var(--grants-tint));
  border-radius: 11px;
  background: var(--grants-tint);
}

.mpc-grants-screen .mauzy-avatar {
  width: 34px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grants);
  color: var(--gold-light);
}

.mpc-grants-screen .mauzy-avatar svg {
  width: 22px;
  height: 24px;
}

.mpc-grants-screen .mauzy-text {
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.45;
}

.mpc-grants-screen .mauzy-text strong {
  color: var(--text-strong);
}

.mpc-grants-screen .gt-section-head.gtv3-pipeline-head-shell {
  margin-bottom: 0;
  padding: 0;
  border: 0;
}

.mpc-grants-screen .gt-section-head.gtv3-pipeline-head-shell > .gtv3-pipeline-head {
  width: 100%;
}

.mpc-grants-screen .gtv3-pipeline-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s3);
  flex-wrap: wrap;
}

.mpc-grants-screen .gtv3-pipeline-guided,
.mpc-grants-screen .gtv3-pipeline-focus {
  margin-top: 18px;
}

.mpc-grants-screen .gtv3-pipeline-guided[hidden],
.mpc-grants-screen .gtv3-pipeline-focus[hidden],
.mpc-grants-screen .gt-section-stack[hidden] {
  display: none !important;
}

.mpc-grants-screen .gtv3-guided-mauzy {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 15px 17px;
  border: 1px solid color-mix(in srgb, var(--grants) 16%, var(--line));
  border-radius: var(--r);
  background: color-mix(in srgb, var(--grants-tint) 82%, var(--surface));
}

.mpc-grants-screen .gtv3-guided-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 11px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.mpc-grants-screen .gtv3-guided-item.hot {
  border-left-color: var(--danger);
}

.mpc-grants-screen .gtv3-guided-item.warm {
  border-left-color: var(--warning);
}

.mpc-grants-screen .gtv3-guided-item-main {
  min-width: 0;
  flex: 1 1 auto;
}

.mpc-grants-screen .gtv3-guided-item-title {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.mpc-grants-screen .gtv3-guided-item-sub {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.5;
}

.mpc-grants-screen .gtv3-guided-item .btn {
  flex: 0 0 auto;
  margin-left: auto;
}

.mpc-grants-screen .gtv3-pipeline-focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: var(--hover);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.mpc-grants-screen .gtv3-pipeline-advanced-stack {
  margin-top: 18px;
}

.mpc-grants-screen .gtv3-pipeline-metrics-slot {
  min-width: 0;
}

.mpc-grants-screen .gtv3-pipeline-loading {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mpc-grants-screen .gtv3-pipeline-loading strong {
  display: block;
  color: var(--text-strong);
}

.mpc-grants-screen .gtv3-pipeline-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mpc-grants-screen .gtv3-pipeline-kpi {
  min-width: 0;
  padding: 18px 19px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.mpc-grants-screen .gtv3-pipeline-kpi-label {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mpc-grants-screen .gtv3-pipeline-kpi-value {
  margin-top: 8px;
  color: var(--text-strong);
  font: 700 28px/1.05 var(--font-display);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.mpc-grants-screen .gtv3-pipeline-kpi-value.hot {
  color: var(--danger);
}

.mpc-grants-screen .gtv3-pipeline-kpi-value.warm {
  color: var(--warning);
}

.mpc-grants-screen .gtv3-pipeline-kpi-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gtv3-pipeline-board-panel {
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}

.module-layout.grant-module-layout .gtv3-pipeline-board-panel.gt-panel {
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}

.mpc-grants-screen .gtv3-pipeline-board-panel > .gt-panel-head {
  background: var(--surface) !important;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.module-layout.grant-module-layout .gtv3-pipeline-board-panel > .gt-panel-head {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--hairline) !important;
}

.mpc-grants-screen .gtv3-pipeline-board-host {
  display: block !important;
  width: 100%;
  min-width: 0;
  overflow: visible !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  background: var(--surface) !important;
}

.module-layout.grant-module-layout .gtv3-pipeline-board-host {
  display: block !important;
  overflow: visible !important;
  background: var(--surface) !important;
}

.mpc-grants-screen .gtv3-pipeline-board-panel .gt-panel-title {
  color: var(--text-strong);
}

.mpc-grants-screen .gtv3-pipeline-board-panel .gt-panel-sub {
  color: var(--text-muted);
}

.module-layout.grant-module-layout .gtv3-pipeline-board-panel .gt-panel-sub {
  color: var(--text-muted) !important;
}

.mpc-grants-screen .gtv3-pipeline-filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 18px;
  border-bottom: 1px solid var(--hairline);
}

.mpc-grants-screen .gtv3-pipeline-search,
.mpc-grants-screen .gtv3-pipeline-filter-field {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.mpc-grants-screen .gtv3-pipeline-search {
  flex: 0 1 220px;
  max-width: 220px;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mpc-grants-screen .gtv3-pipeline-search.is-active,
.mpc-grants-screen .gtv3-pipeline-filter-select.is-active,
.mpc-grants-screen .gtv3-pipeline-mine.is-active {
  border-color: color-mix(in srgb, var(--grants) 42%, var(--line));
  background: color-mix(in srgb, var(--grants-tint) 48%, var(--surface));
  color: var(--grants);
}

.mpc-grants-screen .gtv3-pipeline-search-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 2px solid var(--text-faint);
  border-radius: 999px;
  position: relative;
}

.mpc-grants-screen .gtv3-pipeline-search-icon::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  border-radius: 999px;
  background: var(--text-faint);
  transform: rotate(45deg);
  transform-origin: center;
}

.mpc-grants-screen .gtv3-pipeline-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 600 13px/1.3 'Work Sans', sans-serif;
  outline: none;
}

.mpc-grants-screen .gtv3-pipeline-search input::placeholder {
  color: var(--text-faint);
}

.mpc-grants-screen .gtv3-pipeline-filter-select {
  min-height: 34px;
  width: 118px;
  padding: 0 24px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  font: 700 13px/1.2 'Work Sans', sans-serif;
  outline: none;
  cursor: pointer;
}

.mpc-grants-screen .gtv3-pipeline-filter-select:disabled {
  cursor: not-allowed;
  opacity: .56;
}

.mpc-grants-screen .gtv3-pipeline-mine {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin-left: auto;
  padding: 0 2px 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.mpc-grants-screen .gtv3-pipeline-mine input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mpc-grants-screen .gtv3-pipeline-mine.is-disabled {
  opacity: .55;
}

.mpc-grants-screen .gtv3-pipeline-toggle {
  width: 32px;
  height: 20px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 76%, var(--text-faint));
  position: relative;
  transition: background .16s ease;
}

.mpc-grants-screen .gtv3-pipeline-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--navy-dark) 16%, transparent);
  transition: transform .16s ease;
}

.mpc-grants-screen .gtv3-pipeline-mine input:checked + .gtv3-pipeline-toggle {
  background: var(--grants);
}

.mpc-grants-screen .gtv3-pipeline-mine input:checked + .gtv3-pipeline-toggle::after {
  transform: translateX(12px);
}

.mpc-grants-screen .gtv3-pipeline-filter-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mpc-grants-screen .gtv3-pipeline-clear {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  font: 800 11.5px/1 'Work Sans', sans-serif;
  cursor: pointer;
}

@media (min-width: 1120px) {
  .mpc-grants-screen .gtv3-pipeline-filterbar {
    flex-wrap: nowrap;
  }
}

.mpc-grants-screen .gtv3-pipeline-clear:disabled {
  cursor: default;
  opacity: .45;
}

.mpc-grants-screen .gtv3-pipeline-clear:not(:disabled):hover,
.mpc-grants-screen .gtv3-pipeline-clear:not(:disabled):focus-visible {
  border-color: color-mix(in srgb, var(--grants) 30%, var(--line));
  color: var(--grants);
  outline: none;
}

.mpc-grants-screen .gtv3-pipeline-board-scroll {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  overflow-x: visible;
  padding: 18px 0 0;
}

.mpc-grants-screen .gtv3-pipeline-col {
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: color-mix(in srgb, var(--hover) 46%, var(--surface));
  display: flex;
  flex-direction: column;
}

.mpc-grants-screen .gtv3-pipeline-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 13px 0;
}

.mpc-grants-screen .gtv3-pipeline-col-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}

.mpc-grants-screen .gtv3-pipeline-col-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.mpc-grants-screen .gtv3-pipeline-col-count {
  margin-left: auto;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mpc-grants-screen .gtv3-pipeline-col-total {
  padding: 4px 13px 0;
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mpc-grants-screen .gtv3-pipeline-col-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding: 11px 11px 13px;
}

.mpc-grants-screen .gtv3-pipeline-card {
  position: relative;
  width: 100%;
  display: block;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.mpc-grants-screen .gtv3-pipeline-card:hover,
.mpc-grants-screen .gtv3-pipeline-card:focus-visible {
  border-color: color-mix(in srgb, var(--grants) 24%, var(--line));
  outline: none;
}

.mpc-grants-screen .gtv3-pipeline-card.hot {
  border-left-color: var(--danger);
}

.mpc-grants-screen .gtv3-pipeline-card.warm {
  border-left-color: var(--warning);
}

.mpc-grants-screen .gtv3-pipeline-card-title {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.mpc-grants-screen .gtv3-pipeline-card-funder {
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 11.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gtv3-pipeline-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.35;
}

.mpc-grants-screen .gtv3-pipeline-card-amount {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mpc-grants-screen .gtv3-pipeline-card-amount.is-empty {
  color: var(--text-faint);
  font-weight: 600;
}

.mpc-grants-screen .gtv3-pipeline-card-deadline {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.mpc-grants-screen .gtv3-pipeline-card-deadline.hot {
  color: var(--danger);
  font-weight: 700;
}

.mpc-grants-screen .gtv3-pipeline-card-deadline.warm {
  color: var(--warning);
  font-weight: 700;
}

.mpc-grants-screen .gtv3-pipeline-card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.mpc-grants-screen .gtv3-pipeline-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-faint);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
}

.mpc-grants-screen .gtv3-pipeline-tag.derived {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text-faint);
}

.mpc-grants-screen .gtv3-pipeline-tag.hot {
  background: var(--danger-tint);
  border-color: color-mix(in srgb, var(--danger) 28%, var(--line));
  color: var(--danger);
}

.mpc-grants-screen .gtv3-pipeline-tag.warm {
  background: var(--warning-tint);
  border-color: color-mix(in srgb, var(--warning) 28%, var(--line));
  color: var(--warning);
}

.mpc-grants-screen .gtv3-pipeline-tag.label,
.mpc-grants-screen .gtv3-label-option-chip {
  --gtv3-label-accent: var(--text-muted);
  background: color-mix(in srgb, var(--gtv3-label-accent) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--gtv3-label-accent) 20%, var(--line));
  color: var(--text);
}

.mpc-grants-screen .gtv3-label-color-slate { --gtv3-label-accent: var(--text-muted); }
.mpc-grants-screen .gtv3-label-color-gray { --gtv3-label-accent: var(--text-faint); }
.mpc-grants-screen .gtv3-label-color-blue { --gtv3-label-accent: var(--programs); }
.mpc-grants-screen .gtv3-label-color-purple { --gtv3-label-accent: var(--board); }
.mpc-grants-screen .gtv3-label-color-amber { --gtv3-label-accent: var(--warning); }
.mpc-grants-screen .gtv3-label-color-green { --gtv3-label-accent: var(--success); }
.mpc-grants-screen .gtv3-label-color-burgundy { --gtv3-label-accent: var(--grants); }
.mpc-grants-screen .gtv3-label-color-navy { --gtv3-label-accent: var(--navy); }

.mpc-grants-screen .gtv3-label-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font: 700 10.5px/1.3 'Work Sans', sans-serif;
  cursor: pointer;
}

.mpc-grants-screen .gtv3-label-trigger:hover,
.mpc-grants-screen .gtv3-label-trigger:focus-visible,
.mpc-grants-screen .gtv3-label-trigger.is-open {
  border-color: color-mix(in srgb, var(--grants) 26%, var(--line));
  color: var(--grants);
  outline: none;
}

.mpc-grants-screen .gtv3-label-trigger:disabled {
  cursor: wait;
  opacity: .62;
}

.gtv3-label-popover-layer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
}

.mpc-grants-screen .gtv3-label-popover {
  position: absolute;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  overflow: auto;
  margin-top: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--navy-dark) 10%, transparent);
  cursor: default;
  pointer-events: auto;
}

.mpc-grants-screen .gtv3-label-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text-strong);
  font-size: 12px;
}

.mpc-grants-screen .gtv3-label-popover-close {
  width: 24px;
  height: 24px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}

.mpc-grants-screen .gtv3-label-list {
  display: grid;
  gap: 6px;
}

.mpc-grants-screen .gtv3-label-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}

.mpc-grants-screen .gtv3-label-option input {
  width: 14px;
  height: 14px;
  accent-color: var(--grants);
  flex: 0 0 auto;
}

.mpc-grants-screen .gtv3-label-option-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--gtv3-label-accent) 20%, var(--line));
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.mpc-grants-screen .gtv3-label-empty {
  color: var(--text-faint);
  font-size: 11.5px;
  line-height: 1.45;
}

.mpc-grants-screen .gtv3-label-create {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}

.mpc-grants-screen .gtv3-label-create-label {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mpc-grants-screen .gtv3-label-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.mpc-grants-screen .gtv3-label-create-input {
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font: 500 12px/1.3 'Work Sans', sans-serif;
}

.mpc-grants-screen .gtv3-label-create-input:focus {
  border-color: color-mix(in srgb, var(--grants) 34%, var(--line));
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--grants) 10%, transparent);
}

.mpc-grants-screen .gtv3-label-create-btn {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--grants);
  border-radius: 7px;
  background: var(--grants);
  color: var(--surface);
  font: 800 11px/1 'Work Sans', sans-serif;
  cursor: pointer;
}

.mpc-grants-screen .gtv3-label-create-btn:disabled {
  cursor: wait;
  opacity: .66;
}

.mpc-grants-screen .gtv3-label-color-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.mpc-grants-screen .gtv3-label-color-choice {
  --gtv3-label-accent: var(--text-muted);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid color-mix(in srgb, var(--gtv3-label-accent) 64%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--gtv3-label-accent) 9%, var(--surface));
  cursor: pointer;
}

.mpc-grants-screen .gtv3-label-color-choice.gtv3-label-color-slate { --gtv3-label-accent: var(--text-muted); }
.mpc-grants-screen .gtv3-label-color-choice.gtv3-label-color-gray { --gtv3-label-accent: var(--text-faint); }
.mpc-grants-screen .gtv3-label-color-choice.gtv3-label-color-blue { --gtv3-label-accent: var(--programs); }
.mpc-grants-screen .gtv3-label-color-choice.gtv3-label-color-purple { --gtv3-label-accent: var(--board); }
.mpc-grants-screen .gtv3-label-color-choice.gtv3-label-color-amber { --gtv3-label-accent: var(--warning); }
.mpc-grants-screen .gtv3-label-color-choice.gtv3-label-color-green { --gtv3-label-accent: var(--success); }
.mpc-grants-screen .gtv3-label-color-choice.gtv3-label-color-burgundy { --gtv3-label-accent: var(--grants); }
.mpc-grants-screen .gtv3-label-color-choice.gtv3-label-color-navy { --gtv3-label-accent: var(--navy); }

.mpc-grants-screen .gtv3-label-color-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.mpc-grants-screen .gtv3-label-color-choice span {
  width: 14px;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gtv3-label-accent);
  color: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--navy-dark) 16%, transparent);
}

.mpc-grants-screen .gtv3-label-color-choice:has(input:checked) {
  border-color: var(--gtv3-label-accent);
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px color-mix(in srgb, var(--gtv3-label-accent) 36%, transparent);
}

.mpc-grants-screen .gtv3-label-color-choice:has(input:checked)::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 9px;
  border: solid var(--surface);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

.mpc-grants-screen .gtv3-label-error {
  margin-top: 8px;
  color: var(--danger);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
}

.mpc-grants-screen .gtv3-pipeline-card-next {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.45;
}

.mpc-grants-screen .gtv3-pipeline-card-next b {
  display: block;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mpc-grants-screen .gtv3-pipeline-empty {
  padding: 14px 13px 18px;
  color: color-mix(in srgb, var(--text-faint) 78%, var(--line));
  font-size: 12px;
  line-height: 1.5;
}

.mpc-grants-screen .gtv3-pipeline-outcomes {
  margin-top: 22px;
}

.mpc-grants-screen .gtv3-pipeline-outcomes-label {
  margin-bottom: 10px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mpc-grants-screen .gtv3-pipeline-outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mpc-grants-screen .gtv3-pipeline-outcome-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.mpc-grants-screen .gtv3-pipeline-outcome-tile:hover,
.mpc-grants-screen .gtv3-pipeline-outcome-tile:focus-visible,
.mpc-grants-screen .gtv3-pipeline-outcome-tile.is-active {
  border-color: color-mix(in srgb, var(--gtv3-outcome-accent, var(--grants)) 30%, var(--line));
  background: color-mix(in srgb, var(--gtv3-outcome-accent, var(--grants)) 6%, var(--surface));
  outline: none;
}

.mpc-grants-screen .gtv3-pipeline-outcome-tile.approved {
  --gtv3-outcome-accent: var(--success);
}

.mpc-grants-screen .gtv3-pipeline-outcome-tile.rejected {
  --gtv3-outcome-accent: var(--danger);
}

.mpc-grants-screen .gtv3-pipeline-outcome-tile.previous {
  --gtv3-outcome-accent: var(--text-faint);
}

.mpc-grants-screen .gtv3-pipeline-outcome-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--gtv3-outcome-accent, var(--text-faint));
}

.mpc-grants-screen .gtv3-pipeline-outcome-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.mpc-grants-screen .gtv3-pipeline-outcome-name {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
}

.mpc-grants-screen .gtv3-pipeline-outcome-sub {
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

.mpc-grants-screen .gtv3-pipeline-outcome-arrow {
  margin-left: auto;
  color: color-mix(in srgb, var(--text-faint) 58%, var(--line));
  font-size: 18px;
  line-height: 1;
}

.mpc-grants-screen .gtv3-pipeline-outcome-list-shell {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.mpc-grants-screen .gtv3-pipeline-outcome-list-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
}

.mpc-grants-screen .gtv3-pipeline-back {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  font: 800 12px/1 'Work Sans', sans-serif;
  cursor: pointer;
}

.mpc-grants-screen .gtv3-pipeline-back:hover,
.mpc-grants-screen .gtv3-pipeline-back:focus-visible {
  border-color: color-mix(in srgb, var(--grants) 28%, var(--line));
  color: var(--grants);
  outline: none;
}

.mpc-grants-screen .gtv3-pipeline-outcome-list-title {
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.mpc-grants-screen .gtv3-pipeline-outcome-list-sub {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 600;
}

.mpc-grants-screen .gtv3-pipeline-outcome-list {
  display: grid;
  gap: 0;
  max-height: 520px;
  overflow-y: auto;
}

.mpc-grants-screen .gtv3-pipeline-outcome-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.mpc-grants-screen .gtv3-pipeline-outcome-row:last-child {
  border-bottom: 0;
}

.mpc-grants-screen .gtv3-pipeline-outcome-row:hover,
.mpc-grants-screen .gtv3-pipeline-outcome-row:focus-visible {
  background: color-mix(in srgb, var(--hover) 52%, var(--surface));
  outline: none;
}

.mpc-grants-screen .gtv3-pipeline-outcome-row-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mpc-grants-screen .gtv3-pipeline-outcome-row-title {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.mpc-grants-screen .gtv3-pipeline-outcome-row-funder,
.mpc-grants-screen .gtv3-pipeline-outcome-row-date {
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}

.mpc-grants-screen .gtv3-pipeline-outcome-row-labels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.mpc-grants-screen .gtv3-pipeline-outcome-row-meta {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.mpc-grants-screen .gtv3-pipeline-outcome-row-amount {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 800;
}

.mpc-grants-screen .gtv3-pipeline-outcome-row-amount.is-empty {
  color: var(--text-faint);
  font-weight: 700;
}

.mpc-grants-screen .gtv3-pipeline-outcome-empty {
  padding: 22px 16px;
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.5;
}

.mpc-grants-screen .gtv3-pipeline-analytics {
  display: block !important;
  margin-top: 18px;
}

.mpc-grants-screen .gtv3-analytics-row {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(240px, .8fr) minmax(360px, 1.2fr);
  gap: 14px;
  align-items: stretch;
}

.mpc-grants-screen .gtv3-analytics-stack {
  display: contents;
}

.mpc-grants-screen .gtv3-analytics-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.mpc-grants-screen .gtv3-analytics-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.mpc-grants-screen .gtv3-analytics-title {
  color: var(--text-strong);
  font: 800 15px/1.25 var(--font-display);
}

.mpc-grants-screen .gtv3-analytics-sub {
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.mpc-grants-screen .gtv3-analytics-calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mpc-grants-screen .gtv3-analytics-nav-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  font: 800 13px/1 var(--font-ui);
  cursor: pointer;
}

.mpc-grants-screen .gtv3-analytics-nav-btn:hover,
.mpc-grants-screen .gtv3-analytics-nav-btn:focus-visible {
  border-color: color-mix(in srgb, var(--grants) 28%, var(--line));
  color: var(--grants);
  outline: none;
}

.mpc-grants-screen .gtv3-analytics-month {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.mpc-grants-screen .gtv3-analytics-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 6px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.mpc-grants-screen .gtv3-analytics-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.mpc-grants-screen .gtv3-analytics-day {
  min-height: 42px;
  display: grid;
  align-content: space-between;
  justify-items: center;
  padding: 6px 4px 5px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: color-mix(in srgb, var(--hover) 42%, var(--surface));
  color: var(--text-muted);
}

.mpc-grants-screen .gtv3-analytics-day.is-outside {
  opacity: .46;
}

.mpc-grants-screen .gtv3-analytics-day.is-today {
  border-color: color-mix(in srgb, var(--navy) 34%, var(--line));
  background: color-mix(in srgb, var(--navy) 5%, var(--surface));
}

.mpc-grants-screen .gtv3-analytics-day-number {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mpc-grants-screen .gtv3-analytics-day.is-today .gtv3-analytics-day-number {
  background: var(--navy);
  color: var(--surface);
}

.mpc-grants-screen .gtv3-analytics-day-dots {
  min-height: 7px;
  display: inline-flex;
  justify-content: center;
  gap: 4px;
}

.mpc-grants-screen .gtv3-analytics-dot,
.mpc-grants-screen .gtv3-analytics-legend-swatch {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 999px;
  background: var(--text-faint);
}

.mpc-grants-screen .gtv3-analytics-dot.deadline,
.mpc-grants-screen .gtv3-analytics-legend-swatch.deadline {
  background: var(--danger);
}

.mpc-grants-screen .gtv3-analytics-dot.reminder,
.mpc-grants-screen .gtv3-analytics-legend-swatch.reminder {
  background: var(--warning);
}

.mpc-grants-screen .gtv3-analytics-legend-swatch.today {
  background: var(--navy);
}

.mpc-grants-screen .gtv3-analytics-legend-swatch.requested {
  width: 12px;
  border-radius: 3px;
  background: var(--text-faint);
}

.mpc-grants-screen .gtv3-analytics-legend-swatch.awarded {
  width: 12px;
  border-radius: 3px;
  background: var(--grants);
}

.mpc-grants-screen .gtv3-analytics-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
}

.mpc-grants-screen .gtv3-analytics-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mpc-grants-screen .gtv3-analytics-empty {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--hover) 44%, var(--surface));
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.45;
}

.mpc-grants-screen .gtv3-awards-chart {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 154px;
  align-items: end;
}

.mpc-grants-screen .gtv3-awards-group {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.mpc-grants-screen .gtv3-awards-bars {
  height: 112px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  padding: 8px 7px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: color-mix(in srgb, var(--hover) 52%, var(--surface));
}

.mpc-grants-screen .gtv3-awards-bar {
  width: 18px;
  height: var(--bar-height, 0%);
  min-height: 0;
  border-radius: 5px 5px 2px 2px;
}

.mpc-grants-screen .gtv3-awards-bar.requested {
  background: color-mix(in srgb, var(--text-faint) 60%, var(--line));
}

.mpc-grants-screen .gtv3-awards-bar.awarded {
  background: var(--grants);
}

.mpc-grants-screen .gtv3-awards-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.mpc-grants-screen .gtv3-awards-value {
  color: var(--text-faint);
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.mpc-grants-screen .gtv3-portfolio-mix {
  display: grid;
  gap: 10px;
}

.mpc-grants-screen .gtv3-portfolio-row {
  display: grid;
  grid-template-columns: minmax(108px, .8fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.mpc-grants-screen .gtv3-portfolio-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.mpc-grants-screen .gtv3-portfolio-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--stage-dot, var(--text-faint));
}

.mpc-grants-screen .gtv3-portfolio-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, var(--surface));
}

.mpc-grants-screen .gtv3-portfolio-fill {
  display: block;
  width: var(--mix-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--grants);
}

.mpc-grants-screen .gtv3-portfolio-count {
  min-width: 20px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mpc-grants-screen .gtv3-pipeline-analytics[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .mpc-grants-screen .gtv3-analytics-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .mpc-grants-screen .gtv3-analytics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mpc-grants-screen .gtv3-analytics-card[aria-label="Portfolio mix by stage"] {
    grid-column: 1 / -1;
  }
}

.mpc-grants-screen .nudge {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px dashed color-mix(in srgb, var(--grants) 28%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--grants-tint) 64%, var(--surface));
}

.mpc-grants-screen .nudge-ring {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 55%, transparent 57%),
    conic-gradient(var(--success) var(--profile-complete, 0%), var(--line) 0);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.mpc-grants-screen .nudge-copy {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.mpc-grants-screen .nudge-copy strong {
  display: block;
  color: var(--text-strong);
}

.mpc-grants-screen .grants-results {
  display: grid;
  gap: 12px;
}

.mpc-grants-screen .opp {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.mpc-grants-screen .opp[data-grant-opportunity-card] {
  cursor: pointer;
}

.mpc-grants-screen .opp[data-grant-opportunity-card]:hover,
.mpc-grants-screen .opp[data-grant-opportunity-card]:focus-visible {
  border-color: color-mix(in srgb, var(--grants) 24%, var(--line));
  outline: none;
}

.mpc-grants-screen .opp.warm {
  border-left-color: var(--warning);
}

.mpc-grants-screen .opp.hot {
  border-left-color: var(--danger);
}

.mpc-grants-screen .opp-inner {
  padding: 18px 20px 16px;
}

.mpc-grants-screen .opp-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s4);
  align-items: start;
}

.mpc-grants-screen .opp-agency,
.mpc-grants-screen .funder {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mpc-grants-screen .opp-title,
.mpc-grants-screen .title {
  margin-top: 3px;
  color: var(--text-strong);
  font: 700 17px/1.18 var(--font-display);
  letter-spacing: 0;
}

.mpc-grants-screen .fitbadge,
.mpc-grants-screen .fit {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: var(--r-pill, 999px);
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 700;
}

.mpc-grants-screen .fitbadge.good,
.mpc-grants-screen .fit.good,
.mpc-grants-screen .fit.strong {
  background: var(--success-tint);
  color: var(--success);
}

.mpc-grants-screen .fitbadge.mid,
.mpc-grants-screen .fit.possible {
  background: var(--warning-tint);
  color: var(--warning);
}

.mpc-grants-screen .opp-fitcols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr);
  gap: 14px;
  margin-top: 14px;
}

.mpc-grants-screen .opp-fitcols.single {
  grid-template-columns: minmax(0, 1fr);
}

.mpc-grants-screen .ficol {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--hover);
  padding: 11px 12px;
}

.mpc-grants-screen .ficol.watch {
  background: var(--warning-tint);
  border-color: color-mix(in srgb, var(--warning) 28%, var(--line));
}

.mpc-grants-screen .fihead {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.mpc-grants-screen .ficol ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 17px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.mpc-grants-screen .ficol li::marker {
  color: var(--grants);
}

.mpc-grants-screen .ficol.watch li::marker {
  color: var(--warning);
}

.mpc-grants-screen .opp-trust {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
}

.mpc-grants-screen .opp-trust svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--success);
}

.mpc-grants-screen .opp-foot,
.mpc-grants-screen .opp-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.mpc-grants-screen .opp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  min-width: 0;
}

.mpc-grants-screen .metablk,
.mpc-grants-screen .meta-block {
  min-width: 130px;
}

.mpc-grants-screen .meta-label {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mpc-grants-screen .meta-value {
  margin-top: 2px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 600;
}

.mpc-grants-screen .opp-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
  flex: 0 0 auto;
}

.mpc-grants-screen .gt-report-problem-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  border: 0;
  background: transparent;
  color: #8A94A6;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  padding: 0;
}

.mpc-grants-screen .gt-report-problem-link svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  stroke: currentColor;
}

.mpc-grants-screen .gt-report-problem-link:hover,
.mpc-grants-screen .gt-report-problem-link:focus-visible {
  color: #8B2635;
  outline: none;
}

.mpc-grants-screen .gt-pass-feedback-prompt {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #E2E6EE;
  border-radius: 10px;
  background: #F7F8FA;
}

.mpc-grants-screen .gt-pass-feedback-copy {
  color: #37496B;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}

.mpc-grants-screen .gt-pass-feedback-copy strong {
  color: #37496B;
}

.mpc-grants-screen .gt-pass-feedback-copy span {
  color: #8A94A6;
  font-weight: 500;
  margin-left: 3px;
}

.mpc-grants-screen .gt-pass-feedback-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.mpc-grants-screen .gt-pass-feedback-chip {
  border: 1px solid #D6DCE8;
  border-radius: 999px;
  background: #FFFFFF;
  color: #5A647A;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 13px;
}

.mpc-grants-screen .gt-pass-feedback-chip:hover,
.mpc-grants-screen .gt-pass-feedback-chip:focus-visible {
  border-color: #8B2635;
  color: #8B2635;
  outline: none;
}

.mpc-grants-screen .gt-pass-feedback-skip {
  display: inline-flex;
  margin-top: 11px;
  border: 0;
  background: transparent;
  color: #8A94A6;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 0;
}

.mpc-grants-screen .gt-report-problem-panel {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid #E2E6EE;
  border-radius: 12px;
  background: #FFFFFF;
}

.mpc-grants-screen .gt-report-problem-panel h3 {
  margin: 0;
  color: #111E3A;
  font: 700 15px/1.25 var(--font-display);
}

.mpc-grants-screen .gt-report-problem-sub {
  margin-top: 3px;
  color: #8A94A6;
  font-size: 12px;
  line-height: 1.5;
}

.mpc-grants-screen .gt-report-problem-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mpc-grants-screen .gt-report-problem-chip {
  border: 1px solid #D6DCE8;
  border-radius: 8px;
  background: #FFFFFF;
  color: #5A647A;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  padding: 8px 13px;
}

.mpc-grants-screen .gt-report-problem-chip:hover,
.mpc-grants-screen .gt-report-problem-chip:focus-visible {
  border-color: #8B2635;
  color: #8B2635;
  outline: none;
}

.mpc-grants-screen .gt-report-problem-chip.is-selected {
  border-color: #8B2635;
  background: #F2E8EA;
  color: #8B2635;
}

.mpc-grants-screen .gt-report-problem-note {
  width: 100%;
  min-height: 62px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #D6DCE8;
  border-radius: 9px;
  color: #2A3445;
  font: 400 12.5px/1.45 var(--font-body);
  resize: vertical;
}

.mpc-grants-screen .gt-report-problem-note:focus {
  border-color: #8B2635;
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 38, 53, .10);
}

.mpc-grants-screen .gt-report-problem-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.mpc-grants-screen .gt-report-problem-submit {
  border: 0;
  border-radius: 8px;
  background: #8B2635;
  color: #FFFFFF;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
}

.mpc-grants-screen .gt-report-problem-submit[disabled] {
  cursor: default;
  opacity: .62;
}

.mpc-grants-screen .gt-report-problem-cancel {
  border: 0;
  background: transparent;
  color: #8A94A6;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 0;
}

.mpc-grants-screen .saved-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 8px;
}

.mpc-grants-screen .saved-chips .lab {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-right: 3px;
}

.mpc-grants-screen .schip {
  display: inline-flex;
  align-items: stretch;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill, 999px);
  background: var(--surface);
  overflow: hidden;
}

.mpc-grants-screen .schip-main,
.mpc-grants-screen .schip .x {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.mpc-grants-screen .schip-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
}

.mpc-grants-screen .schip-main small {
  max-width: 220px;
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpc-grants-screen .schip .x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  border-left: 1px solid var(--hairline);
  color: var(--text-faint);
  font-size: 16px;
  font-weight: 700;
}

.mpc-grants-screen .browse-panel,
.mpc-grants-screen .filtbar {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: none;
  margin: 16px 0;
  padding: 16px 18px;
}

.mpc-grants-screen .browse-grid,
.mpc-grants-screen .filtgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mpc-grants-screen .browse-field,
.mpc-grants-screen .fld {
  min-width: 0;
}

.mpc-grants-screen .browse-label {
  display: block;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.mpc-grants-screen .browse-input,
.mpc-grants-screen .browse-select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-strong);
  padding: 0 10px;
  font-size: 13px;
}

.mpc-grants-screen .browse-actions,
.mpc-grants-screen .filt-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 13px;
}

.mpc-grants-screen .filt-foot .ct {
  color: var(--text-faint);
  font-size: 12.5px;
  font-weight: 600;
}

.mpc-grants-screen .savesearch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.mpc-grants-screen .roundup-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.mpc-grants-screen .toggle {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: var(--r-pill, 999px);
  background: var(--line);
  transition: background .16s ease;
}

.mpc-grants-screen .toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--navy-dark) 18%, transparent);
  transition: transform .16s ease;
}

.mpc-grants-screen .roundup-toggle.is-on .toggle {
  background: var(--success);
}

.mpc-grants-screen .roundup-toggle.is-on .toggle::after {
  transform: translateX(15px);
}

.mpc-grants-screen .pipeline-strip {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.mpc-grants-screen .pipeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 15px 18px;
  border-bottom: 1px solid var(--hairline);
}

.mpc-grants-screen .pipeline-title {
  color: var(--text-strong);
  font: 700 16px/1.2 var(--font-display);
}

.mpc-grants-screen .pipeline-count {
  color: var(--text-muted);
  font-size: 13px;
}

.mpc-grants-screen .pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  padding: var(--s4);
}

.mpc-grants-screen .pipe-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--grants);
  border-radius: 9px;
  background: color-mix(in srgb, var(--hover) 75%, var(--surface));
  padding: var(--s3);
}

.mpc-grants-screen .pipe-label {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mpc-grants-screen .pipe-title {
  margin-top: 5px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpc-grants-screen .pipe-meta {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpc-grants-screen .empty {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: var(--s6);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.gtd-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

.gtd-overlay.is-open {
  pointer-events: auto;
}

.gtd-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--navy-dark) 42%, transparent);
}

.gtd-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: -12px 0 40px color-mix(in srgb, var(--navy-dark) 28%, transparent);
  color: var(--text-strong);
  font-family: var(--font-ui);
}

.gtd-head {
  position: relative;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--hairline);
}

.gtd-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.gtd-close:hover,
.gtd-close:focus-visible {
  border-color: color-mix(in srgb, var(--grants) 24%, var(--line));
  color: var(--text-strong);
  outline: none;
}

.gtd-eyebrow,
.gtd-block-title,
.gtd-fact-key,
.gtd-fithead {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gtd-eyebrow,
.gtd-block-title,
.gtd-fact-key {
  color: var(--text-faint);
}

.gtd-title {
  margin: 6px 38px 0 0;
  color: var(--text-strong);
  font: 700 19px/1.3 var(--font-display);
  letter-spacing: 0;
}

.gtd-drawer .fitbadge {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  white-space: nowrap;
  border-radius: var(--r-pill, 999px);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

.gtd-drawer .fitbadge.good {
  background: var(--success-tint);
  color: var(--success);
}

.gtd-drawer .fitbadge.mid {
  background: var(--warning-tint);
  color: var(--warning);
}

.gtd-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px 26px 24px;
}

.gtd-block {
  margin-bottom: 24px;
}

.gtd-block:last-child {
  margin-bottom: 0;
}

.gtd-block-title {
  margin-bottom: 11px;
}

.gtd-fitcols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.gtd-fitcols.single {
  grid-template-columns: minmax(0, 1fr);
}

.gtd-fitcol {
  border: 1px solid var(--hairline);
  border-radius: 9px;
  padding: 13px 14px;
  background: var(--surface);
}

.gtd-fitcol.warn {
  border-color: color-mix(in srgb, var(--warning) 28%, var(--line));
  background: var(--warning-tint);
}

.gtd-fithead {
  margin-bottom: 8px;
}

.gtd-fithead.good {
  color: var(--success);
}

.gtd-fithead.warn {
  color: var(--warning);
}

.gtd-fititem {
  display: flex;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.gtd-fititem + .gtd-fititem {
  margin-top: 7px;
}

.gtd-fititem span {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--success);
}

.gtd-fititem.warn span {
  background: var(--warning);
}

.gtd-trust {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 15px;
}

.gtd-trust .opp-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.gtd-trust .opp-trust svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--success);
}

.gtd-trust-sub {
  margin-top: 7px;
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.45;
}

.gtd-source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  color: var(--grants);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.gtd-source-link:hover {
  text-decoration: underline;
}

.gtd-source-link svg {
  width: 13px;
  height: 13px;
}

.gtd-categories {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 15px;
  background: color-mix(in srgb, var(--surface) 92%, var(--grants) 8%);
}

.gtd-category-row {
  display: grid;
  gap: 7px;
}

.gtd-category-label {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gtd-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.gtd-category-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--grants) 22%, var(--line));
  border-radius: var(--r-pill, 999px);
  padding: 5px 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.gtd-category-note {
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.45;
}

.gtd-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: var(--hairline);
}

.gtd-fact {
  min-width: 0;
  padding: 12px 14px;
  background: var(--surface);
}

.gtd-fact-value {
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.gtd-fact-value.hot {
  color: var(--danger);
}

.gtd-fact-value.warm {
  color: var(--warning);
}

.gtd-about p {
  margin: 0 0 11px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.6;
}

.gtd-about p:last-child {
  margin-bottom: 0;
}

.gtd-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--hairline);
  padding: 16px 26px;
}

.gtd-spacer {
  flex: 1 1 auto;
}

.gtd-drawer .btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--grants);
  color: var(--surface);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.gtd-drawer .btn.bghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.gtd-drawer .btn.bgrants {
  min-width: 190px;
}

.gtd-drawer .btn[disabled] {
  cursor: default;
  opacity: .62;
}

.mpc-grants-screen .endnote {
  margin: 18px 0 0;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.mpc-grants-screen .grant-draft-stub {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: var(--s6);
  box-shadow: var(--elev-page);
}

.mpc-grants-screen .grant-draft-stub__eyebrow {
  color: var(--grants);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mpc-grants-screen .grant-draft-stub__title {
  margin-top: var(--s2);
  color: var(--text-strong);
  font: 700 24px/1.15 var(--font-display);
}

.mpc-grants-screen .grant-draft-stub__copy {
  max-width: 680px;
  margin-top: var(--s2);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.mpc-grants-screen .gt-template-placeholder {
  padding: 28px 30px 40px;
}

.mpc-grants-screen .gt-template-placeholder h2 {
  margin: 0;
  color: var(--text-strong);
  font: 700 24px/1.15 var(--font-display);
  letter-spacing: 0;
}

.mpc-grants-screen .gt-template-placeholder p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.mpc-grants-screen .gt-template-screen {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 0 22px 34px;
}

.mpc-grants-screen .gt-template-head {
  margin-bottom: 16px;
}

.mpc-grants-screen .gt-template-head h1 {
  margin: 0;
  color: var(--text-strong);
  font: 700 23px/1.18 var(--font-display);
  letter-spacing: 0;
}

.mpc-grants-screen .gt-template-head .sub {
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.45;
}

.mpc-grants-screen .gt-template-autofill {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  padding: 11px 15px;
  border: 1px solid #ECE0C0;
  border-radius: 10px;
  background: #FBF9F2;
}

.mpc-grants-screen .gt-template-autofill svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: #7A5C12;
}

.mpc-grants-screen .gt-template-autofill-text {
  min-width: 0;
  color: #5A4A1E;
  font-size: 12.5px;
  line-height: 1.5;
}

.mpc-grants-screen .gt-template-autofill-text b {
  color: #7A5C12;
}

.mpc-grants-screen .gt-template-autofill-link {
  flex: 0 0 auto;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--grants);
  font: 600 12.5px/1.2 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
}

.mpc-grants-screen .gt-template-autofill-link:hover,
.mpc-grants-screen .gt-template-autofill-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.mpc-grants-screen .gt-template-seg {
  display: inline-flex;
  gap: 0;
  padding: 3px;
  border-radius: 9px;
  background: #EEF1F6;
}

.mpc-grants-screen .gt-template-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.mpc-grants-screen .gt-template-seg button {
  min-height: 31px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 14px;
  font: 600 12.5px/1 var(--font-body);
  cursor: pointer;
}

.mpc-grants-screen .gt-template-seg button.on {
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: 0 1px 2px rgba(17, 30, 58, .08);
}

.mpc-grants-screen .gt-template-new,
.mpc-grants-screen .gt-template-empty-action {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-strong);
  padding: 0 13px;
  font: 700 12.5px/1 var(--font-body);
  cursor: pointer;
}

.mpc-grants-screen .gt-template-new:hover,
.mpc-grants-screen .gt-template-new:focus-visible,
.mpc-grants-screen .gt-template-empty-action:hover,
.mpc-grants-screen .gt-template-empty-action:focus-visible {
  border-color: var(--grants);
  color: var(--grants);
  outline: none;
}

.mpc-grants-screen .gt-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mpc-grants-screen .gt-template-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 214px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 17px 18px;
}

.module-layout.grant-module-layout [data-grant-section="templates"] .gt-template-card {
  border: 1px solid #E2E6EE !important;
  background: #FFFFFF !important;
  background-image: none !important;
  box-shadow: none !important;
}

.mpc-grants-screen .gt-template-card.is-loading {
  color: var(--text-muted);
  pointer-events: none;
}

.mpc-grants-screen .gt-template-card.is-loading .gt-template-desc,
.mpc-grants-screen .gt-template-card.is-loading .gt-template-meta {
  color: var(--text-faint);
}

.mpc-grants-screen .gt-template-card:hover,
.mpc-grants-screen .gt-template-card.menuopen {
  border-color: var(--gold);
}

.module-layout.grant-module-layout [data-grant-section="templates"] .gt-template-card:hover {
  border-color: #C9A84C !important;
}

.mpc-grants-screen .gt-template-card.menuopen {
  border-color: var(--grants);
}

.module-layout.grant-module-layout [data-grant-section="templates"] .gt-template-card.menuopen {
  border-color: #8B2635 !important;
}

.mpc-grants-screen .gt-template-tag {
  align-self: flex-start;
  margin-bottom: 11px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-template-tag.narr {
  background: #F2E8EA;
  color: var(--grants);
}

.mpc-grants-screen .gt-template-tag.boil {
  background: #EFF4FB;
  color: #2B6CB0;
}

.mpc-grants-screen .gt-template-tag.budg {
  background: #F0F7F4;
  color: #1F7A52;
}

.mpc-grants-screen .gt-template-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.mpc-grants-screen .gt-template-chip-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mpc-grants-screen .gt-template-chip-row .gt-template-tag {
  margin-bottom: 0;
}

.mpc-grants-screen .gt-template-program-chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding: 3px 9px;
  border: 1px solid #D6DCE8;
  border-radius: 999px;
  background: #FFFFFF;
  color: #2A3445;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
}

.mpc-grants-screen .gt-template-program-chip::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 2px;
  opacity: .72;
  background:
    linear-gradient(#2A3445 0 0) left 0 top 0 / 4px 4px no-repeat,
    linear-gradient(#2A3445 0 0) right 0 top 0 / 4px 4px no-repeat,
    linear-gradient(#2A3445 0 0) left 0 bottom 0 / 4px 4px no-repeat,
    linear-gradient(#2A3445 0 0) right 0 bottom 0 / 4px 4px no-repeat;
}

.mpc-grants-screen .gt-template-kebab {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #E2E6EE;
  border-radius: 7px;
  background: #FFFFFF;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.mpc-grants-screen .gt-template-kebab:hover,
.mpc-grants-screen .gt-template-kebab:focus-visible {
  border-color: #C9A84C;
  color: var(--text-strong);
  outline: none;
}

.mpc-grants-screen .gt-template-action-menu {
  position: absolute;
  top: 46px;
  right: 18px;
  z-index: 6;
  width: 174px;
  overflow: hidden;
  border: 1px solid #E2E6EE;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(17, 30, 58, .13);
}

.mpc-grants-screen .gt-template-action-menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid #F2F4F8;
  background: transparent;
  color: var(--text-strong);
  padding: 10px 13px;
  font: 600 13px/1.2 var(--font-body);
  text-align: left;
  cursor: pointer;
}

.mpc-grants-screen .gt-template-action-menu-item:last-child {
  border-bottom: 0;
}

.mpc-grants-screen .gt-template-action-menu-item:hover,
.mpc-grants-screen .gt-template-action-menu-item:focus-visible {
  background: #FAFBFD;
  outline: none;
}

.mpc-grants-screen .gt-template-action-menu-item svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  stroke: var(--text-muted);
}

.mpc-grants-screen .gt-template-action-menu-item.remove {
  color: var(--grants);
}

.mpc-grants-screen .gt-template-action-menu-item.remove svg {
  stroke: var(--grants);
}

.mpc-grants-screen .gt-template-card h3 {
  margin: 0 0 5px;
  color: var(--text-strong);
  font: 700 15.5px/1.24 var(--font-display);
  letter-spacing: 0;
}

.mpc-grants-screen .gt-template-desc {
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.mpc-grants-screen .gt-template-meta {
  margin-top: 11px;
  color: var(--text-faint);
  font-size: 11.5px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.mpc-grants-screen .gt-template-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #EEF1F6;
}

.mpc-grants-screen .gt-template-preview {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: 600 12px/1 var(--font-body);
  cursor: pointer;
}

.mpc-grants-screen .gt-template-preview:hover,
.mpc-grants-screen .gt-template-preview:focus-visible {
  color: var(--text-strong);
  outline: none;
}

.mpc-grants-screen .gt-template-edit {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: 600 12px/1 var(--font-body);
  cursor: pointer;
}

.mpc-grants-screen .gt-template-edit:hover,
.mpc-grants-screen .gt-template-edit:focus-visible {
  color: var(--grants);
  outline: none;
}

.mpc-grants-screen .gt-template-use {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  border: 1px solid var(--grants);
  border-radius: 8px;
  background: var(--grants);
  color: var(--surface);
  padding: 7px 13px;
  font: 600 12.5px/1 var(--font-body);
  cursor: pointer;
}

.mpc-grants-screen .gt-template-use svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
}

.mpc-grants-screen .gt-template-use:hover,
.mpc-grants-screen .gt-template-use:focus-visible {
  border-color: color-mix(in srgb, var(--grants) 82%, var(--navy));
  background: color-mix(in srgb, var(--grants) 82%, var(--navy));
  outline: none;
}

.mpc-grants-screen .gt-template-card:not(.menuopen) .gt-template-card-foot .gt-template-use:only-child,
.mpc-grants-screen .gt-template-card:not(.menuopen) .gt-template-card-foot span:first-child + .gt-template-use {
  margin-left: auto;
}

.mpc-grants-screen .gt-template-usemenu {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.mpc-grants-screen .gt-template-usemenu-item {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #EEF1F6;
  background: transparent;
  padding: 11px 13px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.mpc-grants-screen .gt-template-usemenu-item:last-child {
  border-bottom: 0;
}

.mpc-grants-screen .gt-template-usemenu-item:hover,
.mpc-grants-screen .gt-template-usemenu-item:focus-visible {
  background: #FCFAF6;
  outline: none;
}

.mpc-grants-screen .gt-template-usemenu-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  stroke: var(--grants);
}

.mpc-grants-screen .gt-template-usemenu-item strong,
.mpc-grants-screen .gt-template-usemenu-item small {
  display: block;
}

.mpc-grants-screen .gt-template-usemenu-item strong {
  color: var(--text-strong);
  font-size: 13px;
  line-height: 1.25;
}

.mpc-grants-screen .gt-template-usemenu-item small {
  margin-top: 1px;
  color: var(--text-faint);
  font-size: 11.5px;
  line-height: 1.35;
}

.mpc-grants-screen .gt-template-use-overlay {
  align-items: flex-start;
  padding-top: clamp(72px, 12vh, 130px);
}

.mpc-grants-screen .gt-template-use-modal {
  max-width: 560px;
  max-height: calc(100vh - 112px);
}

.gt-save-template-overlay,
.mpc-grants-screen .gt-template-use-overlay {
  overflow: auto;
}

.gt-save-template-overlay {
  align-items: flex-start;
  padding: clamp(72px, 12vh, 124px) 20px 30px;
}

.gt-save-template-modal {
  width: min(600px, 100%);
  max-height: calc(100vh - 112px);
  overflow: auto;
  border: 1px solid #E2E6EE;
  border-radius: 14px;
  background: #FFFFFF;
  padding: 24px 26px;
}

.gt-save-template-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.gt-save-template-head .gt-template-use-copy {
  margin: 4px 0 0;
}

.gt-save-template-source {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #F6F7FA;
  color: #5A647A;
  font-size: 11px;
  font-weight: 700;
}

.gt-save-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gt-save-template-modal .modal-save {
  border: 1px solid #8B2635;
  background: #8B2635;
  color: #FFFFFF;
}

.gt-save-template-modal .modal-save:hover,
.gt-save-template-modal .modal-save:focus-visible {
  border-color: #741F2C;
  background: #741F2C;
}

.gt-template-description-input {
  min-height: 72px;
  resize: vertical;
}

.gt-template-description-help {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-top: 5px;
  color: var(--text-faint);
  font-size: 11.5px;
  line-height: 1.45;
}

.gt-template-description-counter {
  flex: 0 0 auto;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gt-template-description-counter.near-limit {
  color: #9B6A14;
}

.gt-template-description-counter.at-limit {
  color: var(--grants);
  font-weight: 700;
}

.mpc-grants-screen .gt-template-program-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.mpc-grants-screen .gt-template-program-filter select {
  min-height: 34px;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--text-strong);
  padding: 0 10px;
  font: 600 12.5px/1 var(--font-body);
}

.modal-save.danger {
  border-color: var(--grants);
  background: var(--grants);
  color: #FFFFFF;
}

.modal-save.danger:hover,
.modal-save.danger:focus-visible {
  border-color: color-mix(in srgb, var(--grants) 82%, var(--navy));
  background: color-mix(in srgb, var(--grants) 82%, var(--navy));
}

.mpc-grants-screen .gt-template-editor-overlay {
  align-items: flex-start;
  overflow: auto;
  padding: clamp(76px, 10vh, 118px) 16px 30px;
}

.mpc-grants-screen .gt-template-editor-modal {
  width: min(1180px, 100%);
  max-height: calc(100vh - 118px);
  overflow: auto;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(17, 30, 58, .28);
}

.mpc-grants-screen .gt-template-editor-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.mpc-grants-screen .gt-template-editor-head .gt-template-use-copy {
  margin: 4px 0 0;
}

.mpc-grants-screen .gt-template-editor-mount {
  padding: 16px;
}

.mpc-grants-screen .gt-template-editor-guidance {
  margin: 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.mpc-grants-screen .gt-template-use-copy,
.mpc-grants-screen .gt-template-use-help {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.mpc-grants-screen .gt-template-use-copy {
  margin: -10px 0 14px;
}

.mpc-grants-screen .gt-template-use-help {
  margin-top: 7px;
}

.mpc-grants-screen .gt-template-dialog-preview {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 92%, var(--hover));
}

.mpc-grants-screen .gt-template-dialog-preview .gt-template-preview-copy {
  max-height: 220px;
  overflow: auto;
  white-space: normal;
}

.mpc-grants-screen .gt-template-dialog-preview .gt-template-preview-copy p,
.mpc-grants-screen .gt-template-dialog-preview .gt-template-preview-copy ul {
  margin: 0 0 10px;
}

.mpc-grants-screen .gt-template-dialog-preview .gt-template-preview-copy p:last-child,
.mpc-grants-screen .gt-template-dialog-preview .gt-template-preview-copy ul:last-child {
  margin-bottom: 0;
}

.mpc-grants-screen .gt-template-composer-textarea {
  min-height: 170px;
}

.mpc-grants-screen .gt-template-composer-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.mpc-grants-screen .gt-template-empty-action {
  margin-top: 14px;
}

.mpc-grants-screen .pagination {
  display: flex;
  justify-content: flex-end;
  gap: var(--s2);
  margin-top: var(--s4);
}

.mpc-grants-screen .pagination button,
.mpc-grants-screen .pagination span {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.mpc-grants-screen .pagination button.is-active {
  background: var(--grants);
  border-color: var(--grants);
  color: var(--surface);
}

#view-grants [data-grant-section="funders"] > .gt-section-head .page-btn.primary {
  display: none;
}

#view-grants [data-grant-section="funders"] .gt-funder-relationship-grid.gt-funders-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 20px;
}

#view-grants [data-grant-section="funders"] .gt-funder-relationship-card {
  gap: 4px;
  min-height: 112px;
  padding: 15px 16px;
  border: 1px solid var(--line) !important;
  border-radius: 8px;
  background: var(--surface) !important;
  box-shadow: none !important;
}

#view-grants [data-grant-section="funders"] .gt-funder-relationship-card .gt-metric-label {
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#view-grants [data-grant-section="funders"] .gt-funder-relationship-card .gt-metric-value {
  margin-top: 4px;
  color: var(--text-strong);
  font: 700 25px/1.12 var(--font-display);
  font-variant-numeric: tabular-nums;
}

#view-grants [data-grant-section="funders"] .gt-funder-relationship-card .gt-metric-value.warn {
  color: var(--warning);
}

#view-grants [data-grant-section="funders"] .gt-funder-relationship-card .gt-metric-note {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.mpc-grants-screen .gt-funders-directory {
  display: grid;
  gap: 14px;
}

.mpc-grants-screen .gt-funders-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.mpc-grants-screen .gt-funders-toolbar--empty {
  justify-content: flex-end;
}

.mpc-grants-screen .gt-funders-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 220px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
}

.mpc-grants-screen .gt-funders-search-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: color-mix(in srgb, var(--navy) 45%, var(--text-muted));
}

.mpc-grants-screen .gt-funders-search-icon svg {
  width: 15px;
  height: 15px;
}

.mpc-grants-screen .gt-funders-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 13px;
}

.mpc-grants-screen .gt-funders-search input::placeholder {
  color: var(--text-muted);
}

.mpc-grants-screen .gt-funders-filter {
  min-height: 38px;
  max-width: 190px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-strong);
  font-size: 12.5px;
  font-weight: 700;
}

.mpc-grants-screen .gt-funders-filter-combo {
  position: relative;
  flex: 0 1 190px;
  max-width: 210px;
}

.mpc-grants-screen .gt-funders-filter-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-strong);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.mpc-grants-screen .gt-funders-filter-trigger span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpc-grants-screen .gt-funders-filter-trigger:hover,
.mpc-grants-screen .gt-funders-filter-trigger:focus-visible,
.mpc-grants-screen .gt-funders-filter-combo.is-open .gt-funders-filter-trigger {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 10%, transparent);
}

.mpc-grants-screen .gt-funders-filter-trigger.is-selected {
  border-color: color-mix(in srgb, var(--grants) 45%, var(--line));
  color: var(--grants);
}

.mpc-grants-screen .gt-funders-filter-caret {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.mpc-grants-screen .gt-funders-filter-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  width: min(292px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--elev-overlay);
}

.mpc-grants-screen .gt-funders-filter-search {
  display: block;
  margin-bottom: 7px;
}

.mpc-grants-screen .gt-funders-filter-search input {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: color-mix(in srgb, var(--surface) 86%, var(--navy-tint, #edf1f7));
  color: var(--text-strong);
  font-size: 12.5px;
}

.mpc-grants-screen .gt-funders-filter-search input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 9%, transparent);
}

.mpc-grants-screen .gt-funders-filter-options {
  display: grid;
  gap: 3px;
  max-height: 220px;
  overflow-y: auto;
}

.mpc-grants-screen .gt-funders-filter-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-strong);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.mpc-grants-screen .gt-funders-filter-option:hover,
.mpc-grants-screen .gt-funders-filter-option:focus-visible,
.mpc-grants-screen .gt-funders-filter-option.is-active {
  background: var(--grants-tint);
  color: var(--grants);
  outline: none;
}

.mpc-grants-screen .gt-funders-filter-option--clear {
  color: var(--text-muted);
}

.mpc-grants-screen .gt-funders-filter-empty {
  padding: 12px 8px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.mpc-grants-screen .gt-funders-add {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--grants);
  border-radius: 8px;
  background: var(--grants);
  color: var(--surface);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.mpc-grants-screen .gt-funders-add:hover,
.mpc-grants-screen .gt-funders-add:focus-visible {
  border-color: color-mix(in srgb, var(--grants) 82%, var(--navy));
  background: color-mix(in srgb, var(--grants) 82%, var(--navy));
  outline: none;
}

.mpc-grants-screen .gt-funders-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mpc-grants-screen .gt-funders-table {
  min-width: 900px;
}

.mpc-grants-screen .gt-funders-row {
  display: grid;
  grid-template-columns: minmax(220px, 2.1fr) minmax(124px, 1fr) minmax(170px, 1.5fr) minmax(132px, 1.1fr) minmax(74px, .7fr) minmax(118px, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 14px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, var(--surface));
  border-left: 3px solid transparent;
  color: var(--text-muted);
}

.mpc-grants-screen .gt-funders-row:last-child {
  border-bottom: 0;
}

.mpc-grants-screen .gt-funders-row[role="button"] {
  cursor: pointer;
}

.mpc-grants-screen .gt-funders-row[role="button"]:hover,
.mpc-grants-screen .gt-funders-row[role="button"]:focus-visible {
  background: color-mix(in srgb, var(--surface) 86%, var(--grants-tint));
  outline: none;
}

.mpc-grants-screen .gt-funders-row.lapsed {
  border-left-color: var(--grants);
}

.mpc-grants-screen .gt-funders-row--head {
  min-height: 46px;
  background: color-mix(in srgb, var(--surface) 84%, var(--navy-tint, #edf1f7));
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mpc-grants-screen .gt-funders-funder {
  min-width: 0;
}

.mpc-grants-screen .gt-funders-name {
  overflow: hidden;
  color: var(--text-strong);
  font: 700 14px/1.25 var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpc-grants-screen .gt-funders-type {
  margin-top: 1px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpc-grants-screen .gt-funders-cell {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpc-grants-screen .gt-funders-range,
.mpc-grants-screen .gt-funders-grant-count {
  color: var(--text-strong);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mpc-grants-screen .gt-funders-last {
  color: var(--text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.mpc-grants-screen .gt-funders-last.never {
  color: var(--text-muted);
  font-style: italic;
}

.mpc-grants-screen .gt-funders-last.fresh {
  color: var(--success);
  font-weight: 700;
}

.mpc-grants-screen .gt-funders-rel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.mpc-grants-screen .gt-funders-rel-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.mpc-grants-screen .gt-funders-rel.active {
  background: var(--success-tint);
  color: var(--success);
}

.mpc-grants-screen .gt-funders-rel.warm {
  background: var(--warning-tint);
  color: var(--warning);
}

.mpc-grants-screen .gt-funders-rel.cold {
  background: color-mix(in srgb, var(--navy) 7%, var(--surface));
  color: var(--text-muted);
}

.mpc-grants-screen .gt-funders-rel.lapsed {
  background: var(--grants-tint);
  color: var(--grants);
}

.mpc-grants-screen .gt-funders-empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 34px 24px;
  text-align: center;
}

#gtFunderModal.modal-overlay {
  z-index: 5000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

#gtFunderModal .gt-funder-modal {
  width: min(680px, calc(100vw - 32px));
  max-width: 680px !important;
  max-height: calc(100vh - 32px) !important;
  max-height: calc(100dvh - 32px) !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
}

#gtFunderModal .gt-funder-modal-header,
#gtFunderModal .gt-funder-modal-footer {
  flex: 0 0 auto;
}

#gtFunderModal .modal-save {
  background: var(--grants) !important;
}

#gtFunderModal .modal-save:hover,
#gtFunderModal .modal-save:focus-visible {
  background: color-mix(in srgb, var(--grants) 82%, var(--navy)) !important;
}

#gtFunderModal .gt-funder-modal-body {
  min-height: 0;
  overflow-y: auto;
}

#gtFunderModal .gt-funder-chip-wrap {
  position: relative;
}

#gtFunderModal .gt-funder-chip-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 6px;
  min-height: 42px;
  max-height: 118px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: text;
  overflow-y: auto;
}

#gtFunderModal .gt-funder-chip-field:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 10%, transparent);
}

#gtFunderModal .gt-funder-chip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

#gtFunderModal .gt-funder-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 27px;
  padding: 4px 7px 4px 10px;
  border: 1px solid color-mix(in srgb, var(--grants) 16%, var(--line));
  border-radius: 999px;
  background: var(--grants-tint);
  color: var(--grants);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

#gtFunderModal .gt-funder-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#gtFunderModal .gt-funder-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--grants) 12%, transparent);
  color: var(--grants);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

#gtFunderModal .gt-funder-chip-remove:hover,
#gtFunderModal .gt-funder-chip-remove:focus-visible {
  background: var(--grants);
  color: var(--surface);
  outline: none;
}

#gtFunderModal .gt-funder-chip-input {
  flex: 1 1 130px;
  min-width: 110px;
  min-height: 27px;
  padding: 2px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-strong);
  font: inherit;
  font-size: 13px;
}

#gtFunderModal .gt-funder-chip-input::placeholder {
  color: var(--text-muted);
}

#gtFunderModal .gt-funder-chip-error {
  display: none;
  margin-top: 6px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

#gtFunderModal .gt-funder-chip-error.show {
  display: block;
}

#gtFunderModal .gt-funder-chip-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 190px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--elev-overlay);
}

#gtFunderModal .gt-funder-chip-suggestions.show {
  display: grid;
  gap: 3px;
}

#gtFunderModal .gt-funder-chip-suggestion {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 42px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-strong);
  text-align: left;
  cursor: pointer;
}

#gtFunderModal .gt-funder-chip-suggestion:hover,
#gtFunderModal .gt-funder-chip-suggestion:focus-visible,
#gtFunderModal .gt-funder-chip-suggestion.is-active {
  background: var(--grants-tint);
  outline: none;
}

#gtFunderModal .gt-funder-chip-suggestion-label {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#gtFunderModal .gt-funder-chip-suggestion-meta {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .mpc-grants-screen .gt-template-grid {
    grid-template-columns: 1fr;
  }

  .mpc-grants-screen .gt-template-screen {
    padding-inline: 18px;
  }

  .mpc-grants-screen .gt-template-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .mpc-grants-screen .gt-template-program-filter {
    width: 100%;
    margin-left: 0;
  }

  .mpc-grants-screen .gt-template-program-filter select {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mpc-grants-screen .gt-template-autofill {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .mpc-grants-screen .gt-template-autofill-link {
    margin-left: 29px;
  }

  #view-grants [data-grant-section="funders"] .gt-funder-relationship-grid.gt-funders-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mpc-grants-screen .gt-funders-table {
    min-width: 840px;
  }
}

@media (max-width: 760px) {
  .mpc-grants-screen .gt-template-screen {
    padding-inline: 12px;
  }

  .mpc-grants-screen .gt-template-seg {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mpc-grants-screen .gt-template-new {
    width: 100%;
  }

  .gt-save-template-modal {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100vh - 176px);
    max-height: calc(100dvh - 176px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 20px;
  }

  .gt-save-template-grid {
    grid-template-columns: 1fr;
  }

  .gt-save-template-head,
  .gt-template-description-help {
    align-items: stretch;
    flex-direction: column;
  }

  .mpc-grants-screen .gt-template-card-foot,
  .mpc-grants-screen .gt-template-autofill {
    align-items: stretch;
    flex-direction: column;
  }

  .mpc-grants-screen .gt-template-autofill-link {
    align-self: flex-start;
    margin-left: 0;
  }

  .mpc-grants-screen .gt-template-use {
    justify-content: center;
  }

  .mpc-grants-screen .gt-template-use-overlay {
    padding: calc(84px + env(safe-area-inset-top)) 10px calc(92px + env(safe-area-inset-bottom));
  }

  .mpc-grants-screen .gt-template-use-modal {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100vh - 176px);
    max-height: calc(100dvh - 176px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .mpc-grants-screen .gt-template-editor-overlay {
    padding: calc(84px + env(safe-area-inset-top)) 10px calc(92px + env(safe-area-inset-bottom));
  }

  .mpc-grants-screen .gt-template-editor-modal {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100vh - 176px);
    max-height: calc(100dvh - 176px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .mpc-grants-screen .gt-template-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .mpc-grants-screen .gt-template-editor-head .modal-cancel {
    width: 100%;
  }

  .mpc-grants-screen .gt-template-editor-mount {
    padding: 10px;
  }

  #view-grants [data-grant-section="funders"] .gt-funder-relationship-grid.gt-funders-kpis {
    grid-template-columns: 1fr;
  }

  .mpc-grants-screen .gt-funders-search,
  .mpc-grants-screen .gt-funders-filter,
  .mpc-grants-screen .gt-funders-filter-combo,
  .mpc-grants-screen .gt-funders-add {
    flex: 1 1 100%;
    max-width: none;
  }

  .mpc-grants-screen .gt-funders-filter-popover {
    left: 0;
    right: 0;
    width: 100%;
  }

  #gtFunderModal.modal-overlay {
    padding: 10px;
  }

  #gtFunderModal .gt-funder-modal {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100vh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
  }

  #gtFunderModal .gt-funder-modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

@media (max-width: 1020px) {
  .mpc-grants-screen .gt-discovery-settings-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .mpc-grants-screen .gt-discovery-settings-nav {
    border-right: 0;
    border-bottom: 1px solid #E2E6EE;
  }

  .mpc-grants-screen .gt-discovery-completion {
    justify-items: start;
    grid-template-columns: auto minmax(0, 1fr);
    text-align: left;
  }

  .mpc-grants-screen .gt-discovery-ring-copy {
    text-align: left;
  }

  .mpc-grants-screen .gt-discovery-ring-reviewed {
    justify-content: flex-start;
  }

  .mpc-grants-screen .gt-discovery-preview-rail {
    border-left: 0;
    border-top: 1px solid #E2E6EE;
  }

  .mpc-grants-screen .gtv3-pipeline-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mpc-grants-screen .gtv3-pipeline-board-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mpc-grants-screen .opp-fitcols,
  .mpc-grants-screen .browse-grid,
  .mpc-grants-screen .pipeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mpc-grants-screen .gt-deliv-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mpc-grants-screen .gt-report-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mpc-grants-screen .gt-report-draft-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .mpc-grants-screen .gt-report-draft-rail {
    position: static;
  }

  .mpc-grants-screen .gt-deliv-browse {
    grid-template-columns: minmax(0, 1fr);
  }

  .mpc-grants-screen .gt-report-command-lenses {
    grid-template-columns: minmax(0, 1fr);
  }

  .mpc-grants-screen .gt-report-command-lens {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .mpc-grants-screen .gt-report-command-lens:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .mpc-grants-screen .gt-discovery-settings-page {
    padding: 12px;
  }

  .mpc-grants-screen .gt-discovery-onramp-page {
    padding: 12px;
  }

  .mpc-grants-screen .gt-discovery-onramp-card {
    padding: 20px;
  }

  .mpc-grants-screen .gt-discovery-onramp-known-row,
  .mpc-grants-screen .gt-discovery-onramp-sample,
  .mpc-grants-screen .gt-discovery-onramp-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mpc-grants-screen .gt-discovery-onramp-known-value,
  .mpc-grants-screen .gt-discovery-onramp-band {
    margin-left: 0;
    text-align: left;
  }

  .mpc-grants-screen .gt-discovery-onramp-add-wrap {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .mpc-grants-screen .gt-discovery-onramp-add-wrap input,
  .mpc-grants-screen .gt-discovery-onramp-add-wrap button,
  .mpc-grants-screen .gt-discovery-onramp-go {
    width: 100%;
  }

  .mpc-grants-screen .gt-discovery-drift-banner,
  .mpc-grants-screen .gt-discovery-focus-suggestion,
  .mpc-grants-screen .gt-discovery-stale-nudge {
    align-items: flex-start;
  }

  .mpc-grants-screen .gt-discovery-stale-nudge {
    flex-direction: column;
  }

  .mpc-grants-screen .gt-discovery-drift-actions,
  .mpc-grants-screen .gt-discovery-stale-actions {
    width: 100%;
  }

  .mpc-grants-screen .gt-discovery-settings-main,
  .mpc-grants-screen .gt-discovery-preview-rail,
  .mpc-grants-screen .gt-discovery-settings-nav {
    padding: 16px;
  }

  .mpc-grants-screen .gt-discovery-form-grid,
  .mpc-grants-screen .gt-discovery-confirm-grid,
  .mpc-grants-screen .gt-discovery-choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mpc-grants-screen .gt-discovery-section-head,
  .mpc-grants-screen .gt-discovery-actions,
  .mpc-grants-screen .gt-discovery-chip-add {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
    flex-direction: column;
  }

  .mpc-grants-screen .gt-discovery-category-capture {
    grid-template-columns: minmax(0, 1fr);
  }

  .mpc-grants-screen .gt-discovery-category-suggest-btn {
    width: 100%;
  }

  .mpc-grants-screen__head,
  .mpc-grants-screen .head {
    display: block;
  }

  .mpc-grants-screen .gt-transparency-head-action {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .mpc-grants-screen .ptitle {
    font-size: 28px;
  }

  .mpc-grants-screen .hact {
    align-items: stretch;
    margin-top: var(--s4);
  }

  .mpc-grants-screen .tabs {
    overflow-x: auto;
    margin-top: var(--s4);
    padding-bottom: 1px;
  }

  .mpc-grants-screen .grant-module-tabs {
    overflow-x: auto;
    padding-right: 14px;
    padding-left: 14px;
  }

  .mpc-grants-screen .tabs button {
    flex: 0 0 auto;
  }

  .mpc-grants-screen .grant-module-tab,
  .mpc-grants-screen .grant-module-settings-btn {
    flex: 0 0 auto;
  }

  .mpc-grants-screen .grants-toolbar,
  .mpc-grants-screen .nudge,
  .mpc-grants-screen .gtv3-guided-item,
  .mpc-grants-screen .gtv3-pipeline-focus,
  .mpc-grants-screen .opp-foot,
  .mpc-grants-screen .opp-bottom,
  .mpc-grants-screen .browse-actions,
  .mpc-grants-screen .gt-report-command-head,
  .mpc-grants-screen .gt-report-command-pgrant,
  .mpc-grants-screen .gt-report-command-score-title-row,
  .mpc-grants-screen .gt-report-command-period-label,
  .mpc-grants-screen .gt-report-draft-header-main,
  .mpc-grants-screen .gt-report-draft-section-top {
    align-items: stretch;
    flex-direction: column;
  }

  .mpc-grants-screen .seg {
    width: 100%;
  }

  .mpc-grants-screen .gtv3-pipeline-head-actions {
    width: 100%;
    justify-content: stretch;
  }

  .mpc-grants-screen .gtv3-pipeline-head-actions .btn {
    flex: 1 1 auto;
  }

  .mpc-grants-screen .seg button {
    flex: 1 1 0;
  }

  .mpc-grants-screen .mauzy-note {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .mpc-grants-screen .mauzy-avatar {
    width: 38px;
    height: 38px;
  }

  #grantTrackerTransparencyModal.modal-overlay {
    padding: 18px 12px;
  }

  #grantTrackerTransparencyModal .gt-transparency-modal {
    max-height: calc(100vh - 36px) !important;
    max-height: calc(100dvh - 36px) !important;
  }

  #grantTrackerTransparencyModal .gt-transparency-modal-head {
    padding: 16px;
  }

  #grantTrackerTransparencyModal .gt-transparency-body {
    flex-direction: column;
  }

  #grantTrackerTransparencyModal .gt-transparency-tabs {
    width: 100%;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid #EDEFF3;
  }

  #grantTrackerTransparencyModal .gt-transparency-tab {
    min-height: 48px;
    justify-content: center;
    padding: 9px 8px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    font-size: 12px;
    text-align: center;
  }

  #grantTrackerTransparencyModal .gt-transparency-tab.is-active {
    border-bottom-color: #C9A84C;
  }

  #grantTrackerTransparencyModal .gt-transparency-panel {
    padding: 18px 16px;
  }

  #grantTrackerTransparencyModal .gt-transparency-modal-foot {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 16px;
  }

  #grantTrackerTransparencyModal .gt-transparency-primary {
    width: 100%;
  }

  .mpc-grants-screen .opp-top,
  .mpc-grants-screen .opp-fitcols,
  .mpc-grants-screen .browse-grid,
  .mpc-grants-screen .pipeline-grid {
    grid-template-columns: 1fr;
  }

  .mpc-grants-screen .gt-record-facetnav {
    max-width: 100%;
    overflow-x: auto;
  }

  .mpc-grants-screen .gt-record-facettab {
    flex: 0 0 auto;
  }

  .mpc-grants-screen .gt-deliv-card-top,
  .mpc-grants-screen .gt-deliv-progress-head,
  .mpc-grants-screen .gt-deliv-foot,
  .mpc-grants-screen .gt-deliv-nudge,
  .mpc-grants-screen .gt-deliv-editor-actions,
  .mpc-grants-screen .gt-report-card,
  .mpc-grants-screen .gt-report-title-row,
  .mpc-grants-screen .gt-report-actions,
  .mpc-grants-screen .gt-report-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mpc-grants-screen .gt-deliv-card-actions,
  .mpc-grants-screen .gt-deliv-chip-wrap,
  .mpc-grants-screen .gt-report-actions {
    justify-content: flex-start;
  }

  .mpc-grants-screen .gt-deliv-editor-grid,
  .mpc-grants-screen .gt-report-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mpc-grants-screen .gt-deliv-nudge .gt-record-btn {
    width: 100%;
  }

  .mpc-grants-screen .gt-report-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .mpc-grants-screen .gt-report-card-open {
    margin: 0;
    padding: 0;
  }

  .mpc-grants-screen .gt-report-draft-actions .gt-record-btn {
    flex: 1 1 auto;
  }

  .mpc-grants-screen .gt-report-draft-page {
    min-height: 0;
    padding: 22px 18px 26px;
  }

  .mpc-grants-screen .gt-report-command-health {
    align-self: flex-start;
  }

  .mpc-grants-screen .gtv3-pipeline-kpis {
    grid-template-columns: 1fr;
  }

  .mpc-grants-screen .gtv3-pipeline-board-scroll {
    grid-template-columns: 1fr;
  }

  .mpc-grants-screen .fitbadge,
  .mpc-grants-screen .fit {
    justify-self: start;
  }

  .mpc-grants-screen .opp-actions {
    width: 100%;
  }

  .mpc-grants-screen .opp-actions .btn {
    flex: 1 1 0;
  }

  .mpc-grants-screen .gt-report-problem-link {
    justify-content: center;
    width: 100%;
    margin-left: 0;
    padding-top: 4px;
  }

  .mpc-grants-screen .gt-report-problem-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mpc-grants-screen .gt-report-problem-submit,
  .mpc-grants-screen .gt-report-problem-cancel {
    width: 100%;
    text-align: center;
  }

  .mpc-grants-screen .gtv3-guided-item .btn,
  .mpc-grants-screen .gtv3-pipeline-focus .btn {
    width: 100%;
    margin-left: 0;
  }

  .gtd-drawer {
    width: 100vw;
  }

  .gtd-head,
  .gtd-body,
  .gtd-foot {
    padding-right: 18px;
    padding-left: 18px;
  }

  .gtd-fitcols,
  .gtd-facts {
    grid-template-columns: 1fr;
  }

  .gtd-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .gtd-spacer {
    display: none;
  }

  .gtd-drawer .btn.bgrants {
    width: 100%;
    min-width: 0;
  }
}
