:root {
  --bg: #ececef;
  --panel: #f7f7f8;
  --line: #d2d4d8;
  --text: #0f1115;
  --sub: #555b66;
  --dark: #0f1013;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Satoshi", "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 0%, #f6f6f7 0%, var(--bg) 50%, #e1e3e6 100%);
  color: var(--text);
}

.deploy-status-card {
  position: fixed;
  right: 18px;
  bottom: 18px;
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid #16181d;
  border-radius: 16px;
  background: rgba(10, 11, 14, 0.96);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  z-index: 1200;
}

.deploy-status-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.deploy-status-card__state {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.deploy-status-card__meta {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.deploy-status-card__divider {
  margin: 10px 0 8px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.deploy-status-card__activity {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.deploy-status-card.is-success {
  border-color: #0f8a5f;
}

.deploy-status-card.is-failed {
  border-color: #b42318;
}

.deploy-status-card.is-running {
  border-color: #d97706;
}

.shell {
  max-width: 1520px;
  margin: 28px auto;
  padding: 0 20px 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.topbar-left {
  display: flex;
  gap: 10px;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.pill.ghost {
  background: #ffffff;
  border-color: #c9ccd2;
}

.pill.ghost:hover {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.pill-static {
  cursor: default;
  pointer-events: none;
}

#currentUserDisplay {
  gap: 8px;
}

#currentUserDisplay::before {
  content: "⚙";
  font-size: 16px;
  line-height: 1;
}

.pill.soft {
  background: #ffffff;
  border-color: #d0d4da;
}

.pill.dark {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.pill.dark:hover {
  background: #000000;
  border-color: #000000;
  transform: translateY(-1px);
}

.pill.dark.strong {
  min-height: 38px;
  padding: 0 16px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.62fr) minmax(0, 1.78fr);
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 16px 35px rgba(40, 44, 54, 0.08);
}

.is-hidden {
  display: none !important;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #111111;
}

h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
}

.subtitle {
  margin: 6px 0 0;
  color: var(--sub);
}

.job-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.terms-checkbox-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.terms-checkbox-row input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.terms-checkbox-row span {
  margin: 0;
  line-height: 1.3;
}

.inline-link-btn {
  border: 0;
  background: transparent;
  color: #0f1013;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.terms-content {
  max-height: min(70vh, 680px);
  overflow: auto;
  padding-right: 8px;
  color: #111319;
  line-height: 1.5;
}

.terms-content p {
  margin: 0 0 12px;
}

.sourcing-layout {
  display: grid;
  grid-template-columns: minmax(140px, 176px) minmax(0, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.sourcing-sidebar {
  display: grid;
  gap: 5px;
  align-content: start;
}

.sourcing-meta {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.sourcing-results {
  min-width: 0;
}

.sourcing-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 2px;
}

.sourcing-sidebar label {
  gap: 3px;
  font-size: 11px;
}

.sourcing-sidebar input,
.sourcing-sidebar textarea {
  padding: 6px 7px;
  font-size: 11px;
  border-radius: 8px;
}

#sourcingSkillsInput {
  min-height: 68px;
}

#sourcingKeywordsInput {
  min-height: 44px;
}

.create-view {
  margin-top: 12px;
}

.users-subnav {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.users-tab-panel {
  margin-top: 12px;
}

.create-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
}

textarea {
  width: 100%;
  border: 1px solid #d2d3d8;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  background: #fdfdfe;
  resize: vertical;
}

input,
select {
  width: 100%;
  border: 1px solid #d2d3d8;
  border-radius: 12px;
  padding: 10px 11px;
  font: inherit;
  font-size: 14px;
  background: #fdfdfe;
}

input:focus,
select:focus {
  outline: 2px solid rgba(15, 16, 19, 0.2);
  border-color: #20232a;
}

textarea:focus {
  outline: 2px solid rgba(15, 16, 19, 0.2);
  border-color: #20232a;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-select {
  width: auto;
  min-width: 88px;
  max-width: 108px;
  height: 30px;
  border: 1px solid #c9ccd2;
  border-radius: 999px;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #0f1115;
  background: #ffffff;
  flex: 0 0 auto;
}

.status {
  color: var(--sub);
  font-size: 13px;
}

.status.is-error {
  color: #b42318;
}

.status.is-success {
  color: #067647;
}

.side-panel {
  display: grid;
  gap: 12px;
}

.side-card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid #d6d8dc;
  background: #f8f8f9;
}

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

.metric-label {
  color: var(--sub);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  margin-top: 4px;
  font-size: 34px;
  font-weight: 700;
}

.metric-chip {
  background: #111111;
  color: #ffffff;
  border: 1px solid #111111;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
}

.metric-chip-live {
  min-width: 74px;
  text-align: center;
  cursor: default;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.metric-chip-live.is-online {
  color: #067647;
  border-color: #067647;
  background: #ecfdf3;
  animation: metricLivePulseGreen 1.15s infinite;
}

.metric-chip-live.is-offline {
  color: #b42318;
  border-color: #b42318;
  background: #fef3f2;
  animation: metricLivePulseRed 1.15s infinite;
}

@keyframes metricLivePulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(6, 118, 71, 0.34); }
  60% { box-shadow: 0 0 0 8px rgba(6, 118, 71, 0.02); }
  100% { box-shadow: 0 0 0 0 rgba(6, 118, 71, 0); }
}

@keyframes metricLivePulseRed {
  0% { box-shadow: 0 0 0 0 rgba(180, 35, 24, 0.32); }
  60% { box-shadow: 0 0 0 8px rgba(180, 35, 24, 0.02); }
  100% { box-shadow: 0 0 0 0 rgba(180, 35, 24, 0); }
}

.side-card.accent {
  min-height: 140px;
  background: radial-gradient(circle at 10% 0%, #f2f2f2 0%, #e9eaec 45%, #d8dbe0 100%);
  border-color: #cdd1d8;
  display: flex;
  align-items: flex-end;
}

.side-card.accent p {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.jobs-panel {
  margin-top: 14px;
}

.jobs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.jobs-head h2 {
  margin: 0;
  font-size: 22px;
}

.jobs-meta {
  color: var(--sub);
  font-size: 13px;
}

.results-wrap {
  border: 1px solid #d8dadf;
  border-radius: 10px;
  overflow: auto;
  background: #fcfcfd;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.results-table th,
.results-table td {
  border-bottom: 1px solid #e0e3e8;
  padding: 12px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.results-table th {
  background: #f0f2f5;
  color: #343a46;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.results-table tr:last-child td {
  border-bottom: none;
}

.id-cell {
  width: 17%;
  font-weight: 700;
  color: #2f3644;
  white-space: nowrap;
}

.text-cell {
  line-height: 1.4;
  color: #202633;
  white-space: pre-wrap;
  word-break: break-word;
}

.muted {
  color: #6b7280;
}

.time-cell {
  width: 16%;
  color: #5a6070;
  white-space: nowrap;
}

.action-cell {
  width: 180px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

.feedback-cell textarea,
.feedback-cell input,
.feedback-cell select {
  min-width: 0;
  width: 100%;
  font-size: 12px;
}

.feedback-cell textarea {
  min-height: 64px;
  padding: 8px;
  border-radius: 10px;
}

.feedback-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.feedback-row-btn {
  border: 1px solid #16181d;
  background: #0f1115;
  color: #f5f7fb;
  border-radius: 8px;
  min-width: 68px;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.feedback-row-btn:hover {
  background: #1a1d24;
}

.feedback-row-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.feedback-row-remove {
  border-color: #742a2a;
  color: #ffd7d7;
}

.feedback-row-remove:hover {
  background: #2a1212;
}

.feedback-add-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.results-table th:last-child,
.results-table td:last-child {
  text-align: right;
}

.job-edit-btn,
.job-sourcing-btn,
.job-candidates-btn,
.job-inmail-btn,
.job-feedback-btn,
.job-redflag-btn,
.job-remove-btn {
  border: 1px solid #21242b;
  background: #ffffff;
  color: #111111;
  border-radius: 9px;
  width: 30px;
  height: 30px;
  padding: 0;
  line-height: 1;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.job-edit-btn svg,
.job-sourcing-btn svg,
.job-candidates-btn svg,
.job-inmail-btn svg,
.job-feedback-btn svg,
.job-redflag-btn svg,
.job-remove-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.job-edit-btn:hover,
.job-sourcing-btn:hover,
.job-candidates-btn:hover,
.job-inmail-btn:hover,
.job-redflag-btn:hover,
.job-feedback-btn:hover,
.job-remove-btn:hover {
  background: #111111;
  color: #ffffff;
  transform: translateY(-1px);
}

.empty-row {
  text-align: center;
  padding: 18px 12px;
  color: #667085;
  background: #fafbfc;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 17, 20, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 40;
}

.modal-card {
  width: min(940px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: #f8f8f9;
  border: 1px solid #d7d7da;
  border-radius: 16px;
  padding: 18px;
  --sticky-head-offset: -18px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  position: sticky;
  top: var(--sticky-head-offset);
  z-index: 6;
  background: #f8f8f9;
  padding: 12px 0 10px;
  border-bottom: 1px solid #d9dde4;
}

.modal-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modal-head h3 {
  margin: 0;
  font-size: 20px;
}

.redflags-add-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: flex-end;
  position: sticky;
  top: 56px;
  z-index: 5;
  background: #f8f8f9;
  padding: 10px 0 10px;
  border-bottom: 1px solid #e1e4ea;
}

.redflags-add-row input,
.redflags-add-row textarea {
  flex: 1;
  transition: min-height 120ms ease, box-shadow 120ms ease, transform 120ms ease;
  min-height: 88px;
}

#jobCriterionTextInput:focus,
#jobCriterionContextInput:focus {
  min-height: 140px;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(15, 16, 19, 0.12);
}

.redflags-columns {
  display: grid;
  grid-template-columns: 54px 74px 1.1fr 72px 1.4fr 120px;
  gap: 6px;
  margin-bottom: 6px;
  padding: 0 8px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 166px;
  z-index: 4;
  background: #f8f8f9;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e1e4ea;
}

.redflags-list {
  display: grid;
  gap: 8px;
}

.criterion-item {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 72px minmax(220px, 1fr) 28px;
  gap: 6px;
  align-items: center;
  border: 1px solid #dfe2e7;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.redflag-item {
  display: grid;
  grid-template-columns: 54px 74px 1.1fr 72px 1.4fr 120px;
  gap: 6px;
  align-items: center;
  border: 1px solid #dfe2e7;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.redflag-item input {
  min-width: 0;
}

.redflag-item textarea {
  min-width: 0;
}

.criterion-item input {
  min-width: 0;
}

.redflag-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  border-radius: 4px;
}

.redflag-item input[readonly] {
  background: #f4f5f7;
  border-color: #d7dce3;
  color: #3b4451;
}

.redflag-criterion-input,
.redflag-context-input {
  transition: min-height 120ms ease, box-shadow 120ms ease, transform 120ms ease;
  min-height: 92px;
  resize: vertical;
  line-height: 1.35;
}

.redflag-criterion-input:focus,
.redflag-context-input:focus {
  min-height: 160px;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(15, 16, 19, 0.12);
}

.criteria-type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #cfd5dd;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f2f4f7;
  color: #4a5565;
}

.criteria-type-chip.is-job {
  background: #e9f2ff;
  border-color: #bcd6ff;
  color: #1e4b8f;
}

.criteria-type-chip.is-global {
  background: #fff1f1;
  border-color: #ffd0d0;
  color: #8f1e1e;
}

.redflag-item.is-job {
  border-left: 4px solid #4b8bff;
}

.redflag-item.is-global {
  border-left: 4px solid #ff6b6b;
}

.redflag-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #21242b;
  background: #fff;
  color: #111111;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 120ms ease, color 120ms ease;
}

.redflag-action-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.redflag-action-btn:hover {
  background: #111111;
  color: #ffffff;
}

.saved-candidate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  margin-right: 4px;
  border: 1px solid #a40000;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  background: #ffe8e8;
  color: #7a0000;
}

.candidate-source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid #c9ced6;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

.candidates-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0 12px;
}

.candidates-toolbar-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.candidates-totals {
  color: #555b66;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.candidates-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.candidates-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #475467;
}

.candidates-filter input {
  height: 30px;
  min-width: 132px;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid #cdd3dd;
  background: #ffffff;
  font-size: 12px;
}

.candidates-filter select {
  height: 30px;
  min-width: 108px;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid #cdd3dd;
  background: #ffffff;
  font-size: 12px;
}

.candidates-filter input[type="number"] {
  min-width: 90px;
}

.candidates-filter--toggle {
  gap: 8px;
  padding: 0 10px;
  height: 30px;
  border: 1px solid #cdd3dd;
  border-radius: 999px;
  background: #ffffff;
}

.candidates-filter--toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  min-width: 14px;
  margin: 0;
  padding: 0;
  border: 1px solid #98a2b3;
  border-radius: 4px;
  background: #ffffff;
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.candidates-filter--toggle input[type="checkbox"]:checked {
  border-color: #111111;
  background: #111111;
}

.candidates-filter--toggle input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.candidates-wrap {
  border-radius: 12px;
}

.candidates-pager {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.pager-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #c7ccd6;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pager-btn:hover:not(:disabled) {
  border-color: #101318;
}

.pager-btn.is-active {
  border-color: #101318;
  background: #101318;
  color: #ffffff;
}

.pager-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.pager-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.candidates-table {
  min-width: 1160px;
}

.candidates-table th,
.candidates-table td {
  padding: 7px 6px;
  font-size: 11px;
  border-right: 1px solid #d3d8e0;
  border-bottom: 1px solid #d3d8e0;
  vertical-align: top;
}

.candidates-table .text-cell {
  white-space: normal;
}

#sourcingView .candidates-table th:nth-child(2),
#sourcingView .candidates-table td:nth-child(2) {
  width: 212px;
  min-width: 212px;
  max-width: 212px;
}

#sourcingView .candidates-table th:nth-child(3),
#sourcingView .candidates-table td:nth-child(3) {
  width: 198px;
  min-width: 198px;
  max-width: 198px;
}

#sourcingView .candidates-table th:nth-child(4),
#sourcingView .candidates-table td:nth-child(4) {
  width: 138px;
  min-width: 138px;
  max-width: 138px;
}

#sourcingView .candidates-table th:nth-child(5),
#sourcingView .candidates-table td:nth-child(5) {
  width: 182px;
  min-width: 182px;
  max-width: 182px;
}

#sourcingView .candidates-table th:nth-child(6),
#sourcingView .candidates-table td:nth-child(6) {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
}

#sourcingView .candidates-wrap {
  overflow-x: hidden;
}

#sourcingView .candidates-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

#companiesView .companies-table th:nth-child(1),
#companiesView .companies-table td:nth-child(1) {
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  text-align: center;
}

#companiesView .companies-table th:nth-child(2),
#companiesView .companies-table td:nth-child(2) {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
}

#companiesView .companies-table th:nth-child(3),
#companiesView .companies-table td:nth-child(3) {
  width: 380px;
  min-width: 380px;
  max-width: 380px;
}

#companiesView .companies-table th:nth-child(4),
#companiesView .companies-table td:nth-child(4) {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
}

#companiesView .companies-table th:nth-child(5),
#companiesView .companies-table td:nth-child(5) {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
}

#companiesView .companies-table th:nth-child(6),
#companiesView .companies-table td:nth-child(6) {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

#companiesView .companies-table th:nth-child(7),
#companiesView .companies-table td:nth-child(7) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

#companiesView .companies-table td {
  vertical-align: middle;
}

.candidates-table tr > *:first-child {
  border-left: 1px solid #d3d8e0;
}

.candidates-table thead tr:first-child th {
  border-top: 1px solid #d3d8e0;
  background: #eef0f4;
  color: #2e3441;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 700;
}

.candidates-table thead th[data-sort-key] {
  cursor: pointer;
  user-select: none;
}

.candidates-table thead th[data-sort-key]:hover {
  background: #e6eaf0;
}

.candidates-table .c-select {
  width: 34px;
  text-align: center;
}

.candidates-table .action-cell {
  width: 52px;
  min-width: 52px;
  display: table-cell;
  margin-left: 0;
  text-align: center;
  vertical-align: middle;
}

.candidate-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  min-width: 0;
}

.candidate-name-inline-btn {
  flex-shrink: 0;
}

.sourcing-name-cell {
  min-width: 0;
  max-width: 100%;
}

.candidate-popup-trigger {
  border: 1px solid #b9bec8;
  background: #ffffff;
  color: #232a38;
  border-radius: 999px;
  height: 22px;
  min-width: 22px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.candidate-popup-trigger:disabled {
  opacity: 0.45;
  cursor: default;
}

.candidate-popup-trigger--star {
  padding: 0;
  width: 22px;
  min-width: 22px;
  color: #ffffff;
  text-shadow:
    -1px 0 #98a2b3,
    0 1px #98a2b3,
    1px 0 #98a2b3,
    0 -1px #98a2b3;
}

.candidate-popup-trigger--star.is-filled {
  color: #111111;
  text-shadow: none;
}

.candidate-popup-trigger--score.is-none {
  color: #5f6775;
  border-color: #d0d5dd;
  background: #f2f4f7;
}

.candidate-popup-trigger--score.is-low {
  color: #b42318;
  border-color: #f0b2ac;
  background: #fff1f0;
}

.candidate-popup-trigger--score.is-mid {
  color: #ad6800;
  border-color: #f8cf87;
  background: #fff7e6;
}

.candidate-popup-trigger--score.is-high {
  color: #067647;
  border-color: #9ad4b7;
  background: #ecfdf3;
}

.candidates-actions {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.candidates-table td.action-cell {
  vertical-align: middle;
  white-space: nowrap;
}

.candidates-table td.action-cell .candidates-actions {
  width: 100%;
  justify-content: center;
}

#sourcingView .candidates-table td.action-cell {
  text-align: center;
  vertical-align: middle;
}

#sourcingView .candidates-table td.action-cell .tiny-action {
  margin: 0 auto;
}

.tiny-action {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid #b9bec8;
  background: #ffffff;
  color: #232a38;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.tiny-action:hover {
  border-color: #0f1013;
}

.tiny-action:disabled {
  opacity: 0.45;
  cursor: default;
}

.tiny-action.is-danger {
  border-color: #c74b59;
  color: #c74b59;
}

.tiny-action.is-saved {
  border-color: #159f63;
  background: #159f63;
  color: #ffffff;
}

.tiny-action.is-saved:hover {
  border-color: #0d7c4c;
  background: #0d7c4c;
}

.saved-candidate-skill-btn {
  width: auto;
  min-width: 30px;
  padding: 0 4px;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: lowercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid #c7ccd6;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.status-pill.is-active {
  border-color: #101318;
  background: #101318;
  color: #ffffff;
}

.messaging-status-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 132px;
}

.messaging-mini-col {
  display: grid;
  justify-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.messaging-mini-col:disabled {
  cursor: default;
  opacity: 0.55;
}

.messaging-mini-icon {
  width: 22px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #c7ccd6;
}

.messaging-mini-icon svg {
  width: 14px;
  height: 14px;
  stroke: #111111;
  stroke-width: 1.25;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.messaging-mini-col.is-unknown .messaging-mini-icon {
  background: #fff1f0;
  border-color: #f0b2ac;
}

.messaging-mini-col.is-unknown .messaging-mini-icon svg {
  stroke: #b42318;
}

.messaging-mini-col.is-sent .messaging-mini-icon {
  background: #fff7e6;
  border-color: #f8cf87;
}

.messaging-mini-col.is-sent .messaging-mini-icon svg {
  stroke: #ad6800;
}

.messaging-mini-col.is-connected .messaging-mini-icon {
  background: #ecfdf3;
  border-color: #9ad4b7;
}

.messaging-mini-col.is-connected .messaging-mini-icon svg {
  stroke: #067647;
}

.message-cell {
  width: 40px;
  min-width: 40px;
  text-align: center;
  vertical-align: middle;
}

.outreach-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.outreach-status-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #20232a;
}

.outreach-status-grid .modal-select {
  width: 100%;
  max-width: none;
}

.linkedin-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  flex: 0 0 18px;
  border-radius: 3px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-transform: lowercase;
  line-height: 1;
  overflow: hidden;
  color: #ffffff;
  background: #0a66c2;
  vertical-align: top;
  cursor: pointer;
}

.linkedin-link-btn:hover {
  filter: brightness(1.06);
}

.linkedin-link-btn--recruiter {
  color: #0a66c2;
  background: #ffffff;
  border: 1px solid #0a66c2;
  text-transform: uppercase;
}

.truncate-cell {
  display: inline-block;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

@keyframes rise {
  from {
    transform: translateY(4px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 940px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .side-card.accent p {
    font-size: 18px;
  }

  .create-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .action-cell {
    width: auto;
  }

}
