/**
 * yellowpin-collaboration.css
 * YellowPin B2B Collaboration Hub — App-Like UI & Box Scroll System
 */

:root {
  --yp-collab-primary: #F59E0B;
  --yp-collab-primary-dark: #D97706;
  --yp-collab-navy: #0F172A;
  --yp-collab-slate: #334155;
  --yp-collab-muted: #64748B;
  --yp-collab-border: #E2E8F0;
  --yp-collab-bg-light: #F8FAFC;
  --yp-collab-green: #16A34A;
  --yp-collab-green-bg: #F0FDF4;
  --yp-collab-green-border: #86EFAC;
  --yp-collab-red: #EF4444;
}

/* ─── Main Container & Box Height Synchronization ────────────────── */
#ypCollabContainer {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

/* Guardrails: Prevent sidebar from stretching and enforce flex-start alignment */
.collaboration-dashboard .dashboard-layout {
  display: flex !important;
  align-items: flex-start !important;
}

.collaboration-dashboard .dashboard-sidebar {
  align-self: flex-start !important;
  height: auto !important;
  max-height: fit-content !important;
}

.collaboration-dashboard .dashboard-main {
  min-height: 0 !important;
  align-self: flex-start !important;
}

@media (min-width: 992px) {
  #ypCollabContainer {
    /* Height dynamically locked strictly to sidebar by yellowpin-collaboration.js */
    overflow: hidden;
  }
}

@media (max-width: 991.98px) {
  #ypCollabContainer {
    min-height: 520px;
    max-height: 85vh;
  }
}

/* ─── Inner Scroll Area ──────────────────────────────────────────── */
#ypCollabScrollArea {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 20px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 #F1F5F9;
  overscroll-behavior: auto !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

#ypCollabScrollArea::-webkit-scrollbar {
  width: 8px;
}

#ypCollabScrollArea::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 8px;
}

#ypCollabScrollArea::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 8px;
}

#ypCollabScrollArea::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ─── App Header Bar (Fixed at top of container) ─────────────────── */
.yp-collab-app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--yp-collab-border);
  padding: 18px 22px 14px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.yp-collab-app-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.yp-collab-app-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yp-collab-app-title-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FEF3C7;
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.yp-collab-app-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--yp-collab-navy);
  margin: 0;
  line-height: 1.2;
}

.yp-collab-app-subtitle {
  font-size: 12px;
  color: var(--yp-collab-muted);
  margin: 0;
}

/* ─── Search Input ───────────────────────────────────────────────── */
.yp-collab-search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 240px;
}

.yp-collab-search-icon {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  font-size: 13px;
  pointer-events: none;
}

.yp-collab-search-input {
  width: 100%;
  border: 1px solid var(--yp-collab-border);
  background: #F8FAFC;
  border-radius: 999px;
  padding: 8px 16px 8px 36px;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.yp-collab-search-input:focus {
  background: #ffffff;
  border-color: var(--yp-collab-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* ─── Mobile-App Style Segmented Control Tabs (2 Tabs Only) ────────────────────── */
.yp-segmented-tabs {
  display: flex;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  gap: 6px;
  width: 100%;
}

.yp-segment-btn {
  flex: 1 1 0;
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #64748B;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.yp-segment-btn:hover:not(.active) {
  color: #0F172A;
  background: rgba(255, 255, 255, 0.65);
}

.yp-segment-btn.active {
  background: #ffffff;
  color: #0F172A !important;
  font-weight: 700;
  border-color: #E2E8F0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.yp-segment-btn.active i {
  color: #D97706 !important;
}

.yp-segment-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #E2E8F0;
  color: #475569;
  transition: all 0.2s ease;
}

.yp-segment-btn.active .yp-segment-badge {
  background: #FFF6DD;
  color: #D97706;
}

.yp-segment-badge.badge-action-alert {
  background: #FEE2E2 !important;
  color: #DC2626 !important;
  border: 1px solid #FECACA;
}

@media (max-width: 576px) {
  .yp-segmented-tabs.yp-3-tabs {
    gap: 4px;
    padding: 3px;
  }

  .yp-segmented-tabs.yp-3-tabs .yp-segment-btn {
    padding: 8px 6px;
    font-size: 12px;
    gap: 4px;
  }

  .yp-segmented-tabs.yp-3-tabs .yp-segment-btn i {
    font-size: 11px;
  }

  .yp-segmented-tabs.yp-3-tabs .yp-segment-badge {
    font-size: 10px;
    padding: 1px 5px;
  }
}

/* ─── Top Discovery Banner ────────────────────────────────────────── */
.yp-collab-discovery-banner {
  background: linear-gradient(135deg, #FFFDF8 0%, #FFFBEB 100%);
  border: 1.5px solid #FDE68A;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.06);
}

.yp-discovery-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #FEF3C7;
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.12);
}

/* ─── Collaboration Section Headers & Badges ──────────────────────── */
.yp-collab-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  margin-bottom: 12px;
}

.yp-collab-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.yp-badge-action-required {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.yp-badge-sent-pending {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
}

.yp-badge-declined {
  background: #F3F4F6;
  color: #6B7280;
  border: 1px solid #E5E7EB;
}

.yp-proposal-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.yp-proposal-tag.incoming {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.yp-proposal-tag.outgoing {
  background: #F8FAFC;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.yp-proposal-tag.declined {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

/* ─── Declined Proposal Card ──────────────────────────────────────── */
.yp-declined-card {
  background: #FAFAFA;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 14px 20px;
  opacity: 0.94;
  transition: all 0.2s ease;
}

.yp-declined-card:hover {
  opacity: 1;
  border-color: #D1D5DB;
  background: #FFFFFF;
}

.yp-declined-reason-box {
  background: #FFF1F2;
  border: 1px solid #FFE4E6;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #9F1239;
  margin-top: 8px;
}

/* ─── Request Cards (App Style) ──────────────────────────────────── */
.yp-collab-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── Compact App-Like Ultra-Clean Request Cards ────────────────── */
.yp-collab-req-card {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #F59E0B;
  border-radius: 12px;
  padding: 11px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.yp-collab-req-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08), 0 3px 8px -2px rgba(15, 23, 42, 0.03);
  border-color: #CBD5E1;
  border-left-color: #D97706;
}

.yp-collab-req-card.yp-card-unread {
  background: #FFFDF5;
  border-color: #FABC57;
  border-left: 4px solid #FABC57;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}
.yp-collab-req-card.yp-card-read {
  background: #FFFFFF;
  border-color: #E5E7EB;
  border-left: 4px solid #D1D5DB;
}
.yp-collab-unread-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: #FABC57;
  color: #000000;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
}
.yp-collab-read-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #F2F2F2;
  color: #4A4A4A;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
}
.yp-btn-read-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F3F4F6;
  border: 1px solid #D1D5DB;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.yp-btn-read-toggle:hover {
  background: #E5E7EB;
  border-color: #9CA3AF;
  color: #000000;
}
.yp-btn-mark-all-read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.yp-btn-mark-all-read:hover {
  background: #F3F4F6;
  border-color: #111827;
  color: #000000;
}

/* Hide pills across collaboration cards for clean modern look */
.yp-status-chip,
.yp-role-pill {
  display: none !important;
}

.yp-collab-card-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.yp-collab-avatar-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 2.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.yp-collab-avatar-box:hover {
  border-color: #F59E0B;
  transform: scale(1.03);
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.15);
}

.yp-collab-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7px;
}

.yp-collab-card-main {
  flex: 1 1 auto;
  min-width: 0;
}

.yp-collab-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 1px;
}

.yp-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8.5px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.yp-role-pill.role-org {
  background: #F8FAFC;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.yp-role-pill.role-inst {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #DBEAFE;
}

/* Modern Clean Status Badges */
.yp-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3.5px 11px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.yp-status-chip.status-sent {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.05);
}

.yp-status-chip.status-action {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.05);
}

.yp-status-chip.status-active {
  background: #F1F5F9;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.yp-chip-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.yp-chip-dot.dot-amber {
  background: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.yp-chip-dot.dot-red {
  background: #94A3B8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.25);
}

.yp-chip-dot.dot-green {
  background: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

@keyframes ypPulseRed {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.35);
    opacity: 0.6;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Meta Information Row */
.yp-collab-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  color: #64748B;
  margin-top: 2px;
  margin-bottom: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.yp-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
}

.yp-meta-pill i.loc-icon {
  color: #94A3B8;
  font-size: 11px;
}

.yp-meta-pill i.vac-icon {
  color: #D97706;
  font-size: 10.5px;
}

/* Clean Note Preview Strip (No clunky left border) */
.yp-collab-quote-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 5px 10px;
  margin-top: 5px;
  font-size: 12px;
  color: #334155;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.yp-collab-req-card:hover .yp-collab-quote-strip {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.yp-quote-icon-badge {
  color: #D97706;
  font-size: 10px;
  opacity: 0.85;
  flex-shrink: 0;
}

.yp-quote-text {
  flex: 1;
  color: #334155;
  font-size: 12px;
  font-weight: 450;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card Bottom Footer Row */
.yp-collab-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 7px;
  border-top: 1px solid #F1F5F9;
  margin-top: 1px;
}

.yp-collab-time-ago {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.yp-collab-time-ago i {
  font-size: 11px;
  color: #94A3B8;
  opacity: 0.85;
}

/* Modern High-End Action Buttons */
.yp-btn-view-card {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4.5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  letter-spacing: -0.01em;
}

.yp-btn-view-card:hover {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.yp-btn-view-card i.fa-eye {
  font-size: 11.5px;
  color: #64748B;
  transition: color 0.2s ease;
}

.yp-btn-view-card:hover i.fa-eye {
  color: #FFFFFF;
}

.yp-btn-view-card i.fa-chevron-right {
  font-size: 10px;
  color: #94A3B8;
  transition: all 0.2s ease;
}

.yp-btn-view-card:hover i.fa-chevron-right {
  color: #FFFFFF;
  transform: translateX(2px);
}

.yp-btn-view-card:active {
  transform: translateY(0);
}

.yp-collab-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.yp-collab-card-content {
  flex: 1 1 auto;
  min-width: 0;
}

.yp-collab-card-top-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 4px;
}

.yp-collab-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2.5px solid #F59E0B !important;
  background: #F8FAFC;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.18);
}

.yp-stream-summary-line {
  margin: 3px 0;
}

.yp-stream-pill {
  display: inline-flex;
  align-items: center;
  background: #FFFBEB;
  color: #B45309;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #FDE68A;
  max-width: 100%;
}

.yp-stream-pill i {
  color: #D97706;
}

.yp-collab-partner-title {
  font-family: 'Plus Jakarta Sans', 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 0;
  letter-spacing: -0.015em;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.yp-collab-verified-badge {
  color: #2563EB;
  font-size: 16px;
}

.yp-collab-partner-sub {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: #475569;
}

.yp-sub-sep {
  color: #94A3B8;
  font-size: 11px;
  margin: 0 8px;
  display: inline-block;
  line-height: 1;
}

.yp-sub-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.yp-partner-link {
  cursor: pointer;
  transition: color 0.15s ease;
}

.yp-partner-link:hover,
.yp-partner-link:hover * {
  color: #F59E0B !important;
}

.yp-avatar-link {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.yp-avatar-link:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
}

.yp-sub-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

.yp-collab-card-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.4;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

.yp-msg-quote-icon {
  color: #F59E0B;
  font-size: 11px;
  flex-shrink: 0;
}

.yp-msg-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yp-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
}

.yp-meta-chip.role-inst {
  background: #EFF6FF;
  color: #1D4ED8;
}

.yp-meta-chip.role-org {
  background: #FAF5FF;
  color: #7E22CE;
}

.yp-meta-chip.loc {
  background: #F8FAFC;
  color: #64748B;
  border: 1px solid #E2E8F0;
}

.yp-meta-chip.status-proposed {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.yp-meta-chip.status-confirmed {
  background: #F1F5F9;
  color: #0F172A;
  border: 1px solid #CBD5E1;
}

/* ─── Quote Bubble / Proposal Snippet ────────────────────────────── */
.yp-collab-proposal-box {
  margin-top: 12px;
  background: #F8FAFC;
  border-left: 3px solid var(--yp-collab-primary);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--yp-collab-slate);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.yp-collab-proposal-quote {
  color: #CBD5E1;
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ─── Action Buttons ─────────────────────────────────────────────── */
.yp-collab-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.yp-btn-app-primary,
.yp-btn-app-accept,
.yp-btn-app-green,
.yp-btn-app-msg-log,
.yp-btn-app-outline-red {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  box-sizing: border-box;
  flex-shrink: 0;
  line-height: 1;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.yp-btn-app-primary {
  background: #FCC060;
  color: #0F172A !important;
  border: 1px solid #E69B26;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.2);
}

.yp-btn-app-primary:hover {
  background: #F59E0B;
  color: #000000 !important;
  border-color: #D97706;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
}

.yp-btn-app-accept,
.yp-btn-app-green {
  background: #FCC060 !important;
  color: #0F172A !important;
  border: 1px solid #E69B26 !important;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.2);
}

.yp-btn-app-accept:hover,
.yp-btn-app-green:hover {
  background: #F59E0B !important;
  color: #000000 !important;
  border-color: #D97706 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
}

.yp-btn-app-msg-log {
  background: #FFFFFF;
  color: #334155 !important;
  border: 1px solid #CBD5E1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.yp-btn-app-msg-log:hover {
  background: #F8FAFC;
  color: #0F172A !important;
  border-color: #94A3B8;
  transform: translateY(-1px);
}

.yp-btn-app-msg-log.active {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border-color: #0F172A !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.yp-btn-app-msg-log.active i {
  color: #FCD34D !important;
}

.yp-btn-app-outline-red {
  background: #FFFFFF;
  color: #DC2626 !important;
  border: 1px solid #FCA5A5;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.04);
}

.yp-btn-app-outline-red:hover {
  background: #FEF2F2;
  border-color: var(--yp-collab-red);
}

.yp-btn-view-card {
  background: #FFFFFF;
  color: #0F172A !important;
  border: 1px solid #CBD5E1;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  line-height: 1.4;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-decoration: none !important;
}

.yp-btn-view-card:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A !important;
}

.yp-btn-app-outline-gray {
  background: transparent;
  color: var(--yp-collab-muted);
  border: 1px solid var(--yp-collab-border);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  min-height: 38px;
}

/* ─── Active Hub View ────────────────────────────────────────────── */
.yp-hub-header-card {
  background: #ffffff;
  border: 1px solid var(--yp-collab-border);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.yp-hub-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.yp-hub-back-btn {
  background: #FFF6DD;
  border: 1.5px solid #FCD34D;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1E293B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.yp-hub-back-btn i {
  font-size: 13px;
  color: #B45309;
  transition: transform 0.2s ease, color 0.2s ease;
}

.yp-hub-back-btn:hover {
  background: #FEF08A;
  border-color: #F59E0B;
  color: #0F172A;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.18);
  transform: translateX(-3px);
}

.yp-hub-back-btn:hover i {
  color: #92400E;
  transform: translateX(-3px);
}

.yp-hub-back-btn:active {
  transform: translateX(-1px) scale(0.98);
}

.yp-hub-partner-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: nowrap;
}

.yp-hub-partner-info .flex-grow-1 {
  min-width: 0;
}

.yp-hub-partner-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  border: 1.5px solid #F1F5F9;
  background: #F8FAFC;
}

.yp-hub-partner-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--yp-collab-navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.yp-hub-partner-sub {
  font-size: 13px;
  color: var(--yp-collab-muted);
}

.yp-hub-sub-tabs,
.yp-hub-collab-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 4px;
  border-radius: 14px;
  margin-top: 14px;
  margin-bottom: 20px;
  width: 100%;
}

.yp-hub-tab-btn {
  border: none;
  background: transparent;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.yp-hub-tab-btn:hover {
  color: #0F172A;
  background: rgba(255, 255, 255, 0.6);
}

.yp-hub-tab-btn.active {
  background: #FFFFFF !important;
  color: #0F172A !important;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.yp-hub-tab-btn.active i {
  color: #D97706 !important;
}

.yp-hub-tab-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: #E2E8F0;
  color: #475569;
}

.yp-hub-tab-btn.active .yp-hub-tab-badge {
  background: #FEF3C7;
  color: #92400E;
}

/* ─── Drive Banners & Cards ──────────────────────────────────────── */
.yp-drive-confirmed-banner {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.yp-drive-confirmed-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #DCFCE7;
  color: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.yp-drive-proposed-card {
  background: #FFFBEB;
  border: 1.5px solid #FCD34D;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.yp-date-chip {
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 16px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #1E293B;
  user-select: none;
}

.yp-date-chip:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.yp-date-chip.active {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #92400E;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.yp-vacancies-sticky-header {
  position: sticky;
  top: -20px;
  z-index: 5;
  background: #ffffff;
  padding: 4px 0 10px;
  margin-top: -4px;
}

/* ─── Exclusive Vacancies Grid ───────────────────────────────────── */
.yp-vacancies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
  padding-bottom: 12px;
}

.yp-job-card-app {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 175px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.yp-job-card-app:hover {
  border-color: #FCD34D !important;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.12);
  transform: translateY(-2px);
}

.yp-job-role-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--yp-collab-navy);
  margin-bottom: 3px;
}

.yp-job-loc-sub {
  font-size: 12px;
  color: var(--yp-collab-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.yp-job-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.yp-job-tag-chip {
  background: #F1F5F9;
  color: #475569;
  font-size: 11px;
  font-weight: 500;
  padding: 2.5px 8px;
  border-radius: 6px;
}

.yp-job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #F1F5F9;
  padding-top: 8px;
  margin-top: 8px;
}

.yp-job-salary-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--yp-collab-navy);
}

/* ─── Candidate Roster Table Styles ──────────────────────────────── */
.yp-roster-table {
  font-size: 13px;
}

.yp-roster-table thead th {
  background: #F8FAFC;
  color: #475569;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid var(--yp-collab-border);
  white-space: nowrap;
}

.yp-roster-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.yp-roster-badge-qualified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFBEB;
  color: #92400E;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #FDE68A;
}

.yp-roster-badge-disqualified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F1F5F9;
  color: #475569;
  font-weight: 600;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
}

/* ─── Top Discovery Banner (Exact match to Mobile App) ───────── */
.yp-collab-discovery-banner {
  background: #FFFBEB !important;
  border: 1px solid #FDE68A !important;
  border-radius: 12px !important;
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
  box-shadow: none !important;
}

.yp-discovery-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  background: #FEF3C7 !important;
  color: #1E293B !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  flex-shrink: 0 !important;
  box-shadow: none !important;
}

.yp-discovery-btn {
  background: #FABC57 !important;
  color: #1E293B !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  padding: 8px 24px !important;
  min-height: 38px !important;
  border-radius: 8px !important;
  border: none !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.yp-discovery-btn:hover {
  background: #F59E0B !important;
  color: #0F172A !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3) !important;
}

/* ─── Clean Unboxed Empty State (Exact match to Mobile App) ──── */
.yp-empty-state-app-matched {
  text-align: center;
  padding: 50px 20px 60px;
  max-width: 440px;
  margin: 0 auto;
}

.yp-empty-app-icon {
  font-size: 54px;
  color: #94A3B8;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yp-empty-app-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.yp-empty-app-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 380px;
}

.yp-empty-secondary-btn {
  background: #FFFFFF;
  color: #334155 !important;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.yp-empty-secondary-btn:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A !important;
  transform: translateY(-1px);
}

/* ─── 3-Step Guided Workflow Banner ─── */
.yp-empty-workflow-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  padding: 22px 24px 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
}

.yp-empty-workflow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.yp-empty-workflow-badge {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #D97706;
  letter-spacing: 0.05em;
}

.yp-empty-workflow-title {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.yp-empty-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .yp-empty-workflow-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.yp-workflow-step-item {
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid #EDF2F7;
  padding: 16px;
  position: relative;
  transition: all 0.2s ease;
}

.yp-workflow-step-item:hover {
  background: #FFFFFF;
  border-color: #FDE68A;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  transform: translateY(-2px);
}

.yp-workflow-step-num {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 13px;
  font-weight: 800;
  color: #CBD5E1;
  font-family: monospace;
}

.yp-workflow-step-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.yp-workflow-step-item h6 {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 5px;
}

.yp-workflow-step-item p {
  font-size: 12px;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}

/* ─── Quick Exploration Tag Strip ─── */
.yp-empty-categories-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: #F8FAFC;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
}

.yp-empty-cat-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.yp-empty-chips-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.yp-empty-tag-chip {
  background: #FFFFFF;
  color: #334155 !important;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.yp-empty-tag-chip:hover {
  background: #FFFBEB;
  border-color: #FCD34D;
  color: #92400E !important;
  transform: translateY(-1px);
}

/* ─── Legacy Fallback ─── */
.yp-empty-state-card {
  text-align: center;
  padding: 40px 24px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px dashed var(--yp-collab-border);
}

.yp-empty-state-card .yp-btn-app-primary,
.yp-empty-state-card a.yp-btn-app-primary {
  padding: 13px 32px !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 50px !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35) !important;
}

.yp-collab-discovery-banner .yp-btn-app-primary {
  padding: 11px 26px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  min-height: 44px !important;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25) !important;
  gap: 8px !important;
}

.yp-empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #FEF3C7;
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.yp-empty-state-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--yp-collab-navy);
  margin-bottom: 6px;
}

.yp-empty-state-desc {
  font-size: 13px;
  color: var(--yp-collab-muted);
  max-width: 440px;
  margin: 0 auto 20px;
}

/* ─── Red Dot Notification Indicator (Hidden) ───────────────────── */
.yp-collab-red-dot {
  display: none !important;
}

@keyframes ypPulseRed {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* ─── In-Container Proposal & Chat Thread Styles ─────────────────── */
.yp-prop-messages-scroll {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
  padding: 16px 20px !important;
  background: #F8FAFC;
}

.yp-prop-messages-thread {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yp-prop-approach-bubble {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

/* ─── Proposal View Message Letter & Badges ──────────────────────── */
.yp-proposal-message-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4.5px solid #F59E0B !important;
  border-radius: 14px;
  padding: 24px 30px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  margin-bottom: 20px;
}

.yp-proposal-message-card.org-sender {
  border-left-color: #3B82F6 !important;
}

.yp-proposal-body-para {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.85;
  color: #334155;
  margin-bottom: 16px;
  letter-spacing: -0.05px;
}

.yp-proposal-body-para:last-child {
  margin-bottom: 0;
}

.yp-proposal-body-para.greeting {
  font-size: 15.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 14px;
}

/* Refined Modern Proposal Timestamp Badge */
.yp-prop-timestamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  letter-spacing: -0.1px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.yp-prop-timestamp-badge:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #1E293B;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.yp-prop-timestamp-badge i {
  color: #D97706;
  font-size: 12px;
}

/* Modern Degrees Offered Chips */
.yp-degree-chip {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1E293B;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.yp-degree-chip:hover {
  border-color: #F59E0B;
  background: #FFFDF8;
  color: #B45309;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
}

.yp-degree-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F59E0B;
  flex-shrink: 0;
}

.yp-proposal-job-card {
  background: #ffffff;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.yp-proposal-job-card:hover {
  border-color: #FCD34D !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.09) !important;
  transform: translateY(-2px);
}

.yp-prop-approach-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
}

.yp-prop-mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid #F59E0B !important;
}

.yp-prop-approach-body {
  font-size: 14.5px;
  color: #1E293B;
  line-height: 1.65;
}

.yp-prop-approach-pool {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #E2E8F0;
  font-size: 12.5px;
  color: #475569;
}

.yp-prop-offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.yp-prop-offering-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 12px;
  transition: all 0.2s ease;
}

.yp-prop-offering-card:hover {
  border-color: #F59E0B;
  background: #FFFDF7;
}

.yp-prop-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.yp-prop-bubble-wrap.me {
  align-self: flex-end;
  align-items: flex-end;
}

.yp-prop-bubble-wrap.partner {
  align-self: flex-start;
  align-items: flex-start;
}

.yp-prop-bubble {
  padding: 10px 15px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.yp-prop-bubble-wrap.me .yp-prop-bubble {
  background: #FEF3C7;
  color: #1E293B;
  border: 1px solid #FDE68A;
  border-bottom-right-radius: 4px;
}

.yp-prop-bubble-wrap.partner .yp-prop-bubble {
  background: #ffffff;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  border-bottom-left-radius: 3px;
}

.yp-prop-bubble-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: #94A3B8;
}

.yp-prop-reply-bar {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 8px 10px 8px 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  margin-top: 10px;
  flex-shrink: 0;
}

.yp-prop-reply-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yp-prop-reply-input-wrap input {
  border: none !important;
  background: transparent !important;
  padding: 6px 4px !important;
  font-size: 13.5px !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ─── Fresh Formatted Proposal & Activity Log Styling ───────────── */
.yp-formatted-proposal-msg {
  color: #1E293B;
}

.yp-formatted-proposal-msg .border {
  border-color: #E2E8F0 !important;
}

.yp-formatted-proposal-msg .shadow-sm {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

.yp-formatted-proposal-msg .rounded-3:hover {
  border-color: #CBD5E1 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07) !important;
}


/* ─── Premium Custom In-Modal Calendar & Date Proposal Picker ─── */
.yp-custom-calendar {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.yp-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.yp-cal-title {
  font-weight: 700;
  color: #0F172A;
  font-size: 14px;
  letter-spacing: -0.2px;
}

.yp-cal-nav-btn {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 11px;
}

.yp-cal-nav-btn:hover {
  background: #FEF3C7;
  color: #D97706;
  border-color: #FCD34D;
}

.yp-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.yp-cal-weekday {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  padding: 4px 0;
  text-transform: uppercase;
}

.yp-cal-cell {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #1E293B;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.yp-cal-cell:hover:not(.disabled):not(.selected) {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.yp-cal-cell.today {
  border: 1.5px solid #F59E0B;
}

.yp-cal-cell.selected {
  background: #F59E0B !important;
  color: #000000 !important;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.yp-cal-cell.disabled {
  color: #CBD5E1 !important;
  cursor: not-allowed;
  opacity: 0.5;
}

.yp-cal-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.yp-cal-quick-btn {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.yp-cal-quick-btn:hover {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FCD34D;
}

/* ─── Selected Proposed Date Chips ─── */
.yp-date-chip {
  display: inline-flex;
  align-items: center;
  background: #FFFBEB;
  color: #92400E;
  border: 1.5px solid #FCD34D;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.12);
  transition: all 0.2s;
}

.yp-date-chip.active {
  background: #FFFBEB;
  border-color: #F59E0B;
  color: #92400E;
}

.yp-date-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.2);
}

/* Notice Modal Overrides */
#ypCollabNoticeModal .modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

/* ── YellowPin Approach & Degree Selection Modal ── */
#ypInstituteApproachModal {
  overflow-y: hidden !important;
  padding-right: 0 !important;
}

#ypInstituteApproachModal .modal-dialog {
  max-width: 760px !important;
  width: 95% !important;
  height: 86vh !important;
  max-height: 680px !important;
  margin-top: auto !important;
  margin-bottom: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  align-items: center !important;
}

#ypInstituteApproachModal .modal-content {
  height: 100% !important;
  max-height: 680px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
  background: #ffffff !important;
}

#ypInstituteApproachModal .yp-modal-fixed-header {
  flex-shrink: 0 !important;
  background: linear-gradient(135deg, #0F172A, #1E293B) !important;
  padding: 18px 26px !important;
}

#ypInstituteApproachModal .yp-modal-fixed-org {
  flex-shrink: 0 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 14px 26px !important;
}

#ypInstituteApproachModal .yp-modal-scroll-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  background: #f8fafc !important;
  padding: 20px 26px 120px 26px !important;
}

#ypInstituteApproachModal .yp-modal-scroll-body::-webkit-scrollbar {
  width: 6px;
}

#ypInstituteApproachModal .yp-modal-scroll-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

#ypInstituteApproachModal .yp-modal-scroll-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

#ypInstituteApproachModal .yp-modal-scroll-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

#ypInstituteApproachModal .yp-modal-fixed-footer {
  flex-shrink: 0 !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  padding: 16px 26px !important;
}

.yp-add-degree-btn {
  width: 100% !important;
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1.5px dashed #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 12px 20px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.yp-add-degree-btn:hover,
.yp-add-degree-btn:focus,
.yp-add-degree-btn:active {
  background: #fffbeb !important;
  border-color: #f59e0b !important;
  color: #b45309 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15) !important;
}

.yp-add-degree-btn i {
  color: #d97706 !important;
  font-size: 14px !important;
  transition: transform 0.25s ease !important;
}

.yp-add-degree-btn:hover i {
  transform: rotate(90deg) scale(1.15) !important;
  color: #b45309 !important;
}

.yp-remove-row-btn {
  background: #ffffff !important;
  color: #ef4444 !important;
  border: 1px solid #fee2e2 !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.yp-remove-row-btn:hover {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

.yp-modal-field {
  height: 46px !important;
  font-size: 14.5px !important;
  border-radius: 10px !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 8px 14px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.yp-modal-field:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
  outline: none !important;
}

.yp-modal-field:disabled {
  background-color: #f8fafc !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  border-color: #e2e8f0 !important;
}

.yp-approach-row {
  position: relative !important;
  transition: z-index 0.1s ease;
}

.yp-approach-row.yp-row-active-dropdown {
  z-index: 500 !important;
}

.yp-cs-wrapper {
  position: relative !important;
  width: 100% !important;
}

.yp-cs-input-group {
  position: relative !important;
  width: 100% !important;
}

.yp-cs-input {
  height: 46px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 8px 36px 8px 14px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.yp-cs-input:focus,
.yp-cs-wrapper.yp-cs-open .yp-cs-input {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
  outline: none !important;
  cursor: text !important;
}

.yp-cs-input:disabled {
  background-color: #f8fafc !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  border-color: #e2e8f0 !important;
}

.yp-cs-arrow {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #64748b !important;
  font-size: 12px !important;
  pointer-events: none !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.yp-cs-wrapper.yp-cs-open .yp-cs-arrow {
  transform: translateY(-50%) rotate(180deg) !important;
  color: #d97706 !important;
}

.yp-cs-menu {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.08) !important;
  z-index: 10090 !important;
  max-height: 200px !important;
  overflow-y: auto !important;
  padding: 5px !important;
  margin: 0 !important;
}

.yp-cs-menu::-webkit-scrollbar {
  width: 5px !important;
}

.yp-cs-menu::-webkit-scrollbar-track {
  background: #f8fafc !important;
  border-radius: 4px !important;
}

.yp-cs-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 4px !important;
}

.yp-cs-menu::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

.yp-cs-item {
  height: 38px !important;
  box-sizing: border-box !important;
  padding: 8px 12px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  user-select: none !important;
  margin-bottom: 0 !important;
}

.yp-cs-item:last-child {
  margin-bottom: 0 !important;
}

.yp-cs-item:hover,
.yp-cs-item.yp-cs-highlighted {
  background: #fffbeb !important;
  color: #b45309 !important;
}

.yp-cs-item.yp-cs-selected {
  background: #fef3c7 !important;
  color: #92400e !important;
  font-weight: 600 !important;
}

.yp-cs-empty {
  padding: 16px 12px !important;
  font-size: 13px !important;
  color: #94a3b8 !important;
  text-align: center !important;
}