/* Extracted from jobseeker-dashboard/feed/index.html. */
/* Fix: hidden panels must stay hidden despite display:grid in dashboard.css */
.ctx-panel__body[hidden] { display: none !important; }

/* Desktop: context panel always visible, content switches via JS */

/* Apply sheet */
.apply-sheet { position:fixed; inset:0; z-index:500; display:flex; align-items:flex-end; justify-content:center; }
.apply-sheet[hidden] { display:none; }
#apply-form-view[hidden], #apply-email-view[hidden], #apply-link-view[hidden], #apply-success-view[hidden], #apply-footer[hidden] { display:none !important; }
.apply-sheet__backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.4); }
.apply-sheet__panel { position:relative; width:100%; max-width:900px; max-height:85vh; overflow-y:auto; background:#fff; border-radius:20px 20px 0 0; box-shadow:0 -8px 40px rgba(0,0,0,0.12); padding:0; }
.apply-sheet__header { display:flex; align-items:center; justify-content:space-between; padding:20px 24px 16px; border-bottom:1px solid rgba(1,56,44,0.08); }
.apply-sheet__header h2 { margin:0; font-size:1.125rem; font-weight:700; }
.apply-sheet__close { width:32px; height:32px; display:grid; place-items:center; border-radius:999px; border:1px solid rgba(1,56,44,0.1); background:#fff; cursor:pointer; font-size:1rem; }
.apply-sheet__close:hover { background:rgba(131,230,189,0.15); }
.apply-sheet__body { padding:24px; display:grid; gap:20px; }
.apply-sheet__job { display:flex; align-items:center; gap:14px; padding:16px; border-radius:14px; background:#f7faf8; border:1px solid rgba(1,56,44,0.06); }
.apply-sheet__job-logo { width:44px; height:44px; border-radius:12px; display:grid; place-items:center; color:#fff; font-size:0.8125rem; font-weight:700; flex-shrink:0; }
.apply-sheet__job-title { font-weight:700; font-size:0.9375rem; margin:0; }
.apply-sheet__job-company { font-size:0.8125rem; color:rgba(1,56,44,0.6); margin:2px 0 0; }
.apply-sheet__field { display:grid; gap:6px; }
.apply-sheet__label { font-size:0.8125rem; font-weight:600; color:#01382c; }
.apply-sheet__select, .apply-sheet__textarea { border:1px solid rgba(1,56,44,0.1); border-radius:10px; padding:10px 14px; font-size:0.875rem; font-family:inherit; width:100%; background:#fff; }
.apply-sheet__select:focus, .apply-sheet__textarea:focus { border-color:#059669; outline:3px solid rgba(5,150,105,0.22); outline-offset:1px; }
.apply-sheet__textarea { min-height:100px; resize:vertical; }
.apply-sheet__disclosure { display:flex; align-items:flex-start; gap:10px; padding:14px; border-radius:12px; background:rgba(5,150,105,0.04); border:1px solid rgba(5,150,105,0.1); font-size:0.8125rem; color:rgba(1,56,44,0.7); line-height:1.5; }
.apply-sheet__disclosure svg { flex-shrink:0; margin-top:1px; }
.apply-sheet__footer { display:flex; justify-content:flex-end; gap:10px; padding:16px 24px; border-top:1px solid rgba(1,56,44,0.06); }
.apply-sheet__submit { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 28px; border-radius:12px; border:0; background:#01382c; color:#ecfdf5; font-size:0.875rem; font-weight:600; cursor:pointer; font-family:inherit; }
.apply-sheet__submit:hover { background:#005c47; }
.apply-sheet__cancel { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 20px; border-radius:12px; border:1px solid rgba(1,56,44,0.1); background:#fff; font-size:0.875rem; font-weight:600; cursor:pointer; font-family:inherit; color:#01382c; }
.apply-sheet__cancel:hover { background:rgba(131,230,189,0.08); }

/* Apply success */
.apply-success { text-align:center; padding:40px 24px; display:grid; gap:14px; place-items:center; }
.apply-success__icon { width:64px; height:64px; border-radius:999px; background:#ecfdf5; display:grid; place-items:center; }
.apply-success__icon svg { width:32px; height:32px; stroke:#059669; fill:none; stroke-width:2; }
.apply-success h2 { margin:0; font-size:1.25rem; font-weight:700; }
.apply-success p { margin:0; font-size:0.875rem; color:rgba(1,56,44,0.6); max-width:360px; }
.apply-success__actions { display:flex; gap:10px; margin-top:8px; }

/* Email apply variant */
.apply-sheet__email-preview { padding:16px; border-radius:12px; background:#fff7ed; border:1px solid rgba(194,65,12,0.12); }
.apply-sheet__email-preview h4 { margin:0 0 8px; font-size:0.8125rem; font-weight:700; color:#c2410c; }
.apply-sheet__email-preview p { margin:0; font-size:0.8125rem; color:rgba(1,56,44,0.6); line-height:1.5; }

/* Link apply variant */
.apply-sheet__link-preview { padding:16px; border-radius:12px; background:#eff6ff; border:1px solid rgba(37,99,235,0.12); }
.apply-sheet__link-preview h4 { margin:0 0 8px; font-size:0.8125rem; font-weight:700; color:#2563eb; }
.apply-sheet__link-preview p { margin:0; font-size:0.8125rem; color:rgba(1,56,44,0.6); }
.apply-sheet__link-btn { display:inline-flex; align-items:center; gap:6px; margin-top:10px; padding:8px 16px; border-radius:8px; background:#2563eb; color:#fff; font-size:0.8125rem; font-weight:600; border:0; cursor:pointer; }

/* Two-panel layout */
.apply-sheet__layout { display:grid;grid-template-columns:280px 1fr;min-height:0; }
.apply-sheet__form-area { overflow-y:auto;max-height:calc(80vh - 120px); }
.apply-sheet__header { display:flex;align-items:center;gap:10px; }
.apply-sheet__header h2 { flex:1; }

/* Analysis panel */
.apply-sheet__analysis { background:#f7faf8;border-right:1px solid rgba(1,56,44,0.06);overflow-y:auto;max-height:calc(80vh - 120px);padding:0; }
.apply-sheet__analysis-handle { display:none; }
.apply-sheet__analysis-head { padding:16px 18px 0;display:flex;align-items:flex-start;justify-content:space-between; }
.apply-sheet__analysis-eyebrow { font-size:0.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.08em;color:#059669;margin:0; }
.apply-sheet__analysis-title { font-size:0.9375rem;font-weight:700;color:#01382C;margin:4px 0 0; }
.apply-sheet__analysis-subtitle { font-size:0.8125rem;color:rgba(1,56,44,0.5);margin:2px 0 0; }
.apply-sheet__analysis-close { display:none;font-size:1.25rem;background:none;border:none;color:#6b7280;cursor:pointer;line-height:1; }
.apply-sheet__analysis-body { padding:8px 18px 18px; }
.apply-sheet__analysis-body .ctx-panel__section { padding:14px 0;border-top:1px solid rgba(1,56,44,0.06); }
.apply-sheet__analysis-body .ctx-panel__section:first-child { border-top:none;padding-top:8px; }
.apply-sheet__analysis-body .ctx-panel__section-title { font-size:0.75rem;font-weight:600;text-transform:uppercase;letter-spacing:0.06em;color:rgba(1,56,44,0.45);margin:0 0 10px; }
.apply-sheet__analysis-body .ctx-panel__match-count { color:#059669;font-weight:700;text-transform:none;letter-spacing:0; }
.apply-sheet__analysis-body .ctx-panel__checklist { display:flex;flex-direction:column;gap:8px; }
.apply-sheet__analysis-body .ctx-panel__check { display:flex;align-items:center;gap:8px;font-size:0.8125rem; }
.apply-sheet__analysis-body .ctx-panel__check.is-pass { color:#059669; }
.apply-sheet__analysis-body .ctx-panel__check.is-na { color:#9CA3AF; }
.apply-sheet__analysis-body .ctx-panel__check span { color:#01382C; }
.apply-sheet__analysis-body .ctx-panel__check em { font-style:normal;color:#9CA3AF;margin-left:auto;font-size:0.75rem; }
.apply-sheet__analysis-body .ctx-panel__salary-bar { margin-bottom:8px; }
.apply-sheet__analysis-body .ctx-panel__salary-track { height:8px;background:#e5e7eb;border-radius:4px;position:relative;overflow:hidden; }
.apply-sheet__analysis-body .ctx-panel__salary-job { position:absolute;height:100%;background:#059669;border-radius:4px;opacity:0.7; }
.apply-sheet__analysis-body .ctx-panel__salary-you { position:absolute;height:100%;background:#01382C;border-radius:4px;opacity:0.4; }
.apply-sheet__analysis-body .ctx-panel__salary-labels { display:flex;justify-content:space-between;font-size:0.6875rem;color:#9CA3AF;margin-top:4px; }
.apply-sheet__analysis-body .ctx-panel__salary-detail { display:flex;flex-direction:column;gap:4px;margin-top:8px; }
.apply-sheet__analysis-body .ctx-panel__salary-legend { display:flex;align-items:center;gap:6px;font-size:0.75rem;color:#374151; }
.apply-sheet__analysis-body .ctx-panel__salary-legend-job { width:8px;height:8px;border-radius:2px;background:#059669; }
.apply-sheet__analysis-body .ctx-panel__salary-legend-you { width:8px;height:8px;border-radius:2px;background:#01382C;opacity:0.5; }
.apply-sheet__analysis-body .ctx-panel__salary-verdict { display:inline-block;font-size:0.6875rem;font-weight:600;padding:2px 8px;border-radius:4px;margin-top:6px; }
.apply-sheet__analysis-body .ctx-panel__salary-verdict.is-good { color:#059669;background:rgba(5,150,105,0.08); }
.apply-sheet__analysis-body .ctx-panel__stats-row { display:grid;grid-template-columns:repeat(4,1fr);gap:4px; }
.apply-sheet__analysis-body .ctx-panel__stat { text-align:center;padding:8px 4px;background:#fff;border-radius:8px;border:1px solid rgba(1,56,44,0.04); }
.apply-sheet__analysis-body .ctx-panel__stat strong { display:block;font-size:0.9375rem;color:#01382C; }
.apply-sheet__analysis-body .ctx-panel__stat span { font-size:0.625rem;color:#9CA3AF;text-transform:uppercase;letter-spacing:0.04em; }
.apply-sheet__analysis-body .ctx-panel__apply-preview { display:flex;gap:8px;padding:10px 12px;border-radius:8px;background:rgba(5,150,105,0.04);border:1px solid rgba(5,150,105,0.1);font-size:0.75rem;line-height:1.5;color:rgba(1,56,44,0.7); }
.apply-sheet__analysis-body .ctx-panel__apply-preview svg { flex-shrink:0;margin-top:2px;color:#059669; }

/* Score ring + relevance */
.apply-analysis__score-row { display:flex;align-items:center;gap:12px; }
.apply-analysis__score-ring { position:relative;flex-shrink:0; }
.apply-analysis__score-ring strong { position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:0.75rem;font-weight:700;color:#01382C; }
.apply-analysis__score-detail { display:flex;flex-direction:column;gap:2px; }
.apply-analysis__score-detail strong { font-size:0.8125rem;font-weight:600;color:#01382C; }
.apply-analysis__score-detail span { font-size:0.6875rem;color:#9CA3AF; }
.apply-sheet__analysis-body .ctx-panel__check.is-missing { color:#DC2626; }
.apply-sheet__analysis-body .ctx-panel__check.is-missing em { color:#DC2626;opacity:0.7; }

/* Suggestions */
.apply-analysis__suggestions { display:flex;flex-direction:column;gap:6px;margin-top:10px; }
.apply-analysis__suggestion { display:flex;align-items:flex-start;gap:6px;font-size:0.75rem;color:#374151;line-height:1.4; }
.apply-analysis__suggestion svg { flex-shrink:0;margin-top:2px; }

/* Edit links */
.apply-analysis__edit-link { display:inline-flex;align-items:center;gap:5px;font-size:0.6875rem;font-weight:600;color:#059669;margin-top:10px;text-decoration:none;padding:4px 10px;border:1px solid rgba(5,150,105,0.18);border-radius:6px;background:rgba(5,150,105,0.04);transition:background 0.15s; }
.apply-analysis__edit-link:hover { background:rgba(5,150,105,0.1); }

/* Profile readiness */
.apply-analysis__readiness { margin-bottom:10px; }
.apply-analysis__progress { height:6px;background:#e5e7eb;border-radius:3px;overflow:hidden; }
.apply-analysis__progress-bar { height:100%;background:#059669;border-radius:3px;transition:width 0.4s; }
.apply-analysis__progress-label { font-size:0.75rem;font-weight:600;color:#059669;margin-top:4px;display:block; }
.apply-analysis__gaps { display:flex;flex-direction:column;gap:6px;margin-bottom:10px; }
.apply-analysis__gap { display:flex;align-items:center;gap:6px;font-size:0.75rem;color:#D97706; }
.apply-analysis__sending { font-size:0.75rem;color:#374151;margin-bottom:4px; }
.apply-analysis__sending strong { color:#01382C; }
.apply-analysis__meta { font-size:0.6875rem;color:#9CA3AF; }

/* Method info toggle */
.apply-analysis__method[hidden] { display:none!important; }

/* Analysis toggle button (mobile only) */
.apply-sheet__analysis-toggle { display:none;align-items:center;gap:4px;font-size:0.75rem;font-weight:600;color:#059669;background:rgba(5,150,105,0.06);border:1px solid rgba(5,150,105,0.18);border-radius:8px;padding:5px 10px;cursor:pointer;font-family:inherit;white-space:nowrap; }
.apply-sheet__analysis-toggle:hover { background:rgba(5,150,105,0.12); }
.apply-sheet__analysis-backdrop[hidden] { display:none!important; }

/* Desktop */
@media(min-width:640px) {
  .apply-sheet__panel { border-radius:20px; margin:auto; max-height:80vh; }
  .apply-sheet { align-items:center; }
}

/* Mobile: collapse to single panel */
@media(max-width:899px) {
  .apply-sheet__layout { grid-template-columns:1fr; }
  .apply-sheet__analysis { display:none;position:absolute;bottom:0;left:0;right:0;z-index:10;border-radius:20px 20px 0 0;border-right:none;border-top:1px solid rgba(1,56,44,0.06);max-height:70vh;box-shadow:0 -8px 30px rgba(0,0,0,0.1); }
  .apply-sheet__panel.is-analysis-open .apply-sheet__analysis { display:block; }
  .apply-sheet__analysis-handle { display:block;width:40px;height:4px;border-radius:2px;background:#d1d5db;margin:10px auto 0; }
  .apply-sheet__analysis-close { display:block; }
  .apply-sheet__analysis-toggle { display:inline-flex; }
  .apply-sheet__analysis-backdrop { position:absolute;inset:0;background:rgba(0,0,0,0.15);z-index:9; }
}

/* Salary on job cards */
    .job-salary { font-size:0.75rem;font-weight:600;color:#059669;margin:2px 0 0;line-height:1.3; }

    /* Score explanation */
    .score-explain { font-size:0.625rem;color:#6b7280;text-align:right;line-height:1.3;max-width:120px; }

    /* Compare checkbox — hidden by default, shown in compare mode */
    .job-compare-check { position:absolute;top:12px;left:12px;width:16px;height:16px;accent-color:#059669;cursor:pointer;z-index:2; display:none; }
    .compare-mode-active .job-compare-check { display:block; }
    #compare-mode-btn.is-active { background:#01382C;color:#ecfdf5;border-color:#01382C; }
    .job-row { position:relative; }

    /* Compare bar */
    .feed-compare-bar[hidden] { display:none!important; }
    .feed-compare-bar { display:flex;align-items:center;gap:12px;padding:14px 0;margin:16px 0 0;border-top:1px solid rgba(1,56,44,0.08);font-size:0.8125rem;font-weight:500;color:var(--ink, #01382c); }
    .feed-compare-bar .button--primary { background:#059669;color:#fff; }
    .feed-compare-bar .button--ghost { color:var(--ink, #01382c);border-color:rgba(1,56,44,0.12); }
    /* In compare mode, job cards act as selectable */
    .compare-mode-active .job-row { cursor:pointer; }
    .compare-mode-active .job-row:has(.job-compare-check:checked) { outline:2px solid #059669;outline-offset:-2px;border-radius:16px;background:rgba(5,150,105,0.03); }
    /* Exit button red */
    #compare-mode-btn.is-active { background:#dc2626;color:#fff;border-color:#dc2626; }

    /* ── View-mode toggle (list / grid) ── */
    .view-mode-toggle {
      display: inline-flex; align-items: center; gap: 4px;
      min-height: 32px; padding: 3px;
      border-radius: 999px;
      border: 1px solid rgba(1, 56, 44, 0.1);
      background: #fff; flex-shrink: 0;
      transition: border-color 0.2s;
    }
    .view-mode-toggle:hover { border-color: rgba(1, 56, 44, 0.2); }
    .view-mode-toggle__button {
      width: 30px; height: 26px; border-radius: 999px;
      display: inline-flex; align-items: center; justify-content: center;
      color: rgba(1, 56, 44, 0.5);
      background: transparent; border: 0; cursor: pointer;
      transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
    }
    .view-mode-toggle__button svg { width: 14px; height: 14px; }
    .view-mode-toggle__button:hover {
      color: #01382C; background: rgba(1, 56, 44, 0.05);
      transform: translateY(-1px);
    }
	    .view-mode-toggle__button.is-active {
	      background: #F0FDF8; color: #059669;
	      box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.18);
	    }

	    .filter-chip.goal-chip {
	      border-color: rgba(5, 150, 105, 0.2);
	      background: #f0fdf8;
	      color: #047857;
	    }

	    .job-row.goal-dimmed { opacity: 0.46; }
	    .job-row.goal-highlight {
	      border-color: rgba(5, 150, 105, 0.24);
	      background: linear-gradient(90deg, rgba(236, 253, 245, 0.84), #fff);
	    }

	    /* ── Grid view of the job list ── */
	    .job-list.is-grid {
	      display: grid;
	      grid-template-columns: repeat(2, minmax(0, 1fr));
	      gap: 12px;
	    }
	    @media (min-width: 1180px) {
	      .job-list.is-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	    }
	    @media (min-width: 768px) and (max-width: 1179px) {
	      .job-list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	    }
	    @media (max-width: 767px) {
	      .job-list.is-grid { grid-template-columns: 1fr; }
	    }
	    .job-list.is-grid .job-row {
	      display: grid;
	      grid-template-columns: 38px minmax(0, 1fr);
	      grid-template-areas:
	        "logo content"
	        "side side";
	      gap: 12px;
	      align-content: start;
	      padding: 14px;
	      border: 1px solid rgba(1, 56, 44, 0.08);
	      border-radius: 16px;
	      background: #fff;
	      min-height: 244px;
	    }
	    .job-list.is-grid .job-row > .job-logo { grid-area: logo; width: 38px; height: 38px; }
	    .job-list.is-grid .job-row > .job-content { grid-area: content; min-width: 0; }
	    .job-list.is-grid .job-row .job-title,
	    .job-list.is-grid .job-row .job-meta,
	    .job-list.is-grid .job-row .job-salary { overflow-wrap: anywhere; }
	    .job-list.is-grid .job-row .job-tags { gap: 6px; margin-top: 10px; }
	    .job-list.is-grid .job-row .job-tag {
	      max-width: 100%;
	      padding: 4px 8px;
	      white-space: normal;
	      line-height: 1.2;
	    }
	    .job-list.is-grid .job-row > .job-side {
	      grid-area: side;
	      display: grid;
	      grid-template-columns: auto minmax(0, 1fr);
	      grid-template-areas:
	        "score time"
	        "explain explain";
	      gap: 8px 10px;
	      width: 100%;
	      min-width: 0;
	      margin: auto 0 0;
	      padding-top: 10px;
	      border-top: 1px solid rgba(1, 56, 44, 0.07);
	      align-items: center;
	    }
	    .job-list.is-grid .job-side .job-score {
	      grid-area: score;
	      width: 42px;
	      min-width: 42px;
	      height: 28px;
	      padding: 0;
	      border-radius: 8px;
	    }
	    .job-list.is-grid .job-side .score-explain {
	      grid-area: explain;
	      max-width: none;
	      width: 100%;
	      padding: 8px 9px;
	      border-radius: 9px;
	      background: rgba(1, 56, 44, 0.045);
	      color: rgba(1, 56, 44, 0.62);
	      font-size: 0.68rem;
	      line-height: 1.35;
	      text-align: left;
	    }
	    .job-list.is-grid .job-side .job-time {
	      grid-area: time;
	      justify-self: end;
	      padding: 4px 8px;
	      border-radius: 999px;
	      background: #f7faf8;
	      color: rgba(1, 56, 44, 0.54);
	      font-weight: 700;
	    }
	    .job-list.is-grid .job-row .job-compare-check {
	      position: absolute; top: 10px; right: 10px;
	    }
	    .job-list.is-grid .job-row .job-title {
	      font-size: 0.9375rem;
	    }

	    .job-modal__rail-eyebrow--solo {
	      margin: 0;
	      color: #01382c;
	      font-size: 0.86rem;
	      font-weight: 800;
	      letter-spacing: 0;
	      text-transform: none;
	    }

	    .job-modal__context-panel .ctx-panel__skills-grid {
	      display: grid;
	      grid-template-columns: 1fr;
	      gap: 10px;
	      padding: 12px;
	      border-radius: 12px;
	      background: #0f241f;
	    }

	    .job-modal__context-panel .ctx-panel__skill-summary {
	      display: grid;
	      gap: 4px;
	      min-width: 0;
	      padding: 11px 12px;
	      border: 1px solid rgba(255, 255, 255, 0.1);
	      border-radius: 10px;
	      background: rgba(255, 255, 255, 0.06);
	    }

	    .job-modal__context-panel .ctx-panel__skill-summary span {
	      color: rgba(255, 255, 255, 0.62);
	      font-size: 0.68rem;
	      font-weight: 800;
	      text-transform: uppercase;
	    }

	    .job-modal__context-panel .ctx-panel__skill-summary strong {
	      color: #ffffff;
	      font-size: 0.95rem;
	      line-height: 1.2;
	    }

	    .job-modal__context-panel .ctx-panel__skill-summary p {
	      margin: 0;
	      color: rgba(255, 255, 255, 0.72);
	      font-size: 0.79rem;
	      line-height: 1.38;
	    }

	    .job-modal__context-panel .ctx-panel__skill-summary.is-matched {
	      border-color: rgba(52, 211, 153, 0.34);
	      background: rgba(5, 150, 105, 0.2);
	    }

	    .job-modal__context-panel .ctx-panel__skill-summary.is-missing {
	      border-color: rgba(251, 191, 36, 0.3);
	    }

	    .job-modal__context-panel .ctx-panel__section--salary {
	      display: grid;
	      gap: 10px;
	    }

	    .job-modal__context-panel .ctx-panel__salary-fit {
	      display: grid;
	      grid-template-columns: repeat(2, minmax(0, 1fr));
	      gap: 8px;
	    }

	    .job-modal__context-panel .ctx-panel__salary-fit div {
	      display: grid;
	      gap: 3px;
	      min-width: 0;
	      padding: 10px;
	      border-radius: 10px;
	      background: rgba(1, 56, 44, 0.05);
	    }

	    .job-modal__context-panel .ctx-panel__salary-fit span {
	      color: rgba(1, 56, 44, 0.52);
	      font-size: 0.68rem;
	      font-weight: 800;
	      text-transform: uppercase;
	    }

	    .job-modal__context-panel .ctx-panel__salary-fit strong {
	      color: #01382c;
	      font-size: 0.86rem;
	      line-height: 1.2;
	    }

	    .job-modal__context-panel .ctx-panel__salary-overlap {
	      position: relative;
	      height: 12px;
	      border-radius: 999px;
	      background: #e5e7eb;
	      overflow: hidden;
	    }

	    .job-modal__context-panel .ctx-panel__salary-overlap span,
	    .job-modal__context-panel .ctx-panel__salary-overlap strong {
	      position: absolute;
	      top: 0;
	      height: 100%;
	      border-radius: 999px;
	    }

	    .job-modal__context-panel .ctx-panel__salary-overlap span { background: rgba(1, 56, 44, 0.24); }
	    .job-modal__context-panel .ctx-panel__salary-overlap strong { background: #059669; }

	    .goal-drawer[hidden],
	    .goal-editor[hidden] { display: none; }

	    .goal-drawer,
	    .goal-editor { z-index: 190; }

	    .goal-drawer__panel,
	    .goal-editor__panel {
	      width: min(420px, 100vw);
	      background: #fff;
	    }

	    .goal-drawer__top,
	    .goal-editor__top { align-items: flex-start; }

	    .goal-drawer__footer,
	    .goal-editor__footer { align-items: center; }

	    .goal-drawer__title,
	    .goal-editor__title { max-width: 18ch; }

	    .goal-drawer__body,
	    .goal-editor__body {
	      display: grid;
	      align-content: start;
	      gap: 0;
	      background: #fff;
	    }

	    #focus-editor-panel .goal-editor__body {
	      grid-template-columns: minmax(0, 1fr);
	      overflow-x: hidden;
	      scroll-padding-top: 18px;
	    }

	    #focus-editor-panel .goal-editor__body > .filters-panel__section {
	      width: 100%;
	      min-width: 0;
	      max-width: 100%;
	    }

	    #focus-editor-panel .filters-panel__search-wrap,
	    #focus-editor-panel .filters-panel__search-shell,
	    #focus-editor-panel .filter-options,
	    #focus-editor-panel .filters-panel__field-grid {
	      min-width: 0;
	      max-width: 100%;
	    }

	    #focus-editor-panel .filters-panel__section + .filters-panel__section {
	      margin-top: 18px;
	      padding-top: 18px;
	    }

	    #focus-editor-panel .filter-head { align-items: flex-start; }

	    #focus-editor-panel .filters-panel__section:first-child {
	      margin: -2px -4px 10px;
	      padding: 14px 14px 16px;
	      border: 1px solid rgba(5, 150, 105, 0.12);
	      border-radius: 12px;
	      background: linear-gradient(180deg, rgba(240, 253, 248, 0.88), rgba(255, 255, 255, 0.96));
	    }

	    #focus-editor-panel .filters-panel__section:first-child .filter-summary {
	      max-width: none;
	      margin-bottom: 0;
	    }

	    .focus-choice-list {
	      display: grid;
	      gap: 10px;
	    }

	    .focus-choice {
	      display: grid;
	      grid-template-columns: auto minmax(0, 1fr) auto;
	      gap: 10px;
	      align-items: center;
	      padding: 13px;
	      border: 1px solid rgba(1, 56, 44, 0.09);
	      border-radius: 10px;
	      background: #fff;
	      color: #01382c;
	      cursor: pointer;
	      transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
	    }

	    .focus-choice:hover,
	    .focus-choice.is-selected {
	      border-color: rgba(5, 150, 105, 0.32);
	      background: #f0fdf8;
	      box-shadow: 0 10px 24px rgba(5, 150, 105, 0.08);
	    }

	    .focus-choice input { accent-color: #059669; }

	    .focus-choice__text {
	      display: grid;
	      gap: 3px;
	      min-width: 0;
	    }

	    .focus-choice__text strong {
	      color: #01382c;
	      font-size: 0.93rem;
	      line-height: 1.25;
	    }

	    .focus-choice__text em {
	      color: rgba(1, 56, 44, 0.62);
	      font-size: 0.8rem;
	      font-style: normal;
	      line-height: 1.38;
	    }

	    .focus-choice__edit {
	      display: inline-grid;
	      place-items: center;
	      width: 34px;
	      height: 34px;
	      border: 1px solid rgba(1, 56, 44, 0.1);
	      border-radius: 999px;
	      background: rgba(255, 255, 255, 0.9);
	      color: #047857;
	      cursor: pointer;
	      transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
	    }

	    .focus-choice__edit:hover,
	    .focus-choice__edit:focus-visible {
	      border-color: rgba(5, 150, 105, 0.34);
	      background: #fff;
	      transform: translateY(-1px);
	    }

	    .focus-choice__edit svg {
	      width: 15px;
	      height: 15px;
	      fill: none;
	      stroke: currentColor;
	      stroke-linecap: round;
	      stroke-linejoin: round;
	      stroke-width: 1.9;
	    }

	    @media (max-width: 760px) {
	      .goal-drawer,
	      .goal-editor { align-items: flex-end; }

	      .goal-drawer__panel,
	      .goal-editor__panel {
	        width: 100%;
	        height: min(88vh, 760px);
	        border-radius: 18px 18px 0 0;
	      }
	    }

	    /* Compare modal */
    .compare-modal-overlay { position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center; }
    .compare-modal-backdrop { position:absolute;inset:0;background:rgba(0,0,0,0.5); }
    .compare-modal { position:relative;background:#fff;border-radius:12px;max-width:900px;width:calc(100% - 32px);max-height:85vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,0.2); }
    .compare-modal__head { display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e5e7eb; }
    .compare-modal__title { font-size:1.125rem;font-weight:700;color:#01382C; }
    .compare-modal__close { font-size:1.5rem;background:none;border:none;color:#6b7280;cursor:pointer; }
    .compare-modal__body { padding:24px; }
    .compare-table { width:100%;border-collapse:collapse;font-size:0.8125rem; }
    .compare-table th { text-align:left;padding:10px 12px;background:#f9fafb;color:#6b7280;font-weight:600;border-bottom:1px solid #e5e7eb; }
    .compare-table td { padding:10px 12px;border-bottom:1px solid #f3f4f6;vertical-align:top; }
    .compare-table tr:last-child td { border-bottom:none; }
    .compare-table .compare-highlight { color:#059669;font-weight:600; }

/* Saved Search first-run and active state */
.feed-saved-search-state { margin: 0 0 16px; }

.active-search-banner {
  margin: 0 0 16px;
  padding: 18px 20px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(5, 150, 105, 0.03) 100%);
  border: 1px solid rgba(5, 150, 105, 0.18);
}

.active-search-banner__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.active-search-banner__lede {
  flex: 1 1 320px;
  min-width: 0;
}

.active-search-banner__eyebrow,
.active-search-mobile__eyebrow,
.zero-state__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #047857;
  background: rgba(5, 150, 105, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.active-search-banner__title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.active-search-banner__title-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 6px;
}

.active-search-banner__title-button:hover { background: rgba(5, 150, 105, 0.08); }
.active-search-banner__title-button:focus-visible { outline: 2px solid #059669; outline-offset: 3px; }

.active-search-banner__title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #064e3b;
  margin: 0;
}

.active-search-banner__chevron {
  color: rgba(6, 78, 59, 0.55);
  transition: transform 140ms ease, color 140ms ease;
}

.active-search-banner__title-button:hover .active-search-banner__chevron {
  color: #047857;
  transform: translateY(1px);
}

.active-search-banner__count {
  font-size: 13px;
  color: rgba(6, 78, 59, 0.65);
  font-weight: 500;
}

.active-search-banner__hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(6, 78, 59, 0.72);
  max-width: 56ch;
}

.active-search-banner__actions,
.active-search-banner__dirty-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.active-search-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  background: #ffffff;
  color: #064e3b;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.active-search-banner__btn:hover {
  background: rgba(5, 150, 105, 0.06);
  border-color: rgba(5, 150, 105, 0.25);
}

.active-search-banner__btn--primary {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

.active-search-banner__btn--ghost {
  background: transparent;
  border-color: rgba(5, 150, 105, 0.25);
}

.active-search-banner__btn--small {
  padding: 5px 10px;
  font-size: 12px;
}

.active-search-banner__dirty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  flex-wrap: wrap;
}

.active-search-banner__dirty[hidden] { display: none; }

.active-search-banner__dirty-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ea580c;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.18);
}

.active-search-banner__dirty-msg {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #7c2d12;
  flex: 1 1 240px;
}

.active-search-banner__dirty .active-search-banner__btn {
  background: #ffffff;
  border-color: rgba(124, 45, 18, 0.2);
  color: #7c2d12;
}

.active-search-banner__dirty .active-search-banner__btn--primary {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}

.filter-bar--scoped { position: relative; }

.filter-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(6, 78, 59, 0.78);
  background: rgba(5, 150, 105, 0.06);
  border-radius: 8px;
  border: 1px dashed rgba(5, 150, 105, 0.25);
  margin-right: 4px;
}

.filter-bar-label strong {
  color: #064e3b;
  font-weight: 600;
}

body.has-dirty-saved-search .filter-bar--scoped {
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.22), 0 1px 0 rgba(234, 88, 12, 0.05);
}

.filter-bar--scoped .search-filters-trigger,
.filter-bar .filter-chip.search-filters-trigger {
  width: auto;
  height: auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(1, 56, 44, 0.32);
  background: #ffffff;
  color: rgba(1, 56, 44, 0.78);
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

.filter-bar--scoped .search-filters-trigger:hover,
.filter-bar .filter-chip.search-filters-trigger:hover {
  border-color: rgba(1, 56, 44, 0.55);
  color: #01382c;
  background: #f8fbf9;
}

.zero-state { display: none; }
body.is-empty-state .zero-state { display: block; }

body.is-empty-state .active-search-banner,
body.is-empty-state .metric-strip,
body.is-empty-state .search-strip,
body.is-empty-state .filter-bar,
body.is-empty-state .page-grid,
body.is-empty-state .results-header,
body.is-empty-state .feed-compare-bar,
body.is-empty-state .compare-bar,
body.is-empty-state .job-modal,
body.is-empty-state .filters-panel.goal-drawer,
body.is-empty-state .filters-panel.goal-editor {
  display: none !important;
}

.zero-state__welcome {
  margin: 8px 0 24px;
  padding: 28px 28px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(5, 150, 105, 0.02) 100%);
  border: 1px solid rgba(5, 150, 105, 0.18);
}

.zero-state__title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: #064e3b;
  max-width: 32ch;
}

.zero-state__lede {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(6, 78, 59, 0.78);
  max-width: 64ch;
}

.zero-state__lede strong { color: #064e3b; font-weight: 600; }

.zero-state__help-link {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 12.5px;
  color: #047857;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.zero-state__section-head { margin: 4px 0 14px; }

.zero-state__section-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #064e3b;
}

.zero-state__section-sub,
.zero-state__footnote {
  margin: 0;
  font-size: 12.5px;
  color: rgba(1, 56, 44, 0.6);
}

.zero-state__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.starter-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 8px;
  padding: 16px 16px 14px;
  min-height: 134px;
  background: #ffffff;
  border: 1px solid rgba(1, 56, 44, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 80ms ease, background 140ms ease;
  font: inherit;
  color: inherit;
}

.starter-card:hover {
  border-color: rgba(5, 150, 105, 0.4);
  background: #fbfffd;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.1), 0 0 0 1px rgba(5, 150, 105, 0.08);
  transform: translateY(-1px);
}

.starter-card:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

.starter-card--recommended {
  position: relative;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.07) 0%, rgba(5, 150, 105, 0.02) 100%);
  border-color: rgba(5, 150, 105, 0.36);
  grid-column: span 2;
}

.starter-card__rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: #059669;
  color: #ffffff;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: 4px;
}

.starter-card__name {
  font-size: 15px;
  font-weight: 600;
  color: #01382c;
  line-height: 1.3;
}

.starter-card__filters {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(1, 56, 44, 0.62);
  flex: 1;
}

.starter-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px dashed rgba(1, 56, 44, 0.08);
}

.starter-card__counts {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.starter-card__count {
  font-size: 11.5px;
  color: rgba(1, 56, 44, 0.54);
  font-weight: 500;
}

.starter-card__count--strong {
  font-size: 10.5px;
  color: rgba(5, 150, 105, 0.85);
  font-weight: 600;
}

.starter-card__cta {
  font-size: 12px;
  font-weight: 600;
  color: #047857;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 140ms ease;
  white-space: nowrap;
}

.starter-card--build {
  border-style: dashed;
  border-color: rgba(1, 56, 44, 0.22);
  background: rgba(1, 56, 44, 0.015);
  align-items: flex-start;
}

.starter-card--build .starter-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
  margin-bottom: 4px;
}

.onboarding-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #064e3b;
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(6, 78, 59, 0.25);
  max-width: 540px;
  font-size: 13px;
  line-height: 1.45;
}

.onboarding-toast[hidden] { display: none; }

.onboarding-toast__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  flex-shrink: 0;
}

.onboarding-toast__msg { flex: 1; }
.onboarding-toast__msg strong { font-weight: 600; color: #d1fae5; }

.onboarding-toast__close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0 6px;
  font-size: 18px;
  line-height: 1;
}

.zero-state__help-pop {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(6, 78, 59, 0.78);
  max-width: 60ch;
}

.zero-state__help-pop[hidden] { display: none; }

.active-search-mobile { display: none; }

.active-search-mobile__pages {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0 -20px;
  padding: 0 20px;
}

.active-search-mobile__pages::-webkit-scrollbar { display: none; }

.active-search-mobile__page {
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 4px 12px;
  min-width: 0;
}

.active-search-mobile__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 19px;
  font-weight: 700;
  color: #064e3b;
  margin: 0;
  line-height: 1.2;
  cursor: pointer;
}

.active-search-mobile__count {
  font-size: 12px;
  color: rgba(6, 78, 59, 0.65);
  font-weight: 500;
}

.active-search-mobile__filters {
  font-size: 11.5px;
  color: rgba(6, 78, 59, 0.5);
  line-height: 1.4;
  margin-top: 2px;
}

.active-search-mobile__page--add {
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed rgba(5, 150, 105, 0.4);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(5, 150, 105, 0.04);
  cursor: pointer;
  min-height: 100px;
}

.active-search-mobile__add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
}

.active-search-mobile__add-label {
  font-size: 13px;
  font-weight: 600;
  color: #047857;
}

.active-search-mobile__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 4px 0;
}

.active-search-mobile__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(6, 78, 59, 0.2);
  padding: 0;
  cursor: pointer;
}

.active-search-mobile__dot.is-active {
  background: #047857;
  width: 22px;
  border-radius: 4px;
}

.active-search-mobile__dot--add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
  border-radius: 50%;
}

.active-search-mobile__dot--add.is-active {
  width: 16px;
  background: #047857;
  color: #ffffff;
  border-radius: 50%;
}

.active-search-mobile__hint {
  margin: 4px 0 0;
  text-align: center;
  font-size: 11px;
  color: rgba(6, 78, 59, 0.45);
}

.goal-drawer__add-row {
  padding: 0 var(--filters-panel-pad, 20px) 12px;
  border-bottom: 1px solid rgba(1, 56, 44, 0.08);
}

.goal-drawer__add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 1px dashed rgba(5, 150, 105, 0.45);
  border-radius: 10px;
  background: rgba(5, 150, 105, 0.04);
  color: #047857;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.goal-drawer__empty-state {
  text-align: center;
  padding: 28px 22px 8px;
}

.goal-drawer__empty-state[hidden] { display: none; }

.goal-drawer__empty-illus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
  margin-bottom: 12px;
}

.goal-drawer__empty-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #064e3b;
}

.goal-drawer__empty-msg {
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(6, 78, 59, 0.65);
  max-width: 32ch;
}

body.is-build-mode .goal-drawer .focus-choice-list,
body.is-build-mode .goal-drawer .filter-summary,
body.is-build-mode .goal-drawer .filters-panel__footer { display: none; }
body.is-build-mode .goal-drawer__empty-state { display: block; }

.filters-panel__title-save { display: none; }
body.is-save-search-mode .filters-panel__title-default { display: none; }
body.is-save-search-mode .filters-panel__title-save { display: inline; }

.filters-panel__subtitle--save {
  display: none;
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(1, 56, 44, 0.6);
  line-height: 1.45;
}
body.is-save-search-mode .filters-panel__subtitle--save { display: block; }

.save-search-name-row {
  display: none;
  padding: 14px 22px 16px;
  border-bottom: 1px solid rgba(1, 56, 44, 0.08);
  background: rgba(5, 150, 105, 0.04);
}
body.is-save-search-mode .save-search-name-row { display: block; }

.save-search-name-row__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #047857;
  margin-bottom: 6px;
}

.save-search-name-row__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(1, 56, 44, 0.18);
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  color: #01382c;
}

.save-search-name-row__input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
}

.save-search-name-row__hint {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: rgba(1, 56, 44, 0.55);
}

body.is-save-search-mode .filters-panel__overview { display: none; }
.filters-panel__footer-save { display: none !important; }
body.is-save-search-mode .filters-panel__footer-default { display: none !important; }
body.is-save-search-mode .filters-panel__footer-save { display: inline-flex !important; }

body.is-save-search-mode .filters-panel__panel.filter-sidebar {
  border-left: 4px solid #059669;
}

.goal-drawer__presets {
  margin-top: 12px;
  padding: 18px 20px 8px;
  border-top: 1px solid rgba(1, 56, 44, 0.08);
}

.goal-drawer__presets-head { margin-bottom: 12px; }

.goal-drawer__presets-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: #064e3b;
}

.goal-drawer__presets-sub {
  margin: 0;
  font-size: 12px;
  color: rgba(1, 56, 44, 0.55);
  line-height: 1.4;
}

.goal-drawer__presets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.preset-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid rgba(1, 56, 44, 0.1);
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
  cursor: pointer;
}

.preset-mini:hover {
  border-color: rgba(5, 150, 105, 0.42);
  background: #fbfffd;
}

.preset-mini__name {
  font-size: 12.5px;
  font-weight: 600;
  color: #01382c;
}

.preset-mini__meta {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(1, 56, 44, 0.55);
}

@media (max-width: 1180px) {
  .zero-state__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .zero-state__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .starter-card--recommended { grid-column: span 1; }
}

@media (max-width: 720px) {
  .active-search-banner__inner { display: none; }
  .active-search-banner { padding: 14px 18px 10px; }
  .active-search-mobile { display: block; }
  .filter-bar-label { width: 100%; margin-bottom: 6px; }
  .zero-state__welcome { padding: 20px; }
  .zero-state__title { font-size: 21px; }
}

@media (max-width: 540px) {
  .zero-state__grid { grid-template-columns: 1fr; }
  .goal-drawer__presets-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DemoStateToggle — prototype-only floating switch (lower-right)
   Lets reviewers flip between New user (empty) and Returning user.
   ============================================================ */
.demo-state-toggle {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid rgba(1, 56, 44, 0.12);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(1, 56, 44, 0.08);
  font-size: 11.5px;
}
.demo-state-toggle__label {
  color: rgba(1, 56, 44, 0.55);
  padding: 0 4px 0 6px;
}
.demo-state-toggle__btn {
  background: transparent;
  border: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  color: rgba(1, 56, 44, 0.7);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.demo-state-toggle__btn:hover { background: rgba(1, 56, 44, 0.04); }
.demo-state-toggle__btn.is-active {
  background: #059669;
  color: #ffffff;
}

/* ── Branch overrides (gap-feed-saved-search-empty-state-2026-05-05) ── */
.filter-chip.goal-chip {
  border-color: rgba(5, 150, 105, 0.2);
  background: #f0fdf8;
  color: #047857;
}

.job-row.goal-dimmed {
  opacity: 0.46;
}

.job-row.goal-highlight {
  border-color: rgba(5, 150, 105, 0.24);
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.84), #fff);
}

.job-list.is-grid {
  gap: 12px;
}

@media (min-width: 1180px) {
  .job-list.is-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1179px) {
  .job-list.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.job-list.is-grid .job-row {
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-areas:
    "logo content"
    "side side";
  gap: 12px;
  align-content: start;
  min-height: 244px;
  padding: 14px;
}

.job-list.is-grid .job-row > .job-logo {
  width: 38px;
  height: 38px;
}

.job-list.is-grid .job-row > .job-content {
  min-width: 0;
}

.job-list.is-grid .job-row .job-title,
.job-list.is-grid .job-row .job-meta,
.job-list.is-grid .job-row .job-salary {
  overflow-wrap: anywhere;
}

.job-list.is-grid .job-row .job-tags {
  gap: 6px;
  margin-top: 10px;
}

.job-list.is-grid .job-row .job-tag {
  max-width: 100%;
  padding: 4px 8px;
  white-space: normal;
  line-height: 1.2;
}

.job-list.is-grid .job-row > .job-side {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "score time"
    "explain explain";
  gap: 8px 10px;
  width: 100%;
  min-width: 0;
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(1, 56, 44, 0.07);
  align-items: center;
}

.job-list.is-grid .job-side .job-score {
  grid-area: score;
  width: 42px;
  min-width: 42px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
}

.job-list.is-grid .job-side .score-explain {
  grid-area: explain;
  max-width: none;
  width: 100%;
  padding: 8px 9px;
  border-radius: 9px;
  background: rgba(1, 56, 44, 0.045);
  color: rgba(1, 56, 44, 0.62);
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: left;
}

.job-list.is-grid .job-side .job-time {
  grid-area: time;
  justify-self: end;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f7faf8;
  color: rgba(1, 56, 44, 0.54);
  font-weight: 700;
}

.job-modal__rail-eyebrow--solo {
  margin: 0;
  color: #01382c;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.job-modal__context-panel .ctx-panel__skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #0f241f;
}

.job-modal__context-panel .ctx-panel__skill-summary {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.job-modal__context-panel .ctx-panel__skill-summary span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.job-modal__context-panel .ctx-panel__skill-summary strong {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.2;
}

.job-modal__context-panel .ctx-panel__skill-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.79rem;
  line-height: 1.38;
}

.job-modal__context-panel .ctx-panel__skill-summary.is-matched {
  border-color: rgba(52, 211, 153, 0.34);
  background: rgba(5, 150, 105, 0.2);
}

.job-modal__context-panel .ctx-panel__skill-summary.is-missing {
  border-color: rgba(251, 191, 36, 0.3);
}

.job-modal__context-panel .ctx-panel__section--salary {
  display: grid;
  gap: 10px;
}

.job-modal__context-panel .ctx-panel__salary-fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.job-modal__context-panel .ctx-panel__salary-fit div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(1, 56, 44, 0.05);
}

.job-modal__context-panel .ctx-panel__salary-fit span {
  color: rgba(1, 56, 44, 0.52);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.job-modal__context-panel .ctx-panel__salary-fit strong {
  color: #01382c;
  font-size: 0.86rem;
  line-height: 1.2;
}

.job-modal__context-panel .ctx-panel__salary-overlap {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.job-modal__context-panel .ctx-panel__salary-overlap span,
.job-modal__context-panel .ctx-panel__salary-overlap strong {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
}

.job-modal__context-panel .ctx-panel__salary-overlap span {
  background: rgba(1, 56, 44, 0.24);
}

.job-modal__context-panel .ctx-panel__salary-overlap strong {
  background: #059669;
}

.goal-drawer[hidden],
.goal-editor[hidden] {
  display: none;
}

.goal-drawer,
.goal-editor {
  z-index: 190;
}

.goal-drawer__panel,
.goal-editor__panel {
  width: min(420px, 100vw);
  background: #fff;
}

.goal-drawer__top,
.goal-editor__top {
  align-items: flex-start;
}

.goal-drawer__footer,
.goal-editor__footer {
  align-items: center;
}

.goal-drawer__title,
.goal-editor__title {
  max-width: 18ch;
}

.goal-drawer__body,
.goal-editor__body {
  display: grid;
  align-content: start;
  gap: 0;
  background: #fff;
}

#focus-editor-panel .goal-editor__body {
  grid-template-columns: minmax(0, 1fr);
  overflow-x: hidden;
  scroll-padding-top: 18px;
}

#focus-editor-panel .goal-editor__body > .filters-panel__section {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

#focus-editor-panel .filters-panel__search-wrap,
#focus-editor-panel .filters-panel__search-shell,
#focus-editor-panel .filter-options,
#focus-editor-panel .filters-panel__field-grid {
  min-width: 0;
  max-width: 100%;
}

#focus-editor-panel .filters-panel__section + .filters-panel__section {
  margin-top: 18px;
  padding-top: 18px;
}

#focus-editor-panel .filter-head {
  align-items: flex-start;
}

#focus-editor-panel .filters-panel__section:first-child {
  margin: -2px -4px 10px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(5, 150, 105, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(240, 253, 248, 0.88), rgba(255, 255, 255, 0.96));
}

#focus-editor-panel .filters-panel__section:first-child .filter-summary {
  max-width: none;
  margin-bottom: 0;
}

.focus-choice-list {
  display: grid;
  gap: 10px;
}

.focus-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(1, 56, 44, 0.09);
  border-radius: 10px;
  background: #fff;
  color: #01382c;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.focus-choice:hover,
.focus-choice.is-selected {
  border-color: rgba(5, 150, 105, 0.32);
  background: #f0fdf8;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.08);
}

.focus-choice input {
  accent-color: #059669;
}

.focus-choice__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.focus-choice__text strong {
  color: #01382c;
  font-size: 0.93rem;
  line-height: 1.25;
}

.focus-choice__text em {
  color: rgba(1, 56, 44, 0.62);
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.38;
}

.focus-choice__edit {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(1, 56, 44, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #047857;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.focus-choice__edit:hover,
.focus-choice__edit:focus-visible {
  border-color: rgba(5, 150, 105, 0.34);
  background: #fff;
  transform: translateY(-1px);
}

.focus-choice__edit svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

/* Actions cluster + delete button on saved-search focus cards.
   (Ticket: t1778253093707) */
.focus-choice__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.focus-choice__delete {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #b91c1c;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.focus-choice__delete:hover,
.focus-choice__delete:focus-visible {
  border-color: rgba(220, 38, 38, 0.42);
  background: #fef2f2;
  transform: translateY(-1px);
}
.focus-choice__delete svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 760px) {
  .goal-drawer,
  .goal-editor {
    align-items: flex-end;
  }

  .goal-drawer__panel,
  .goal-editor__panel {
    width: 100%;
    height: min(88vh, 760px);
    border-radius: 18px 18px 0 0;
  }
}


/* ============================================================
   Saved Search clarification (gap-feed-saved-search-clarified-2026-05-05)
   - Active Saved Search banner at top of feed = the persistent frame
   - Scoped search strip + scoped filter bar = transient interactions
   - Dirty-state notice = bridge between transient and persistent
   ============================================================ */

.active-search-banner {
  margin: 0 0 16px;
  padding: 18px 20px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(5, 150, 105, 0.03) 100%);
  border: 1px solid rgba(5, 150, 105, 0.18);
}

.active-search-banner__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.active-search-banner__lede {
  flex: 1 1 320px;
  min-width: 0;
}

.active-search-banner__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #047857;
  background: rgba(5, 150, 105, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.active-search-banner__title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.active-search-banner__title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #064e3b;
  margin: 0;
}

.active-search-banner__count {
  font-size: 13px;
  color: rgba(6, 78, 59, 0.65);
  font-weight: 500;
}

.active-search-banner__hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(6, 78, 59, 0.72);
  max-width: 56ch;
}
/* Desktop: bump the hint's max-width by ~30% (56ch -> 73ch) so the
   reworked copy reads on one tighter block instead of wrapping
   into a tall column. (Ticket: t1778247698850) */
@media (min-width: 1120px) {
  .active-search-banner__hint { max-width: 73ch; }
}

.active-search-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.active-search-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  background: #ffffff;
  color: #064e3b;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.active-search-banner__btn:hover {
  background: rgba(5, 150, 105, 0.06);
  border-color: rgba(5, 150, 105, 0.25);
}

.active-search-banner__btn:active { transform: translateY(1px); }

.active-search-banner__btn--primary {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}
.active-search-banner__btn--primary:hover {
  background: #047857;
  border-color: #047857;
}

.active-search-banner__btn--ghost {
  background: transparent;
  border-color: rgba(5, 150, 105, 0.25);
}
.active-search-banner__btn--ghost:hover {
  background: rgba(5, 150, 105, 0.05);
}

.active-search-banner__btn--small {
  padding: 5px 10px;
  font-size: 12px;
}

.active-search-banner__dirty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  flex-wrap: wrap;
}

.active-search-banner__dirty[hidden] { display: none; }

.active-search-banner__dirty-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ea580c;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.18);
}

.active-search-banner__dirty-msg {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #7c2d12;
  flex: 1 1 240px;
}

.active-search-banner__dirty-msg strong {
  color: #9a3412;
  font-weight: 600;
}

.active-search-banner__dirty-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.active-search-banner__dirty .active-search-banner__btn {
  background: #ffffff;
  border-color: rgba(124, 45, 18, 0.2);
  color: #7c2d12;
}
.active-search-banner__dirty .active-search-banner__btn:hover {
  background: #fff1e6;
}
.active-search-banner__dirty .active-search-banner__btn--primary {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}
.active-search-banner__dirty .active-search-banner__btn--primary:hover {
  background: #c2410c;
  border-color: #c2410c;
}

/* ----- Scoped search strip ----- */
.search-strip--scoped {
  position: relative;
  padding-top: 26px;
}

.search-strip-scope {
  position: absolute;
  top: 6px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(6, 78, 59, 0.7);
  background: rgba(5, 150, 105, 0.08);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.search-strip-scope__name {
  color: #047857;
  font-weight: 600;
}

/* ----- Filter bar (scoped) ----- */
.filter-bar--scoped { position: relative; }

.filter-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(6, 78, 59, 0.78);
  background: rgba(5, 150, 105, 0.06);
  border-radius: 8px;
  border: 1px dashed rgba(5, 150, 105, 0.25);
  margin-right: 4px;
}

.filter-bar-label strong {
  color: #064e3b;
  font-weight: 600;
}

/* ----- Compact mode under 720px ----- */
@media (max-width: 720px) {
  .active-search-banner { padding: 14px 14px 12px; }
  .active-search-banner__title { font-size: 18px; }
  .active-search-banner__actions { width: 100%; }
  .active-search-banner__btn { flex: 1 1 auto; justify-content: center; }
  .search-strip--scoped { padding-top: 28px; }
  .filter-bar-label { width: 100%; margin-bottom: 6px; }
}

/* When the dirty notice is showing, accent the filter bar so the connection is obvious */
body.has-dirty-saved-search .filter-bar--scoped {
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.22), 0 1px 0 rgba(234, 88, 12, 0.05);
}


/* ============================================================
   Branch tickets — May 2026
   ============================================================ */

/* Ticket bt1777981515960 — Skills grid in job-modal rail was too dark
   (white-on-dark-on-dark). Override to a light card surface that reads
   clearly while keeping the surrounding dark rail intact. */

.job-modal__context-panel .ctx-panel__skills-grid {
  background: #f4faf8;
  border: 1px solid rgba(1, 56, 44, 0.08);
  padding: 12px;
  gap: 8px;
}

.job-modal__context-panel .ctx-panel__skill-summary {
  background: #ffffff;
  border-color: rgba(1, 56, 44, 0.1);
}

.job-modal__context-panel .ctx-panel__skill-summary span {
  color: rgba(1, 56, 44, 0.55);
}

.job-modal__context-panel .ctx-panel__skill-summary strong {
  color: #01382c;
}

.job-modal__context-panel .ctx-panel__skill-summary p {
  color: rgba(1, 56, 44, 0.7);
}

.job-modal__context-panel .ctx-panel__skill-summary.is-matched {
  border-color: rgba(5, 150, 105, 0.32);
  background: #f0fdf8;
}

.job-modal__context-panel .ctx-panel__skill-summary.is-matched strong {
  color: #047857;
}

.job-modal__context-panel .ctx-panel__skill-summary.is-missing {
  border-color: rgba(217, 119, 6, 0.32);
  background: #fffbeb;
}

.job-modal__context-panel .ctx-panel__skill-summary.is-missing strong {
  color: #b45309;
}

.job-modal__context-panel .ctx-panel__skill-summary.is-missing span {
  color: rgba(120, 53, 15, 0.65);
}


/* Ticket bt1777981630245 — More Filters button was rendering as a 42x42
   icon-only square (the search-strip variant) inside the filter-bar.
   Make the filter-bar variant match /jobs/'s dashed-chip pattern. */

.filter-bar--scoped .search-filters-trigger,
.filter-bar .filter-chip.search-filters-trigger {
  width: auto;
  height: auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(1, 56, 44, 0.32);
  background: #ffffff;
  color: rgba(1, 56, 44, 0.78);
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
  box-shadow: none;
}

.filter-bar--scoped .search-filters-trigger:hover,
.filter-bar .filter-chip.search-filters-trigger:hover {
  border-color: rgba(1, 56, 44, 0.55);
  color: #01382c;
  background: #f8fbf9;
}

.filter-bar--scoped .search-filters-trigger:focus-visible,
.filter-bar .filter-chip.search-filters-trigger:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

/* Pre-empt the "+N" applied counter being added by more-filters JS — keep it inline */
.filter-bar--scoped .search-filters-trigger[aria-label*="applied"] {
  border-style: solid;
  border-color: rgba(5, 150, 105, 0.5);
  background: #f0fdf8;
  color: #059669;
}


/* ============================================================
   Zero-state / first-run onboarding (gap-feed-saved-search-empty-state-2026-05-05)
   ============================================================ */

/* By default, hide the zero-state markup; show only when body has the flag */
.zero-state { display: none; }
body.is-empty-state .zero-state { display: block; }

/* When in empty state, hide the active-state surfaces */
body.is-empty-state .active-search-banner,
body.is-empty-state .search-strip,
body.is-empty-state .filter-bar,
body.is-empty-state .page-grid,
body.is-empty-state .results-header,
body.is-empty-state .compare-bar,
body.is-empty-state .job-modal,
body.is-empty-state .filters-panel.goal-drawer,
body.is-empty-state .filters-panel.goal-editor {
  display: none !important;
}

/* ----- Welcome card ----- */
.zero-state__welcome {
  margin: 8px 0 24px;
  padding: 28px 28px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(5, 150, 105, 0.02) 100%);
  border: 1px solid rgba(5, 150, 105, 0.18);
}

.zero-state__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #047857;
  background: rgba(5, 150, 105, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.zero-state__title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: #064e3b;
  max-width: 32ch;
}

.zero-state__lede {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(6, 78, 59, 0.78);
  max-width: 64ch;
}

.zero-state__lede strong { color: #064e3b; font-weight: 600; }

.zero-state__help-link {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 12.5px;
  color: #047857;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.zero-state__help-link:hover { color: #064e3b; }

/* ----- Section heading ----- */
.zero-state__section-head { margin: 4px 0 14px; }

.zero-state__section-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #064e3b;
}

.zero-state__section-sub {
  margin: 0;
  font-size: 12.5px;
  color: rgba(1, 56, 44, 0.6);
}

/* ----- Starter grid ----- */
.zero-state__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 1180px) { .zero-state__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 880px)  { .zero-state__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px)  { .zero-state__grid { grid-template-columns: 1fr; } }

/* ----- Starter card ----- */
.starter-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 8px;
  padding: 16px 16px 14px;
  min-height: 134px;
  background: #ffffff;
  border: 1px solid rgba(1, 56, 44, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 80ms ease, background 140ms ease;
  font: inherit;
  color: inherit;
}

.starter-card:hover {
  border-color: rgba(5, 150, 105, 0.4);
  background: #fbfffd;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.1), 0 0 0 1px rgba(5, 150, 105, 0.08);
  transform: translateY(-1px);
}

.starter-card:active { transform: translateY(0); }

.starter-card:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

.starter-card__name {
  font-size: 15px;
  font-weight: 600;
  color: #01382c;
  line-height: 1.3;
}

.starter-card__filters {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(1, 56, 44, 0.62);
  flex: 1;
}

.starter-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px dashed rgba(1, 56, 44, 0.08);
}

.starter-card__count {
  font-size: 11.5px;
  color: rgba(1, 56, 44, 0.54);
  font-weight: 500;
}

.starter-card__cta {
  font-size: 12px;
  font-weight: 600;
  color: #047857;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 140ms ease;
}

.starter-card:hover .starter-card__cta { gap: 7px; }

/* ----- "Build my own" — alternative path ----- */
.starter-card--build {
  border-style: dashed;
  border-color: rgba(1, 56, 44, 0.22);
  background: rgba(1, 56, 44, 0.015);
  align-items: flex-start;
}

.starter-card--build:hover {
  border-color: #059669;
  border-style: solid;
  background: #f0fdf8;
}

.starter-card--build .starter-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
  margin-bottom: 4px;
}

.starter-card--build .starter-card__footer { border-top: 0; padding-top: 6px; }

.zero-state__footnote {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: rgba(1, 56, 44, 0.5);
}

/* ----- Onboarding toast (after picking a starter) ----- */
.onboarding-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #064e3b;
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(6, 78, 59, 0.25);
  max-width: 540px;
  font-size: 13px;
  line-height: 1.45;
  animation: onboarding-toast-in 220ms ease-out;
}

.onboarding-toast[hidden] { display: none; }

.onboarding-toast__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  flex-shrink: 0;
}

.onboarding-toast__msg { flex: 1; }
.onboarding-toast__msg strong { font-weight: 600; color: #d1fae5; }

.onboarding-toast__close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0 6px;
  font-size: 18px;
  line-height: 1;
}

.onboarding-toast__close:hover { color: #ffffff; }

@keyframes onboarding-toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ----- Demo state toggle (prototype only) ----- */
.demo-state-toggle {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid rgba(1, 56, 44, 0.12);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(1, 56, 44, 0.08);
  font-size: 11.5px;
}

.demo-state-toggle__label {
  color: rgba(1, 56, 44, 0.55);
  padding: 0 4px 0 6px;
}

.demo-state-toggle__btn {
  background: transparent;
  border: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  color: rgba(1, 56, 44, 0.7);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.demo-state-toggle__btn:hover { background: rgba(1, 56, 44, 0.04); }

.demo-state-toggle__btn.is-active {
  background: #059669;
  color: #ffffff;
}

/* ----- Help dialog (the inline "What's a Saved Search?" link) ----- */
.zero-state__help-pop {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(6, 78, 59, 0.78);
  max-width: 60ch;
}

.zero-state__help-pop[hidden] { display: none; }

.zero-state__help-pop strong { color: #064e3b; font-weight: 600; }

@media (max-width: 720px) {
  .zero-state__welcome { padding: 20px; }
  .zero-state__title { font-size: 21px; }
  .demo-state-toggle {
    bottom: calc(92px + env(safe-area-inset-bottom));
    right: 12px;
    padding: 4px 6px;
  }
}


/* ============================================================
   Branch revisions — May 2026 (gap-feed-saved-search-empty-state-2026-05-05)
   ============================================================ */

/* --- Rev #2: Clickable banner title --- */
.active-search-banner__title-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 6px;
  transition: background 120ms ease;
}

.active-search-banner__title-button:hover {
  background: rgba(5, 150, 105, 0.08);
}

.active-search-banner__title-button:hover .active-search-banner__chevron {
  transform: translateY(1px);
}

.active-search-banner__title-button:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 3px;
}

.active-search-banner__chevron {
  color: rgba(6, 78, 59, 0.55);
  transition: transform 140ms ease, color 140ms ease;
}

.active-search-banner__title-button:hover .active-search-banner__chevron {
  color: #047857;
}


/* --- Rev #4: Mobile swipe carousel --- */
.active-search-mobile {
  display: none;  /* hidden on desktop; shown via media query below */
}

.active-search-mobile__pages {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0 -20px;  /* bleed past banner padding so swipe edge feels right */
  padding: 0 20px;
}

.active-search-mobile__pages::-webkit-scrollbar { display: none; }

.active-search-mobile__page {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 4px 12px;
  min-width: 0;
}

.active-search-mobile__eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #047857;
  background: rgba(5, 150, 105, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 2px;
}

.active-search-mobile__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 19px;
  font-weight: 700;
  color: #064e3b;
  margin: 0;
  line-height: 1.2;
}

.active-search-mobile__title svg {
  color: rgba(6, 78, 59, 0.55);
  flex-shrink: 0;
}

.active-search-mobile__count {
  font-size: 12px;
  color: rgba(6, 78, 59, 0.65);
  font-weight: 500;
}

.active-search-mobile__filters {
  font-size: 11.5px;
  color: rgba(6, 78, 59, 0.5);
  line-height: 1.4;
  margin-top: 2px;
}

.active-search-mobile__page--add {
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed rgba(5, 150, 105, 0.4);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(5, 150, 105, 0.04);
  text-align: left;
  cursor: pointer;
  min-height: 100px;
}

.active-search-mobile__add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
}

.active-search-mobile__add-label {
  font-size: 13px;
  font-weight: 600;
  color: #047857;
}

/* Dots */
.active-search-mobile__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 4px 0;
}

.active-search-mobile__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(6, 78, 59, 0.2);
  padding: 0;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease, transform 120ms ease;
}

.active-search-mobile__dot.is-active {
  background: #047857;
  width: 22px;
  border-radius: 4px;
}

.active-search-mobile__dot--add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
  border-radius: 50%;
}

.active-search-mobile__dot--add.is-active {
  width: 16px;
  background: #047857;
  color: #ffffff;
  border-radius: 50%;
}

.active-search-mobile__hint {
  margin: 4px 0 0;
  text-align: center;
  font-size: 11px;
  color: rgba(6, 78, 59, 0.45);
}

/* On mobile: swap desktop banner inner for the carousel */
@media (max-width: 720px) {
  .active-search-banner__inner { display: none; }
  .active-search-banner { padding: 14px 18px 10px; }
  .active-search-mobile { display: block; }
}


/* --- Rev #5: Add new button + empty state inside Switch panel --- */
.goal-drawer__add-row {
  padding: 0 var(--filters-panel-pad, 20px) 12px;
  border-bottom: 1px solid rgba(1, 56, 44, 0.08);
}

.goal-drawer__add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 1px dashed rgba(5, 150, 105, 0.45);
  border-radius: 10px;
  background: rgba(5, 150, 105, 0.04);
  color: #047857;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.goal-drawer__add-btn:hover {
  background: rgba(5, 150, 105, 0.1);
  border-style: solid;
  border-color: #059669;
}

.goal-drawer__add-btn svg {
  background: rgba(5, 150, 105, 0.12);
  border-radius: 6px;
  padding: 2px;
  flex-shrink: 0;
}

/* Empty state inside Switch panel (build-mode) */
.goal-drawer__empty-state {
  text-align: center;
  padding: 28px 22px 8px;
}

.goal-drawer__empty-state[hidden] { display: none; }

.goal-drawer__empty-illus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
  margin-bottom: 12px;
}

.goal-drawer__empty-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #064e3b;
}

.goal-drawer__empty-msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(6, 78, 59, 0.65);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

/* When body is in build mode, hide the choice list inside the Switch panel and show empty state */
body.is-build-mode .goal-drawer .focus-choice-list,
body.is-build-mode .goal-drawer .filter-summary,
body.is-build-mode .goal-drawer .filters-panel__footer { display: none; }
body.is-build-mode .goal-drawer__empty-state { display: block; }


/* ============================================================
   "Add new saved search" panel mode — reuses the More Filters
   panel layout, with a name input + alternate footer + retitled
   header. Activated by body.is-save-search-mode.
   ============================================================ */

/* Title swap */
.filters-panel__title-save { display: none; }
body.is-save-search-mode .filters-panel__title-default { display: none; }
body.is-save-search-mode .filters-panel__title-save { display: inline; }

/* Subtitle (save-mode only) */
.filters-panel__subtitle--save {
  display: none;
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(1, 56, 44, 0.6);
  line-height: 1.45;
}
body.is-save-search-mode .filters-panel__subtitle--save { display: block; }

/* Name input row */
.save-search-name-row {
  display: none;
  padding: 14px 22px 16px;
  border-bottom: 1px solid rgba(1, 56, 44, 0.08);
  background: rgba(5, 150, 105, 0.04);
}
body.is-save-search-mode .save-search-name-row { display: block; }

.save-search-name-row__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #047857;
  margin-bottom: 6px;
}

.save-search-name-row__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(1, 56, 44, 0.18);
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  color: #01382c;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.save-search-name-row__input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
}

.save-search-name-row__input::placeholder {
  color: rgba(1, 56, 44, 0.38);
}

.save-search-name-row__hint {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: rgba(1, 56, 44, 0.55);
}

/* Hide the overview row in save mode (the "No extra filters selected" line is misleading there) */
body.is-save-search-mode .filters-panel__overview { display: none; }

/* Footer swap: hide default footer buttons in save mode, show save-mode ones */
.filters-panel__footer-save { display: none !important; }
body.is-save-search-mode .filters-panel__footer-default { display: none !important; }
body.is-save-search-mode .filters-panel__footer-save { display: inline-flex !important; }

/* In save mode, the panel feels like a creator — slightly heavier outline */
body.is-save-search-mode .filters-panel__panel.filter-sidebar {
  border-left: 4px solid #059669;
}


/* ============================================================
   May 2026 revision pack — presets in Switch panel,
   comp-fit redesign, autocomplete consistency
   ============================================================ */

/* --- REV 4: Hide the rejected autocomplete __secondary line.
   typeahead.js produces only primary+badge already; search-ui.js produces
   primary+secondary+badge. Hiding secondary makes both look identical. --- */
.autocomplete-menu__secondary { display: none !important; }


/* --- REV 1: Mini preset cards at the bottom of the Switch panel --- */
.goal-drawer__presets {
  margin-top: 12px;
  padding: 18px 20px 8px;
  border-top: 1px solid rgba(1, 56, 44, 0.08);
}

.goal-drawer__presets-head { margin-bottom: 12px; }

.goal-drawer__presets-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: #064e3b;
}

.goal-drawer__presets-sub {
  margin: 0;
  font-size: 12px;
  color: rgba(1, 56, 44, 0.55);
  line-height: 1.4;
}

.goal-drawer__presets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 480px) {
  .goal-drawer__presets-grid { grid-template-columns: 1fr; }
}

.preset-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid rgba(1, 56, 44, 0.1);
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 80ms ease;
}

.preset-mini:hover {
  border-color: rgba(5, 150, 105, 0.42);
  background: #fbfffd;
  transform: translateY(-1px);
}

.preset-mini:active { transform: translateY(0); }

.preset-mini:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

.preset-mini__name {
  font-size: 12.5px;
  font-weight: 600;
  color: #01382c;
  line-height: 1.25;
}

.preset-mini__filters {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(1, 56, 44, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preset-mini__count {
  margin-top: 2px;
  font-size: 10.5px;
  color: rgba(1, 56, 44, 0.45);
  font-weight: 500;
}


/* --- REV 3: Compensation fit redesign --- */

/* Verdict pill in the section title */
.ctx-panel__section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.comp-fit__verdict {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.comp-fit__verdict.is-good {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.comp-fit__verdict.is-partial {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.comp-fit__verdict.is-poor {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

/* Container */
.comp-fit {
  background: #f4faf8;
  border: 1px solid rgba(1, 56, 44, 0.08);
  border-radius: 10px;
  padding: 14px 14px 12px;
}

/* Legend */
.comp-fit__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 11.5px;
  color: rgba(1, 56, 44, 0.7);
  margin-bottom: 14px;
}

.comp-fit__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.comp-fit__legend-item strong {
  color: #01382c;
  font-weight: 600;
  margin-left: 2px;
}

.comp-fit__swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.comp-fit__swatch--you {
  background: rgba(56, 142, 240, 0.22);
  border: 1.5px solid #3b82f6;
}

.comp-fit__swatch--job {
  background: rgba(5, 150, 105, 0.22);
  border: 1.5px solid #059669;
}

/* The bar */
.comp-fit__bar {
  position: relative;
  padding-top: 18px;
  padding-bottom: 22px;
}

/* Axis ticks */
.comp-fit__axis {
  position: relative;
  height: 12px;
  margin-bottom: 10px;
}

.comp-fit__tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comp-fit__tick::before {
  content: '';
  width: 1px;
  height: 5px;
  background: rgba(1, 56, 44, 0.18);
}

.comp-fit__tick em {
  display: inline-block;
  margin-top: 2px;
  font-size: 9.5px;
  font-style: normal;
  color: rgba(1, 56, 44, 0.5);
  font-weight: 500;
  white-space: nowrap;
}

/* Rows */
.comp-fit__row {
  position: relative;
  display: flex;
  align-items: center;
  height: 26px;
  margin-bottom: 6px;
}

.comp-fit__row-label {
  width: 32px;
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(1, 56, 44, 0.45);
}

/* Range bars */
.comp-fit__range {
  position: relative;
  height: 14px;
  border-radius: 7px;
  flex-shrink: 0;
  cursor: default;
  transition: filter 120ms ease, transform 120ms ease;
  margin-left: 0;
}

.comp-fit__row .comp-fit__range {
  position: absolute;
  /* the position is offset by the label width (32px) */
  left: calc(var(--off, 0) + 32px) !important;
}

/* Override absolute positioning so style="left:..." works relative to row content */
.comp-fit__row { padding-left: 32px; }
.comp-fit__row .comp-fit__range { position: absolute; left: 32px; }

.comp-fit__range--you {
  background: rgba(56, 142, 240, 0.18);
  border: 1.5px solid #3b82f6;
}

.comp-fit__range--job {
  background: rgba(5, 150, 105, 0.22);
  border: 1.5px solid #059669;
}

.comp-fit__range:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Range handles (start / end) */
.comp-fit__handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 9.5px;
  font-weight: 600;
  color: #01382c;
  border: 1px solid currentColor;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 120ms ease;
  pointer-events: none;
}

.comp-fit__handle--start { left: 0; }
.comp-fit__handle--end { left: 100%; }

.comp-fit__range:hover .comp-fit__handle { opacity: 1; }

.comp-fit__range--you .comp-fit__handle { color: #1d4ed8; border-color: #3b82f6; }
.comp-fit__range--job .comp-fit__handle { color: #047857; border-color: #059669; }

/* Overlap band — vertical highlight where you and the job agree */
.comp-fit__overlap-band {
  position: absolute;
  top: 22px;        /* below axis */
  bottom: 22px;     /* above explanation */
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.08), rgba(5, 150, 105, 0.02));
  border-left: 1px dashed rgba(5, 150, 105, 0.3);
  border-right: 1px dashed rgba(5, 150, 105, 0.3);
  pointer-events: none;
  margin-left: 32px;
}

/* Tooltip on hover, using data-comp-tip */
[data-comp-tip] {
  position: relative;
}

[data-comp-tip]:hover::after {
  content: attr(data-comp-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: #064e3b;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Explanation line */
.comp-fit__explain {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(1, 56, 44, 0.72);
}

.comp-fit__explain strong {
  color: #047857;
  font-weight: 700;
}

/* When user hovers any feed job card, glow the comp bar to suggest it's relevant */
.job-row:hover ~ .ctx-panel .comp-fit,
body[data-hovering-card] .comp-fit {
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.18);
  transition: box-shadow 200ms ease;
}


/* ============================================================
   Floating Comp-Fit preview (list-view surface)
   ============================================================ */
.comp-fit-preview {
  position: fixed;
  bottom: 18px;
  right: 80px; /* clear of the right side-actions toolbar */
  z-index: 90;
  width: 320px;
  padding: 14px 14px 12px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(1, 56, 44, 0.1);
  box-shadow: 0 12px 36px rgba(1, 56, 44, 0.12), 0 2px 6px rgba(1, 56, 44, 0.05);
  pointer-events: auto;
  cursor: default;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), opacity 180ms ease;
}

.comp-fit-preview[hidden] { display: none !important; }

.comp-fit-preview.is-active {
  transform: translateY(0);
  opacity: 1;
}

.comp-fit-preview:hover {
  box-shadow: 0 16px 44px rgba(5, 150, 105, 0.16), 0 2px 8px rgba(1, 56, 44, 0.08);
}

.comp-fit-preview__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: rgba(1, 56, 44, 0.4);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}

.comp-fit-preview__close:hover {
  background: rgba(1, 56, 44, 0.05);
  color: #01382c;
}

.comp-fit-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  padding-right: 18px; /* space for close button */
}

.comp-fit-preview__eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(1, 56, 44, 0.5);
}

.comp-fit-preview__verdict {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.comp-fit-preview__verdict.is-good {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.comp-fit-preview__verdict.is-partial {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.comp-fit-preview__verdict.is-poor {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.comp-fit-preview__job {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #01382c;
  line-height: 1.3;
}

.comp-fit-preview__job em {
  font-style: normal;
  font-weight: 500;
  color: rgba(1, 56, 44, 0.55);
}

/* Bar */
.comp-fit-preview__bar {
  position: relative;
  padding-top: 6px;
  padding-bottom: 6px;
}

.comp-fit-preview__axis {
  position: relative;
  height: 6px;
  margin-bottom: 4px;
}

.comp-fit-preview__axis span {
  position: absolute;
  top: 0;
  width: 1px;
  height: 4px;
  background: rgba(1, 56, 44, 0.18);
  transform: translateX(-50%);
}

.comp-fit-preview__row {
  position: relative;
  display: flex;
  align-items: center;
  height: 14px;
  margin-bottom: 4px;
  padding-left: 28px;
}

.comp-fit-preview__row-label {
  position: absolute;
  left: 0;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(1, 56, 44, 0.45);
}

.comp-fit-preview__range {
  position: absolute;
  height: 8px;
  border-radius: 4px;
  left: 28px;
  transition: left 240ms cubic-bezier(.2,.7,.2,1), width 240ms cubic-bezier(.2,.7,.2,1);
}

.comp-fit-preview__range--you {
  background: rgba(56, 142, 240, 0.18);
  border: 1.2px solid #3b82f6;
}

.comp-fit-preview__range--job {
  background: rgba(5, 150, 105, 0.22);
  border: 1.2px solid #059669;
}

.comp-fit-preview__overlap-band {
  position: absolute;
  top: 12px;       /* below axis */
  bottom: 4px;
  margin-left: 28px;
  background: linear-gradient(180deg, rgba(5,150,105,0.08), rgba(5,150,105,0.02));
  border-left: 1px dashed rgba(5,150,105,0.32);
  border-right: 1px dashed rgba(5,150,105,0.32);
  pointer-events: none;
  transition: left 240ms cubic-bezier(.2,.7,.2,1), width 240ms cubic-bezier(.2,.7,.2,1);
}

.comp-fit-preview__explain {
  margin: 8px 0 4px;
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(1, 56, 44, 0.7);
}

.comp-fit-preview__explain strong {
  color: #047857;
  font-weight: 700;
}

.comp-fit-preview__cta {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(1, 56, 44, 0.42);
  font-weight: 600;
}

/* Hide the preview when the job modal is open */
body:has(.job-modal:not([hidden])) .comp-fit-preview { opacity: 0; pointer-events: none; }

/* Hide on mobile — too cramped, the modal is the right place there */
@media (max-width: 720px) {
  .comp-fit-preview { display: none; }
}


/* ============================================================
   Profile-aware save panel (May 2026)
   ============================================================ */

/* Profile dock — the strip at the top of the save panel */
.profile-dock {
  display: none;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.06) 0%, rgba(5, 150, 105, 0.02) 100%);
  border-bottom: 1px solid rgba(5, 150, 105, 0.16);
  padding: 14px 22px 16px;
}

body.is-save-search-mode .profile-dock { display: block; }

.profile-dock__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.profile-dock__avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.profile-dock__copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.profile-dock__title {
  font-size: 12.5px;
  font-weight: 600;
  color: #064e3b;
  line-height: 1.2;
}

.profile-dock__sub {
  font-size: 11px;
  color: rgba(6, 78, 59, 0.6);
  line-height: 1.3;
}

.profile-dock__bulk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  background: #ffffff;
  border: 1px solid rgba(5, 150, 105, 0.32);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #047857;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease;
}

.profile-dock__bulk:hover {
  background: #ecfdf5;
  border-color: #059669;
}

.profile-dock__bulk svg { color: #059669; }

.profile-dock__bulk.is-applied {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}
.profile-dock__bulk.is-applied svg { color: #ffffff; }

.profile-dock__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Profile chip — distinct from regular filter chips */
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 7px;
  background: #ffffff;
  border: 1px dashed rgba(5, 150, 105, 0.42);
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
  max-width: 100%;
}

.profile-chip:hover {
  background: #f0fdf8;
  border-color: #059669;
  transform: translateY(-1px);
}

.profile-chip:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

.profile-chip:active { transform: translateY(0); }

.profile-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
  flex-shrink: 0;
}

.profile-chip__label {
  font-size: 11.5px;
  font-weight: 600;
  color: #064e3b;
  white-space: nowrap;
}

.profile-chip__value {
  font-size: 11px;
  color: rgba(6, 78, 59, 0.55);
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Active state — chip applied */
.profile-chip.is-applied {
  background: #059669;
  border-color: #059669;
  border-style: solid;
}

.profile-chip.is-applied .profile-chip__icon {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.profile-chip.is-applied .profile-chip__label,
.profile-chip.is-applied .profile-chip__value {
  color: #ffffff;
}

.profile-chip.is-applied .profile-chip__value {
  color: rgba(255, 255, 255, 0.78);
}

/* Per-skill pills below the keyword input (when "My skills" is applied) */
.profile-skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.profile-skill-pills[hidden] { display: none; }

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 4px 4px 10px;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.28);
  border-radius: 999px;
  font-size: 11px;
  color: #047857;
  font-weight: 500;
}

.skill-pill__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  color: rgba(5, 150, 105, 0.55);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background 120ms ease, color 120ms ease;
}

.skill-pill__remove:hover {
  background: rgba(5, 150, 105, 0.15);
  color: #064e3b;
}


/* ============================================================
   Empty state — Recommended-for-you starter + two-line counts
   ============================================================ */

.starter-card--recommended {
  position: relative;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.07) 0%, rgba(5, 150, 105, 0.02) 100%);
  border-color: rgba(5, 150, 105, 0.36);
  grid-column: span 2;
}

@media (max-width: 880px) {
  .starter-card--recommended { grid-column: span 1; }
}

.starter-card--recommended:hover {
  border-color: #059669;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12) 0%, rgba(5, 150, 105, 0.04) 100%);
}

.starter-card__rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: #059669;
  color: #ffffff;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: 4px;
}

.starter-card__rec-badge svg { color: #ffffff; }

.starter-card--recommended .starter-card__name { color: #064e3b; }
.starter-card--recommended .starter-card__count--strong { color: #059669; }

/* Two-line match counts */
.starter-card__counts {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.starter-card__count--strong {
  font-size: 10.5px;
  color: rgba(5, 150, 105, 0.85);
  font-weight: 600;
}

/* Fix: prevent the parent panel\'s flex column from crushing the dock */
body.is-save-search-mode .profile-dock {
  display: block !important;
  flex-shrink: 0 !important;
  height: auto !important;
  min-height: auto !important;
}
body.is-save-search-mode #filters-panel .filters-panel__panel {
  /* allow the panel content to scroll instead of shrinking children */
  overflow-y: auto;
}

/* Adjust dock styling now that it lives inside .filters-panel__sections */
.filters-panel__sections > .profile-dock {
  margin: -22px -22px 16px;  /* break out to the section padding edges */
  border-radius: 0;
  border-top: 1px solid rgba(5, 150, 105, 0.16);
}


/* ============================================================
   Ticket bt1777992961771 — Job modal logo misalignment.
   The H2 title carried the user-agent's default margin-top, pushing the
   text down and making the logo look "higher". Zero those out and align
   the logo to the title's first-line cap height.
   ============================================================ */
.job-modal__top .job-modal__title {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

.job-modal__top .job-modal__identity {
  align-items: flex-start;
}

/* Lift the logo just enough that its top edge lines up with the cap-height
   of the title text (the title's line-height adds ~4px above cap-height). */
.job-modal__top .job-modal__logo {
  margin-top: 6px;
}


/* ============================================================
   Ticket bt1777993167729 — Compare modal extensibility
   Richer table layout, per-job action row, and a copy-all action.
   ============================================================ */
.compare-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(1, 56, 44, 0.08);
}

.compare-modal__head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-modal__head-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid rgba(1, 56, 44, 0.14);
  background: #ffffff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(1, 56, 44, 0.75);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.compare-modal__head-btn:hover {
  border-color: rgba(5, 150, 105, 0.4);
  background: #f0fdf8;
  color: #047857;
}

.compare-modal__head-btn.is-success {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.compare-table th,
.compare-table td {
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
  border-bottom: 1px solid rgba(1, 56, 44, 0.06);
}

.compare-table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(1, 56, 44, 0.5);
  background: rgba(5, 150, 105, 0.03);
  position: sticky;
  top: 0;
  z-index: 1;
}

.compare-table th:first-child,
.compare-table td:first-child {
  width: 132px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(1, 56, 44, 0.55);
  background: rgba(1, 56, 44, 0.015);
}

.compare-table tbody tr:hover td:not(:first-child) {
  background: rgba(5, 150, 105, 0.025);
}

.compare-table .compare-highlight {
  color: #047857;
  font-weight: 600;
}

.compare-table .compare-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.compare-table .compare-tag {
  display: inline-block;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 500;
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
  border-radius: 999px;
  white-space: nowrap;
}

.compare-table .compare-summary {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(1, 56, 44, 0.7);
  max-width: 280px;
}

.compare-table .compare-job-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.compare-table .compare-job-actions button,
.compare-table .compare-job-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid rgba(1, 56, 44, 0.12);
  background: #ffffff;
  color: rgba(1, 56, 44, 0.78);
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}

.compare-table .compare-job-actions button:hover,
.compare-table .compare-job-actions a:hover {
  background: #f0fdf8;
  border-color: rgba(5, 150, 105, 0.4);
  color: #047857;
}

.compare-table .compare-job-actions .is-copied {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

/* ════════════════════════════════════════════════════════════════
   Feed empty state — 0 jobs match active saved search.
   (Ticket: t1778261232751)
   ──────────────────────────────────────────────────────────────── */
.feed-empty-state {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.55), #ffffff);
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: 16px;
  margin-top: 12px;
}
.feed-empty-state .surface-card__body {
  padding: 32px 36px 28px;
  display: flex; flex-direction: column;
  gap: 12px; align-items: flex-start;
}
.feed-empty-state__illustration {
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.06);
  color: #047857;
  margin-bottom: 4px;
}
.feed-empty-state__eyebrow {
  font: 700 0.7rem/1 inherit; letter-spacing: 0.06em;
  text-transform: uppercase; color: #047857;
  background: rgba(5, 150, 105, 0.10);
  padding: 4px 10px; border-radius: 99px;
}
.feed-empty-state__title {
  font: 700 1.2rem/1.3 inherit; color: #01382C;
  margin: 4px 0 0; letter-spacing: -0.01em; max-width: 32ch;
}
.feed-empty-state__copy {
  font: 400 0.9rem/1.55 inherit;
  color: rgba(1, 56, 44, 0.7);
  margin: 0; max-width: 56ch;
}
.feed-empty-state__actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 6px;
}
.feed-empty-state__suggestions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding-top: 18px; margin-top: 4px;
  border-top: 1px solid rgba(5, 150, 105, 0.14); width: 100%;
}
.feed-empty-state__suggestions-label {
  font: 600 0.75rem/1 inherit;
  color: rgba(1, 56, 44, 0.55); margin-right: 4px;
}
.feed-empty-state__chip {
  display: inline-flex; align-items: center;
  padding: 5px 11px;
  border: 1px dashed rgba(5, 150, 105, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: #047857;
  font: 600 0.75rem/1 inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
}
.feed-empty-state__chip:hover {
  background: rgba(5, 150, 105, 0.08);
  border-style: solid; border-color: rgba(5, 150, 105, 0.45);
  transform: translateY(-1px);
}

body[data-page="feed"][data-state="zero"] .job-list,
body[data-page="feed"][data-state="zero"] .results-header,
body[data-page="feed"][data-state="zero"] .filter-bar,
body[data-page="feed"][data-state="zero"] .search-strip,
body[data-page="feed"][data-state="zero"] .feed-compare-bar {
  display: none !important;
}
body[data-page="feed"][data-state="zero"] #feed-empty[hidden] {
  display: block !important;
}
