body {
  background: var(--bg-app, #f8fbfd);
}

.sb-main {
  position: relative;
  min-height: 100vh;
  padding: 48px 56px 72px var(--left-safe-area, 160px);
  color: var(--text-main, #111827);
  background: linear-gradient(180deg, #fbfdff 0%, #f8fbfd 56%, #f3f8fb 100%);
}

.saved-jobs-page {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  margin: 24px 0;
}

.saved-jobs-page *,
.saved-jobs-page *::before,
.saved-jobs-page *::after,
.sj-modal *,
.sj-modal *::before,
.sj-modal *::after,
.sj-drawer *,
.sj-drawer *::before,
.sj-drawer *::after,
.sj-fit-modal *,
.sj-fit-modal *::before,
.sj-fit-modal *::after,
.sj-toast,
.sj-toast * {
  box-sizing: border-box;
}

.saved-jobs-page button,
.saved-jobs-page input,
.saved-jobs-page textarea,
.saved-jobs-page select,
.sj-modal button,
.sj-modal input,
.sj-modal textarea,
.sj-modal select,
.sj-drawer button,
.sj-drawer input,
.sj-drawer textarea,
.sj-drawer select {
  font: inherit;
}

.saved-jobs-page a,
.sj-drawer a {
  color: inherit;
  text-decoration: none;
}

.saved-jobs-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: flex-start;
  gap: 28px;
  padding: 28px 14px 34px;
  text-align: left;
}

.sj-eyebrow {
  margin: 0 0 10px;
  color: var(--brand-600, #0F7F97);
  font-size: 12px;
  font-weight: var(--fw-heavy);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.saved-jobs-header h1 {
  margin: 0;
  color: var(--text-heading, #14213d);
  font-family: var(--font-body, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: clamp(42px, 4vw, 58px);
  font-weight: var(--fw-medium);
  line-height: 1.05;
  letter-spacing: 0;
}

.saved-jobs-header p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--text-muted, #6b7280);
  font-size: 16px;
  line-height: 1.5;
}

.saved-jobs-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.sj-button,
.sj-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.sj-button {
  min-height: 44px;
  gap: 8px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: var(--fw-heavy);
  line-height: 1;
  white-space: nowrap;
}

.sj-button svg,
.sj-icon-button svg {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sj-button svg {
  width: 18px;
  height: 18px;
}

.sj-button:hover,
.sj-icon-button:hover {
  transform: translateY(-1px);
}

.sj-button--primary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, var(--brand-500, #168CA4), var(--brand-600, #0F7F97));
  box-shadow: var(--shadow-button, 0 12px 28px rgba(22, 140, 164, 0.24));
}

.sj-button--secondary {
  color: var(--brand-600, #0F7F97);
  border: 1px solid var(--border-brand, rgba(22, 140, 164, 0.28));
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
}

.sj-button--ghost {
  color: var(--brand-600, #0F7F97);
  background: transparent;
}

.sj-icon-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--text-muted, #6b7280);
  border: 1px solid var(--border-soft, #e5e7eb);
  background: #fff;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
}

.sj-icon-button svg {
  width: 18px;
  height: 18px;
}

.sj-tracker-card,
.sj-table-card,
.sj-empty-board,
.sj-modal-panel,
.sj-drawer-panel,
.sj-fit-panel,
.sj-profile-panel,
.sj-toast {
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card, 0 18px 50px rgba(17, 24, 39, 0.07));
  backdrop-filter: blur(14px);
}

.sj-tracker-card {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  min-height: 92px;
  padding: 22px 28px;
  overflow: visible;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.sj-quick-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.sj-add-divider {
  width: 1px;
  height: 44px;
  background: rgba(17, 24, 39, 0.1);
}

.sj-inline-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: var(--brand-600, #0F7F97);
  background: transparent;
  font-size: 14px;
  font-weight: var(--fw-heavy);
  line-height: 1;
  cursor: pointer;
}

.sj-inline-add {
  min-height: 34px;
  padding: 0 2px;
}

.sj-inline-add span[aria-hidden="true"] {
  color: var(--brand-500, #168CA4);
  font-size: 25px;
  font-weight: var(--fw-medium);
  line-height: 1;
}

.sj-inline-add:hover {
  color: var(--brand-500, #168CA4);
}

.sj-link-field,
.sj-search {
  min-height: 46px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.sj-quick-add-form .sj-link-field {
  border-radius: 16px;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.04);
}

.sj-quick-add-form .sj-button {
  min-height: 46px;
  min-width: 104px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(22, 140, 164, 0.18);
}

.sj-link-field:focus-within,
.sj-search:focus-within {
  border-color: var(--brand-400, #1C9AB0);
  box-shadow: 0 0 0 4px rgba(22, 140, 164, 0.12);
}

.sj-link-field svg,
.sj-search svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted, #6b7280);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sj-link-field input,
.sj-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text-main, #111827);
  background: transparent;
  font-size: 14px;
}

.sj-search-compact {
  width: 46px;
  min-height: 46px;
  grid-template-columns: 20px 0;
  justify-content: center;
  gap: 0;
  padding: 0 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  transition: width 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sj-search-compact:hover,
.sj-search-compact:focus-within {
  width: min(280px, 100%);
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  justify-content: start;
}

.sj-search-compact input {
  width: 0;
  opacity: 0;
  transition: opacity 120ms ease;
}

.sj-search-compact:hover input,
.sj-search-compact:focus-within input {
  width: auto;
  opacity: 1;
}

.sj-empty-board h2,
.sj-modal h2,
.sj-drawer-header h2,
.sj-fit-modal h2 {
  margin: 0;
  color: var(--text-heading, #14213d);
  font-weight: var(--fw-heavy);
  line-height: 1.2;
}

.sj-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 18px;
  border-bottom: 0;
  color: var(--text-muted, #6b7280);
  font-size: 14px;
  line-height: 1.4;
}

/* Shared dropdown component */
.sj-dropdown {
  position: relative;
  display: inline-flex;
}

.sj-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font-size: 14px;
  font-weight: var(--fw-heavy);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
  user-select: none;
}

.sj-dropdown-trigger:hover {
  border-color: #d0d5dd;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.08);
}

.sj-dropdown.is-open .sj-dropdown-trigger {
  border-color: var(--brand-400, #1C9AB0);
  box-shadow: 0 0 0 3px rgba(22, 140, 164, 0.12);
}

.sj-dropdown-label {
  color: #98a2b3;
  font-size: 13px;
  font-weight: var(--fw-bold);
}

.sj-dropdown-value {
  color: var(--text-heading, #14213d);
  font-weight: var(--fw-heavy);
}

.sj-dropdown-arrow {
  width: 18px;
  height: 18px;
  stroke: #98a2b3;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.sj-dropdown.is-open .sj-dropdown-arrow {
  transform: rotate(180deg);
}

.sj-dropdown-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
}

.sj-dropdown-menu[hidden] {
  display: none;
}

.sj-dropdown-menu li {
  padding: 9px 16px;
  border-radius: 10px;
  color: #475467;
  font-size: 14px;
  font-weight: var(--fw-bold);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.sj-dropdown-menu li:hover {
  background: #f2f4f7;
  color: #344054;
}

.sj-dropdown-menu li.is-active {
  background: rgba(22, 140, 164, 0.1);
  color: var(--brand-600, #0F7F97);
  font-weight: var(--fw-heavy);
}

.sj-dropdown-menu li.is-active:hover {
  background: rgba(22, 140, 164, 0.16);
  color: var(--brand-600, #0F7F97);
}

/* Status dropdown positioning in drawer */
.sj-dropdown--status {
  width: 100%;
  margin: 0;
}

.sj-dropdown--status .sj-dropdown-trigger {
  width: 100%;
  min-height: 32px;
  justify-content: space-between;
  padding: 0 10px 0 12px;
  border-radius: 10px;
  box-shadow: none;
  font-size: 14px;
}

.sj-dropdown--status .sj-dropdown-menu {
  right: 0;
  left: auto;
  min-width: 156px;
}

.sj-table-card {
  margin-top: 28px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.sj-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.sj-jobs-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  color: var(--text-main, #111827);
}

.sj-jobs-table th,
.sj-jobs-table td {
  padding: 23px 28px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.07);
  vertical-align: middle;
}

.sj-jobs-table th {
  color: var(--text-muted, #6b7280);
  background: rgba(248, 250, 252, 0.76);
  font-size: 14px;
  font-weight: var(--fw-heavy);
  letter-spacing: 0.02em;
}

.sj-jobs-table td {
  color: #243044;
  font-size: 14px;
}

.sj-jobs-table tbody tr {
  cursor: pointer;
  text-align: center;
}

.sj-jobs-table tbody tr:hover {
  background: rgba(232, 247, 251, 0.42);
}

.sj-job-cell {
  display: grid;
  gap: 4px;
}

.sj-job-cell strong {
  color: var(--text-heading, #14213d);
  font-size: 14px;
  font-weight: var(--fw-heavy);
}

.sj-job-cell span {
  color: var(--text-muted, #6b7280);
  font-size: 13px;
}

.sj-document-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.sj-job-cell .sj-document-status-line span {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  color: #2f5549;
  background: rgba(22, 140, 164, 0.09);
  border: 1px solid rgba(22, 140, 164, 0.14);
  font-size: 12px;
  font-weight: var(--fw-heavy);
  line-height: 1;
}

.sj-status-pill,
.sj-deadline,
.sj-match {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: var(--fw-heavy);
  line-height: 1;
  white-space: nowrap;
}

.sj-status-pill {
  padding: 0 11px;
}

.sj-status--saved {
  color: var(--brand-600, #0F7F97);
  background: var(--brand-50, #e8f7fb);
}

.sj-status--preparing {
  color: #7c2d12;
  background: #ffedd5;
}

.sj-status--applied {
  color: #5b45b8;
  background: #f1ebff;
}

.sj-status--interview {
  color: #075985;
  background: #e0f2fe;
}

.sj-status--rejected {
  color: #9f1239;
  background: #ffe4e6;
}

.sj-status--offer {
  color: #047857;
  background: #d1fae5;
}

.sj-status--expired {
  color: #9f2c2c;
  background: #fee2e2;
}

.sj-status--archived,
.sj-status--trash {
  color: #475569;
  background: #f1f5f9;
}

.sj-deadline {
  padding: 0 9px;
}

.sj-deadline--none {
  color: var(--text-muted, #6b7280);
  background: transparent;
}

.sj-deadline--neutral {
  color: #475569;
  background: #f3f4f6;
}

.sj-deadline--soon {
  color: #b45309;
  background: #fff7ed;
}

.sj-deadline--urgent {
  color: #c2410c;
  background: #ffedd5;
}

.sj-deadline--expired {
  color: #9f2c2c;
  background: #fee2e2;
}

/* ---- Follow-up cell ----
   Inline pill in the saved jobs table. Default state shows date + time
   greyed; tones (overdue/soon) drive a coloured pill matching the
   .sj-deadline scale. The pencil icon is hidden until row hover (or cell
   focus) to keep the table calm but discoverable. */
.sj-followup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #475569;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: var(--fw-heavy);
  white-space: nowrap;
}

.sj-followup--soon {
  color: #b45309;
  background: #fff7ed;
}

.sj-followup--overdue {
  color: #9f2c2c;
  background: #fee2e2;
}

/* When the value is a freshly-computed default (no user-set follow_up_date
   yet), de-emphasise so the user can still tell the difference between a
   suggested and a committed date. */
.sj-followup.is-default {
  color: #6b7280;
  background: rgba(243, 244, 246, 0.7);
  font-weight: var(--fw-bold);
}

.sj-followup-date {
  display: inline-block;
}

.sj-followup-time {
  margin-left: 2px;
  opacity: 0.75;
  font-size: 12px;
  font-weight: var(--fw-bold);
}

.sj-followup-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: currentColor;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.12s ease, background 0.12s ease;
}

.sj-followup-edit svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Reveal the pencil on hover of the cell or anywhere on the row, and on
   keyboard focus for accessibility. */
.sj-jobs-table tr:hover .sj-followup-edit,
.sj-followup:hover .sj-followup-edit,
.sj-followup-edit:focus-visible {
  opacity: 1;
}

.sj-followup-edit:hover,
.sj-followup-edit:focus-visible {
  background: rgba(17, 24, 39, 0.08);
  outline: 0;
}

/* ---- Follow-up edit modal ---- */

/* Sits above .sj-modal (z-index 1001) and its backdrop (z-index 1000) so
   the follow-up modal can be opened from anywhere — including over the
   add-job modal if that flow ever overlaps. Avoid reusing the shared
   .sj-modal-backdrop class on the inner backdrop: that class is already
   styled as a full-viewport position:fixed overlay at z-index 1000, which
   would cover the panel and produce the "blurred screen, no modal" symptom. */
.sj-followup-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sj-followup-modal[hidden] {
  display: none;
}

.sj-followup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 39, 64, 0.42);
  backdrop-filter: blur(2px);
}

.sj-followup-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 56px rgba(15, 39, 64, 0.22);
  animation: sj-followup-pop 0.16s ease-out;
}

@keyframes sj-followup-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sj-followup-panel h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: var(--fw-heavy);
  color: var(--text-heading, #14213d);
}

.sj-followup-panel > p {
  margin: 0 0 18px;
  color: var(--text-muted, #6b7280);
  font-size: 14px;
  line-height: 1.45;
}

.sj-followup-panel form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sj-followup-panel label {
  font-size: 13px;
  font-weight: var(--fw-heavy);
  color: #344054;
}

.sj-followup-panel input[type="date"],
.sj-followup-panel input[type="time"],
.sj-followup-panel textarea {
  width: 100%;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 14px;
  outline: 0;
  background: rgba(255, 255, 255, 0.95);
  font: inherit;
  font-size: 14px;
  color: var(--text-main, #111827);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sj-followup-panel input[type="date"],
.sj-followup-panel input[type="time"] {
  min-height: 44px;
  padding: 0 12px;
}

/* Two-column grid for the interview modal's date + time row. Drops to a
   single column on narrow viewports so the time picker doesn't crush. */
.sj-followup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

@media (max-width: 520px) {
  .sj-followup-grid {
    grid-template-columns: 1fr;
  }
}

.sj-followup-panel textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
  line-height: 1.45;
}

.sj-followup-panel input[type="date"]:focus,
.sj-followup-panel input[type="time"]:focus,
.sj-followup-panel textarea:focus {
  border-color: var(--brand-400, #1C9AB0);
  box-shadow: 0 0 0 4px rgba(22, 140, 164, 0.12);
}

.sj-followup-hint {
  margin: -4px 0 0;
  color: var(--text-muted, #6b7280);
  font-size: 12px;
  font-weight: var(--fw-medium);
}

.sj-followup-panel .sj-form-error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.sj-followup-panel .sj-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.sj-match {
  color: var(--text-heading, #14213d);
  background: transparent;
}

.sj-match--strong {
  color: #047857;
}

.sj-match--possible {
  color: var(--brand-600, #0F7F97);
}

.sj-match--stretch {
  color: #b45309;
}

.sj-match--not {
  color: #9f2c2c;
}

.sj-match--pending {
  color: var(--brand-600, #0F7F97);
  gap: 10px;
  padding: 0;
  background: transparent;
}

.sj-match--pending::before {
  width: 18px;
  height: 18px;
  border: 2px dotted var(--brand-400, #1C9AB0);
  border-radius: 999px;
  content: "";
}

.sj-row-link,
.sj-row-open {
  border: 0;
  background: transparent;
  color: var(--brand-600, #0F7F97);
  font-size: 14px;
  font-weight: var(--fw-heavy);
  cursor: pointer;
  white-space: nowrap;
}

.sj-row-open {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--border-brand, rgba(22, 140, 164, 0.28));
  border-radius: 8px;
  background: #fff;
}

.sj-table-footer {
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  color: var(--text-muted, #6b7280);
  font-size: 13px;
}

.sj-opportunity-list {
  display: grid;
  gap: 14px;
}

.sj-opportunity-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.82fr) auto;
  align-items: center;
  gap: 26px;
  padding: 24px 26px;
  border: 1px solid rgba(92, 77, 67, 0.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 32, 45, 0.055);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.sj-opportunity-card:hover {
  border-color: rgba(22, 140, 164, 0.18);
  box-shadow: 0 18px 38px rgba(20, 32, 45, 0.075);
  transform: translateY(-1px);
}

.sj-opportunity-card__left,
.sj-opportunity-card__middle {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.sj-opportunity-card__right {
  display: flex;
  justify-content: flex-end;
}

.sj-stage-chip {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: #2f5549;
  background: rgba(22, 140, 164, 0.09);
  border: 1px solid rgba(22, 140, 164, 0.12);
  font-size: 12px;
  font-weight: var(--fw-heavy);
  line-height: 1;
}

.sj-stage-chip--preparation {
  color: #5f4b1b;
  background: rgba(245, 185, 66, 0.13);
  border-color: rgba(245, 185, 66, 0.18);
}

.sj-stage-chip--interview {
  color: #27506a;
  background: rgba(22, 140, 164, 0.1);
  border-color: rgba(22, 140, 164, 0.16);
}

.sj-stage-chip--decision {
  color: #475569;
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.14);
}

.sj-stage-chip--archived {
  color: #667085;
  background: rgba(102, 112, 133, 0.08);
  border-color: rgba(102, 112, 133, 0.12);
}

.sj-opportunity-card__identity {
  display: grid;
  gap: 4px;
}

.sj-opportunity-card__identity h3 {
  min-width: 0;
  margin: 0;
  color: var(--text-heading, #14213d);
  font-size: 22px;
  font-weight: var(--fw-heavy);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sj-opportunity-card__identity p,
.sj-opportunity-card__next,
.sj-opportunity-card__meta,
.sj-opportunity-card__progress {
  margin: 0;
  color: rgba(20, 32, 45, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.sj-opportunity-card__progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.sj-opportunity-card__progress span {
  min-width: max-content;
}

.sj-opportunity-card__progress strong,
.sj-opportunity-card__next strong {
  color: rgba(20, 33, 61, 0.86);
  font-weight: var(--fw-heavy);
}

.sj-opportunity-card__next {
  color: #2f5549;
}

.sj-opportunity-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: rgba(20, 32, 45, 0.58);
  font-size: 13px;
}

.sj-opportunity-card__meta span + span::before {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 10px 2px 0;
  border-radius: 999px;
  background: rgba(20, 32, 45, 0.28);
  content: "";
}

.sj-opportunity-card__continue {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #168CA4;
  box-shadow: none;
  font-size: 14px;
  font-weight: var(--fw-heavy);
}

.sj-opportunity-card__continue:hover,
.sj-opportunity-card__continue:focus-visible {
  background: #0F7F97;
}

.sj-opportunity-card__continue:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(22, 140, 164, 0.16);
}

@media (max-width: 980px) {
  .sj-opportunity-card {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .sj-opportunity-card__right {
    justify-content: flex-start;
  }

  .sj-opportunity-card__continue {
    min-width: 144px;
  }
}

@media (max-width: 640px) {
  .sj-opportunity-card {
    padding: 22px;
  }

  .sj-opportunity-card__identity h3 {
    font-size: 20px;
  }

  .sj-opportunity-card__progress {
    display: grid;
    gap: 5px;
  }

  .sj-opportunity-card__right {
    justify-content: stretch;
  }

  .sj-opportunity-card__continue {
    width: 100%;
  }
}

.sj-no-results {
  padding: 34px;
  color: var(--text-muted, #6b7280);
  text-align: center;
}

.sj-empty-board {
  max-width: 620px;
  margin: 28px auto 0;
  padding: 42px 28px;
  border-radius: 28px;
  text-align: center;
}

.sj-empty-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 22px;
  color: var(--brand-500, #168CA4);
  background: var(--brand-50, #e8f7fb);
}

.sj-empty-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sj-empty-board h2 {
  font-size: 24px;
}

.sj-empty-board p {
  max-width: 440px;
  margin: 12px auto 22px;
  color: var(--text-muted, #6b7280);
  font-size: 15px;
  line-height: 1.55;
}

.sj-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.sj-modal-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(17, 24, 39, 0.32);
  backdrop-filter: blur(8px);
}

.sj-modal {
  position: fixed;
  z-index: 1001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}

.sj-modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  border-radius: 28px;
  pointer-events: auto;
}

.sj-preview-panel {
  width: min(780px, 100%);
}

.sj-package-modal {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
}

.sj-package-panel {
  position: relative;
  z-index: 1101;
  width: min(1180px, calc(100vw - 56px));
  max-height: min(880px, calc(100vh - 56px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(92, 77, 67, 0.12);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(20, 32, 45, 0.18);
  pointer-events: auto;
}

.sj-package-header,
.sj-package-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 28px;
  background: #fff;
}

.sj-package-header {
  border-bottom: 1px solid rgba(92, 77, 67, 0.10);
}

.sj-package-header span {
  color: #168CA4;
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-package-header h2 {
  margin: 4px 0;
  font-size: 26px;
  line-height: 1.2;
}

.sj-package-header p {
  margin: 0;
  color: rgba(20, 32, 45, 0.74);
  font-size: 15px;
}

.sj-package-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  overflow: hidden;
}

.sj-package-settings,
.sj-package-review {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 28px;
  overflow: auto;
}

.sj-package-preview {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
  border-left: 1px solid rgba(92, 77, 67, 0.10);
  background: rgba(247, 250, 247, 0.72);
  overflow: hidden;
}

.sj-package-section {
  display: grid;
  gap: 13px;
}

.sj-package-section h3 {
  margin: 0;
  color: #14213d;
  font-size: 16px;
  font-weight: var(--fw-heavy);
}

.sj-package-section p {
  margin: 0;
  color: rgba(20, 32, 45, 0.74);
  font-size: 15px;
  line-height: 1.55;
}

.sj-package-document,
.sj-package-method,
.sj-package-preview-card,
.sj-package-section--review {
  border: 1px solid rgba(92, 77, 67, 0.12);
  border-radius: 18px;
  background: #fff;
}

.sj-package-document {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.sj-package-document.is-missing {
  background: rgba(255, 248, 236, 0.72);
}

.sj-package-document span,
.sj-package-preview-card span {
  color: rgba(20, 32, 45, 0.72);
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-package-document strong,
.sj-package-preview-card strong {
  display: block;
  margin-top: 3px;
  color: #14213d;
  font-size: 16px;
  line-height: 1.3;
}

.sj-package-document p {
  margin: 4px 0 0;
  color: rgba(20, 32, 45, 0.74);
  font-size: 14px;
}

.sj-package-document__actions,
.sj-package-inline-actions,
.sj-package-email-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sj-package-methods {
  display: grid;
  gap: 10px;
}

.sj-package-method {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 15px 16px;
  text-align: left;
  cursor: pointer;
}

.sj-package-method span {
  color: #14213d;
  font-size: 15px;
  font-weight: var(--fw-heavy);
}

.sj-package-method small {
  color: rgba(20, 32, 45, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.sj-package-method:hover,
.sj-package-method.is-selected {
  border-color: rgba(22, 140, 164, 0.38);
  background: rgba(22, 140, 164, 0.06);
}

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

.sj-package-section label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: var(--fw-heavy);
}

.sj-package-section input,
.sj-package-section textarea,
.sj-package-section select {
  width: 100%;
  border: 1px solid rgba(92, 77, 67, 0.16);
  border-radius: 14px;
  background: #fff;
  color: #14213d;
  font-size: 14px;
}

.sj-package-section input,
.sj-package-section select {
  min-height: 44px;
  padding: 0 12px;
}

.sj-package-section textarea {
  min-height: 118px;
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}

.sj-package-email-tools button {
  border: 0;
  background: transparent;
  color: #168CA4;
  font-size: 13px;
  font-weight: var(--fw-heavy);
  cursor: pointer;
}

.sj-package-attachments {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(22, 140, 164, 0.14);
  border-radius: 14px;
  background: rgba(22, 140, 164, 0.045);
}

.sj-package-attachments span {
  color: rgba(20, 32, 45, 0.76);
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-package-attachments p {
  color: rgba(20, 32, 45, 0.78);
  font-size: 13px;
  font-weight: var(--fw-bold);
  line-height: 1.35;
}

.sj-package-attachments small {
  color: rgba(20, 32, 45, 0.66);
  font-size: 12px;
  line-height: 1.45;
}

.sj-package-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: package-step;
}

.sj-package-checklist li {
  counter-increment: package-step;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: rgba(20, 32, 45, 0.78);
  font-size: 14px;
  font-weight: var(--fw-bold);
  line-height: 1.45;
}

.sj-package-checklist li::before {
  content: counter(package-step);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(22, 140, 164, 0.11);
  color: #168CA4;
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-package-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sj-package-apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.sj-package-action-grid .sj-button {
  min-height: 40px;
  border-radius: 999px;
}

.sj-package-apply-actions .sj-button {
  min-height: 40px;
  border-radius: 999px;
}

.sj-package-applied {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(92, 77, 67, 0.10);
}

.sj-package-applied strong {
  color: #14213d;
  font-size: 15px;
  font-weight: var(--fw-heavy);
}

.sj-package-warning {
  color: #7a5a16 !important;
  font-weight: var(--fw-bold);
}

.sj-package-preview-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 5px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(20, 32, 45, 0.08);
}

.sj-package-preview-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(20, 32, 45, 0.70);
  font-size: 13px;
  font-weight: var(--fw-heavy);
  cursor: pointer;
}

.sj-package-preview-tabs button.is-active {
  background: #fff;
  color: #168CA4;
  box-shadow: 0 8px 18px rgba(20, 32, 45, 0.08);
}

.sj-package-preview-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 34px;
  text-align: center;
}

.sj-package-preview-card p {
  margin: 0;
  color: rgba(20, 32, 45, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.sj-package-preview-card .sj-button {
  align-self: center;
  margin-top: 10px;
}

.sj-package-review-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.sj-package-review-list div {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(92, 77, 67, 0.10);
}

.sj-package-review-list dt {
  color: rgba(20, 32, 45, 0.62);
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-package-review-list dd {
  margin: 0;
  color: #14213d;
  font-size: 15px;
  font-weight: var(--fw-bold);
}

.sj-package-footer {
  border-top: 1px solid rgba(92, 77, 67, 0.10);
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .sj-package-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .sj-package-preview {
    min-height: 420px;
    border-left: 0;
    border-top: 1px solid rgba(92, 77, 67, 0.10);
  }
}

/* Redesigned application package modal */
.sj-package-modal {
  padding: 16px 32px;
}

.sj-modal-backdrop--package {
  background: rgba(31, 39, 49, 0.58);
  backdrop-filter: blur(10px);
}

.sj-package-panel {
  width: min(1240px, calc(100vw - 64px));
  height: min(92vh, 900px);
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(92, 77, 67, 0.10);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(20, 32, 45, 0.22);
}

.sj-package-panel [hidden] {
  display: none !important;
}

.sj-package-header {
  grid-row: 1;
  min-height: auto;
  align-items: flex-start;
  padding: 24px 82px 18px 36px;
  border-bottom-color: rgba(30, 41, 59, 0.08);
}

.sj-package-header > div {
  min-width: 0;
}

.sj-package-header span {
  color: #126f5f;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.sj-package-header h2 {
  margin: 5px 0 7px;
  color: #14213d;
  font-size: 28px;
  font-weight: var(--fw-heavy);
  line-height: 1.05;
  letter-spacing: 0;
}

.sj-package-header p {
  color: rgba(20, 32, 45, 0.70);
  font-size: 15px;
}

.sj-package-header .sj-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(92, 77, 67, 0.12);
  color: rgba(20, 33, 61, 0.62);
  background: #fff;
  box-shadow: none;
}

.sj-package-steps {
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 36px;
  border-bottom: 1px solid rgba(92, 77, 67, 0.10);
  background: rgba(248, 251, 253, 0.82);
}

.sj-package-steps button {
  min-width: 0;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(20, 32, 45, 0.62);
  font-size: 12px;
  font-weight: var(--fw-heavy);
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.sj-package-steps button.is-active {
  background: rgba(22, 140, 164, 0.12);
  color: #173b34;
}

.sj-package-steps button.is-complete {
  color: #168CA4;
}

.sj-package-steps button.is-complete::before {
  content: "✓";
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(22, 140, 164, 0.14);
  color: #168CA4;
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-package-steps button.is-disabled {
  color: rgba(20, 32, 45, 0.38);
  cursor: not-allowed;
}

.sj-package-steps button:focus-visible {
  box-shadow: 0 0 0 4px rgba(22, 140, 164, 0.13);
  outline: none;
}

.sj-package-body {
  grid-row: 3;
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.sj-package-settings,
.sj-package-review {
  min-height: 0;
  height: 100%;
  padding: 22px 28px 28px;
  gap: 14px;
  border-right: 1px solid rgba(92, 77, 67, 0.12);
}

.sj-package-settings {
  overflow-y: auto;
  scrollbar-color: rgba(30, 41, 59, 0.16) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.sj-package-settings::-webkit-scrollbar {
  width: 6px;
}

.sj-package-settings::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.16);
}

.sj-package-settings::-webkit-scrollbar-track {
  background: transparent;
}

.sj-package-review {
  overflow-y: auto;
}

.sj-package-settings > .sj-package-section:first-child {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(92, 77, 67, 0.12);
}

.sj-package-section {
  gap: 8px;
}

.sj-package-section h3 {
  color: #14213d;
  font-size: 16px;
  font-weight: var(--fw-heavy);
  line-height: 1.25;
  margin-bottom: 2px;
}

.sj-package-section p {
  color: rgba(20, 32, 45, 0.58);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.sj-package-preview {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 24px 32px;
  gap: 12px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-left: 0;
  background: #fff;
  overflow: hidden;
}

.sj-package-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sj-package-preview-header h3 {
  margin: 0;
  color: #14213d;
  font-size: 16px;
  font-weight: var(--fw-heavy);
  line-height: 1.25;
}

.sj-package-preview-header button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #168CA4;
  font-size: 13px;
  font-weight: var(--fw-heavy);
  cursor: pointer;
}

.sj-package-preview-header button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sj-package-document {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 76px;
  min-height: 82px;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.sj-package-document[data-package-document-card] {
  cursor: pointer;
}

.sj-package-document[data-package-document-card]:hover {
  border-color: rgba(22, 140, 164, 0.24);
  background: rgba(22, 140, 164, 0.035);
}

.sj-package-document[data-package-document-card]:focus-visible {
  border-color: rgba(22, 140, 164, 0.42);
  box-shadow: 0 0 0 4px rgba(22, 140, 164, 0.12);
  outline: none;
}

.sj-package-document.is-selected {
  border-color: rgba(22, 140, 164, 0.34);
  background: rgba(22, 140, 164, 0.075);
  box-shadow: inset 0 0 0 1px rgba(22, 140, 164, 0.08);
}

.sj-package-document.is-selected .sj-package-document__icon {
  background: rgba(22, 140, 164, 0.12);
  color: #168CA4;
}

.sj-package-document.is-missing {
  cursor: default;
}

.sj-package-document__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border-radius: 10px;
  background: rgba(20, 33, 61, 0.055);
  color: rgba(20, 33, 61, 0.68);
}

.sj-package-document__icon svg,
.sj-package-footer-summary svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sj-package-document__chip {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  background: rgba(22, 140, 164, 0.13);
  color: #168CA4 !important;
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-package-document strong {
  font-size: 15px;
  line-height: 1.2;
}

.sj-package-document p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
}

.sj-package-document.is-missing .sj-package-document__chip {
  background: rgba(122, 90, 22, 0.12);
  color: #7a5a16 !important;
}

.sj-package-document__actions {
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.sj-package-document__actions .sj-document-link {
  min-width: 66px;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(92, 77, 67, 0.14);
  border-radius: 10px;
  background: #fff;
  color: #168CA4;
  font-size: 13px;
  font-weight: var(--fw-heavy);
  text-align: center;
  cursor: pointer;
}

.sj-package-methods--segmented {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border: 1px solid rgba(92, 77, 67, 0.14);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.sj-package-methods--segmented .sj-package-method {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid rgba(92, 77, 67, 0.12);
  border-radius: 0;
  background: transparent;
  color: rgba(20, 33, 61, 0.72);
  text-align: center;
}

.sj-package-methods--segmented .sj-package-method:last-child {
  border-right: 0;
}

.sj-package-methods--segmented .sj-package-method svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sj-package-methods--segmented .sj-package-method span {
  color: inherit;
  font-size: 13px;
  font-weight: var(--fw-heavy);
  line-height: 1.18;
}

.sj-package-methods--segmented .sj-package-method small {
  display: none;
}

.sj-package-methods--segmented .sj-package-method.is-selected {
  background: rgba(22, 140, 164, 0.10);
  color: #173b34;
  box-shadow: inset 0 0 0 1px rgba(22, 140, 164, 0.38);
}

.sj-package-methods--segmented .sj-package-method.is-selected span {
  color: inherit;
}

.sj-package-methods--cards {
  display: grid;
  gap: 10px;
}

.sj-package-methods--cards .sj-package-method {
  min-height: 92px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px 12px;
  padding: 15px 16px;
  border: 1px solid rgba(92, 77, 67, 0.12);
  border-radius: 16px;
  background: #fff;
  color: rgba(20, 33, 61, 0.78);
  text-align: left;
  cursor: pointer;
}

.sj-package-methods--cards .sj-package-method svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sj-package-methods--cards .sj-package-method span {
  color: #14213d;
  font-size: 15px;
  font-weight: var(--fw-heavy);
  line-height: 1.2;
}

.sj-package-methods--cards .sj-package-method small {
  grid-column: 2;
  color: rgba(20, 32, 45, 0.66);
  font-size: 13px;
  line-height: 1.45;
}

.sj-package-methods--cards .sj-package-method.is-selected {
  border-color: rgba(22, 140, 164, 0.34);
  background: rgba(22, 140, 164, 0.065);
  box-shadow: inset 0 0 0 1px rgba(22, 140, 164, 0.08);
}

.sj-package-section input,
.sj-package-section textarea,
.sj-package-section select {
  border: 1px solid rgba(30, 41, 59, 0.14);
  border-radius: 12px;
  background: #fff;
  color: rgba(20, 32, 45, 0.86);
  font-size: 14px;
  font-weight: 400;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.025);
}

.sj-package-section input,
.sj-package-section select {
  min-height: 42px;
  padding: 0 14px;
}

.sj-package-section textarea,
.sj-package-email-textarea {
  width: 100%;
  height: 88px;
  min-height: 88px;
  max-height: 140px;
  padding: 12px 14px;
  border-radius: 12px;
  overflow-y: auto;
  color: rgba(20, 32, 45, 0.86);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  resize: vertical;
}

.sj-package-section input:focus,
.sj-package-section textarea:focus,
.sj-package-section select:focus {
  border-color: #168CA4;
  box-shadow: 0 0 0 4px rgba(22, 140, 164, 0.12);
  outline: none;
}

.sj-package-section input::placeholder,
.sj-package-section textarea::placeholder {
  color: rgba(20, 32, 45, 0.45);
  font-weight: 400;
}

.sj-package-section label {
  gap: 4px;
  color: rgba(20, 32, 45, 0.78);
  font-size: 13px;
  font-weight: var(--fw-bold);
}

.sj-package-section label span em {
  color: rgba(20, 32, 45, 0.54);
  font-style: normal;
  font-weight: var(--fw-bold);
}

.sj-package-wide {
  grid-column: 1 / -1;
}

.sj-package-preview-tabs {
  width: 260px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  gap: 0;
  border: 1px solid rgba(92, 77, 67, 0.14);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.sj-package-preview-tabs button {
  min-height: 42px;
  border-radius: 0;
  font-size: 13px;
}

.sj-package-preview-tabs button.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

[data-package-preview-stage] {
  min-height: 0;
  height: 100%;
}

.sj-package-preview-canvas {
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding: 34px 46px;
  border: 1px solid rgba(92, 77, 67, 0.14);
  border-radius: 7px;
  background: #fff;
}

.sj-package-preview-page {
  width: 100%;
  min-height: 650px;
  margin: 0 auto;
  padding: 18px 28px 44px;
  background: #fff;
  color: #1f2937;
  box-shadow: none;
  font-family: Inter, system-ui, sans-serif;
}

.sj-package-preview-page header {
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(20, 33, 61, 0.16);
}

.sj-package-preview-page header span {
  color: rgba(20, 32, 45, 0.62);
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-package-preview-page h4 {
  margin: 8px 0 4px;
  color: #14213d;
  font-size: 28px;
  line-height: 1.15;
}

.sj-package-preview-page h5 {
  margin: 28px 0 10px;
  color: #14213d;
  font-size: 13px;
  font-weight: var(--fw-heavy);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sj-package-preview-page p,
.sj-package-preview-page li {
  color: rgba(31, 41, 55, 0.86);
  font-size: 15px;
  line-height: 1.65;
}

.sj-package-preview-page ul {
  margin: 0;
  padding-left: 18px;
}

.sj-package-preview-empty {
  min-height: 440px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
}

.sj-package-preview-helper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(20, 32, 45, 0.68);
  font-size: 13px;
}

.sj-package-preview-helper::before {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(20, 33, 61, 0.32);
  border-radius: 999px;
  color: rgba(20, 33, 61, 0.66);
  font-size: 12px;
  font-weight: var(--fw-heavy);
  content: "i";
}

.sj-package-footer {
  grid-row: 4;
  min-height: 72px;
  padding: 16px 32px;
  border-top-color: rgba(30, 41, 59, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.sj-package-footer-summary,
.sj-package-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.sj-package-footer-summary {
  margin-right: auto;
  color: rgba(20, 32, 45, 0.76);
  font-size: 14px;
  font-weight: var(--fw-heavy);
}

.sj-package-footer-actions .sj-button {
  min-height: 42px;
  padding: 0 24px;
  border-radius: 999px;
}

.sj-package-footer-actions .sj-button--ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #168CA4;
}

.sj-package-footer-actions .sj-button--secondary {
  min-width: 92px;
  border-color: rgba(47, 112, 95, 0.38);
  color: #168CA4;
  background: #fff;
  box-shadow: none;
}

.sj-package-footer-actions .sj-button--primary {
  min-width: 146px;
  border-color: transparent;
  background: linear-gradient(180deg, #19869a, #0f6d7e);
  box-shadow: 0 12px 24px rgba(15, 109, 126, 0.20);
}

.sj-package-full-preview {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 36px;
}

.sj-package-full-preview__panel {
  position: relative;
  z-index: 1201;
  width: min(1040px, calc(100vw - 72px));
  height: min(88vh, 900px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.24);
}

.sj-package-full-preview__panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(92, 77, 67, 0.10);
}

.sj-package-full-preview__panel > header span {
  color: #168CA4;
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-package-full-preview__panel > header h2 {
  margin: 4px 0;
  font-size: 25px;
}

.sj-package-full-preview__panel > header p {
  margin: 0;
  color: rgba(20, 32, 45, 0.72);
}

.sj-package-full-preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 14px 0 0;
}

.sj-package-full-preview__meta div {
  display: grid;
  gap: 2px;
}

.sj-package-full-preview__meta dt {
  color: rgba(20, 32, 45, 0.54);
  font-size: 12px;
  font-weight: var(--fw-heavy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sj-package-full-preview__meta dd {
  margin: 0;
  max-width: 250px;
  overflow: hidden;
  color: #14213d;
  font-size: 13px;
  font-weight: var(--fw-bold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sj-package-full-preview__tabs {
  display: flex;
  gap: 8px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(92, 77, 67, 0.10);
}

.sj-package-full-preview__tabs button {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(92, 77, 67, 0.14);
  border-radius: 999px;
  background: #fff;
  color: rgba(20, 32, 45, 0.72);
  font-weight: var(--fw-heavy);
  cursor: pointer;
}

.sj-package-full-preview__tabs button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.sj-package-full-preview__stage {
  min-height: 0;
  overflow: auto;
  padding: 28px;
  background: rgba(247, 250, 247, 0.72);
}

.sj-package-full-preview__stage .sj-package-preview-canvas {
  height: auto;
  min-height: 100%;
  border: 0;
  background: transparent;
}

@media (max-width: 980px) {
  .sj-package-modal {
    padding: 18px;
  }

  .sj-package-panel {
    width: min(100%, calc(100vw - 24px));
    height: min(92vh, 900px);
  }

  .sj-package-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .sj-package-settings,
  .sj-package-review {
    border-right: 0;
    border-bottom: 1px solid rgba(92, 77, 67, 0.12);
    overflow: visible;
  }

  .sj-package-preview {
    min-height: 520px;
  }
}

@media (min-width: 981px) and (max-height: 820px) {
  .sj-package-settings {
    overflow-y: auto;
  }
}

.sj-modal-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  pointer-events: auto;
}

.sj-modal h2,
.sj-fit-modal h2 {
  font-size: 28px;
}

.sj-modal p,
.sj-fit-modal p {
  color: var(--text-muted, #6b7280);
  font-size: 15px;
  line-height: 1.5;
}

.sj-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 18px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.05);
}

.sj-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  color: var(--text-muted, #6b7280);
  background: transparent;
  font-size: 14px;
  font-weight: var(--fw-heavy);
  cursor: pointer;
}

.sj-tabs button.is-active {
  color: var(--brand-600, #0F7F97);
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.sj-add-form,
.sj-preview-panel form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sj-preview-panel label,
.sj-add-form label {
  display: block;
  margin-bottom: 6px;
}

.sj-tab-panel {
  display: none;
}

.sj-tab-panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sj-add-form label,
.sj-preview-panel label,
.sj-drawer-section h3,
.sj-stage-select span {
  color: #344054;
  font-size: 13px;
  font-weight: var(--fw-heavy);
  line-height: 1.2;
}

.sj-add-form label span {
  color: var(--text-soft, #9ca3af);
  font-weight: var(--fw-heavy);
}

.sj-add-form input,
.sj-add-form textarea,
.sj-add-form select,
.sj-preview-panel input,
.sj-preview-panel textarea,
.sj-preview-panel select,
.sj-drawer-section textarea,
.sj-stage-select select {
  width: 100%;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 16px;
  outline: 0;
  color: var(--text-main, #111827);
  background: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.sj-add-form input,
.sj-add-form select,
.sj-preview-panel input,
.sj-preview-panel select,
.sj-stage-select select {
  min-height: 44px;
  padding: 0 12px;
}

.sj-add-form textarea,
.sj-preview-panel textarea,
.sj-drawer-section textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

/* Custom dropdown chevron — paints a unified caret across the manual,
   preview, drawer, and stage selectors. appearance:none kills the OS
   default so the SVG (data-URI) is the only indicator. padding-right
   reserves room for the 12px arrow + 12px gutter. */
.sj-add-form select,
.sj-preview-panel select,
.sj-stage-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 12px;
  cursor: pointer;
}

.sj-add-form input:focus,
.sj-add-form textarea:focus,
.sj-add-form select:focus,
.sj-preview-panel input:focus,
.sj-preview-panel textarea:focus,
.sj-preview-panel select:focus,
.sj-drawer-section textarea:focus,
.sj-stage-select select:focus {
  border-color: var(--brand-400, #1C9AB0);
  box-shadow: 0 0 0 4px rgba(22, 140, 164, 0.12);
}

/* ---- Custom select widget (jobboard-custom-select.js) ----
   Wraps each <select data-csel> in a .sj-csel host. The native select is
   visually hidden but still form-submittable (display:none breaks form data
   in some browsers); the button + menu render on top. */

.sj-csel {
  position: relative;
  width: 100%;
}

/* sr-only-ish: keep the select form-submittable but visually invisible and
   excluded from layout-affecting calculations. We can't use display:none
   because Firefox skips display:none selects when building FormData. */
.sj-csel-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
  opacity: 0;
}

.sj-csel-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main, #111827);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sj-csel-trigger:hover {
  border-color: rgba(22, 140, 164, 0.4);
}

.sj-csel-trigger:focus-visible,
.sj-csel.is-open .sj-csel-trigger {
  outline: 0;
  border-color: var(--brand-400, #1C9AB0);
  box-shadow: 0 0 0 4px rgba(22, 140, 164, 0.12);
}

/* Empty (no value) state — label is the placeholder option text; muted
   colour signals "nothing chosen yet" the same way a native <select> greys
   its placeholder option. */
.sj-csel.is-empty .sj-csel-label {
  color: #98a2b3;
  font-weight: var(--fw-medium);
}

.sj-csel-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font-weight: var(--fw-bold);
}

.sj-csel-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  transition: transform 0.18s ease, color 0.15s ease;
}

.sj-csel-chevron svg {
  width: 12px;
  height: 12px;
  display: block;
}

.sj-csel.is-open .sj-csel-chevron {
  color: var(--brand-500, #168CA4);
  transform: rotate(180deg);
}

.sj-csel.is-disabled .sj-csel-trigger {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(245, 247, 250, 0.6);
}

.sj-csel-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 120;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 39, 64, 0.18), 0 2px 8px rgba(15, 39, 64, 0.06);
  animation: sj-csel-pop 0.12s ease-out;
}

@keyframes sj-csel-pop {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sj-csel-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-size: 14px;
  font-weight: var(--fw-bold);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.sj-csel-option:hover,
.sj-csel-option.is-highlighted {
  background: rgba(22, 140, 164, 0.1);
  color: #0f4f63;
}

.sj-csel-option.is-active {
  background: rgba(22, 140, 164, 0.16);
  color: #0f4f63;
  font-weight: var(--fw-heavy);
}

/* Checkmark on the right of the active option — matches the "chosen"
   affordance the native select gets on re-open. */
.sj-csel-option.is-active::after {
  content: '';
  width: 14px;
  height: 14px;
  margin-left: auto;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7f9b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.sj-csel-option.is-disabled,
.sj-csel-option:disabled {
  color: #98a2b3;
  cursor: not-allowed;
}

.sj-csel-option.is-disabled:hover,
.sj-csel-option:disabled:hover {
  background: transparent;
}

.sj-csel-menu::-webkit-scrollbar {
  width: 8px;
}

.sj-csel-menu::-webkit-scrollbar-thumb {
  background: rgba(17, 24, 39, 0.12);
  border-radius: 4px;
}

.sj-csel-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(17, 24, 39, 0.22);
}

.sj-form-grid,
.sj-preview-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sj-preview-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 20px;
  column-gap: 16px;
}

.sj-checkbox {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.sj-checkbox input {
  width: 17px;
  height: 17px;
}

.sj-helper {
  margin: 0;
  color: var(--text-muted, #6b7280) !important;
  font-size: 13px !important;
}

.sj-helper[hidden] {
  display: none;
}

/* Free-tier quota meter shown in the add-job modal (see ftRenderMeter). */
.sj-quota-hint {
  margin: 0;
  color: var(--text-muted, #6b7280) !important;
  font-size: 13px !important;
}

.sj-quota-hint[hidden] {
  display: none;
}

.sj-quota-hint.is-limit {
  color: #b42318 !important;
  font-weight: var(--fw-heavy);
}

.sj-quota-hint.is-limit a {
  color: inherit;
  text-decoration: underline;
  white-space: nowrap;
}

.sj-language-summary,
.sj-language-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(92, 77, 67, 0.1);
  border-radius: 16px;
  background: rgba(248, 250, 247, 0.72);
}

.sj-language-context {
  grid-template-columns: 1fr;
}

.sj-language-summary[hidden] {
  display: none;
}

.sj-language-summary div,
.sj-language-context div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sj-language-summary span,
.sj-language-context span {
  color: rgba(20, 32, 45, 0.58);
  font-size: 12px;
  font-weight: var(--fw-bold);
  line-height: 1.25;
}

.sj-language-summary strong,
.sj-language-context strong {
  overflow: hidden;
  color: #1f342d;
  font-size: 14px;
  font-weight: var(--fw-heavy);
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sj-language-setup-panel {
  width: min(560px, 100%);
}

.sj-language-setup-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.sj-language-setup-form label {
  color: #344054;
  font-size: 13px;
  font-weight: var(--fw-heavy);
  line-height: 1.2;
}

.sj-language-setup-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(92, 77, 67, 0.14);
  border-radius: 14px;
  background: #ffffff;
  color: #20262d;
  font: inherit;
  font-size: 14px;
  font-weight: var(--fw-bold);
}

.sj-language-setup-form select:focus-visible {
  outline: 0;
  border-color: #168CA4;
  box-shadow: 0 0 0 4px rgba(22, 140, 164, 0.12);
}

.sj-fallback-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sj-fallback-panel label {
  color: #344054;
  font-size: 13px;
  font-weight: var(--fw-heavy);
  line-height: 1.2;
}

.sj-fallback-panel textarea {
  width: 100%;
  min-height: 180px;
  padding: 12px;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 16px;
  outline: 0;
  color: var(--text-main, #111827);
  background: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

.sj-fallback-panel textarea:focus {
  border-color: var(--brand-400, #1C9AB0);
  box-shadow: 0 0 0 4px rgba(22, 140, 164, 0.12);
}

.sj-fallback-panel textarea::placeholder {
  color: var(--text-soft, #9ca3af);
}

.sj-form-error {
  margin: 0;
  color: #b42318 !important;
  font-weight: var(--fw-heavy);
}

.sj-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 10px;
}

.sj-preview-panel .sj-modal-actions {
  position: sticky;
  bottom: -28px;
  z-index: 1;
  margin: 4px -28px -28px;
  padding: 14px 28px 20px;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.sj-analyze-spinner {
  width: 44px;
  height: 44px;
  margin: 28px auto 12px;
  border: 3px solid rgba(22, 140, 164, 0.18);
  border-top-color: var(--brand-400, #1C9AB0);
  border-radius: 50%;
  animation: sj-analyze-spin 0.8s linear infinite;
}

.sj-analyze-status {
  margin: 0 auto 8px;
  text-align: center;
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--brand-400, #1C9AB0);
}

@keyframes sj-analyze-spin {
  to { transform: rotate(360deg); }
}

.sj-route-progress {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(242, 246, 247, 0.70);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  transition: background 180ms ease, opacity 180ms ease;
}

.sj-route-progress[hidden] {
  display: none !important;
}

.sj-route-progress__surface {
  width: min(720px, 100%);
  padding: 34px 36px;
  border: 1px solid rgba(31, 122, 137, 0.12);
  border-radius: 32px;
  background:
    radial-gradient(circle at 8% 0%, rgba(38, 159, 177, 0.10), transparent 34%),
    radial-gradient(circle at 92% 100%, rgba(74, 160, 132, 0.07), transparent 32%),
    rgba(255, 255, 255, 0.86);
  box-shadow:
    0 32px 90px rgba(20, 32, 45, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  animation: sj-route-progress-enter 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sj-route-progress.is-completing {
  pointer-events: none;
  background: rgba(242, 246, 247, 0.50);
}

.sj-route-progress.is-completing .sj-route-progress__surface {
  opacity: 0;
  transform: translateY(-4px) scale(0.985);
}

.sj-route-progress__hero {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.sj-route-progress__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #1C9AB0 0%, #168CA4 58%, #0F7F97 100%);
  box-shadow:
    0 12px 24px rgba(22, 140, 164, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.sj-route-progress__eyebrow {
  margin: 0 0 4px;
  color: rgba(23, 33, 43, 0.42);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.sj-route-progress h2,
.sj-route-progress h3 {
  margin: 0;
  color: #17212b;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.035em;
}

.sj-route-progress h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.08;
}

.sj-route-progress h3 {
  font-size: 22px;
  line-height: 1.18;
}

.sj-route-progress p {
  margin: 8px 0 0;
  color: rgba(23, 33, 43, 0.60);
  font-size: 15px;
  line-height: 1.6;
}

.sj-route-progress__link {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.sj-route-progress__link[hidden] {
  display: none !important;
}

.sj-route-progress__link > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #168CA4;
  background: rgba(31, 151, 169, 0.08);
}

.sj-route-progress__link svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sj-route-progress__link strong,
.sj-route-progress__link small {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sj-route-progress__link strong {
  color: #17212b;
  font-size: 14px;
  font-weight: var(--fw-semibold);
}

.sj-route-progress__link small {
  margin-top: 2px;
  color: rgba(23, 33, 43, 0.54);
  font-size: 13px;
}

.sj-route-progress__steps {
  display: grid;
  gap: 11px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.sj-route-progress.is-fallback .sj-route-progress__steps,
.sj-route-progress.is-fallback .sj-route-progress__link {
  display: none !important;
}

.sj-route-progress__steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(23, 33, 43, 0.48);
  font-size: 14px;
  line-height: 1.35;
}

.sj-route-progress__steps li > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(31, 151, 169, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.sj-route-progress__steps li.is-active {
  color: rgba(23, 33, 43, 0.78);
}

.sj-route-progress__steps li.is-active > span {
  border-color: #168CA4;
}

.sj-route-progress__steps li.is-active > span::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #168CA4;
}

.sj-route-progress__steps li.is-done {
  color: rgba(23, 33, 43, 0.70);
}

.sj-route-progress__steps li.is-done > span {
  border-color: rgba(22, 140, 164, 0.24);
  background: rgba(31, 151, 169, 0.10);
}

.sj-route-progress__steps li.is-done > span::after {
  content: "✓";
  color: #168CA4;
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-route-progress__slow {
  margin-top: 20px !important;
  color: rgba(23, 33, 43, 0.56) !important;
  font-size: 14px !important;
}

.sj-route-progress__quiet {
  margin-top: 10px;
  padding: 0;
  border: 0;
  color: #168CA4;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  cursor: pointer;
}

.sj-route-progress__quiet:hover,
.sj-route-progress__quiet:focus-visible {
  outline: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sj-route-progress__fallback {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(30, 41, 59, 0.08);
}

.sj-route-progress__fallback[hidden] {
  display: none !important;
}

.sj-route-progress__fallback label {
  display: block;
  margin-top: 16px;
  color: rgba(23, 33, 43, 0.64);
  font-size: 13px;
  font-weight: var(--fw-semibold);
}

.sj-route-progress__fallback textarea {
  width: 100%;
  min-height: 190px;
  margin-top: 8px;
  padding: 14px 15px;
  border: 1px solid rgba(30, 41, 59, 0.10);
  border-radius: 18px;
  outline: 0;
  color: #17212b;
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
}

.sj-route-progress__fallback textarea:focus {
  border-color: rgba(31, 151, 169, 0.34);
  box-shadow: 0 0 0 4px rgba(31, 151, 169, 0.08);
}

.sj-route-progress__fallback-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@keyframes sj-route-progress-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.sj-analysis-active {
  overflow: hidden;
}

body.sj-analysis-active .saved-jobs-page,
body.sj-analysis-active .sb-sidebar {
  pointer-events: none;
  user-select: none;
}

body.sj-analysis-active .sj-route-progress {
  pointer-events: auto;
}

body.sj-analysis-active .sj-drawer {
  pointer-events: auto;
}

body.sj-analysis-active .sb-float-trigger,
body.sj-analysis-active .sb-float-window,
body.sj-analysis-active .floating-chat,
body.sj-analysis-active .floating-chat-button,
body.sj-analysis-active .chatbot-button,
body.sj-analysis-active [data-floating-chat],
body.sj-analysis-active [data-chat-widget],
body.sj-analysis-active [data-help-button] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.sj-job-drawer-open .sb-float-trigger,
body.sj-job-drawer-open .sb-float-window,
body.sj-job-drawer-open .floating-chat,
body.sj-job-drawer-open .floating-chat-button,
body.sj-job-drawer-open .chatbot-button,
body.sj-job-drawer-open [data-floating-chat],
body.sj-job-drawer-open [data-chat-widget],
body.sj-job-drawer-open [data-help-button] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.sj-cv-route-transitioning {
  overflow: hidden;
}

body.sj-cv-route-transitioning .sj-drawer-panel {
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 140ms cubic-bezier(.22, 1, .36, 1),
    transform 140ms cubic-bezier(.22, 1, .36, 1);
}

.sj-cv-route-bridge {
  position: fixed;
  inset: 0;
  z-index: 1005;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(242, 246, 247, 0.58);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sj-cv-route-bridge__card {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 18px 54px rgba(20, 32, 45, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
  color: #17212b;
  text-align: center;
}

.sj-cv-route-bridge__card strong {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
}

.sj-cv-route-bridge__card p {
  max-width: 260px;
  margin: 0;
  overflow: hidden;
  color: rgba(23, 33, 43, 0.52);
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .sj-route-progress {
    padding: 20px;
  }

  .sj-route-progress__surface {
    padding: 26px 22px;
    border-radius: 26px;
  }

  .sj-route-progress__hero {
    gap: 12px;
  }

  .sj-route-progress__fallback-actions {
    justify-content: stretch;
  }

  .sj-route-progress__fallback-actions .sj-button {
    flex: 1 1 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sj-route-progress__surface {
    animation: none !important;
    transition: none !important;
  }
}

.sj-recommendation-card {
  padding: 15px;
  border: 1px solid rgba(22, 140, 164, 0.16);
  border-radius: 18px;
  background: rgba(232, 247, 253, 0.68);
}

.sj-recommendation-card h3 {
  margin: 0;
  color: var(--text-heading, #14213d);
  font-size: 16px;
  font-weight: var(--fw-heavy);
}

.sj-recommendation-card p {
  margin: 7px 0 0;
  color: var(--text-muted, #6b7280);
}

.sj-match-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(22, 140, 164, 0.2);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, var(--brand-50, #e8f7fb) 100%);
}

.sj-match-notice h3 {
  margin: 0;
  color: var(--text-heading, #14213d);
  font-size: 16px;
  font-weight: var(--fw-heavy);
}

.sj-match-notice p {
  margin: 6px 0 0;
  color: var(--text-muted, #6b7280);
  font-size: 14px;
  line-height: 1.45;
}

.sj-inline-actions,
.sj-guard-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.sj-drawer[hidden],
.sj-fit-modal[hidden],
.sj-profile-modal[hidden],
.sj-fit-question-modal[hidden],
.sj-create-guard-modal[hidden],
.sj-stretch-guard-modal[hidden],
.sj-language-setup-modal[hidden],
.sj-modal[hidden],
.sj-modal-backdrop[hidden],
.sj-toast[hidden],
.sj-empty-board[hidden],
.sj-table-card[hidden] {
  display: none;
}

.sj-drawer {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px clamp(24px, 5vw, 72px);
}

.sj-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.18);
}

.sj-drawer-panel {
  position: relative;
  width: calc(100vw - 96px);
  max-width: 980px;
  min-width: 760px;
  height: min(86vh, 820px);
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
}

.sj-drawer-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
}

.sj-drawer-header {
  padding: 30px 34px 22px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.sj-drawer-header h2 {
  margin-right: 44px;
  font-size: 34px;
}

.sj-drawer-header p {
  margin: 7px 44px 0 0;
  color: var(--text-muted, #6b7280);
  font-size: 15px;
}

.sj-drawer-header a {
  margin-left: 5px;
  color: var(--brand-600, #0F7F97);
  font-weight: var(--fw-heavy);
}

.sj-drawer-header .sj-status-pill {
  margin-top: 14px;
}

.sj-stage-select {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.sj-drawer-content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  align-content: start;
  column-gap: 28px;
  overflow: auto;
  padding: 0 34px 24px;
}

.sj-drawer-section {
  padding: 19px 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.sj-drawer-section:first-child,
.sj-fit-brief {
  grid-column: 1 / -1;
}

.sj-drawer-section h3 {
  margin: 0 0 10px;
}

.sj-drawer-section p {
  margin: 0;
  color: var(--text-muted, #6b7280);
  font-size: 15px;
  line-height: 1.5;
}

.sj-match-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: start;
}

.sj-match-value {
  color: #047857;
  font-size: 24px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.sj-match-row span {
  color: var(--text-muted, #6b7280);
  font-size: 14px;
  line-height: 1.45;
}

.sj-match-value--pending {
  color: var(--text-heading, #14213d);
  font-size: 20px;
}

.sj-match-value--estimated {
  color: #b7791f;
}

.sj-match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.sj-fit-brief {
  padding-top: 22px;
}

.sj-fit-brief-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.sj-fit-brief-header h3 {
  margin-bottom: 5px;
}

.sj-fit-brief-header p {
  font-size: 13px;
}

.sj-fit-level {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--brand-600, #0F7F97);
  background: var(--brand-50, #e8f7fb);
  font-size: 12px;
  font-weight: var(--fw-heavy);
  white-space: nowrap;
}

.sj-fit-level--strong {
  color: #047857;
  background: #e8f8ef;
}

.sj-fit-level--possible {
  color: var(--brand-600, #0F7F97);
  background: var(--brand-50, #e8f7fb);
}

.sj-fit-level--stretch {
  color: #b45309;
  background: #fff7ed;
}

.sj-fit-level--not {
  color: #9f2c2c;
  background: #fee2e2;
}

.sj-fit-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sj-fit-brief-grid article {
  padding: 14px;
  border: 1px solid rgba(22, 140, 164, 0.14);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(232, 247, 251, 0.42));
}

.sj-fit-brief-grid span,
.sj-fit-questions h4 {
  display: block;
  margin: 0 0 6px;
  color: var(--text-heading, #14213d);
  font-size: 13px;
  font-weight: var(--fw-heavy);
  line-height: 1.25;
}

.sj-fit-brief-grid p {
  color: var(--text-muted, #6b7280);
  font-size: 14px;
  line-height: 1.48;
}

.sj-fit-questions {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(22, 140, 164, 0.18);
  border-radius: 16px;
  background: rgba(232, 247, 251, 0.46);
}

.sj-fit-questions ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted, #6b7280);
  font-size: 14px;
  line-height: 1.4;
}

.sj-fit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.sj-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sj-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border-brand, rgba(22, 140, 164, 0.28));
  border-radius: 999px;
  color: var(--brand-600, #0F7F97);
  background: var(--brand-50, #e8f7fb);
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.sj-detail-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
}

.sj-detail-list dt {
  color: var(--text-muted, #6b7280);
  font-size: 14px;
}

.sj-detail-list dd {
  margin: 0;
  color: var(--text-heading, #14213d);
  font-size: 14px;
  font-weight: var(--fw-heavy);
}

.sj-note-count {
  margin: 8px 0 0 !important;
  color: var(--text-soft, #9ca3af) !important;
  font-size: 12px !important;
}

.sj-activity-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sj-activity-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted, #6b7280);
  font-size: 14px;
  line-height: 1.4;
}

.sj-activity-list li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-400, #1C9AB0);
}

.sj-drawer-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  padding: 18px 34px 24px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.sj-drawer-backdrop {
  background: rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(9px);
}

.sj-drawer-panel {
  width: min(1040px, calc(100vw - 64px));
  max-width: 1040px;
  min-width: 760px;
  height: min(88vh, 900px);
  max-height: calc(100vh - 60px);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 34px 100px rgba(15, 23, 42, 0.22);
}

.sj-drawer-close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
}

.sj-drawer-header {
  display: block;
  padding: 30px 58px 16px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.sj-drawer-title-block {
  min-width: 0;
}

.sj-drawer-header h2 {
  max-width: 760px;
  margin: 0;
  color: var(--text-heading, #14213d);
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: 0;
}

.sj-drawer-header p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 14px;
}

.sj-drawer-company-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sj-drawer-company-line a {
  color: var(--brand-600, #0F7F97);
  font-size: 13px;
  font-weight: var(--fw-heavy);
  text-decoration: none;
}

.sj-drawer-company-line a:hover {
  text-decoration: underline;
}

.sj-drawer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sj-drawer-meta-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) minmax(108px, 0.85fr) minmax(108px, 0.85fr) minmax(142px, 0.95fr);
  gap: 12px 20px;
  max-width: 840px;
  margin: 16px 0 0;
}

.sj-drawer-meta-grid div {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sj-drawer-meta-grid dt {
  margin: 0 0 5px;
  color: #667085;
  font-size: 12px;
  font-weight: var(--fw-heavy);
  line-height: 1.2;
  text-transform: uppercase;
}

.sj-drawer-meta-grid dd {
  margin: 0;
  color: var(--text-heading, #14213d);
  font-size: 14px;
  font-weight: var(--fw-heavy);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sj-drawer-header .sj-status-pill,
.sj-drawer-header .sj-fit-level {
  margin-top: 0;
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}


.sj-drawer-content {
  flex: 1;
  display: block;
  overflow: auto;
  padding: 0 58px 18px;
}

.sj-coach-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.sj-coach-section,
.sj-activity-accordion {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.sj-coach-section {
  min-width: 0;
  padding: 24px;
}

.sj-coach-section--assessment,
.sj-activity-accordion {
  grid-column: 1 / -1;
}

.sj-coach-section--assessment {
  padding: 32px;
  border-color: rgba(22, 140, 164, 0.3);
  background: #f7fcfd;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.sj-coach-section--assessment .sj-coach-section-heading {
  margin-bottom: 16px;
}

.sj-coach-section--assessment .sj-section-number {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.sj-coach-section--assessment h3 {
  font-size: 22px;
  line-height: 1.2;
}

.sj-coach-section-heading,
.sj-generation-copy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sj-coach-section-heading {
  margin-bottom: 12px;
}

.sj-coach-section-heading h3,
.sj-generation-copy h3 {
  margin: 0;
  color: var(--text-heading, #14213d);
  font-size: 16px;
  line-height: 1.25;
  font-weight: var(--fw-heavy);
}

.sj-section-number {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--brand-600, #0F7F97);
  background: var(--brand-50, #e8f7fb);
  font-size: 13px;
  font-weight: var(--fw-heavy);
}

.sj-coach-section p {
  margin: 0;
  color: #475467;
  font-size: 15px;
  line-height: 1.55;
}

.sj-coach-section .sj-coach-support {
  margin-top: 8px;
  color: #667085;
  font-size: 14px;
}

.sj-coach-lede {
  color: var(--text-heading, #14213d) !important;
  font-size: 16px !important;
  font-weight: var(--fw-heavy);
}

.sj-assessment-summary {
  max-width: 880px;
  color: var(--text-heading, #14213d) !important;
  font-size: 22px !important;
  font-weight: var(--fw-heavy);
  line-height: 1.48 !important;
}

.sj-coach-tag-list,
.sj-coach-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.sj-coach-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sj-coach-list {
  display: grid;
  gap: 10px;
}

.sj-document-panel {
  display: grid;
  gap: 14px;
}

.sj-document-summary {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(22, 140, 164, 0.06);
  border: 1px solid rgba(22, 140, 164, 0.12);
}

.sj-document-summary p {
  color: #2f5549;
  font-size: 14px;
  line-height: 1.5;
}

.sj-document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.sj-document-row__label {
  display: block;
  margin-bottom: 5px;
  color: #667085;
  font-size: 12px;
  font-weight: var(--fw-heavy);
  line-height: 1;
}

.sj-document-row strong {
  display: block;
  color: #14213d;
  font-size: 16px;
  font-weight: var(--fw-heavy);
  line-height: 1.35;
}

.sj-document-row p {
  margin-top: 3px;
  color: #667085;
  font-size: 14px;
}

.sj-document-row__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sj-document-link {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(20, 32, 45, 0.16);
  border-radius: 10px;
  color: #2f5549;
  background: #fff;
  font-size: 13px;
  font-weight: var(--fw-heavy);
  cursor: pointer;
}

.sj-document-link:hover {
  background: rgba(22, 140, 164, 0.08);
  border-color: rgba(22, 140, 164, 0.22);
}

.sj-coach-list li {
  position: relative;
  padding-left: 26px;
  color: #475467;
  font-size: 14px;
  line-height: 1.48;
}

.sj-coach-list li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-400, #1C9AB0);
}

.sj-coach-notes {
  margin-top: 18px;
}

.sj-coach-notes label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-heading, #14213d);
  font-size: 13px;
  font-weight: var(--fw-heavy);
}

.sj-coach-notes textarea {
  width: 100%;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 14px;
  outline: 0;
  color: var(--text-main, #111827);
  background: rgba(255, 255, 255, 0.94);
  resize: vertical;
}

.sj-coach-notes textarea:focus {
  border-color: var(--brand-400, #1C9AB0);
  box-shadow: 0 0 0 4px rgba(22, 140, 164, 0.12);
}

.sj-company-detail-list {
  margin-top: 16px;
}

.sj-quick-fit-card,
.sj-fit-signal-card,
.sj-drawer-info-card,
.sj-drawer-accordion {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.sj-quick-fit-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 26px 28px;
  border-color: rgba(22, 140, 164, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 251, 253, 0.94) 100%);
}

.sj-fit-hero-icon,
.sj-signal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
}

.sj-fit-hero-icon {
  width: 74px;
  height: 74px;
  color: var(--brand-500, #168CA4);
  border: 1px solid rgba(22, 140, 164, 0.28);
  background: var(--brand-50, #e8f7fb);
}

.sj-fit-hero-icon svg,
.sj-signal-icon svg,
.sj-drawer-accordion summary svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sj-drawer-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-600, #0F7F97);
  font-size: 12px;
  font-weight: var(--fw-heavy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sj-quick-fit-card h3 {
  margin: 0;
  color: var(--text-heading, #14213d);
  font-size: 24px;
  line-height: 1.2;
  font-weight: var(--fw-heavy);
}

.sj-quick-fit-card p,
.sj-fit-signal-card p,
.sj-drawer-info-card p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.5;
}

.sj-fit-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.sj-fit-signal-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  min-height: 132px;
  padding: 22px 18px;
}

.sj-fit-signal-card h3,
.sj-drawer-info-card h3,
.sj-accordion-body h3 {
  margin: 0;
  color: var(--text-heading, #14213d);
  font-size: 16px;
  line-height: 1.25;
  font-weight: var(--fw-heavy);
}

.sj-signal-icon {
  width: 54px;
  height: 54px;
}

.sj-signal-icon--blue {
  color: var(--brand-500, #168CA4);
  background: var(--brand-50, #e8f7fb);
}

.sj-signal-icon--green {
  color: #4d8b2f;
  background: #eaf7e6;
}

.sj-signal-icon--orange {
  color: #d97706;
  background: #fff7ed;
}

.sj-drawer-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
  margin-top: 18px;
}

.sj-drawer-info-card {
  min-height: 176px;
  padding: 24px;
}

.sj-info-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.sj-drawer-info-card .sj-skill-list {
  padding-left: 64px;
}

.sj-next-step-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 0 0 64px;
  list-style: none;
}

.sj-next-step-list li {
  position: relative;
  color: #475467;
  font-size: 15px;
  line-height: 1.45;
}

.sj-next-step-list li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--brand-500, #168CA4);
}

.sj-next-step-list li::after {
  content: "";
  position: absolute;
  left: -24px;
  top: 8px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.sj-next-step-note {
  margin: 16px 0 0 64px !important;
  color: #667085 !important;
  font-size: 14px !important;
}

.sj-drawer-accordion-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 2px;
}

.sj-drawer-accordion {
  overflow: hidden;
}

.sj-drawer-accordion summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  color: #475467;
  cursor: pointer;
  list-style: none;
}

.sj-drawer-accordion summary::-webkit-details-marker {
  display: none;
}

.sj-drawer-accordion summary span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: var(--fw-bold);
}

.sj-drawer-accordion summary span svg {
  width: 22px;
  height: 22px;
  color: var(--brand-500, #168CA4);
}

.sj-accordion-chevron {
  width: 20px !important;
  height: 20px !important;
  color: #14213d;
  transition: transform 160ms ease;
}

.sj-drawer-accordion[open] .sj-accordion-chevron {
  transform: rotate(180deg);
}

.sj-accordion-body {
  padding: 4px 20px 20px;
}

.sj-accordion-body p {
  margin: 8px 0 18px;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.sj-accordion-body textarea {
  width: 100%;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 16px;
  outline: 0;
  color: var(--text-main, #111827);
  background: rgba(255, 255, 255, 0.94);
  resize: vertical;
}

.sj-accordion-body textarea:focus {
  border-color: var(--brand-400, #1C9AB0);
  box-shadow: 0 0 0 4px rgba(22, 140, 164, 0.12);
}

.sj-detail-list {
  gap: 9px;
  margin-top: 16px;
}

.sj-detail-list div {
  grid-template-columns: 180px minmax(0, 1fr);
}

.sj-drawer-footer {
  display: block;
  padding: 22px 58px 26px;
  background: rgba(255, 255, 255, 0.86);
}

.sj-generation-panel {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
}

.sj-generation-copy p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.35;
}

.sj-footer-utilities,
.sj-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sj-drawer-footer .sj-button {
  min-width: auto;
}

.sj-drawer-footer .sj-button--danger {
  color: #b42318;
  margin-right: 0;
}

.sj-drawer-footer .sj-button--danger:hover {
  background: rgba(180, 35, 24, 0.08);
}

/* V2 job workspace drawer */
.sj-drawer-panel {
  width: min(1180px, calc(100vw - 96px));
  max-width: 1180px;
  min-width: 0;
  height: min(86vh, 860px);
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
}

.sj-drawer-header {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 28px 34px 22px;
  background: rgba(255, 255, 255, 0.96);
}

.sj-drawer-title-block {
  min-width: 0;
}

.sj-drawer-header h2 {
  max-width: 820px;
  margin: 0;
  padding: 0;
  color: #111827;
  font-family: Inter, system-ui, sans-serif;
  font-size: 28px;
  font-weight: var(--fw-heavy);
  line-height: 1.15;
  letter-spacing: 0;
}

.sj-drawer-eyebrow {
  margin-bottom: 8px;
  color: #168CA4;
  font-size: 12px;
  font-weight: var(--fw-heavy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sj-drawer-company-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  max-width: 820px;
  margin: 10px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.45;
}

.sj-drawer-company-line a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgba(22, 140, 164, 0.18);
  border-radius: 999px;
  color: #2f5549;
  background: rgba(22, 140, 164, 0.07);
  font-size: 13px;
  font-weight: var(--fw-heavy);
  text-decoration: none;
}

.sj-drawer-company-line a:hover {
  background: rgba(22, 140, 164, 0.11);
  text-decoration: none;
}

.sj-drawer-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 18px;
  max-width: 920px;
  margin: 18px 0 0;
}

.sj-drawer-meta-grid dt {
  margin-bottom: 5px;
  color: #667085;
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0;
  text-transform: none;
}

.sj-drawer-meta-grid dd {
  color: #17233a;
  font-size: 14px;
  font-weight: var(--fw-heavy);
}

.sj-drawer-toolbar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sj-drawer-close,
.sj-drawer-more-trigger {
  position: static;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
}

.sj-drawer-toolbar svg,
.sj-drawer-more-menu svg {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sj-drawer-more {
  position: relative;
}

.sj-drawer-more-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.sj-drawer-more-menu[hidden] {
  display: none;
}

.sj-drawer-more-menu button {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  color: #27364a;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: var(--fw-bold);
  text-align: left;
  cursor: pointer;
}

.sj-drawer-more-menu button:hover {
  background: #f5f8f7;
}

.sj-drawer-more-menu button.is-danger {
  color: #b42318;
}

.sj-drawer-content {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
  gap: 28px;
  overflow: auto;
  padding: 28px 34px 34px;
  background: #f8faf9;
}

.sj-job-workspace {
  align-content: start;
}

.sj-workspace-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
}

.sj-column-heading h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: var(--fw-heavy);
  line-height: 1.25;
}

.sj-fact-section,
.sj-coach-section,
.sj-drawer-accordion {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: #fff;
}

.sj-fact-section {
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.sj-fact-section h4,
.sj-fact-section h5,
.sj-coach-section-heading h4 {
  margin: 0;
  color: #14213d;
  font-size: 16px;
  font-weight: var(--fw-heavy);
  line-height: 1.3;
}

.sj-fact-section h5 {
  margin-top: 18px;
  color: #475467;
  font-size: 13px;
  font-weight: var(--fw-heavy);
}

.sj-job-post-facts {
  margin-top: 14px;
}

.sj-job-post-facts div,
.sj-job-post-card .sj-detail-list div {
  grid-template-columns: minmax(104px, 0.42fr) minmax(0, 0.58fr);
}

.sj-job-post-facts dt,
.sj-detail-list dt {
  font-size: 13px;
}

.sj-job-post-facts dd,
.sj-detail-list dd {
  font-size: 14px;
  font-weight: var(--fw-bold);
}

.sj-extraction-warning {
  display: grid;
  gap: 12px;
  margin: 14px 0 16px;
  padding: 14px;
  border: 1px solid rgba(180, 83, 9, 0.14);
  border-radius: 14px;
  background: #fffaf2;
}

.sj-extraction-warning[hidden] {
  display: none;
}

.sj-extraction-warning p {
  margin: 0;
  color: #77541b;
  font-size: 14px;
  line-height: 1.5;
}

.sj-source-list {
  margin-top: 10px;
}

.sj-original-post summary {
  min-height: 48px;
}

.sj-original-post-text {
  max-height: 220px;
  overflow: auto;
  color: #475467 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.sj-coach-section {
  padding: 22px;
}

.sj-coach-section--assessment {
  padding: 26px;
  border-color: rgba(22, 140, 164, 0.22);
  background: #f4fbf8;
  box-shadow: 0 16px 38px rgba(20, 32, 45, 0.07);
}

.sj-coach-section-heading {
  margin-bottom: 12px;
}

.sj-coach-section-heading,
.sj-generation-copy {
  gap: 0;
}

.sj-section-number {
  display: none;
}

.sj-assessment-summary {
  max-width: 720px;
  color: #13223a !important;
  font-size: 20px !important;
  font-weight: var(--fw-bold);
  line-height: 1.62 !important;
}

.sj-coach-section p {
  color: #475467;
  font-size: 15px;
  line-height: 1.65;
}

.sj-coach-tag-list {
  margin-top: 14px;
}

.sj-coach-list {
  gap: 11px;
}

.sj-coach-list li {
  padding-left: 22px;
  color: #344054;
  font-size: 15px;
  line-height: 1.58;
}

.sj-coach-list li::before {
  top: 9px;
  width: 7px;
  height: 7px;
  background: #168CA4;
}

.sj-next-step-list {
  gap: 10px;
  margin-top: 14px;
  padding-left: 0;
}

.sj-next-step-list li {
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.55;
}

.sj-next-step-list li::before {
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: #168CA4;
}

.sj-next-step-list li::after {
  left: 6px;
  top: 9px;
}

.sj-guidance-accordion summary,
.sj-notes-accordion summary,
.sj-activity-accordion summary,
.sj-original-post summary {
  min-height: 50px;
  padding: 0 18px;
  color: #27364a;
}

.sj-drawer-accordion summary > span {
  font-size: 15px;
  font-weight: var(--fw-heavy);
}

.sj-accordion-body {
  padding: 0 18px 18px;
}

.sj-coach-notes {
  margin-top: 0;
}

.sj-coach-notes textarea {
  min-height: 96px;
}

.sj-drawer-footer {
  flex: 0 0 auto;
  display: block;
  padding: 16px 34px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.sj-job-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sj-job-next-action {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sj-job-next-action span {
  color: #667085;
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-job-next-action strong {
  color: #13223a;
  font-size: 15px;
  font-weight: var(--fw-heavy);
  line-height: 1.3;
}

.sj-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.sj-drawer-footer .sj-button {
  min-height: 42px;
}

.sj-drawer-footer .sj-button--primary {
  background: #168CA4;
}

.sj-drawer-footer .sj-button--primary:hover {
  background: #0F7F97;
}

/* Job opportunity modal hierarchy pass: layout, spacing, grouping only. */
.sj-drawer-header {
  padding: 30px 36px 24px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.07);
}

.sj-drawer-company-line {
  gap: 10px;
  margin-top: 8px;
}

.sj-drawer-company-line a {
  min-height: 38px;
  padding: 0 15px;
  border-color: rgba(22, 140, 164, 0.24);
  background: rgba(22, 140, 164, 0.095);
}

.sj-drawer-company-line a:hover {
  border-color: rgba(22, 140, 164, 0.32);
  background: rgba(22, 140, 164, 0.14);
}

.sj-drawer-meta-grid {
  gap: 12px;
  margin-top: 20px;
}

.sj-drawer-meta-grid div {
  padding: 0 16px 0 0;
  border-right: 1px solid rgba(17, 24, 39, 0.07);
}

.sj-drawer-meta-grid div:last-child {
  padding-right: 0;
  border-right: 0;
}

.sj-drawer-meta-grid dt {
  margin-bottom: 4px;
}

.sj-drawer-content {
  grid-template-columns: minmax(300px, 0.38fr) minmax(0, 0.62fr);
  gap: 30px;
  padding: 30px 34px 36px;
  background: linear-gradient(180deg, #f8faf9 0%, #f5f8f6 100%);
}

.sj-workspace-column {
  gap: 20px;
}

.sj-job-post-column {
  gap: 14px;
}

.sj-job-post-card {
  display: grid;
  gap: 0;
  padding: 24px;
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.sj-job-post-card .sj-fact-section,
.sj-job-post-card .sj-drawer-accordion {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sj-job-post-card .sj-fact-section {
  padding: 0;
}

.sj-job-post-card .sj-fact-section + .sj-fact-section,
.sj-job-post-card .sj-original-post {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(30, 41, 59, 0.06);
}

.sj-job-post-facts {
  display: grid;
  gap: 10px;
}

.sj-job-post-facts div,
.sj-job-post-card .sj-detail-list div {
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.055);
}

.sj-job-post-facts div:last-child,
.sj-job-post-card .sj-detail-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sj-job-fact-group + .sj-job-fact-group {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(30, 41, 59, 0.06);
}

.sj-job-fact-group h5 {
  margin-bottom: 12px;
}

.sj-job-facts-list {
  display: grid;
  gap: 12px;
}

.sj-job-facts-list li {
  padding-left: 20px;
}

.sj-job-facts-list li::before {
  top: 10px;
  width: 6px;
  height: 6px;
  background: rgba(22, 140, 164, 0.50);
}

.sj-list-show-more {
  width: fit-content;
  min-height: 34px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid rgba(22, 140, 164, 0.16);
  border-radius: 999px;
  color: #2f5549;
  background: rgba(22, 140, 164, 0.055);
  cursor: pointer;
}

.sj-list-show-more:hover {
  background: rgba(22, 140, 164, 0.10);
}

.sj-sofia-column {
  gap: 18px;
}

.sj-coach-section {
  border-color: rgba(30, 41, 59, 0.075);
  box-shadow: none;
}

.sj-coach-section--assessment {
  margin-bottom: 4px;
  border-color: rgba(22, 140, 164, 0.20);
  background: linear-gradient(180deg, rgba(22, 140, 164, 0.085), rgba(22, 140, 164, 0.035));
  box-shadow: 0 16px 34px rgba(20, 32, 45, 0.06);
}

.sj-coach-section--positioning {
  padding: 26px 28px;
  border-color: rgba(30, 41, 59, 0.09);
  border-radius: 22px;
  background: #fff;
}

.sj-coach-section--positioning p {
  margin-bottom: 18px;
}

.sj-coach-section--fit {
  background: rgba(255, 255, 255, 0.88);
}

.sj-coach-tag-list {
  gap: 8px;
}

.sj-coach-list {
  gap: 12px;
}

.sj-coach-list li::before {
  background: rgba(22, 140, 164, 0.58);
}

.sj-next-step-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(30, 41, 59, 0.07);
}

.sj-next-step-list li {
  padding-left: 30px;
}

.sj-drawer-accordion {
  border-color: rgba(30, 41, 59, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.sj-drawer-accordion summary {
  min-height: 54px;
  padding: 0 20px;
}

.sj-drawer-accordion summary:hover {
  background: rgba(22, 140, 164, 0.035);
}

.sj-drawer-accordion[open] summary {
  border-bottom: 1px solid rgba(30, 41, 59, 0.065);
}

.sj-accordion-body {
  padding: 18px 20px 20px;
}

.sj-original-post summary {
  min-height: 46px;
  padding: 0;
}

.sj-original-post[open] summary {
  border-bottom: 0;
}

.sj-original-post .sj-accordion-body {
  padding: 14px 0 0;
}

.sj-drawer-footer {
  padding: 18px 34px;
  border-top-color: rgba(30, 41, 59, 0.08);
}

.sj-job-action-bar {
  gap: 22px;
}

.sj-footer-actions {
  gap: 12px;
}

.sj-footer-actions .sj-button--ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: rgba(20, 32, 45, 0.68);
}

.sj-footer-actions .sj-button--secondary {
  border-color: rgba(47, 112, 95, 0.28);
  background: #fff;
  box-shadow: none;
}

.sj-footer-actions .sj-button--primary {
  box-shadow: 0 12px 26px rgba(22, 140, 164, 0.18);
}


/* Confirm modal */
.sj-confirm-overlay {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
}

.sj-confirm-overlay[hidden] {
  display: none;
}

.sj-confirm-modal {
  width: min(420px, calc(100vw - 48px));
  padding: 32px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  text-align: center;
}

.sj-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #fef3f2;
}

.sj-confirm-icon svg {
  width: 26px;
  height: 26px;
  stroke: #d92d20;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sj-confirm-modal h3 {
  margin: 0 0 8px;
  color: #101828;
  font-size: 18px;
  font-weight: var(--fw-heavy);
}

.sj-confirm-modal p {
  margin: 0 0 24px;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.sj-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.sj-confirm-actions .sj-button {
  flex: 1;
  min-height: 44px;
}

.sj-button--danger-fill {
  border: 0;
  border-radius: 12px;
  background: #d92d20;
  color: #fff;
  font-size: 14px;
  font-weight: var(--fw-heavy);
  cursor: pointer;
  transition: background 0.15s;
}

.sj-button--danger-fill:hover {
  background: #b42318;
}

.sj-fit-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.sj-profile-modal,
.sj-fit-question-modal,
.sj-create-guard-modal,
.sj-stretch-guard-modal,
.sj-language-setup-modal {
  position: fixed;
  z-index: 1250;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.sj-modal-backdrop--fit {
  position: absolute;
  z-index: 0;
}

.sj-modal-backdrop--profile,
.sj-modal-backdrop--guard,
.sj-modal-backdrop--stretch,
.sj-modal-backdrop--language {
  position: absolute;
  z-index: 0;
}

.sj-fit-panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
}

.sj-profile-panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
}

.sj-question-panel {
  width: min(720px, 100%);
}

.sj-profile-form,
.sj-question-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.sj-profile-form label,
.sj-question-form label {
  color: #344054;
  font-size: 13px;
  font-weight: var(--fw-heavy);
  line-height: 1.2;
}

.sj-profile-form input,
.sj-profile-form textarea,
.sj-profile-form select,
.sj-question-form textarea {
  width: 100%;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 16px;
  outline: 0;
  color: var(--text-main, #111827);
  background: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.sj-profile-form input,
.sj-profile-form select {
  min-height: 44px;
  padding: 0 12px;
}

.sj-profile-form textarea,
.sj-question-form textarea {
  min-height: 98px;
  padding: 12px;
  resize: vertical;
}

.sj-profile-form input:focus,
.sj-profile-form textarea:focus,
.sj-profile-form select:focus,
.sj-question-form textarea:focus {
  border-color: var(--brand-400, #1C9AB0);
  box-shadow: 0 0 0 4px rgba(22, 140, 164, 0.12);
}

.sj-question-list {
  display: grid;
  gap: 12px;
}

.sj-fit-question {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.sj-fit-question legend {
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  color: var(--text-heading, #14213d);
  font-size: 14px;
  font-weight: var(--fw-heavy);
  line-height: 1.35;
}

.sj-fit-answer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sj-fit-answer-row label {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 999px;
  color: #475467;
  background: #fff;
  font-size: 13px;
  font-weight: var(--fw-heavy);
  cursor: pointer;
}

.sj-fit-answer-row label:has(input:checked) {
  color: var(--brand-600, #0F7F97);
  border-color: var(--border-brand, rgba(22, 140, 164, 0.28));
  background: var(--brand-50, #e8f7fb);
}

.sj-fit-score {
  margin: 18px 0;
  color: var(--text-muted, #6b7280);
  font-size: 16px;
  font-weight: var(--fw-heavy);
}

.sj-fit-score span {
  color: #047857;
  font-size: 34px;
  line-height: 1;
}

.sj-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.sj-fit-grid section {
  padding: 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.sj-fit-grid h3 {
  margin: 0 0 10px;
  color: var(--text-heading, #14213d);
  font-size: 15px;
  font-weight: var(--fw-heavy);
}

.sj-fit-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted, #6b7280);
  font-size: 14px;
  line-height: 1.4;
}

.sj-toast {
  position: fixed;
  z-index: 1300;
  right: 24px;
  bottom: 24px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-radius: 16px;
  color: var(--text-heading, #14213d);
  background: rgba(255, 255, 255, 0.96);
  font-size: 14px;
  font-weight: var(--fw-heavy);
}

.sj-toast button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  color: var(--brand-600, #0F7F97);
  background: var(--brand-50, #e8f7fb);
  font-size: 13px;
  font-weight: var(--fw-heavy);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .sb-main {
    padding: 76px 20px 36px;
  }
}

@media (max-width: 1180px) {
  .sj-tracker-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sj-add-divider {
    display: none;
  }
}

@media (max-width: 860px) {
  .saved-jobs-header,
  .sj-tracker-card,
  .sj-quick-add-form,
  .sj-preview-summary,
  .sj-language-summary,
  .sj-form-grid,
  .sj-fit-grid {
    grid-template-columns: 1fr;
  }

  .saved-jobs-actions {
    justify-content: flex-start;
  }

  .sj-tracker-card {
    gap: 12px;
    min-height: 0;
    padding: 18px;
  }

  .sj-add-divider {
    display: none;
  }

  .sj-inline-add {
    justify-content: flex-start;
    padding: 0;
  }

  .sj-search-compact,
  .sj-search-compact:hover,
  .sj-search-compact:focus-within {
    width: 100%;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    justify-content: start;
  }

  .sj-search-compact input,
  .sj-search-compact:hover input,
  .sj-search-compact:focus-within input {
    width: auto;
    opacity: 1;
  }

  .sj-table-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 0 0 16px;
  }

  .sj-table-controls {
    width: 100%;
    justify-content: space-between;
  }

  .sj-view-filter {
    flex: 1 1 auto;
    justify-content: space-between;
  }

  .sj-modal {
    align-items: end;
    padding: 0;
  }

  .sj-modal-panel,
  .sj-profile-panel,
  .sj-fit-panel {
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }

  .sj-profile-modal,
  .sj-fit-question-modal,
  .sj-create-guard-modal,
  .sj-stretch-guard-modal,
  .sj-language-setup-modal {
    align-items: end;
    padding: 0;
  }

  .sj-match-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .sj-inline-actions,
  .sj-guard-options {
    justify-content: flex-start;
  }

  .sj-modal-close {
    top: 12px;
    right: 12px;
  }

  .sj-drawer-panel {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 92vh;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }

  .sj-drawer-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 48px 20px 14px;
  }

  .sj-drawer-header h2 {
    max-width: 100%;
    font-size: 22px;
    line-height: 1.18;
  }

  .sj-drawer-company-line {
    max-width: 100%;
  }

  .sj-coach-workspace,
  .sj-job-workspace,
  .sj-generation-panel {
    grid-template-columns: 1fr;
  }

  .sj-drawer-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sj-drawer-meta-grid {
    gap: 10px 14px;
  }

  .sj-drawer-meta-grid div {
    padding: 0;
  }

  .sj-dropdown--status {
    width: 100%;
    margin: 0;
  }

  .sj-dropdown--status .sj-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .sj-coach-section {
    padding: 18px;
  }

  .sj-coach-section--assessment {
    padding: 22px 18px;
  }

  .sj-coach-section--assessment h3 {
    font-size: 20px;
  }

  .sj-assessment-summary {
    font-size: 18px !important;
    line-height: 1.46 !important;
  }

  .sj-generation-panel {
    align-items: stretch;
  }

  .sj-footer-utilities,
  .sj-footer-actions {
    width: 100%;
  }

  .sj-document-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sj-document-row__actions {
    justify-content: flex-start;
  }

  .sj-stage-select {
    width: 100%;
    margin: 18px 0 0;
  }

  .sj-drawer-content {
    display: block;
  }

  .sj-job-workspace {
    display: grid;
  }

  .sj-quick-fit-card,
  .sj-fit-signal-grid,
  .sj-drawer-card-grid {
    grid-template-columns: 1fr;
  }

  .sj-fit-hero-icon {
    width: 58px;
    height: 58px;
  }

  .sj-fit-signal-card,
  .sj-drawer-info-card {
    min-height: 0;
  }

  .sj-drawer-info-card .sj-skill-list,
  .sj-next-step-list,
  .sj-next-step-note {
    padding-left: 0;
    margin-left: 0 !important;
  }

  .sj-next-step-list li {
    padding-left: 30px;
  }

  .sj-next-step-list li::before {
    left: 0;
  }

  .sj-next-step-list li::after {
    left: 6px;
  }

  .sj-drawer-content,
  .sj-drawer-header,
  .sj-drawer-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sj-drawer-footer .sj-button,
  .sj-drawer-footer .sj-button--primary {
    width: 100%;
    min-width: 0;
  }

  .sj-drawer-footer {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .sj-generation-panel {
    gap: 12px;
  }

  .sj-job-action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .sj-generation-copy p {
    display: none;
  }

  .sj-footer-utilities,
  .sj-footer-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sj-footer-actions .sj-button--primary {
    grid-column: auto;
  }

  .sj-drawer-footer .sj-button,
  .sj-drawer-footer .sj-button--primary {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
  }
}

/* V2 All jobs management view */
.saved-jobs-header {
  max-width: 1120px;
  margin-inline: auto;
}

.sj-table-card {
  max-width: 1120px;
  margin: 28px auto 0;
}

.sj-table-toolbar {
  align-items: flex-start;
  padding: 0 0 18px;
}

.sj-table-brief p {
  margin: 0;
  color: rgba(20, 32, 45, 0.66);
  font-size: 14px;
  line-height: 1.45;
}

.sj-manage-toggle {
  min-height: 38px;
  padding: 0 15px;
}

.sj-manage-toggle.is-active {
  border-color: rgba(22, 140, 164, 0.22);
  color: #2f5549;
  background: rgba(22, 140, 164, 0.08);
}

.sj-list-controls {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(92, 77, 67, 0.10);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(20, 32, 45, 0.045);
}

.sj-search-wide {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(92, 77, 67, 0.13);
  border-radius: 18px;
  background: #fff;
}

.sj-search-wide input {
  width: 100%;
  opacity: 1;
}

.sj-search-wide svg {
  width: 20px;
  height: 20px;
}

.sj-view-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.sj-view-tabs button,
.sj-filter-toggle,
.sj-clear-filters,
.sj-filter-options button,
.sj-active-filters button,
.sj-bulk-bar button {
  border: 1px solid rgba(92, 77, 67, 0.12);
  background: #fff;
  color: rgba(20, 32, 45, 0.74);
  font: inherit;
  cursor: pointer;
}

.sj-view-tabs button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: var(--fw-heavy);
}

.sj-view-tabs button strong {
  min-width: 22px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  color: rgba(20, 32, 45, 0.72);
  background: rgba(22, 140, 164, 0.08);
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-view-tabs button.is-active {
  border-color: rgba(22, 140, 164, 0.24);
  color: #1f342d;
  background: rgba(22, 140, 164, 0.10);
}

.sj-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.sj-filter-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: var(--fw-heavy);
}

.sj-filter-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.sj-clear-filters {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: #2f5549;
  background: transparent;
  font-size: 13px;
  font-weight: var(--fw-heavy);
}

.sj-filter-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(92, 77, 67, 0.10);
  border-radius: 18px;
  background: rgba(247, 250, 247, 0.72);
}

.sj-filter-panel[hidden] {
  display: none;
}

.sj-filter-panel h2 {
  margin: 0 0 9px;
  color: #1f342d;
  font-size: 13px;
  font-weight: var(--fw-heavy);
  line-height: 1.25;
}

.sj-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sj-filter-options button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-filter-options button span {
  color: rgba(20, 32, 45, 0.54);
}

.sj-filter-options button.is-active {
  border-color: rgba(22, 140, 164, 0.24);
  color: #2f5549;
  background: rgba(22, 140, 164, 0.10);
}

.sj-filter-empty {
  color: rgba(20, 32, 45, 0.52);
  font-size: 12px;
}

.sj-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sj-active-filters[hidden] {
  display: none;
}

.sj-active-filters button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: #2f5549;
  background: rgba(22, 140, 164, 0.08);
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-bulk-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(22, 140, 164, 0.16);
  border-radius: 16px;
  background: rgba(22, 140, 164, 0.07);
}

.sj-bulk-bar[hidden] {
  display: none;
}

.sj-bulk-bar span {
  margin-right: auto;
  color: #1f342d;
  font-size: 13px;
  font-weight: var(--fw-heavy);
}

.sj-bulk-bar button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-density-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 3px;
  border: 1px solid rgba(92, 77, 67, 0.12);
  border-radius: 999px;
  background: #fff;
}

.sj-density-control > span {
  padding: 0 8px 0 10px;
  color: rgba(20, 32, 45, 0.56);
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-density-control button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(20, 32, 45, 0.70);
  font: inherit;
  font-size: 12px;
  font-weight: var(--fw-heavy);
  cursor: pointer;
}

.sj-density-control button.is-active {
  color: #2f5549;
  background: rgba(22, 140, 164, 0.10);
}

.sj-job-group {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.sj-job-group:first-child {
  margin-top: 0;
}

.sj-job-group__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.sj-job-group__title {
  flex: 1 1 auto;
  margin: 0;
  color: #1f342d;
  font-size: 16px;
  font-weight: var(--fw-heavy);
}

.sj-job-group__count {
  color: rgba(20, 32, 45, 0.56);
  font-size: 13px;
  font-weight: var(--fw-heavy);
  white-space: nowrap;
}

.sj-job-group__chevron {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(20, 32, 45, 0.62);
  background: rgba(20, 32, 45, 0.06);
  font-size: 20px;
  line-height: 1;
}

.sj-job-group__body {
  display: grid;
  gap: 12px;
}

.sj-job-group.is-collapsed {
  gap: 0;
  margin-top: 12px;
}

.sj-job-group.is-collapsed .sj-job-group__body {
  display: none;
}

.sj-opportunity-card {
  position: relative;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.86fr) auto;
  gap: 24px;
  padding: 22px 24px;
}

.sj-opportunity-card__left,
.sj-opportunity-card__middle {
  gap: 8px;
}

.sj-opportunity-card__identity h3 {
  font-size: 20px;
  font-weight: var(--fw-heavy);
}

.sj-opportunity-card__identity p {
  color: rgba(20, 32, 45, 0.64);
}

.sj-opportunity-card__next {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(22, 140, 164, 0.08);
}

.sj-opportunity-card__next span {
  color: rgba(20, 32, 45, 0.52);
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-opportunity-card__next strong {
  color: #1f342d;
  font-size: 16px;
  line-height: 1.25;
}

.sj-opportunity-card__right {
  align-items: center;
  gap: 10px;
}

.sj-opportunity-card__continue {
  min-width: 132px;
  white-space: nowrap;
}

.sj-group-show-more {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(22, 140, 164, 0.16);
  border-radius: 999px;
  background: rgba(22, 140, 164, 0.06);
  color: #2f5549;
  font: inherit;
  font-size: 13px;
  font-weight: var(--fw-heavy);
  cursor: pointer;
}

.sj-group-show-more:hover {
  background: rgba(22, 140, 164, 0.10);
}

.sj-table-card--compact .sj-list-controls {
  gap: 10px;
  padding: 14px;
}

.sj-table-card--compact .sj-job-group {
  gap: 8px;
  margin-top: 16px;
}

.sj-table-card--compact .sj-job-group__header {
  min-height: 34px;
}

.sj-table-card--compact .sj-opportunity-card {
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.75fr) auto;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(20, 32, 45, 0.045);
}

.sj-table-card--compact .sj-stage-chip {
  min-height: 24px;
  padding: 0 9px;
  font-size: 12px;
}

.sj-table-card--compact .sj-opportunity-card__identity h3 {
  font-size: 16px;
}

.sj-table-card--compact .sj-opportunity-card__identity p,
.sj-table-card--compact .sj-opportunity-card__progress,
.sj-table-card--compact .sj-opportunity-card__meta {
  font-size: 13px;
  line-height: 1.4;
}

.sj-table-card--compact .sj-opportunity-card__next {
  padding: 8px 10px;
}

.sj-table-card--compact .sj-opportunity-card__next strong {
  font-size: 14px;
}

.sj-table-card--compact .sj-card-menu__trigger,
.sj-table-card--compact .sj-opportunity-card__continue {
  min-height: 38px;
  height: 38px;
  border-radius: 12px;
}

.sj-table-card--compact .sj-opportunity-card__continue {
  min-width: 116px;
  padding: 0 14px;
  font-size: 13px;
}

.sj-card-menu {
  position: relative;
}

.sj-card-menu__trigger {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(92, 77, 67, 0.12);
  border-radius: 14px;
  color: rgba(20, 32, 45, 0.68);
  background: #fff;
  cursor: pointer;
}

.sj-card-menu__trigger svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.sj-card-menu__popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  min-width: 178px;
  display: grid;
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(92, 77, 67, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.sj-card-menu__popover[hidden] {
  display: none;
}

.sj-card-menu__popover button {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #243044;
  font: inherit;
  font-size: 13px;
  font-weight: var(--fw-heavy);
  text-align: left;
  cursor: pointer;
}

.sj-card-menu__popover button:hover {
  background: rgba(22, 140, 164, 0.08);
}

.sj-card-menu__popover button.is-danger {
  color: #9f1239;
}

.sj-card-select {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sj-card-select input {
  width: 18px;
  height: 18px;
  accent-color: #168CA4;
}

.sj-table-footer {
  display: flex;
  margin-top: 18px;
  padding: 0 2px;
}

.sj-table-footer .sj-button[hidden] {
  display: none;
}

.sj-no-results {
  display: grid;
  gap: 10px;
  padding: 34px;
  border: 1px dashed rgba(92, 77, 67, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.sj-no-results strong {
  color: #1f342d;
  font-size: 16px;
}

.sj-no-results p {
  margin: 0;
}

.sj-no-results div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

@media (max-width: 980px) {
  .sj-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sj-opportunity-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sj-table-card--compact .sj-opportunity-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sj-card-select {
    grid-row: 1 / span 3;
  }

  .sj-opportunity-card__right {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .sj-list-controls {
    padding: 16px;
  }

  .sj-filter-panel {
    grid-template-columns: 1fr;
  }

  .sj-filter-row {
    align-items: stretch;
    flex-direction: column;
  }

  .sj-dropdown--sort,
  .sj-dropdown--sort .sj-dropdown-trigger,
  .sj-density-control,
  .sj-filter-toggle {
    width: 100%;
  }

  .sj-density-control {
    justify-content: space-between;
  }

  .sj-opportunity-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .sj-table-card--compact .sj-opportunity-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .sj-card-select {
    grid-row: auto;
  }

  .sj-opportunity-card__right {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .sj-opportunity-card__continue {
    width: 100%;
  }
}

.sj-table-brief {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.sj-table-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.sj-summary-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}

.sj-summary-inline span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sj-summary-inline span + span::before {
  width: 4px;
  height: 4px;
  margin-right: 6px;
  border-radius: 999px;
  background: rgba(107, 114, 128, 0.46);
  content: "";
}

.sj-summary-inline strong {
  color: var(--brand-600, #0F7F97);
  font-weight: var(--fw-heavy);
}

.sj-inline-insight {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--text-muted, #6b7280);
  text-align: left;
}

.sj-inline-insight strong {
  color: var(--text-heading, #14213d);
  font-weight: var(--fw-heavy);
}

.sj-inline-spark {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--brand-400, #1C9AB0);
}

.sj-inline-spark svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* V2 All jobs correction: 3-zone saved-job rows, no horizontal table scroll */
.sj-jobs-list {
  overflow: visible;
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 32, 45, 0.035);
}

.sj-jobs-list__head {
  display: none;
}

.sj-job-group {
  gap: 0;
  margin: 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.06);
}

.sj-job-group:last-child {
  border-bottom: 0;
}

.sj-job-group__header,
.sj-opportunity-card.sj-job-list-row,
.sj-table-card--compact .sj-opportunity-card.sj-job-list-row,
.sj-table-card--compact .sj-job-list-row {
  min-width: 0;
}

.sj-job-group__header {
  min-height: 34px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.05);
  background: rgba(248, 250, 248, 0.72);
}

.sj-job-group__body {
  gap: 0;
}

.sj-opportunity-card.sj-job-list-row,
.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  display: grid;
  grid-template-columns: minmax(320px, 1.8fr) minmax(130px, 0.65fr) minmax(210px, 0.95fr);
  gap: 22px;
  align-items: center;
  min-height: 82px;
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.06);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}

.sj-opportunity-card.sj-job-list-row:last-child {
  border-bottom: 0;
}

.sj-opportunity-card.sj-job-list-row:hover {
  background: rgba(22, 140, 164, 0.035);
  box-shadow: none;
  transform: none;
}

.sj-job-list-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.sj-job-list-stage-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sj-opportunity-card__identity h3 {
  overflow: visible;
  margin: 0 0 3px;
  color: #17231f;
  font-size: 15px;
  font-weight: var(--fw-heavy);
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}

.sj-opportunity-card__identity p {
  overflow: visible;
  margin: 0;
  color: rgba(20, 32, 45, 0.62);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
}

.sj-opportunity-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: rgba(20, 32, 45, 0.50);
  font-size: 12px;
  line-height: 1.35;
}

.sj-opportunity-card__meta span + span::before {
  width: 3px;
  height: 3px;
  margin-right: 8px;
  background: rgba(20, 32, 45, 0.30);
}

.sj-job-list-next {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sj-job-list-next span {
  color: rgba(20, 32, 45, 0.48);
  font-size: 12px;
  font-weight: var(--fw-heavy);
  letter-spacing: 0;
}

.sj-job-list-next strong {
  color: #1f342d;
  font-size: 14px;
  font-weight: var(--fw-heavy);
  line-height: 1.25;
}

.sj-job-list-side {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.sj-job-list-status {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: rgba(20, 32, 45, 0.66);
  font-size: 12px;
  line-height: 1.35;
}

.sj-job-list-status strong {
  color: rgba(20, 32, 45, 0.84);
  font-weight: var(--fw-heavy);
}

.sj-job-list-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.sj-card-menu__trigger {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.sj-opportunity-card__continue,
.sj-table-card--compact .sj-opportunity-card__continue {
  width: auto;
  min-width: 86px;
  min-height: 32px;
  height: 32px;
  padding: 0 13px;
  border-color: rgba(22, 140, 164, 0.18);
  border-radius: 11px;
  color: #2f5549;
  background: #fff;
  font-size: 12px;
  font-weight: var(--fw-heavy);
  white-space: nowrap;
}

.sj-opportunity-card__continue:hover,
.sj-opportunity-card__continue:focus-visible {
  color: #fff;
  background: #168CA4;
}

.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  grid-template-columns: minmax(300px, 1.8fr) minmax(120px, 0.62fr) minmax(200px, 0.9fr);
  gap: 18px;
  min-height: 70px;
  padding: 11px 16px;
}

.sj-table-card--compact .sj-opportunity-card__identity h3 {
  font-size: 14px;
}

.sj-table-card--compact .sj-opportunity-card__identity p,
.sj-table-card--compact .sj-opportunity-card__meta,
.sj-table-card--compact .sj-job-list-status {
  font-size: 12px;
}

.sj-table-card--compact .sj-job-list-next strong {
  font-size: 13px;
}

@media (max-width: 980px) {
  .sj-opportunity-card.sj-job-list-row,
  .sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid rgba(30, 41, 59, 0.08);
    border-radius: 16px;
  }

  .sj-job-list-next {
    padding-top: 2px;
  }

  .sj-job-list-side {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 560px) {
  .sj-job-list-side {
    grid-template-columns: 1fr;
  }

  .sj-job-list-actions {
    justify-content: flex-start;
  }
}

/* Absolute final V2 All jobs management polish. */
.sj-list-controls {
  padding: 10px;
  border-color: rgba(92, 77, 67, 0.09);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20, 32, 45, 0.035);
}

.sj-table-toolbar {
  padding-bottom: 8px;
}

.sj-view-tabs button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}

.sj-filter-toggle,
.sj-dropdown-trigger,
.sj-density-control {
  min-height: 32px;
  border-radius: 11px;
}

.sj-job-group__header {
  min-height: 32px;
  padding: 0 14px;
  background: #fff;
  border-bottom-color: rgba(30, 41, 59, 0.055);
}

.sj-job-group__header:hover {
  background: rgba(22, 140, 164, 0.025);
}

.sj-job-group__title {
  color: rgba(23, 35, 31, 0.90);
  font-size: 13px;
  font-weight: var(--fw-heavy);
}

.sj-job-group__count {
  color: rgba(20, 32, 45, 0.50);
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-opportunity-card.sj-job-list-row,
.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  min-height: 76px;
  padding: 13px 16px;
}

.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  min-height: 68px;
  padding: 10px 14px;
}

.sj-opportunity-card.sj-job-list-row:focus-within {
  background: rgba(22, 140, 164, 0.035);
  outline: 2px solid rgba(22, 140, 164, 0.14);
  outline-offset: -2px;
}

.sj-row-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.sj-opportunity-card.sj-job-list-row:hover .sj-row-quick-actions,
.sj-opportunity-card.sj-job-list-row:focus-within .sj-row-quick-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.sj-row-quick-action {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(20, 32, 45, 0.78);
  background: transparent;
  font-size: 12px;
  font-weight: var(--fw-heavy);
  white-space: nowrap;
  cursor: pointer;
}

.sj-row-quick-action:hover,
.sj-row-quick-action:focus-visible {
  color: #2f5549;
  background: rgba(22, 140, 164, 0.08);
  outline: none;
}

.sj-card-menu__trigger {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.sj-card-menu__popover {
  min-width: 190px;
  padding: 6px;
}

.sj-card-menu__popover button {
  min-height: 34px;
  border-radius: 9px;
}

.sj-card-menu__popover button.is-danger {
  margin-top: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(159, 18, 57, 0.12);
  color: #9f1239;
}

.sj-card-menu__popover button.is-danger:hover,
.sj-card-menu__popover button.is-danger:focus-visible {
  background: rgba(159, 18, 57, 0.07);
}

.sj-bulk-bar {
  gap: 8px;
  padding: 8px 10px;
  border-color: rgba(22, 140, 164, 0.14);
  border-radius: 14px;
  background: rgba(22, 140, 164, 0.045);
}

.sj-bulk-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(20, 32, 45, 0.72);
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-bulk-status select {
  min-height: 34px;
  max-width: 150px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(92, 77, 67, 0.14);
  border-radius: 10px;
  color: #1f342d;
  background: #fff;
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

@media (max-width: 980px) {
  .sj-row-quick-actions {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .sj-list-controls {
    padding: 8px;
  }
}

@media (max-width: 640px) {
  .sj-row-quick-actions,
  .sj-job-list-actions {
    flex-wrap: wrap;
  }

  .sj-bulk-status {
    width: 100%;
  }

  .sj-bulk-status select {
    max-width: none;
    flex: 1;
  }
}

/* True EOF override: All Jobs Manage mode must beat legacy repeated blocks. */
.jobs-bulk-toolbar.sj-bulk-bar {
  position: sticky;
  top: 12px;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(30, 41, 59, 0.075);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(36, 56, 77, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.jobs-bulk-toolbar[hidden],
.jobs-bulk-actions[hidden],
.jobs-bulk-actions [hidden] {
  display: none !important;
}

.jobs-bulk-selection,
.jobs-bulk-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.jobs-bulk-delete {
  color: #b42318 !important;
  border-color: rgba(180, 35, 24, 0.20) !important;
  background: rgba(180, 35, 24, 0.035) !important;
}

.jobs-bulk-delete:hover,
.jobs-bulk-delete:focus-visible {
  color: #912018 !important;
  border-color: rgba(180, 35, 24, 0.30) !important;
  background: rgba(180, 35, 24, 0.075) !important;
}

.sj-table-card.is-managing .sj-job-list-actions,
.sj-table-card.is-managing .sj-row-quick-actions,
.sj-table-card.is-managing .sj-card-menu {
  display: none !important;
}

/* End-of-file override: contextual All Jobs Manage mode. Keep after legacy blocks. */
.sj-table-card.is-managing .sj-opportunity-card.sj-job-list-row,
.sj-table-card.is-managing.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.72fr) minmax(220px, 0.85fr);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.84);
}

.sj-table-card.is-managing .sj-opportunity-card.sj-job-list-row.is-selected {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(249, 253, 252, 0.84)),
    rgba(22, 140, 164, 0.045);
  box-shadow:
    inset 0 0 0 1px rgba(22, 140, 164, 0.16),
    0 10px 30px rgba(36, 56, 77, 0.055);
}

.sj-table-card.is-managing .sj-job-list-actions,
.sj-table-card.is-managing .sj-row-quick-actions,
.sj-table-card.is-managing .sj-card-menu {
  display: none !important;
}

.sj-table-card.is-managing .sj-job-list-stage-line {
  align-items: center;
  gap: 10px;
}

.sj-card-select,
.sj-group-select,
.jobs-bulk-select-all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(23, 33, 43, 0.68);
  font-size: 13px;
  font-weight: var(--fw-medium);
  cursor: pointer;
}

.sj-card-select input,
.sj-group-select input,
.jobs-bulk-select-all input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #168CA4;
  cursor: pointer;
}

.sj-card-select input:focus-visible,
.sj-group-select input:focus-visible,
.jobs-bulk-select-all input:focus-visible {
  outline: 3px solid rgba(22, 140, 164, 0.18);
  outline-offset: 2px;
}

.sj-job-group__header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  cursor: default;
}

.sj-job-group__toggle {
  min-height: 32px;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sj-job-group__toggle:focus-visible {
  outline: 3px solid rgba(22, 140, 164, 0.16);
  outline-offset: 3px;
  border-radius: 12px;
}

.sj-group-select {
  width: 28px;
  height: 28px;
  justify-content: center;
  flex: 0 0 auto;
}

.jobs-bulk-toolbar.sj-bulk-bar {
  position: sticky;
  top: 12px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(30, 41, 59, 0.075);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 10px 30px rgba(36, 56, 77, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.jobs-bulk-toolbar[hidden],
.jobs-bulk-actions[hidden],
.jobs-bulk-actions [hidden] {
  display: none !important;
}

.jobs-bulk-selection,
.jobs-bulk-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.jobs-bulk-count {
  color: rgba(20, 32, 45, 0.48) !important;
  font-size: 13px !important;
  font-weight: var(--fw-medium) !important;
  white-space: nowrap;
}

.jobs-bulk-actions button,
.jobs-bulk-move select {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(30, 41, 59, 0.075);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(20, 32, 45, 0.72);
  box-shadow: none;
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.jobs-bulk-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
}

.jobs-bulk-move select {
  appearance: none;
  min-width: 128px;
  padding: 0 30px 0 14px;
  background:
    linear-gradient(45deg, transparent 50%, rgba(20, 32, 45, 0.46) 50%) calc(100% - 17px) 15px / 5px 5px no-repeat,
    linear-gradient(135deg, rgba(20, 32, 45, 0.46) 50%, transparent 50%) calc(100% - 12px) 15px / 5px 5px no-repeat,
    rgba(255, 255, 255, 0.72);
}

.jobs-bulk-actions button:hover,
.jobs-bulk-move select:hover {
  border-color: rgba(22, 140, 164, 0.16);
  color: #168CA4;
  background-color: rgba(22, 140, 164, 0.045);
}

.jobs-bulk-delete {
  color: #b42318 !important;
  border-color: rgba(180, 35, 24, 0.20) !important;
  background: rgba(180, 35, 24, 0.035) !important;
}

.jobs-bulk-delete:hover,
.jobs-bulk-delete:focus-visible {
  color: #912018 !important;
  border-color: rgba(180, 35, 24, 0.30) !important;
  background: rgba(180, 35, 24, 0.075) !important;
}

.jobs-bulk-delete svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 820px) {
  .sj-table-card.is-managing .sj-opportunity-card.sj-job-list-row,
  .sj-table-card.is-managing.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .jobs-bulk-toolbar.sj-bulk-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .jobs-bulk-selection,
  .jobs-bulk-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* Final All Jobs bulk-management mode. */
.sj-table-card.is-managing .sj-opportunity-card.sj-job-list-row,
.sj-table-card.is-managing .sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  cursor: pointer;
}

.sj-table-card.is-managing .sj-opportunity-card.sj-job-list-row {
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.72fr) minmax(220px, 0.85fr);
  background: rgba(255, 255, 255, 0.84);
}

.sj-table-card.is-managing .sj-opportunity-card.sj-job-list-row.is-selected {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(249, 253, 252, 0.84)),
    rgba(22, 140, 164, 0.045);
  box-shadow:
    inset 0 0 0 1px rgba(22, 140, 164, 0.16),
    0 10px 30px rgba(36, 56, 77, 0.055);
}

.sj-table-card.is-managing .sj-job-list-actions,
.sj-table-card.is-managing .sj-row-quick-actions,
.sj-table-card.is-managing .sj-card-menu {
  display: none !important;
}

.sj-table-card.is-managing .sj-job-list-stage-line {
  align-items: center;
  gap: 10px;
}

.sj-card-select,
.sj-group-select,
.jobs-bulk-select-all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(23, 33, 43, 0.68);
  font-size: 13px;
  font-weight: var(--fw-medium);
  cursor: pointer;
}

.sj-card-select input,
.sj-group-select input,
.jobs-bulk-select-all input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #168CA4;
  cursor: pointer;
}

.sj-card-select input:focus-visible,
.sj-group-select input:focus-visible,
.jobs-bulk-select-all input:focus-visible {
  outline: 3px solid rgba(22, 140, 164, 0.18);
  outline-offset: 2px;
}

.sj-job-group__header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  cursor: default;
}

.sj-job-group__toggle {
  min-height: 32px;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sj-job-group__toggle:focus-visible {
  outline: 3px solid rgba(22, 140, 164, 0.16);
  outline-offset: 3px;
  border-radius: 12px;
}

.sj-group-select {
  width: 28px;
  height: 28px;
  justify-content: center;
  flex: 0 0 auto;
}

.jobs-bulk-toolbar {
  position: sticky;
  top: 12px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(30, 41, 59, 0.075);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 10px 30px rgba(36, 56, 77, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.jobs-bulk-toolbar[hidden],
.jobs-bulk-actions[hidden],
.jobs-bulk-actions [hidden] {
  display: none !important;
}

.jobs-bulk-selection,
.jobs-bulk-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.jobs-bulk-count {
  color: rgba(20, 32, 45, 0.48) !important;
  font-size: 13px !important;
  font-weight: var(--fw-medium) !important;
  white-space: nowrap;
}

.jobs-bulk-actions button,
.jobs-bulk-move select {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(30, 41, 59, 0.075);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(20, 32, 45, 0.72);
  box-shadow: none;
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.jobs-bulk-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
}

.jobs-bulk-move select {
  appearance: none;
  min-width: 128px;
  padding: 0 30px 0 14px;
  background:
    linear-gradient(45deg, transparent 50%, rgba(20, 32, 45, 0.46) 50%) calc(100% - 17px) 15px / 5px 5px no-repeat,
    linear-gradient(135deg, rgba(20, 32, 45, 0.46) 50%, transparent 50%) calc(100% - 12px) 15px / 5px 5px no-repeat,
    rgba(255, 255, 255, 0.72);
}

.jobs-bulk-actions button:hover,
.jobs-bulk-move select:hover {
  border-color: rgba(22, 140, 164, 0.16);
  color: #168CA4;
  background-color: rgba(22, 140, 164, 0.045);
}

.jobs-bulk-delete {
  color: #b42318 !important;
  border-color: rgba(180, 35, 24, 0.20) !important;
  background: rgba(180, 35, 24, 0.035) !important;
}

.jobs-bulk-delete:hover,
.jobs-bulk-delete:focus-visible {
  color: #912018 !important;
  border-color: rgba(180, 35, 24, 0.30) !important;
  background: rgba(180, 35, 24, 0.075) !important;
}

.jobs-bulk-delete svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 820px) {
  .sj-table-card.is-managing .sj-opportunity-card.sj-job-list-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .jobs-bulk-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .jobs-bulk-selection,
  .jobs-bulk-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* V2 Saved Job Workspace modal: tabbed, low-noise recruiter briefing. */
.sj-drawer-panel {
  position: relative;
  width: min(1080px, calc(100vw - 64px));
  max-width: 1080px;
  height: min(820px, calc(100vh - 56px));
  max-height: calc(100vh - 56px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(28px);
  box-shadow:
    0 40px 120px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sj-drawer-header {
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 34px 48px 18px;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(22px);
}

.sj-drawer-eyebrow {
  margin: 0 0 10px;
  color: rgba(23, 33, 43, 0.42);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sj-drawer-header h2 {
  max-width: 760px;
  color: #17212b;
  font-size: 30px;
  font-weight: var(--fw-semibold);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.sj-drawer-company-line,
.sj-drawer-header-meta {
  gap: 8px;
  margin: 9px 0 0;
  color: rgba(23, 33, 43, 0.58);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.sj-drawer-header-meta {
  display: flex;
  flex-wrap: wrap;
}

.sj-drawer-dot {
  color: rgba(23, 33, 43, 0.28);
}

.sj-drawer-toolbar {
  align-items: center;
  gap: 10px;
}

.sj-drawer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(23, 33, 43, 0.56);
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.sj-drawer-status .sj-dropdown-trigger {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(245, 247, 250, 0.86);
  color: #556070;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.sj-drawer-notes-trigger,
.sj-drawer-close,
.sj-drawer-more-trigger {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: rgba(23, 33, 43, 0.64);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 8px 24px rgba(0, 0, 0, 0.04);
}

.sj-drawer-notes-trigger {
  padding: 0 14px;
  font-size: 14px;
  font-weight: var(--fw-medium);
  cursor: pointer;
}

.sj-drawer-close,
.sj-drawer-more-trigger {
  width: 36px;
  height: 36px;
}

.sj-drawer-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  padding: 0 48px 22px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.38);
  scrollbar-width: none;
}

.sj-drawer-tabs::-webkit-scrollbar {
  display: none;
}

.sj-drawer-tabs button {
  height: 36px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 33, 43, 0.52);
  font-size: 14px;
  font-weight: var(--fw-medium);
  cursor: pointer;
}

.sj-drawer-tabs button.is-active {
  background: rgba(255, 255, 255, 0.72);
  color: #17212b;
  box-shadow:
    0 8px 24px rgba(31, 42, 55, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.sj-drawer-content {
  flex: 1 1 auto;
  display: block;
  overflow-y: auto;
  padding: 8px 48px 118px;
  background: transparent;
}

.sj-drawer-tab-panel {
  max-width: 880px;
  margin: 0 auto;
}

.sj-drawer-tab-panel[hidden] {
  display: none !important;
}

.sj-drawer-tab-panel.is-active {
  display: block;
}

.sj-briefing-hero {
  padding: 36px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 18px 58px rgba(20, 32, 45, 0.08);
}

.sj-briefing-hero h3,
.sj-tab-heading h3,
.sj-open-section h3 {
  margin: 0;
  color: #17212b;
  font-size: 20px;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.sj-briefing-hero .sj-assessment-summary {
  max-width: 740px;
  margin: 16px 0 0;
  color: #5b6675 !important;
  font-size: 16px !important;
  font-weight: 400;
  line-height: 1.7 !important;
}

.sj-briefing-next {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 33, 43, 0.06);
}

.sj-briefing-next span {
  display: block;
  color: #8993a4;
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.sj-briefing-next strong {
  display: block;
  margin-top: 5px;
  color: #17212b;
  font-size: 18px;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
}

.sj-briefing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sj-open-section {
  margin-top: 44px;
}

.sj-open-section p,
.sj-tab-heading p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #5b6675;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

.sj-tab-heading {
  margin: 0 0 38px;
}

.sj-signal-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.sj-signal-line li {
  display: inline;
  color: #5b6675;
  font-size: 15px;
  line-height: 1.7;
}

.sj-signal-line li + li::before {
  content: "\00b7";
  margin: 0 10px;
  color: rgba(23, 33, 43, 0.28);
}

.sj-quick-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 0;
}

.sj-quick-facts div {
  min-width: 0;
}

.sj-quick-facts dt,
.sj-source-facts dt {
  color: #8993a4;
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.sj-quick-facts dd,
.sj-source-facts dd {
  margin: 5px 0 0;
  color: #17212b;
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: 1.45;
}

.sj-drawer-tab-panel .sj-skill-list,
.sj-drawer-tab-panel .sj-coach-list,
.sj-drawer-tab-panel .sj-next-step-list {
  margin-top: 16px;
}

.sj-drawer-tab-panel .sj-coach-list li,
.sj-drawer-tab-panel .sj-next-step-list li {
  color: #5b6675;
  font-size: 15px;
  line-height: 1.7;
}

.sj-document-panel {
  display: grid;
  gap: 18px;
}

.sj-document-summary,
.sj-document-row {
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 10px 30px rgba(0, 0, 0, 0.04);
}

.sj-job-post-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: 36px;
}

.sj-source-facts {
  min-width: 0;
  align-self: start;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
}

.sj-source-facts h4,
.sj-job-fact-group h4 {
  margin: 0 0 16px;
  color: #17212b;
  font-size: 16px;
  font-weight: var(--fw-semibold);
}

.sj-source-facts .sj-detail-list {
  display: grid;
  gap: 14px;
}

.sj-source-facts .sj-detail-list div {
  display: block;
  padding: 0;
  border: 0;
}

.sj-original-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: #168CA4;
  font-size: 14px;
  font-weight: var(--fw-medium);
  text-decoration: none;
}

.sj-original-link:hover {
  text-decoration: underline;
}

.sj-job-post-main .sj-open-section {
  margin-top: 0;
}

.sj-job-fact-group + .sj-job-fact-group {
  margin-top: 34px;
  padding-top: 0;
  border-top: 0;
}

.sj-original-post {
  margin-top: 34px;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
}

.sj-original-post summary {
  padding: 0 18px;
}

.sj-drawer-support {
  position: absolute;
  z-index: 12;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, calc(100vw - 48px));
  padding: 28px;
  overflow-y: auto;
  border-left: 1px solid rgba(23, 33, 43, 0.06);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(26px);
  box-shadow: -28px 0 70px rgba(15, 23, 42, 0.12);
}

.sj-drawer-support[hidden] {
  display: none !important;
}

.sj-drawer-support-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.sj-drawer-support-header h3 {
  margin: 0;
  color: #17212b;
  font-size: 20px;
  font-weight: var(--fw-semibold);
}

.sj-drawer-support .sj-coach-notes textarea {
  min-height: 120px;
  border: 0;
  border-radius: 20px;
  background: rgba(245, 247, 250, 0.8);
  color: #17212b;
  font-size: 15px;
  line-height: 1.6;
}

.sj-activity-drawer-section {
  margin-top: 34px;
}

.sj-activity-drawer-section h4 {
  margin: 0 0 12px;
  color: #17212b;
  font-size: 16px;
  font-weight: var(--fw-semibold);
}

.sj-drawer-footer {
  flex: 0 0 auto;
  padding: 18px 32px 18px 48px;
  border-top: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  box-shadow:
    0 -20px 60px rgba(36, 56, 77, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.sj-job-next-action span {
  color: rgba(23, 33, 43, 0.42);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sj-job-next-action strong {
  color: #17212b;
  font-size: 14px;
  font-weight: var(--fw-semibold);
}

.sj-drawer-footer .sj-button,
.sj-briefing-actions .sj-button {
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: var(--fw-medium);
}

.sj-drawer-footer .sj-button--primary,
.sj-briefing-actions .sj-button--primary {
  border: 0;
  background: linear-gradient(180deg, #1C9AB0 0%, #168CA4 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(22, 140, 164, 0.16);
}

.sj-drawer-footer .sj-button--secondary,
.sj-briefing-actions .sj-button--secondary {
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.7);
  color: #445066;
}

.sj-drawer-footer .sj-button--ghost,
.sj-briefing-actions .sj-button--ghost {
  border-color: transparent;
  background: transparent;
  color: rgba(23, 33, 43, 0.62);
  box-shadow: none;
}

@media (max-width: 920px) {
  .sj-drawer-panel {
    width: min(calc(100vw - 24px), 720px);
    height: min(92vh, 840px);
    border-radius: 28px;
  }

  .sj-drawer-header {
    grid-template-columns: 1fr;
    padding: 26px 24px 16px;
  }

  .sj-drawer-toolbar {
    justify-content: space-between;
    /* Let the toolbar controls wrap on narrow screens instead of overflowing
       the panel's rounded (overflow:hidden) edge, which clipped the close
       button. Only wraps when the row can't fit, so wider screens are
       unaffected; wrapping also lets the header's 1fr column shrink to fit. */
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  /* Keep the close button at the trailing edge whether the toolbar is on one
     row or has wrapped it onto its own line. */
  .sj-drawer-toolbar .sj-drawer-close {
    margin-left: auto;
  }

  .sj-drawer-tabs {
    padding: 0 24px 18px;
  }

  .sj-drawer-content {
    padding: 8px 24px 118px;
  }

  .sj-quick-facts,
  .sj-job-post-layout {
    grid-template-columns: 1fr;
  }

  .sj-job-action-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .sj-footer-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .sj-drawer-header h2 {
    font-size: 24px;
  }

  .sj-briefing-hero {
    padding: 26px;
    border-radius: 26px;
  }

  .sj-drawer-footer .sj-button,
  .sj-briefing-actions .sj-button {
    width: auto;
  }
}

/* V2 Saved Job Workspace modal polish: strict grid alignment and document card discipline. */
.sj-drawer-panel {
  --modal-x: 48px;
  --modal-footer-height: 76px;
}

.sj-drawer-header {
  padding: 34px var(--modal-x) 18px;
}

.sj-drawer-tabs {
  height: 56px;
  align-items: center;
  gap: 8px;
  padding: 0 var(--modal-x);
  background: rgba(248, 250, 250, 0.42);
  box-shadow: inset 0 1px 0 rgba(23, 33, 43, 0.035);
}

.sj-drawer-tabs button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: rgba(23, 33, 43, 0.48);
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: -0.01em;
}

.sj-drawer-tabs button.is-active {
  background: rgba(255, 255, 255, 0.76);
  color: #17212b;
  box-shadow:
    0 8px 24px rgba(31, 42, 55, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sj-drawer-content {
  padding: 34px var(--modal-x) calc(var(--modal-footer-height) + 44px);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 33, 43, 0.16) transparent;
}

.sj-drawer-content::-webkit-scrollbar {
  width: 8px;
}

.sj-drawer-content::-webkit-scrollbar-track {
  background: transparent;
}

.sj-drawer-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(23, 33, 43, 0.14);
}

.sj-drawer-content::-webkit-scrollbar-thumb:hover {
  background: rgba(23, 33, 43, 0.22);
}

.sj-drawer-content-inner {
  max-width: 820px;
}

.sj-drawer-cv-workflow[hidden] {
  display: none !important;
}

.sj-drawer--cv-workflow .sj-drawer-tabs,
.sj-drawer--cv-workflow .sj-drawer-source-actions,
.sj-drawer--cv-workflow .sj-drawer-header-meta,
.sj-drawer--cv-workflow .sj-drawer-status,
.sj-drawer--cv-workflow .sj-drawer-notes-trigger,
.sj-drawer--cv-workflow .sj-drawer-more {
  display: none !important;
}

.sj-drawer--cv-workflow .sj-drawer-panel {
  width: min(760px, calc(100vw - 72px));
}

.sj-drawer--cv-workflow .sj-drawer-header {
  padding: 30px 36px 20px;
  background: rgba(255, 255, 255, 0.94);
}

.sj-drawer--cv-workflow .sj-drawer-header h2 {
  max-width: 560px;
  font-size: 30px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.035em;
}

.sj-drawer--cv-workflow .sj-drawer-eyebrow {
  color: rgba(23, 33, 43, 0.42);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
}

.sj-drawer--cv-workflow .sj-drawer-company-line {
  margin-top: 8px;
  color: rgba(23, 33, 43, 0.56);
  font-size: 14px;
}

.sj-drawer--cv-workflow .sj-drawer-content {
  display: block;
  padding: 28px 36px calc(var(--modal-footer-height) + 34px);
}

.sj-drawer-cv-workflow {
  width: min(620px, 100%);
  margin: 0 auto;
  animation: sj-cv-workflow-enter 220ms cubic-bezier(.22, 1, .36, 1) both;
}

.sj-cv-workflow-heading {
  margin-bottom: 18px;
}

.sj-cv-workflow-heading h3,
.sj-cv-empty-state h3,
.sj-cv-workflow-loading h3 {
  margin: 0;
  color: #17212b;
  font-size: 20px;
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.sj-cv-workflow-heading p,
.sj-cv-empty-state p,
.sj-cv-workflow-loading p {
  margin: 8px 0 0;
  color: rgba(23, 33, 43, 0.58);
  font-size: 14px;
  line-height: 1.6;
}

.sj-cv-selection-list {
  display: grid;
  gap: 10px;
}

.sj-cv-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 16px 18px;
  border: 1px solid rgba(30, 41, 59, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 10px 30px rgba(20, 32, 45, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.sj-cv-choice strong {
  display: block;
  overflow: hidden;
  color: #17212b;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sj-cv-choice p {
  margin: 5px 0 0;
  color: rgba(23, 33, 43, 0.52);
  font-size: 13px;
  line-height: 1.45;
}

.sj-cv-upload-link {
  margin-top: 16px;
}

.sj-cv-workflow-loading,
.sj-cv-empty-state {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  text-align: center;
}

.sj-cv-empty-state--error {
  background: rgba(255, 250, 250, 0.78);
}

.sj-cv-error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.sj-inline-loader {
  width: 28px;
  height: 28px;
  margin-bottom: 20px;
  border: 2px solid rgba(24, 140, 164, 0.12);
  border-top-color: rgba(24, 140, 164, 0.72);
  border-radius: 999px;
  animation: sj-cv-loading-spin 900ms linear infinite;
}

@keyframes sj-cv-loading-spin {
  to { transform: rotate(360deg); }
}

@keyframes sj-cv-workflow-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .sj-drawer--cv-workflow .sj-drawer-panel {
    width: min(100vw - 24px, 760px);
  }

  .sj-drawer--cv-workflow .sj-drawer-header,
  .sj-drawer--cv-workflow .sj-drawer-content {
    padding-left: 22px;
    padding-right: 22px;
  }

  .sj-cv-choice {
    grid-template-columns: 1fr;
  }

  .sj-cv-choice .sj-button {
    justify-self: start;
  }
}

.sj-drawer-loading-body[hidden],
.sj-drawer-loading-fallback[hidden] {
  display: none !important;
}

.sj-drawer--loading .sj-drawer-tabs,
.sj-drawer--loading .sj-drawer-title-block,
.sj-drawer--loading .sj-drawer-content-inner,
.sj-drawer--loading .sj-drawer-footer,
.sj-drawer--loading .sj-drawer-source-actions,
.sj-drawer--loading .sj-drawer-company-line,
.sj-drawer--loading .sj-drawer-header-meta,
.sj-drawer--loading .sj-drawer-status,
.sj-drawer--loading .sj-drawer-notes-trigger,
.sj-drawer--loading .sj-drawer-more {
  display: none !important;
}

.sj-drawer--loading .sj-drawer-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  min-height: 0;
  display: flex;
  justify-content: flex-end;
  padding: 22px 22px 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.sj-drawer--loading .sj-drawer-toolbar {
  pointer-events: auto;
}

.sj-drawer--loading .sj-drawer-close {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(30, 41, 59, 0.08) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62) !important;
  color: rgba(20, 32, 45, 0.48) !important;
  box-shadow: none !important;
}

.sj-drawer--loading .sj-drawer-content {
  display: block;
  padding: 0;
  overflow: hidden;
}

.sj-drawer--loading-error .sj-drawer-content {
  padding: 72px var(--modal-x) 48px;
  overflow: auto;
}

.sj-drawer-loading-body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 0;
  padding: 72px 40px;
  margin: 0;
  text-align: center;
  pointer-events: none;
}

.sj-drawer--loading-error .sj-drawer-loading-body {
  position: static;
  width: min(560px, 100%);
  padding: 0;
  margin: 0 auto;
  pointer-events: auto;
}

.sj-drawer-loading-mark {
  position: relative;
  width: 30px;
  height: 30px;
  margin: 0 0 22px;
  border-radius: 999px;
  background: transparent;
}

.sj-drawer-loading-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(24, 140, 164, 0.12);
  border-top-color: rgba(24, 140, 164, 0.72);
  border-radius: 999px;
  animation: sj-drawer-loading-spin 900ms linear infinite;
}

.sj-drawer-loading-body h3 {
  margin: 0;
  color: rgba(20, 32, 45, 0.82);
  font-size: 20px;
  font-weight: var(--fw-bold);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.sj-drawer-loading-body > p {
  max-width: 360px;
  margin: 8px auto 0;
  color: rgba(20, 32, 45, 0.46);
  font-size: 14px;
  line-height: 1.5;
}

.sj-drawer-loading-fallback {
  width: min(560px, 100%);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(23, 33, 43, 0.07);
  text-align: left;
}

.sj-drawer-loading-fallback label {
  display: block;
  margin-bottom: 10px;
  color: rgba(23, 33, 43, 0.70);
  font-size: 13px;
  font-weight: var(--fw-semibold);
}

.sj-drawer-loading-fallback textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  padding: 16px;
  border: 1px solid rgba(23, 33, 43, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: #17212b;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.sj-drawer-loading-fallback textarea:focus {
  outline: none;
  border-color: rgba(22, 140, 164, 0.34);
  box-shadow:
    0 0 0 4px rgba(22, 140, 164, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.sj-drawer-loading-fallback p {
  margin: 10px 0 0;
  color: rgba(23, 33, 43, 0.54);
  font-size: 13px;
  line-height: 1.5;
}

.sj-drawer-loading-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@keyframes sj-drawer-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sj-drawer-cv-workflow,
  .sj-inline-loader,
  .sj-drawer-loading-mark::after {
    animation: none !important;
  }
}

.sj-drawer-tab-panel {
  max-width: none;
  margin: 0;
}

.sj-tab-heading {
  margin-bottom: 34px;
}

.sj-tab-heading h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}

.sj-tab-heading p {
  max-width: 620px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(23, 33, 43, 0.58);
}

.sj-document-panel {
  display: grid;
  gap: 16px;
}

.sj-document-summary {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 18px;
  padding: 24px 28px;
  border: 0;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(30, 82, 70, 0.82);
  box-shadow:
    0 14px 42px rgba(36, 56, 77, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.sj-document-summary p {
  margin: 0;
  color: rgba(30, 82, 70, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.sj-document-row {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 28px 30px;
  border: 0;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 50px rgba(36, 56, 77, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.sj-document-row__content {
  min-width: 0;
}

.sj-document-row__label {
  display: block;
  margin-bottom: 6px;
  color: rgba(23, 33, 43, 0.42);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.sj-document-row strong {
  display: block;
  color: #17212b;
  font-size: 16px;
  font-weight: var(--fw-bold);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.sj-document-row p {
  margin: 4px 0 0;
  color: rgba(23, 33, 43, 0.52);
  font-size: 13px;
  line-height: 1.45;
}

.sj-document-row__actions {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.sj-document-button {
  height: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: rgba(23, 33, 43, 0.68);
  font-size: 13px;
  font-weight: var(--fw-medium);
  line-height: 1;
  box-shadow:
    0 6px 18px rgba(31, 42, 55, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.sj-document-button--primary {
  color: rgba(17, 78, 91, 0.92);
}

.sj-document-overflow {
  position: relative;
}

.sj-document-overflow summary {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: rgba(23, 33, 43, 0.58);
  font-size: 18px;
  font-weight: var(--fw-heavy);
  line-height: 1;
  list-style: none;
  cursor: pointer;
  box-shadow:
    0 6px 18px rgba(31, 42, 55, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.sj-document-overflow summary::-webkit-details-marker {
  display: none;
}

.sj-document-overflow-menu {
  position: absolute;
  z-index: 4;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 18px 46px rgba(31, 42, 55, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sj-document-overflow-menu .sj-document-button {
  width: 100%;
  justify-content: flex-start;
  box-shadow: none;
  background: transparent;
}

.sj-drawer-footer {
  min-height: var(--modal-footer-height);
  padding: 18px 32px 18px var(--modal-x);
}

@media (max-width: 920px) {
  .sj-drawer-panel {
    --modal-x: 24px;
    --modal-footer-height: 96px;
  }
}

@media (max-width: 640px) {
  .sj-document-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
  }

  .sj-document-row__actions {
    justify-content: flex-start;
  }
}

/* Saved Job Workspace: understand-first modal IA. Keep before All jobs page overrides. */
.sj-drawer-source-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
}

.sj-original-link--header {
  margin: 0;
  color: rgba(22, 140, 164, 0.94);
  font-size: 14px;
}

.sj-drawer-details-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(23, 33, 43, 0.52);
  font: inherit;
  font-size: 14px;
  font-weight: var(--fw-medium);
  cursor: pointer;
}

.sj-drawer-details-link:hover {
  color: #17212b;
  text-decoration: underline;
}

.sj-job-overview {
  max-width: 820px;
  padding: 36px 40px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 18px 58px rgba(20, 32, 45, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.sj-overview-section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(23, 33, 43, 0.06);
}

.sj-overview-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.sj-overview-role h3 {
  max-width: 720px;
  margin: 0;
  color: #17212b;
  font-size: 22px;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.sj-overview-section h3 {
  margin: 0;
  color: #17212b;
  font-size: 18px;
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  letter-spacing: -0.018em;
}

.sj-overview-priorities {
  display: grid;
  gap: 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: recruiter-priority;
}

.sj-overview-priorities li {
  position: relative;
  min-height: 34px;
  padding-left: 42px;
  counter-increment: recruiter-priority;
}

.sj-overview-priorities li::before {
  content: counter(recruiter-priority);
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(22, 140, 164, 0.08);
  color: rgba(22, 140, 164, 0.95);
  font-size: 12px;
  font-weight: var(--fw-bold);
}

.sj-overview-priorities strong {
  display: block;
  color: #17212b;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
}

.sj-overview-priorities span {
  display: block;
  max-width: 620px;
  margin-top: 4px;
  color: rgba(23, 33, 43, 0.62);
  font-size: 15px;
  line-height: 1.65;
}

.sj-overview-evidence {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.sj-overview-evidence li {
  position: relative;
  padding-left: 18px;
  color: rgba(23, 33, 43, 0.66);
  font-size: 15px;
  line-height: 1.65;
}

.sj-overview-evidence li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(22, 140, 164, 0.52);
}

.sj-critical-check {
  padding: 22px 24px;
  border-top: 0;
  border-radius: 24px;
  background: rgba(255, 248, 235, 0.72);
}

.sj-critical-check p {
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(23, 33, 43, 0.68);
  font-size: 15px;
  line-height: 1.65;
}

.sj-overview-details {
  margin-top: 30px;
  border-radius: 24px;
  background: rgba(248, 250, 250, 0.62);
}

.sj-overview-details summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 20px;
  color: rgba(23, 33, 43, 0.66);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  list-style: none;
}

.sj-overview-details summary::-webkit-details-marker {
  display: none;
}

.sj-overview-details-body {
  display: grid;
  gap: 28px;
  padding: 0 22px 24px;
}

.sj-overview-details .sj-job-post-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
}

.sj-overview-details .sj-detail-list div {
  padding: 0;
  border: 0;
}

.sj-overview-details .sj-job-fact-group + .sj-job-fact-group {
  margin-top: 0;
}

.sj-overview-details .sj-original-post {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.56);
}

.sj-overview-details .sj-original-post summary {
  min-height: 48px;
  padding: 0 18px;
}

.sj-drawer-tab-panel[data-drawer-panel="documents"] .sj-tab-heading {
  margin-bottom: 20px;
}

.sj-drawer-tab-panel[data-drawer-panel="documents"] .sj-document-panel {
  gap: 12px;
}

.sj-drawer-tab-panel[data-drawer-panel="documents"] .sj-document-row {
  min-height: 98px;
  padding: 22px 24px;
  border-radius: 24px;
  box-shadow:
    0 12px 36px rgba(36, 56, 77, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.sj-drawer-tab-panel[data-drawer-panel="interview"] .sj-overview-details {
  margin-top: 0;
}

.sj-drawer-tab-panel[data-drawer-panel="interview"] .sj-overview-details-body p {
  margin: 0;
  color: rgba(23, 33, 43, 0.62);
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .sj-job-overview {
    padding: 28px 24px;
    border-radius: 28px;
  }

  .sj-overview-role h3 {
    font-size: 20px;
  }

  .sj-overview-priorities li {
    padding-left: 36px;
  }

  .sj-overview-details .sj-job-post-facts {
    grid-template-columns: 1fr;
  }
}

/* Absolute final V2 premium All jobs refresh. Keep this last. */
body,
.sb-front-page,
.sb-main {
  background: #f7f8f9 !important;
}

.saved-jobs-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0 64px;
  color: #101828;
  font-family: Inter, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.saved-jobs-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 18px 0 28px;
}

.saved-jobs-header h1 {
  margin: 0;
  color: #101828;
  font-family: Inter, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(42px, 4vw, 58px);
  font-weight: var(--fw-medium);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.saved-jobs-header p {
  max-width: 560px;
  margin: 8px 0 0;
  color: #5b6675;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

.sj-button {
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: var(--fw-medium);
}

.sj-button--primary {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #1C9AB0 0%, #168CA4 100%);
  box-shadow: none;
}

.sj-button--secondary,
.sj-filter-toggle,
.sj-dropdown-trigger,
.sj-clear-filters {
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #445066;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  font-size: 14px;
  font-weight: var(--fw-medium);
}

.sj-table-card,
.sj-empty-board,
.sj-modal-panel,
.sj-drawer-panel,
.sj-fit-panel,
.sj-profile-panel,
.sj-toast {
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 8px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
}

.sj-table-card {
  max-width: 1180px;
  margin: 0 auto;
  overflow: visible;
}

.sj-table-toolbar {
  align-items: center;
  padding: 28px 28px 14px;
}

.sj-summary-inline {
  color: #101828;
  font-size: 16px;
  font-weight: var(--fw-semibold);
}

.sj-table-brief p,
.sj-table-footer {
  color: #8993a4;
  font-size: 13px;
  font-weight: 400;
}

.sj-list-controls {
  gap: 12px;
  margin: 0 28px 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sj-search,
.sj-search-wide {
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.02);
}

.sj-search input {
  color: #101828;
  font-size: 14px;
  font-weight: 400;
}

.sj-search input::placeholder {
  color: #8993a4;
}

.sj-view-tabs {
  gap: 6px;
  padding: 0;
}

.sj-view-tabs button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #5b6675;
  background: transparent;
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.sj-view-tabs button strong {
  min-width: 20px;
  min-height: 20px;
  color: #8993a4;
  background: #f5f7fa;
  font-size: 12px;
  font-weight: var(--fw-medium);
}

.sj-view-tabs button.is-active {
  border-color: rgba(22, 140, 164, 0.14);
  color: #168CA4;
  background: rgba(22, 140, 164, 0.08);
}

.sj-filter-panel {
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

.sj-filter-panel h2,
.sj-job-list-next span {
  color: #8993a4;
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.01em;
}

.sj-jobs-list {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sj-job-group {
  margin: 0;
  border: 0;
}

.sj-job-group + .sj-job-group {
  margin-top: 24px;
}

.sj-job-group__header {
  min-height: 44px;
  padding: 0 28px;
  border: 0;
  background: transparent;
}

.sj-job-group__title {
  color: #101828;
  font-size: 16px;
  font-weight: var(--fw-semibold);
}

.sj-job-group__count {
  color: #8993a4;
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.sj-job-group__body {
  padding: 0 20px 6px;
}

.sj-opportunity-card.sj-job-list-row,
.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(150px, 0.62fr) minmax(230px, 0.9fr);
  gap: 24px;
  align-items: center;
  min-height: 82px;
  padding: 16px 8px;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sj-opportunity-card.sj-job-list-row:hover,
.sj-opportunity-card.sj-job-list-row:focus-within {
  background: rgba(255, 255, 255, 0.46);
  outline: 0;
}

.sj-stage-chip {
  min-height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #556070;
  background: #f5f7fa;
  font-size: 12px;
  font-weight: var(--fw-medium);
}

.sj-stage-chip--preparation,
.sj-stage-chip--interview,
.sj-stage-chip--decision {
  color: #168CA4;
  background: rgba(22, 140, 164, 0.12);
}

.sj-opportunity-card__identity h3,
.sj-table-card--compact .sj-opportunity-card__identity h3 {
  margin: 0 0 3px;
  color: #101828;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.sj-opportunity-card__identity p,
.sj-table-card--compact .sj-opportunity-card__identity p,
.sj-job-list-status {
  color: #5b6675;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.sj-opportunity-card__meta {
  color: #8993a4;
  font-size: 13px;
  font-weight: 400;
}

.sj-job-list-next strong,
.sj-table-card--compact .sj-job-list-next strong {
  color: #101828;
  font-size: 15px;
  font-weight: var(--fw-semibold);
}

.sj-job-list-status strong {
  color: #445066;
  font-weight: var(--fw-medium);
}

.sj-opportunity-card__continue,
.sj-table-card--compact .sj-opportunity-card__continue,
.sj-card-menu__trigger,
.sj-row-quick-action {
  border-radius: 999px;
  box-shadow: none;
}

.sj-opportunity-card__continue,
.sj-table-card--compact .sj-opportunity-card__continue {
  min-width: 88px;
  min-height: 36px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(0, 0, 0, 0.055);
  color: #445066;
  background: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.sj-opportunity-card__continue:hover,
.sj-opportunity-card__continue:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, #1C9AB0 0%, #168CA4 100%);
}

.sj-row-quick-action {
  color: #8993a4;
  background: transparent;
  font-size: 12px;
  font-weight: var(--fw-medium);
}

.sj-card-menu__trigger {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.045);
  background: rgba(255, 255, 255, 0.7);
}

.sj-table-footer {
  padding: 18px 28px 26px;
  border: 0;
}

@media (max-width: 980px) {
  .saved-jobs-header {
    grid-template-columns: 1fr;
    align-items: start;
    padding-inline: 8px;
  }

  .sj-header-add-job {
    justify-self: start;
  }

  .sj-list-controls {
    margin-inline: 22px;
  }

  .sj-job-group__header {
    padding-inline: 22px;
  }

  .sj-job-group__body {
    padding-inline: 14px;
  }

  .sj-opportunity-card.sj-job-list-row,
  .sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px 8px;
  }
}

/* V2 premium All jobs visual language: low-noise, typography-first, soft depth. */
body,
.sb-front-page {
  background: #f7f8f9;
}

.sb-main {
  color: #101828;
  background: #f7f8f9;
}

.saved-jobs-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0 64px;
  font-family: Inter, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.saved-jobs-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 18px 0 28px;
}

.saved-jobs-header h1 {
  margin: 0;
  color: #101828;
  font-family: Inter, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(42px, 4vw, 58px);
  font-weight: var(--fw-medium);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.saved-jobs-header p {
  max-width: 560px;
  margin: 8px 0 0;
  color: #5b6675;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

.sj-header-add-job {
  align-self: center;
}

.sj-button {
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: var(--fw-medium);
}

.sj-button--primary {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #1C9AB0 0%, #168CA4 100%);
  box-shadow: none;
}

.sj-button--primary:hover,
.sj-button--primary:focus-visible {
  background: linear-gradient(180deg, #1C9AB0 0%, #168CA4 100%);
  box-shadow: 0 8px 22px rgba(22, 140, 164, 0.16);
}

.sj-button--secondary,
.sj-filter-toggle,
.sj-dropdown-trigger,
.sj-clear-filters {
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #445066;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  font-size: 14px;
  font-weight: var(--fw-medium);
}

.sj-button--ghost {
  color: #445066;
}

.sj-table-card,
.sj-empty-board,
.sj-modal-panel,
.sj-drawer-panel,
.sj-fit-panel,
.sj-profile-panel,
.sj-toast {
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 8px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
}

.sj-table-card {
  max-width: 1180px;
  margin: 0 auto;
  overflow: visible;
}

.sj-table-toolbar {
  align-items: center;
  padding: 28px 28px 14px;
}

.sj-summary-inline {
  color: #101828;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  line-height: 1.25;
}

.sj-table-brief p {
  margin-top: 4px;
  color: #8993a4;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.sj-list-controls {
  gap: 12px;
  margin: 0 28px 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sj-search,
.sj-search-wide {
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.02);
}

.sj-search input {
  color: #101828;
  font-size: 14px;
  font-weight: 400;
}

.sj-search input::placeholder {
  color: #8993a4;
}

.sj-view-tabs {
  display: flex;
  flex: 1 1 100%;
  gap: 6px;
  padding: 0;
}

.sj-view-tabs button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #5b6675;
  background: transparent;
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.sj-view-tabs button strong {
  min-width: 20px;
  min-height: 20px;
  color: #8993a4;
  background: rgba(245, 247, 250, 0.9);
  font-size: 12px;
  font-weight: var(--fw-medium);
}

.sj-view-tabs button.is-active {
  border-color: rgba(22, 140, 164, 0.14);
  color: #168CA4;
  background: rgba(22, 140, 164, 0.08);
}

.sj-view-tabs button.is-active strong {
  color: #168CA4;
  background: rgba(22, 140, 164, 0.12);
}

.sj-filter-row {
  gap: 8px;
  margin-left: auto;
}

.sj-filter-toggle,
.sj-dropdown-trigger,
.sj-clear-filters {
  min-height: 36px;
  border-radius: 999px;
}

.sj-dropdown-label {
  color: #8993a4;
  font-weight: var(--fw-medium);
}

.sj-dropdown-value {
  color: #101828;
  font-weight: var(--fw-medium);
}

.sj-filter-panel {
  flex: 1 1 100%;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

.sj-filter-panel h2 {
  color: #8993a4;
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.01em;
}

.sj-filter-options button {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  color: #5b6675;
  background: rgba(255, 255, 255, 0.72);
  font-weight: var(--fw-medium);
}

.sj-filter-options button.is-active {
  color: #168CA4;
  background: rgba(22, 140, 164, 0.1);
}

.sj-jobs-list {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sj-job-group {
  margin: 0;
  border: 0;
}

.sj-job-group + .sj-job-group {
  margin-top: 24px;
}

.sj-job-group__header {
  min-height: 44px;
  padding: 0 28px;
  border: 0;
  background: transparent;
}

.sj-job-group__header:hover {
  background: transparent;
}

.sj-job-group__title {
  color: #101828;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}

.sj-job-group__count {
  color: #8993a4;
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.sj-job-group__chevron {
  color: #8993a4;
  background: transparent;
}

.sj-job-group__body {
  padding: 0 20px 6px;
}

.sj-opportunity-card.sj-job-list-row,
.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(150px, 0.62fr) minmax(230px, 0.9fr);
  gap: 24px;
  align-items: center;
  min-height: 82px;
  margin: 0;
  padding: 16px 8px;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sj-opportunity-card.sj-job-list-row:first-child {
  border-top: 0;
}

.sj-opportunity-card.sj-job-list-row:hover,
.sj-opportunity-card.sj-job-list-row:focus-within {
  background: rgba(255, 255, 255, 0.46);
  outline: 0;
}

.sj-job-list-main {
  gap: 8px;
}

.sj-job-list-stage-line {
  gap: 8px;
}

.sj-stage-chip {
  min-height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #556070;
  background: #f5f7fa;
  font-size: 12px;
  font-weight: var(--fw-medium);
}

.sj-stage-chip--preparation,
.sj-stage-chip--interview,
.sj-stage-chip--decision {
  color: #168CA4;
  background: rgba(22, 140, 164, 0.12);
}

.sj-opportunity-card__identity h3,
.sj-table-card--compact .sj-opportunity-card__identity h3 {
  margin: 0 0 3px;
  color: #101828;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.sj-opportunity-card__identity p,
.sj-table-card--compact .sj-opportunity-card__identity p {
  color: #5b6675;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.sj-opportunity-card__meta {
  color: #8993a4;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.sj-job-list-next span {
  color: #8993a4;
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.01em;
}

.sj-job-list-next strong,
.sj-table-card--compact .sj-job-list-next strong {
  color: #101828;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
}

.sj-job-list-side {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}

.sj-job-list-status {
  gap: 5px;
  color: #5b6675;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.sj-job-list-status strong {
  color: #445066;
  font-weight: var(--fw-medium);
}

.sj-job-list-actions {
  gap: 8px;
}

.sj-opportunity-card__continue,
.sj-table-card--compact .sj-opportunity-card__continue {
  min-width: 88px;
  min-height: 36px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 999px;
  color: #445066;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.sj-opportunity-card__continue:hover,
.sj-opportunity-card__continue:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, #1C9AB0 0%, #168CA4 100%);
}

.sj-row-quick-actions {
  gap: 6px;
}

.sj-row-quick-action {
  min-height: 32px;
  padding: 0 9px;
  border-radius: 999px;
  color: #8993a4;
  background: transparent;
  font-size: 12px;
  font-weight: var(--fw-medium);
}

.sj-row-quick-action:hover,
.sj-row-quick-action:focus-visible {
  color: #168CA4;
  background: rgba(22, 140, 164, 0.08);
}

.sj-card-menu__trigger {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.sj-card-menu__popover {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 12px 34px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
}

.sj-table-footer {
  padding: 18px 28px 26px;
  border: 0;
  color: #8993a4;
  font-size: 13px;
  font-weight: 400;
}

.sj-empty-board {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 40px;
}

.sj-empty-board h2 {
  color: #101828;
  font-size: 28px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.03em;
}

.sj-empty-board p {
  color: #5b6675;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .saved-jobs-header {
    grid-template-columns: 1fr;
    align-items: start;
    padding-inline: 8px;
  }

  .sj-header-add-job {
    justify-self: start;
  }

  .sj-table-toolbar {
    padding: 24px 22px 14px;
  }

  .sj-list-controls {
    margin-inline: 22px;
  }

  .sj-job-group__header {
    padding-inline: 22px;
  }

  .sj-job-group__body {
    padding-inline: 14px;
  }

  .sj-opportunity-card.sj-job-list-row,
  .sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px 8px;
    border-radius: 0;
  }
}

@media (max-width: 640px) {
  .saved-jobs-page {
    padding-bottom: 40px;
  }

  .saved-jobs-header h1 {
    font-size: 32px;
  }

  .sj-table-card {
    border-radius: 24px;
  }

  .sj-list-controls {
    margin-inline: 18px;
  }

  .sj-view-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .sj-view-tabs button {
    flex: 0 0 auto;
  }

  .sj-job-list-side {
    grid-template-columns: 1fr;
  }

  .sj-job-list-actions {
    justify-content: flex-start;
  }
}

/* V2 All jobs hierarchy: search first, compact add job action. */
.saved-jobs-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
}

.sj-header-add-job {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  white-space: nowrap;
}

.sj-modal [data-tab-panel="smart"] textarea {
  min-height: 156px;
  resize: vertical;
}

.sj-modal [data-manual-action] {
  order: 1;
}

.sj-modal [data-analyze-button] {
  order: 2;
}

@media (max-width: 720px) {
  .saved-jobs-header {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .sj-header-add-job {
    width: 100%;
    justify-content: center;
  }
}

/* Absolute final V2 row action column fix. */
.sj-opportunity-card.sj-job-list-row,
.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  grid-template-columns: minmax(280px, 1.55fr) minmax(130px, 0.62fr) minmax(145px, 0.58fr) minmax(264px, auto) !important;
  gap: 18px;
  align-items: center;
}

.sj-job-list-status {
  min-width: 0;
  display: grid;
  grid-column: auto;
  gap: 4px;
}

.sj-job-list-actions {
  min-width: 264px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.sj-row-quick-actions {
  min-width: 112px;
  justify-content: flex-end;
  visibility: hidden;
}

.sj-opportunity-card.sj-job-list-row:hover .sj-row-quick-actions,
.sj-opportunity-card.sj-job-list-row:focus-within .sj-row-quick-actions {
  visibility: visible;
}

.sj-row-quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sj-row-quick-action svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sj-table-card--compact .sj-row-quick-actions {
  min-width: 72px;
}

.sj-table-card--compact .sj-row-quick-action {
  width: 30px;
  padding: 0;
}

.sj-table-card--compact .sj-row-quick-action span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .sj-opportunity-card.sj-job-list-row,
  .sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
    grid-template-columns: minmax(240px, 1.4fr) minmax(120px, 0.6fr) minmax(130px, 0.55fr) minmax(244px, auto) !important;
    gap: 14px;
  }

  .sj-job-list-actions {
    min-width: 244px;
  }

  .sj-row-quick-actions {
    min-width: 72px;
  }

  .sj-row-quick-action {
    width: 30px;
    padding: 0;
  }

  .sj-row-quick-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 980px) {
  .sj-opportunity-card.sj-job-list-row,
  .sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sj-job-list-actions {
    min-width: 0;
    justify-content: flex-start;
  }

  .sj-row-quick-actions {
    visibility: visible;
  }
}

/* Final V2 All jobs management polish: keep this last so row actions win. */
.sj-list-controls {
  padding: 10px;
  border-color: rgba(92, 77, 67, 0.09);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20, 32, 45, 0.035);
}

.sj-table-toolbar {
  padding-bottom: 8px;
}

.sj-view-tabs {
  gap: 4px;
}

.sj-view-tabs button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}

.sj-filter-toggle,
.sj-dropdown-trigger,
.sj-density-control {
  min-height: 32px;
  border-radius: 11px;
}

.sj-job-group__header {
  min-height: 32px;
  padding: 0 14px;
  background: #fff;
  border-bottom-color: rgba(30, 41, 59, 0.055);
}

.sj-job-group__header:hover {
  background: rgba(22, 140, 164, 0.025);
}

.sj-job-group__title {
  color: rgba(23, 35, 31, 0.90);
  font-size: 13px;
  font-weight: var(--fw-heavy);
}

.sj-job-group__count {
  color: rgba(20, 32, 45, 0.50);
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-opportunity-card.sj-job-list-row,
.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  min-height: 76px;
  padding: 13px 16px;
}

.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  min-height: 68px;
  padding: 10px 14px;
}

.sj-opportunity-card.sj-job-list-row:focus-within {
  background: rgba(22, 140, 164, 0.035);
  outline: 2px solid rgba(22, 140, 164, 0.14);
  outline-offset: -2px;
}

.sj-row-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.sj-opportunity-card.sj-job-list-row:hover .sj-row-quick-actions,
.sj-opportunity-card.sj-job-list-row:focus-within .sj-row-quick-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.sj-row-quick-action {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(20, 32, 45, 0.78);
  background: transparent;
  font-size: 12px;
  font-weight: var(--fw-heavy);
  white-space: nowrap;
  cursor: pointer;
}

.sj-row-quick-action:hover,
.sj-row-quick-action:focus-visible {
  color: #2f5549;
  background: rgba(22, 140, 164, 0.08);
  outline: none;
}

.sj-card-menu__trigger {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.sj-card-menu__popover {
  min-width: 190px;
  padding: 6px;
}

.sj-card-menu__popover button {
  min-height: 34px;
  border-radius: 9px;
}

.sj-card-menu__popover button.is-danger {
  margin-top: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(159, 18, 57, 0.12);
  color: #9f1239;
}

.sj-card-menu__popover button.is-danger:hover,
.sj-card-menu__popover button.is-danger:focus-visible {
  background: rgba(159, 18, 57, 0.07);
}

.sj-bulk-bar {
  gap: 8px;
  padding: 8px 10px;
  border-color: rgba(22, 140, 164, 0.14);
  border-radius: 14px;
  background: rgba(22, 140, 164, 0.045);
}

.sj-bulk-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(20, 32, 45, 0.72);
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-bulk-status select {
  min-height: 34px;
  max-width: 150px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(92, 77, 67, 0.14);
  border-radius: 10px;
  color: #1f342d;
  background: #fff;
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

@media (max-width: 980px) {
  .sj-row-quick-actions {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .sj-list-controls {
    padding: 8px;
  }
}

@media (max-width: 640px) {
  .sj-row-quick-actions,
  .sj-job-list-actions {
    flex-wrap: wrap;
  }

  .sj-bulk-status {
    width: 100%;
  }

  .sj-bulk-status select {
    max-width: none;
    flex: 1;
  }
}

/* Final V2 All jobs row actions polish: compact management, no horizontal scroll. */
.sj-list-controls {
  padding: 10px;
  border-color: rgba(92, 77, 67, 0.09);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20, 32, 45, 0.035);
}

.sj-table-toolbar {
  padding-bottom: 8px;
}

.sj-view-tabs {
  gap: 4px;
}

.sj-view-tabs button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}

.sj-filter-toggle,
.sj-dropdown-trigger,
.sj-density-control {
  min-height: 32px;
  border-radius: 11px;
}

.sj-job-group__header {
  min-height: 32px;
  padding: 0 14px;
  background: #fff;
  border-bottom-color: rgba(30, 41, 59, 0.055);
}

.sj-job-group__header:hover {
  background: rgba(22, 140, 164, 0.025);
}

.sj-job-group__title {
  color: rgba(23, 35, 31, 0.90);
  font-size: 13px;
  font-weight: var(--fw-heavy);
}

.sj-job-group__count {
  color: rgba(20, 32, 45, 0.50);
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-opportunity-card.sj-job-list-row,
.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  min-height: 76px;
  padding: 13px 16px;
}

.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  min-height: 68px;
  padding: 10px 14px;
}

.sj-opportunity-card.sj-job-list-row:focus-within {
  background: rgba(22, 140, 164, 0.035);
  outline: 2px solid rgba(22, 140, 164, 0.14);
  outline-offset: -2px;
}

.sj-row-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.sj-opportunity-card.sj-job-list-row:hover .sj-row-quick-actions,
.sj-opportunity-card.sj-job-list-row:focus-within .sj-row-quick-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.sj-row-quick-action {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(20, 32, 45, 0.78);
  background: transparent;
  font-size: 12px;
  font-weight: var(--fw-heavy);
  white-space: nowrap;
  cursor: pointer;
}

.sj-row-quick-action:hover,
.sj-row-quick-action:focus-visible {
  color: #2f5549;
  background: rgba(22, 140, 164, 0.08);
  outline: none;
}

.sj-card-menu__trigger {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.sj-card-menu__popover {
  min-width: 190px;
  padding: 6px;
}

.sj-card-menu__popover button {
  min-height: 34px;
  border-radius: 9px;
}

.sj-card-menu__popover button.is-danger {
  margin-top: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(159, 18, 57, 0.12);
  color: #9f1239;
}

.sj-card-menu__popover button.is-danger:hover,
.sj-card-menu__popover button.is-danger:focus-visible {
  background: rgba(159, 18, 57, 0.07);
}

.sj-bulk-bar {
  gap: 8px;
  padding: 8px 10px;
  border-color: rgba(22, 140, 164, 0.14);
  border-radius: 14px;
  background: rgba(22, 140, 164, 0.045);
}

.sj-bulk-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(20, 32, 45, 0.72);
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-bulk-status select {
  min-height: 34px;
  max-width: 150px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(92, 77, 67, 0.14);
  border-radius: 10px;
  color: #1f342d;
  background: #fff;
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

@media (max-width: 980px) {
  .sj-row-quick-actions {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .sj-list-controls {
    padding: 8px;
  }
}

@media (max-width: 640px) {
  .sj-row-quick-actions,
  .sj-job-list-actions {
    flex-wrap: wrap;
  }

  .sj-bulk-status {
    width: 100%;
  }

  .sj-bulk-status select {
    max-width: none;
    flex: 1;
  }
}

/* V2 All jobs: compact saved-job library */
.saved-jobs-header {
  max-width: 1180px;
}

.saved-jobs-header h1 {
  margin-bottom: 6px;
}

.saved-jobs-header p {
  color: rgba(20, 32, 45, 0.68);
}

.sj-tracker-card {
  max-width: 1180px;
  min-height: 0;
  margin-inline: auto;
  padding: 14px 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(20, 32, 45, 0.045);
}

.sj-quick-add-form .sj-link-field,
.sj-quick-add-form .sj-button {
  min-height: 42px;
}

.sj-inline-add {
  min-height: 42px;
  padding-inline: 12px;
  border: 1px solid rgba(92, 77, 67, 0.12);
  border-radius: 999px;
  background: #fff;
}

.sj-table-card {
  max-width: 1180px;
  margin-top: 22px;
}

.sj-table-toolbar {
  align-items: center;
  padding-bottom: 10px;
}

/* On narrow screens the toolbar stacks (flex-direction: column). The unscoped
   align-items: center rules above would then centre the brief and controls,
   pushing "0 jobs" ~160px in from the left. Re-assert start alignment for the
   stacked layout so the heading stays flush-left like on desktop. */
@media (max-width: 860px) {
  .sj-table-toolbar {
    align-items: flex-start;
  }
}

.sj-table-brief {
  gap: 4px;
}

.sj-table-brief p {
  font-size: 13px;
}

.sj-list-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 16px;
  box-shadow: none;
}

.sj-search-wide {
  flex: 1 1 300px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 13px;
}

.sj-search-wide svg {
  width: 17px;
  height: 17px;
}

.sj-view-tabs {
  flex: 1 1 100%;
  gap: 6px;
  padding-bottom: 0;
}

.sj-view-tabs button {
  min-height: 31px;
  padding: 0 10px;
  font-size: 12px;
}

.sj-view-tabs button strong {
  min-width: 19px;
  min-height: 19px;
  padding: 0 6px;
  font-size: 12px;
}

.sj-filter-row {
  gap: 8px;
  margin-left: auto;
}

.sj-filter-toggle,
.sj-density-control,
.sj-dropdown-trigger,
.sj-clear-filters {
  min-height: 34px;
}

.sj-filter-toggle {
  padding: 0 11px;
  border-radius: 12px;
  font-size: 13px;
}

.sj-dropdown-trigger {
  padding: 0 11px 0 13px;
  border-radius: 12px;
  box-shadow: none;
  font-size: 13px;
}

.sj-density-control {
  padding: 2px;
}

.sj-density-control > span,
.sj-density-control button {
  font-size: 12px;
}

.sj-density-control button {
  min-height: 28px;
  padding: 0 9px;
}

.sj-filter-panel {
  flex: 1 1 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
}

.sj-active-filters {
  flex: 1 1 100%;
}

.sj-jobs-list {
  overflow-x: auto;
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 32, 45, 0.035);
}

.sj-jobs-list__head,
.sj-job-list-row {
  min-width: 1040px;
  display: grid;
  grid-template-columns: 104px minmax(230px, 1.45fr) minmax(130px, 0.65fr) 86px 118px 100px 86px 92px;
  gap: 14px;
  align-items: center;
}

.sj-jobs-list__head {
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.08);
  color: rgba(20, 32, 45, 0.54);
  background: #f8faf8;
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-job-group {
  gap: 0;
  margin: 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.06);
}

.sj-job-group:last-child {
  border-bottom: 0;
}

.sj-job-group__header {
  min-width: 1040px;
  min-height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.05);
  background: rgba(248, 250, 248, 0.72);
}

.sj-job-group__title {
  font-size: 13px;
  font-weight: var(--fw-heavy);
}

.sj-job-group__count {
  font-size: 12px;
}

.sj-job-group__chevron {
  width: 21px;
  height: 21px;
  font-size: 16px;
  background: transparent;
}

.sj-job-group__body {
  gap: 0;
}

.sj-job-group.is-collapsed {
  margin-top: 0;
}

.sj-opportunity-card.sj-job-list-row {
  position: relative;
  min-width: 1040px;
  display: grid;
  grid-template-columns: 104px minmax(230px, 1.45fr) minmax(130px, 0.65fr) 86px 118px 100px 86px 92px;
  gap: 14px;
  align-items: center;
  min-height: 80px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.06);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}

.sj-opportunity-card.sj-job-list-row:last-child {
  border-bottom: 0;
}

.sj-opportunity-card.sj-job-list-row:hover {
  background: rgba(22, 140, 164, 0.035);
  box-shadow: none;
  transform: none;
}

.sj-job-list-cell {
  min-width: 0;
  color: rgba(20, 32, 45, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.sj-job-list-cell--stage,
.sj-job-list-cell--action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sj-job-list-cell--next strong {
  color: #1f342d;
  font-size: 14px;
  font-weight: var(--fw-heavy);
}

.sj-job-list-cell--status {
  color: #2f5549;
  font-weight: var(--fw-heavy);
}

.sj-job-list-cell--meta {
  color: rgba(20, 32, 45, 0.58);
}

.sj-opportunity-card__identity {
  min-width: 0;
}

.sj-opportunity-card__identity h3 {
  overflow: hidden;
  margin: 0 0 4px;
  color: #17231f;
  font-size: 15px;
  font-weight: var(--fw-heavy);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sj-opportunity-card__identity p {
  overflow: hidden;
  margin: 0;
  color: rgba(20, 32, 45, 0.58);
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sj-stage-chip {
  min-height: 24px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-card-select {
  width: 18px;
  height: 18px;
}

.sj-card-select input {
  width: 16px;
  height: 16px;
}

.sj-card-menu__trigger {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.sj-card-menu__trigger svg {
  width: 17px;
  height: 17px;
}

.sj-opportunity-card__continue {
  min-width: 0;
  min-height: 32px;
  height: 32px;
  padding: 0 13px;
  border-color: rgba(22, 140, 164, 0.18);
  border-radius: 11px;
  color: #2f5549;
  background: #fff;
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-opportunity-card__continue:hover,
.sj-opportunity-card__continue:focus-visible {
  color: #fff;
  background: #168CA4;
}

.sj-group-show-more {
  margin: 10px 14px 12px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.sj-table-card--compact .sj-list-controls {
  gap: 7px;
  padding: 8px;
}

.sj-table-card--compact .sj-job-list-row {
  grid-template-columns: 104px minmax(230px, 1.45fr) minmax(130px, 0.65fr) 86px 118px 100px 86px 92px;
  gap: 14px;
  min-height: 68px;
  padding-block: 9px;
}

.sj-table-card--compact .sj-opportunity-card__identity h3 {
  font-size: 14px;
}

.sj-table-card--compact .sj-opportunity-card__identity p,
.sj-table-card--compact .sj-job-list-cell {
  font-size: 12px;
}

.sj-table-card--compact .sj-job-list-cell--next strong {
  font-size: 13px;
}

.sj-table-card--compact .sj-stage-chip {
  min-height: 22px;
  padding: 0 7px;
  font-size: 12px;
}

.sj-table-card--compact .sj-opportunity-card__continue,
.sj-table-card--compact .sj-card-menu__trigger {
  min-height: 30px;
  height: 30px;
  border-radius: 10px;
}

.sj-table-footer {
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 1180px) {
  .sj-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .sj-tracker-card {
    grid-template-columns: 1fr;
  }

  .sj-jobs-list {
    overflow-x: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .sj-jobs-list__head {
    display: none;
  }

  .sj-job-group {
    border-bottom: 0;
  }

  .sj-job-group__header {
    min-width: 0;
    padding-inline: 4px;
    background: transparent;
  }

  .sj-job-list-row,
  .sj-jobs-list__head {
    min-width: 0;
  }

  .sj-opportunity-card.sj-job-list-row,
  .sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid rgba(30, 41, 59, 0.08);
    border-radius: 16px;
  }

  .sj-job-list-cell {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
  }

  .sj-job-list-cell::before {
    color: rgba(20, 32, 45, 0.50);
    font-size: 12px;
    font-weight: var(--fw-heavy);
    content: attr(data-label);
  }

  .sj-job-list-cell--stage,
  .sj-job-list-cell--job,
  .sj-job-list-cell--action {
    display: flex;
    align-items: center;
  }

  .sj-job-list-cell--stage::before,
  .sj-job-list-cell--job::before,
  .sj-job-list-cell--action::before {
    flex: 0 0 104px;
  }

  .sj-job-list-cell--action {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .sj-list-controls {
    padding: 10px;
  }

  .sj-filter-row {
    width: 100%;
  }

  .sj-view-tabs {
    order: 3;
  }

  .sj-job-list-cell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .sj-job-list-cell--stage::before,
  .sj-job-list-cell--job::before,
  .sj-job-list-cell--action::before {
    flex-basis: 88px;
  }
}

/* Final V2 All jobs override: compact 3-zone rows, no horizontal scrolling. */
.sj-jobs-list {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sj-jobs-list__head {
  display: none;
}

.sj-job-group__header,
.sj-job-list-row,
.sj-opportunity-card.sj-job-list-row,
.sj-table-card--compact .sj-job-list-row,
.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  min-width: 0;
}

.sj-job-group {
  gap: 0;
  margin: 0;
  border-bottom: 0;
}

.sj-job-group:last-child {
  border-bottom: 0;
}

.sj-job-group__header {
  min-height: 44px;
  padding: 0 28px;
  border-bottom: 0;
  background: transparent;
}

.sj-job-group__body {
  gap: 0;
}

.sj-opportunity-card.sj-job-list-row,
.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(150px, 0.62fr) minmax(230px, 0.9fr);
  gap: 24px;
  align-items: center;
  min-height: 82px;
  padding: 16px 8px;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  grid-template-columns: minmax(0, 1.8fr) minmax(150px, 0.62fr) minmax(230px, 0.9fr);
  gap: 24px;
  min-height: 82px;
  padding: 16px 8px;
}

.sj-opportunity-card.sj-job-list-row:hover {
  background: rgba(255, 255, 255, 0.46);
  box-shadow: none;
  transform: none;
}

.sj-job-list-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.sj-job-list-stage-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sj-opportunity-card__identity h3,
.sj-table-card--compact .sj-opportunity-card__identity h3 {
  overflow: visible;
  margin: 0 0 3px;
  color: #101828;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-overflow: clip;
  overflow-wrap: anywhere;
  white-space: normal;
}

.sj-table-card--compact .sj-opportunity-card__identity h3 {
  font-size: 16px;
}

.sj-opportunity-card__identity p,
.sj-table-card--compact .sj-opportunity-card__identity p {
  overflow: visible;
  margin: 0;
  color: #5b6675;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-overflow: clip;
  overflow-wrap: anywhere;
  white-space: normal;
}

.sj-opportunity-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #8993a4;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.sj-job-list-next {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sj-job-list-next span {
  color: #8993a4;
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.01em;
}

.sj-job-list-next strong,
.sj-table-card--compact .sj-job-list-next strong {
  color: #101828;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
}

.sj-table-card--compact .sj-job-list-next strong {
  font-size: 15px;
}

.sj-job-list-side {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.sj-job-list-status {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: #5b6675;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.sj-job-list-status strong {
  color: #445066;
  font-weight: var(--fw-medium);
}

.sj-job-list-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.sj-opportunity-card__continue,
.sj-table-card--compact .sj-opportunity-card__continue {
  width: auto;
  min-width: 88px;
  min-height: 36px;
  height: 36px;
  padding: 0 15px;
  border-color: rgba(0, 0, 0, 0.055);
  border-radius: 999px;
  color: #445066;
  background: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.sj-opportunity-card__continue:hover,
.sj-opportunity-card__continue:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, #1C9AB0 0%, #168CA4 100%);
}

@media (max-width: 980px) {
  .sj-opportunity-card.sj-job-list-row,
  .sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 10px;
    padding: 18px 8px;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.045);
    border-radius: 0;
  }

  .sj-job-list-side {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 560px) {
  .sj-job-list-side {
    grid-template-columns: 1fr;
  }

  .sj-job-list-actions {
    justify-content: flex-start;
  }
}
 
/* Absolute final V2 All jobs management polish. */
.sj-list-controls {
  gap: 12px;
  margin: 0 28px 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sj-table-toolbar {
  padding: 28px 28px 14px;
}

.sj-view-tabs {
  gap: 6px;
}

.sj-view-tabs button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.sj-filter-toggle,
.sj-dropdown-trigger,
.sj-density-control {
  min-height: 36px;
  border-radius: 999px;
}

.sj-job-group__header {
  min-height: 44px;
  padding: 0 28px;
  background: transparent;
  border-bottom-color: transparent;
}

.sj-job-group__header:hover {
  background: transparent;
}

.sj-job-group__title {
  color: #101828;
  font-size: 16px;
  font-weight: var(--fw-semibold);
}

.sj-job-group__count {
  color: #8993a4;
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.sj-opportunity-card.sj-job-list-row,
.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  min-height: 82px;
  padding: 16px 8px;
}

.sj-table-card--compact .sj-opportunity-card.sj-job-list-row {
  min-height: 82px;
  padding: 16px 8px;
}

.sj-opportunity-card.sj-job-list-row:focus-within {
  background: rgba(255, 255, 255, 0.46);
  outline: 0;
}

.sj-row-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.sj-opportunity-card.sj-job-list-row:hover .sj-row-quick-actions,
.sj-opportunity-card.sj-job-list-row:focus-within .sj-row-quick-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.sj-row-quick-action {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #8993a4;
  background: transparent;
  font-size: 12px;
  font-weight: var(--fw-medium);
  white-space: nowrap;
  cursor: pointer;
}

.sj-row-quick-action:hover,
.sj-row-quick-action:focus-visible {
  color: #168CA4;
  background: rgba(22, 140, 164, 0.08);
  outline: none;
}

.sj-card-menu__trigger {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.sj-card-menu__popover {
  min-width: 190px;
  padding: 6px;
}

.sj-card-menu__popover button {
  min-height: 34px;
  border-radius: 9px;
}

.sj-card-menu__popover button.is-danger {
  margin-top: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(159, 18, 57, 0.12);
  color: #9f1239;
}

.sj-card-menu__popover button.is-danger:hover,
.sj-card-menu__popover button.is-danger:focus-visible {
  background: rgba(159, 18, 57, 0.07);
}

.sj-bulk-bar {
  gap: 8px;
  padding: 8px 10px;
  border-color: rgba(22, 140, 164, 0.14);
  border-radius: 14px;
  background: rgba(22, 140, 164, 0.045);
}

.sj-bulk-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(20, 32, 45, 0.72);
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

.sj-bulk-status select {
  min-height: 34px;
  max-width: 150px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(92, 77, 67, 0.14);
  border-radius: 10px;
  color: #1f342d;
  background: #fff;
  font-size: 12px;
  font-weight: var(--fw-heavy);
}

@media (max-width: 980px) {
  .sj-row-quick-actions {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .sj-list-controls {
    padding: 8px;
  }
}

@media (max-width: 640px) {
  .sj-row-quick-actions,
  .sj-job-list-actions {
    flex-wrap: wrap;
  }

  .sj-bulk-status {
    width: 100%;
  }

  .sj-bulk-status select {
    max-width: none;
    flex: 1;
  }
}

/* ============================================================
   Saved Job Workspace drawer — unified responsive behaviour.
   Authoritative overrides for tablet/phone widths. Placed last
   so it supersedes the layered V1/V2 drawer rules above, which
   had collided (a V1 bottom-sheet at <=860px, full-width stacked
   footer buttons, and a V2 column footer at <=920px) and left the
   footer ballooning to ~190px with an oddly centred "Continue
   later" link on small screens.
   ============================================================ */

/* Tablet and small laptops: keep the centred rounded card, but let
   the footer stay a single tidy row (next action left, buttons
   right) until horizontal space genuinely runs out. */
@media (max-width: 920px) {
  .sj-drawer .sj-job-action-bar {
    flex-direction: row;
    align-items: center;
    gap: 12px 18px;
  }

  /* Keep the "NEXT / …" label at its natural width so it never wraps
     mid-word; let the button group take the slack and hug the right. */
  .sj-drawer .sj-job-next-action {
    flex: 0 1 auto;
  }

  .sj-drawer .sj-job-next-action strong {
    white-space: nowrap;
  }

  /* Undo the V1 single-column grid + full-width buttons; size the
     buttons to their content and let them wrap only when needed. */
  .sj-drawer .sj-footer-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    grid-template-columns: none;
    gap: 10px;
    flex: 1 1 auto;
  }

  .sj-drawer .sj-footer-actions .sj-button,
  .sj-drawer .sj-footer-actions .sj-button--primary,
  .sj-drawer .sj-footer-actions .sj-button--secondary,
  .sj-drawer .sj-footer-actions .sj-button--ghost {
    width: auto;
    min-width: 0;
  }
}

/* Phones: the bottom-sheet shape itself (full width, pinned to the
   bottom, rounded top) is enforced with !important in
   ai-jobhelper-design-system.css @media (max-width: 767px). Here we
   only tidy the footer so the action buttons stay compact instead of
   ballooning into a tall stack of full-width buttons. */
@media (max-width: 640px) {
  /* Compact footer: the "NEXT / …" label sits on its own line, then
     the action buttons form a tidy right-aligned row that wraps only
     when there are too many to fit. Buttons hug their content instead
     of each stretching to full width (which ballooned the footer). */
  .sj-drawer .sj-job-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .sj-drawer .sj-footer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }

  .sj-drawer .sj-footer-actions .sj-button {
    flex: 0 1 auto;
    width: auto;
    min-height: 44px;
  }
}

/* ==========================================================================
   Saved job detail — Role Brief sheet
   Appended last on purpose: jobboard.css carries several older definitions of
   .sj-drawer-header / .sj-drawer-footer, and the cascade winner is the last one.
   ========================================================================== */

/* --- Header ------------------------------------------------------------- */
/* The header identifies the job. It does not explain the job record: source chip,
   source domain, saved date, "No deadline", "View extracted details" and the
   "Status" label all moved out (Post tab, or deleted). */

/* The eyebrow and the CV-language slot are Choose-CV-only. */
.sj-drawer-header .sj-drawer-eyebrow,
.sj-drawer-header .sj-drawer-cv-language {
  display: none;
}

.sj-drawer--cv-workflow .sj-drawer-header .sj-drawer-eyebrow {
  display: block;
}

/* A pre-existing rule (~L8238) hides .sj-drawer-header-meta with `display:none
   !important` in CV mode. The picker writes the job subtitle (title · company) and
   the CV language into that row, so re-show it — but keep only those two. */
.sj-drawer--cv-workflow .sj-drawer-header-meta {
  display: flex !important;
}

.sj-drawer--cv-workflow .sj-drawer-header .sj-drawer-dot,
.sj-drawer--cv-workflow .sj-drawer-header [data-drawer-header-location],
.sj-drawer--cv-workflow .sj-drawer-source-actions {
  display: none !important;
}

.sj-drawer--cv-workflow .sj-drawer-header .sj-drawer-cv-language {
  display: inline;
}

/* Keep the horizontal inset on --modal-x (48px) rather than the spec's literal
   40px, so the title still lines up with the brief sheet in the body below. */
.sj-drawer-header {
  padding: 30px var(--modal-x) 22px;
}

.sj-drawer-header h2 {
  margin: 0;
  color: #17212b;
  font-size: 30px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

/* One line: company · location. */
.sj-drawer-header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 0;
  color: rgba(23, 33, 43, 0.56);
  font-size: 14px;
  line-height: 1.45;
}

.sj-drawer-header-meta .sj-drawer-dot {
  color: rgba(23, 33, 43, 0.28);
}

.sj-drawer-header-meta [data-drawer-company]:empty,
.sj-drawer-header-meta [data-drawer-header-location]:empty {
  display: none;
}

/* One line: [Deadline Jun 30 ·] Open original post */
.sj-drawer-source-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
}

.sj-drawer-source-actions .sj-original-link {
  color: #0f7f96;
  font-size: 14px;
  font-weight: var(--fw-bold);
  text-decoration: none;
}

.sj-drawer-source-actions .sj-original-link:hover {
  text-decoration: underline;
}

.sj-drawer-deadline {
  font-size: 14px;
  font-weight: var(--fw-bold);
  color: rgba(23, 33, 43, 0.62);
}

.sj-drawer-deadline[hidden],
.sj-drawer-source-actions .sj-drawer-dot[hidden] {
  display: none;
}

.sj-drawer-deadline--urgent,
.sj-drawer-deadline--expired {
  color: #9a5309;
}

/* Right-side controls read as one row of pills: Saved · Notes · … · × */
.sj-drawer-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sj-drawer-toolbar .sj-dropdown-trigger,
.sj-drawer-toolbar .sj-drawer-notes-trigger,
.sj-drawer-toolbar .sj-icon-button {
  height: 38px;
  border-radius: 999px;
}

/* --- Brief sheet -------------------------------------------------------- */

.sj-brief-sheet {
  max-width: 820px;
  padding: 34px 38px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 33, 43, 0.045);
  box-shadow:
    0 22px 64px rgba(36, 56, 77, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.sj-brief-kicker {
  margin: 0;
  color: rgba(22, 140, 164, 0.9);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* The positioning sentence. Two lines at most — it is an instruction, not a summary. */
.sj-brief-angle {
  margin: 12px 0 0;
  max-width: 740px;
  color: #17212b;
  font-size: 20px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.025em;
  line-height: 1.48;
  text-wrap: pretty;
}

/* --- Proof rows: they need -> you can show ------------------------------ */

.sj-brief-proof {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(23, 33, 43, 0.055);
}

.sj-brief-proof-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 48px minmax(0, 0.92fr);
  gap: 18px;
  align-items: baseline;
}

.sj-brief-proof-title {
  margin: 0;
  color: rgba(22, 140, 164, 0.9);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sj-brief-proof-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.sj-brief-proof-row {
  align-items: start;
  padding: 18px 0;
}

.sj-brief-proof-row + .sj-brief-proof-row {
  border-top: 1px solid rgba(23, 33, 43, 0.04);
}

/* Grid children default to min-width:auto, so a long unbroken requirement name
   would push the "you can show" column off the sheet. */
.sj-brief-proof-need,
.sj-brief-show {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sj-brief-proof-arrow {
  display: grid;
  place-items: center;
  align-self: center;
  color: rgba(23, 33, 43, 0.28);
}

.sj-brief-proof-arrow svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- "You can show" column ---------------------------------------------- */

.sj-brief-show-label {
  display: block;
  font-size: 15px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.sj-brief-show--covered .sj-brief-show-label {
  color: rgba(22, 140, 164, 0.95);
}

.sj-brief-show--missing .sj-brief-show-label {
  color: #9a5309;
}

.sj-brief-show-text {
  display: block;
  color: rgba(23, 33, 43, 0.58);
  font-size: 14px;
  line-height: 1.55;
}

.sj-brief-show-label + .sj-brief-show-text {
  margin-top: 5px;
}

/* Coverage unknown: no claim, no colour. Just the instruction. */
.sj-brief-show--unknown .sj-brief-show-text {
  color: rgba(23, 33, 43, 0.5);
}

.sj-brief-proof-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(22, 140, 164, 0.09);
  color: rgba(22, 140, 164, 0.95);
  font-size: 13px;
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.sj-brief-proof-name {
  display: block;
  color: #17212b;
  font-size: 16px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.sj-brief-proof-text {
  display: block;
  margin-top: 5px;
  color: rgba(23, 33, 43, 0.58);
  font-size: 14px;
  line-height: 1.55;
}

/* --- Watch out ----------------------------------------------------------- */

.sj-brief-watchout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 33, 43, 0.055);
}

/* display:flex above beats the UA `[hidden] { display: none }` rule, so
   renderWatchOut's `wrapper.hidden = !message` needs this to actually hide. */
.sj-brief-watchout[hidden] {
  display: none;
}

.sj-brief-watchout-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(214, 132, 32, 0.1);
  color: #9a5309;
}

.sj-brief-watchout-mark svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sj-brief-watchout-kicker {
  display: block;
  color: #9a5309;
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sj-brief-watchout-text {
  display: block;
  max-width: 560px;
  margin-top: 5px;
  color: rgba(23, 33, 43, 0.62);
  font-size: 14px;
  line-height: 1.55;
}

/* --- Source evidence ---------------------------------------------------- */

.sj-brief-source {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 33, 43, 0.055);
}

.sj-brief-source > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}

.sj-brief-source > summary::-webkit-details-marker {
  display: none;
}

.sj-brief-source-note {
  min-width: 0;
  color: rgba(23, 33, 43, 0.44);
  font-size: 13px;
}

.sj-brief-source-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.sj-brief-source-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(22, 140, 164, 0.95);
  font-size: 14px;
  font-weight: var(--fw-medium);
}

/* The toggle carries an info glyph, not a chevron — rotating it would be
   meaningless. The open/closed affordance is the disclosure body itself. */
.sj-brief-source[open] .sj-brief-source-toggle {
  color: rgba(23, 33, 43, 0.5);
}

.sj-brief-source-body {
  margin-top: 18px;
}

.sj-brief-evidence-row + .sj-brief-evidence-row {
  margin-top: 16px;
}

.sj-brief-evidence-name {
  margin: 0;
  color: #17212b;
  font-size: 14px;
  font-weight: var(--fw-bold);
}

.sj-brief-evidence-quote {
  margin: 4px 0 0;
  color: rgba(23, 33, 43, 0.56);
  font-size: 14px;
  line-height: 1.55;
}

.sj-brief-evidence-quote--none {
  color: rgba(23, 33, 43, 0.42);
  font-style: italic;
}

/* --- Next step bar ------------------------------------------------------ */

.sj-drawer-footer {
  /* Match the scrolling content's horizontal inset (--modal-x) so the 820px
     next-step bar left-aligns with the 820px brief sheet above it. */
  padding: 0 var(--modal-x, 40px) 28px;
  border-top: 0;
  background: none;
  box-shadow: none;
}

.sj-next-step-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 820px;
  margin-top: 22px;
  padding: 18px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(23, 33, 43, 0.04);
  box-shadow:
    0 14px 40px rgba(36, 56, 77, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.sj-next-step-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(22, 140, 164, 0.18);
  color: rgba(22, 140, 164, 0.95);
}

.sj-next-step-mark svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sj-next-step-copy {
  flex: 1 1 auto;
  /* The sentence can carry a reason clause; give it room before the buttons win. */
  min-width: 220px;
}

.sj-next-step-kicker {
  display: block;
  color: rgba(23, 33, 43, 0.42);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sj-next-step-line {
  margin: 4px 0 0;
  color: #17212b;
  font-size: 16px;
  font-weight: var(--fw-medium);
  line-height: 1.4;
}

.sj-next-step-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* Up to two outlined secondaries, then exactly one solid primary. */
.sj-drawer-footer .sj-next-step-actions .sj-button--secondary {
  border: 1px solid rgba(22, 140, 164, 0.28);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  color: rgba(23, 33, 43, 0.78);
  font-weight: var(--fw-medium);
}

.sj-drawer-footer .sj-next-step-actions .sj-button--secondary:hover {
  border-color: rgba(22, 140, 164, 0.5);
  color: #17212b;
}

.sj-drawer-footer .sj-next-step-actions .sj-button--ghost {
  color: rgba(22, 140, 164, 0.95);
  background: none;
  border: 0;
  box-shadow: none;
  font-weight: var(--fw-medium);
}

.sj-drawer-footer .sj-next-step-actions .sj-button--ghost:hover {
  text-decoration: underline;
}

/* --- Narrow screens ----------------------------------------------------- */

/* Below ~900px the four-column proof row cannot hold two prose columns side by
   side. Stack the "show" column under the "need" column, keeping the number gutter. */
@media (max-width: 900px) {
  .sj-brief-proof-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px 14px;
  }

  .sj-brief-proof-arrow {
    display: none;
  }

  .sj-brief-show {
    grid-column: 2;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px dashed rgba(23, 33, 43, 0.08);
  }
}

@media (max-width: 720px) {
  .sj-brief-sheet {
    padding: 26px 22px;
    border-radius: 22px;
  }

  .sj-brief-angle {
    font-size: 18px;
    line-height: 1.45;
  }

  .sj-brief-source > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .sj-drawer-footer {
    padding: 0 18px 20px;
  }

  .sj-next-step-bar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px 18px;
  }

  .sj-next-step-mark {
    display: none;
  }

  .sj-next-step-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .sj-drawer-footer .sj-next-step-actions .sj-button--primary {
    flex: 1 1 100%;
    order: -1;
  }
}

/* The Choose-CV footer still uses the old .sj-job-action-bar shape. Track the
   content inset (--modal-x) so it narrows with the header/content on phones. */
.sj-drawer--cv-workflow .sj-drawer-footer {
  padding: 18px var(--modal-x, 34px) 24px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

/* An older @media (max-width: 860px) block stretches every footer button to
   100% width. The next-step bar keeps its buttons inline. */
@media (max-width: 860px) {
  .sj-drawer-footer .sj-next-step-actions .sj-button,
  .sj-drawer-footer .sj-next-step-actions .sj-button--primary {
    width: auto;
    min-width: 0;
  }
}

/* ==========================================================================
   Job post tab — "The original post"
   The scraper (tale-skrivsikkert.dk/scrape) flattens the page into one unbroken
   run of text: no line breaks, headings welded to the paragraph beneath them.
   We cannot rebuild the layout, so the raw text is demoted to a receipt and the
   extracted lists above it carry the reading.
   ========================================================================== */

.sj-original-post {
  margin-top: 34px;
  padding: 22px 24px;
  border: 1px solid rgba(23, 33, 43, 0.05);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
}

.sj-original-post-title {
  margin: 0;
  color: rgba(23, 33, 43, 0.42);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sj-original-post-read {
  margin: 10px 0 0;
  max-width: 560px;
  color: rgba(23, 33, 43, 0.62);
  font-size: 14px;
  line-height: 1.55;
}

.sj-original-post-actions {
  margin: 16px 0 0;
}

.sj-original-post .sj-original-post-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(22, 140, 164, 0.28);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  color: rgba(23, 33, 43, 0.78);
  font-weight: var(--fw-medium);
  text-decoration: none;
}

.sj-original-post .sj-original-post-open:hover {
  border-color: rgba(22, 140, 164, 0.5);
  color: #17212b;
}

.sj-original-post-open[hidden] {
  display: none;
}

/* --- Raw text disclosure -------------------------------------------------- */

.sj-raw-post {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(23, 33, 43, 0.055);
}

.sj-raw-post[hidden] {
  display: none;
}

.sj-original-post .sj-raw-post > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  padding: 0;
  border: 0;
  list-style: none;
  color: rgba(23, 33, 43, 0.52);
  font-size: 14px;
  font-weight: var(--fw-medium);
  cursor: pointer;
}

.sj-original-post .sj-raw-post > summary::-webkit-details-marker {
  display: none;
}

.sj-raw-post > summary .sj-accordion-chevron {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.16s ease;
}

.sj-raw-post[open] > summary .sj-accordion-chevron {
  transform: rotate(180deg);
}

.sj-raw-post-body {
  margin-top: 14px;
}

.sj-raw-post-note {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 10px;
  color: rgba(23, 33, 43, 0.44);
  font-size: 13px;
  line-height: 1.5;
}

.sj-raw-post-copy {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(22, 140, 164, 0.95);
  font: inherit;
  font-weight: var(--fw-medium);
  cursor: pointer;
}

.sj-raw-post-copy:hover {
  text-decoration: underline;
}

/* <pre> keeps the newlines that survived the scrape, but must wrap — the body is
   one 4500-character line, which would otherwise scroll sideways forever. */
.sj-original-post .sj-original-post-text {
  max-height: 260px;
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  overflow-wrap: anywhere;
  border-radius: 16px;
  background: rgba(248, 250, 250, 0.7);
  color: rgba(23, 33, 43, 0.6) !important;
  font-family: inherit;
  font-size: 14px !important;
  line-height: 1.7 !important;
  white-space: pre-wrap;
}

@media (max-width: 720px) {
  .sj-original-post {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .sj-raw-post-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

/* ==========================================================================
   Post tab — the cleaned source view
   Facts on the left, Sofia's reading of the post on the right. This tab does not
   persuade; the Overview does that.

   The spec assumes a 1180px canvas. The drawer panel is capped at 980px and the
   tab content is 820px, so the left column is 320px (not 360px) — otherwise the
   summary column drops under 440px and the chips wrap.
   ========================================================================== */

.sj-post-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sj-post-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 33, 43, 0.045);
  box-shadow:
    0 22px 64px rgba(36, 56, 77, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.sj-post-details {
  padding: 28px 26px;
}

.sj-post-summary {
  padding: 30px 32px;
}

.sj-post-panel-title {
  margin: 0;
  color: #17212b;
  font-size: 20px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

/* --- Left: posting details ----------------------------------------------- */

.sj-post-detail-list {
  margin-top: 20px;
}

.sj-post-detail {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
}

.sj-post-detail + .sj-post-detail {
  border-top: 1px solid rgba(23, 33, 43, 0.055);
}

.sj-post-detail-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: rgba(22, 140, 164, 0.075);
  color: var(--accent);
}

.sj-post-detail-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.sj-post-detail-body {
  min-width: 0;
}

.sj-post-detail-label {
  display: block;
  color: rgba(23, 33, 43, 0.66);
  font-size: 14px;
  line-height: 1.35;
}

.sj-post-detail-value {
  display: block;
  margin-top: 3px;
  color: #17212b;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* --- Right: what this posting says ---------------------------------------- */

.sj-post-summary-text {
  margin: 22px 0 0;
  max-width: 760px;
  color: rgba(23, 33, 43, 0.68);
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.65;
}

/* Body copy, not a footnote: renderPostSummary toggles this class onto the summary
   paragraph when there is no ai_summary. Must clear AA. */
.sj-post-empty {
  color: rgba(23, 33, 43, 0.64);
  font-size: 16px;
  line-height: 1.6;
}

.sj-post-empty[hidden] {
  display: none;
}

.sj-post-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.sj-post-chips[hidden] {
  display: none;
}

.sj-post-chip {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(22, 140, 164, 0.07);
  color: rgba(23, 33, 43, 0.72);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* --- Main responsibility -------------------------------------------------- */

.sj-post-responsibility {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(23, 33, 43, 0.06);
}

.sj-post-responsibility[hidden] {
  display: none;
}

.sj-post-section-title {
  margin: 0;
  color: #17212b;
  font-size: 20px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.sj-post-callout {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(22, 140, 164, 0.1);
  background: rgba(22, 140, 164, 0.055);
}

.sj-post-callout-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  background: rgba(22, 140, 164, 0.1);
  color: var(--accent);
}

.sj-post-callout-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.sj-post-callout p {
  margin: 0;
  color: #17212b;
  font-size: 16px;
  font-weight: var(--fw-medium);
  letter-spacing: -0.015em;
  line-height: 1.55;
}

/* --- Everything else Sofia extracted -------------------------------------- */

.sj-post-tab .sj-job-fact-group {
  margin-top: 30px;
}

.sj-post-tab .sj-job-fact-group[hidden] {
  display: none;
}

.sj-post-tab .sj-extraction-warning {
  margin-bottom: 24px;
}

/* --- Tablet: the posting's meaning first, its provenance second ------------ */

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

  .sj-post-summary {
    order: 1;
  }

  .sj-post-details {
    order: 2;
  }
}

@media (max-width: 640px) {
  .sj-post-panel {
    border-radius: 22px;
  }

  .sj-post-details,
  .sj-post-summary {
    padding: 24px 22px;
  }

  .sj-post-detail {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .sj-post-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .sj-post-summary-text {
    font-size: 16px;
    line-height: 1.6;
  }

  .sj-post-callout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}
