.offers-container {
  --gf-text-caption: var(--gf-text-body);
  container: offers-layout / inline-size;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: calc(100vh - 32px);
  padding: 0;
  gap: 24px;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  font-family: var(--gf-font);
}

.offers-container small,
.offers-container button,
.offers-container input,
.offers-container textarea,
.offers-container select {
  font-size: var(--gf-text-body);
}

.offers-header-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  height: auto;
  border-bottom: 1px solid #D0D5DD;
  box-sizing: border-box;
}

.offers-title {
  font-weight: var(--gf-weight-bold);
  font-size: var(--gf-text-section);
  line-height: var(--gf-leading-section);
  display: flex;
  align-items: center;
  text-align: left;
  color: #0A0A0A;
}

.offers-search-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 16px;
  gap: 12px;
  width: 320px;
  height: 44px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 24px;
  box-sizing: border-box;
}

.offers-search-icon {
  width: 24px;
  height: 24px;
  color: #101828;
}

.offers-search-input {
  flex: 1;
  background: transparent;
  border: none;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  display: flex;
  align-items: center;
  color: #101828;
  outline: none;
  font-family: inherit;
}

.offers-search-input::placeholder {
  color: #667085;
}

.offers-tabs-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px;
  gap: 24px;
  width: auto;
  max-width: 100%;
  height: 40px;
  box-sizing: border-box;
  /* Narrow screens: the tabs scroll sideways inside the row instead of widening the page. */
  overflow-x: auto;
  scrollbar-width: none;
}

.offers-tabs-row::-webkit-scrollbar {
  display: none;
}

.offers-tab {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0px 8px 12px;
  gap: 8px;
  height: 40px;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #667085;
  cursor: pointer;
  box-sizing: border-box;
}

.offers-tab.active {
  border-bottom: 4px solid #2966F4;
  color: #2966F4;
}

.offers-empty-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  padding: 32px 20px;
  gap: 8px;
  width: 100%;
  flex-grow: 1;
  text-align: center;
  box-sizing: border-box;
}

.offers-empty-illustration {
  width: 104px;
  height: 104px;
  max-width: 104px;
  max-height: 104px;
  flex: 0 0 104px;
  transform: translateY(-20%);
}

.offers-empty-illustration svg {
  width: 100%;
  height: 100%;
  display: block;
}

.offers-empty-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  gap: 8px;
  width: min(100%, 440px);
}

.offers-empty-title {
  margin-top: 8px;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #101828;
}

.offers-empty-subtitle {
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: -0.2px;
  color: #475467;
  margin: 0;
  max-width: 440px;
}

.offers-empty-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 24px;
  background: #2966F4;
  border-radius: 999px;
  border: none;
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: 1;
  text-align: center;
  letter-spacing: -0.2px;
  color: #FFFFFF;
  cursor: pointer;
  margin-top: 12px;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1), transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.offers-empty-btn:hover {
  background: #2054CC;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .offers-empty-state {
    min-height: 420px;
    padding: 24px 16px;
  }

  .offers-empty-illustration {
    width: 88px;
    height: 88px;
    max-width: 88px;
    max-height: 88px;
    flex-basis: 88px;
  }

  .offers-empty-title {
    font-size: var(--gf-text-body);
  }

  .offers-empty-subtitle {
    font-size: var(--gf-text-caption);
  }
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  width: 100%;
}

.offer-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.offer-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.offer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.offer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.offer-name {
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  color: #0A0A0A;
}

.offer-amount {
  display: flex;
  align-items: center;
  gap: 4px;
}

.offer-currency {
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #2966F4;
}

.offer-value {
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  color: #0A0A0A;
}

.offer-condition-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer-condition-title {
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  color: #0A0A0A;
}

.offer-condition-desc {
  font-size: var(--gf-text-caption);
  color: #667085;
  line-height: var(--gf-leading-caption);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: auto;
}

.offer-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0A0A0A;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
}

.offer-meta-item svg {
  color: #2966F4;
}

.offer-card-footer {
  padding: 12px 24px;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  text-align: center;
}

.offer-card.status-ongoing {
  border-color: #EEF2FF;
}
.offer-card.status-ongoing .offer-card-footer {
  background: #EEF2FF;
  color: #4F46E5;
}

.offer-card.status-achieved {
  border-color: #DCFCE7;
}
.offer-card.status-achieved .offer-card-footer {
  background: #DCFCE7;
  color: #10B981;
}

.offer-card.status-canceled {
  border-color: #FEE2E2;
}
.offer-card.status-canceled .offer-card-footer {
  background: #FEE2E2;
  color: #EF4444;
}

.offer-card.status-expired {
  border-color: #F3F4F6;
}
.offer-card.status-expired .offer-card-footer {
  background: #F3F4F6;
  color: #6B7280;
}

.offer-user-info .user-avatar-wrapper {
  margin-right: 12px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  text-align: center;
  color: #0A0A0A;
}

.offers-empty-subtitle {
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  display: flex;
  align-items: center;
  text-align: center;
  letter-spacing: -0.2px;
  color: #667085;
}

.offers-empty-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  gap: 10px;
  background: #2966F4;
  border-radius: 32px;
  border: none;
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  text-align: center;
  letter-spacing: -0.2px;
  color: #FFFFFF;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.offers-empty-btn:hover {
  background: #2054CC;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.offer-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.offer-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.offer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.offer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.offer-name {
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  color: #0A0A0A;
}

.offer-amount {
  display: flex;
  align-items: center;
  gap: 4px;
}

.offer-currency {
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #2966F4;
}

.offer-value {
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  color: #0A0A0A;
}

.offer-condition-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer-condition-title {
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  color: #0A0A0A;
}

.offer-condition-desc {
  font-size: var(--gf-text-caption);
  color: #667085;
  line-height: var(--gf-leading-caption);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: auto;
}

.offer-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0A0A0A;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
}

.offer-meta-item svg {
  color: #2966F4;
}

.offer-card-footer {
  padding: 12px 24px;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  text-align: center;
}

.offer-card.status-ongoing {
  border-color: #EEF2FF;
}
.offer-card.status-ongoing .offer-card-footer {
  background: #EEF2FF;
  color: #4F46E5;
}

.offer-card.status-achieved {
  border-color: #DCFCE7;
}
.offer-card.status-achieved .offer-card-footer {
  background: #DCFCE7;
  color: #10B981;
}

.offer-card.status-canceled {
  border-color: #FEE2E2;
}
.offer-card.status-canceled .offer-card-footer {
  background: #FEE2E2;
  color: #EF4444;
}

.offer-card.status-expired {
  border-color: #F3F4F6;
}
.offer-card.status-expired .offer-card-footer {
  background: #F3F4F6;
  color: #6B7280;
}

.offer-user-info .user-avatar-wrapper {
  margin-right: 12px;
  position: relative;
  z-index: 2;
  border-radius: 50%;
  width: 36px !important;
  height: 36px !important;
}

.offer-user-info .user-avatar-wrapper .user-avatar-inner {
  position: absolute;
  width: 80%;
  height: 80%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.offer-user-info .user-avatar-wrapper .avatar-badge {
  width: 150%;
  height: 150%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
}

.offer-card.status-response-needed {
  border-color: #FDF1D8;
}

/* Offer cards use the same 24px outer radius as overview cards, with a raised
   white content surface inset into the status-colored shell. */
.offers-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1100px) {
  .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .offers-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container offers-layout (max-width: 1100px) {
  .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container offers-layout (max-width: 680px) {
  .offers-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.offers-loading-state {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 360px;
  color: #667085;
  font-size: var(--gf-text-body);
}

.offers-loading-state .dashboard_preloader_spinner_wrapper {
  width: 44px;
  height: 44px;
}

.offers-more-error {
  margin-bottom: 10px;
  color: #b42318;
  font-size: var(--gf-text-body);
}

.collab-info-modal.offer-action-modal {
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
  max-height: calc(100dvh - 40px);
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #e7ebf2;
  box-shadow: 0 24px 72px rgba(16, 24, 40, 0.2);
}

.offer-action-modal .offer-action-modal__header {
  flex: 0 0 auto;
  min-height: 94px;
  padding: 24px 32px;
  border-bottom: 1px solid #e9edf3;
}

.offer-action-modal__header h3 {
  min-width: 0;
  color: #111827;
  font-size: var(--gf-text-title-modal);
  font-weight: var(--gf-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.offer-action-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 32px 28px;
}

.offer-action-notice {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 16px;
  background: #eaf4ff;
  color: #1764f5;
  font-size: var(--gf-text-body);
  line-height: 1.5;
}

.offer-accept-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.offer-terms-card {
  padding: 12px 20px 14px;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  background: linear-gradient(135deg, #f9fafc 0%, #f7f9fc 100%);
}

.offer-terms-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  border-bottom: 1px solid #e2e7ef;
  font-size: var(--gf-text-body);
  line-height: 1.35;
}

.offer-terms-row span {
  color: #667085;
  font-weight: var(--gf-weight-regular);
}

.offer-terms-row strong {
  color: #101828;
  font-weight: var(--gf-weight-semibold);
  text-align: right;
}

.offer-terms-description {
  margin: 0;
  padding-top: 14px;
  color: #667085;
  font-size: var(--gf-text-body);
  line-height: 1.45;
}

.offer-payout-section h4 {
  margin: 0 0 6px;
  color: #101828;
  font-size: var(--gf-text-title-card);
  font-weight: var(--gf-weight-bold);
  line-height: 1.3;
}

.offer-payout-intro {
  margin: 0 0 18px;
  color: #667085;
  font-size: var(--gf-text-body);
  line-height: 1.5;
}

.offer-payout-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  color: #667085;
  font-size: var(--gf-text-body);
}

.offer-payout-loading .global-search-loader {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.offer-payout-card {
  padding: 18px 20px;
  border: 1px solid;
  border-radius: 14px;
}

.offer-payout-card--verified {
  border-color: #8ce3b2;
  background: linear-gradient(135deg, #effbf5 0%, #f4fcf8 100%);
  color: #067647;
}

.offer-payout-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.offer-payout-check {
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #079455;
  color: #fff;
}

.offer-payout-card-heading > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.offer-payout-card-heading strong {
  color: #067647;
  font-size: var(--gf-text-title-card);
  font-weight: var(--gf-weight-bold);
  line-height: 1.3;
}

.offer-payout-card-heading > span:last-child > span {
  color: #078653;
  font-size: var(--gf-text-body);
  line-height: 1.4;
}

.offer-payout-details {
  margin: 0;
  padding: 0 0 12px;
}

.offer-payout-details > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  border-bottom: 1px solid rgba(6, 118, 71, 0.13);
  font-size: var(--gf-text-body);
  line-height: 1.35;
}

.offer-payout-details dt {
  color: #667085;
  font-weight: var(--gf-weight-regular);
}

.offer-payout-details dd {
  margin: 0;
  color: #16324f;
  font-weight: var(--gf-weight-medium);
  text-align: right;
}

.offer-payout-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #d7f5e5;
  color: #067647;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
}

.offer-payout-verified-badge span {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #079455;
  color: #fff;
  font-size: var(--gf-text-caption);
  line-height: 1;
}

.offer-payout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.offer-payout-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.offer-payout-button--manage {
  background: #078653;
  color: #fff;
}

.offer-payout-button--manage:hover {
  background: #067647;
}

.offer-payout-button--refresh {
  border-color: #8ce3b2;
  background: transparent;
  color: #078653;
}

.offer-payout-button--refresh:hover {
  background: rgba(255, 255, 255, 0.7);
}

.offer-payout-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.offer-payout-card--missing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-color: #fedf89;
  background: linear-gradient(135deg, #fffaeb 0%, #fff8e8 100%);
}

.offer-payout-card--missing > strong {
  color: #b54708;
  font-size: var(--gf-text-title-card);
  font-weight: var(--gf-weight-bold);
  line-height: 1.3;
}

.offer-payout-card--missing p {
  margin: 0 0 4px;
  color: #b54708;
  font-size: var(--gf-text-body);
  line-height: 1.5;
}

.offer-payout-card--missing .offer-payout-button--refresh {
  border-color: #fedf89;
  color: #b54708;
}

.offer-payout-card--missing .offer-payout-button--refresh:hover {
  background: #fff;
}

.offer-payout-error {
  margin: 12px 0 0;
  color: #b42318;
  font-size: var(--gf-text-body);
  line-height: 1.45;
}

.offer-action-modal .wallet-payout-setup {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  background: #fff;
}

.offer-action-modal__footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 32px;
  border-top: 1px solid #e9edf3;
  background: #fff;
}

.offer-action-modal__button {
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.offer-action-modal__button--secondary {
  background: #f2f4f7;
  color: #344054;
}

.offer-action-modal__button--secondary:hover {
  background: #e9edf2;
}

.offer-action-modal__button--primary {
  background: #2966f4;
  color: #fff;
}

.offer-action-modal__button--primary:hover {
  background: #2054cc;
}

.offer-action-modal__button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 600px) {
  .collab-info-modal.offer-action-modal {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
  }

  .offer-action-modal .offer-action-modal__header {
    min-height: 76px;
    padding: 18px 20px;
  }

  .offer-action-modal__body {
    padding: 20px;
  }

  .offer-action-modal__footer {
    padding: 14px 20px;
  }

  .offer-action-modal__button {
    flex: 1 1 auto;
    padding: 0 14px;
  }

  .offer-terms-card {
    padding-right: 14px;
    padding-left: 14px;
  }

  .offer-payout-card {
    padding: 16px 14px;
  }

  .offer-payout-details > div {
    gap: 12px;
  }
}

.collab-info-modal.offer-detail-modal {
  width: min(960px, calc(100vw - 32px));
  max-width: 960px;
  max-height: calc(100dvh - 40px);
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: 32px;
}

.offer-detail-modal__header {
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 32px;
  border-bottom: 1px solid #eef1f5;
}

.offer-detail-modal__heading {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.offer-detail-modal__eyebrow {
  color: #2966f4;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  text-transform: uppercase;
}

.offer-detail-modal__heading h2 {
  margin: 0;
  color: #101828;
  font-family: var(--gf-font);
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  line-height: var(--gf-leading-section);
  overflow-wrap: anywhere;
}

.offer-detail-modal__investor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.offer-detail-modal__avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dbe5f5;
  border-radius: 50%;
  background: #eef4ff;
  color: #2966f4;
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
}

.offer-detail-modal__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-detail-modal__investor-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  color: #667085;
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
}

.offer-detail-modal__investor-copy strong {
  color: #101828;
  font-weight: var(--gf-weight-semibold);
}

.offer-detail-modal__investor-copy span {
  overflow-wrap: anywhere;
}

.offer-detail-modal__header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}

.offer-detail-modal__status {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2459d3;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
}

.offer-detail-modal__status.is-ongoing,
.offer-detail-modal__status.is-achieved {
  background: #ecfdf3;
  color: #067647;
}

.offer-detail-modal__status.is-expired,
.offer-detail-modal__status.is-rejected,
.offer-detail-modal__status.is-canceled {
  background: #fef3f2;
  color: #b42318;
}

.offer-detail-modal__content {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  padding: 28px 32px;
  color: #101828;
  font-size: var(--gf-text-body);
}

.offer-detail-load-state {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  color: #475467;
}

.offer-detail-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid #fecdca;
  border-radius: 16px;
  background: #fff6f5;
  color: #912018;
}

.offer-detail-error button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font: inherit;
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
}

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

.offer-detail-term {
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid #e4eaf4;
  border-radius: 24px;
  background: #f8fafc;
  box-shadow: 0 3px 10px rgba(16, 24, 40, 0.04);
}

.offer-detail-term--amount {
  border-color: #d8e5ff;
  background: #f1f6ff;
}

.offer-detail-term > span,
.offer-detail-term > small {
  color: #667085;
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
}

.offer-detail-term > strong {
  color: #101828;
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-bold);
  line-height: var(--gf-leading-card);
  overflow-wrap: anywhere;
}

.offer-detail-term--amount > strong {
  color: #155eef;
  font-size: var(--gf-text-section);
  line-height: var(--gf-leading-section);
}

.offer-detail-term > small {
  text-transform: uppercase;
}

.offer-detail-section {
  padding-bottom: 22px;
  border-bottom: 1px solid #eaecf0;
}

.offer-detail-section h3,
.offer-detail-timeline h3,
.offer-detail-documents h3,
.offer-detail-workspace-section > h3 {
  margin: 0 0 12px;
  color: #101828;
  font-family: var(--gf-font);
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  line-height: var(--gf-leading-card);
}

.offer-detail-section p {
  margin: 0;
  color: #475467;
  font-size: var(--gf-text-body);
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.offer-detail-conditions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer-detail-conditions li {
  position: relative;
  min-width: 0;
  padding: 14px 16px 14px 42px;
  border: 1px solid #e4eaf4;
  border-radius: 16px;
  background: #f8fafc;
  color: #344054;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.offer-detail-conditions li::before {
  position: absolute;
  top: 15px;
  left: 16px;
  width: 10px;
  height: 10px;
  border: 3px solid #2966f4;
  border-radius: 50%;
  content: "";
}

.offer-detail-timeline {
  padding: 20px;
  border: 1px solid #dbe7ff;
  border-radius: 24px;
  background: #f4f8ff;
}

.offer-detail-timeline__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.offer-detail-timeline__items > div {
  display: grid;
  gap: 6px;
}

.offer-detail-timeline__items span {
  color: #667085;
  font-size: var(--gf-text-body);
}

.offer-detail-timeline__items strong {
  color: #101828;
  font-weight: var(--gf-weight-semibold);
}

.offer-detail-outcome {
  padding: 18px 20px;
  border: 1px solid #fecdca;
  border-radius: 20px;
  background: #fff6f5;
  color: #912018;
}

.offer-detail-outcome p {
  margin: 6px 0 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.offer-detail-documents {
  display: grid;
  gap: 10px;
}

.offer-detail-document {
  display: flex;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid #e4eaf4;
  border-radius: 16px;
  background: #fff;
  color: #2459d3;
  text-align: left;
  cursor: pointer;
}

.offer-detail-document:hover {
  background: #f6f9ff;
}

.offer-detail-document span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.offer-detail-workspace-section {
  padding: 22px;
  border: 1px solid #e4eaf4;
  border-radius: 24px;
  background: #f8fafc;
}

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

.offer-detail-workspace > section {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e4eaf4;
  border-radius: 20px;
  background: #fff;
}

.offer-detail-workspace h4 {
  margin: 0 0 12px;
  color: #101828;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
}

.offer-detail-workspace textarea,
.offer-detail-workspace input,
.offer-detail-workspace select {
  min-height: 48px;
  border: 1px solid #d0d5dd !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
  padding: 10px 14px !important;
  color: #101828;
  font: inherit;
}

.offer-detail-workspace textarea {
  min-height: 80px;
}

.offer-detail-workspace button[style] {
  min-height: 44px;
  padding: 0 18px !important;
  border-radius: 999px !important;
  font: inherit;
  font-weight: var(--gf-weight-semibold);
}

.offer-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.offer-detail-deck-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid #d8e5ff;
  border-radius: 999px;
  background: #f1f6ff;
  color: #2459d3;
  font-weight: var(--gf-weight-semibold);
  text-decoration: none;
}

.offer-detail-modal__footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 32px;
  border-top: 1px solid #eef1f5;
  background: #fff;
}

.offer-detail-modal__button {
  min-width: 124px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
}

.offer-detail-modal__button--secondary {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
}

.offer-detail-modal__button--primary {
  background: #2966f4;
  color: #fff;
}

.offer-detail-modal__button--primary:hover {
  background: #2054cc;
}

@media (max-width: 760px) {
  .collab-info-modal.offer-detail-modal {
    width: min(680px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    border-radius: 24px;
  }

  .offer-detail-modal__header,
  .offer-detail-modal__content {
    padding-right: 22px;
    padding-left: 22px;
  }

  .offer-detail-terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-detail-workspace {
    grid-template-columns: 1fr;
  }

  .offer-detail-modal__footer {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 460px) {
  .offer-detail-modal__header {
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .offer-detail-modal__header-actions {
    gap: 8px;
  }

  .offer-detail-modal__status {
    min-height: 36px;
    padding: 0 10px;
  }

  .offer-detail-terms {
    grid-template-columns: 1fr;
  }

  .offer-detail-term {
    min-height: 92px;
  }

  .offer-detail-timeline__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-detail-modal__footer {
    gap: 8px;
    padding: 14px 20px;
  }

  .offer-detail-modal__button {
    min-width: 0;
    flex: 1;
    padding: 0 12px;
  }
}

.offer-card {
  min-width: 0;
  padding: 6px;
  gap: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  box-shadow: none;
}

.offer-card.status-ongoing {
  background: #eef2ff;
}

.offer-card.status-achieved {
  background: #dcfce7;
}

.offer-card.status-canceled {
  background: #fee2e2;
}

.offer-card.status-expired {
  background: #f3f4f6;
}

.offer-card.status-rejected {
  background: #fee2e2;
}

.offer-card.status-response-needed {
  background: #fdf1d8;
}

.offer-card-body {
  min-width: 0;
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.1);
}

.offer-card-header,
.offer-user-info {
  min-width: 0;
}

.offer-card-footer,
.offer-card.status-ongoing .offer-card-footer,
.offer-card.status-achieved .offer-card-footer,
.offer-card.status-canceled .offer-card-footer,
.offer-card.status-expired .offer-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 2px 8px 0;
  background: transparent;
  text-align: left;
}

.offer-card.status-ongoing .offer-card-footer {
  color: #245fe5;
}

.offer-card.status-achieved .offer-card-footer {
  color: #047857;
}

.offer-card.status-canceled .offer-card-footer {
  color: #b42318;
}

.offer-card.status-expired .offer-card-footer {
  color: #667085;
}

.offer-card.status-rejected .offer-card-footer {
  color: #b42318;
}

.offer-card.status-response-needed .offer-card-footer {
  color: #9a5700;
}

.offer-card-footer-status {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-card-footer-status--response {
  color: #9a5700;
}

.offer-card.status-response-needed .offer-meta-row {
  width: 100%;
  align-self: stretch;
  gap: 12px;
  flex-wrap: nowrap;
}

.offer-card.status-response-needed .offer-card-action--details {
  flex: 0 0 36px;
  margin-inline-start: auto;
}

.offer-card-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.offer-card-action {
  min-height: 36px;
  padding: 0 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  cursor: pointer;
  white-space: nowrap;
}

.offer-card-action--reject {
  color: #858585;
}

.offer-card-action--reject:hover {
  color: #b42318;
}

.offer-card-action--accept {
  color: #101828;
  font-weight: var(--gf-weight-semibold);
}

.offer-card-action--accept:hover {
  color: #2966f4;
}

.offer-card-action--details {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(154, 87, 0, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #9a5700;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.offer-card-action--details:hover {
  border-color: rgba(154, 87, 0, 0.38);
  background: #fff;
  color: #754200;
}

.offer-card-action--details:focus-visible {
  outline: 3px solid rgba(41, 102, 244, 0.35);
  outline-offset: 2px;
}

.offer-card-menu {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

@media (max-width: 680px) {
  .offer-card-body {
    padding: 16px;
    border-radius: 24px;
  }
}

@media (max-width: 680px) {
  .offer-workspace-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


.offer-workspace-task-permission {
  margin: 14px 0 0;
  color: #667085;
  font-size: var(--gf-text-body, 16px);
  line-height: 1.5;
}

/* ── New since your last visit ──
   The Offers pill counts unread offer notifications, which say nothing about
   which card is new. Visiting the tab clears the pill, and the cards that
   arrived or changed since the previous visit carry this chip until they are
   opened, so "3" always has something to point at. */
.offer-new-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #2966f4;
  color: #ffffff;
  font-size: var(--gf-text-caption, 12px);
  font-weight: var(--gf-weight-semibold, 600);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
