.member-capabilities-pending [data-producer-only] {
  display: none !important;
}

.portal-farm-support-panel {
  margin-top: 16px;
  padding: clamp(16px, 2.5vw, 22px);
  overflow: visible;
}

.portal-farm-support-panel > h2 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.portal-farm-support-panel > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.portal-farm-support-panel .portal-product-list,
.portal-farm-support-panel .farm-history-list {
  margin-top: 14px;
}

.portal-farm-support-panel .portal-product-list {
  gap: 8px;
}

.portal-farm-support-panel .portal-product-row {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) minmax(220px, 1.45fr) minmax(220px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.portal-farm-support-panel .portal-product-row > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-farm-support-panel .portal-product-row .farm-checks,
.portal-farm-support-panel .portal-product-row .portal-farm-actions {
  margin: 0;
}

.portal-farm-support-panel .portal-product-row .farm-checks label {
  min-width: 0;
  margin: 0;
  padding: 7px 10px;
  line-height: 1.25;
}

.portal-farm-support-panel .portal-product-row .portal-farm-actions .btn {
  padding: 10px 13px;
  white-space: nowrap;
}

.portal-farm-support-panel .portal-product-row .portal-farm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.portal-product-remove {
  white-space: nowrap;
}

.land-provider-view .portal-farm-card {
  padding: clamp(15px, 2.5vw, 20px);
  box-shadow: 0 10px 28px rgba(8, 35, 74, .06);
}

.land-provider-view .portal-farm-head {
  align-items: flex-start;
}

.portal-farm-area {
  flex: 0 0 auto;
  color: #36594c;
  font-weight: 850;
  white-space: nowrap;
}

.land-provider-view #portalFarmHistoryPanel {
  background: #fbfefc;
}

.land-provider-view .farm-history-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.land-provider-view .farm-history-row {
  min-width: 0;
  background: #fff;
}

#nuLandShareOpportunities.app-grid {
  grid-template-columns: minmax(0, 1fr);
}

.share-opportunity-card {
  display: block;
  min-width: 0;
  padding: clamp(16px, 3vw, 24px);
}

.share-opportunity-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.share-opportunity-head h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.15;
}

.share-opportunity-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.share-opportunity-area {
  flex: 0 0 auto;
  border: 1px solid #cce4d4;
  border-radius: 15px;
  background: #f2fbf5;
  padding: 10px 13px;
  color: #075d3d;
  font-weight: 950;
  white-space: nowrap;
}

.share-opportunity-summary {
  margin: 16px 0 0;
  color: #294a48;
  line-height: 1.55;
}

.share-opportunity-facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.share-fact-chip {
  border: 1px solid #d5e5d8;
  border-radius: 999px;
  background: #f8fcf9;
  padding: 7px 10px;
  color: #36594c;
  font-size: .84rem;
  font-weight: 800;
}

.share-opportunity-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.share-opportunity-details {
  margin-top: 16px;
  padding: clamp(14px, 2.5vw, 20px);
  border: 1px solid #d5e5d8;
  border-radius: 18px;
  background: #f8fcf9;
}

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

.share-detail-group {
  min-width: 0;
  border: 1px solid #e0ece3;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
}

.share-detail-group.wide {
  grid-column: 1 / -1;
}

.share-detail-group span {
  display: block;
  margin-bottom: 5px;
  color: #60736a;
  font-size: .73rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.share-detail-group strong {
  display: block;
  overflow-wrap: anywhere;
  color: #193b31;
  line-height: 1.45;
}

.share-next-step {
  margin-top: 9px;
  padding: 10px 12px;
  border-radius: 13px;
  background: #eef7ff;
  color: #234d74;
  line-height: 1.45;
}

.share-dialog {
  border: 0;
  border-radius: 24px;
  padding: 0;
  width: min(760px, calc(100vw - 22px));
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 28px 90px rgba(5, 27, 54, .35);
}

.share-dialog::backdrop {
  background: rgba(5, 22, 42, .64);
}

.share-dialog form {
  padding: clamp(16px, 3vw, 24px);
}

.share-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.share-dialog-head h2 {
  margin: 0 0 5px;
}

.share-dialog-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.share-dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 17px;
}

.share-dialog-grid .full {
  grid-column: 1 / -1;
}

.share-choice-section {
  min-width: 0;
  margin: 0;
  border: 1px solid #d6e6da;
  border-radius: 18px;
  background: #f8fcf9;
  padding: 14px;
}

.share-choice-section legend {
  padding: 0 6px;
  color: #193b31;
  font-size: .94rem;
  font-weight: 950;
}

.share-field-help {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.share-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 11px 0 13px;
}

.share-choice-grid label,
.share-product-choices label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  border: 1px solid #d6e6da;
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
  color: #294a48;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.3;
}

.share-choice-grid label:has(input:checked),
.share-product-choices label:has(input:checked) {
  border-color: #0a8f58;
  background: #eaf8ef;
  box-shadow: 0 0 0 2px rgba(10, 143, 88, .1);
}

.share-choice-grid input,
.share-product-choices input {
  flex: 0 0 auto;
  width: auto;
  margin: 2px 0 0;
}

.share-product-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  margin: 9px 0 13px;
  padding: 8px;
  border: 1px solid #d6e6da;
  border-radius: 14px;
  background: #fff;
}

.share-product-choices .empty {
  grid-column: 1 / -1;
  padding: 12px;
}

.share-process {
  margin: 15px 0;
  padding: 13px 15px;
  border: 1px solid #cce4d4;
  border-radius: 15px;
  background: #f2fbf5;
}

.share-process strong {
  display: block;
  margin-bottom: 6px;
}

.share-process ol {
  margin: 0;
  padding-left: 20px;
  color: #36594c;
  line-height: 1.5;
}

.share-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 16px;
}

.share-form-status {
  margin-top: 12px;
}

.share-form-status:empty {
  display: none;
}

@media (max-width: 560px) {
  .share-dialog-grid,
  .share-detail-grid,
  .share-choice-grid,
  .share-product-choices {
    grid-template-columns: 1fr;
  }

  .share-dialog-grid .full {
    grid-column: auto;
  }

  .share-opportunity-head {
    display: block;
  }

  .share-opportunity-area {
    display: inline-flex;
    margin-top: 10px;
  }

  .share-detail-group.wide {
    grid-column: auto;
  }

  .share-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .share-dialog-actions .btn {
    width: 100%;
  }

  .land-provider-view .farm-history-list {
    grid-template-columns: 1fr;
  }

  .portal-farm-support-panel {
    padding: 15px;
  }

  .portal-farm-support-panel .portal-product-row {
    grid-template-columns: 1fr;
  }

  .portal-farm-support-panel .portal-product-row .portal-farm-actions .btn {
    width: 100%;
  }

  .portal-farm-support-panel .portal-product-row .portal-farm-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-farm-support-panel .portal-product-row .portal-farm-actions > * {
    width: 100%;
  }

  .portal-farm-head {
    align-items: flex-start;
  }

  .portal-farm-area {
    white-space: normal;
  }
}
