/*
 * Shared dashboard UI for connections (network_ui.js) used by the researcher and organisation dashboards:
 * buttons, party cards (Discover / My Network), request cards (Requests), switches, chips, and modal fixes.
 * Relies on the dashboards' colour variables so it follows light and dark themes.
 */

/* ---- Modals: nothing may sit on top of the close button ------------------------------ */

.modal-content .modal-close {
  z-index: 5;
}

/* The availability badge is absolutely positioned on cards; inside a modal header it must flow normally. */
.modal-content .availability-badge {
  position: static;
  display: inline-block;
  top: auto;
  right: auto;
}

/* Neutral default for badges without an availability modifier (e.g. in request details). */
.modal-content .availability-badge:not(.available):not(.limited):not(.unavailable) {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

/* Action rows inside modals: natural-width buttons, never stretched. */
.modal-content .request-profile-actions,
.modal-content .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.modal-content .request-profile-actions .btn,
.modal-content .btn-flag-profile {
  flex: 0 0 auto;
  width: auto;
}

/* ---- Existing card grids (Discover, Saved): equal-height cards, actions pinned to the bottom ------ */

.org-grid,
.discover-researcher-grid {
  align-items: stretch;
}

.org-card {
  display: flex;
  flex-direction: column;
}

/* Leave room for the corner badge so long names never run underneath it. */
.org-card .org-header {
  padding-right: 96px;
}

.org-card .org-actions {
  margin-top: auto;
  padding-top: 16px;
}

/* Main action takes the free width next to the save/star icon, so buttons match across cards. */
.org-card .org-actions .btn:not(.btn-icon) {
  flex: 1 1 0;
  min-width: 0;
}

/* ---- Opportunity cards: equal height, one row of actions pinned to the bottom ------------------ */

.opportunities-grid {
  align-items: stretch;
}

.opportunity-card {
  display: flex;
  flex-direction: column;
}

.org-opportunity-card > div:first-child {
  flex: 1 1 auto;
}

.org-opportunity-actions,
.opp-card-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: stretch;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.org-opportunity-card .org-opportunity-actions {
  margin-top: auto;
}

.org-opportunity-actions .btn,
.opp-card-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 10px;
  font-size: 13px;
  white-space: nowrap;
}

/* ---- Buttons ------------------------------------------------------------------------- */

.nu-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nu-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nu-btn:disabled {
  cursor: default;
  opacity: 0.7;
}

.nu-btn-primary {
  background: var(--primary);
  color: #fff;
}

.nu-btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
}

.nu-btn-accept {
  background: var(--secondary);
  color: #fff;
}

.nu-btn-accept:hover:not(:disabled) {
  filter: brightness(1.08);
}

.nu-btn-decline {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}

.nu-btn-decline:hover:not(:disabled) {
  background: var(--danger-light);
}

.nu-btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.nu-btn-ghost:hover:not(:disabled) {
  background: var(--background);
  border-color: var(--text-tertiary);
}

.nu-btn-warn {
  background: var(--warning-light);
  color: var(--warning);
}

/* Quiet text-style action, e.g. "Report" */
.nu-btn-link {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 6px 8px;
  background: transparent;
  color: var(--text-tertiary);
  font-weight: 500;
}

.nu-btn-link:hover {
  color: var(--warning);
}

/* ---- Pills and tags ---------------------------------------------------------------------- */

.nu-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.nu-pill-org {
  background: var(--primary-light);
  color: var(--primary);
}

.nu-pill-researcher {
  background: var(--secondary-light);
  color: var(--secondary);
}

.nu-status-connected {
  background: var(--secondary-light);
  color: var(--secondary);
}

.nu-status-pending {
  background: var(--warning-light);
  color: var(--warning);
}

.nu-status-declined {
  background: var(--danger-light);
  color: var(--danger);
}

.nu-tag {
  max-width: 100%;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--background);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Party cards (Discover and My Network) -------------------------------------------- */

.nu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 20px;
  align-items: stretch;
}

.nu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nu-card:hover {
  box-shadow: 0 6px 18px var(--shadow);
  transform: translateY(-2px);
}

.nu-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nu-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nu-card-name {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.nu-hidden-name {
  color: var(--text-tertiary);
  font-size: 0.9em;
  font-style: italic;
  font-weight: 500;
}

.nu-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nu-card-desc,
.nu-card-line {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.nu-card-desc {
  -webkit-line-clamp: 3;
}

.nu-card-line {
  -webkit-line-clamp: 2;
  color: var(--text-tertiary);
  font-size: 13px;
}

.nu-card-foot {
  color: var(--text-tertiary);
  font-size: 12.5px;
  line-height: 1.5;
}

/* Actions are pinned to the bottom so buttons line up across a row of cards of different heights. */
.nu-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ---- Requests ---------------------------------------------------------------------------- */

.nu-requests {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.nu-req-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.nu-req-section-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.nu-count {
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.nu-req-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 16px;
  align-items: stretch;
}

.nu-req-empty {
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-tertiary);
  font-size: 14px;
  text-align: center;
}

.nu-req {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
}

.nu-req-researcher {
  border-left-color: var(--secondary);
}

.nu-req-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.nu-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.nu-avatar-researcher {
  background: var(--secondary);
}

.nu-req-id {
  flex: 1;
  min-width: 0;
}

.nu-req-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.nu-req-meta {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.nu-req-time {
  color: var(--text-tertiary);
  font-size: 12px;
  white-space: nowrap;
}

.nu-req-collab {
  color: var(--text-secondary);
  font-size: 13px;
}

.nu-req-message {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--background);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.nu-req-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.nu-req-actions .nu-btn {
  flex: 0 0 auto;
  padding: 9px 16px;
}

@media (max-width: 520px) {
  .nu-req-actions {
    flex-wrap: wrap;
  }

  .nu-req-actions .nu-btn {
    flex: 1 1 auto;
  }
}

/* ---- Kind switch (Discover) and kind chips (My Network) ---------------------------------- */

.nu-switch {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.nu-switch-btn {
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nu-switch-btn.active {
  background: var(--primary);
  color: #fff;
}

.nu-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.nu-chip {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.nu-chip.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nu-chip-count {
  opacity: 0.7;
}

.nu-root .network-tabs {
  margin-bottom: 20px;
}

.nu-badge {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  line-height: 18px;
  text-align: center;
}

/* Gap between an opportunity card's content and its action row */
.org-opportunity-card > div:first-child {
  padding-bottom: 14px;
}

/* ---- One modal layout for every profile and request detail -------------------------------------- */

.nu-profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nu-profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 40px; /* keep clear of the close button */
}

.nu-avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 30px;
}

.nu-profile-id {
  flex: 1;
  min-width: 0;
}

.nu-profile-name {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.nu-profile-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nu-profile-note {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 14px;
  line-height: 1.5;
}

.nu-profile-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px 24px;
}

.nu-profile-section.nu-wide {
  grid-column: 1 / -1;
}

.nu-profile-section h4,
.nu-profile-request h4 {
  margin: 0 0 6px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nu-profile-value {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.nu-profile-value a {
  color: var(--primary);
}

.nu-profile-collab {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.nu-profile-meta {
  color: var(--text-tertiary);
  font-size: 13px;
}

.nu-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.nu-profile-actions .nu-btn {
  flex: 0 0 auto;
  padding: 10px 18px;
}

.nu-profile-actions .nu-btn-link {
  flex: 0 0 auto;
  padding: 6px 8px;
}

@media (max-width: 520px) {
  .nu-profile-head {
    gap: 14px;
  }

  .nu-avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .nu-profile-name {
    font-size: 20px;
  }
}

/* ---- "Complete your profile" banner ---------------------------------------------------------------- */

.nudge {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 4px 0 20px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--primary-light), var(--surface) 70%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  position: relative;
}

.nudge-ring {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--pct) * 1%), var(--border) 0);
  position: relative;
}

.nudge-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--surface);
}

.nudge-ring span {
  position: relative;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.nudge-body {
  flex: 1;
  min-width: 0;
}

.nudge-title {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.nudge-sub {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.nudge-hidden {
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--warning-light);
  color: var(--warning);
  font-size: 12px;
  font-weight: 600;
}

.nudge-missing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.nudge-missing > span {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nudge-chip {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.nudge-chip:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.nudge-cta {
  flex: 0 0 auto;
  padding: 10px 20px;
  text-decoration: none;
}

.nudge-close {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 2px 6px;
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.nudge-close:hover {
  color: var(--text);
}

@media (max-width: 700px) {
  .nudge {
    flex-wrap: wrap;
    gap: 14px;
  }

  .nudge-body {
    flex-basis: calc(100% - 84px);
  }

  .nudge-cta {
    width: 100%;
  }
}

/* ---- Project teams and opportunity partners (collab_ui.js) ------------------------------------------- */

.collab-section {
  margin: 20px 0;
  padding: 18px 20px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.collab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.collab-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.collab-add {
  flex: 0 0 auto;
  padding: 8px 14px;
}

.collab-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collab-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* People list: a name with the role underneath, like a research-office project page */
.collab-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collab-person {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.collab-person:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.collab-person .collab-who {
  flex: 1 1 140px;
}

.collab-person .collab-tags,
.collab-person .collab-actions {
  flex: 1 1 100%;
  justify-content: flex-start;
  padding-left: 50px;
}

.collab-person .collab-actions {
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.collab-role {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.collab-role.is-lead {
  color: var(--primary);
  font-weight: 600;
}

.collab-avatar {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.collab-who {
  flex: 1;
  min-width: 0;
}

.collab-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.collab-name small {
  color: var(--text-tertiary);
  font-weight: 500;
}

.collab-sub,
.collab-hint {
  color: var(--text-secondary);
  font-size: 13px;
}

.collab-note {
  margin-top: 4px;
  color: var(--text-tertiary);
  font-size: 13px;
  font-style: italic;
}

.collab-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.collab-actions {
  display: flex;
  gap: 6px;
}

.collab-btn {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-size: 12px;
}

.collab-empty,
.collab-loading {
  padding: 14px;
  color: var(--text-tertiary);
  font-size: 14px;
  text-align: center;
}

.collab-foot {
  margin-top: 12px;
  text-align: right;
}

.collab-dialog h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 22px;
}

.collab-intro {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.collab-dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.collab-dialog-actions .nu-btn {
  flex: 0 0 auto;
  padding: 10px 18px;
}

.collab-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  margin: 12px 0;
  overflow-y: auto;
}

.collab-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.collab-result:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.collab-result-main {
  flex: 1;
  min-width: 0;
}

.collab-result-main strong,
.collab-result-main small {
  display: block;
}

.collab-result-main small {
  color: var(--text-secondary);
  font-size: 13px;
}

.collab-picked {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 12px 14px;
  background: var(--background);
  border-radius: var(--radius);
}

.collab-picked > div:nth-child(2) {
  flex: 1;
}

.collab-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--primary-light);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.collab-check small {
  display: block;
  color: var(--text-secondary);
  font-weight: 400;
}

.collab-check input {
  margin-top: 3px;
}

@media (max-width: 600px) {
  .collab-row {
    flex-wrap: wrap;
  }

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

.collab-add-dialog .search-input,
#collabSearch {
  width: 100%;
  box-sizing: border-box;
}

.modal-content .btn-delete-project,
.modal-content .btn-outline.btn-small {
  white-space: nowrap;
}

/* ---- Project and opportunity cards (itemCard) --------------------------------------------------------- */

.nu-status-done {
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.nu-card-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nu-item-aside {
  flex-shrink: 0;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 600;
}

.nu-item .nu-card-name {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags, progress and footer sit together at the bottom so they line up across a row of cards. */
.nu-item-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.nu-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.nu-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.nu-progress-label {
  margin-top: -6px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.nu-item .nu-card-foot {
  min-height: 1.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nu-item .nu-card-actions {
  margin-top: 0;
}

/* Incentive and organisation choices (project forms and pages) */
.dp-incentives {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dp-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.dp-check-pill:has(input:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
}
