/* ============================================
   Senna CRM Platform
   Premium consulting-style dashboard system
   ============================================ */

:root {
  /* Premium Senna Color Palette - Forest Green Theme */
  --auth-cream: #fbf7f0;
  --auth-dark-cream: #f5efe6;
  --auth-forest-green: #1a3028;
  --auth-dark-forest: #0f1f18;
  --auth-gold: #c9a961;
  --auth-dark-gold: #b8935a;
  --auth-light-gold: #e5d4a1;

  /* Primary Brand Colors */
  --senna-primary: #0d353e;
  --senna-accent: #63fbc9;
  --senna-accent-hover: #4fe8b8;
  --senna-accent-light: #e5fef7;

  /* Background Colors */
  --linkedin-bg: #fbf7f0;
  --linkedin-card: #ffffff;
  --linkedin-border: #e5dfd3;
  --linkedin-border-light: #f0ebe0;
  --linkedin-hover: #f5efe6;

  /* Text Colors */
  --linkedin-text: #0f1f18;
  --linkedin-text-secondary: #1a3028;
  --linkedin-text-muted: #5a6d65;

  /* Brand Colors */
  --linkedin-brand: #0d353e;
  --linkedin-brand-hover: #0a2830;
  --linkedin-brand-light: #e5f3f5;
  --linkedin-success: #0d353e;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;

  /* Shadows - Minimal with warm tones */
  --shadow-card: 0 0 0 1px rgba(13, 53, 62, 0.08),
    0 1px 2px rgba(13, 53, 62, 0.04);
  --shadow-card-hover: 0 0 0 1px rgba(13, 53, 62, 0.12),
    0 2px 4px rgba(13, 53, 62, 0.08);

  /* Border Radius - Subtle */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 50%;
}

/* Landing console search shortcode */
.sffc-crm-console-search {
  width: 100%;
  background: transparent;
  padding: 16px 24px 24px;
  color: #ffffff;
}

.sffc-crm-console-search,
.sffc-crm-console-search * {
  box-sizing: border-box;
}

.sffc-crm-console-search__mode {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 14px;
  padding: 0;
  border: 1px solid var(--sffc-console-search-mode-border, rgba(255, 255, 255, 0.34));
  border-radius: 8px;
  background: var(--sffc-console-search-mode-bg, transparent);
  color: var(--sffc-console-search-mode-text, #ffffff);
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
}

.sffc-crm-console-search__mode select {
  min-height: 42px;
  padding: 0 38px 0 18px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  outline: none;
}

.sffc-crm-console-search__bars {
  display: grid;
  gap: 14px;
}

.sffc-crm-console-search__bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1.45fr) minmax(170px, 0.85fr) minmax(180px, 1.25fr) minmax(190px, 1fr) minmax(120px, 0.34fr);
  align-items: stretch;
  width: 100%;
  gap: 0;
}

.sffc-crm-console-search__bar.is-additional {
  grid-template-columns: minmax(180px, 1.45fr) minmax(170px, 0.85fr) minmax(180px, 1.25fr) minmax(190px, 1fr);
}

.sffc-crm-console-search__field {
  position: relative;
  min-width: 0;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 14px 24px;
  background: var(--sffc-console-search-field-bg, #ffffff);
  border-right: 1px solid var(--sffc-console-search-field-border, #d8dee7);
}

.sffc-crm-console-search__field:first-child {
  border-radius: var(--sffc-console-search-field-radius, 8px) 0 0 var(--sffc-console-search-field-radius, 8px);
}

.sffc-crm-console-search__field:nth-of-type(4) {
  border-radius: 0 var(--sffc-console-search-field-radius, 8px) var(--sffc-console-search-field-radius, 8px) 0;
  border-right: 0;
}

.sffc-crm-console-search__bar.is-additional .sffc-crm-console-search__field:last-child {
  border-radius: 0 var(--sffc-console-search-field-radius, 8px) var(--sffc-console-search-field-radius, 8px) 0;
  border-right: 0;
}

.sffc-crm-console-search__field span {
  color: var(--sffc-console-search-label-color, #5f6671);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.sffc-crm-console-search__field input,
.sffc-crm-console-search__field select {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: min(var(--sffc-console-search-field-radius, 8px), 8px);
  padding: 4px 0;
  margin: 0;
  background: transparent;
  color: var(--sffc-console-search-input-color, #111827);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.sffc-crm-console-search__field input:focus,
.sffc-crm-console-search__field select:focus {
  border-color: var(--sffc-console-search-dropdown-border, rgba(17, 24, 39, 0.12));
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.sffc-crm-console-search__field select {
  cursor: pointer;
  appearance: none;
  padding-right: 28px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 8px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.sffc-crm-console-search__field select option {
  background: var(--sffc-console-search-dropdown-bg, #ffffff);
  color: var(--sffc-console-search-dropdown-text, #111827);
}

.sffc-crm-console-search__native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sffc-crm-console-search__select-trigger {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: min(var(--sffc-console-search-field-radius, 8px), 8px);
  padding: 4px 28px 4px 0;
  margin: 0;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 14px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) calc(100% - 8px) 50% / 6px 6px no-repeat;
  color: var(--sffc-console-search-input-color, #111827);
  font: inherit;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.sffc-crm-console-search__select-trigger:hover,
.sffc-crm-console-search__select-trigger:focus,
.sffc-crm-console-search__select-trigger[aria-expanded="true"] {
  border-color: var(--sffc-console-search-dropdown-border, rgba(17, 24, 39, 0.12));
  background-color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.sffc-crm-console-search__select-trigger span {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sffc-crm-console-search__field input::placeholder {
  color: #111827;
  opacity: 0.6;
}

.sffc-crm-console-search__suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 10px;
  right: 10px;
  max-height: 292px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--sffc-console-search-dropdown-border, rgba(17, 24, 39, 0.12));
  border-radius: var(--sffc-console-search-dropdown-radius, 8px);
  background: var(--sffc-console-search-dropdown-bg, #ffffff);
  box-shadow: var(--sffc-console-search-dropdown-shadow, 0 18px 45px rgba(15, 23, 42, 0.18));
}

.sffc-crm-console-search__suggestions[hidden] {
  display: none;
}

.sffc-crm-console-search__suggestions button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: calc(var(--sffc-console-search-dropdown-radius, 8px) - 2px);
  padding: 11px 12px;
  background: transparent;
  color: var(--sffc-console-search-dropdown-text, #111827);
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.sffc-crm-console-search__suggestions button:hover,
.sffc-crm-console-search__suggestions button:focus,
.sffc-crm-console-search__suggestions button.is-active {
  background: var(--sffc-console-search-dropdown-hover-bg, #f3f6fb);
}

.sffc-crm-console-search__suggestions button span {
  color: inherit;
  font-size: inherit;
  font-weight: 700;
}

.sffc-crm-console-search__suggestions button small {
  flex: 0 0 auto;
  color: var(--sffc-console-search-label-color, #5f6671);
  font-size: 12px;
  font-weight: 700;
}

.sffc-crm-console-search__submit {
  min-height: 78px;
  border: 0;
  border-radius: 8px;
  margin-left: 14px;
  padding: 0 28px;
  background: var(--sffc-console-search-button-bg, #2f61d5);
  color: var(--sffc-console-search-button-text, #ffffff);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sffc-crm-console-search__submit:hover,
.sffc-crm-console-search__submit:focus {
  background: var(--sffc-console-search-button-hover-bg, #244fae);
  transform: translateY(-1px);
}

.sffc-crm-console-search__multi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sffc-crm-console-search__secondary {
  min-height: 44px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 8px;
  padding: 0 18px;
  background: var(--sffc-console-search-secondary-bg, #ffffff);
  color: var(--sffc-console-search-secondary-text, #111827);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 980px) {
  .sffc-crm-console-search__bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
  }

  .sffc-crm-console-search__bar.is-additional {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sffc-crm-console-search__field,
  .sffc-crm-console-search__field:first-child {
    border-radius: 0;
    border-right: 0;
  }

  .sffc-crm-console-search__field:first-child {
    border-radius: var(--sffc-console-search-field-radius, 8px) 0 0 0;
  }

  .sffc-crm-console-search__field:nth-of-type(2) {
    border-radius: 0 var(--sffc-console-search-field-radius, 8px) 0 0;
  }

  .sffc-crm-console-search__field:nth-of-type(4) {
    border-radius: 0 0 var(--sffc-console-search-field-radius, 8px) 0;
  }

  .sffc-crm-console-search__submit {
    grid-column: 1 / -1;
    margin-left: 0;
    min-height: 58px;
  }

}

@media (max-width: 620px) {
  .sffc-crm-console-search {
    padding: 14px;
  }

  .sffc-crm-console-search__bar {
    grid-template-columns: 1fr;
  }

  .sffc-crm-console-search__field,
  .sffc-crm-console-search__field:first-child,
  .sffc-crm-console-search__field:nth-of-type(2) {
    min-height: 70px;
    border-radius: 0;
    padding: 12px 16px;
  }

  .sffc-crm-console-search__field:first-child {
    border-radius: var(--sffc-console-search-field-radius, 8px) var(--sffc-console-search-field-radius, 8px) 0 0;
  }

  .sffc-crm-console-search__field:nth-of-type(4) {
    border-radius: 0 0 var(--sffc-console-search-field-radius, 8px) var(--sffc-console-search-field-radius, 8px);
  }

  .sffc-crm-console-search__field input,
  .sffc-crm-console-search__field select,
  .sffc-crm-console-search__select-trigger {
    font-size: 18px;
  }
}

/* Premium Senna search landing shortcode */
.sffc-mena-search-landing,
.sffc-mena-search-landing * {
  box-sizing: border-box;
}

.sffc-mena-search-landing {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #f3f8ff;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  overflow: hidden;
}

.sffc-mena-search-landing__inner {
  position: relative;
  width: min(1720px, calc(100% - 96px));
  min-height: 760px;
  margin: 0 auto;
  padding: 118px 0 88px;
  display: grid;
  align-content: center;
  gap: 38px;
}

.sffc-mena-search-landing__copy {
  max-width: 980px;
}

.sffc-mena-search-landing__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #0a66c2;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.sffc-mena-search-landing__eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #f5c542;
  box-shadow: 0 0 0 4px rgba(245, 197, 66, 0.22);
}

.sffc-mena-search-landing h1 {
  max-width: 1120px;
  margin: 0;
  color: #050505;
  font-size: clamp(56px, 7.2vw, 124px);
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: 0;
}

.sffc-mena-search-landing__copy p {
  max-width: 760px;
  margin: 28px 0 0;
  color: #374151;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 500;
}

.sffc-mena-search-landing__console.sffc-crm-console-search {
  max-width: 1680px;
  padding: 0;
  color: #0f172a;
  --sffc-console-search-field-bg: #ffffff;
  --sffc-console-search-field-border: #d7dee8;
  --sffc-console-search-field-radius: 8px;
  --sffc-console-search-label-color: #5f6671;
  --sffc-console-search-input-color: #111827;
  --sffc-console-search-button-bg: #0a66c2;
  --sffc-console-search-button-hover-bg: #004182;
  --sffc-console-search-button-text: #ffffff;
  --sffc-console-search-dropdown-bg: #ffffff;
  --sffc-console-search-dropdown-text: #111827;
  --sffc-console-search-dropdown-hover-bg: #edf5ff;
  --sffc-console-search-dropdown-border: rgba(10, 102, 194, 0.18);
  --sffc-console-search-dropdown-shadow: 0 18px 48px rgba(10, 102, 194, 0.16);
}

.sffc-mena-search-landing__console .sffc-crm-console-search__bar {
  grid-template-columns: minmax(190px, 1.05fr) minmax(180px, 0.82fr) minmax(190px, 1fr) minmax(230px, 1.15fr) minmax(150px, 0.42fr);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(10, 102, 194, 0.08);
}

.sffc-mena-search-landing__console .sffc-crm-console-search__field {
  min-height: 86px;
}

.sffc-mena-search-landing__console .sffc-crm-console-search__field input,
.sffc-mena-search-landing__console .sffc-crm-console-search__field select {
  font-size: 19px;
  font-weight: 700;
}

.sffc-mena-search-landing__console .sffc-crm-console-search__submit {
  min-height: 86px;
  border-radius: 8px;
  margin-left: 14px;
  white-space: nowrap;
}

.sffc-mena-search-landing__proof {
  width: min(470px, 42vw);
  margin-left: min(52vw, 760px);
  margin-top: 4px;
  padding: 24px 28px;
  border: 1px solid rgba(10, 102, 194, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 80px rgba(10, 102, 194, 0.16);
}

.sffc-mena-search-landing__proof span {
  display: block;
  margin-bottom: 12px;
  color: #057642;
  font-size: 15px;
  font-weight: 850;
}

.sffc-mena-search-landing__proof strong {
  display: block;
  color: #111827;
  font-size: 24px;
  line-height: 1.15;
}

.sffc-mena-search-landing__proof small {
  display: block;
  margin-top: 10px;
  color: #5f6671;
  font-size: 17px;
  font-weight: 750;
}

.sffc-mena-search-landing__chat .sffc-crm-apply-chat__home-hero {
  display: none;
}

.sffc-mena-search-landing__chat .sffc-crm-apply-chat {
  min-height: 0;
  padding: 0;
  background: transparent;
}

@media (max-width: 980px) {
  .sffc-mena-search-landing__inner {
    width: min(100% - 40px, 820px);
    min-height: 0;
    padding: 72px 0 64px;
  }

  .sffc-mena-search-landing h1 {
    font-size: clamp(46px, 12vw, 78px);
  }

  .sffc-mena-search-landing__copy p {
    font-size: 19px;
  }

  .sffc-mena-search-landing__console .sffc-crm-console-search__bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sffc-mena-search-landing__proof {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .sffc-mena-search-landing__inner {
    width: min(100% - 28px, 520px);
    padding: 54px 0 48px;
    gap: 28px;
  }

  .sffc-mena-search-landing h1 {
    font-size: 44px;
  }

  .sffc-mena-search-landing__copy p {
    font-size: 17px;
  }

  .sffc-mena-search-landing__console .sffc-crm-console-search__bar {
    grid-template-columns: 1fr;
  }

  .sffc-mena-search-landing__console .sffc-crm-console-search__field,
  .sffc-mena-search-landing__console .sffc-crm-console-search__submit {
    min-height: 68px;
  }
}

/* ============================================
   Base Container
   ============================================ */
.sffc-crm-linkedin {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  color: var(--linkedin-text);
  background: var(--linkedin-bg);
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: var(--spacing-xl);
  line-height: 1.4;
  font-size: 14px;
  min-height: 100vh;
}

.sffc-crm-linkedin--console-landing {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #0d353e;
  overflow: auto;
}

body:has(.sffc-crm-linkedin--console-landing) {
  margin: 0;
  background: #0d353e;
  overflow: hidden;
}

.sffc-crm-linkedin--console-landing .sffc-crm-linkedin-header {
  margin: 0;
  border-width: 0 0 1px;
  box-shadow: none;
}

body.admin-bar .sffc-crm-linkedin--console-landing {
  top: 32px;
  height: calc(100vh - 32px);
  min-height: calc(100vh - 32px);
}

.sffc-crm-linkedin--console-landing .sffc-crm-linkedin-body {
  display: block;
  max-width: none;
  min-height: calc(100vh - 64px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sffc-crm-linkedin--console-landing .sffc-crm-linkedin-rail-left,
.sffc-crm-linkedin--console-landing .sffc-crm-linkedin-rail-right {
  display: none;
}

.sffc-crm-linkedin--console-landing .sffc-crm-linkedin-main,
.sffc-crm-linkedin--console-landing .sffc-crm-linkedin-panel[data-panel="console"] {
  width: 100%;
  min-height: calc(100vh - 64px);
}

.sffc-console-engine--landing-hidden {
  display: none;
}

.sffc-console-landing {
  min-height: calc(100vh - 64px);
  padding: clamp(28px, 5vw, 68px);
  background: var(--sffc-console-landing-bg, #0d353e);
  color: #f8fbf7;
}

.sffc-console-landing,
.sffc-console-landing * {
  box-sizing: border-box;
}

.sffc-console-landing__modes {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: clamp(52px, 8vw, 92px);
}

.sffc-console-landing__mode {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(248, 251, 247, 0.72);
  border-radius: 999px;
  padding: 0 26px;
  background: transparent;
  color: #f8fbf7;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
}

.sffc-console-landing__mode.is-active {
  border-color: #ffffff;
  background: #ffffff;
  color: #111827;
}

.sffc-console-landing__mode-icon,
.sffc-console-landing__mode-icon svg {
  width: 18px;
  height: 18px;
}

.sffc-console-landing__mode-icon svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sffc-console-landing__copy {
  max-width: 1120px;
  margin: 0 auto clamp(42px, 5vw, 64px);
  text-align: center;
}

.sffc-console-landing__copy p {
  margin: 0;
  color: #9af2bd;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0;
}

.sffc-console-landing__copy span {
  display: block;
  width: min(640px, 70vw);
  height: 1px;
  margin: 36px auto 28px;
  background: rgba(248, 251, 247, 0.5);
}

.sffc-console-landing__copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: 0;
}

.sffc-console-landing__search {
  width: min(100%, 1500px);
  margin: 0 auto;
}

.sffc-console-landing__search .sffc-crm-console-search {
  padding: 0;
}

.sffc-console-landing__search .sffc-crm-console-search__submit {
  background: var(--sffc-console-search-button-bg, #9af2bd);
  color: var(--sffc-console-search-button-text, #0d353e);
}

.sffc-console-landing__search .sffc-crm-console-search__submit:hover,
.sffc-console-landing__search .sffc-crm-console-search__submit:focus {
  background: var(--sffc-console-search-button-hover-bg, #7ce6a9);
}

/* ============================================
   Header
   ============================================ */
.sffc-crm-linkedin-header {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: 12px 18px;
  background: #0d353e;
  border: 1px solid rgba(13, 53, 62, 0.08);
  margin: calc(var(--spacing-xl) * -1) calc(var(--spacing-xl) * -1)
    var(--spacing-lg);
  box-shadow: 0 14px 36px rgba(13, 53, 62, 0.055);
  backdrop-filter: blur(18px);
}

/* Brand & Logo */
.sffc-crm-linkedin-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  flex: 1;
}

.sffc-crm-linkedin-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--linkedin-brand);
  font-size: 20px;
}

.sffc-crm-linkedin-logo img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Search Bar - LinkedIn Essential */
.sffc-crm-search {
  position: relative;
  width: 100%;
  z-index: 10060;
}

.sffc-crm-search-input {
  width: 100%;
  padding: 6px 12px 6px 36px;
  border: none;
  background: var(--linkedin-hover);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--linkedin-text);
}

.sffc-crm-search-input::placeholder {
  color: var(--linkedin-text-muted);
}

.sffc-crm-search-input:focus {
  outline: none;
  background: var(--linkedin-card);
  box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.2);
}

.sffc-crm-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--linkedin-text-muted);
}

/* Tabs - LinkedIn Style */
.sffc-crm-tabs {
  display: none;
  gap: var(--spacing-xs);
}

.sffc-crm-tab {
  border: none;
  background: transparent;
  color: #ffffff;
  padding: var(--spacing-md) var(--spacing-sm);
  border-bottom: 2px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  position: relative;
}

.sffc-crm-tab:hover {
  color: #6cffc4;
}

.sffc-crm-tab.active {
  color: #ffffff;
  border-bottom-color: #0d6955;
}

.sffc-crm-tab-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Profile Section in Header */
.sffc-crm-linkedin-profile {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
  height: auto;
  min-height: 0;
}

.sffc-crm-linkedin-avatar,
.sffc-crm-linkedin-avatar img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.sffc-crm-linkedin-avatar {
  background: var(--linkedin-brand-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--linkedin-brand);
  font-size: 12px;
  flex-shrink: 0;
}

.sffc-crm-linkedin-avatar > span {
  display: block;
  line-height: 1;
}

.sffc-crm-linkedin-avatar-lg,
.sffc-crm-linkedin-avatar-lg img {
  width: 72px;
  height: 72px;
}

.sffc-crm-linkedin-avatar-lg {
  font-size: 28px;
}

.sffc-crm-linkedin-avatar-lg > span {
  display: block;
  line-height: 1;
}

.sffc-crm-linkedin-user-meta {
  display: none;
}

/* ============================================
   Main Layout Grid
   ============================================ */
.sffc-crm-linkedin-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(13, 53, 62, 0.08);
  background: #f4f5f1;
  box-shadow: 0 24px 80px rgba(13, 53, 62, 0.08);
}

.sffc-crm-linkedin-body.sffc-crm-matches-dashboard-mode {
  grid-template-columns: 260px minmax(0, 1fr);
  max-width: 1840px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sffc-crm-linkedin.sffc-crm-sidebar-collapsed .sffc-crm-linkedin-body,
.sffc-crm-linkedin.sffc-crm-sidebar-collapsed
  .sffc-crm-linkedin-body.sffc-crm-matches-dashboard-mode {
  grid-template-columns: 78px minmax(0, 1fr);
}

.sffc-crm-linkedin-body.sffc-crm-matches-dashboard-mode
  .sffc-crm-linkedin-rail-right,
.sffc-crm-linkedin-body.sffc-crm-matches-dashboard-mode
  .sffc-crm-hidden-for-matches {
  display: none !important;
}

/* Rails */
.sffc-crm-linkedin-rail-left,
.sffc-crm-linkedin-rail-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.sffc-crm-linkedin-rail-left {
  position: sticky;
  top: 14px;
  align-self: start;
}

.sffc-crm-linkedin-rail-right {
  display: none;
}

.sffc-crm-linkedin-rail-right > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sffc-crm-sidebar-shell {
  padding: 16px;
  border: 1px solid rgba(13, 53, 62, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 44px rgba(13, 53, 62, 0.06);
  backdrop-filter: blur(18px);
  border-radius: 10px;
}

.sffc-crm-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 2px 18px;
  border-bottom: 1px solid rgba(13, 53, 62, 0.08);
}

.sffc-crm-sidebar-brand__mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0d6955;
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.sffc-crm-sidebar-brand strong {
  display: block;
  color: #10211d;
  font-size: 16px;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.sffc-crm-sidebar-brand small {
  display: block;
  margin-top: 1px;
  color: var(--linkedin-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sffc-crm-sidebar-plan-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  min-height: 22px;
  padding: 0 9px;
  border: 1px solid rgba(13, 105, 85, 0.16);
  border-radius: 999px;
  background: rgba(13, 105, 85, 0.08);
  color: #0d6955;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sffc-crm-sidebar-upgrade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 5px;
  background: #0d6955;
  color: #ffffff;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.sffc-crm-sidebar-upgrade:hover,
.sffc-crm-sidebar-upgrade:focus {
  background: #0a5041;
  color: #ffffff;
  text-decoration: none;
}

.sffc-apply-credit-meter {
  box-sizing: border-box;
  border: 1px solid rgba(13, 53, 62, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: #10211d;
}

.sffc-apply-credit-meter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sffc-apply-credit-meter__head span {
  color: rgba(16, 33, 29, 0.58);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sffc-apply-credit-meter__head strong {
  color: #0d6955;
  font-size: 12px;
  font-weight: 860;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.sffc-apply-credit-meter__bar {
  position: relative;
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 8px;
  background: #e8ece6;
}

.sffc-apply-credit-meter__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: #0d6955;
  transition: width 0.25s ease;
}

.sffc-apply-credit-meter__meta {
  margin-top: 7px;
  color: rgba(16, 33, 29, 0.6);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.sffc-apply-credit-meter--sidebar {
  margin: 12px 0 14px;
  padding: 12px;
  border-radius: 10px;
}

.sffc-apply-credit-meter.is-updating {
  border-color: rgba(13, 105, 85, 0.32);
  box-shadow: 0 0 0 3px rgba(13, 105, 85, 0.08);
}

.sffc-crm-linkedin.sffc-crm-sidebar-collapsed
  .sffc-apply-credit-meter--sidebar {
  display: none;
}

.sffc-credit-upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
}

.sffc-credit-upgrade-modal__panel {
  position: relative;
  width: min(420px, 100%);
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.sffc-credit-upgrade-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.sffc-credit-upgrade-modal__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #eaf7f1;
  color: #0d6955;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sffc-credit-upgrade-modal h3 {
  margin: 0 36px 10px 0;
  color: #0d353e;
  font-size: 24px;
  line-height: 1.2;
}

.sffc-credit-upgrade-modal p {
  margin: 0;
  color: #52616b;
  font-size: 14px;
  line-height: 1.6;
}

.sffc-credit-upgrade-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.sffc-credit-upgrade-modal__upgrade,
.sffc-credit-upgrade-modal__secondary {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.sffc-credit-upgrade-modal__upgrade {
  border: 1px solid #0d353e;
  background: #0d353e;
  color: #ffffff;
}

.sffc-credit-upgrade-modal__secondary {
  border: 1px solid #d8e0e7;
  background: #ffffff;
  color: #334155;
}

.sffc-membership-cancel-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e6edf2;
}

.sffc-membership-cancel-panel p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.sffc-membership-cancel-btn {
  justify-self: start;
}

.sffc-membership-cancel-feedback {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.sffc-membership-cancel-feedback.is-success {
  background: #eaf7f1;
  border-color: #bfe5d4;
  color: #0d6955;
}

.sffc-membership-cancel-feedback.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.sffc-crm-sidebar-toggle {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 1px solid rgba(13, 53, 62, 0.1);
  background: #fff;
  color: #0d6955;
  cursor: pointer;
}

.sffc-crm-sidebar-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}

.sffc-crm-sidebar-toggle:hover {
  background: #0d6955;
  color: #fff;
}

.sffc-crm-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}

.sffc-crm-sidebar-nav .sffc-crm-sidebar-nav__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #263631;
  text-align: left;
  cursor: pointer;
}

.sffc-crm-sidebar-nav .sffc-crm-sidebar-nav__item:hover,
.sffc-crm-sidebar-nav .sffc-crm-sidebar-nav__item.active {
  border-color: rgba(13, 105, 85, 0.14);
  background: #0d6955;
  color: #fff;
}

.sffc-crm-sidebar-nav .sffc-crm-tab-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sffc-crm-sidebar-nav .sffc-crm-tab-label {
  overflow: hidden;
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sffc-crm-linkedin.sffc-crm-sidebar-collapsed .sffc-crm-sidebar-shell {
  padding: 14px 10px;
}

.sffc-crm-linkedin.sffc-crm-sidebar-collapsed .sffc-crm-sidebar-brand {
  justify-content: center;
  padding-bottom: 14px;
}

.sffc-crm-linkedin.sffc-crm-sidebar-collapsed .sffc-crm-sidebar-brand > div,
.sffc-crm-linkedin.sffc-crm-sidebar-collapsed
  .sffc-crm-sidebar-nav
  .sffc-crm-tab-label,
.sffc-crm-linkedin.sffc-crm-sidebar-collapsed .sffc-crm-search-criteria-card,
.sffc-crm-linkedin.sffc-crm-sidebar-collapsed
  .sffc-crm-linkedin-rail-left
  > .sffc-crm-linkedin-profile-card {
  display: none !important;
}

.sffc-crm-linkedin.sffc-crm-sidebar-collapsed .sffc-crm-sidebar-brand__mark {
  width: 38px;
  height: 38px;
}

.sffc-crm-linkedin.sffc-crm-sidebar-collapsed .sffc-crm-sidebar-toggle {
  position: absolute;
  right: -13px;
  top: 22px;
  z-index: 2;
}

.sffc-crm-linkedin.sffc-crm-sidebar-collapsed .sffc-crm-sidebar-toggle svg {
  transform: rotate(180deg);
}

.sffc-crm-linkedin.sffc-crm-sidebar-collapsed
  .sffc-crm-sidebar-nav
  .sffc-crm-sidebar-nav__item {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
}

/* ============================================
   Cards - LinkedIn Minimal Style
   ============================================ */
.sffc-crm-linkedin-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 10px;
  border: 1px solid rgba(13, 53, 62, 0.08);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(13, 53, 62, 0.055);
  backdrop-filter: blur(18px);
}

.sffc-crm-linkedin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
}

.sffc-crm-linkedin-card-header h3 {
  font-size: 13px;
  font-weight: 780;
  color: #10211d;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.sffc-crm-card-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--linkedin-text-muted);
}

.sffc-crm-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--linkedin-border-light);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--linkedin-text-muted);
}

/* ============================================
   Profile Card (Left Rail)
   ============================================ */
.sffc-crm-linkedin-profile-card {
  padding: 0;
}

.sffc-crm-search-criteria-card {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.sffc-crm-linkedin-rail-left
  > .sffc-crm-linkedin-profile-card:not(.sffc-crm-search-criteria-card) {
  display: none;
}

.sffc-crm-search-criteria-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sffc-crm-search-criteria-meta strong {
  color: var(--linkedin-text);
  font-size: 15px;
  font-weight: 600;
}

.sffc-crm-search-criteria-meta span {
  color: var(--linkedin-text-muted);
  font-size: 12px;
}

.sffc-crm-search-criteria-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sffc-crm-search-criteria-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sffc-crm-search-criteria-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--linkedin-text-muted);
  font-weight: 600;
}

.sffc-crm-search-criteria-empty {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border: 1px dashed var(--linkedin-border-light);
  border-radius: var(--radius-sm);
  background: rgba(12, 52, 62, 0.02);
}

.sffc-crm-search-criteria-empty p {
  margin: 0;
  color: var(--linkedin-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.sffc-crm-search-criteria-footer .sffc-crm-btn,
.sffc-crm-search-criteria-empty .sffc-crm-btn {
  width: 100%;
  justify-content: center;
}

.sffc-crm-linkedin-profile-card-hero {
  position: relative;
  padding-bottom: 36px;
}

.sffc-crm-linkedin-profile-card-banner {
  height: 54px;
  background: linear-gradient(
    135deg,
    var(--auth-forest-green),
    var(--senna-primary)
  );
}

.sffc-crm-linkedin-profile-card-avatar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--linkedin-bg);
  border: 3px solid var(--linkedin-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.sffc-crm-linkedin-profile-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sffc-crm-avatar-initial {
  font-size: 24px;
  font-weight: 600;
  color: var(--senna-primary);
  text-transform: uppercase;
}

.sffc-crm-linkedin-avatar.is-uploading,
.sffc-crm-linkedin-profile-card-avatar.is-uploading {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.sffc-crm-linkedin-avatar.is-uploading::after,
.sffc-crm-linkedin-profile-card-avatar.is-uploading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.sffc-crm-avatar-upload-trigger {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--senna-accent);
  border: 2px solid var(--linkedin-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sffc-crm-avatar-upload-trigger:hover {
  background: var(--senna-accent-hover);
  transform: scale(1.1);
}

.sffc-crm-avatar-upload-trigger svg {
  width: 12px;
  height: 12px;
  stroke: #000000;
}

.sffc-crm-profile-avatar {
  position: relative;
  border-radius: 50%;
}

.sffc-crm-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sffc-crm-profile-avatar-letter {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--linkedin-hover);
  color: var(--linkedin-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sffc-crm-profile-avatar:not(.sffc-crm-profile-avatar--placeholder)
  .sffc-crm-profile-avatar-letter {
  opacity: 0;
  transform: scale(0.85);
}

.sffc-crm-profile-avatar--placeholder img {
  opacity: 0;
}

.sffc-crm-profile-avatar--static {
  cursor: default;
  box-shadow: none;
}

.sffc-crm-avatar-helper {
  text-align: center;
  font-size: 11px;
  color: var(--linkedin-text-muted);
  margin-top: var(--spacing-sm);
}

.sffc-crm-avatar-input {
  display: none;
}

.sffc-crm-linkedin-profile-card-name {
  text-align: center;
  padding: 0 var(--spacing-md) var(--spacing-md);
}

.sffc-crm-linkedin-profile-card-name strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin-bottom: 4px;
  margin-bottom: 2px;
}

.sffc-crm-linkedin-profile-card-name span {
  color: var(--linkedin-text-muted);
  font-size: 12px;
  display: block;
}

.sffc-crm-linkedin-profile-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--linkedin-border-light);
  max-height: 400px;
  overflow-y: auto;
}

.sffc-crm-linkedin-profile-stats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
}

.sffc-crm-linkedin-profile-stats li span {
  color: var(--linkedin-text-muted);
  font-size: 12px;
}

.sffc-crm-linkedin-profile-stats li strong {
  color: var(--linkedin-brand);
  font-size: 14px;
  font-weight: 600;
}

/* ============================================
   Live Feed Styling
   ============================================ */
.sffc-crm-live-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  position: relative;
  padding-top: 3px;
}

.sffc-crm-live-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sffc-crm-community-message {
  display: flex;
  padding: 12px;
  border-bottom: 1px solid var(--linkedin-border-light);
  background: var(--linkedin-card);
  transition: background 0.2s ease;
  animation: feedSlideIn 0.4s ease-out forwards;
  opacity: 0;
  transform: translateY(-10px);
}

.sffc-crm-community-message.is-new {
  animation: sffcLiveFeedPulse 0.5s ease;
  border-color: #0d353e;
  box-shadow: 0 12px 30px rgba(13, 53, 62, 0.12);
}

.sffc-crm-community-message:hover {
  background: rgba(0, 0, 0, 0.02);
}

.sffc-crm-community-message:last-child {
  border-bottom: none;
}

.sffc-crm-community-message-content {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.sffc-crm-community-message-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.sffc-crm-community-message-header strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--linkedin-text);
  white-space: nowrap;
}

.sffc-crm-community-message-header span {
  font-size: 11px;
  color: var(--linkedin-text-muted);
  white-space: nowrap;
}

.sffc-crm-community-message p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--linkedin-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sffc-crm-community-question {
  font-weight: 600;
  color: #0d353e;
  margin-bottom: 6px;
}

.sffc-crm-community-answer-meta {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sffc-crm-community-answer-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(13, 53, 62, 0.08);
  color: #0d353e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sffc-crm-community-answer-icon svg {
  width: 18px;
  height: 18px;
}

.sffc-crm-community-answer-text {
  flex: 1;
  font-size: 12px;
  color: var(--linkedin-text);
  line-height: 1.5;
}

.sffc-crm-community-answer-text strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #0d353e;
}

.sffc-crm-community-answer-preview {
  margin: 2px 0 0;
  color: var(--linkedin-text);
}

.sffc-crm-community-answer-lock {
  margin: 2px 0 0;
  color: var(--linkedin-text-muted);
}

.sffc-crm-community-answer-text.is-locked strong {
  color: var(--linkedin-text-muted);
}

.sffc-crm-live-feed-alert {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  background: #0d353e;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 14px 26px rgba(13, 53, 62, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 10;
}

.sffc-crm-live-feed-alert svg {
  width: 14px;
  height: 14px;
}

.sffc-crm-live-feed-alert.is-visible {
  transform: translate(-50%, -4px);
}

@keyframes sffcLiveFeedPulse {
  0% {
    transform: scale(0.96);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.sffc-crm-community-upvote.is-upvoted {
  color: #0d353e;
}

.sffc-crm-community-upvote.is-upvoted svg {
  fill: #0d353e;
  stroke: #0d353e;
}

.sffc-crm-community-comment:hover {
  color: var(--linkedin-text);
}

@keyframes feedSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.sffc-crm-linkedin-profile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding: 0 var(--spacing-md) var(--spacing-md);
  border-top: 1px solid var(--linkedin-border-light);
  padding-top: var(--spacing-sm);
}

.sffc-crm-linkedin-link {
  font-weight: 600;
  color: var(--linkedin-brand);
  text-decoration: none;
  font-size: 12px;
  padding: var(--spacing-xs) 0;
}

.sffc-crm-linkedin-link:hover {
  text-decoration: underline;
}

/* ============================================
   Status Card
   ============================================ */
.sffc-crm-linkedin-status-card {
  padding: var(--spacing-md);
}

.sffc-crm-linkedin-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.sffc-crm-linkedin-status-list li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.sffc-crm-status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.sffc-crm-status-label {
  flex: 1;
  color: var(--linkedin-text-secondary);
  font-size: 12px;
}

.sffc-crm-linkedin-status-list li strong {
  color: var(--linkedin-text);
  font-size: 14px;
  font-weight: 600;
}

/* ============================================
   Prep Materials Card (Notion Style)
   ============================================ */
.sffc-crm-prep-materials-card {
  padding: var(--spacing-md);
  overflow: hidden;
}

.sffc-crm-submitted-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.sffc-crm-submitted-empty {
  padding: var(--spacing-md);
  border: 1px dashed var(--linkedin-border-light);
  border-radius: var(--radius-sm);
  background: rgba(12, 52, 62, 0.02);
}

.sffc-crm-submitted-empty p {
  margin: 0;
  color: var(--linkedin-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.sffc-crm-submitted-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sffc-crm-submitted-timeline .timeline-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sffc-crm-submitted-timeline .timeline-marker {
  position: relative;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 999px;
  background: #0d353e;
  flex-shrink: 0;
}

.sffc-crm-submitted-timeline .timeline-marker::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 1px;
  height: calc(100% + 16px);
  background: var(--linkedin-border-light);
  transform: translateX(-50%);
}

.sffc-crm-submitted-timeline .timeline-item:last-child .timeline-marker::after {
  display: none;
}

.sffc-crm-submitted-timeline .timeline-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sffc-crm-submitted-timeline .timeline-content strong {
  color: var(--linkedin-text);
  font-size: 14px;
  line-height: 1.4;
}

.sffc-crm-submitted-company {
  color: var(--linkedin-text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.sffc-crm-submitted-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--linkedin-text-muted);
  font-size: 11px;
}

.sffc-crm-submitted-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(13, 53, 62, 0.08);
  color: #0d353e;
  font-weight: 600;
}

.sffc-crm-prep-folders {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.sffc-crm-prep-folder {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.sffc-crm-prep-folder:hover {
  background: rgba(0, 0, 0, 0.03);
}

.sffc-crm-prep-folder:active,
.sffc-crm-prep-folder-active {
  background: rgba(0, 0, 0, 0.06);
  transform: scale(0.98);
}

.sffc-crm-prep-folder-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sffc-crm-prep-folder-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sffc-crm-prep-folder-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sffc-crm-prep-folder-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--linkedin-text);
  line-height: 1.4;
}

.sffc-crm-prep-folder-desc {
  font-size: 12px;
  color: var(--linkedin-text-secondary);
  line-height: 1.4;
}

.sffc-crm-prep-folder-arrow {
  width: 14px;
  height: 14px;
  color: var(--linkedin-text-secondary);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sffc-crm-prep-folder:hover .sffc-crm-prep-folder-arrow {
  opacity: 1;
}

.sffc-crm-welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 18, 31, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  animation: fadeIn 0.2s ease forwards;
}

.sffc-crm-welcome-overlay.is-dismissed {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sffc-crm-welcome-modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px 24px;
  text-align: center;
  box-shadow: 0 25px 55px rgba(4, 33, 63, 0.35);
  max-width: 360px;
  width: calc(100% - 32px);
  position: relative;
}

.sffc-crm-welcome-modal h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: #0d353e;
}

.sffc-crm-welcome-modal p {
  margin: 0 0 18px;
  color: #4b5563;
}

.sffc-crm-welcome-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
}

.sffc-crm-prep-footer {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sffc-crm-prep-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #0066cc;
  text-decoration: none;
  transition: gap 0.15s ease;
}

.sffc-crm-prep-view-all:hover {
  gap: 8px;
  text-decoration: none;
}

.sffc-crm-prep-view-all svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   Prep Dropdown (Dashboard List Items)
   ============================================ */
.sffc-crm-prep-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.sffc-crm-prep-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sffc-crm-prep-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.sffc-crm-prep-toggle[aria-expanded="true"] .sffc-crm-prep-chevron {
  transform: rotate(180deg);
}

.sffc-crm-prep-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 1000;
  animation: sffc-dropdown-fade-in 0.15s ease;
}

.sffc-crm-prep-dropdown[hidden] {
  display: none;
}

@keyframes sffc-dropdown-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sffc-crm-prep-category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s ease;
  text-align: left;
  font-size: 14px;
  color: var(--linkedin-text);
}

.sffc-crm-prep-category-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.sffc-crm-prep-category-item:active {
  background: rgba(0, 0, 0, 0.08);
}

.sffc-crm-prep-category-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #666;
}

.sffc-crm-prep-category-item span {
  flex: 1;
  font-weight: 500;
}

/* ============================================
   Message Dropdown (Dashboard List Items)
   ============================================ */
.sffc-crm-message-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.sffc-crm-message-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sffc-crm-message-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.sffc-crm-message-toggle[aria-expanded="true"] .sffc-crm-message-chevron {
  transform: rotate(180deg);
}

.sffc-crm-message-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 1000;
  animation: sffc-dropdown-fade-in 0.15s ease;
}

.sffc-crm-message-dropdown[hidden] {
  display: none;
}

.sffc-crm-message-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s ease;
  text-align: left;
  font-size: 14px;
  color: var(--linkedin-text);
}

.sffc-crm-message-option:hover {
  background: rgba(0, 0, 0, 0.04);
}

.sffc-crm-message-option:active {
  background: rgba(0, 0, 0, 0.08);
}

.sffc-crm-message-option svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #666;
}

.sffc-crm-message-option span {
  flex: 1;
  font-weight: 500;
}

.sffc-crm-message-option-featured {
  border: 1px solid #0d353e;
  background: #e6f2ef;
  font-weight: 600;
  color: #0d353e;
  box-shadow: 0 6px 18px rgba(13, 53, 62, 0.12);
}

.sffc-crm-message-option-featured:hover {
  background: #d9ebe6;
}

.sffc-crm-message-option-featured:active {
  background: #c6e1d9;
}

.sffc-crm-message-option.is-locked {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ============================================
   HR Prep Dropdown (Previously Hired Tab)
   ============================================ */
.sffc-crm-hr-prep-dropdown-wrapper {
  position: relative;
  display: inline-block;
  z-index: 1000;
}

.sffc-crm-hr-prep-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.sffc-crm-hr-prep-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.sffc-crm-hr-prep-toggle[aria-expanded="true"] .sffc-crm-hr-prep-chevron {
  transform: rotate(180deg);
}

.sffc-crm-hr-prep-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 10000;
  animation: sffc-dropdown-fade-in 0.15s ease;
}

.sffc-crm-hr-prep-dropdown[hidden] {
  display: none;
}

.sffc-crm-hr-prep-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s ease;
  text-align: left;
  font-size: 14px;
  color: var(--linkedin-text);
  text-decoration: none;
}

.sffc-crm-hr-prep-option:hover {
  background: rgba(0, 0, 0, 0.04);
}

.sffc-crm-hr-prep-option:active {
  background: rgba(0, 0, 0, 0.08);
}

.sffc-crm-hr-prep-option svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #666;
}

.sffc-crm-hr-prep-option span {
  flex: 1;
  font-weight: 500;
}

.sffc-crm-hr-prep-option.sffc-crm-hr-prep-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.sffc-crm-hr-recent-hire {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--linkedin-text-muted);
}

.sffc-crm-hr-recent-hire-label {
  font-weight: 500;
}

.sffc-crm-hr-recent-hire strong {
  color: #059669;
  font-weight: 600;
}

/* ============================================
   Application Pack Dropdown
   ============================================ */
/* Request Intro Button */
.sffc-crm-request-intro-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sffc-crm-request-intro-btn[data-intro-status="requested"] {
  background-color: #10a37f;
  border-color: #10a37f;
  color: #ffffff;
  cursor: default;
}

.sffc-crm-request-intro-btn[data-intro-status="requested"]:hover {
  background-color: #0e9170;
  border-color: #0e9170;
}

.sffc-crm-request-intro-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.sffc-crm-btn-success {
  background-color: #10a37f;
  border-color: #10a37f;
  color: #ffffff;
}

.sffc-crm-intro-membership-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10010;
}

.sffc-crm-intro-membership-modal.is-open {
  display: flex;
}

.sffc-crm-intro-membership-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 24, 0.68);
  backdrop-filter: blur(5px);
}

.sffc-crm-intro-membership-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 32px));
  border-radius: 24px;
  background: radial-gradient(
      circle at top right,
      rgba(99, 251, 201, 0.12),
      transparent 34%
    ),
    linear-gradient(180deg, #fffefb 0%, #f7f1e8 100%);
  border: 1px solid rgba(13, 53, 62, 0.12);
  box-shadow: 0 34px 90px rgba(6, 20, 24, 0.28);
  padding: 28px 28px 24px;
  animation: sffc-modal-slide-up 0.3s ease;
}

.sffc-crm-intro-membership-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(13, 53, 62, 0.08);
  color: var(--linkedin-brand);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sffc-crm-intro-membership-modal__close:hover {
  background: rgba(13, 53, 62, 0.14);
  transform: scale(1.04);
}

.sffc-crm-intro-membership-modal__eyebrow {
  margin: 0 0 10px;
  color: var(--linkedin-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sffc-crm-intro-membership-modal__dialog h3 {
  margin: 0 0 10px;
  color: var(--linkedin-brand);
  font-size: 30px;
  line-height: 1.15;
}

.sffc-crm-intro-membership-modal__copy {
  margin: 0;
  color: var(--linkedin-text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.sffc-crm-intro-membership-modal__benefits {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.sffc-crm-intro-membership-modal__benefit {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(13, 53, 62, 0.09);
}

.sffc-crm-intro-membership-modal__benefit strong {
  display: block;
  margin-bottom: 4px;
  color: var(--linkedin-brand);
  font-size: 15px;
}

.sffc-crm-intro-membership-modal__benefit p {
  margin: 0;
  color: var(--linkedin-text-secondary);
  line-height: 1.55;
}

.sffc-crm-intro-membership-modal__tick {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(99, 251, 201, 0.22);
  color: var(--linkedin-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.sffc-crm-intro-membership-modal__actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

body.sffc-crm-intro-membership-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .sffc-crm-intro-membership-modal__dialog {
    width: calc(100% - 20px);
    padding: 24px 18px 20px;
    border-radius: 20px;
  }

  .sffc-crm-intro-membership-modal__dialog h3 {
    font-size: 24px;
  }

  .sffc-crm-intro-membership-modal__actions {
    flex-direction: column-reverse;
  }

  .sffc-crm-intro-membership-modal__actions .sffc-crm-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Main Content Area
   ============================================ */
.sffc-crm-linkedin-main {
  min-width: 0;
  background: transparent;
}

.sffc-crm-linkedin-panel {
  display: none;
}

.sffc-crm-linkedin-panel.active {
  display: block;
  min-height: 720px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.sffc-crm-linkedin-panel > h2 {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(13, 53, 62, 0.08);
  color: #10211d;
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

/* Premium dashboard system shared by all CRM tabs */
.sffc-crm-linkedin-panel .sffc-crm-linkedin-feed,
.sffc-crm-linkedin-panel .sffc-crm-criteria-view,
.sffc-crm-linkedin-panel .sffc-crm-profile-view,
.sffc-crm-linkedin-panel .sffc-crm-dashboard-grid {
  max-width: none;
}

.sffc-crm-linkedin-panel .sffc-crm-linkedin-feed {
  display: grid;
  gap: 12px;
}

.sffc-crm-linkedin-panel .sffc-crm-dashboard-grid {
  gap: 14px;
}

.sffc-crm-linkedin-panel .sffc-crm-linkedin-feed-card,
.sffc-crm-linkedin-panel .sffc-crm-dashboard-card,
.sffc-crm-linkedin-panel .sffc-crm-criteria-card,
.sffc-crm-linkedin-panel .sffc-crm-profile-section,
.sffc-crm-linkedin-panel .sffc-crm-profile-header-card,
.sffc-crm-linkedin-panel .sffc-crm-linkedin-empty {
  border: 1px solid rgba(13, 53, 62, 0.08);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(13, 53, 62, 0.045);
  backdrop-filter: blur(16px);
}

.sffc-crm-linkedin-panel .sffc-crm-linkedin-feed-card:hover,
.sffc-crm-linkedin-panel .sffc-crm-dashboard-card:hover,
.sffc-crm-linkedin-panel .sffc-crm-criteria-card:hover {
  border-color: rgba(13, 105, 85, 0.18);
  box-shadow: 0 16px 40px rgba(13, 53, 62, 0.065);
}

.sffc-crm-linkedin-panel .sffc-crm-linkedin-following-header,
.sffc-crm-linkedin-panel .sffc-crm-criteria-header,
.sffc-crm-linkedin-panel .sffc-crm-dashboard-card-header,
.sffc-crm-linkedin-panel .sffc-crm-profile-section-header {
  border-bottom: 1px solid rgba(13, 53, 62, 0.08);
}

.sffc-crm-linkedin-panel .sffc-crm-linkedin-following-header h2,
.sffc-crm-linkedin-panel .sffc-crm-criteria-header h2,
.sffc-crm-linkedin-panel .sffc-crm-dashboard-card-header h3,
.sffc-crm-linkedin-panel .sffc-crm-profile-section-header h3 {
  color: #10211d;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.sffc-crm-linkedin-panel .sffc-crm-btn,
.sffc-crm-linkedin-panel .sffc-crm-section-save-btn,
.sffc-crm-linkedin-panel .sffc-crm-goto-profile {
  border-radius: 0;
}

.sffc-crm-linkedin-panel input,
.sffc-crm-linkedin-panel select,
.sffc-crm-linkedin-panel textarea {
  border-radius: 0 !important;
}

.sffc-crm-feed-context {
  margin-bottom: 12px;
  font-size: 13px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sffc-crm-feed-context-label {
  font-weight: 600;
  color: #0d353e;
}

.sffc-crm-feed-filter {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.sffc-crm-feed-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
}

.sffc-crm-feed-filter-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.sffc-crm-feed-filter-field input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #cbd5f5;
  border-radius: 6px;
  font-size: 13px;
  color: #0d353e;
  background: #fff;
}

.sffc-crm-feed-filter-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sffc-crm-group-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #475569;
}

.sffc-crm-group-filter label {
  font-weight: 600;
}

.sffc-crm-group-filter-select {
  min-width: 220px;
  padding: 6px 10px;
  border: 1px solid #cbd5f5;
  border-radius: 6px;
  font-size: 13px;
  color: #0d353e;
  background: #fff;
}

/* ============================================
   Feed Cards
   ============================================ */
.sffc-crm-linkedin-feed {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* ============================================
   Buttons
   ============================================ */
.sffc-crm-btn {
  border: none;
  border-radius: 16px;
  padding: 6px 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sffc-crm-btn-primary {
  background: var(--senna-accent);
  color: #000000;
}

.sffc-crm-btn-primary:hover {
  background: var(--senna-accent-hover);
  color: #000000;
}

.sffc-crm-btn-secondary {
  background: transparent;
  color: var(--linkedin-brand);
  border: 1px solid var(--linkedin-brand);
}

.sffc-crm-btn-secondary:hover {
  background: var(--linkedin-brand-light);
  border-color: var(--linkedin-brand-hover);
}

.sffc-crm-btn-ghost {
  background: transparent;
  border: 1px solid var(--linkedin-border);
  color: var(--linkedin-text);
}

.sffc-crm-btn-ghost:hover {
  border-color: var(--linkedin-brand);
  color: var(--linkedin-brand);
  background: var(--linkedin-hover);
}

.sffc-crm-btn-link {
  background: transparent;
  border: none;
  color: var(--linkedin-brand);
  padding: 0;
  font-weight: 600;
  gap: 4px;
}

.sffc-crm-btn-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.sffc-crm-btn-link:hover {
  color: var(--linkedin-brand-hover);
}

/* View Group Button - Prominent CTA */
.sffc-crm-view-group-btn {
  background: #0d353e;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s ease;
}

.sffc-crm-view-group-btn:hover {
  background: #1a4a56;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 53, 62, 0.3);
}

.sffc-crm-view-group-btn svg {
  stroke: currentColor;
}

.sffc-crm-linkedin-matches-feed {
  display: grid;
  gap: 12px;
}

.sffc-crm-matches-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sffc-crm-matches-apply-all-btn {
  background: #0d353e;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
}

.sffc-crm-matches-apply-all-btn:hover {
  background: #1a4a56;
  color: #fff;
}

.sffc-crm-match-queue-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #0d353e;
  background: #ffffff;
  color: #0d353e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sffc-crm-match-queue-toggle:hover,
.sffc-crm-match-queue-toggle.is-active {
  background: #0d353e;
  color: #ffffff;
}

.sffc-crm-matches-load-more {
  margin-top: 12px;
}

/* ============================================
   Prep Section
   ============================================ */
.sffc-crm-linkedin-prep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-md);
}

.sffc-crm-linkedin-prep-card {
  background: var(--linkedin-card);
  border: 1px solid var(--linkedin-border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
}

.sffc-crm-linkedin-prep-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin: 0 0 var(--spacing-sm);
}

.sffc-crm-linkedin-prep-card p {
  color: var(--linkedin-text-secondary);
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 var(--spacing-lg);
}

/* ============================================
   Company Prep Library (Phase 2 redesign)
   ============================================ */
.sffc-company-prep-section {
  margin-top: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.sffc-company-prep-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  background: var(--linkedin-card);
  border: 1px solid var(--linkedin-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg) var(--spacing-xl);
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}

.sffc-company-prep-hero-copy {
  flex: 1 1 260px;
}

.sffc-company-prep-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 var(--spacing-sm);
  color: var(--linkedin-text-muted);
}

.sffc-company-prep-hero-copy h2 {
  margin: 0 0 var(--spacing-sm);
  font-size: 28px;
  color: var(--linkedin-text);
}

.sffc-company-prep-hero-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.sffc-company-prep-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  align-items: center;
}

.sffc-company-prep-hero-meta div {
  min-width: 110px;
}

.sffc-company-prep-hero-meta small {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--linkedin-text-muted);
}

.sffc-company-prep-hero-meta strong {
  display: block;
  font-size: 22px;
  color: var(--linkedin-text);
}

.sffc-company-prep-notice {
  border: 1px dashed var(--linkedin-border);
  background: var(--linkedin-hover);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  font-size: 14px;
  color: var(--linkedin-text);
}

.sffc-company-prep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-lg);
}

@media (max-width: 1024px) {
  .sffc-company-prep-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sffc-company-prep-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.sffc-company-prep-card {
  position: relative;
  background: var(--linkedin-card);
  border: 1px solid var(--linkedin-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 100%;
  padding: 0;
}

.sffc-company-prep-banner {
  height: 130px;
  width: 100%;
  background: var(--linkedin-hover);
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.sffc-company-prep-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 53, 62, 0.7),
    rgba(13, 53, 62, 0.25)
  );
  opacity: 0.55;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.sffc-company-prep-card.has-banner .sffc-company-prep-banner::after {
  opacity: 0.35;
}

.sffc-company-prep-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--linkedin-text);
  font-size: 28px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  position: absolute;
  bottom: -42px;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.sffc-company-prep-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sffc-company-prep-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: calc(var(--spacing-lg) * 1.25);
  margin-top: 30px;
}

.sffc-company-prep-card-header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  align-items: center;
  text-align: center;
}
.sffc-company-prep-card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.sffc-company-prep-location {
  margin: 0;
  color: var(--linkedin-text-muted);
  font-size: 13px;
}

.sffc-company-prep-regions {
  margin: 0;
  font-size: 13px;
  color: var(--linkedin-text-muted);
}

.sffc-company-prep-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  align-items: baseline;
  font-size: 13px;
}

.sffc-company-prep-indicator {
  font-weight: 600;
  color: var(--linkedin-text);
}

.sffc-company-prep-meta a {
  font-size: 13px;
  color: var(--linkedin-brand);
  text-decoration: none;
}

.sffc-company-prep-meta a:hover {
  text-decoration: underline;
}

.sffc-company-prep-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.sffc-company-prep-request {
  width: 100%;
  justify-content: center;
}

.sffc-company-prep-request.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.sffc-company-prep-status {
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  background: var(--linkedin-hover);
  border: 1px solid var(--linkedin-border);
}

.sffc-company-prep-badge {
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-xs);
}

.sffc-company-prep-status-text {
  margin: 0;
  font-size: 13px;
  color: var(--linkedin-text);
}

.sffc-company-prep-status.is-pending .sffc-company-prep-badge {
  background: #fef7ec;
  color: #b45309;
}

.sffc-company-prep-status.is-approved .sffc-company-prep-badge {
  background: #ecfdf5;
  color: #047857;
}

.sffc-company-prep-status.is-rejected .sffc-company-prep-badge {
  background: #fef2f2;
  color: #b91c1c;
}

.sffc-company-prep-feedback {
  margin: 0;
  font-size: 13px;
  color: var(--linkedin-text);
  display: none;
}

.sffc-company-prep-feedback.is-visible {
  display: block;
}

.sffc-company-prep-feedback.is-error {
  color: #b91c1c;
}

.sffc-company-prep-empty {
  border: 1px dashed var(--linkedin-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-align: center;
  color: var(--linkedin-text-muted);
}

.sffc-company-prep-card[data-request-status=""] .sffc-company-prep-status {
  display: none;
}

.sffc-company-prep-card[data-request-status]:not([data-request-status=""])
  .sffc-company-prep-request {
  display: none;
}

.sffc-company-prep-status[hidden],
.sffc-company-prep-request[hidden] {
  display: none !important;
}

.sffc-company-prep-grid .sffc-crm-btn {
  min-height: 42px;
}

.sffc-crm-intro-card .sffc-company-prep-content {
  margin-top: 0;
}

.sffc-crm-request-intro.is-requested {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

.sffc-crm-intro-date {
  color: var(--linkedin-text-muted);
}

.sffc-crm-intros-grid {
  margin-top: var(--spacing-lg);
}

@media (max-width: 768px) {
  .sffc-company-prep-hero {
    padding: var(--spacing-lg);
    flex-direction: column;
    align-items: flex-start;
  }

  .sffc-company-prep-hero-meta {
    width: 100%;
  }
}

.sffc-prep-signup-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.sffc-prep-signup-modal.is-open {
  display: flex;
}

.sffc-prep-signup-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 35, 0.65);
}

.sffc-prep-signup-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: calc(var(--spacing-xl) * 1.2);
  max-width: 520px;
  width: calc(100% - 32px);
  box-shadow: 0 35px 80px rgba(9, 21, 26, 0.35);
  z-index: 1;
}

.sffc-prep-signup-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--linkedin-text-muted);
}

.sffc-prep-signup-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
  color: var(--linkedin-text-muted);
  margin-bottom: var(--spacing-xs);
}

.sffc-prep-signup-modal__dialog h3 {
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
  font-size: 26px;
}

.sffc-prep-signup-modal__dialog ul {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
  color: var(--linkedin-text);
}

.sffc-prep-signup-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

body.sffc-prep-modal-open {
  overflow: hidden;
}

/* ============================================
   Learning Section
   ============================================ */
.sffc-crm-linkedin-learning {
  text-align: center;
  padding: var(--spacing-xl);
  border: 2px dashed var(--linkedin-border);
  border-radius: var(--radius-md);
  background: var(--linkedin-card);
}

.sffc-crm-linkedin-learning h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin: 0 0 var(--spacing-sm);
}

.sffc-crm-linkedin-learning p {
  color: var(--linkedin-text-secondary);
  font-size: 14px;
  margin: 0 0 var(--spacing-lg);
}

/* ============================================
   Following Section
   ============================================ */
.sffc-crm-linkedin-following-header {
  margin-bottom: var(--spacing-lg);
}

.sffc-crm-linkedin-following-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin: 0 0 var(--spacing-xs);
}

.sffc-crm-linkedin-following-header p {
  color: var(--linkedin-text-muted);
  font-size: 14px;
  margin: 0;
}

.sffc-crm-linkedin-following-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.sffc-crm-following-card {
  background: var(--linkedin-card);
  border: 1px solid var(--linkedin-border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
}

.sffc-crm-following-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.sffc-crm-following-card header strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--linkedin-text);
  display: block;
  margin-bottom: 2px;
}

.sffc-crm-following-card header span {
  font-size: 14px;
  color: var(--linkedin-text-muted);
  display: block;
}

.sffc-crm-following-stage {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.sffc-crm-following-stage label {
  font-size: 12px;
  color: var(--linkedin-text-muted);
  font-weight: 600;
}

.sffc-crm-following-stage-select {
  border: 1px solid var(--linkedin-border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  background: var(--linkedin-card);
  font-size: 14px;
  color: var(--linkedin-text);
  cursor: pointer;
}

.sffc-crm-following-stage-select:focus {
  outline: none;
  border-color: var(--linkedin-brand);
}

.sffc-crm-following-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin: var(--spacing-sm) 0;
  color: var(--linkedin-text-muted);
  font-size: 12px;
}

.sffc-crm-following-notes {
  margin: 0 0 var(--spacing-md);
  color: var(--linkedin-text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.sffc-crm-following-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--linkedin-border-light);
  font-size: 12px;
}

.sffc-crm-following-card footer span {
  color: var(--linkedin-text-muted);
}

.sffc-crm-following-status-pill {
  padding: 4px 12px;
  border-radius: var(--radius-lg);
  color: var(--linkedin-card);
  font-weight: 600;
  font-size: 12px;
}

.sffc-crm-following-toast {
  display: inline-block;
  margin-left: var(--spacing-sm);
  font-size: 12px;
  color: var(--linkedin-success);
  font-weight: 600;
}

/* ============================================
   Profile View Section
   ============================================ */
.sffc-crm-linkedin-profile-view {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.sffc-crm-linkedin-profile-hero {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  background: var(--linkedin-card);
  border: 1px solid var(--linkedin-border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
}

.sffc-crm-linkedin-profile-hero h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin: 0 0 var(--spacing-xs);
}

.sffc-crm-linkedin-profile-hero p {
  color: var(--linkedin-text-secondary);
  font-size: 14px;
  margin: 0;
}

.sffc-crm-linkedin-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.sffc-crm-linkedin-profile-grid article {
  background: var(--linkedin-card);
  border: 1px solid var(--linkedin-border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
}

.sffc-crm-linkedin-profile-grid article h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin: 0 0 var(--spacing-sm);
}

.sffc-crm-linkedin-profile-grid article p {
  color: var(--linkedin-text-secondary);
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

/* ============================================
   Right Rail Resources
   ============================================ */
.sffc-crm-linkedin-resource-list {
  list-style: none;
  margin: 0;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.sffc-crm-linkedin-resource-list li {
  padding: 0;
}

.sffc-crm-linkedin-resource-list a {
  color: var(--linkedin-text);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sffc-crm-linkedin-resource-list a:hover {
  color: var(--linkedin-brand);
  text-decoration: underline;
}

/* ============================================
   Resource Library Tab
   ============================================ */
.sffc-crm-resource-library {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.sffc-crm-resource-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  background: var(--linkedin-card);
  border: 1px solid var(--linkedin-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.sffc-crm-resource-eyebrow {
  display: inline-flex;
  margin-bottom: var(--spacing-sm);
  color: var(--linkedin-brand);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sffc-crm-resource-hero h2 {
  margin: 0 0 var(--spacing-sm);
  color: var(--linkedin-text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.sffc-crm-resource-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--linkedin-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.sffc-crm-resource-count {
  display: none !important;
}

.sffc-crm-resource-count strong {
  display: block;
  color: var(--linkedin-brand);
  font-size: 28px;
  line-height: 1;
}

.sffc-crm-resource-count span {
  display: block;
  margin-top: var(--spacing-xs);
  color: var(--linkedin-text-muted);
  font-size: 12px;
  font-weight: 600;
}

.sffc-crm-resource-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--linkedin-card);
  border: 1px solid var(--linkedin-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.sffc-crm-resource-search {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  width: 100%;
  min-height: 44px;
  padding: 0 var(--spacing-md);
  background: var(--linkedin-hover);
  border: 1px solid var(--linkedin-border);
  border-radius: var(--radius-md);
}

.sffc-crm-resource-search svg {
  width: 18px;
  height: 18px;
  color: var(--linkedin-text-muted);
  flex: 0 0 auto;
}

.sffc-crm-resource-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--linkedin-text);
  font-size: 14px;
}

.sffc-crm-resource-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.sffc-crm-resource-filters button {
  min-height: 34px;
  padding: 0 var(--spacing-md);
  border: 1px solid var(--linkedin-border);
  border-radius: var(--radius-md);
  background: var(--linkedin-card);
  color: var(--linkedin-text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sffc-crm-resource-filters button.active,
.sffc-crm-resource-filters button:hover {
  border-color: var(--linkedin-brand);
  background: var(--linkedin-brand);
  color: #ffffff;
}

.sffc-crm-resource-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-md);
}

.sffc-crm-resource-featured-card,
.sffc-crm-resource-card {
  text-decoration: none;
  background: var(--linkedin-card);
  border: 1px solid var(--linkedin-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.sffc-crm-resource-featured-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  color: var(--linkedin-text);
}

.sffc-crm-resource-featured-card:hover,
.sffc-crm-resource-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(13, 53, 62, 0.18);
}

.sffc-crm-resource-type {
  width: fit-content;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--senna-accent-light);
  color: var(--linkedin-brand);
  font-size: 11px;
  font-weight: 800;
}

.sffc-crm-resource-featured-card strong {
  color: var(--linkedin-text);
  font-size: 16px;
  line-height: 1.3;
}

.sffc-crm-resource-featured-card span:last-child {
  color: var(--linkedin-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.sffc-crm-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-md);
}

.sffc-crm-resource-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sffc-crm-resource-card:focus-visible {
  outline: 2px solid var(--linkedin-brand);
  outline-offset: 2px;
}

.sffc-crm-resource-card-icon {
  width: 76px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--linkedin-brand-light);
  color: var(--linkedin-brand);
  font-weight: 800;
}

.sffc-crm-resource-card-icon--video {
  background: #eef8f4;
}

.sffc-crm-resource-card-icon--pdf {
  background: #fff3ee;
}

.sffc-crm-resource-card-icon--docx {
  background: #eef5ff;
}

.sffc-crm-resource-card-icon--xlsx {
  background: #edf8f0;
}

.sffc-crm-resource-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sffc-crm-resource-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.sffc-crm-resource-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.sffc-crm-resource-card-meta span {
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--linkedin-hover);
  color: var(--linkedin-text-muted);
  font-size: 11px;
  font-weight: 800;
}

.sffc-crm-resource-card h3 {
  margin: 0;
  color: var(--linkedin-text);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.sffc-crm-resource-card p {
  margin: 0;
  color: var(--linkedin-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.sffc-crm-resource-link {
  width: fit-content;
  margin-top: auto;
  color: var(--linkedin-brand);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.sffc-crm-resource-link:hover {
  text-decoration: underline;
}

.sffc-crm-resource-empty {
  margin-top: 0;
}

.sffc-crm-resource-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.sffc-crm-resource-load-more {
  min-width: 160px;
}

/* ============================================
   Mentorship Tab
   ============================================ */
.sffc-crm-mentorship {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.sffc-crm-mentorship-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  background: var(--linkedin-card);
  border: 1px solid var(--linkedin-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.sffc-crm-mentorship-eyebrow {
  display: inline-flex;
  margin-bottom: var(--spacing-sm);
  color: var(--linkedin-brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sffc-crm-mentorship-hero h2 {
  margin: 0 0 var(--spacing-sm);
  color: var(--linkedin-text);
  font-size: 28px;
  line-height: 1.12;
  font-weight: 800;
}

.sffc-crm-mentorship-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--linkedin-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.sffc-crm-mentorship-status {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(13, 53, 62, 0.12);
  border-radius: var(--radius-md);
  background: #eef8f4;
  color: var(--linkedin-brand);
  font-size: 12px;
  font-weight: 800;
}

.sffc-crm-mentorship-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-md);
}

.sffc-crm-mentorship-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--spacing-md);
  min-height: 210px;
  padding: var(--spacing-lg);
  background: var(--linkedin-card);
  border: 1px solid var(--linkedin-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sffc-crm-mentorship-card:hover {
  border-color: rgba(13, 53, 62, 0.2);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

.sffc-crm-mentorship-card-icon {
  width: 52px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--linkedin-brand-light);
  color: var(--linkedin-brand);
}

.sffc-crm-mentorship-card-icon svg {
  width: 25px;
  height: 25px;
}

.sffc-crm-mentorship-card h3 {
  margin: 0 0 var(--spacing-xs);
  color: var(--linkedin-text);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
}

.sffc-crm-mentorship-card p {
  margin: 0;
  color: var(--linkedin-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.sffc-crm-mentorship-card-action {
  grid-column: 2;
  align-self: end;
  width: fit-content;
  min-height: 38px;
  padding: 0 var(--spacing-md);
  border: 1px solid var(--linkedin-brand);
  border-radius: var(--radius-md);
  background: var(--linkedin-brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sffc-crm-mentorship-card-action:hover {
  background: #082b33;
  border-color: #082b33;
}

.sffc-crm-mentorship-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sffc-crm-mentorship-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 25, 31, 0.58);
}

.sffc-crm-mentorship-dialog {
  position: relative;
  width: min(100%, 640px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 26px;
  background: #ffffff;
  border: 1px solid rgba(13, 53, 62, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 28px 90px rgba(13, 53, 62, 0.26);
}

.sffc-crm-mentorship-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--linkedin-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--linkedin-text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.sffc-crm-mentorship-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--linkedin-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sffc-crm-mentorship-dialog h3 {
  margin: 0 40px 8px 0;
  color: var(--linkedin-text);
  font-size: 24px;
  line-height: 1.2;
}

.sffc-crm-mentorship-dialog > p {
  margin: 0 0 var(--spacing-lg);
  color: var(--linkedin-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.sffc-crm-mentorship-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-md);
}

.sffc-crm-mentorship-dialog label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--linkedin-text);
  font-size: 13px;
  font-weight: 800;
}

.sffc-crm-mentorship-dialog input,
.sffc-crm-mentorship-dialog textarea {
  width: 100%;
  border: 1px solid var(--linkedin-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--linkedin-text);
  font: inherit;
  font-weight: 500;
  outline: 0;
}

.sffc-crm-mentorship-dialog input {
  min-height: 42px;
  padding: 0 12px;
}

.sffc-crm-mentorship-dialog textarea {
  resize: vertical;
  min-height: 118px;
  padding: 12px;
}

.sffc-crm-mentorship-dialog input:focus,
.sffc-crm-mentorship-dialog textarea:focus {
  border-color: var(--linkedin-brand);
  box-shadow: 0 0 0 3px rgba(13, 53, 62, 0.1);
}

.sffc-crm-mentorship-field-wide,
.sffc-crm-mentorship-upload {
  margin-top: var(--spacing-md);
}

.sffc-crm-mentorship-upload {
  padding: var(--spacing-md);
  border: 1px dashed rgba(13, 53, 62, 0.24);
  border-radius: var(--radius-md);
  background: #f7faf9;
}

.sffc-crm-mentorship-upload span {
  color: var(--linkedin-text-muted);
  font-size: 12px;
  font-weight: 600;
}

.sffc-crm-mentorship-feedback {
  margin: var(--spacing-md) 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #eef8f4;
  color: var(--linkedin-brand);
  font-size: 13px;
  font-weight: 700;
}

.sffc-crm-mentorship-feedback.is-error {
  background: #fff3ee;
  color: #b42318;
}

.sffc-crm-mentorship-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.sffc-crm-mentorship-modal__actions .sffc-crm-btn {
  width: auto;
}

.sffc-crm-company-chip-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: 0 var(--spacing-md) var(--spacing-md);
}

.sffc-crm-company-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.sffc-crm-company-chip {
  border: 1px solid var(--linkedin-border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--linkedin-hover);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.sffc-crm-company-chip-meta {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.sffc-crm-company-chip-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--linkedin-card);
  border: 1px solid var(--linkedin-border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--linkedin-brand);
  overflow: hidden;
  flex-shrink: 0;
}

.sffc-crm-company-chip-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sffc-crm-company-chip-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--linkedin-text);
}

.sffc-crm-company-chip-meta span {
  display: block;
  font-size: 12px;
  color: var(--linkedin-text-muted);
}

.sffc-crm-company-chip-actions {
  display: flex;
  justify-content: flex-start;
}

.sffc-crm-company-chip-actions .sffc-crm-btn {
  min-width: 120px;
}

.sffc-crm-company-chip-footer {
  padding: 0 var(--spacing-md) var(--spacing-md);
  text-align: center;
}

.sffc-crm-company-chip-footer .sffc-crm-btn {
  width: 100%;
  justify-content: center;
}

.sffc-crm-company-spotlight-empty {
  padding: var(--spacing-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* ============================================
   Dashboard Grid (Segmented Leads)
   ============================================ */
.sffc-crm-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--spacing-sm);
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.sffc-crm-dashboard-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(12, 52, 62, 0.08);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.sffc-crm-linkedin-panel[data-panel="matches"] .sffc-crm-matches-onboarding {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 18px;
  position: relative;
  overflow: hidden;
}

.sffc-crm-tab.is-criteria-locked,
.sffc-crm-mobile-tab.is-criteria-locked,
.sffc-crm-profile-toggle.is-criteria-locked {
  cursor: not-allowed;
  opacity: 0.46;
}

.sffc-crm-sidebar-nav .sffc-crm-sidebar-nav__item.is-criteria-locked:hover,
.sffc-crm-tab.is-criteria-locked:hover,
.sffc-crm-mobile-tab.is-criteria-locked:hover,
.sffc-crm-profile-toggle.is-criteria-locked:hover {
  color: inherit;
  background: transparent;
}

.sffc-crm-linkedin[data-criteria-locked="true"] .sffc-user-menu.active,
.sffc-crm-linkedin[data-criteria-locked="true"] .sffc-user-menu.is-open,
.sffc-crm-linkedin[data-criteria-locked="true"]
  .sffc-crm-search-results.is-open {
  display: none !important;
}

.sffc-crm-linkedin[data-criteria-locked="true"] .sffc-crm-search-input {
  cursor: not-allowed;
  opacity: 0.6;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__preview {
  position: absolute;
  inset: 18px;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
  opacity: 0.42;
  filter: blur(4px);
  transform: scale(1.02);
  pointer-events: none;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__preview
  .match-card {
  min-height: 94px;
  background: rgba(255, 255, 255, 0.88);
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.58);
  pointer-events: none;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__card {
  width: min(720px, 100%);
  background: #fff;
  border: 1px solid rgba(13, 53, 62, 0.1);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(13, 53, 62, 0.08);
  position: relative;
  z-index: 2;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__header {
  margin-bottom: 22px;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__header
  span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #0d6955;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__plan {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 10px 8px;
  padding: 0 10px;
  border: 1px solid rgba(13, 105, 85, 0.16);
  border-radius: 999px;
  background: rgba(13, 105, 85, 0.08);
  color: #0d6955;
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: top;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__header
  h2 {
  margin: 0 0 8px;
  color: #0d353e;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__header
  p {
  max-width: 560px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__steps {
  margin-bottom: 16px;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__step[hidden] {
  display: none;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__step
  small {
  color: #0d6955;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__step
  h3 {
  margin: 0;
  color: #0d353e;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__option {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(13, 53, 62, 0.12);
  border-radius: 8px;
  background: rgba(64, 79, 104, 0.035);
  color: #0d353e;
  font-size: 14px;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease,
    transform 0.18s ease;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__option:hover {
  border-color: rgba(13, 105, 85, 0.4);
  background: #fff;
  transform: translateY(-1px);
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__option.is-selected {
  border-color: #0d6955;
  background: rgba(13, 105, 85, 0.08);
  box-shadow: inset 0 0 0 1px rgba(13, 105, 85, 0.18);
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__other {
  display: block;
  margin-top: 12px;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__other[hidden] {
  display: none;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__other
  span {
  display: block;
  margin-bottom: 7px;
  color: var(--linkedin-text-muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__other
  input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(13, 53, 62, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #0d353e;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__other
  input:focus {
  border-color: #0d6955;
  box-shadow: 0 0 0 3px rgba(13, 105, 85, 0.1);
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__fields {
  display: grid;
  gap: 12px;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__field
  span {
  display: block;
  margin-bottom: 7px;
  color: var(--linkedin-text-muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__field
  input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(13, 53, 62, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #0d353e;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__field
  input:focus {
  border-color: #0d6955;
  box-shadow: 0 0 0 3px rgba(13, 105, 85, 0.1);
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__other-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 10px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: #0d6955;
  color: #fff;
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__other-next:hover {
  background: #0a5041;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__card
  .sffc-crm-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 6px;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__actions
  .sffc-crm-btn {
  width: 100%;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__upgrade {
  min-width: 150px;
  border-color: rgba(13, 105, 85, 0.2);
  color: #0d6955;
  background: #fff;
  text-decoration: none;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-matches-onboarding__card
  .sffc-crm-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

@media (max-width: 760px) {
  .sffc-crm-linkedin-panel[data-panel="matches"] .sffc-crm-matches-onboarding {
    min-height: auto;
    padding: 18px 0;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .sffc-crm-matches-onboarding__preview {
    inset: 0;
    grid-template-columns: 1fr;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .sffc-crm-matches-onboarding__card {
    padding: 22px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .sffc-crm-matches-onboarding__options {
    grid-template-columns: 1fr;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .sffc-crm-matches-onboarding__actions {
    grid-template-columns: 1fr;
  }
}

.sffc-crm-linkedin-panel[data-panel="matches"] .matches-dashboard {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .matches-dashboard__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: var(--linkedin-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
  box-shadow: none;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .criteria-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .sffc-crm-edit-preferences-link {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(13, 53, 62, 0.12);
  border-radius: 4px;
  background: #fff;
  color: var(--linkedin-text-secondary);
  font-size: 11px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .sffc-crm-edit-preferences-link:hover {
  background: #f5faf7;
  color: #0d6955;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .criteria-apply-all,
.sffc-crm-linkedin-panel[data-panel="matches"] .criteria-adjust {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(13, 53, 62, 0.12);
  border-radius: 4px;
  background: #fff;
  color: var(--linkedin-brand);
  cursor: pointer;
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .criteria-adjust {
  background: #fff;
  color: var(--linkedin-text-secondary);
}

.sffc-crm-linkedin-panel[data-panel="matches"] .criteria-apply-all:hover,
.sffc-crm-linkedin-panel[data-panel="matches"] .criteria-adjust:hover {
  background: var(--linkedin-brand);
  color: #fff;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-strength-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(13, 53, 62, 0.1);
  border-radius: 8px;
  background: #fbfbfa;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-strength-control strong {
  display: block;
  color: var(--linkedin-text);
  font-size: 13px;
  font-weight: 760;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-strength-control span {
  display: block;
  margin-top: 2px;
  color: var(--linkedin-text-muted);
  font-size: 11px;
  font-weight: 700;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-strength-control label {
  display: grid;
  gap: 7px;
  min-width: 210px;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .match-strength-control
  label
  span {
  margin: 0;
  text-align: right;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-strength-control b {
  color: #0d6955;
  font-weight: 900;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .match-strength-control
  input[type="range"] {
  width: 100%;
  accent-color: #0d6955;
  cursor: pointer;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .matches-dashboard__board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .dashboard-group--best {
  grid-column: 1;
  width: 100%;
  background: rgba(64, 79, 104, 0.05);
}

.sffc-crm-linkedin-panel[data-panel="matches"] .dashboard-group--applications {
  grid-column: 2;
  width: 100%;
  background: rgba(64, 79, 104, 0.05);
}

.sffc-crm-linkedin-panel[data-panel="matches"] .matches-criteria-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(13, 53, 62, 0.08);
}

.sffc-crm-linkedin-panel[data-panel="matches"] .matches-criteria-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .matches-criteria-item {
  display: inline-grid;
  grid-template-columns: 22px minmax(0, auto) auto;
  align-items: center;
  gap: 7px;
  max-width: 230px;
  min-height: 34px;
  padding: 0 10px 0 6px;
  border: 1px solid rgba(13, 53, 62, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--linkedin-text);
  text-align: left;
  cursor: pointer;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .matches-criteria-item:hover,
.sffc-crm-linkedin-panel[data-panel="matches"]
  .matches-criteria-item.is-default {
  border-color: rgba(13, 105, 85, 0.18);
  border-radius: 5px;
  background: #f5faf7;
  color: #0d6955;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .matches-criteria-item span {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f4f5f1;
  color: rgba(13, 53, 62, 0.62);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .matches-criteria-item.is-default
  span,
.sffc-crm-linkedin-panel[data-panel="matches"]
  .matches-criteria-item:hover
  span {
  background: #0d6955;
  color: #fff;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .matches-criteria-item strong {
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .matches-criteria-item em {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f4f5f1;
  color: var(--linkedin-text-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 720;
  text-align: center;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .matches-sidebar-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  background: #0a5041;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .matches-sidebar-primary svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .matches-sidebar-primary:hover {
  background: #0d6955;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .matches-mobile-queue-trigger,
.sffc-crm-linkedin-panel[data-panel="matches"] .applications-mobile-close {
  display: none;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .dashboard-group {
  min-width: 0;
  width: 100%;
  min-height: 720px;
  padding: 22px;
  border: 0;
  border-radius: 10px;
  background: rgba(64, 79, 104, 0.05);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.sffc-crm-linkedin-panel[data-panel="matches"] .dashboard-group--applications {
  position: sticky;
  top: 18px;
  background: rgba(64, 79, 104, 0.05);
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .dashboard-group--applications.is-drag-over,
.sffc-crm-linkedin-panel[data-panel="matches"] .group-list.is-drag-over {
  border-color: #0d6955;
  background: #f0faf5;
  box-shadow: inset 0 0 0 1px rgba(13, 105, 85, 0.16);
}

.sffc-crm-linkedin-panel[data-panel="matches"] .group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  min-height: 54px;
  margin: -2px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(13, 53, 62, 0.08);
}

.sffc-crm-linkedin-panel[data-panel="matches"] .group-head strong {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--linkedin-text);
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .group-head strong span {
  display: inline;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .group-head > div > span {
  display: block;
  margin-top: 4px;
  color: var(--linkedin-text-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .group-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 580px;
  border-radius: 0;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-card {
  padding: 10px 12px;
  border: 1px solid rgba(13, 53, 62, 0.08);
  border-left: 3px solid transparent;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(13, 53, 62, 0.045);
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease, background 0.18s ease;
  cursor: grab;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-card:hover {
  border-color: rgba(13, 105, 85, 0.22);
  border-left-color: #0d6955;
  box-shadow: 0 14px 28px rgba(13, 53, 62, 0.075);
  transform: translateY(-1px);
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-card:active {
  cursor: grabbing;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-card.is-dragging {
  opacity: 0.48;
  transform: scale(0.98);
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-card.is-saving {
  pointer-events: none;
  opacity: 0.68;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-card.is-in-applications {
  border-color: rgba(13, 105, 85, 0.18);
  border-left-color: #0d6955;
  background: rgba(255, 255, 255, 0.9);
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .match-card.is-in-applications.is-newly-added {
  border: 1px solid rgba(13, 53, 62, 0.08);
  border-left: 3px solid #0d6955;
  box-shadow: 0 14px 30px rgba(13, 53, 62, 0.075);
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .match-card.is-in-applications
  .match-check {
  background: #0d6955;
  color: #fff;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .match-card.is-in-applications
  .match-top {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(13, 53, 62, 0.07);
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .dashboard-group--best
  .match-card:first-of-type {
  border-color: rgba(13, 105, 85, 0.2);
  border-left-color: #0d6955;
  background: #fff;
  box-shadow: 0 10px 22px rgba(13, 53, 62, 0.06);
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-top {
  display: grid;
  grid-template-columns: 18px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-check {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #0d6955;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-check:hover {
  background: #fff;
  color: #0d6955;
  box-shadow: inset 0 0 0 1px rgba(13, 105, 85, 0.32);
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-logo {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--linkedin-border-light);
  border-radius: 0;
  background: #fff;
  color: var(--linkedin-brand);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-copy {
  min-width: 0;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-copy strong {
  display: block;
  overflow: hidden;
  color: var(--linkedin-text);
  font-size: 13px;
  font-weight: 730;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-copy span {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--linkedin-text-muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-score-badge {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #0d6955;
  font-size: 9px;
  font-weight: 760;
  white-space: nowrap;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-score-percentage {
  color: var(--linkedin-text-muted);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-divider {
  height: 1px;
  margin: 8px 0;
  background: rgba(13, 53, 62, 0.07);
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-signals {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-signal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #263631;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-signal b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #0d6955;
  font-size: 10px;
  font-weight: 900;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-posted {
  color: var(--linkedin-text-muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-footer__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-materials {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-materials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 18px;
  padding: 0 5px;
  border: 1px solid rgba(13, 53, 62, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.8);
  color: var(--linkedin-text-secondary);
  font-size: 9px;
  font-weight: 720;
  text-decoration: none;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-materials a:hover {
  border-color: rgba(13, 105, 85, 0.22);
  color: #0d6955;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .match-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 7px;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .status-select {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 0;
  background: transparent;
  color: var(--linkedin-text-secondary);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .status-select.ready {
  background: transparent;
  color: #0d6955;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .status-select--submitted,
.sffc-crm-linkedin-panel[data-panel="matches"] .status-select--sent,
.sffc-crm-linkedin-panel[data-panel="matches"]
  .status-select--confirmation_sent,
.sffc-crm-linkedin-panel[data-panel="matches"]
  .status-select--assessment_pending,
.sffc-crm-linkedin-panel[data-panel="matches"]
  .status-select--awaiting_response,
.sffc-crm-linkedin-panel[data-panel="matches"] .status-select--interview,
.sffc-crm-linkedin-panel[data-panel="matches"] .status-select--offer,
.sffc-crm-linkedin-panel[data-panel="matches"] .status-select--accepted {
  color: #0a5041;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .status-select--rejected,
.sffc-crm-linkedin-panel[data-panel="matches"] .status-select--expired,
.sffc-crm-linkedin-panel[data-panel="matches"] .status-select--cancelled {
  color: #8a3324;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .application-card-update {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(13, 53, 62, 0.07);
}

.sffc-crm-linkedin-panel[data-panel="matches"] .application-card-update__line {
  display: block;
  margin-bottom: 5px;
  color: #0a5041;
  font-size: 10px;
  font-weight: 780;
  line-height: 1.25;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .application-card-update__docs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .application-card-update__docs
  span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #263631;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.2;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .application-card-update__docs
  b {
  color: #0d6955;
  font-size: 10px;
  font-weight: 900;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .application-card-update p {
  margin: 6px 0 0;
  color: var(--linkedin-text-secondary);
  font-size: 10px;
  font-weight: 620;
  line-height: 1.35;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .view-link {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid rgba(13, 105, 85, 0.18);
  border-radius: 5px;
  background: #fff;
  color: #0a5041;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .view-link:hover {
  border-color: rgba(13, 105, 85, 0.32);
  background: #f5faf7;
  color: #0d6955;
  text-decoration: none;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .remove-btn {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--linkedin-border-light);
  border-radius: 999px;
  background: #fff;
  color: var(--linkedin-text-muted);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .remove-btn:hover {
  border-color: rgba(185, 28, 28, 0.22);
  background: #fff5f5;
  color: #b91c1c;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .group-empty {
  padding: 28px 18px;
  border: 1px dashed var(--linkedin-border-light);
  border-radius: 18px;
  background: #fbfaf8;
  color: var(--linkedin-text-muted);
  font-size: 12px;
  text-align: center;
}

.sffc-crm-linkedin-panel[data-panel="matches"] .group-empty[hidden] {
  display: none !important;
}

.sffc-crm-linkedin-panel[data-panel="matches"]
  .group-list--applications
  .group-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7fbf8;
  color: #0d6955;
}

/* ============================================
   User Search Criteria
   ============================================ */
.sffc-crm-criteria-view {
  max-width: 980px;
  margin: 0 auto;
}

.sffc-crm-criteria-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.sffc-crm-criteria-header h2 {
  margin: 0;
  color: var(--linkedin-text);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.sffc-crm-criteria-header p {
  max-width: 620px;
  margin: 4px 0 0;
  color: var(--linkedin-text-muted);
  font-size: 13px;
}

.sffc-crm-criteria-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.sffc-crm-criteria-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  border: 1px solid var(--linkedin-border-light);
  border-radius: var(--radius-lg);
  background: var(--linkedin-card);
  box-shadow: var(--shadow-card);
}

.sffc-crm-criteria-card__main {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  min-width: 0;
}

.sffc-crm-criteria-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #e8f5ef;
  color: #0d6955;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
}

.sffc-crm-criteria-card h3 {
  margin: 0;
  color: var(--linkedin-text);
  font-size: 16px;
  font-weight: 800;
}

.sffc-crm-criteria-card h3 span {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f6f3ed;
  color: var(--linkedin-text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.sffc-crm-criteria-card p {
  margin: 4px 0 0;
  color: var(--linkedin-text-secondary);
  font-size: 13px;
  font-weight: 650;
}

.sffc-crm-criteria-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.sffc-crm-criteria-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--linkedin-border-light);
  border-radius: 999px;
  background: #faf7f1;
  color: var(--linkedin-text-muted);
  font-size: 11px;
  font-weight: 700;
}

.sffc-crm-criteria-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.sffc-crm-criteria-delete {
  color: #b91c1c;
}

.sffc-crm-criteria-modal[hidden] {
  display: none;
}

.sffc-crm-criteria-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 20px;
}

.sffc-crm-criteria-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 53, 62, 0.36);
}

.sffc-crm-criteria-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--linkedin-border-light);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(13, 53, 62, 0.18);
}

.sffc-crm-criteria-dialog h3 {
  margin: 0 0 16px;
  color: var(--linkedin-text);
  font-size: 22px;
}

.sffc-crm-criteria-dialog label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--linkedin-text-secondary);
  font-size: 13px;
  font-weight: 750;
}

.sffc-crm-criteria-dialog input,
.sffc-crm-criteria-dialog select,
.sffc-crm-criteria-dialog textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--linkedin-border);
  border-radius: 10px;
  background: #fcfaf6;
  color: var(--linkedin-text);
  font-size: 14px;
}

.sffc-crm-criteria-dialog select[multiple] {
  min-height: 110px;
}

.sffc-crm-criteria-keywords {
  margin-bottom: 12px;
}

.sffc-crm-criteria-keywords > label {
  margin-bottom: 6px;
}

.sffc-crm-keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 34px;
  margin-bottom: 8px;
}

.sffc-crm-keyword-tag,
.sffc-crm-keyword-empty {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #d8e8e2;
  border-radius: 999px;
  background: #f1faf6;
  color: #0d6955;
  font-size: 12px;
  font-weight: 750;
}

.sffc-crm-keyword-empty {
  border-color: var(--linkedin-border-light);
  background: #faf7f1;
  color: var(--linkedin-text-muted);
}

.sffc-crm-keyword-tag button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 105, 85, 0.12);
  color: #0d6955;
  cursor: pointer;
  line-height: 1;
}

.sffc-crm-keyword-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.sffc-crm-keyword-suggestions[hidden] {
  display: none;
}

.sffc-crm-keyword-suggestions button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--linkedin-border);
  border-radius: 999px;
  background: #fff;
  color: var(--linkedin-text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.sffc-crm-criteria-keywords p {
  margin: 7px 0 0;
  color: var(--linkedin-text-muted);
  font-size: 12px;
}

.sffc-crm-criteria-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-md);
}

.sffc-crm-criteria-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f6f3ed;
  color: var(--linkedin-text);
  cursor: pointer;
  font-size: 20px;
}

.sffc-crm-criteria-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.sffc-crm-criteria-feedback {
  margin: 10px 0 0;
  color: var(--linkedin-text-muted);
  font-size: 13px;
}

.sffc-crm-dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.sffc-crm-dashboard-eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--linkedin-text-muted);
}

.sffc-crm-dashboard-card-header h3 {
  margin: 0;
  font-size: 15px;
}

.sffc-crm-dashboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.sffc-crm-dashboard-list li {
  border: 1px solid rgba(12, 52, 62, 0.08);
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm);
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.sffc-crm-dashboard-list-main {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  flex: 1;
  flex-wrap: wrap;
}

.sffc-crm-dashboard-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(12, 52, 62, 0.08);
  background: #f8f9fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.sffc-crm-dashboard-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sffc-crm-dashboard-logo-initial {
  font-weight: 600;
  font-size: 16px;
  color: var(--crm-accent, #0d353e);
}

.sffc-crm-dashboard-title strong {
  display: block;
  font-size: 15px;
  color: var(--linkedin-text-strong, #0f172a);
}

.sffc-crm-dashboard-title span {
  color: var(--linkedin-text-muted);
}

.sffc-crm-dashboard-contact {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin: var(--spacing-xs) 0 0;
  font-size: 13px;
  color: var(--linkedin-text-muted);
  width: 100%;
}

.sffc-crm-dashboard-contact-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(12, 52, 62, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex-shrink: 0;
}

.sffc-crm-dashboard-contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sffc-crm-dashboard-actions {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
  align-self: flex-start;
}

.sffc-crm-dashboard-actions .sffc-crm-btn {
  min-width: 120px;
  justify-content: center;
}

.sffc-crm-dashboard-list strong {
  display: block;
  font-size: 14px;
}

.sffc-crm-dashboard-list span {
  font-size: 12px;
  color: var(--linkedin-text-muted);
}

.sffc-crm-dashboard-recruiter-name--masked {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(13, 105, 85, 0.07);
  color: #0a5041 !important;
  font-size: 12px;
  font-weight: 760;
}

.sffc-crm-dashboard-list-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px dashed rgba(13, 53, 62, 0.16);
  border-radius: 8px;
  background: rgba(64, 79, 104, 0.04);
}

.sffc-crm-dashboard-list-lock strong {
  display: block;
  color: #10211d;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.25;
}

.sffc-crm-dashboard-list-lock span {
  display: block;
  margin-top: 3px;
  color: var(--linkedin-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.sffc-crm-dashboard-list-lock .sffc-crm-btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
}

.sffc-crm-dashboard-list p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--linkedin-text-secondary);
}

/* ============================================
   HR Outreach Cards
   ============================================ */
/* ============================================
   HR Outreach Grid - 1x1 Layout
   ============================================ */
.sffc-crm-hr-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  max-width: 800px;
  margin: 0 auto;
}

.sffc-crm-hr-card {
  background: #fff;
  border: 1px solid rgba(13, 53, 62, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(13, 53, 62, 0.06);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.sffc-crm-hr-load-more {
  margin-top: var(--spacing-md);
  text-align: center;
}

.sffc-crm-hr-load-more .sffc-crm-btn {
  min-width: 220px;
}

.sffc-crm-hr-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 53, 62, 0.12);
}

.sffc-crm-hr-card-header {
  display: contents;
}

/* Merged Section Layout - Compact Horizontal */
.sffc-crm-hr-merged-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
  position: relative;
}

.sffc-crm-hr-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

.sffc-crm-hr-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--linkedin-card);
  border: 2px solid var(--linkedin-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  color: var(--linkedin-brand);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sffc-crm-hr-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Company Logo positioned on bottom right of avatar */
.sffc-crm-hr-logo {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 2px solid var(--linkedin-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  background: rgba(13, 53, 62, 0.08);
  color: var(--linkedin-brand);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.sffc-crm-hr-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info Section - Compact Single Line */
.sffc-crm-hr-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.sffc-crm-hr-info h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--linkedin-text);
  line-height: 1.3;
  padding-right: 200px;
}

.sffc-crm-hr-location {
  margin: 0;
  color: var(--linkedin-text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.sffc-crm-hr-contact-details {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
}

.sffc-crm-hr-contact-details strong {
  font-size: 13px;
  color: var(--linkedin-text-muted);
  font-weight: 500;
  margin: 0;
}

.sffc-crm-hr-contact-details span {
  font-size: 12px;
  color: var(--linkedin-text-muted);
}

.sffc-crm-hr-contact-details span::before {
  content: "•";
  margin-right: 6px;
  opacity: 0.5;
}

/* Hiring Badges - Ultra Compact Dots */
.sffc-crm-hr-hiring {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.sffc-crm-hr-hiring-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 500;
  color: #0369a1;
  background: rgba(2, 132, 199, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.2;
}

.sffc-crm-hr-hiring-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.6;
}

/* Badges with Label - Compact Pills */
.sffc-crm-hr-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.sffc-crm-hr-badge-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--linkedin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sffc-crm-hr-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 500;
  color: #047857;
  background: rgba(16, 185, 129, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.2;
}

.sffc-crm-hr-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.6;
}

.sffc-crm-hr-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}

.sffc-crm-hr-actions .sffc-crm-btn {
  padding: 7px 12px;
  font-size: 12px;
  min-width: auto;
  white-space: nowrap;
}

.sffc-crm-hr-notes {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--linkedin-text-secondary);
}

.sffc-crm-hr-team h4 {
  margin: 0 0 var(--spacing-xs);
  font-size: 14px;
  color: var(--linkedin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sffc-crm-hr-team ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.sffc-crm-hr-team li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  border: 1px solid var(--linkedin-border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--linkedin-card);
}

.sffc-crm-hr-team li strong {
  display: block;
  font-size: 14px;
}

.sffc-crm-hr-team li span {
  font-size: 12px;
  color: var(--linkedin-text-muted);
}

.sffc-crm-hr-team-links {
  display: flex;
  gap: var(--spacing-sm);
}

.sffc-crm-hr-team-links a {
  font-size: 12px;
  color: var(--linkedin-brand);
  text-decoration: none;
}

.sffc-crm-hr-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  font-size: 12px;
  color: var(--linkedin-text-muted);
}

/* ============================================
   HR Process Modal - LinkedIn Style
   ============================================ */
.sffc-crm-hr-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sffc-crm-hr-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sffc-crm-hr-modal-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  background: var(--linkedin-card);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sffc-crm-hr-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--linkedin-text-muted);
  transition: all 0.2s ease;
  z-index: 2;
}

.sffc-crm-hr-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--linkedin-text);
  transform: rotate(90deg);
}

.sffc-crm-hr-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--linkedin-border-light);
}

.sffc-crm-hr-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--linkedin-text);
}

.sffc-crm-hr-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.sffc-crm-hr-modal-section {
  margin-bottom: 32px;
}

.sffc-crm-hr-modal-section:last-child {
  margin-bottom: 0;
}

.sffc-crm-hr-modal-section h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--linkedin-text);
}

/* Skills List */
.sffc-crm-hr-skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.sffc-crm-hr-skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(2, 132, 199, 0.04);
  border: 1px solid rgba(2, 132, 199, 0.12);
  border-radius: 8px;
  font-size: 14px;
  color: var(--linkedin-text-secondary);
  transition: all 0.2s ease;
}

.sffc-crm-hr-skill-item:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.2);
  transform: translateX(4px);
}

.sffc-crm-hr-skill-item svg {
  flex-shrink: 0;
}

/* Process List */
.sffc-crm-hr-process-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.sffc-crm-hr-process-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: 8px;
  font-size: 14px;
  color: var(--linkedin-text-secondary);
  transition: all 0.2s ease;
}

.sffc-crm-hr-process-item:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  transform: translateX(4px);
}

.sffc-crm-hr-process-item svg {
  flex-shrink: 0;
}

/* Team List */
.sffc-crm-hr-modal-team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sffc-crm-hr-modal-team-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--linkedin-bg);
  border: 1px solid var(--linkedin-border-light);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sffc-crm-hr-modal-team-member:hover {
  border-color: var(--linkedin-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sffc-crm-hr-modal-team-info strong {
  display: block;
  font-size: 15px;
  color: var(--linkedin-text);
  margin-bottom: 4px;
}

.sffc-crm-hr-modal-team-info span {
  font-size: 13px;
  color: var(--linkedin-text-muted);
}

.sffc-crm-hr-modal-team-links {
  display: flex;
  gap: 12px;
}

.sffc-crm-hr-modal-team-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--linkedin-brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sffc-crm-hr-modal-team-links a:hover {
  color: var(--linkedin-brand-hover);
}

/* Footer Info */
.sffc-crm-hr-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sffc-crm-hr-modal-footer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--linkedin-bg);
  border: 1px solid var(--linkedin-border-light);
  border-radius: 8px;
  font-size: 14px;
  color: var(--linkedin-text-secondary);
}

.sffc-crm-hr-modal-footer-item svg {
  flex-shrink: 0;
  color: var(--linkedin-text-muted);
}

.sffc-crm-hr-modal-footer-item a {
  color: var(--linkedin-brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sffc-crm-hr-modal-footer-item a:hover {
  color: var(--linkedin-brand-hover);
  text-decoration: underline;
}

/* Scrollbar Styling for Modal */
.sffc-crm-hr-modal-body::-webkit-scrollbar {
  width: 8px;
}

.sffc-crm-hr-modal-body::-webkit-scrollbar-track {
  background: var(--linkedin-bg);
  border-radius: 4px;
}

.sffc-crm-hr-modal-body::-webkit-scrollbar-thumb {
  background: var(--linkedin-border);
  border-radius: 4px;
}

.sffc-crm-hr-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--linkedin-text-muted);
}

/* Responsive */
@media (max-width: 640px) {
  .sffc-crm-hr-modal-container {
    max-height: 95vh;
    border-radius: 12px;
  }

  .sffc-crm-hr-modal-header,
  .sffc-crm-hr-modal-body {
    padding: 20px 16px;
  }

  .sffc-crm-hr-process-list {
    grid-template-columns: 1fr;
  }

  .sffc-crm-hr-modal-team-member {
    flex-direction: column;
    align-items: flex-start;
  }

  /* HR Card Mobile Styles */
  .sffc-crm-hr-merged-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sffc-crm-hr-avatar-wrapper {
    margin-bottom: 16px;
  }

  .sffc-crm-hr-info h3 {
    font-size: 16px;
  }

  .sffc-crm-hr-badges {
    justify-content: center;
  }

  .sffc-crm-hr-actions {
    flex-direction: column;
    width: 100%;
  }

  .sffc-crm-hr-actions .sffc-crm-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Feed Load More
   ============================================ */
.sffc-crm-feed-load-more {
  display: flex;
  justify-content: center;
  padding: var(--spacing-xl) 0;
}

.sffc-crm-load-more-btn {
  min-width: 200px;
}

/* ============================================
   Empty States
   ============================================ */
.sffc-crm-linkedin-empty {
  background: var(--linkedin-card);
  border: 2px dashed var(--linkedin-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  text-align: center;
}

.sffc-crm-linkedin-empty p {
  color: var(--linkedin-text-muted);
  font-size: 14px;
  margin: 0 0 var(--spacing-lg);
}

/* ============================================
   Mobile Navigation - Bottom Tabs
   ============================================ */
.sffc-crm-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--linkedin-card);
  border-top: 1px solid var(--linkedin-border-light);
  padding: var(--spacing-xs) 0;
  z-index: 1000;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
}

.sffc-crm-mobile-nav-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  gap: 0;
}

.sffc-crm-mobile-tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--spacing-xs);
  border: none;
  background: transparent;
  color: var(--linkedin-text-muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  transition: color 0.2s ease;
  min-width: 0;
  min-height: 52px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.sffc-crm-mobile-tab.active {
  color: var(--linkedin-text);
}

.sffc-crm-mobile-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.sffc-crm-mobile-tab-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
}

.sffc-crm-mobile-tab-label {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile Me Tab with Avatar */
.sffc-crm-mobile-tab-me {
  flex: 1 1 0;
  position: relative;
  display: flex;
  align-self: stretch;
  min-width: 0;
}

.sffc-crm-mobile-tab-me .sffc-crm-mobile-tab {
  width: 100%;
}

.sffc-crm-mobile-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--linkedin-bg);
  border: 2px solid var(--linkedin-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sffc-crm-mobile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sffc-crm-mobile-avatar span {
  font-size: 10px;
  font-weight: 600;
  color: var(--senna-primary);
}

/* Mobile Me Dropdown Menu */
.sffc-crm-mobile-me-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: var(--linkedin-card);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 240px;
  max-width: calc(100vw - 32px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1001;
  pointer-events: none;
}

.sffc-crm-mobile-me-menu.active,
.sffc-crm-mobile-tab-me:hover .sffc-crm-mobile-me-menu {
  pointer-events: auto;
}

.sffc-crm-mobile-tab-me .sffc-crm-mobile-tab.active + .sffc-crm-mobile-me-menu,
.sffc-crm-mobile-tab-me:hover .sffc-crm-mobile-me-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sffc-crm-mobile-me-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--linkedin-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--linkedin-border-light);
}

.sffc-crm-mobile-me-item:last-child {
  border-bottom: none;
}

.sffc-crm-mobile-me-item:hover {
  background: var(--linkedin-hover);
}

.sffc-crm-mobile-me-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  flex-shrink: 0;
}

.sffc-crm-mobile-me-item-logout {
  color: #dc2626;
}

.sffc-crm-mobile-me-guest {
  padding: 16px;
  text-align: center;
}

.sffc-crm-mobile-me-guest p {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: var(--linkedin-text-muted);
}

.sffc-crm-mobile-me-guest .sffc-crm-btn {
  width: 100%;
  justify-content: center;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet - 1024px */
@media (max-width: 1024px) {
  .sffc-crm-linkedin-body {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--spacing-lg);
  }

  .sffc-crm-linkedin.sffc-crm-sidebar-collapsed .sffc-crm-linkedin-body,
  .sffc-crm-linkedin.sffc-crm-sidebar-collapsed
    .sffc-crm-linkedin-body.sffc-crm-matches-dashboard-mode {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-dashboard__board {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .dashboard-group--best,
  .sffc-crm-linkedin-panel[data-panel="matches"]
    .dashboard-group--applications {
    grid-column: auto;
    min-height: 0;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .dashboard-group--applications {
    position: static;
    order: 0;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .match-strength-control {
    align-items: stretch;
    flex-direction: column;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .match-strength-control label {
    min-width: 0;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .match-strength-control
    label
    span {
    text-align: left;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-criteria-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .sffc-crm-criteria-header,
  .sffc-crm-criteria-card {
    align-items: stretch;
    flex-direction: column;
  }

  .sffc-crm-criteria-actions {
    justify-content: flex-start;
  }

  .sffc-crm-criteria-files {
    grid-template-columns: 1fr;
  }
}

/* Tablet Portrait - 900px */
@media (max-width: 900px) {
  .sffc-crm-linkedin-body {
    grid-template-columns: 1fr;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .sffc-crm-linkedin-rail-left,
  .sffc-crm-linkedin-rail-right {
    display: none;
  }

  .sffc-crm-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .sffc-crm-linkedin-main {
    order: 1;
  }

  .sffc-crm-search {
    max-width: 200px;
  }

  .sffc-crm-dashboard-list-lock {
    align-items: stretch;
    flex-direction: column;
  }

  .sffc-crm-dashboard-list-lock .sffc-crm-btn {
    width: 100%;
  }
}

/* Mobile - 640px */
@media (max-width: 640px) {
  .sffc-crm-linkedin {
    padding: 0;
    padding-bottom: 60px;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .sffc-crm-linkedin-header {
    margin: 0 0 var(--spacing-sm);
    padding: var(--spacing-sm);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    overflow: visible;
    position: relative;
    z-index: 10050;
  }

  .sffc-crm-linkedin-brand {
    width: 100%;
    order: 1;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  .sffc-crm-linkedin-logo {
    width: auto;
  }

  .sffc-crm-search {
    flex: 1;
    max-width: none;
    order: 2;
    min-width: 0;
  }

  .sffc-crm-search-wrapper {
    max-width: none;
  }

  .sffc-crm-header-right {
    order: 3;
    justify-content: flex-end;
    flex-shrink: 0;
    flex-wrap: nowrap;
    gap: var(--spacing-md);
  }

  .sffc-crm-tabs {
    display: none;
  }

  .sffc-crm-linkedin-profile {
    position: relative;
    flex-shrink: 0;
  }

  .sffc-crm-profile-toggle {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .sffc-user-menu {
    position: fixed;
    top: auto !important;
    right: 8px;
    left: auto;
    min-width: 280px;
    max-width: calc(100vw - 16px);
    z-index: 10070;
  }

  .sffc-crm-linkedin-body {
    padding: 0 var(--spacing-sm);
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }

  .sffc-crm-linkedin-panel > h2 {
    font-size: 18px;
    padding: var(--spacing-sm) 0;
  }

  .sffc-crm-linkedin-panel {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Show Mobile Navigation */
  .sffc-crm-mobile-nav {
    display: block;
  }

  /* Touch-friendly feed cards */
  .sffc-crm-dashboard-actions,
  .sffc-crm-card-actions {
    flex-wrap: wrap;
  }

  .sffc-crm-dashboard-list-item,
  .sffc-crm-linkedin-feed-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px !important;
    padding: 12px;
    border-radius: 10px;
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-identity {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    gap: 10px;
  }

  .sffc-crm-dashboard-list-item
    .sffc-crm-dashboard-avatar-wrapper
    .sffc-crm-hr-avatar {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .sffc-crm-dashboard-list-item
    .sffc-crm-dashboard-avatar-wrapper
    .sffc-crm-hr-logo {
    width: 22px;
    height: 22px;
    font-size: 9px;
    border-width: 1.5px;
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-title {
    min-width: 0;
    gap: 2px;
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-title strong {
    font-size: 14px;
    line-height: 1.22;
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-title span,
  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-recruiter-name,
  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-recruiter-role {
    font-size: 11px;
    line-height: 1.25;
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-meta {
    gap: 5px;
    margin-top: 7px;
    font-size: 10px;
  }

  .sffc-crm-dashboard-list-item
    .sffc-crm-dashboard-meta
    > span:not(.sffc-crm-dashboard-fit-signals) {
    min-height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(64, 79, 104, 0.06);
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-fit-signals {
    flex-basis: 100%;
    gap: 4px;
    overflow: hidden;
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-fit-chip {
    min-height: 18px;
    padding: 0 6px;
    font-size: 9.5px;
  }

  .sffc-crm-dashboard-list-item
    .sffc-crm-dashboard-fit-chip:nth-of-type(n + 4) {
    display: none;
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-left: 0;
    align-self: stretch;
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-actions .sffc-crm-btn {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.1;
  }

  .sffc-crm-dashboard-list-item
    .sffc-crm-dashboard-actions
    .sffc-crm-btn:only-child {
    grid-column: 1 / -1;
  }

  .sffc-crm-btn {
    width: 100%;
  }

  /* Feed actions horizontal scroll on mobile */
  .sffc-crm-feed-action-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .sffc-crm-feed-action-row::-webkit-scrollbar {
    display: none;
  }

  .sffc-crm-feed-action {
    white-space: nowrap;
  }

  /* Profile View Mobile */
  .sffc-crm-profile-header-content {
    padding: 0 var(--spacing-md) var(--spacing-md);
  }

  .sffc-crm-profile-header-info {
    margin-left: 0;
    margin-top: var(--spacing-md);
    flex-direction: column;
    align-items: flex-start;
  }

  .sffc-crm-profile-header-info h2 {
    font-size: 24px;
  }

  .sffc-profile-edit-btn {
    width: 100%;
  }

  .sffc-crm-profile-section {
    padding: var(--spacing-lg);
  }

  /* Document cards single column on mobile */
  .sffc-crm-documents-grid {
    grid-template-columns: 1fr;
  }

  .sffc-crm-document-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .sffc-crm-document-actions {
    width: 100%;
    justify-content: flex-end;
  }

  /* Sticky disabled on mobile */
  .sffc-crm-linkedin-profile-card,
  .sffc-crm-sticky-card {
    position: relative;
    top: 0;
  }

  /* Profile banner smaller on mobile */
  .sffc-crm-profile-banner {
    height: 80px;
  }

  /* Tags wrap better on mobile */
  .sffc-crm-tags {
    gap: var(--spacing-xs);
  }

  .sffc-crm-tag {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* Extra Small Mobile - 480px */
@media (max-width: 480px) {
  .sffc-crm-linkedin-logo span {
    display: none;
  }

  .sffc-crm-tab-label {
    display: none;
  }

  .sffc-crm-linkedin-prep-grid {
    grid-template-columns: 1fr;
  }

  .sffc-crm-linkedin-profile-grid {
    grid-template-columns: 1fr;
  }

  /* User menu full width on very small screens */
  .sffc-user-menu {
    min-width: 260px;
    max-width: calc(100vw - 32px);
  }

  /* Profile sections tighter padding */
  .sffc-crm-profile-section {
    padding: var(--spacing-md);
  }

  .sffc-crm-profile-header-info h2 {
    font-size: 22px;
  }

  /* Document cards more compact */
  .sffc-crm-document-card {
    padding: var(--spacing-md);
  }

  .sffc-crm-document-icon {
    width: 40px;
    height: 40px;
  }

  .sffc-crm-document-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================
   Header Right Container
   ============================================ */
.sffc-crm-header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.sffc-crm-header-embed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: 100%;
}

.sffc-crm-header-embed__tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.sffc-crm-header-embed__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #0d353e;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sffc-crm-header-embed__tab:hover,
.sffc-crm-header-embed__tab:focus {
  background: #14515e;
  color: #ffffff;
  transform: translateY(-1px);
}

.sffc-crm-header-embed__tab.is-active {
  background: #0d6955;
}

.sffc-crm-header-embed__tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sffc-crm-header-embed__tab-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sffc-crm-header-embed__tab-label {
  display: inline-block;
}

.sffc-crm-header-embed__profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}

.sffc-crm-header-embed__avatar,
.sffc-crm-header-embed__avatar img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
}

.sffc-crm-header-embed__avatar {
  overflow: hidden;
  background: #0d353e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .sffc-crm-header-embed {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ============================================
   Profile Dropdown Menu
   ============================================ */
.sffc-crm-profile-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.sffc-crm-profile-toggle:hover {
  background: var(--linkedin-hover);
}

.sffc-crm-profile-chevron {
  width: 16px;
  height: 16px;
  stroke: var(--linkedin-text-muted);
  transition: transform 0.2s ease;
}

.sffc-crm-profile-toggle[aria-expanded="true"] .sffc-crm-profile-chevron {
  transform: rotate(180deg);
}

.sffc-user-menu {
  position: absolute !important;
  top: calc(100% + 8px);
  right: 0;
  min-width: 300px;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(13, 53, 62, 0.1);
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(13, 53, 62, 0.16);
  display: none;
  z-index: 10070;
  pointer-events: none;
  backdrop-filter: blur(18px);
}

.sffc-user-menu.active {
  display: block;
  pointer-events: auto;
}

.sffc-user-menu-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--linkedin-border-light);
}

.sffc-user-menu-info {
  flex: 1;
}

.sffc-user-menu-info strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin-bottom: 2px;
}

.sffc-user-menu-info span {
  display: block;
  font-size: 13px;
  color: var(--linkedin-text-muted);
}

.sffc-user-menu-nav {
  padding: var(--spacing-sm) 0;
}

.sffc-user-menu-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  color: var(--linkedin-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.sffc-user-menu-item:hover {
  background: var(--linkedin-hover);
}

.sffc-user-menu-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--linkedin-text-muted);
  flex-shrink: 0;
}

.sffc-user-menu-item-logout {
  border-top: 1px solid var(--linkedin-border-light);
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-md);
  color: #dc2626;
}

.sffc-user-menu-item-logout svg {
  stroke: #dc2626;
}

.sffc-user-menu-guest {
  padding: var(--spacing-lg);
  text-align: center;
}

.sffc-user-menu-guest p {
  margin: 0 0 var(--spacing-lg);
  color: var(--linkedin-text-secondary);
  font-size: 14px;
}

/* ============================================
   Sticky Profile Card
   ============================================ */
.sffc-crm-linkedin-profile-card {
  position: sticky;
  top: var(--spacing-lg);
}

/* ============================================
   Sticky Cards (Right Rail & Companies)
   ============================================ */
.sffc-crm-sticky-card {
  position: sticky;
  top: calc(var(--header-height, 64px) + var(--sticky-card-offset, 20px));
  align-self: flex-start;
  z-index: 1;
  padding-bottom: var(--spacing-lg);
}

/* ============================================
   View More Link
   ============================================ */
.sffc-crm-view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--linkedin-brand);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: var(--spacing-sm);
  transition: color 0.2s ease;
}

.sffc-crm-view-more-link:hover {
  color: var(--senna-primary);
}

.sffc-crm-view-more-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* ============================================
   Comprehensive Profile View
   ============================================ */
.sffc-crm-profile-header {
  position: relative;
  background: var(--linkedin-card);
  border: 1px solid var(--linkedin-border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.sffc-crm-profile-banner {
  height: 120px;
  background: linear-gradient(
    135deg,
    var(--auth-forest-green),
    var(--senna-primary)
  );
}

.sffc-crm-profile-header-content {
  padding: 0 var(--spacing-xl) var(--spacing-xl);
  margin-top: -48px;
  position: relative;
}

.sffc-crm-profile-header-info {
  margin-left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 100%;
}

.sffc-crm-profile-header-info h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--linkedin-text);
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.sffc-crm-profile-headline {
  color: var(--linkedin-text-secondary);
  font-size: 18px;
  margin: 0 0 20px 0;
  line-height: 1.6;
  font-weight: 400;
  max-width: 100%;
  word-wrap: break-word;
}

.sffc-crm-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  width: 100%;
}

.sffc-crm-profile-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.sffc-crm-profile-meta-icon {
  width: 20px;
  height: 20px;
  color: #6b7280;
  flex-shrink: 0;
}

.sffc-crm-profile-meta-text {
  font-size: 16px;
  color: var(--linkedin-text);
  font-weight: 500;
  line-height: 1.4;
}

.sffc-crm-profile-meta-edit {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
  margin-left: auto;
}

.sffc-crm-profile-meta-edit:hover {
  background: #f3f4f6;
  color: var(--linkedin-text);
}

.sffc-crm-profile-meta-edit svg {
  width: 16px;
  height: 16px;
}

.sffc-crm-profile-meta-add {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: none;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
  color: #6b7280;
  font-weight: 500;
  width: fit-content;
}

.sffc-crm-profile-meta-add:hover {
  background: #f9fafb;
  border-color: var(--linkedin-text);
  color: var(--linkedin-text);
}

.sffc-crm-profile-meta-add svg {
  width: 20px;
  height: 20px;
}

.sffc-profile-edit-btn {
  flex-shrink: 0;
}

.sffc-profile-edit-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* ============================================
   Profile Sections
   ============================================ */
.sffc-crm-profile-section {
  background: var(--linkedin-card);
  border: 1px solid var(--linkedin-border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-card);
}

.sffc-crm-profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.sffc-crm-profile-section-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin: 0;
}

.sffc-crm-section-edit-btn {
  border: none;
  background: transparent;
  color: var(--linkedin-brand);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.sffc-crm-section-edit-btn:hover {
  background: var(--linkedin-hover);
}

.sffc-crm-section-edit-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  display: block;
}

.sffc-crm-profile-content {
  /* Content styling */
}

/* ============================================
   Profile Grid Layouts
   ============================================ */
.sffc-crm-profile-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

@media (max-width: 768px) {
  .sffc-crm-profile-grid-2col {
    grid-template-columns: 1fr;
  }

  .sffc-crm-company-chip-actions .sffc-crm-btn,
  .sffc-crm-company-chip-footer .sffc-crm-btn {
    width: 100%;
  }
}

/* ============================================
   Profile Fields
   ============================================ */
.sffc-crm-profile-field {
  margin-bottom: var(--spacing-lg);
}

.sffc-crm-profile-field:last-child {
  margin-bottom: 0;
}

.sffc-crm-profile-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--linkedin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-sm);
}

.sffc-crm-field-value {
  color: var(--linkedin-text);
  font-size: 15px;
  font-weight: 500;
}

.sffc-alerts-summary {
  background: var(--linkedin-card-alt);
  border: 1px solid var(--linkedin-border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
}

.sffc-alerts-summary ul {
  margin: var(--spacing-md) 0 0;
  padding-left: 20px;
  color: var(--linkedin-text);
  font-size: 14px;
}

.sffc-alerts-status {
  margin: 0;
  font-size: 15px;
  color: var(--linkedin-text);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.sffc-alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(13, 53, 62, 0.08);
  color: #0d353e;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
}

.sffc-alert-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}

.sffc-alert-pill--on {
  background: rgba(5, 118, 66, 0.15);
  color: #057642;
}

.sffc-alert-pill--on::before {
  background: #16a34a;
}

.sffc-alerts-form {
  border: 1px solid var(--linkedin-border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  background: var(--linkedin-card);
}

.sffc-alerts-field {
  margin-bottom: var(--spacing-lg);
}

.sffc-alerts-field:last-child {
  margin-bottom: 0;
}

.sffc-alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 20px;
  font-size: 14px;
  color: var(--linkedin-text);
}

.sffc-alerts-grid label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--linkedin-text);
}

.sffc-alerts-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--linkedin-text);
}

.sffc-alerts-actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

@media (max-width: 640px) {
  .sffc-alerts-actions {
    flex-direction: column;
  }

  .sffc-alerts-actions .sffc-crm-btn {
    width: 100%;
  }
}

.sffc-alerts-feedback {
  font-size: 13px;
  margin-top: var(--spacing-md);
  color: #0d4b3f;
}

.sffc-alerts-feedback.is-error {
  color: #dc2626;
}

/* ============================================
   Tags
   ============================================ */
.sffc-crm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.sffc-crm-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--linkedin-hover);
  border: 1px solid var(--linkedin-border);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--linkedin-text);
}

.sffc-crm-tag-add {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: transparent;
  border: 1px dashed var(--linkedin-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--linkedin-brand);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sffc-crm-tag-add:hover {
  border-color: var(--linkedin-brand);
  background: var(--linkedin-brand-light);
}

.sffc-crm-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border: none;
  background: transparent;
  color: var(--linkedin-text-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  transition: all 0.2s ease;
  border-radius: var(--radius-full);
}

.sffc-crm-tag-remove:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

/* ============================================
   Document Cards
   ============================================ */
.sffc-crm-documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.sffc-crm-document-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--linkedin-hover);
  border: 1px solid var(--linkedin-border-light);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.sffc-crm-document-card:hover {
  border-color: var(--linkedin-border);
  box-shadow: var(--shadow-card);
}

.sffc-crm-document-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--linkedin-card);
  border-radius: var(--radius-md);
}

.sffc-crm-document-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--linkedin-brand);
}

.sffc-crm-document-info {
  flex: 1;
}

.sffc-crm-document-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin-bottom: 4px;
}

.sffc-crm-document-meta {
  display: block;
  font-size: 12px;
  color: var(--linkedin-text-muted);
}

.sffc-crm-document-type {
  display: inline-flex;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.sffc-crm-document-type.is-resume {
  background: #ecfdf5;
  color: #166534;
}

.sffc-crm-document-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--spacing-xs);
}

.sffc-crm-icon-btn {
  border: none;
  background: transparent;
  color: var(--linkedin-text-muted);
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.sffc-crm-icon-btn:hover {
  background: var(--linkedin-card);
  color: var(--linkedin-brand);
}

.sffc-crm-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  display: block;
}

.sffc-crm-document-type-toggle {
  border: 1px solid var(--linkedin-border);
  background: var(--linkedin-card);
  color: var(--linkedin-text);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
}

.sffc-crm-document-type-toggle.is-active {
  border-color: #86efac;
  color: #166534;
  background: #ecfdf5;
}

/* ============================================
   Button Sizes
   ============================================ */
.sffc-crm-btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.sffc-crm-btn-sm svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   Edit Mode States
   ============================================ */
.sffc-editing {
  background: var(--linkedin-brand-light);
  border-color: var(--linkedin-brand);
}

.sffc-crm-field-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--linkedin-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--linkedin-text);
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.sffc-crm-field-input:focus {
  outline: none;
  border-color: var(--linkedin-brand);
  box-shadow: 0 0 0 2px var(--linkedin-brand-light);
}

.sffc-crm-edit-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--linkedin-border-light);
}

/* ============================================
   Toast Notifications
   ============================================ */
.sffc-crm-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--linkedin-brand);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(13, 53, 62, 0.3);
  z-index: 10000;
  font-size: 14px;
  font-weight: 600;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   Feed Action Row Enhanced
   ============================================ */
.sffc-crm-feed-action-row .sffc-crm-btn-primary {
  background: var(--senna-accent);
  color: #000000;
  border: none;
}

.sffc-crm-feed-action-row .sffc-crm-btn-primary:hover {
  background: var(--senna-accent-hover);
}

/* ============================================
   Companies View
   ============================================ */
.sffc-crm-companies-header {
  margin-bottom: 24px;
}

.sffc-crm-companies-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--senna-primary);
  margin: 0 0 8px 0;
}

.sffc-crm-companies-header p {
  color: var(--linkedin-text-muted);
  margin: 0;
  font-size: 14px;
}

/* Add Company Form */
.sffc-crm-add-company {
  margin-bottom: 20px;
}

.sffc-crm-add-company-form {
  padding: 20px;
}

.sffc-crm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.sffc-crm-form-field {
  display: flex;
  flex-direction: column;
}

.sffc-crm-form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin-bottom: 8px;
}

.sffc-crm-form-field .required {
  color: #dc2626;
}

.sffc-crm-input {
  padding: 10px 12px;
  border: 1px solid var(--linkedin-border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--linkedin-text);
  background: var(--linkedin-card);
  transition: all 0.2s ease;
}

.sffc-crm-input:focus {
  outline: none;
  border-color: var(--senna-primary);
  box-shadow: 0 0 0 3px rgba(13, 53, 62, 0.1);
}

.sffc-crm-file-upload {
  position: relative;
}

.sffc-crm-file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.sffc-crm-file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--linkedin-bg);
  border: 1px dashed var(--linkedin-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: var(--linkedin-text-muted);
}

.sffc-crm-file-label:hover {
  background: var(--auth-dark-cream);
  border-color: var(--senna-primary);
}

.sffc-crm-file-label svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.sffc-crm-file-name {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--linkedin-text-muted);
}

.sffc-crm-form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 20px;
}

.sffc-crm-form-actions .sffc-crm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sffc-crm-form-actions .sffc-crm-btn svg {
  width: 18px;
  height: 18px;
}

/* Companies Grid */
.sffc-crm-companies-list {
  margin-bottom: 20px;
}

.sffc-crm-companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 20px;
}

.sffc-crm-company-card {
  position: relative;
  background: var(--linkedin-card);
  border: 1px solid var(--linkedin-border);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
}

.sffc-crm-company-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.sffc-crm-company-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.sffc-crm-company-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--linkedin-bg);
  border: 1px solid var(--linkedin-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sffc-crm-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.sffc-crm-company-info {
  flex: 1;
  min-width: 0;
}

.sffc-crm-company-info h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--linkedin-text);
}

.sffc-crm-company-industry {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: var(--linkedin-text-muted);
}

.sffc-crm-company-openings {
  margin: 0;
  font-size: 13px;
  color: var(--linkedin-text-muted);
}

.sffc-crm-company-openings strong {
  color: var(--senna-primary);
  font-weight: 600;
}

.sffc-crm-company-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--linkedin-text-muted);
  opacity: 0;
  transition: all 0.2s ease;
}

.sffc-crm-company-card:hover .sffc-crm-company-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.sffc-crm-company-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--linkedin-text-muted);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0;
}

.sffc-crm-company-card:hover .sffc-crm-company-delete {
  opacity: 1;
}

.sffc-crm-company-delete:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.sffc-crm-company-delete svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.sffc-crm-linkedin-card-header .sffc-crm-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: var(--linkedin-bg);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--linkedin-text-muted);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .sffc-crm-form-row {
    grid-template-columns: 1fr;
  }

  .sffc-crm-companies-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .sffc-crm-company-logo {
    width: 56px;
    height: 56px;
  }

  .sffc-crm-company-delete {
    opacity: 1;
  }
}

/* ============================================
   Keyword Groups (styled like quick-facts)
   ============================================ */
.sffc-crm-feed-keywords {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--linkedin-text);
}

.sffc-crm-keyword-group {
  display: inline;
  margin-right: 12px;
}

.sffc-crm-keyword-group:last-child {
  margin-right: 0;
}

.sffc-crm-keyword-group strong {
  font-weight: 600;
  color: var(--linkedin-text);
  margin-right: 4px;
}

.sffc-crm-keyword-group span {
  color: var(--linkedin-text-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sffc-crm-feed-keywords {
    font-size: 12px;
  }

  .sffc-crm-keyword-group {
    display: block;
    margin-bottom: 4px;
  }
}

/* ============================================
   Matches Tab & Job Preferences
   ============================================ */

/* Matches Header */
.sffc-crm-matches-header {
  background: #f8f9fa;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.sffc-crm-matches-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--linkedin-text);
}

.sffc-crm-matches-header p {
  margin: 0 0 1rem 0;
  color: var(--linkedin-text-secondary);
  font-size: 0.875rem;
}

/* Active Filters Display */
.sffc-crm-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.sffc-crm-filter-badge {
  background: #fff;
  border: 1px solid #d1d5db;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.813rem;
  color: var(--linkedin-text);
}

.sffc-crm-filter-badge strong {
  font-weight: 600;
  margin-right: 0.25rem;
  color: var(--linkedin-text);
}

.sffc-crm-edit-preferences-link {
  color: var(--linkedin-blue);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  margin-left: auto;
}

.sffc-crm-edit-preferences-link:hover {
  text-decoration: underline;
}

/* Match Badges */
.sffc-crm-match-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f0fdf4;
  border-bottom: 1px solid #d1fae5;
}

.sffc-crm-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #10b981;
  color: #fff;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.sffc-crm-match-badge svg {
  width: 12px;
  height: 12px;
}

/* Empty States */
.sffc-crm-matches-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.sffc-crm-matches-empty-state svg {
  color: var(--linkedin-text-secondary);
  margin-bottom: 1.5rem;
}

.sffc-crm-matches-empty-state h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--linkedin-text);
}

.sffc-crm-matches-empty-state p {
  margin: 0 0 1.5rem 0;
  color: var(--linkedin-text-secondary);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Matches Blurred Preview (Logged Out) */
.sffc-crm-matches-preview-blur {
  position: relative;
}

.sffc-crm-matches-login-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  pointer-events: none;
}

.sffc-crm-matches-login-overlay .sffc-crm-matches-onboarding__card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 480px;
  pointer-events: auto;
}

.sffc-crm-matches-login-overlay .sffc-crm-matches-onboarding__card svg {
  color: var(--linkedin-primary);
  margin-bottom: 1.5rem;
}

.sffc-crm-matches-login-overlay .sffc-crm-matches-onboarding__card h2 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--linkedin-text);
}

.sffc-crm-matches-login-overlay .sffc-crm-matches-onboarding__card p {
  margin: 0 0 2rem 0;
  color: var(--linkedin-text-secondary);
  line-height: 1.6;
}

.sffc-crm-matches-login-overlay
  .sffc-crm-matches-onboarding__card
  .sffc-crm-btn {
  min-width: 200px;
}

/* Responsive Overlay */
@media (max-width: 768px) {
  .sffc-crm-matches-login-overlay {
    position: absolute;
    top: 20%;
    transform: translate(-50%, 0);
  }

  .sffc-crm-matches-login-overlay .sffc-crm-matches-onboarding__card {
    padding: 2rem 1.5rem;
    max-width: 90vw;
  }

  .sffc-crm-matches-login-overlay .sffc-crm-matches-onboarding__card h2 {
    font-size: 1.25rem;
  }
}

/* Editable Tags */
.sffc-crm-tags-editable {
  border: 1px dashed #d1d5db;
  padding: 0.5rem;
  border-radius: 6px;
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.sffc-crm-tags-editable .sffc-crm-tag {
  background: var(--linkedin-blue);
  color: #fff;
  padding: 0.375rem 0.75rem;
  border-radius: 16px;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.sffc-crm-tag-remove {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 0.125rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.sffc-crm-tag-remove:hover {
  opacity: 1;
}

.sffc-crm-tag-add {
  background: #fff;
  border: 1px dashed #9ca3af;
  color: #6b7280;
  padding: 0.375rem 0.75rem;
  border-radius: 16px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.sffc-crm-tag-add:hover {
  border-color: var(--linkedin-blue);
  color: var(--linkedin-blue);
}

/* Tag Input */
.sffc-crm-tag-input-wrapper {
  display: inline-block;
}

.sffc-crm-tag-input {
  border: 1px solid var(--linkedin-blue);
  padding: 0.375rem 0.75rem;
  border-radius: 16px;
  font-size: 0.875rem;
  outline: none;
  min-width: 150px;
}

.sffc-crm-tag-select {
  border: 1px solid var(--linkedin-blue);
  padding: 0.375rem 0.75rem;
  border-radius: 16px;
  font-size: 0.875rem;
  outline: none;
  background: #fff;
  cursor: pointer;
}

/* Editable Fields */
.sffc-crm-field-editable {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sffc-crm-field-edit-btn {
  background: none;
  border: none;
  color: var(--linkedin-blue);
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.sffc-crm-field-edit-btn:hover {
  opacity: 1;
}

.sffc-crm-field-edit-btn svg {
  width: 16px;
  height: 16px;
}

.sffc-crm-field-input {
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  width: 100%;
  max-width: 300px;
  outline: none;
}

.sffc-crm-field-input:focus {
  border-color: var(--linkedin-blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}

/* Salary Editor */
.sffc-crm-salary-editor {
  margin-top: 0.75rem;
}

.sffc-crm-salary-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sffc-crm-salary-min,
.sffc-crm-salary-max {
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  width: 120px;
  outline: none;
}

.sffc-crm-salary-min:focus,
.sffc-crm-salary-max:focus {
  border-color: var(--linkedin-blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}

.sffc-crm-salary-currency {
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  background: #fff;
  cursor: pointer;
  outline: none;
}

.sffc-crm-salary-currency:focus {
  border-color: var(--linkedin-blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}

/* Save Button */
.sffc-crm-section-save-btn {
  background: var(--linkedin-blue);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.sffc-crm-section-save-btn:hover {
  background: #006db3;
}

.sffc-crm-section-save-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.sffc-crm-section-save-btn svg {
  width: 16px;
  height: 16px;
}

/* Go to Profile Button */
.sffc-crm-goto-profile {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--linkedin-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.sffc-crm-goto-profile:hover {
  background: #006db3;
  color: #fff;
}

/* Notification */
.sffc-crm-notice {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  max-width: 300px;
}

.sffc-crm-notice-success {
  border-left: 4px solid #10b981;
}

.sffc-crm-notice-error {
  border-left: 4px solid #ef4444;
}

/* Matches Feed Specific */
.sffc-crm-matches-feed {
  /* Inherits from sffc-crm-linkedin-feed */
}

.sffc-crm-matches-load-more {
  text-align: center;
  padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .sffc-crm-matches-header {
    padding: 1rem;
  }

  .sffc-crm-active-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .sffc-crm-edit-preferences-link {
    margin-left: 0;
  }

  .sffc-crm-salary-inputs {
    flex-direction: column;
    align-items: stretch;
  }

  .sffc-crm-salary-min,
  .sffc-crm-salary-max {
    width: 100%;
  }

  .sffc-crm-matches-empty-state {
    padding: 2rem 1rem;
  }

  .sffc-crm-matches-empty-state svg {
    width: 60px;
    height: 60px;
  }

  .sffc-crm-match-badges {
    padding: 0.5rem;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media (max-width: 900px) {
  .sffc-crm-tabs {
    display: flex !important;
  }
}

@media print {
  .sffc-crm-linkedin-header,
  .sffc-crm-tabs,
  .sffc-crm-feed-action-row,
  .sffc-crm-mobile-nav,
  .sffc-user-menu,
  .sffc-profile-edit-btn,
  .sffc-crm-section-edit-btn {
    display: none;
  }

  .sffc-crm-linkedin {
    background: white;
  }
}

/* ============================================
   Dashboard Quick View Modal
   ============================================ */
body.sffc-crm-dashboard-modal-open {
  overflow: hidden;
}

.sffc-crm-dashboard-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.sffc-crm-dashboard-modal.is-open {
  display: flex;
}

.sffc-crm-dashboard-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 23, 0.65);
}

.sffc-crm-dashboard-modal__dialog {
  position: relative;
  width: min(860px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 40px 120px rgba(5, 10, 20, 0.4);
}

.sffc-crm-dashboard-modal__close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: none;
  background: rgba(13, 53, 62, 0.12);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.sffc-crm-dashboard-modal__header {
  margin-bottom: 20px;
}

.sffc-crm-dashboard-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(6, 23, 34, 0.6);
}

.sffc-crm-dashboard-modal__company {
  margin: 6px 0 0;
  color: rgba(6, 23, 34, 0.75);
}

.sffc-crm-dashboard-modal__recruiter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.sffc-crm-dashboard-modal__avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(13, 53, 62, 0.12);
  background: #f5f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 600;
  color: var(--crm-senna-primary);
}

.sffc-crm-dashboard-modal__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sffc-crm-dashboard-modal__recruiter-meta strong {
  display: block;
}

.sffc-crm-dashboard-modal__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(6, 23, 34, 0.7);
}

.sffc-crm-dashboard-modal__meta span.is-hidden {
  display: none;
}

.sffc-crm-dashboard-modal__body {
  padding: 12px 0 20px;
  line-height: 1.6;
}

.sffc-crm-dashboard-modal__body p {
  margin-bottom: 12px;
}

.sffc-crm-dashboard-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

/* ============================================
   Dashboard Avatar Wrapper Styles
   ============================================ */
.sffc-crm-dashboard-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

.sffc-crm-dashboard-avatar-wrapper .sffc-crm-hr-logo,
.sffc-crm-dashboard-avatar-wrapper .sffc-crm-dashboard-logo-badge {
  width: 56px;
  height: 56px;
  font-size: 20px;
  border-width: 1px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.sffc-crm-dashboard-avatar-wrapper .sffc-crm-hr-avatar,
.sffc-crm-dashboard-avatar-wrapper .sffc-crm-dashboard-avatar {
  position: absolute;
  width: 28px;
  height: 28px;
  bottom: -2px;
  right: -2px;
  z-index: 2;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(6, 23, 34, 0.18);
  font-weight: 600;
  font-size: 12px;
}

.sffc-crm-dashboard-avatar-wrapper .sffc-crm-hr-avatar img,
.sffc-crm-dashboard-avatar-wrapper .sffc-crm-dashboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sffc-crm-dashboard-avatar-wrapper .sffc-crm-hr-logo,
.sffc-crm-dashboard-avatar-wrapper .sffc-crm-dashboard-logo-badge {
  color: var(--crm-senna-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sffc-crm-dashboard-avatar-wrapper .sffc-crm-hr-logo img,
.sffc-crm-dashboard-avatar-wrapper .sffc-crm-dashboard-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dashboard List Item Layout - Compact */
.sffc-crm-dashboard-list-item {
  display: flex;
  align-items: center;
  gap: 20px !important;
  flex-wrap: wrap;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.sffc-crm-dashboard-list-item:hover {
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.sffc-crm-dashboard-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.sffc-crm-dashboard-title {
  flex: 1;
}

.sffc-crm-dashboard-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.sffc-crm-dashboard-actions .sffc-crm-btn {
  padding: 8px 14px;
  font-size: 13px;
  min-width: auto;
  white-space: nowrap;
}

.sffc-crm-dashboard-tracking-confirmations {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.sffc-crm-dashboard-confirmation-line {
  font-size: 12px;
  color: #51636c;
}

.sffc-crm-dashboard-confirmation-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sffc-crm-dashboard-confirmation-doc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #0d353e;
  font-weight: 600;
}

/* Recruiter Name and Role on Same Line */
.sffc-crm-dashboard-recruiter {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sffc-crm-dashboard-recruiter-name {
  color: var(--crm-text-muted);
  font-size: 13px;
}

.sffc-crm-dashboard-recruiter-role {
  color: var(--crm-text-muted);
  font-size: 12px;
}

.sffc-crm-dashboard-recruiter-role::before {
  content: "•";
  margin-right: 6px;
  color: var(--crm-text-muted);
  opacity: 0.5;
}

.sffc-crm-dashboard-meta .sffc-crm-dashboard-fit-signals {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 100%;
}

.sffc-crm-dashboard-meta .sffc-crm-dashboard-fit-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(13, 105, 85, 0.14);
  border-radius: 999px;
  background: rgba(13, 105, 85, 0.06);
  color: #0d353e;
  font-size: 10px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.sffc-crm-dashboard-meta .sffc-crm-dashboard-fit-chip::before {
  content: "✓";
  color: #0d6955;
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 640px) {
  .sffc-crm-dashboard-list-item,
  .sffc-crm-linkedin-feed-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 10px !important;
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-identity {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    gap: 10px;
  }

  .sffc-crm-dashboard-list-item
    .sffc-crm-dashboard-avatar-wrapper
    .sffc-crm-hr-avatar {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .sffc-crm-dashboard-list-item
    .sffc-crm-dashboard-avatar-wrapper
    .sffc-crm-hr-logo {
    width: 22px;
    height: 22px;
    font-size: 9px;
    border-width: 1.5px;
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-title {
    min-width: 0;
    gap: 2px;
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-title strong {
    font-size: 14px;
    line-height: 1.22;
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-title span,
  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-recruiter-name,
  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-recruiter-role {
    font-size: 11px;
    line-height: 1.25;
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-meta {
    gap: 5px;
    margin-top: 7px;
    font-size: 10px;
  }

  .sffc-crm-dashboard-list-item
    .sffc-crm-dashboard-meta
    > span:not(.sffc-crm-dashboard-fit-signals) {
    min-height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(64, 79, 104, 0.06);
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-fit-signals {
    flex-basis: 100%;
    gap: 4px;
    overflow: hidden;
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-fit-chip {
    min-height: 18px;
    padding: 0 6px;
    font-size: 9.5px;
  }

  .sffc-crm-dashboard-list-item
    .sffc-crm-dashboard-fit-chip:nth-of-type(n + 4) {
    display: none;
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-left: 0;
    align-self: stretch;
  }

  .sffc-crm-dashboard-list-item .sffc-crm-dashboard-actions .sffc-crm-btn {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.1;
  }

  .sffc-crm-dashboard-list-item
    .sffc-crm-dashboard-actions
    .sffc-crm-btn:only-child {
    grid-column: 1 / -1;
  }
}

/* ===========================================
   Email Builder Modal Styles
   =========================================== */
.sffc-crm-email-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.sffc-crm-email-modal[aria-hidden="false"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sffc-crm-email-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 24, 0.65);
  backdrop-filter: blur(4px);
}

.sffc-crm-email-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 94vw);
  max-height: 92vh;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 100px rgba(6, 10, 20, 0.35);
  overflow: hidden;
  animation: sffc-modal-slide-up 0.3s ease;
}

@keyframes sffc-modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sffc-crm-email-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  font-size: 22px;
  color: #1b2b34;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 2;
}

.sffc-crm-email-modal__close:hover {
  background: rgba(0, 0, 0, 0.15);
  color: #000;
}

.sffc-crm-email-modal__layout {
  display: flex;
  gap: 32px;
  padding: 36px;
  height: 100%;
}

.sffc-crm-email-modal__profile {
  width: 280px;
  flex-shrink: 0;
  background: #f4f8f7;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sffc-crm-email-profile-card {
  display: flex;
  gap: 14px;
  align-items: center;
}

.sffc-crm-email-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #0d353e;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.sffc-crm-email-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sffc-crm-email-profile-meta strong {
  display: block;
  font-size: 16px;
  color: #0c2130;
}

.sffc-crm-email-profile-meta span {
  font-size: 13px;
  color: #4f6b7a;
}

.sffc-crm-email-profile-details {
  border-top: 1px solid rgba(12, 33, 48, 0.08);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sffc-crm-email-profile-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sffc-crm-email-profile-row span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a8c93;
}

.sffc-crm-email-profile-row strong,
.sffc-crm-email-profile-row a {
  font-size: 14px;
  color: #0c2130;
  text-decoration: none;
  word-break: break-word;
}

.sffc-crm-email-profile-row a:hover {
  color: #0d353e;
}

.sffc-crm-email-profile-hint {
  font-size: 13px;
  color: #4f6b7a;
  margin: 0;
  background: rgba(13, 53, 62, 0.08);
  padding: 12px;
  border-radius: 12px;
}

.sffc-crm-email-modal__builder {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sffc-crm-email-modal__header {
  padding: 0;
  border: none;
  margin-bottom: 20px;
}

.sffc-crm-email-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a8c93;
}

.sffc-crm-email-modal__header h3 {
  margin: 0;
  font-size: 26px;
  color: #0c2130;
}

.sffc-crm-email-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.sffc-crm-email-field span {
  font-size: 13px;
  font-weight: 600;
  color: #24404c;
}

.sffc-crm-email-field input,
.sffc-crm-email-field textarea {
  width: 100%;
  border: 1px solid rgba(11, 46, 54, 0.15);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #0c2130;
  background: #fefefe;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.sffc-crm-email-field textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.6;
}

.sffc-crm-email-field input:focus,
.sffc-crm-email-field textarea:focus {
  outline: none;
  border-color: #0d353e;
  box-shadow: 0 0 0 3px rgba(13, 53, 62, 0.15);
  background: #fff;
}

.sffc-crm-email-modal__actions {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.sffc-crm-email-modal__actions .sffc-crm-btn {
  min-width: 150px;
}

.sffc-crm-email-modal__actions .sffc-crm-btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.sffc-crm-email-feedback {
  font-size: 13px;
  margin: 14px 0 0;
  color: #0d353e;
}

.sffc-crm-email-feedback.is-error {
  color: #b42318;
}

@media (max-width: 960px) {
  .sffc-crm-email-modal__layout {
    flex-direction: column;
    padding: 28px;
    overflow-y: auto;
  }

  .sffc-crm-email-modal__profile {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sffc-crm-email-profile-card {
    width: 100%;
  }

  .sffc-crm-email-profile-details {
    flex: 1;
    padding-top: 12px;
  }
}

@media (max-width: 640px) {
  .sffc-crm-email-modal__actions {
    flex-direction: column;
  }

  .sffc-crm-email-modal__actions .sffc-crm-btn {
    width: 100%;
  }
}
body.sffc-crm-email-modal-open {
  overflow: hidden;
}

.sffc-crm-email-profile-avatar.has-image span {
  display: none;
}

/* ============================================
   New Post Dropdown - Subtle Notification
   ============================================ */

.sffc-crm-new-post-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--linkedin-card);
  border: 1px solid var(--linkedin-border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--linkedin-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
  animation: slideDown 0.3s ease;
}

.sffc-crm-new-post-dropdown:hover {
  background: var(--linkedin-hover);
  border-color: var(--senna-primary);
  color: var(--senna-primary);
}

.sffc-crm-new-post-dropdown svg:first-child {
  color: var(--senna-accent);
  animation: pulse 2s infinite;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.sffc-crm-new-post-dropdown[hidden] {
  display: none;
}

/* ==========================================================================
   QUESTION CHATBOX
   ========================================================================== */

.sffc-crm-question-chatbox {
  padding: 16px;
  background: var(--linkedin-card);
  border-top: 1px solid var(--linkedin-border);
}

.sffc-crm-question-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--linkedin-hover);
  border-radius: 24px;
  padding: 4px 4px 4px 16px;
  transition: background 0.2s ease;
}

.sffc-crm-question-input-wrapper:focus-within {
  background: var(--linkedin-card);
  box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.2);
}

.sffc-crm-question-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
  color: var(--linkedin-text);
  outline: none;
}

.sffc-crm-question-input::placeholder {
  color: var(--linkedin-text-muted);
}

.sffc-crm-question-input[readonly] {
  cursor: pointer;
}

.sffc-crm-question-submit {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #0a66c2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sffc-crm-question-submit:hover:not(:disabled) {
  background: #004182;
  transform: scale(1.05);
}

.sffc-crm-question-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sffc-crm-question-submit svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   SEARCH INPUT - REDUCED WIDTH
   ========================================================================== */

.sffc-crm-search-wrapper {
  position: relative;
  max-width: 400px;
  width: 100%;
  flex-shrink: 0;
}

.sffc-crm-search-input {
  width: 100%;
}

/* Search Results Dropdown */
.sffc-crm-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(13, 53, 62, 0.12);
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(13, 53, 62, 0.16);
  max-height: 400px;
  overflow-y: auto;
  z-index: 10080;
  display: none;
  backdrop-filter: blur(18px);
}

.sffc-crm-search-results.is-open {
  display: block;
}

.sffc-crm-search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--linkedin-border);
  transition: background 0.15s ease;
}

.sffc-crm-search-result-item:last-child {
  border-bottom: none;
}

.sffc-crm-search-result-item:hover {
  background: var(--linkedin-hover);
}

.sffc-crm-search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin: 0 0 4px 0;
}

.sffc-crm-search-result-meta {
  font-size: 12px;
  color: var(--linkedin-text-muted);
  margin: 0;
}

.sffc-crm-search-no-results {
  padding: 24px 16px;
  text-align: center;
  color: var(--linkedin-text-muted);
  font-size: 14px;
}

/* ==========================================================================
   DUPLICATE STYLES REMOVED - SEE LINE ~3617 FOR USER MENU STYLES
   ========================================================================== */

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
  .sffc-crm-search-wrapper {
    max-width: 200px;
  }

  .sffc-crm-question-chatbox {
    padding: 12px;
  }

  .sffc-crm-question-input {
    font-size: 13px;
  }

  .sffc-user-menu {
    right: -8px;
  }
}

/* ==========================================================================
   JOIN SENNA CONTAINER (LOGGED OUT PROFILE TAB)
   ========================================================================== */

.sffc-crm-join-senna-container {
  background: #f5f7fb !important;
  padding: var(--spacing-2xl) !important;
  border-radius: 18px !important;
  display: flex !important;
  justify-content: center !important;
}

.sffc-crm-join-card {
  width: 100% !important;
  max-width: 560px !important;
  background: #ffffff !important;
  border: 1px solid #e0e6f0 !important;
  border-radius: 18px !important;
  padding: 20px !important;
  box-shadow: 0 14px 36px rgba(20, 48, 96, 0.08) !important;
}

.sffc-crm-join-card h1 {
  font-size: 30px !important;
  margin: var(--spacing-sm) 0 var(--spacing-md) !important;
  color: var(--linkedin-text) !important;
}

.sffc-crm-join-eyebrow {
  font-size: 13px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  color: var(--linkedin-blue) !important;
  margin: 0 !important;
}

.sffc-crm-join-subhead {
  font-size: 16px !important;
  color: var(--linkedin-text-secondary) !important;
  margin: 0 0 var(--spacing-xl) !important;
  line-height: 1.5 !important;
}

.sffc-crm-join-benefits {
  list-style: none !important;
  margin: 0 0 var(--spacing-xl) !important;
  padding: 0 !important;
}

.sffc-crm-join-benefits li {
  padding: var(--spacing-md) 0 !important;
  border-bottom: 1px solid #eef1f6 !important;
}

.sffc-crm-join-benefits li strong {
  display: block !important;
  font-size: 15px !important;
  color: var(--linkedin-text) !important;
  margin-bottom: 4px !important;
}

.sffc-crm-join-benefits li span {
  font-size: 14px !important;
  color: var(--linkedin-text-secondary) !important;
}

.sffc-crm-join-cta {
  width: 100% !important;
  justify-content: center !important;
  border-radius: 10px !important;
  padding: 14px 24px !important;
  font-size: 16px !important;
  margin-bottom: var(--spacing-md) !important;
}

.sffc-crm-btn-xl {
  display: inline-flex !important;
  align-items: center !important;
  gap: var(--spacing-sm) !important;
  font-weight: 600 !important;
}

.sffc-crm-join-signin {
  text-align: center !important;
  font-size: 14px !important;
  color: var(--linkedin-text-secondary) !important;
  margin: 0 !important;
}

.sffc-crm-join-signin a {
  color: var(--linkedin-blue) !important;
  font-weight: 600 !important;
}

@media (max-width: 640px) {
  .sffc-crm-join-card {
    padding: var(--spacing-xl) !important;
  }
}

/* Signup Form Styles */
.sffc-crm-signup-form {
  margin-bottom: var(--spacing-xl) !important;
}

.sffc-crm-form-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: var(--spacing-md) !important;
  margin-bottom: var(--spacing-md) !important;
}

.sffc-crm-form-field {
  margin-bottom: var(--spacing-md) !important;
}

.sffc-crm-form-field label {
  display: block !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--linkedin-text) !important;
  margin-bottom: 6px !important;
}

.sffc-crm-form-field input[type="text"],
.sffc-crm-form-field input[type="email"],
.sffc-crm-form-field input[type="password"] {
  width: 100% !important;
  padding: 12px 14px !important;
  border: 1px solid #d0d7e3 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  color: var(--linkedin-text) !important;
  background: #ffffff !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.sffc-crm-form-field input[type="text"]:focus,
.sffc-crm-form-field input[type="email"]:focus,
.sffc-crm-form-field input[type="password"]:focus {
  outline: none !important;
  border-color: var(--linkedin-blue) !important;
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1) !important;
}

.sffc-crm-field-hint {
  display: block !important;
  font-size: 13px !important;
  color: var(--linkedin-text-muted) !important;
  margin-top: 4px !important;
}

.sffc-crm-form-checkbox {
  margin-bottom: var(--spacing-lg) !important;
}

.sffc-crm-form-checkbox label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  cursor: pointer !important;
}

.sffc-crm-form-checkbox input[type="checkbox"] {
  margin-top: 2px !important;
  flex-shrink: 0 !important;
  width: 18px !important;
  height: 18px !important;
  cursor: pointer !important;
}

.sffc-crm-form-checkbox span {
  font-size: 13px !important;
  color: var(--linkedin-text-secondary) !important;
  line-height: 1.5 !important;
}

.sffc-crm-form-checkbox a {
  color: var(--linkedin-blue) !important;
  text-decoration: none !important;
}

.sffc-crm-form-checkbox a:hover {
  text-decoration: underline !important;
}

.sffc-crm-form-message {
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  margin-bottom: var(--spacing-md) !important;
  font-weight: 500 !important;
}

.sffc-crm-form-message.success {
  background: #d4edda !important;
  color: #155724 !important;
  border: 1px solid #c3e6cb !important;
}

.sffc-crm-form-message.error {
  background: #f8d7da !important;
  color: #721c24 !important;
  border: 1px solid #f5c6cb !important;
}

.sffc-crm-btn-spinner {
  display: none !important;
  animation: spin 1s linear infinite !important;
}

.sffc-crm-btn-spinner svg {
  width: 20px !important;
  height: 20px !important;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

button[type="submit"]:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
}

.sffc-crm-join-benefits li {
  display: flex !important;
  align-items: flex-start !important;
  gap: var(--spacing-md) !important;
  padding: var(--spacing-md) 0 !important;
  border-bottom: 1px solid #eef1f6 !important;
}

.sffc-crm-join-benefits li:last-child {
  border-bottom: none !important;
}

.sffc-crm-join-benefits li svg {
  flex-shrink: 0 !important;
  color: #10b981 !important;
  margin-top: 2px !important;
}

.sffc-crm-join-benefits li div {
  flex: 1 !important;
}

.sffc-crm-join-benefits li strong {
  margin-bottom: 4px !important;
}

@media (max-width: 640px) {
  .sffc-crm-form-row {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   BLUR EFFECT FOR NON-MEMBERS
   ========================================================================== */

.sffc-crm-linkedin .sffc-crm-blurred,
.sffc-crm-linkedin
  .sffc-crm-dashboard-list--teaser
  .sffc-crm-dashboard-list-item,
.sffc-crm-linkedin .sffc-crm-hr-grid--teaser .sffc-crm-hr-card {
  filter: none !important;
  user-select: text !important;
  pointer-events: auto !important;
}

/* ==========================================================================
   MEMBERSHIP BADGE & TOGGLE
   ========================================================================== */

.sffc-membership-badge-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.sffc-membership-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

.sffc-membership-badge.is-active {
  background: #0d353e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(13, 53, 62, 0.2);
}

.sffc-membership-badge .sffc-membership-icon {
  width: 14px;
  height: 14px;
}

.sffc-membership-badge.is-active .sffc-membership-icon {
  fill: currentColor;
}

.sffc-membership-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.sffc-membership-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.sffc-membership-toggle-slider {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background: #d1d5db;
  border-radius: 24px;
  transition: background 0.3s ease;
}

.sffc-membership-toggle-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.sffc-membership-toggle-input:checked + .sffc-membership-toggle-slider {
  background: var(--linkedin-blue);
}

.sffc-membership-toggle-input:checked + .sffc-membership-toggle-slider::after {
  transform: translateX(20px);
}

.sffc-membership-toggle-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--linkedin-text);
}

/* ==========================================================================
   MEMBERSHIP SECTION
   ========================================================================== */

.sffc-crm-membership-section {
  margin-top: 24px;
}

.sffc-membership-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #f3f4f6;
  color: #6b7280;
}

.sffc-membership-status-badge.is-active {
  background: #d1fae5;
  color: #065f46;
}

.sffc-membership-details {
  margin-top: 16px;
}

.sffc-membership-plan-info {
  background: var(--linkedin-bg);
  border: 1px solid var(--linkedin-border-light);
  border-radius: 12px;
  padding: 20px;
}

.sffc-membership-plan-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--linkedin-border-light);
}

.sffc-membership-plan-name strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--linkedin-text);
}

.sffc-membership-plan-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--linkedin-blue);
}

.sffc-membership-benefits {
  margin-bottom: 16px;
}

.sffc-membership-benefits-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin: 0 0 12px 0;
}

.sffc-membership-benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sffc-membership-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--linkedin-text-secondary);
}

.sffc-membership-benefits-list li svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.sffc-membership-upgrade-btn {
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.sffc-membership-upgrade-btn svg {
  width: 16px;
  height: 16px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .sffc-membership-badge-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sffc-membership-plan-name {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================================
   MATCHES MEMBERSHIP GATE
   ========================================================================== */

.sffc-crm-matches-membership-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: var(--spacing-2xl);
}

.sffc-crm-matches-join-card {
  max-width: 800px;
  width: 100%;
  background: white;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.sffc-matches-join-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 50%;
  margin: 0 auto 24px;
}

.sffc-matches-join-icon svg {
  width: 40px;
  height: 40px;
  color: white;
  fill: currentColor;
}

.sffc-crm-matches-join-card h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--linkedin-text);
  margin: 0 0 12px 0;
}

.sffc-matches-join-subtitle {
  font-size: 18px;
  color: var(--linkedin-text-secondary);
  margin: 0 0 40px 0;
  line-height: 1.6;
}

.sffc-matches-join-benefits {
  text-align: left;
  background: var(--linkedin-bg);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
}

.sffc-matches-join-benefits h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin: 0 0 20px 0;
  text-align: center;
}

.sffc-matches-join-benefits ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.sffc-matches-join-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--linkedin-text);
}

.sffc-matches-join-benefits li svg {
  width: 20px;
  height: 20px;
  color: var(--linkedin-success);
  flex-shrink: 0;
}

.sffc-matches-join-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.sffc-matches-pricing-option {
  position: relative;
  background: white;
  border: 2px solid var(--linkedin-border-light);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.sffc-matches-pricing-option:hover {
  border-color: var(--linkedin-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.1);
}

.sffc-matches-pricing-option.is-featured {
  border-color: var(--linkedin-blue);
  background: linear-gradient(to bottom, rgba(10, 102, 194, 0.05), white);
}

.sffc-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--linkedin-blue);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.sffc-pricing-header {
  margin-bottom: 20px;
}

.sffc-pricing-header h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin: 0 0 8px 0;
}

.sffc-pricing-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--linkedin-text);
  margin: 0;
}

.sffc-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.sffc-pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--linkedin-text-secondary);
}

.sffc-pricing-features li svg {
  width: 16px;
  height: 16px;
  color: var(--linkedin-success);
  flex-shrink: 0;
}

.sffc-matches-join-btn {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
}

.sffc-matches-join-btn svg {
  width: 20px;
  height: 20px;
}

.sffc-matches-join-note {
  font-size: 14px;
  color: var(--linkedin-text-muted);
  margin: 16px 0 0 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .sffc-crm-matches-join-card {
    padding: 32px 24px;
  }

  .sffc-crm-matches-join-card h2 {
    font-size: 24px;
  }

  .sffc-matches-join-subtitle {
    font-size: 16px;
  }

  .sffc-matches-join-benefits {
    padding: 24px;
  }

  .sffc-matches-join-pricing {
    grid-template-columns: 1fr;
  }

  .sffc-matches-join-benefits li {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sffc-matches-join-benefits li svg {
    margin: 0 auto;
  }

  .sffc-pricing-value {
    font-size: 36px;
  }
}

/* ============================================
   Join Senna Signup Overlay
   ============================================ */

/* Lock the entire page when signup is required */

@media (max-width: 900px) {
  .sffc-crm-linkedin-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
  }

  .sffc-crm-linkedin-brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    gap: 10px;
    align-items: center;
  }

  .sffc-crm-linkedin-logo {
    min-width: 0;
  }

  .sffc-crm-linkedin-logo span {
    display: none;
  }

  .sffc-crm-search-wrapper,
  .sffc-crm-search {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .sffc-crm-header-right {
    justify-content: flex-end;
    min-width: 0;
  }

  .sffc-crm-tabs {
    display: none !important;
  }

  .sffc-crm-linkedin-body.sffc-crm-matches-dashboard-mode,
  .sffc-crm-linkedin.sffc-crm-sidebar-collapsed
    .sffc-crm-linkedin-body.sffc-crm-matches-dashboard-mode {
    display: block;
    grid-template-columns: none;
    width: 100%;
    max-width: 100%;
    padding: 0 10px 72px;
    overflow-x: hidden;
  }

  .sffc-crm-linkedin-body.sffc-crm-matches-dashboard-mode
    .sffc-crm-linkedin-main {
    width: 100%;
    min-width: 0;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-dashboard {
    width: 100%;
    overflow-x: hidden;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-dashboard__board {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .dashboard-group,
  .sffc-crm-linkedin-panel[data-panel="matches"] .dashboard-group--best,
  .sffc-crm-linkedin-panel[data-panel="matches"]
    .dashboard-group--applications {
    width: 100%;
    min-width: 0;
    min-height: 0;
    grid-column: auto;
    padding: 14px;
    position: static;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-criteria-bar {
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-criteria-list {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .matches-criteria-list::-webkit-scrollbar {
    display: none;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-criteria-item {
    flex: 0 0 auto;
    max-width: 210px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-sidebar-primary {
    width: 100%;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-mobile-queue-trigger {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(13, 53, 62, 0.12);
    border-radius: 5px;
    background: #fff;
    color: #0d353e;
    font-size: 12px;
    font-weight: 820;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .matches-mobile-queue-trigger
    b {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #0d6955;
    color: #fff;
    font-size: 11px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .dashboard-group--applications {
    position: fixed;
    inset: 0;
    z-index: 10090;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    background: rgba(244, 245, 241, 0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(24px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .dashboard-group--applications.is-mobile-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .dashboard-group--applications
    .applications-mobile-close {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-row: 1;
    align-self: flex-end;
    justify-self: flex-end;
    margin: 0;
    border: 1px solid rgba(13, 53, 62, 0.12);
    border-radius: 999px;
    background: #fff;
    color: #0d353e;
    font-size: 22px;
    line-height: 1;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .dashboard-group--applications
    .group-head {
    grid-row: 2;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(13, 53, 62, 0.08);
    border-radius: 8px;
    background: #fff;
    flex-shrink: 0;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .dashboard-group--applications
    .criteria-actions {
    display: grid;
    grid-template-columns: 1fr 0.55fr;
    gap: 8px;
    width: 100%;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .dashboard-group--applications
    .matches-dashboard__cta,
  .sffc-crm-linkedin-panel[data-panel="matches"]
    .dashboard-group--applications
    .criteria-apply-all {
    width: 100%;
    min-height: 40px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .dashboard-group--applications
    .group-list {
    grid-row: 3;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    padding: 2px 0 18px;
    -webkit-overflow-scrolling: touch;
  }

  body.sffc-crm-applications-modal-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .sffc-crm-linkedin-body.sffc-crm-matches-dashboard-mode {
    padding: 0 8px 72px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] {
    overflow-x: hidden;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-dashboard {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-dashboard__board {
    width: 100%;
    gap: 10px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .match-strength-control {
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .match-strength-control
    strong {
    font-size: 12.5px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .match-strength-control label {
    width: 100%;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-criteria-bar {
    align-items: stretch;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid rgba(13, 53, 62, 0.08);
    border-radius: 8px;
    background: #fff;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-sidebar-primary,
  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-criteria-list,
  .sffc-crm-linkedin-panel[data-panel="matches"] .criteria-actions {
    min-width: 0;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-criteria-list {
    display: flex;
    gap: 7px;
    width: calc(100vw - 36px);
    margin: 0 -2px;
    padding: 0 2px 4px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-criteria-item {
    max-width: 78vw;
    border-radius: 8px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .criteria-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .criteria-actions > *,
  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-mobile-queue-trigger {
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .sffc-crm-matches-onboarding {
    padding: 12px 0 20px;
    min-height: calc(100vh - 180px);
    align-items: flex-start;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .sffc-crm-matches-onboarding__card {
    width: 100%;
    padding: 18px;
    border-radius: 8px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .sffc-crm-matches-onboarding__header {
    margin-bottom: 16px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .sffc-crm-matches-onboarding__header
    h2 {
    font-size: 27px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .sffc-crm-matches-onboarding__options {
    gap: 8px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"]
    .sffc-crm-matches-onboarding__option {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .group-head {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .group-title {
    width: 100%;
    min-width: 0;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .group-title strong,
  .sffc-crm-linkedin-panel[data-panel="matches"] .group-title span {
    overflow-wrap: anywhere;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .criteria-actions,
  .sffc-crm-linkedin-panel[data-panel="matches"] .matches-dashboard__cta,
  .sffc-crm-linkedin-panel[data-panel="matches"] .criteria-apply-all {
    width: 100%;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .match-card {
    padding: 10px;
    border-radius: 8px;
    overflow: hidden;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .match-top {
    grid-template-columns: 24px 34px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .match-copy {
    min-width: 0;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .match-copy strong {
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .match-copy span {
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .match-score {
    grid-column: 1 / -1;
    align-items: flex-start;
    margin-left: 66px;
    gap: 5px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .match-footer {
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .match-footer__actions,
  .sffc-crm-linkedin-panel[data-panel="matches"] .match-actions {
    width: 100%;
    justify-content: space-between;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .match-actions > *,
  .sffc-crm-linkedin-panel[data-panel="matches"] .match-footer__actions > * {
    flex: 1 1 auto;
    min-height: 34px;
    border-radius: 8px;
  }
}

@media (max-width: 380px) {
  .sffc-crm-linkedin-body.sffc-crm-matches-dashboard-mode {
    padding-left: 6px;
    padding-right: 6px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .dashboard-group,
  .sffc-crm-linkedin-panel[data-panel="matches"] .dashboard-group--best,
  .sffc-crm-linkedin-panel[data-panel="matches"]
    .dashboard-group--applications {
    padding: 10px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .match-top {
    grid-template-columns: 22px 30px minmax(0, 1fr);
    gap: 7px;
  }

  .sffc-crm-linkedin-panel[data-panel="matches"] .match-score {
    margin-left: 59px;
  }
}

/* ============================================
   Console Tab - Matching Engine (Premium)
   ============================================ */

.sffc-console-engine {
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

/* Steps */
.sffc-console-step {
  padding: 24px;
}

.sffc-console-step[hidden] {
  display: none !important;
}

/* ====== STEP 1: Criteria Selection ====== */
.sffc-console-step--criteria {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.sffc-console-main-header {
  margin-bottom: 24px;
  text-align: center;
}

.sffc-console-main-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--linkedin-text);
  line-height: 1.3;
}

.sffc-console-step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--linkedin-border);
}

.sffc-console-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--senna-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sffc-console-step-header h2 {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--linkedin-text);
}

.sffc-console-step-header p {
  margin: 0;
  font-size: 14px;
  color: var(--linkedin-text-muted);
}

/* Login/Empty Prompts */
.sffc-console-login-prompt,
.sffc-console-empty-criteria {
  text-align: center;
  padding: 60px 20px;
  background: var(--linkedin-card);
  border-radius: 12px;
  border: 1px dashed var(--linkedin-border);
}

.sffc-console-login-prompt p,
.sffc-console-empty-criteria p {
  margin: 0 0 16px 0;
  color: var(--linkedin-text-muted);
}

.sffc-console-login-btn,
.sffc-console-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  background: var(--senna-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.sffc-console-login-btn:hover,
.sffc-console-create-btn:hover {
  background: var(--linkedin-brand-hover);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Criteria Grid */
.sffc-console-criteria-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.sffc-console-criteria-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--linkedin-card);
  border: 2px solid var(--linkedin-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.sffc-console-criteria-card:hover {
  border-color: var(--senna-accent);
  background: #fafbfc;
}

.sffc-console-criteria-card input[type="radio"] {
  display: none;
}

.sffc-console-criteria-card
  input[type="radio"]:checked
  + .sffc-console-criteria-check {
  background: var(--senna-primary);
  border-color: var(--senna-primary);
}

.sffc-console-criteria-card
  input[type="radio"]:checked
  + .sffc-console-criteria-check
  svg {
  opacity: 1;
}

.sffc-console-criteria-card
  input[type="radio"]:checked
  ~ .sffc-console-criteria-content
  strong {
  color: var(--senna-primary);
}

.sffc-console-criteria-card:has(input:checked) {
  border-color: var(--senna-primary);
  background: var(--linkedin-brand-light);
}

.sffc-console-criteria-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--linkedin-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.sffc-console-criteria-check svg {
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.2s;
}

.sffc-console-criteria-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.sffc-console-criteria-content strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--linkedin-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sffc-console-criteria-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--senna-accent);
  color: var(--senna-primary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.sffc-console-criteria-meta {
  font-size: 13px;
  color: var(--linkedin-text-muted);
}

.sffc-console-criteria-count {
  font-size: 12px;
  color: var(--senna-primary);
  font-weight: 600;
}

/* Run Container */
.sffc-console-run-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.sffc-console-run-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 48px;
  border-radius: 50px;
  border: none;
  background: var(--senna-primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(13, 53, 62, 0.25);
}

.sffc-console-run-btn:hover {
  background: var(--linkedin-brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 53, 62, 0.35);
}

.sffc-console-run-btn:active {
  transform: translateY(0);
}

.sffc-console-run-btn svg {
  flex-shrink: 0;
}

.sffc-console-run-hint {
  font-size: 13px;
  color: var(--linkedin-text-muted);
}

/* ====== STEP 2: Scanning (Premium Preloader) ====== */
.sffc-console-step--scanning {
  background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 500px;
}

.sffc-console-progress-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  background: var(--linkedin-card);
  border-radius: 16px;
  border: 1px solid var(--linkedin-border);
  box-shadow: 0 8px 30px rgba(13, 53, 62, 0.08);
}

.sffc-console-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sffc-console-progress-header strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--linkedin-text);
}

.sffc-console-progress-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1ecf8f;
}

.sffc-console-progress-status.is-building .sffc-console-progress-dot {
  animation: consolePulse 1.5s ease-in-out infinite;
}

.sffc-console-progress-status.is-complete {
  color: #1ecf8f;
}

.sffc-console-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1ecf8f;
}

@keyframes consolePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.sffc-console-progress-bar {
  height: 14px;
  background: #eaf5f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.sffc-console-progress-fill {
  height: 100%;
  background: #1ecf8f;
  border-radius: 999px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.sffc-console-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: consoleShimmer 1.5s linear infinite;
}

@keyframes consoleShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.sffc-console-progress-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--linkedin-text-muted);
  margin-bottom: 24px;
}

.sffc-console-progress-time {
  color: #10b981;
  font-weight: 600;
}

/* Matches Preview (Real-time) */
.sffc-console-matches-preview {
  border-top: 1px solid var(--linkedin-border);
  padding-top: 20px;
}

.sffc-console-matches-preview > strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin-bottom: 14px;
}

.sffc-console-matches-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sffc-console-preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f9fafb;
  border-radius: 10px;
  animation: consoleSlideIn 0.4s ease-out;
}

@keyframes consoleSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sffc-console-preview-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--linkedin-text-secondary);
  overflow: hidden;
  flex-shrink: 0;
}

.sffc-console-preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sffc-console-preview-info {
  flex: 1;
  min-width: 0;
}

.sffc-console-preview-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--linkedin-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sffc-console-preview-info span {
  font-size: 12px;
  color: var(--linkedin-text-muted);
}

.sffc-console-preview-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.sffc-console-preview-score svg {
  width: 40px;
  height: 40px;
}

.sffc-console-preview-insight {
  font-size: 8px;
  font-weight: 700;
  color: var(--senna-primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ====== STEP 3: Results ====== */
.sffc-console-step--results {
  padding: 0;
}

.sffc-console-adjust-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--linkedin-border);
  background: var(--linkedin-card);
  color: var(--linkedin-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sffc-console-adjust-btn:hover {
  color: var(--senna-primary);
}

/* Firm Filter Pills */
.sffc-console-firm-filters {
  display: block;
  padding: 16px 24px;
  background: #fafbfc;
  border-bottom: 1px solid var(--linkedin-border);
  position: relative;
}

.sffc-console-criteria-summary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--linkedin-text);
  cursor: pointer;
  text-align: left;
}

.sffc-console-criteria-summary__label {
  flex: 0 0 auto;
  color: var(--linkedin-text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.sffc-console-criteria-summary__chips {
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
}

.sffc-console-criteria-chip {
  max-width: 190px;
  overflow: hidden;
  border-radius: 999px;
  background: #f3f6fb;
  color: #0d353e;
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sffc-console-criteria-summary__icon {
  margin-left: auto;
  flex: 0 0 auto;
  color: #0d353e;
  transition: transform 0.2s ease;
}

.sffc-console-firm-filters.is-criteria-expanded
  .sffc-console-criteria-summary__icon {
  transform: rotate(180deg);
}

.sffc-console-criteria-search {
  margin-top: 12px;
  padding: 0;
}

.sffc-console-criteria-search[hidden] {
  display: none;
}

.sffc-console-firm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.sffc-console-firm-filters-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--linkedin-text-muted);
  margin-right: 4px;
  flex-shrink: 0;
  line-height: 32px;
}

.sffc-console-firm-pills-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sffc-console-firm-filters.is-expanded .sffc-console-firm-pills-wrapper {
  max-height: none;
}

.sffc-console-firm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid #d1d5db;
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: var(--linkedin-text);
  cursor: pointer;
  transition: all 0.2s;
}

.sffc-console-firm-pill.is-overflow-hidden {
  display: none;
}

.sffc-console-firm-filters.is-expanded
  .sffc-console-firm-pill.is-overflow-hidden {
  display: inline-flex;
}

.sffc-console-firm-pill:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.sffc-console-firm-pill.is-excluded {
  border-color: #ef4444;
  background: #fef2f2;
  color: #dc2626;
  text-decoration: line-through;
  opacity: 0.6;
}

.sffc-console-firm-pill-name {
  flex: 1;
}

.sffc-console-firm-pill-count {
  font-size: 12px;
  color: var(--linkedin-text-muted);
}

.sffc-console-firm-pill.is-excluded .sffc-console-firm-pill-count {
  color: #dc2626;
}

.sffc-console-firm-pill-remove {
  flex-shrink: 0;
  color: var(--linkedin-text-muted);
}

.sffc-console-firm-pill.is-excluded .sffc-console-firm-pill-remove {
  color: #dc2626;
}

.sffc-console-firm-show-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid #d1d5db;
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: #0073b1;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sffc-console-firm-show-more:hover {
  border-color: #0073b1;
  background: #f3f8fc;
}

.sffc-console-firm-show-more-text {
  line-height: 1;
}

.sffc-console-firm-show-more-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sffc-console-firm-show-more.is-rotated .sffc-console-firm-show-more-icon {
  transform: rotate(180deg);
}

/* Filter Tabs (Skyscanner Style) */
.sffc-console-filter-tabs {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 16px 24px;
  background: #f8f9fa;
  border-bottom: 1px solid var(--linkedin-border);
  overflow-x: auto;
}

.sffc-console-filter-tab {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid var(--linkedin-border);
  background: var(--linkedin-card);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.sffc-console-filter-tab:hover {
  border-color: var(--senna-accent);
}

.sffc-console-filter-tab.active {
  border-color: var(--senna-primary);
  background: var(--senna-primary);
}

.sffc-console-filter-tab.active .sffc-console-filter-label,
.sffc-console-filter-tab.active strong,
.sffc-console-filter-tab.active .sffc-console-filter-subtitle {
  color: #ffffff;
}

.sffc-console-filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--linkedin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.sffc-console-filter-tab strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--linkedin-text);
  margin-bottom: 2px;
}

.sffc-console-filter-subtitle {
  font-size: 12px;
  color: var(--linkedin-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sffc-console-sort-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.sffc-console-filter-tabs > .sffc-console-adjust-btn {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
}

.sffc-console-sort-dropdown label {
  font-size: 14px;
  font-weight: 600;
  color: var(--linkedin-text-secondary);
}

.sffc-console-sort-dropdown select {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--linkedin-border);
  background: var(--linkedin-card);
  color: var(--linkedin-text);
  font-size: 14px;
  cursor: pointer;
}

/* Sponsored */
.sffc-console-sponsored {
  margin: 16px 24px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #5d2a5a 0%, #3d1a3d 100%);
  border-radius: 12px;
  color: #ffffff;
}

.sffc-console-sponsored[hidden] {
  display: none;
}

/* Results List */
.sffc-console-results-list {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Match Card */
.sffc-console-match-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--linkedin-card);
  border-radius: 12px;
  border: 1px solid var(--linkedin-border);
  transition: all 0.2s;
}

.sffc-console-match-card:hover {
  border-color: var(--senna-accent);
  box-shadow: 0 4px 16px rgba(13, 53, 62, 0.08);
}

.sffc-console-match-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--linkedin-text-secondary);
  overflow: hidden;
  flex-shrink: 0;
}

.sffc-console-match-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sffc-console-match-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sffc-console-match-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin: 0;
}

.sffc-console-match-meta {
  font-size: 14px;
  color: var(--linkedin-text-muted);
}

.sffc-console-match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.sffc-console-match-tag {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--senna-accent-light);
  color: var(--senna-primary);
  font-size: 11px;
  font-weight: 600;
}

.sffc-console-match-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.sffc-console-match-keyword {
  padding: 3px 8px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 10px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
}

.sffc-console-match-notes {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  background: #f0f9ff;
  border-left: 3px solid #0ea5e9;
  border-radius: 6px;
}

.sffc-console-match-notes-icon {
  flex-shrink: 0;
  color: #0ea5e9;
  line-height: 1;
  margin-top: 2px;
}

.sffc-console-match-notes-text {
  flex: 1;
  font-size: 12px;
  line-height: 1.5;
  color: #0c4a6e;
  font-weight: 500;
}

.sffc-console-match-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sffc-console-match-score--avatar {
  min-width: 72px;
}

.sffc-console-match-score-ring {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sffc-console-match-pie {
  width: 52px;
  height: 52px;
}

.sffc-console-match-score--avatar .sffc-console-match-pie {
  width: 72px;
  height: 72px;
}

.sffc-console-match-score-badge {
  position: absolute;
  right: -2px;
  bottom: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.sffc-console-match-insight {
  font-size: 10px;
  font-weight: 700;
  color: var(--senna-primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-align: center;
}

/* Insight Color Classes */
.sffc-console-match-insight.insight--perfect {
  color: #059669;
  font-weight: 800;
}

.sffc-console-match-insight.insight--excellent {
  color: #059669;
}

.sffc-console-match-insight.insight--great {
  color: #0891b2;
}

.sffc-console-match-insight.insight--good {
  color: #2563eb;
}

.sffc-console-match-insight.insight--medium {
  color: #d97706;
}

.sffc-console-match-insight.insight--low {
  color: #dc2626;
}

.sffc-console-match-insight.insight--rare {
  color: #7c3aed;
}

/* Recruiter View Styles */
.sffc-console-match-card--recruiter {
  border-left: 3px solid #1ecf8f;
  grid-template-columns: minmax(0, 1fr);
}

.sffc-console-match-logo--recruiter {
  border-radius: 50%;
  background: linear-gradient(135deg, #0f5132 0%, #065f46 100%);
}

.sffc-console-match-score--avatar .sffc-console-match-logo--recruiter {
  position: absolute;
  inset: 10px;
  width: auto;
  height: auto;
  box-shadow: 0 0 0 4px #ffffff;
}

.sffc-console-match-logo--recruiter img {
  border-radius: 50%;
}

.sffc-console-match-initial--recruiter {
  background: linear-gradient(135deg, #0f5132 0%, #065f46 100%);
  color: #ffffff;
}

.sffc-console-match-recruiter-name {
  font-weight: 600;
  color: var(--linkedin-text);
}

.sffc-console-match-tag--hero {
  max-width: 110px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sffc-console-recruiter-mini-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 4px;
  vertical-align: middle;
}

.sffc-console-match-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  color: #0a66c2;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.sffc-console-match-linkedin:hover {
  opacity: 1;
}

.sffc-console-match-title {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Match Card Main Container (grid updated for new JS structure) */
.sffc-console-match-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--linkedin-card);
  border-radius: 12px;
  border: 1px solid var(--linkedin-border);
  transition: all 0.2s;
  animation: consoleMatchFadeIn 0.3s ease-out both;
  cursor: pointer;
}

@keyframes consoleMatchFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sffc-console-match-card.is-removing {
  animation: consoleMatchFadeOut 0.3s ease-out forwards;
}

@keyframes consoleMatchFadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
    max-height: 200px;
    margin-bottom: 12px;
  }
  to {
    opacity: 0;
    transform: translateX(20px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.sffc-console-match-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.sffc-console-match-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.sffc-console-match-card.is-compare-selected {
  border-color: rgba(13, 53, 62, 0.26);
  box-shadow: 0 14px 28px rgba(13, 53, 62, 0.12);
}

.sffc-console-match-compare {
  width: 280px;
  min-width: 280px;
  padding-left: 20px;
  border-left: 1px solid rgba(13, 53, 62, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
}

.sffc-console-match-compare__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sffc-console-match-compare__salary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sffc-console-match-compare__salary-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sffc-console-match-compare__salary-badge.salary--high {
  background: #dcfce7;
  color: #166534;
}

.sffc-console-match-compare__salary-badge.salary--fair {
  background: #dbeafe;
  color: #1d4ed8;
}

.sffc-console-match-compare__salary-badge.salary--entry {
  background: #fef3c7;
  color: #b45309;
}

.sffc-console-match-compare__salary-copy {
  font-size: 12px;
  line-height: 1.45;
  color: #475467;
}

.sffc-console-compare-save {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 53, 62, 0.14);
  border-radius: 50%;
  background: #ffffff;
  color: #0d353e;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

.sffc-console-compare-save:hover {
  border-color: #0d353e;
  transform: translateY(-1px);
}

.sffc-console-compare-save.is-saved {
  background: #0d353e;
  color: #ffffff;
  border-color: #0d353e;
}

.sffc-console-compare-save svg {
  width: 23px;
  height: 23px;
}

.sffc-console-compare-btn {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: #08294a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sffc-console-compare-btn:hover {
  background: #0d353e;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(8, 41, 74, 0.18);
}

.sffc-console-compare-btn svg {
  width: 18px;
  height: 18px;
}

.sffc-console-compare-check {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  color: #0d353e;
  cursor: pointer;
}

.sffc-console-compare-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0d353e;
  flex-shrink: 0;
}

.sffc-console-compare-check__label {
  white-space: nowrap;
}

.sffc-console-compare-check__count {
  color: #667085;
  font-weight: 700;
}

.sffc-console-match-compare__years {
  font-size: 12px;
  color: #667085;
  line-height: 1.45;
}

.sffc-console-match-title a {
  color: var(--linkedin-text);
  text-decoration: none;
  transition: color 0.2s;
}

.sffc-console-match-title a:hover {
  color: var(--senna-primary);
}

.sffc-console-match-sep {
  color: var(--linkedin-text-muted);
  opacity: 0.5;
}

/* Hiring Verb Styles */
.sffc-console-match-hiring {
  font-size: 16px;
  font-weight: 600;
  text-transform: capitalize;
  opacity: 0.85;
}

/* Color variations for hiring verbs */
.sffc-console-match-card:nth-child(3n + 1) .sffc-console-match-hiring {
  color: #000000; /* purple */
}

.sffc-console-match-card:nth-child(3n + 2) .sffc-console-match-hiring {
  color: #000000; /* green */
}

.sffc-console-match-card:nth-child(3n + 3) .sffc-console-match-hiring {
  color: #000000; /* orange */
}

.sffc-console-match-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--linkedin-border);
  border-radius: 8px;
  background: var(--linkedin-card);
  color: var(--linkedin-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sffc-console-match-btn:hover {
  background: var(--linkedin-hover);
  border-color: var(--senna-accent);
  transform: translateY(-1px);
}

.sffc-console-match-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sffc-console-match-btn--message {
  border-color: #959595;
  color: #0d353e;
}

.sffc-console-match-btn--message:hover {
  background: #ecfeff;
  border-color: #0891b2;
}

.sffc-console-match-btn--intro {
  border-color: #959595;
  color: #0d353e;
  background: var(--linkedin-card);
}

.sffc-console-match-btn--intro:hover {
  background: #ecfeff;
  border-color: #0891b2;
  color: #0d353e;
}

.sffc-console-match-btn--apply-cv {
  border-color: #13444f;
  color: #ffffff;
  background: #13444f;
}

.sffc-console-match-btn--apply-cv:hover {
  background: #0d353e;
  border-color: #0d353e;
  color: #ffffff;
}

.sffc-console-match-btn--list {
  color: #ffffff;
  background: #0d353e;
  border-color: #0d353e;
}

.sffc-console-match-btn--list:hover {
  background: #08272e;
  border-color: #08272e;
  color: #ffffff;
}

.sffc-console-match-btn--list.is-added,
.sffc-console-match-btn--list.is-added:hover {
  background: #6cffc4;
  border-color: #6cffc4;
  color: #0d353e;
  cursor: default;
  pointer-events: none;
}

.sffc-console-match-btn--intro.is-requested,
.sffc-console-match-btn--intro.is-requested:hover {
  background: #6cffc4;
  border-color: #ffffff;
  color: #000000;
  cursor: default;
  pointer-events: none;
}

.sffc-console-match-btn--intro.is-loading {
  opacity: 0.6;
  cursor: wait;
}

.sffc-console-match-card.is-guest-masked .sffc-console-match-logo--recruiter {
  position: relative;
}

.sffc-console-match-card.is-guest-locked {
  position: relative;
  overflow: hidden;
}

.sffc-console-match-card.is-guest-locked .sffc-console-match-main,
.sffc-console-match-card.is-guest-locked .sffc-console-match-score {
  filter: blur(5px);
  opacity: 0.58;
  pointer-events: none;
  user-select: none;
}

.sffc-console-match-card.is-guest-locked::after {
  content: "Unlock all recruiter matches";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: #0d353e;
  color: #ffffff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(13, 53, 62, 0.24);
  white-space: nowrap;
  z-index: 2;
}

.sffc-console-list-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sffc-console-list-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
}

.sffc-console-list-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  border-radius: 8px;
  background: #ffffff;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.sffc-console-list-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #f3f6fb;
  color: #0d353e;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.sffc-console-list-modal__eyebrow {
  margin: 0 0 6px;
  color: #0d353e;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.sffc-console-list-modal__dialog h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 24px;
}

.sffc-console-list-modal__copy,
.sffc-console-list-help {
  color: #5f6671;
  font-size: 14px;
  line-height: 1.5;
}

.sffc-console-list-modal__field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.sffc-console-list-modal__field span {
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.sffc-console-list-modal__field select,
.sffc-console-list-modal__field input {
  width: 100%;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  min-height: 46px;
  padding: 0 14px;
  font-size: 15px;
}

.sffc-console-list-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.sffc-console-list-modal__feedback {
  margin: 12px 0 0;
  color: #0d353e;
  font-size: 13px;
  font-weight: 700;
}

.sffc-console-list-modal__feedback.is-error {
  color: #dc2626;
}

.sffc-crm-console-lists {
  background: #ffffff;
  border: 1px solid var(--linkedin-border);
  border-radius: 8px;
  overflow: hidden;
}

.sffc-console-list-help {
  padding: 0 24px 18px;
  border-bottom: 1px solid var(--linkedin-border);
}

.sffc-console-list-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--linkedin-border);
}

.sffc-console-list-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8dee7;
  border-radius: 999px;
  padding: 7px 12px;
  background: #ffffff;
  color: #0d353e;
  font-size: 13px;
  font-weight: 800;
}

.sffc-console-list-pill small {
  color: #5f6671;
  font-size: 12px;
}

/* Match Initial Fallback */
.sffc-console-match-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 20px;
  font-weight: 700;
  color: var(--linkedin-text-secondary);
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.sffc-console-preview-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--linkedin-text-secondary);
}

.sffc-console-preview-initial--recruiter {
  background: linear-gradient(135deg, #0d353e 0%, #0a2a32 100%);
  color: #6cffc4;
  font-size: 15px;
  font-weight: 800;
}

/* Preview Score Value */
.sffc-console-preview-score-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--linkedin-text);
}

/* Recruiter Badge */
.sffc-console-match-recruiter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--senna-accent-light);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--senna-primary);
  margin-top: 8px;
}

.sffc-console-match-recruiter svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* Empty Results */
.sffc-console-empty-results {
  text-align: center;
  padding: 60px 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px dashed var(--linkedin-border);
}

.sffc-console-empty-results p {
  margin: 0 0 20px 0;
  font-size: 15px;
  color: var(--linkedin-text-muted);
}

.sffc-console-empty-content {
  max-width: 500px;
  margin: 0 auto;
}

.sffc-console-empty-greeting {
  font-size: 18px;
  color: var(--linkedin-text);
  margin-bottom: 12px !important;
}

.sffc-console-empty-message {
  font-size: 15px;
  color: var(--linkedin-text-muted);
  margin-bottom: 24px !important;
  line-height: 1.5;
}

.sffc-console-empty-actions {
  margin-bottom: 32px;
}

.sffc-console-notify-form {
  background: #ffffff;
  border: 1.5px solid var(--linkedin-border);
  border-radius: 10px;
  padding: 24px;
  margin-top: 24px;
}

.sffc-console-notify-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--linkedin-text);
  margin: 0 0 16px 0 !important;
}

.sffc-console-notify-notes {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--linkedin-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--linkedin-text);
  background: #ffffff;
  resize: vertical;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.sffc-console-notify-notes:focus {
  outline: none;
  border-color: var(--senna-primary);
}

.sffc-console-notify-notes::placeholder {
  color: var(--linkedin-text-muted);
}

.sffc-console-notify-btn {
  width: 100%;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  background: var(--senna-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sffc-console-notify-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.sffc-console-notify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.sffc-console-notify-btn.is-loading {
  position: relative;
  color: transparent;
}

.sffc-console-notify-btn.is-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

.sffc-console-notify-feedback {
  margin: 12px 0 0 0 !important;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.sffc-console-notify-feedback.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.sffc-console-notify-feedback.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Notification */
.sffc-console-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #0d353e;
  color: #6cffc4;
  border-radius: 10px;
  border: 1px solid #6cffc4;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(13, 53, 62, 0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease-out;
  z-index: 9999;
}

.sffc-console-notification.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sffc-console-notification svg {
  flex-shrink: 0;
}

/* Placeholder Preview Items */
.sffc-console-preview-item.is-placeholder {
  opacity: 0.7;
}

.sffc-console-preview-item.is-placeholder .sffc-console-preview-logo {
  background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
  background-size: 200% 100%;
  animation: consolePlaceholderShimmer 1.5s ease-in-out infinite;
}

@keyframes consolePlaceholderShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Status Error State */
.sffc-console-progress-status.is-error {
  color: #dc2626;
}

.sffc-console-progress-status.is-error .sffc-console-progress-dot {
  background: #dc2626;
}

/* Selected Criteria Card */
.sffc-console-criteria-card.is-selected {
  border-color: var(--senna-primary);
  background: var(--linkedin-brand-light);
}

/* Responsive */
@media (max-width: 768px) {
  .sffc-console-step {
    padding: 16px;
  }

  .sffc-console-filter-tabs {
    flex-direction: column;
    padding: 12px 16px;
  }

  .sffc-console-filter-tab {
    min-width: auto;
  }

  .sffc-console-sort-dropdown {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }

  .sffc-console-filter-tabs > .sffc-console-adjust-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .sffc-console-results-list {
    padding: 12px 16px;
  }

  .sffc-console-match-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
  }

  .sffc-console-match-main {
    width: 100%;
    gap: 10px;
    align-items: flex-start;
  }

  .sffc-console-match-score--avatar {
    min-width: 60px;
  }

  .sffc-console-match-score-ring {
    width: 60px;
    height: 60px;
  }

  .sffc-console-match-score--avatar .sffc-console-match-pie {
    width: 60px;
    height: 60px;
  }

  .sffc-console-match-score--avatar .sffc-console-match-logo--recruiter {
    inset: 8px;
    box-shadow: 0 0 0 3px #ffffff;
  }

  .sffc-console-match-score-badge {
    min-width: 30px;
    height: 20px;
    padding: 0 7px;
    font-size: 10px;
  }

  .sffc-console-match-content {
    min-width: 0;
    width: 100%;
  }

  .sffc-console-match-card {
    flex-direction: column;
  }

  .sffc-console-match-pie {
    width: 44px;
    height: 44px;
  }

  .sffc-console-match-compare {
    width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid rgba(13, 53, 62, 0.12);
  }

  .sffc-console-match-compare__top {
    align-items: flex-start;
  }

  .sffc-console-compare-btn {
    min-height: 50px;
    font-size: 15px;
  }

  .sffc-console-progress-container {
    padding: 20px;
  }

  .sffc-console-match-hiring {
    font-size: 13px;
  }

  .sffc-console-match-title {
    font-size: 15px;
    line-height: 1.4;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .sffc-console-match-title a {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .sffc-console-match-meta {
    font-size: 13px;
    line-height: 1.45;
  }

  .sffc-console-match-tags,
  .sffc-console-match-keywords {
    gap: 5px;
  }

  .sffc-console-match-tag,
  .sffc-console-match-keyword {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .sffc-console-match-tag--hero {
    max-width: 92px;
  }

  .sffc-console-compare-modal__header,
  .sffc-console-compare-modal__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sffc-console-compare-modal__header h2 {
    font-size: 22px;
  }

  .sffc-console-compare-insights,
  .sffc-console-compare-notes-card__cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .sffc-console-match-main {
    align-items: flex-start;
  }

  .sffc-console-match-score--avatar {
    min-width: 56px;
  }

  .sffc-console-match-score-ring {
    width: 56px;
    height: 56px;
  }

  .sffc-console-match-score--avatar .sffc-console-match-pie {
    width: 56px;
    height: 56px;
  }

  .sffc-console-match-compare__top {
    flex-direction: column;
  }

  .sffc-console-compare-save {
    width: 40px;
    height: 40px;
  }

  .sffc-console-compare-check {
    align-items: flex-start;
  }
}

.sffc-console-compare-modal-open {
  overflow: hidden;
}

.sffc-console-compare-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.sffc-console-compare-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 31, 0.72);
  backdrop-filter: blur(6px);
}

.sffc-console-compare-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1360px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.sffc-console-compare-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: #ffffff;
  border-bottom: 1px solid rgba(13, 53, 62, 0.08);
}

.sffc-console-compare-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d353e;
}

.sffc-console-compare-modal__header h2 {
  margin: 0;
  color: #101828;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.sffc-console-compare-modal__subcopy {
  margin: 10px 0 0;
  max-width: 820px;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

.sffc-console-compare-modal__close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(13, 53, 62, 0.06);
  color: #0d353e;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.sffc-console-compare-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sffc-console-compare-hero-grid,
.sffc-console-compare-proscons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.sffc-console-compare-role-card,
.sffc-console-compare-insights__card,
.sffc-console-compare-notes-card,
.sffc-console-compare-row {
  border: 1px solid rgba(13, 53, 62, 0.1);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.sffc-console-compare-role-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sffc-console-compare-role-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sffc-console-compare-role-card__salary {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.sffc-console-compare-role-card__salary.salary--high {
  background: #dcfce7;
  color: #166534;
}

.sffc-console-compare-role-card__salary.salary--fair {
  background: #dbeafe;
  color: #1d4ed8;
}

.sffc-console-compare-role-card__salary.salary--entry {
  background: #fef3c7;
  color: #b45309;
}

.sffc-console-compare-role-card__check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.sffc-console-compare-role-card__title {
  margin: 0;
  color: #101828;
  font-size: 20px;
  line-height: 1.25;
}

.sffc-console-compare-role-card__meta,
.sffc-console-compare-role-card__stats {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.sffc-console-compare-role-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.sffc-console-compare-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sffc-console-compare-insights__card {
  padding: 20px;
}

.sffc-console-compare-insights__card.is-different {
  border-color: rgba(8, 41, 74, 0.2);
}

.sffc-console-compare-insights__card h3,
.sffc-console-compare-notes-card h3,
.sffc-console-compare-table__head h3 {
  margin: 0 0 12px;
  color: #101828;
  font-size: 18px;
  font-weight: 800;
}

.sffc-console-compare-insights__card ul,
.sffc-console-compare-notes-card ul {
  margin: 0;
  padding-left: 18px;
  color: #475467;
  display: grid;
  gap: 10px;
}

.sffc-console-compare-notes-card {
  padding: 20px;
}

.sffc-console-compare-notes-card__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sffc-console-compare-notes-card h4 {
  margin: 0 0 10px;
  color: #0d353e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sffc-console-compare-table {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sffc-console-compare-table__head p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.sffc-console-compare-row {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sffc-console-compare-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sffc-console-compare-row__label {
  color: #101828;
  font-size: 14px;
  font-weight: 800;
}

.sffc-console-compare-row__status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
}

.sffc-console-compare-row.is-different .sffc-console-compare-row__status {
  background: #fff7ed;
  color: #c2410c;
}

.sffc-console-compare-row__values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.sffc-console-compare-cell {
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sffc-console-compare-cell__role {
  color: #0d353e;
  font-size: 12px;
  font-weight: 800;
}

.sffc-console-compare-cell__value p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
}

.sffc-console-compare-chip {
  display: inline-flex;
  align-items: center;
  margin: 0 6px 6px 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
}

/* ===================================
   MATCH MODAL - SLEEK FULL-SCREEN DESIGN
   Qatar Airways meets Skyscanner style
   =================================== */

.sffc-match-modal-open {
  overflow: hidden;
}

.sffc-match-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.sffc-match-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 53, 62, 0.92);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

/* Full-screen modal content */
.sffc-match-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background: #f8f9fb;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.3s ease;
}

.sffc-match-modal-content.sffc-match-modal--skyscanner {
  background: linear-gradient(180deg, #f5f7fb 0%, #f7f8fb 100%);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sffc-match-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 3;
  gap: 14px;
  padding: 12px 20px;
  background: #ffffff;
  border-bottom: 1px solid rgba(13, 53, 62, 0.08);
  flex-shrink: 0;
}

.sffc-match-modal-topbar-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.sffc-match-modal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin: -8px -10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0d353e;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.sffc-match-modal-back:hover {
  background: rgba(13, 53, 62, 0.06);
}

.sffc-match-modal-logo {
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(13, 53, 62, 0.06);
  color: #0d353e;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.sffc-match-modal-logo:hover {
  background: rgba(13, 53, 62, 0.12);
  transform: translateY(-1px);
}

.sffc-match-modal-logo svg {
  width: 18px;
  height: 18px;
}

.sffc-match-modal-hero-content {
  min-width: 0;
  max-width: none;
  color: #101828;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.sffc-match-modal-hero-badge {
  margin-bottom: 0;
  flex-shrink: 0;
}

.sffc-match-hero-score {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(13, 53, 62, 0.14);
  border-radius: 999px;
  background: rgba(13, 53, 62, 0.04);
  color: #0d353e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sffc-match-modal-hero-title {
  margin: 0;
  color: #101828;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  max-width: 32%;
}

.sffc-match-modal-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
}

.sffc-match-modal-hero-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sffc-match-modal-hero-meta svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.sffc-match-modal-body.sffc-match-modal-body--two-col {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.sffc-match-modal-body--hidden {
  display: none !important;
}

.sffc-match-modal-left {
  padding: 32px 40px 40px;
  overflow-y: auto;
}

.sffc-match-modal-section-header {
  margin-bottom: 18px;
}

.sffc-match-modal-section-title {
  margin: 0 0 8px;
  color: #0d353e;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.08;
}

.sffc-match-modal-section-subtitle {
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.6;
}

.sffc-match-jd-accordion {
  margin-bottom: 28px;
  border: 1px solid rgba(13, 53, 62, 0.12);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.sffc-match-jd-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sffc-match-jd-toggle:hover {
  background: #f8fafc;
}

.sffc-match-jd-toggle-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0d353e;
  font-size: 15px;
  font-weight: 700;
}

.sffc-match-jd-toggle-left svg,
.sffc-match-jd-chevron {
  color: #64748b;
}

.sffc-match-jd-chevron {
  transition: transform 0.22s ease;
}

.sffc-match-jd-chevron--open {
  transform: rotate(180deg);
}

.sffc-match-jd-content {
  border-top: 1px solid rgba(13, 53, 62, 0.08);
  padding: 0 18px 18px;
}

.sffc-match-jd-text {
  max-height: 320px;
  overflow-y: auto;
  padding-top: 16px;
  color: #475467;
  font-size: 14px;
  line-height: 1.72;
}

.sffc-match-jd-empty {
  margin: 0;
  color: #94a3b8;
  font-style: italic;
}

.sffc-match-modal-methods {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 14px;
}

.sffc-match-method-card {
  position: relative;
  border: 1px solid rgba(13, 53, 62, 0.1);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  overflow: visible;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sffc-match-method-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 53, 62, 0.18);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.sffc-match-method-card--recommended {
  border: 2px solid rgba(13, 53, 62, 0.86);
  box-shadow: 0 14px 34px rgba(13, 53, 62, 0.12);
}

.sffc-match-method-card--selected {
  box-shadow: 0 0 0 3px rgba(13, 53, 62, 0.12), 0 18px 44px rgba(15, 23, 42, 0.08);
}

.sffc-match-method-card--picker-open {
  z-index: 8;
}

.sffc-match-method-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
}

.sffc-match-method-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #eff4f8;
  color: #0d353e;
}

.sffc-match-method-card--recommended .sffc-match-method-icon {
  background: linear-gradient(135deg, #0d353e 0%, #164e5c 100%);
  color: #ffffff;
}

.sffc-match-method-content {
  min-width: 0;
}

.sffc-match-method-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 6px;
}

.sffc-match-method-title {
  margin: 0;
  color: #101828;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.sffc-match-method-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #2057d7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sffc-match-method-subtitle {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.sffc-match-method-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 14px;
}

.sffc-match-method-likelihood {
  display: grid;
  grid-template-columns: auto minmax(80px, 160px) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.sffc-match-likelihood-label {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sffc-match-likelihood-meter {
  height: 8px;
  border-radius: 999px;
  background: #e6ecf2;
  overflow: hidden;
}

.sffc-match-likelihood-fill {
  height: 100%;
  border-radius: 999px;
}

.sffc-match-likelihood-fill--high {
  background: linear-gradient(90deg, #2dd4bf 0%, #6cffc4 100%);
}

.sffc-match-likelihood-fill--medium {
  background: linear-gradient(90deg, #f59e0b 0%, #facc15 100%);
}

.sffc-match-likelihood-fill--low {
  background: linear-gradient(90deg, #f87171 0%, #fca5a5 100%);
}

.sffc-match-likelihood-value {
  font-size: 13px;
  font-weight: 800;
}

.sffc-match-likelihood-value--high {
  color: #047857;
}

.sffc-match-likelihood-value--medium {
  color: #b45309;
}

.sffc-match-likelihood-value--low {
  color: #b42318;
}

.sffc-match-method-timing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #667085;
  font-size: 13px;
  font-weight: 600;
}

.sffc-match-method-btn {
  min-width: 118px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: #102d56;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sffc-match-method-btn:hover {
  background: #17386a;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 45, 86, 0.18);
}

.sffc-match-method-btn.is-open {
  box-shadow: 0 12px 24px rgba(13, 53, 62, 0.18);
}

.sffc-match-method-btn--primary {
  background: #0d353e;
}

.sffc-match-method-btn--primary:hover {
  background: #164e5c;
  box-shadow: 0 10px 22px rgba(13, 53, 62, 0.18);
}

.sffc-match-method-btn--success,
.sffc-match-method-btn--success:hover {
  background: #d9fbef;
  color: #0d353e;
  box-shadow: none;
}

.sffc-match-method-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.sffc-match-method-plan-picker {
  position: absolute;
  right: 24px;
  top: calc(100% - 8px);
  z-index: 4;
  width: 320px;
  max-width: min(320px, calc(100vw - 64px));
  padding: 10px;
  border: 1px solid rgba(13, 53, 62, 0.12);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}

.sffc-match-method-plan-picker::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 100%;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-top: 1px solid rgba(13, 53, 62, 0.12);
  border-left: 1px solid rgba(13, 53, 62, 0.12);
  transform: rotate(45deg) translateY(7px);
}

.sffc-match-method-plan-picker[data-action="intro"] {
  top: auto;
  bottom: calc(100% - 8px);
}

.sffc-match-method-plan-picker[data-action="intro"]::after {
  top: 100%;
  bottom: auto;
  border-top: 0;
  border-left: 0;
  border-right: 1px solid rgba(13, 53, 62, 0.12);
  border-bottom: 1px solid rgba(13, 53, 62, 0.12);
  transform: rotate(45deg) translateY(-7px);
}

.sffc-match-method-plan-picker-head {
  padding: 4px 6px 10px;
}

.sffc-match-method-plan-picker-eyebrow {
  display: block;
  color: #0d353e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sffc-match-method-plan-picker-copy {
  margin: 4px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.sffc-match-method-plan-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.sffc-match-method-plan-option:hover {
  background: #f4f7fb;
}

.sffc-match-method-plan-option-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sffc-match-method-plan-option-name {
  color: #101828;
  font-size: 13px;
  font-weight: 800;
}

.sffc-match-method-plan-option-desc {
  color: #667085;
  font-size: 11px;
  line-height: 1.4;
}

.sffc-match-method-plan-option-price {
  flex-shrink: 0;
  color: #0d353e;
  font-size: 13px;
  font-weight: 800;
}

.sffc-match-method-plan-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: #0d353e;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.sffc-match-cv-panel,
.sffc-match-cv-selected {
  margin-top: 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.sffc-match-cv-panel {
  border: 1px solid rgba(13, 53, 62, 0.1);
  padding: 20px;
}

.sffc-match-cv-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #0d353e;
  font-size: 15px;
  font-weight: 800;
}

.sffc-match-cv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sffc-match-cv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fbfcfe;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.sffc-match-cv-item:hover {
  border-color: rgba(13, 53, 62, 0.2);
  background: #f7fafc;
}

.sffc-match-cv-item--selected {
  border-color: #0d353e;
  background: #eef7f8;
}

.sffc-match-cv-item-info {
  flex: 1;
  min-width: 0;
}

.sffc-match-cv-item-label {
  display: block;
  color: #101828;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sffc-match-cv-item-date {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 12px;
}

.sffc-match-cv-item-default {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475467;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sffc-match-cv-empty,
.sffc-match-cv-loading {
  padding: 22px 16px;
  text-align: center;
  color: #667085;
  font-size: 14px;
}

.sffc-match-cv-upload-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0d353e;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.sffc-match-cv-upload-link:hover {
  text-decoration: underline;
}

.sffc-match-cv-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  background: linear-gradient(180deg, #f3fffa 0%, #edfdf5 100%);
}

.sffc-match-cv-selected-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.sffc-match-cv-selected-label {
  display: block;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sffc-match-cv-selected-name {
  display: block;
  color: #0d353e;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sffc-match-cv-adjust-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(13, 53, 62, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #0d353e;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sffc-match-cv-adjust-btn:hover {
  background: #f7fafc;
}

.sffc-match-modal-right {
  padding: 32px 28px 40px;
  border-left: 1px solid rgba(13, 53, 62, 0.08);
  background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sffc-match-details-card,
.sffc-match-journey-card {
  border: 1px solid rgba(13, 53, 62, 0.1);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  max-height: min(74vh, 860px);
  display: flex;
  flex-direction: column;
}

.sffc-match-details-card-header,
.sffc-match-journey-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(13, 53, 62, 0.06);
}

.sffc-match-details-card-header h3,
.sffc-match-journey-header h3 {
  margin: 0;
  color: #101828;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sffc-match-details-card-body,
.sffc-match-journey-steps {
  padding: 20px;
  overflow-y: auto;
}

.sffc-match-recruiter-section {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(13, 53, 62, 0.06);
}

.sffc-match-recruiter-avatar {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d353e 0%, #164e5c 100%);
  color: #ffffff;
  overflow: hidden;
  flex-shrink: 0;
}

.sffc-match-recruiter-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sffc-match-recruiter-initial {
  font-size: 18px;
  font-weight: 800;
}

.sffc-match-recruiter-name {
  display: block;
  color: #101828;
  font-size: 15px;
  font-weight: 800;
}

.sffc-match-recruiter-title {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 13px;
}

.sffc-match-details-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sffc-match-details-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.sffc-match-details-label {
  color: #667085;
  font-size: 13px;
}

.sffc-match-details-value {
  color: #101828;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.sffc-match-score-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d353e 0%, #164e5c 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.sffc-match-journey-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
}

.sffc-match-journey-step:last-child {
  padding-bottom: 0;
}

.sffc-match-journey-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.sffc-match-journey-step--complete:not(:last-child)::after {
  background: linear-gradient(180deg, #0d353e 0%, #d0d5dd 100%);
}

.sffc-match-journey-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e5e7eb;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.sffc-match-journey-step--complete .sffc-match-journey-dot {
  background: #0d353e;
}

.sffc-match-journey-label {
  display: block;
  color: #101828;
  font-size: 14px;
  font-weight: 700;
}

.sffc-match-journey-date {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
}

.sffc-match-preview-panel {
  position: absolute;
  inset: 0;
  z-index: 10001;
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, #f7f8fb 0%, #f4f7fb 100%);
}

.sffc-match-preview-panel.sffc-match-preview-panel--visible,
.sffc-match-preview-panel[style*="display: block"] {
  display: flex;
}

@keyframes previewSlideIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sffc-match-preview-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(13, 53, 62, 0.08);
  background: #ffffff;
  animation: previewSlideIn 0.22s ease;
}

.sffc-match-preview-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: -8px -12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0d353e;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.sffc-match-preview-back:hover {
  background: rgba(13, 53, 62, 0.06);
}

.sffc-match-preview-title {
  flex: 1;
  margin: 0;
  color: #101828;
  font-size: 18px;
  font-weight: 800;
}

.sffc-match-preview-spacer {
  width: 90px;
  flex-shrink: 0;
}

.sffc-match-preview-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 34px 28px;
  display: flex;
  justify-content: center;
}

.sffc-match-preview-content {
  width: 100%;
  max-width: 820px;
}

.sffc-match-preview-body--gap-analyzer {
  padding: 0;
  justify-content: stretch;
}

.sffc-match-preview-content--gap-analyzer {
  max-width: none;
  min-height: 100%;
}

.sffc-match-preview-content--gap-analyzer #sffc-gap-analyzer-shell {
  display: block;
  min-height: 100%;
}

.sffc-match-preview-content--gap-analyzer .inst-terminal {
  min-height: calc(100vh - 240px);
}

.sffc-match-preview-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.sffc-match-preview-loading p {
  margin: 16px 0 0;
  color: #667085;
  font-size: 15px;
}

.sffc-match-preview-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #0d353e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.sffc-match-package {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sffc-match-package-header,
.sffc-match-package-items,
.sffc-match-package-timeline,
.sffc-match-package-request {
  border: 1px solid rgba(13, 53, 62, 0.1);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.sffc-match-package-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
}

.sffc-match-package-header h3 {
  margin: 0;
  color: #101828;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.sffc-match-package-timeline-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.sffc-match-package-timeline-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.sffc-match-package-timeline-step--active {
  color: #0d353e;
}

.sffc-match-package-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d5dd;
  flex-shrink: 0;
}

.sffc-match-package-timeline-step--active .sffc-match-package-timeline-dot {
  background: #0d353e;
}

.sffc-match-package-timeline-line {
  height: 2px;
  min-width: 28px;
  flex: 1;
  background: #e4e7ec;
  border-radius: 999px;
}

.sffc-match-package-items {
  padding: 8px;
}

.sffc-match-package-body {
  display: block;
}

.sffc-match-package-side {
  margin-top: 14px;
}

.sffc-match-package-item {
  display: grid;
  grid-template-columns: 24px 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 14px;
}

.sffc-match-package-item + .sffc-match-package-item {
  border-top: 1px solid rgba(13, 53, 62, 0.06);
}

.sffc-match-package-item-check,
.sffc-match-package-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sffc-match-package-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3f6fa;
  color: #0d353e;
}

.sffc-match-package-item-title {
  display: block;
  color: #101828;
  font-size: 14px;
  font-weight: 800;
}

.sffc-match-package-item-title-meta {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: #4b5565;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sffc-match-package-item-desc {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.sffc-match-package-item-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8fff4;
  color: #047857;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sffc-match-package-cv-change,
.sffc-match-package-cv-upload {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(13, 53, 62, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #0d353e;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.sffc-match-package-cv-change:hover,
.sffc-match-package-cv-upload:hover {
  background: #f7fafc;
}

.sffc-match-package-cv-upload:disabled {
  opacity: 0.55;
  cursor: wait;
}

.sffc-match-package-request {
  padding: 18px 22px;
}

.sffc-match-package-request h4 {
  margin: 0 0 12px;
  color: #101828;
  font-size: 16px;
  font-weight: 800;
}

.sffc-match-package-request p {
  margin: 0 0 12px;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.sffc-match-package-request-input {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  border: 1px solid rgba(13, 53, 62, 0.12);
  border-radius: 16px;
  background: #f8fafc;
  color: #101828;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  padding: 14px 16px;
}

.sffc-match-package-request-input:focus {
  outline: none;
  border-color: rgba(13, 53, 62, 0.28);
  box-shadow: 0 0 0 3px rgba(13, 53, 62, 0.08);
}

.sffc-match-preview-error {
  padding: 40px 20px;
  text-align: center;
  color: #b42318;
}

.sffc-match-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 18px 28px 24px;
  border-top: 1px solid rgba(13, 53, 62, 0.08);
  background: #ffffff;
  overflow: visible;
}

.sffc-match-preview-footer-info {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sffc-match-preview-note {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.sffc-match-preview-send {
  min-width: 210px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #0d353e 0%, #164e5c 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.sffc-match-preview-send:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(13, 53, 62, 0.18);
}

.sffc-match-preview-send:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  box-shadow: none;
}

.sffc-match-preview-send.is-requested,
.sffc-match-preview-send.is-requested:hover {
  background: #d9fbef;
  color: #0d353e;
  box-shadow: none;
  opacity: 1;
}

.sffc-match-preview-send.is-open {
  box-shadow: 0 12px 24px rgba(13, 53, 62, 0.18);
}

.sffc-match-preview-footer-actions {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  flex-shrink: 0;
  overflow: visible;
}

.sffc-match-preview-cv-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
}

.sffc-match-preview-cv-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(13, 53, 62, 0.12);
  border-radius: 999px;
  background: #f8fafc;
  color: #0d353e;
  cursor: pointer;
}

.sffc-match-preview-cv-trigger.is-open svg {
  transform: rotate(180deg);
}

.sffc-match-preview-cv-trigger svg {
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.sffc-match-preview-cv-trigger-label {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.sffc-match-preview-cv-trigger-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.sffc-match-preview-cv-picker {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: 280px;
  max-width: min(280px, 78vw);
  padding: 8px;
  border: 1px solid rgba(13, 53, 62, 0.12);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.sffc-match-preview-cv-picker::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 100%;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1px solid rgba(13, 53, 62, 0.12);
  border-bottom: 1px solid rgba(13, 53, 62, 0.12);
  transform: rotate(45deg) translateY(-7px);
}

.sffc-match-preview-plan-picker {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 6;
  width: 320px;
  max-width: min(320px, 82vw);
  padding: 10px;
  border: 1px solid rgba(13, 53, 62, 0.12);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}

.sffc-match-preview-plan-picker::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 100%;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1px solid rgba(13, 53, 62, 0.12);
  border-bottom: 1px solid rgba(13, 53, 62, 0.12);
  transform: rotate(45deg) translateY(-7px);
}

.sffc-match-preview-plan-picker-head {
  padding: 4px 6px 10px;
}

.sffc-match-preview-plan-picker-eyebrow {
  display: block;
  color: #0d353e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sffc-match-preview-plan-picker-copy {
  margin: 4px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.sffc-match-preview-plan-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.sffc-match-preview-plan-option:hover {
  background: #f4f7fb;
}

.sffc-match-preview-plan-option-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sffc-match-preview-plan-option-name {
  color: #101828;
  font-size: 13px;
  font-weight: 800;
}

.sffc-match-preview-plan-option-desc {
  color: #667085;
  font-size: 11px;
  line-height: 1.4;
}

.sffc-match-preview-plan-option-price {
  flex-shrink: 0;
  color: #0d353e;
  font-size: 13px;
  font-weight: 800;
}

.sffc-match-preview-plan-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: #0d353e;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.sffc-match-preview-cv-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.sffc-match-preview-cv-option:hover,
.sffc-match-preview-cv-option.is-selected {
  background: #f4f7fb;
}

.sffc-match-preview-cv-option-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sffc-match-preview-cv-option-name {
  color: #101828;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sffc-match-preview-cv-option-meta {
  color: #667085;
  font-size: 11px;
}

.sffc-match-preview-cv-option-check {
  color: #0d353e;
  font-size: 13px;
  font-weight: 800;
}

.sffc-match-preview-cv-empty {
  padding: 10px 12px;
}

.sffc-btn-spinner {
  animation: spin 1s linear infinite;
}

@media (max-width: 1100px) {
  .sffc-match-modal-body.sffc-match-modal-body--two-col {
    grid-template-columns: 1fr 360px;
  }

  .sffc-match-modal-left {
    padding: 28px 28px 34px;
  }

  .sffc-match-modal-right {
    padding: 28px 22px 34px;
  }
}

@media (max-width: 900px) {
  .sffc-match-modal {
    padding: 0;
  }

  .sffc-match-modal-body.sffc-match-modal-body--two-col {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    align-items: stretch;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .sffc-match-modal-left,
  .sffc-match-modal-right {
    width: 100%;
    min-width: 0;
    max-width: none;
    overflow: visible;
    flex: 0 0 auto;
  }

  .sffc-match-modal-right {
    border-left: 0;
    border-top: 1px solid rgba(13, 53, 62, 0.08);
  }

  .sffc-match-preview-panel {
    position: fixed;
    inset: 0;
  }

  .sffc-match-details-card,
  .sffc-match-journey-card {
    max-height: none;
  }
}

@media (max-width: 768px) {
  .sffc-match-modal-topbar {
    align-items: stretch;
    flex-direction: column-reverse;
    padding: 12px 16px;
  }

  .sffc-match-modal-topbar-main {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .sffc-match-modal-hero-title {
    max-width: none;
    font-size: 15px;
    white-space: normal;
  }

  .sffc-match-modal-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sffc-match-modal-hero-meta {
    flex-wrap: wrap;
    white-space: normal;
    overflow: visible;
  }

  .sffc-match-modal-left,
  .sffc-match-modal-right {
    padding: 20px 16px 28px;
  }

  .sffc-match-modal-section-title {
    font-size: 22px;
  }

  .sffc-match-method-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 16px;
  }

  .sffc-match-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .sffc-match-method-stats {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .sffc-match-method-likelihood {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sffc-match-likelihood-meter {
    max-width: none;
  }

  .sffc-match-method-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 50px;
    margin-top: 2px;
  }

  .sffc-match-method-plan-picker {
    left: 16px;
    right: 16px;
    top: calc(100% - 2px);
    bottom: auto;
    width: auto;
    max-width: none;
  }

  .sffc-match-method-plan-picker::after {
    right: 28px;
  }

  .sffc-match-method-plan-picker[data-action="intro"] {
    top: auto;
    bottom: calc(100% - 2px);
  }

  .sffc-match-cv-selected {
    flex-direction: column;
    align-items: flex-start;
  }

  .sffc-match-cv-adjust-btn {
    width: 100%;
  }

  .sffc-match-package-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
  }

  .sffc-match-package-timeline-bar {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sffc-match-package-item {
    grid-template-columns: 24px 36px minmax(0, 1fr);
  }

  .sffc-match-package-item-badge {
    grid-column: 2 / -1;
    width: fit-content;
  }

  .sffc-match-package-cv-change,
  .sffc-match-package-cv-upload {
    grid-column: 2 / -1;
    width: fit-content;
  }

  .sffc-match-preview-topbar,
  .sffc-match-preview-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sffc-match-preview-body {
    padding: 22px 16px;
  }

  .sffc-match-preview-body--gap-analyzer {
    padding: 0;
  }

  .sffc-match-preview-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .sffc-match-preview-send {
    width: 100%;
  }

  .sffc-match-preview-footer-actions {
    width: 100%;
  }

  .sffc-match-preview-cv-picker-wrap {
    width: 100%;
  }

  .sffc-match-preview-cv-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .sffc-match-preview-cv-picker {
    width: 100%;
    max-width: none;
  }

  .sffc-match-preview-plan-picker {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
  }

  .sffc-match-preview-plan-picker::after {
    right: 28px;
  }
}

/* ============================================
   MARKETS TAB - Institutional Terminal Style
   ============================================ */

/* Color Variables - Institutional Terminal Palette */
.sffc-markets-container {
    padding: 20px;
    background: transparent;
    min-height: 100%;
}

/* Header */
.sffc-markets-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--linkedin-border);
}

.sffc-markets-header-content {
    flex: 1;
    min-width: 200px;
}

.sffc-markets-title {
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    color: var(--linkedin-text);
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.sffc-markets-subtitle {
    font-family: inherit;
    font-size: 13px;
    color: var(--linkedin-text-muted);
    margin: 0;
}

/* Filters */
.sffc-markets-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sffc-markets-filter-btn {
    padding: 8px 14px;
    background: var(--linkedin-card);
    border: 1px solid var(--linkedin-border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--linkedin-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.sffc-markets-filter-btn:hover {
    border-color: var(--senna-primary);
    color: var(--senna-primary);
    background: var(--linkedin-hover);
}

.sffc-markets-filter-btn.is-active {
    background: var(--senna-primary);
    border-color: var(--senna-primary);
    color: white;
}

/* Markets Feed Layout */
.sffc-markets-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sffc-markets-grid.is-hidden,
.sffc-markets-empty.is-hidden,
.sffc-markets-load-more.is-hidden {
    display: none;
}

.sffc-markets-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 16px 18px;
    border: 1px solid rgba(13, 53, 62, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sffc-markets-card:hover {
    border-color: rgba(13, 53, 62, 0.14);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}

.sffc-markets-card--lead {
    padding: 18px 20px;
    margin-bottom: 4px;
    border-color: rgba(13, 53, 62, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
    box-shadow: 0 0 0 1px rgba(13, 53, 62, 0.08), 0 4px 14px rgba(13, 53, 62, 0.08);
}

.sffc-markets-card--lead:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f4f9f7 100%);
}

.sffc-markets-card-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sffc-markets-card-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sffc-markets-card-lead-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--senna-primary);
}

.sffc-markets-card-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sffc-markets-card-type--sffc_pe_news {
    background: var(--linkedin-brand-light);
    color: var(--senna-primary);
}

.sffc-markets-card-type--sffc_pe_deal {
    background: var(--senna-accent-light);
    color: #0a5041;
}

.sffc-markets-card-type--sffc_pe_signal {
    background: rgba(201, 169, 97, 0.16);
    color: #8b6b2f;
}

.sffc-markets-card-type--sffc_market_intel {
    background: rgba(13, 53, 62, 0.08);
    color: var(--senna-primary);
}

.sffc-markets-card-date-stamp {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--linkedin-text-muted);
}

.sffc-markets-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--linkedin-text-muted);
}

.sffc-markets-card-company {
    font-weight: 700;
    color: var(--senna-primary);
}

.sffc-markets-card-meta-dot {
    width: 3px;
    height: 3px;
    background: #94a3b8;
    border-radius: 50%;
}

.sffc-markets-card-title {
    margin: 0 0 8px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: var(--linkedin-text);
}

.sffc-markets-card--lead .sffc-markets-card-title {
    font-size: clamp(1.35rem, 2.1vw, 1.95rem);
    line-height: 1.16;
    margin-bottom: 10px;
    max-width: 26ch;
}

.sffc-markets-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sffc-markets-card-title a:hover {
    color: var(--senna-primary);
}

.sffc-markets-card-excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--linkedin-text-muted);
    max-width: 68ch;
}

.sffc-markets-card--lead .sffc-markets-card-excerpt {
    font-size: 14px;
    max-width: 72ch;
}

.sffc-markets-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.sffc-markets-card-tag {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.sffc-markets-card-tag--value {
    background: var(--senna-accent-light);
    color: #0a5041;
}

.sffc-markets-card-tag--region {
    background: var(--linkedin-brand-light);
    color: var(--senna-primary);
}

.sffc-markets-card-tag--signal {
    background: rgba(201, 169, 97, 0.14);
    color: #8b6b2f;
}

.sffc-markets-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(92px, max-content));
    align-items: flex-start;
    justify-content: end;
    gap: 8px;
    min-width: 208px;
    padding-top: 0;
}

.sffc-markets-card--lead .sffc-markets-card-actions {
    min-width: 224px;
}

.sffc-markets-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--linkedin-border);
    background: var(--linkedin-card);
    font-size: 12px;
    font-weight: 600;
    color: var(--linkedin-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    box-shadow: none;
}

.sffc-markets-action-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.sffc-markets-action-btn:hover {
    border-color: rgba(13, 53, 62, 0.12);
    color: var(--linkedin-text);
    background: var(--linkedin-hover);
    transform: translateY(-1px);
}

.sffc-markets-action-btn[data-action="generate-report"] {
    background: var(--senna-primary);
    border-color: var(--senna-primary);
    color: white;
}

.sffc-markets-action-btn[data-action="generate-report"]:hover {
    background: var(--linkedin-brand-hover);
    border-color: var(--linkedin-brand-hover);
    color: white;
}

.sffc-markets-action-btn[data-action="export-data"] {
    background: var(--senna-accent-light);
    color: #0a5041;
    border-color: rgba(99, 251, 201, 0.32);
}

.sffc-markets-action-btn[data-action="export-data"]:hover {
    background: #d9fbef;
    border-color: rgba(99, 251, 201, 0.48);
    color: #0a5041;
}

.sffc-markets-action-btn[data-action="analyze"] {
    color: var(--linkedin-text-secondary);
}

.sffc-markets-action-btn--primary {
    background: var(--linkedin-card);
    border-color: var(--linkedin-border);
    color: var(--linkedin-text);
}

.sffc-markets-action-btn--primary:hover {
    background: var(--linkedin-hover);
    border-color: rgba(13, 53, 62, 0.12);
    color: var(--linkedin-text);
}

/* Load More */
.sffc-markets-load-more {
    display: flex;
    justify-content: center;
    padding: 18px 0 8px;
}

.sffc-markets-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--linkedin-card);
    border: 1px solid var(--linkedin-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--linkedin-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.sffc-markets-load-more-btn svg {
    width: 16px;
    height: 16px;
}

.sffc-markets-load-more-btn:hover {
    border-color: rgba(13, 53, 62, 0.12);
    color: var(--senna-primary);
    background: var(--linkedin-hover);
}

/* Empty State */
.sffc-markets-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

.sffc-markets-empty svg {
    width: 56px;
    height: 56px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.sffc-markets-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--linkedin-text);
    margin: 0 0 8px 0;
}

.sffc-markets-empty p {
    font-size: 13px;
    color: var(--linkedin-text-muted);
    margin: 0;
}

/* Loading State */
.sffc-markets-action-btn.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

.sffc-markets-action-btn.is-loading svg {
    animation: sffc-markets-spin 1s linear infinite;
}

@keyframes sffc-markets-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sffc-markets-load-more-btn.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Toast Notifications - using hardcoded values since appended to body */
.sffc-markets-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 20px;
    background: #18181b;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.sffc-markets-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.sffc-markets-toast--success {
    background: #1e6b4a;
}

.sffc-markets-toast--error {
    background: #9a3c3c;
}

.sffc-markets-toast--info {
    background: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
    .sffc-markets-container {
        padding: 16px;
    }

    .sffc-markets-header {
        flex-direction: column;
        gap: 16px;
    }

    .sffc-markets-filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .sffc-markets-filter-btn {
        flex-shrink: 0;
    }

    .sffc-markets-card,
    .sffc-markets-card--lead {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sffc-markets-card {
        padding: 14px 14px;
    }

    .sffc-markets-card--lead {
        padding: 16px;
        margin-bottom: 2px;
    }

    .sffc-markets-card--lead .sffc-markets-card-title {
        max-width: none;
        font-size: clamp(1.35rem, 6vw, 1.8rem);
    }

    .sffc-markets-card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        justify-content: stretch;
    }

    .sffc-markets-action-btn {
        width: 100%;
        min-height: 36px;
        padding: 8px 10px;
    }

    .sffc-markets-toast {
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(100px);
    }

    .sffc-markets-toast.is-visible {
        transform: translateX(0) translateY(0);
    }
}
