/* ==========================================================================
   Company Dashboard - Train & Hire
   Company-specific styles. Shared panel layout in application.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.co-form {
  max-width: 640px;
}

.co-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
  margin-bottom: 0.3rem;
  letter-spacing: -0.005em;
}

.co-form input[type='text'],
.co-form input[type='url'],
.co-form input[type='email'],
.co-form input[type='number'],
.co-form input[type='file'],
.co-form input[type='datetime-local'],
.co-form select,
.co-form textarea {
  display: block;
  width: 100%;
  font-family: var(--jobs-font);
  font-size: 0.85rem;
  border-radius: 8px;
  border: 1.5px solid var(--jobs-card-border);
  padding: 0.55rem 0.85rem;
  /* background-color, not the shorthand: the shorthand would wipe the
     chevron background-image .co-dashboard select draws. */
  background-color: #f9fafb;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.co-form select {
  padding-right: 2.25rem;
}

.co-form input:focus,
.co-form select:focus,
.co-form textarea:focus {
  border-color: var(--jobs-accent);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
  background-color: #fff;
}

.co-form trix-editor {
  font-family: var(--jobs-font);
  font-size: 0.88rem;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 0 0 8px 8px;
  padding: 0.75rem 0.85rem;
  min-height: 160px;
  background: #f9fafb;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.co-form trix-editor:focus {
  border-color: var(--jobs-accent);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
  background: #fff;
}

.co-form trix-toolbar {
  border: 1.5px solid var(--jobs-card-border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: #fafbfc;
  padding: 0.35rem;
}

.co-form-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #f0f1f3;
}

.co-form-section:last-child,
.co-form-section:has(+ .co-form-actions) {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.co-form-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--jobs-text-secondary);
  margin-bottom: 1rem;
}

.co-form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--jobs-card-border);
  margin-top: 1.75rem;
}

.co-form-actions input[type='submit'],
.co-form-actions button[type='submit'] {
  font-family: var(--jobs-font);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 0.55rem 1.5rem;
  letter-spacing: -0.01em;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.co-form-actions input[type='submit']:hover,
.co-form-actions button[type='submit']:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.25);
}

.co-form-actions input[type='submit']:active,
.co-form-actions button[type='submit']:active {
  transform: translateY(0);
  box-shadow: none;
}

.co-form-actions a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--jobs-text-secondary);
  text-decoration: none;
}

.co-form-actions a:hover {
  color: var(--jobs-text-primary);
}

/* --------------------------------------------------------------------------
   Inline forms (add skill / credential / location on job show)
   -------------------------------------------------------------------------- */

.co-inline-form {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: #fafbfc;
  border: 1.5px dashed var(--jobs-card-border);
  border-radius: 8px;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.co-inline-form label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jobs-text-secondary);
  margin-bottom: 0.15rem;
}

.co-inline-form input[type='text'],
.co-inline-form input[type='number'],
.co-inline-form select {
  font-family: var(--jobs-font);
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1.5px solid var(--jobs-card-border);
  padding: 0.35rem 0.65rem;
  /* background-color, not the background shorthand, which would clear the
     chevron background-image .co-dashboard select draws. */
  background-color: #fff;
}

.co-inline-form select {
  padding-right: 2rem;
}

.co-inline-form input[type='text']:focus,
.co-inline-form input[type='number']:focus,
.co-inline-form select:focus {
  border-color: var(--jobs-accent);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
}

.co-inline-form input[type='submit'],
.co-inline-form button[type='submit'] {
  font-family: var(--jobs-font);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.38rem 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Removable item row (for skills, credentials, locations on job show) */
.co-assoc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.85rem;
  transition: background 0.12s ease;
}

.co-assoc-item:last-child {
  border-bottom: none;
}

.co-assoc-item:hover {
  background: #fafbfc;
}

.co-assoc-item-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.co-assoc-item-name {
  font-weight: 600;
  color: var(--jobs-text-primary);
  letter-spacing: -0.01em;
}

.co-assoc-item-meta {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
}

.co-assoc-item .btn-remove {
  font-size: 0.72rem;
  font-weight: 600;
  color: #dc3545;
  background: none;
  border: none;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  opacity: 0;
  transition:
    opacity 0.15s ease,
    background 0.12s ease;
  cursor: pointer;
}

.co-assoc-item:hover .btn-remove,
.co-assoc-item:focus-within .btn-remove {
  opacity: 1;
}

.co-assoc-item .btn-remove:hover {
  background: #fee2e2;
}

/* --------------------------------------------------------------------------
   Application pipeline (Kanban-style grouped columns)
   -------------------------------------------------------------------------- */

.co-pipeline {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #c4c8cc transparent;
}

.co-pipeline::-webkit-scrollbar {
  height: 5px;
}
.co-pipeline::-webkit-scrollbar-track {
  background: transparent;
}
.co-pipeline::-webkit-scrollbar-thumb {
  background: #c4c8cc;
  border-radius: 3px;
}

.co-pipeline-col {
  flex: 1 1 0;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
}

.co-pipeline-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid var(--jobs-card-border);
  position: sticky;
  top: 0;
  z-index: 1;
}

.co-pipeline-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jobs-text-secondary);
}

.co-pipeline-col-count {
  font-size: 0.68rem;
  font-weight: 700;
  background: #eef1f5;
  color: var(--jobs-text-secondary);
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* Pipeline column accent colors */
.co-pipeline-col[data-status='submitted'] .co-pipeline-col-header {
  border-left: 3px solid var(--status-submitted-accent);
}
.co-pipeline-col[data-status='reviewing'] .co-pipeline-col-header {
  border-left: 3px solid var(--status-reviewing-accent);
}
.co-pipeline-col[data-status='interviewed'] .co-pipeline-col-header {
  border-left: 3px solid var(--status-interviewed-accent);
}
.co-pipeline-col[data-status='offered'] .co-pipeline-col-header {
  border-left: 3px solid var(--status-offered-accent);
}
.co-pipeline-col[data-status='hired'] .co-pipeline-col-header {
  border-left: 3px solid var(--status-hired-accent);
  background: #ecfdf5;
}
.co-pipeline-col[data-status='rejected'] .co-pipeline-col-header {
  border-left: 3px solid var(--status-rejected-accent);
}
.co-pipeline-col[data-status='withdrawn'] .co-pipeline-col-header {
  border-left: 3px solid var(--status-withdrawn-accent);
}

.co-pipeline-col-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.co-pipeline-card {
  display: block;
  background: #fff;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s ease;
}

.co-pipeline-card:hover {
  border-color: #c7d7f7;
  box-shadow: var(--jobs-card-hover-shadow);
  transform: translateY(-1px);
  color: inherit;
  text-decoration: none;
}

.co-pipeline-card-name {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--jobs-text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.co-pipeline-card-meta {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
}

/* "View all N" under a column that has more cards than it shows. */
.co-pipeline-more {
  display: block;
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--th-accent);
  text-decoration: none;
  border: 1.5px dashed var(--jobs-card-border);
  border-radius: 8px;
}

.co-pipeline-more:hover {
  border-color: #c7d7f7;
  background: #f8faff;
}

.co-pipeline-empty {
  padding: 1.25rem 0.75rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--jobs-text-muted);
  background: #fafbfc;
  border: 1.5px dashed var(--jobs-card-border);
  border-radius: 8px;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.35;
}

/* When fewer columns survive after hiding empty terminals, give them
   a touch more breathing room. */
.co-pipeline-cols-3 .co-pipeline-col,
.co-pipeline-cols-4 .co-pipeline-col {
  max-width: 360px;
}

/* --------------------------------------------------------------------------
   Candidate detail - two column layout
   -------------------------------------------------------------------------- */

.co-candidate {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.co-candidate-main {
  min-width: 0;
}

.co-candidate-sidebar {
  position: sticky;
  top: 2rem;
}

.co-candidate-sidebar-card {
  background: #fff;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.co-candidate-sidebar-card + .co-candidate-sidebar-card {
  margin-top: 1rem;
}

.co-candidate-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--jobs-card-border);
}

.co-candidate-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8eef4, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #3d5a80;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   An applicant's mobile number (company/applications/_phone_row and
   _phone_bar). On a desktop the applicant card sits beside the page, and
   its Mobile row has plain Call and Text links. On a phone that card drops
   under everything else, so the same two actions are thumb-sized buttons at
   the top of the page, and the row's links grow to thumb size too.
   -------------------------------------------------------------------------- */

/* The number and its links share a line when the card is wide enough, so
   the row stays one line tall: the card is a sticky column with little
   height to spare. */
.co-phone-value {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0 0.7rem;
}

.co-phone-links {
  display: inline-flex;
  gap: 0.6rem;
}

.co-phone-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--th-accent-hover);
}

.co-phone-link:hover {
  text-decoration: underline;
}

.co-phone-link:focus-visible {
  outline: 2px solid var(--jobs-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* "Calls only, no texts." and "Marcus prefers a text." */
.co-phone-note {
  flex-basis: 100%;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--jobs-text-secondary);
}

.co-phone-bar {
  display: none;
}

@media (max-width: 991.98px) {
  .co-phone-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
  }

  .co-phone-bar-btn {
    flex: 1 1 auto;
    min-height: 3rem;
    font-size: 0.95rem;
  }

  .co-phone-bar-call {
    flex-grow: 3;
  }

  .co-phone-bar-btn svg {
    width: 18px;
    height: 18px;
  }

  .co-phone-bar-note {
    flex-basis: 100%;
    margin: 0;
    font-size: 0.8rem;
    color: var(--jobs-text-secondary);
  }

  .co-phone-links {
    gap: 0.5rem;
    margin-top: 0.25rem;
  }

  .co-phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    min-height: 2.75rem;
    padding: 0 0.9rem;
    border: 1.5px solid var(--jobs-card-border);
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
  }
}

/* "3 attempts, first scored 40%" under an applicant's assessment score */
.co-assessment-attempts {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: var(--jobs-text-muted);
}

/* Candidate Profile section on the application page */
.co-profile-bio {
  font-size: 0.85rem;
  color: var(--th-text-secondary);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  overflow-wrap: anywhere;
}

.co-profile-list {
  margin: 0 -0.75rem 1.25rem;
}

.co-profile-list:last-child {
  margin-bottom: 0;
}

.co-profile-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

/* --------------------------------------------------------------------------
   Section headings (reuse jobs pattern)
   -------------------------------------------------------------------------- */

.co-section {
  margin-bottom: 1.75rem;
}

/* --------------------------------------------------------------------------
   Notes
   -------------------------------------------------------------------------- */

.co-note {
  padding: 0.85rem 0;
  border-bottom: 1px solid #f3f4f6;
  animation: fadeSlideIn 0.2s ease-out;
}

.co-note:last-child {
  border-bottom: none;
}

.co-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.co-note-author {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
}

.co-note-time {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
}

.co-note-body {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #374151;
}

.co-note-actions {
  margin-top: 0.3rem;
}

.co-note-actions a,
.co-note-actions button {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--jobs-text-muted);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.co-note-actions a:hover,
.co-note-actions button:hover {
  color: #dc3545;
}

/* Note form */
.co-note-form textarea {
  font-family: var(--jobs-font);
  font-size: 0.85rem;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  background: #f9fafb;
  resize: vertical;
  min-height: 80px;
  width: 100%;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.co-note-form textarea:focus {
  border-color: var(--jobs-accent);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
  background: #fff;
  outline: none;
}

.co-note-form input[type='submit'],
.co-note-form button[type='submit'] {
  font-family: var(--jobs-font);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Messages (conversation thread)
   -------------------------------------------------------------------------- */

.co-message-thread {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-height: 480px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.co-message {
  max-width: 82%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  animation: fadeSlideIn 0.2s ease-out;
}

.co-message-received {
  align-self: flex-start;
  background: #f3f4f6;
  border-bottom-left-radius: 3px;
}

.co-message-sent {
  align-self: flex-end;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-bottom-right-radius: 3px;
}

.co-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
  gap: 0.75rem;
}

.co-message-sender {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--jobs-text-primary);
}

.co-message-time {
  font-size: 0.65rem;
  color: var(--jobs-text-muted);
  white-space: nowrap;
}

.co-message-body {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #374151;
}

.co-message-body p {
  margin: 0;
}

.co-message-body p + p {
  margin-top: 0.35rem;
}

.co-message-read {
  font-size: 0.62rem;
  color: var(--jobs-text-muted);
  text-align: right;
  margin-top: 0.15rem;
}

/* Message form */
.co-message-form textarea {
  font-family: var(--jobs-font);
  font-size: 0.85rem;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  background: #f9fafb;
  resize: vertical;
  min-height: 80px;
  width: 100%;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.co-message-form textarea:focus {
  border-color: var(--jobs-accent);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
  background: #fff;
  outline: none;
}

.co-message-form input[type='submit'],
.co-message-form button[type='submit'] {
  font-family: var(--jobs-font);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  margin-top: 0.5rem;
}

/* Unread message badge on application cards */
.co-unread-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.co-unread-badge svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* --------------------------------------------------------------------------
   Skill match indicators (candidate detail)
   -------------------------------------------------------------------------- */

.co-skill-match {
  background: var(--tone-success-bg);
  color: var(--tone-success-fg);
}
.co-skill-missing {
  background: var(--tone-danger-bg);
  color: var(--tone-danger-fg);
}
.co-skill-partial {
  background: var(--tone-warning-bg);
  color: var(--tone-warning-fg);
}

/* --------------------------------------------------------------------------
   Delete / danger zone
   -------------------------------------------------------------------------- */

.co-danger-zone {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #fee2e2;
}

.co-danger-zone-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #991b1b;
  margin-bottom: 0.5rem;
}

.co-danger-zone p {
  font-size: 0.82rem;
  color: var(--jobs-text-secondary);
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Job show tabs
   -------------------------------------------------------------------------- */

.co-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--jobs-card-border);
  margin-bottom: 1.5rem;
}

.co-tab {
  font-family: var(--jobs-font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jobs-text-secondary);
  text-decoration: none;
  padding: 0.65rem 1.15rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: all 0.15s ease;
}

.co-tab:hover {
  color: var(--jobs-text-primary);
}

.co-tab.active {
  color: var(--th-accent-hover);
  border-bottom-color: var(--jobs-accent);
}

/* --------------------------------------------------------------------------
   Status update (dropdown on candidate detail)
   -------------------------------------------------------------------------- */

.co-status-update {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.co-status-update select {
  font-family: var(--jobs-font);
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1.5px solid var(--jobs-card-border);
  padding: 0.35rem 1.8rem 0.35rem 0.55rem;
  background-color: #f9fafb;
  max-width: 180px;
}

.co-status-update input[type='submit'],
.co-status-update button[type='submit'] {
  font-family: var(--jobs-font);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.38rem 0.85rem;
}

/* --------------------------------------------------------------------------
   Alerts and warnings within content
   -------------------------------------------------------------------------- */

.co-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.co-alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  stroke-width: 1.75;
  fill: none;
}

.co-alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.co-alert-warning svg {
  stroke: #f59e0b;
}

.co-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.co-alert-info svg {
  stroke: #3b82f6;
}

/* --------------------------------------------------------------------------
   No-sidebar layout (company creation page, before company context)
   -------------------------------------------------------------------------- */

.co-standalone {
  font-family: var(--jobs-font);
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.co-standalone-header {
  margin-bottom: 2rem;
}

.co-standalone-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--jobs-text-primary);
  letter-spacing: -0.035em;
  margin-bottom: 0.15rem;
}

.co-standalone-subtitle {
  font-size: 0.88rem;
  color: var(--jobs-text-secondary);
  margin-top: 0.35rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Setup steps (company creation onboarding)
   -------------------------------------------------------------------------- */

.co-setup-steps {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: #f8fafc;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 10px;
}

.co-setup-step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1;
  opacity: 0.45;
}

.co-setup-step-active {
  opacity: 1;
}

.co-setup-step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.co-setup-step-active .co-setup-step-number {
  background: var(--jobs-accent);
  color: #fff;
}

.co-setup-step-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.co-setup-step-text strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--jobs-text-primary);
  letter-spacing: -0.01em;
}

.co-setup-step-text span {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
}

/* --------------------------------------------------------------------------
   Team member display
   -------------------------------------------------------------------------- */

.co-member-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.co-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8eef4, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  color: #3d5a80;
  flex-shrink: 0;
}

.co-member-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--jobs-text-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.co-member-email {
  font-size: 0.75rem;
  color: var(--jobs-text-muted);
  margin-top: 0.05rem;
}

.co-badge-you {
  font-size: 0.6rem;
  font-weight: 600;
  background: #eff6ff;
  color: #2563eb;
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Invitation status badges
   -------------------------------------------------------------------------- */

.co-invitation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.co-invitation-badge svg {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.co-invitation-pending {
  background: var(--tone-warning-bg);
  color: var(--tone-warning-fg);
}

.co-invitation-expired {
  background: var(--tone-neutral-bg);
  color: var(--tone-neutral-fg);
}

.co-invitation-status-hint {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Pending invitation count badge in sidebar
   -------------------------------------------------------------------------- */

.co-nav-badge-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

/* --------------------------------------------------------------------------
   Role permission cards (invitation form)
   -------------------------------------------------------------------------- */

.co-role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.co-role-card {
  background: #f8fafc;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  padding: 0.85rem;
}

.co-role-card-title {
  margin-bottom: 0.55rem;
}

.co-role-card-perms {
  list-style: none;
  padding: 0;
  margin: 0;
}

.co-role-card-perms li {
  font-size: 0.75rem;
  color: var(--jobs-text-secondary);
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}

.co-role-card-perms li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
}

/* --------------------------------------------------------------------------
   Invitation acceptance page
   -------------------------------------------------------------------------- */

.co-invitation-hero {
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, #eff6ff, #fff);
  border-bottom: 1px solid #e5e7eb;
}

.co-invitation-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.85rem;
}

.co-invitation-detail-label {
  color: var(--jobs-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.co-invitation-what-next {
  margin-bottom: 1.5rem;
}

.co-invitation-perks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.co-invitation-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.82rem;
  color: var(--jobs-text-secondary);
}

.co-invitation-perks li svg {
  width: 15px;
  height: 15px;
  stroke: #10b981;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

/* The card and its Move button come in together. */
.co-pipeline-item {
  animation: fadeSlideIn 0.2s ease-out both;
}

.co-pipeline-col:nth-child(1) .co-pipeline-item {
  animation-delay: 0.02s;
}
.co-pipeline-col:nth-child(2) .co-pipeline-item {
  animation-delay: 0.04s;
}
.co-pipeline-col:nth-child(3) .co-pipeline-item {
  animation-delay: 0.06s;
}
.co-pipeline-col:nth-child(4) .co-pipeline-item {
  animation-delay: 0.08s;
}
.co-pipeline-col:nth-child(5) .co-pipeline-item {
  animation-delay: 0.1s;
}
.co-pipeline-col:nth-child(6) .co-pipeline-item {
  animation-delay: 0.12s;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .co-candidate {
    grid-template-columns: 1fr;
  }

  .co-candidate-sidebar {
    position: static;
  }

  .co-pipeline {
    overflow-x: scroll;
  }
}

@media (max-width: 575.98px) {
  .co-inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .co-setup-steps {
    flex-direction: column;
    gap: 0.75rem;
  }

  .co-role-cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Sort controls and page actions
   ========================================================================== */

.co-page-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.co-sort-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Admin index filter bar: the search box takes the free width, selects keep
   their content width up to a cap, the buttons sit at the end. */
.co-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.co-filter-bar-search {
  flex: 1 1 240px;
  min-width: 0;
}

.co-filter-bar select {
  max-width: 240px;
}

.co-sort-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jobs-text-secondary);
  white-space: nowrap;
  margin-bottom: 0;
}

.co-sort-select {
  width: auto;
}

/* ==========================================================================
   Candidate match card enhancements
   ========================================================================== */

.co-match-heading {
  font-family: var(--jobs-font);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--jobs-text-secondary);
  margin-bottom: 0.35rem;
}

.co-match-card-excellent {
  border-left: 4px solid #059669;
}
.co-match-card-strong {
  border-left: 4px solid #3b82f6;
}
.co-match-card-moderate {
  border-left: 4px solid #d97706;
}
.co-match-card-developing {
  border-left: 4px solid #dc2626;
}

.co-match-score-excellent {
  color: #047857;
}
.co-match-score-strong {
  color: #2563eb;
}
.co-match-score-moderate {
  color: #b45309;
}
.co-match-score-developing {
  color: #dc2626;
}

/* Section description text */
.co-section-desc {
  font-size: 0.82rem;
  color: var(--jobs-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* Skill row info area */
.co-match-skill-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.co-match-skill-name {
  font-weight: 600;
  color: var(--jobs-text-primary);
  letter-spacing: -0.01em;
}

/* Verification badge with checkmark icon */
.co-match-badge svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.co-match-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

/* Empty text in sections */
.co-match-empty-text {
  color: var(--jobs-text-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Applicant page: "View card" beside a credential, for the photo or file
   of the license or certificate card on the applicant's profile. */
.co-card-photo-badges {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.co-card-photo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--jobs-card-border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--th-accent);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.co-card-photo-link:hover {
  border-color: var(--th-accent);
  background: #eff6ff;
}

.co-card-photo-link svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.co-card-photo-also {
  margin: 0.85rem 0 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--jobs-text-muted);
}

.co-card-photo-withheld {
  margin-top: 0.6rem;
  font-size: 0.78rem;
}

/* On a phone the section's rows stack and sit centered, as the skill rows
   above them do. */
@media (max-width: 575.98px) {
  .co-card-photo-badges {
    justify-content: center;
  }

  .co-card-photo-also,
  .co-card-photo-withheld {
    text-align: center;
  }

  .co-card-photo-link {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
  }
}

/* Experience label and detail */
.co-match-experience-label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.co-match-exp-met {
  color: #047857;
  font-weight: 600;
}

.co-match-exp-unmet {
  color: #dc2626;
  font-weight: 600;
}

.co-match-experience-detail {
  font-size: 0.78rem;
  color: var(--jobs-text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive - sort controls + match card
   ========================================================================== */

@media (max-width: 575.98px) {
  .co-filter-bar > * {
    flex: 1 1 100%;
  }

  .co-filter-bar select {
    max-width: none;
  }

  .co-page-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .co-sort-form {
    width: 100%;
  }

  .co-sort-select {
    flex: 1;
  }

  .co-match-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .co-match-skill-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

/* ==========================================================================
   Application filter tabs
   ========================================================================== */

/* The shared .co-tabs underline tabs (as on the jobs list), scrollable on
   narrow screens. The divider is an inset shadow rather than .co-tabs'
   border: the scroll container would clip the active underline where it
   overlaps a border. */
.co-app-filter-tabs {
  border-bottom: none;
  box-shadow: inset 0 -1.5px 0 var(--jobs-card-border);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.co-app-filter-tabs::-webkit-scrollbar {
  display: none;
}

.co-app-filter-tabs .co-tab {
  margin-bottom: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Active tab takes its status color */
.co-app-filter-tab-submitted.active {
  color: var(--status-submitted-fg);
  border-bottom-color: var(--status-submitted-accent);
}
.co-app-filter-tab-reviewing.active {
  color: var(--status-reviewing-fg);
  border-bottom-color: var(--status-reviewing-accent);
}
.co-app-filter-tab-interviewed.active {
  color: var(--status-interviewed-fg);
  border-bottom-color: var(--status-interviewed-accent);
}
.co-app-filter-tab-offered.active {
  color: var(--status-offered-fg);
  border-bottom-color: var(--status-offered-accent);
}
.co-app-filter-tab-hired.active {
  color: var(--status-hired-text);
  border-bottom-color: var(--status-hired-accent);
}
.co-app-filter-tab-rejected.active {
  color: var(--status-rejected-fg);
  border-bottom-color: var(--status-rejected-accent);
}
.co-app-filter-tab-withdrawn.active {
  color: var(--status-withdrawn-fg);
  border-bottom-color: var(--status-withdrawn-accent);
}

/* ==========================================================================
   Application prev/next navigation
   ========================================================================== */

.co-app-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.co-app-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--jobs-font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jobs-text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 6px;
  background: #fff;
  transition: all 0.15s ease;
}

.co-app-nav-btn:hover {
  color: var(--jobs-text-primary);
  border-color: #c7d7f7;
  background: #f9fafb;
}

.co-app-nav-btn-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.co-app-nav-counter {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--jobs-text-muted);
  padding: 0 0.25rem;
  white-space: nowrap;
}

/* ==========================================================================
   Status update buttons (radio button style)
   ========================================================================== */

.co-status-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.co-status-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--jobs-font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1.5px solid var(--jobs-card-border);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--jobs-text-secondary);
}

.co-status-option:hover {
  border-color: #c7d7f7;
  background: #f9fafb;
}

/* The radio is sr-only, so show keyboard focus on the whole option. */
.co-status-option:has(input:focus-visible) {
  outline: 2px solid var(--th-accent);
  outline-offset: 2px;
}

/* Only the checked radio is highlighted. .co-status-option-active marks
   the saved status for status_update_controller.js; styling it too lit up
   two options once another was picked. */
.co-status-option:has(input:checked) {
  border-color: currentColor;
  font-weight: 700;
}

.co-status-option-submitted:has(input:checked) {
  color: var(--status-submitted-fg);
  background: var(--status-submitted-bg);
  border-color: var(--status-submitted-accent);
}
.co-status-option-reviewing:has(input:checked) {
  color: var(--status-reviewing-fg);
  background: var(--status-reviewing-bg);
  border-color: var(--status-reviewing-accent);
}
.co-status-option-interviewed:has(input:checked) {
  color: var(--status-interviewed-fg);
  background: var(--status-interviewed-bg);
  border-color: var(--status-interviewed-accent);
}
.co-status-option-offered:has(input:checked) {
  color: var(--status-offered-fg);
  background: var(--status-offered-bg);
  border-color: var(--status-offered-accent);
}
.co-status-option-rejected:has(input:checked) {
  color: var(--status-rejected-fg);
  background: var(--status-rejected-bg);
  border-color: var(--status-rejected-accent);
}
.co-status-option-withdrawn:has(input:checked) {
  color: var(--status-withdrawn-fg);
  background: var(--status-withdrawn-bg);
  border-color: var(--status-withdrawn-accent);
}

.co-status-option-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.co-status-dot-submitted {
  background: var(--status-submitted-accent);
}
.co-status-dot-reviewing {
  background: var(--status-reviewing-accent);
}
.co-status-dot-interviewed {
  background: var(--status-interviewed-accent);
}
.co-status-dot-offered {
  background: var(--status-offered-accent);
}
.co-status-dot-rejected {
  background: var(--status-rejected-accent);
}
.co-status-dot-withdrawn {
  background: var(--status-withdrawn-accent);
}

/* Screen-reader only helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   Match card quick stats
   ========================================================================== */

.co-match-quick-stats {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f1f3;
}

.co-match-quick-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.co-match-quick-stat-count {
  font-weight: 800;
  font-size: 0.88rem;
}

.co-match-quick-stat-label {
  color: var(--jobs-text-muted);
  font-weight: 500;
}

.co-match-quick-stat-matched .co-match-quick-stat-count {
  color: #047857;
}
.co-match-quick-stat-partial .co-match-quick-stat-count {
  color: #b45309;
}
.co-match-quick-stat-missing .co-match-quick-stat-count {
  color: #dc2626;
}

/* ==========================================================================
   Skill row right side (detail + badge)
   ========================================================================== */

.co-match-skill-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.co-match-skill-detail {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Section heading count badge
   ========================================================================== */

.co-section-heading-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  background: #eef1f5;
  color: var(--jobs-text-secondary);
  padding: 0.05rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* ==========================================================================
   Quick actions in sidebar
   ========================================================================== */

.co-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.co-quick-action-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--jobs-accent);
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color 0.15s ease;
}

.co-quick-action-link:hover {
  color: #0b5ed7;
}

/* ==========================================================================
   Inline field errors (job form)
   ========================================================================== */

.co-field-error {
  font-size: 0.75rem;
  font-weight: 500;
  color: #dc2626;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Inline flash messages (turbo stream feedback)
   ========================================================================== */

.co-inline-flash {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  animation: fadeSlideIn 0.2s ease-out;
}

.co-inline-flash-alert {
  background: var(--tone-danger-bg);
  color: var(--tone-danger-fg);
  border: 1px solid #fca5a5;
}

.co-inline-flash-notice {
  background: var(--tone-success-bg);
  color: var(--tone-success-fg);
  border: 1px solid #6ee7b7;
}

/* ==========================================================================
   Responsive - new components
   ========================================================================== */

@media (max-width: 991.98px) {
  .co-app-nav {
    margin-top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .co-app-filter-tabs {
    gap: 0.15rem;
  }

  .co-app-filter-tab {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
  }

  .co-status-buttons {
    flex-direction: column;
  }

  .co-match-quick-stats {
    flex-wrap: wrap;
  }

  .co-app-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==========================================================================
   Assessment management
   ========================================================================== */

/* Question card (accordion row within a co-card) */
.co-question-card {
  border-bottom: 1px solid #f3f4f6;
}

.co-question-card:last-child {
  border-bottom: none;
}

.co-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  transition: background 0.12s ease;
}

.co-question-header:hover {
  background: #fafbfc;
}

.co-question-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.co-question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef1f5;
  color: var(--jobs-text-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.co-question-info {
  min-width: 0;
  flex: 1;
}

.co-question-body-preview {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
  letter-spacing: -0.01em;
  display: block;
  line-height: 1.4;
}

.co-question-meta {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
  margin-top: 0.2rem;
}

.co-question-meta-sep {
  margin: 0 0.25rem;
  color: #d1d5db;
}

.co-question-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.co-question-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--jobs-text-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.12s ease, color 0.12s ease;
  padding: 0;
}

.co-question-action-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.co-question-header:hover .co-question-action-btn,
.co-question-header:focus-within .co-question-action-btn {
  opacity: 1;
}

.co-question-action-btn:hover {
  background: #f3f4f6;
  color: var(--jobs-text-primary);
}

.co-question-action-btn-danger:hover {
  background: #fee2e2;
  color: #dc2626;
}

.co-question-chevron {
  width: 16px;
  height: 16px;
  stroke: var(--jobs-text-muted);
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* The chevron is a real button, so a question opens from the keyboard. */
.co-question-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.co-question-toggle:hover {
  background: #f3f4f6;
}

.co-question-toggle:focus-visible,
.co-question-action-btn:focus-visible {
  outline: 2px solid var(--th-accent);
  outline-offset: 1px;
}

/* Expanded question content */
.co-question-expand {
  padding: 0 0.85rem 0.85rem 3.25rem;
}

.co-question-full-body {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 0.75rem;
}

.co-question-explanation {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--jobs-text-secondary);
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #e2e8f0;
}

.co-question-explanation strong {
  color: var(--jobs-text-primary);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Answer options (both in show page and question expand) */
.co-answer-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.co-answer-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #f9fafb;
  border: 1.5px solid #f0f1f3;
  transition: background 0.12s ease;
}

.co-answer-correct {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.co-answer-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e5e7eb;
  color: var(--jobs-text-secondary);
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

.co-answer-correct .co-answer-letter {
  background: #047857;
  color: #fff;
}

.co-answer-text {
  flex: 1;
  color: var(--jobs-text-primary);
  font-weight: 500;
}

.co-answer-check {
  width: 16px;
  height: 16px;
  stroke: #10b981;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
}

/* Answer option form field (question form) */
.co-answer-option-field {
  padding: 0.55rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.co-answer-option-field:last-child {
  border-bottom: none;
}

.co-answer-option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef1f5;
  color: var(--jobs-text-secondary);
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.4rem;
}

/* ==========================================================================
   Responsive - assessment components
   ========================================================================== */

@media (max-width: 575.98px) {
  .co-question-header-left {
    gap: 0.4rem;
  }

  .co-question-expand {
    padding-left: 0.85rem;
  }

  .co-answer-option {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   Interview scheduling
   -------------------------------------------------------------------------- */

.co-interview-context {
  background: var(--th-bg-card);
  border: 1.5px solid var(--th-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 640px;
}

.co-interview-slot {
  background: #fafbfc;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  animation: fadeSlideIn 0.2s ease-out;
}

.co-interview-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.co-interview-slot-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jobs-text-secondary);
}

.co-interview-slot-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--jobs-font);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--jobs-text-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.co-interview-slot-remove:hover {
  color: #dc3545;
}

.co-interview-slot-remove svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.co-interview-slot-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.co-interview-add-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--jobs-font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jobs-accent);
  background: none;
  border: 1.5px dashed var(--jobs-card-border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  justify-content: center;
}

.co-interview-add-slot:hover {
  background: #f0f7ff;
  border-color: var(--jobs-accent);
}

.co-interview-add-slot svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Interview detail (show page) */

.co-interview-detail {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.co-interview-detail-main {
  min-width: 0;
}

.co-interview-detail-sidebar {
  position: sticky;
  top: 2rem;
}

.co-interview-status-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.co-interview-status-banner-proposed {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
}

.co-interview-status-banner-confirmed {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
}

.co-interview-status-banner-completed {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
}

.co-interview-status-banner-cancelled {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
}

.co-interview-status-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.co-interview-status-banner-proposed .co-interview-status-banner-icon {
  background: #fef3c7;
  color: #d97706;
}

.co-interview-status-banner-confirmed .co-interview-status-banner-icon {
  background: #dbeafe;
  color: #2563eb;
}

.co-interview-status-banner-completed .co-interview-status-banner-icon {
  background: #d1fae5;
  color: #059669;
}

.co-interview-status-banner-cancelled .co-interview-status-banner-icon {
  background: #f3f4f6;
  color: #6b7280;
}

.co-interview-status-banner-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.co-interview-status-banner-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
}

.co-interview-status-banner-desc {
  font-size: 0.78rem;
  color: var(--jobs-text-secondary);
  margin-top: 0.1rem;
}

/* Time slot cards on interview show */

.co-interview-slots-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.co-interview-slot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  background: #fff;
  transition: all 0.15s ease;
}

.co-interview-slot-card-confirmed {
  border-color: #bfdbfe;
  background: #f0f7ff;
}

.co-interview-slot-card-time {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
}

.co-interview-slot-card-date {
  font-size: 0.78rem;
  color: var(--jobs-text-secondary);
  margin-top: 0.1rem;
}

.co-interview-slot-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.co-interview-slot-card-badge-confirmed {
  background: var(--tone-info-bg);
  color: var(--tone-info-fg);
}

/* Upcoming interviews widget */

.co-interview-widget-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.co-interview-widget-card:last-child {
  border-bottom: none;
}

.co-interview-widget-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8eef4, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  color: #3d5a80;
  flex-shrink: 0;
}

.co-interview-widget-info {
  flex: 1;
  min-width: 0;
}

.co-interview-widget-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
}

.co-interview-widget-meta {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
  margin-top: 0.1rem;
}

.co-interview-widget-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--jobs-text-secondary);
  text-align: right;
  white-space: nowrap;
}

/* Interview notes form */

.co-interview-notes-form textarea {
  font-family: var(--jobs-font);
  font-size: 0.85rem;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  background: #f9fafb;
  resize: vertical;
  min-height: 100px;
  width: 100%;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.co-interview-notes-form textarea:focus {
  border-color: var(--jobs-accent);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
  background: #fff;
  outline: none;
}

@media (max-width: 767.98px) {
  .co-interview-slot-fields {
    grid-template-columns: 1fr;
  }

  .co-interview-detail {
    grid-template-columns: 1fr;
  }

  .co-interview-detail-sidebar {
    position: static;
  }
}

/* ==========================================================================
   Analytics Dashboard
   ========================================================================== */

.co-analytics-section-header {
  margin-bottom: 1rem;
}

.co-analytics-section-header .co-section-heading {
  margin-bottom: 0.15rem;
}

.co-section-desc {
  font-size: 0.82rem;
  color: var(--jobs-text-muted);
  margin: 0;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Funnel chart
   -------------------------------------------------------------------------- */

.co-analytics-funnel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-bottom: 0.85rem;
  padding: 0.6rem 0.85rem;
  background: #fafbfc;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--jobs-text-secondary);
}

.co-analytics-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.co-analytics-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.co-analytics-legend-dot-submitted { background: #3b82f6; }
.co-analytics-legend-dot-reviewing { background: #f59e0b; }
.co-analytics-legend-dot-interviewed { background: #8b5cf6; }
.co-analytics-legend-dot-offered { background: #10b981; }
.co-analytics-legend-dot-hired { background: #059669; }
.co-analytics-legend-dot-rejected { background: #ef4444; }
.co-analytics-legend-dot-withdrawn { background: #9aa0a6; }

.co-analytics-funnel-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #f3f4f6;
}

.co-analytics-funnel-row-last {
  border-bottom: none;
}

.co-analytics-funnel-job {
  width: 200px;
  flex-shrink: 0;
}

.co-analytics-funnel-job-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
  text-decoration: none;
  display: block;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.co-analytics-funnel-job-link:hover {
  color: var(--jobs-accent);
}

.co-analytics-funnel-total {
  font-size: 0.68rem;
  color: var(--jobs-text-muted);
  font-weight: 500;
}

.co-analytics-funnel-bar-wrap {
  flex: 1;
  min-width: 0;
}

.co-analytics-funnel-bar {
  display: flex;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f4f6;
}

.co-analytics-funnel-bar-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.co-analytics-funnel-bar-empty-text {
  font-size: 0.72rem;
  color: var(--jobs-text-secondary);
  font-weight: 500;
}

.co-analytics-funnel-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2px;
  transition: opacity 0.15s ease;
  cursor: default;
}

.co-analytics-funnel-seg:hover {
  opacity: 0.85;
}

/* Near-black, because white fails AA on every fill (2.2-4.2:1) and the
   fills are the shared status palette. This passes on all of them, at
   4.75:1 or better. */
.co-analytics-funnel-seg-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #030712;
  padding: 0 0.25rem;
}

.co-analytics-funnel-seg-submitted { background: var(--status-submitted-accent); }
.co-analytics-funnel-seg-reviewing { background: var(--status-reviewing-accent); }
.co-analytics-funnel-seg-interviewed { background: var(--status-interviewed-accent); }
.co-analytics-funnel-seg-offered { background: var(--status-offered-accent); }
.co-analytics-funnel-seg-hired { background: var(--status-hired-accent); }
.co-analytics-funnel-seg-rejected { background: var(--status-rejected-accent); }
.co-analytics-funnel-seg-withdrawn { background: var(--status-withdrawn-accent); }

/* --------------------------------------------------------------------------
   Time to Hire metric cards
   -------------------------------------------------------------------------- */

.co-analytics-time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.co-analytics-time-card {
  background: #fff;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.co-analytics-time-card:hover {
  border-color: #c7d7f7;
  box-shadow: var(--jobs-card-hover-shadow);
}

.co-analytics-time-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--jobs-text-secondary);
}

/* The label is the <summary> of a disclosure holding the metric's
   explanation (A11Y-20), so it drops the default marker. */
.co-analytics-time-label {
  list-style: none;
  cursor: pointer;
  width: fit-content;
}

.co-analytics-time-label::-webkit-details-marker {
  display: none;
}

.co-analytics-time-hint {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--jobs-text-secondary);
}

.co-analytics-tooltip {
  display: inline-flex;
  position: relative;
}

.co-analytics-tooltip svg {
  stroke: var(--jobs-text-muted);
  stroke-width: 1.5;
  fill: none;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.co-analytics-time-label:hover .co-analytics-tooltip svg,
.co-analytics-time-about[open] .co-analytics-tooltip svg {
  opacity: 1;
}

.co-analytics-time-value {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.co-analytics-time-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--jobs-text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.co-analytics-time-unit {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--jobs-text-muted);
}

.co-analytics-time-na {
  font-size: 1.85rem;
  font-weight: 800;
  color: #d1d5db;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Skill Demand table
   -------------------------------------------------------------------------- */

.co-analytics-skill-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.co-analytics-skill-table td {
  font-size: 0.82rem;
}

.co-analytics-verified-count {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 600;
  color: #047857;
}

.co-analytics-supply-cell {
  width: 140px;
}

.co-analytics-supply-bar-wrap {
  width: 100%;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}

.co-analytics-supply-bar {
  height: 100%;
  background: #93c5fd;
  border-radius: 4px;
  position: relative;
  transition: width 0.3s ease;
}

.co-analytics-supply-bar-verified {
  height: 100%;
  background: #10b981;
  border-radius: 4px 0 0 4px;
}

/* --------------------------------------------------------------------------
   Application Trends bar chart
   -------------------------------------------------------------------------- */

.co-analytics-trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 0;
  height: 200px;
}

.co-analytics-trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.co-analytics-trend-bar-area {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 3px;
}

.co-analytics-trend-bar {
  width: 100%;
  max-width: 40px;
  background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  position: relative;
  transition: height 0.3s ease, opacity 0.15s ease;
  cursor: default;
}

.co-analytics-trend-bar:hover {
  opacity: 0.8;
}

.co-analytics-trend-count {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--jobs-text-secondary);
  white-space: nowrap;
}

.co-analytics-trend-label {
  font-size: 0.6rem;
  color: var(--jobs-text-muted);
  font-weight: 500;
  margin-top: 0.4rem;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Top Performing Jobs
   -------------------------------------------------------------------------- */

.co-analytics-top-job {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.12s ease;
}

.co-analytics-top-job:hover {
  background: #fafbfc;
}

.co-analytics-top-job-last {
  border-bottom: none;
}

.co-analytics-top-job-rank {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--jobs-text-muted);
  width: 28px;
  flex-shrink: 0;
  text-align: center;
}

.co-analytics-top-job-info {
  min-width: 0;
  flex-shrink: 0;
  width: 220px;
}

.co-analytics-top-job-title a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.co-analytics-top-job-title a:hover {
  color: var(--jobs-accent);
}

.co-analytics-top-job-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
}

.co-analytics-top-job-bar-wrap {
  flex: 1;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}

.co-analytics-top-job-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.co-analytics-top-job-count {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--jobs-text-primary);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Empty section state (inline, not full-page)
   -------------------------------------------------------------------------- */

.co-analytics-empty-section {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fafbfc;
  border: 1.5px dashed var(--jobs-card-border);
  border-radius: 8px;
  color: var(--jobs-text-muted);
}

.co-analytics-empty-section p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--jobs-text-secondary);
  margin: 0 0 0.25rem;
}

.co-analytics-empty-section span {
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Analytics responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .co-analytics-time-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .co-analytics-funnel-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .co-analytics-funnel-job {
    width: 100%;
  }

  /* Stacked rows align to the start, so without this the bar shrinks to
     the width of its count. */
  .co-analytics-funnel-bar-wrap {
    width: 100%;
  }

  .co-analytics-top-job-info {
    width: 160px;
  }
}

@media (max-width: 767.98px) {
  .co-analytics-time-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .co-analytics-time-label {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    word-break: break-word;
    white-space: normal;
  }

  .co-analytics-time-number {
    font-size: 1.5rem;
  }

  .co-analytics-trend-chart {
    height: 150px;
  }

  .co-analytics-top-job {
    flex-wrap: wrap;
  }

  .co-analytics-top-job-bar-wrap {
    order: 4;
    width: 100%;
  }

  .co-analytics-top-job-info {
    width: auto;
    flex: 1;
  }

  .co-analytics-supply-cell {
    display: none;
  }
}

/* ==========================================================================
   Offer & Hire card (employer application show)
   ========================================================================== */

.co-hire-card {
  border-left: 3px solid var(--jobs-card-border, #e5e7eb);
}

.co-hire-card-extended {
  border-left-color: #2563eb;
}

.co-hire-card-pending_start {
  border-left-color: #7c3aed;
}

.co-hire-card-started {
  border-left-color: #059669;
}

.co-hire-card-declined,
.co-hire-card-rescinded,
.co-hire-card-expired,
.co-hire-card-terminated {
  border-left-color: #dc2626;
}

.co-hire-card-no_show,
.co-hire-card-withdrew {
  border-left-color: #6b7280;
}

.co-hire-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.co-hire-comp-suffix {
  font-weight: 500;
  color: var(--jobs-text-muted);
  margin-left: 0.25rem;
  font-size: 0.72rem;
}

.co-hire-expiry {
  margin-top: 0.65rem;
  padding: 0.5rem 0.65rem;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.co-hire-expiry-label {
  font-weight: 600;
  color: var(--jobs-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.co-hire-expiry-flag {
  font-weight: 700;
  color: var(--tone-danger-fg);
  background: var(--tone-danger-bg);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.66rem;
}

.co-hire-expiry-time {
  color: var(--jobs-text-secondary);
}

.co-hire-message-block {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f3f4f6;
}

.co-hire-counter {
  padding: 0.75rem 0.85rem;
  border-top: 0;
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  background: #fef3c7;
}

.co-hire-message-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--jobs-text-muted);
  margin-bottom: 0.4rem;
  cursor: pointer;
}

.co-hire-message-body {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--jobs-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.co-hire-message-body p {
  margin: 0 0 0.4rem 0;
}

.co-hire-message-body p:last-child {
  margin-bottom: 0;
}

.co-hire-message-block-muted .co-hire-message-body {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
  color: var(--jobs-text-muted);
  margin-top: 0.4rem;
}

.co-hire-message-block-muted[open] .co-hire-message-label {
  color: var(--jobs-text-secondary);
}

/* First-day details on the employer's offer page: each label over the text
   the team typed, line breaks kept. */
.co-first-day-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
}

/* The form's time picker: a clock time needs no more room than this. */
.co-first-day-time {
  max-width: 14rem;
}

.co-first-day-row dt {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--jobs-text-muted);
}

.co-first-day-row dd {
  margin: 0.1rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--jobs-text-primary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.co-hire-overdue {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border-left: 3px solid #f59e0b;
  background: var(--tone-warning-bg);
  color: var(--tone-warning-fg);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.co-hire-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.co-hire-actions form {
  margin: 0;
}

.co-hire-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

/* Brand primary, the colour of the other buttons on the application page
   (Schedule interview, Update Status, Add Note). */
.co-hire-btn-primary {
  background: var(--th-accent);
  color: #fff;
  border-color: var(--th-accent);
}

.co-hire-btn-primary:hover {
  background: var(--th-accent-hover);
  border-color: var(--th-accent-hover);
  color: #fff;
}

.co-hire-btn-secondary {
  background: #fff;
  color: var(--jobs-text-secondary);
  border-color: var(--jobs-card-border, #e5e7eb);
}

.co-hire-btn-secondary:hover {
  background: #f9fafb;
  color: var(--jobs-text-primary);
  border-color: #d1d5db;
}

.co-hire-btn-danger {
  background: #fff;
  color: #dc2626;
  border-color: #fecaca;
}

.co-hire-btn-danger:hover {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #dc2626;
}

/* Rescind and terminate panels: a <details> under the actions that expands
   into a red-tinted form. Field borders stay in the stylesheet so the global
   [aria-invalid] border rule can still win on a rejected field. */
.co-hire-rescind-details,
.co-hire-terminate-details {
  margin-top: 0.6rem;
}

.co-hire-details-summary {
  list-style: none;
}

.co-hire-details-summary::-webkit-details-marker {
  display: none;
}

.co-hire-panel-form {
  margin-top: 0.6rem;
  padding: 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.co-hire-field {
  margin-bottom: 0.6rem;
}

.co-hire-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
  margin-bottom: 0.25rem;
}

.co-hire-input {
  display: block;
  width: 100%;
  font-family: var(--jobs-font);
  font-size: 0.85rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1.5px solid #fca5a5;
  background-color: #fff;
}

.co-hire-input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.co-hire-panel-submit {
  width: 100%;
}

/* Touch screens have no hover, so keep row actions visible there.
   (Keyboard users get them through :focus-within above.) */
@media (hover: none) {
  .co-assoc-item .btn-remove,
  .co-question-header .co-question-action-btn {
    opacity: 1;
  }
}

/* Interview edit: removable proposed times */

.co-interview-slot-card-passed {
  background: #fafbfc;
}

.co-interview-slot-card-passed .co-interview-slot-card-time {
  color: var(--jobs-text-muted);
}

.co-interview-slot-card-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jobs-text-secondary);
  cursor: pointer;
}

.co-interview-round-alert {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  font-size: 0.72rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.co-interview-slot-card-remove input {
  margin: 0;
}

/* Job page: when the listing closes */

.co-job-expiry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--jobs-text-secondary);
}

.co-job-expiry-soon {
  color: #92400e;
  font-weight: 600;
}

.co-job-expiry-form {
  display: inline;
}

.co-job-expiry-extend {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jobs-accent);
  cursor: pointer;
}

.co-job-expiry-extend:hover {
  text-decoration: underline;
}

/* Applicant list: move several applicants at once */

.co-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--jobs-card-bg);
  border: 1px solid var(--jobs-card-border);
  border-radius: 10px;
}

.co-bulk-count {
  font-size: 0.8rem;
  color: var(--jobs-text-secondary);
}

.co-bulk-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.co-bulk-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
}

.co-bulk-select {
  border: 1px solid var(--jobs-card-border);
  border-radius: 8px;
  background-color: #fff;
  padding: 0.35rem 2rem 0.35rem 0.6rem;
  font-size: 0.8rem;
}

.co-bulk-submit {
  border: 1px solid #2563eb;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.co-bulk-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.co-table .co-table-check {
  width: 2.25rem;
  padding-right: 0;
}

.co-table-check input {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Company verification notice (dashboard alert and candidate search)
   -------------------------------------------------------------------------- */

.co-verification-alert p {
  margin: 0.25rem 0 0;
}

.co-verification-alert a,
.co-verification-empty a {
  font-weight: 600;
  text-decoration: underline;
}

.co-verification-empty p {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.co-verification-empty p + p {
  margin-top: 0.5rem;
}

.co-verification-admin-hint {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--th-text-secondary);
}

/* --------------------------------------------------------------------------
   Hiring inbox and the dashboard's Needs Attention card
   -------------------------------------------------------------------------- */

.co-inbox-empty {
  font-size: 0.85rem;
  color: var(--jobs-text-muted);
  margin: 0;
}

.co-attention-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.6rem;
}

.co-attention-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--jobs-card-border);
  border-radius: 8px;
  color: var(--jobs-text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.co-attention-row:hover,
.co-attention-row:focus-visible {
  border-color: var(--jobs-accent);
  background: #f5f9ff;
}

.co-attention-count {
  min-width: 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--jobs-text-primary);
  font-variant-numeric: tabular-nums;
}

.co-attention-text {
  flex: 1;
}

.co-attention-row svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--jobs-text-muted);
}

/* --------------------------------------------------------------------------
   "How did the interview go?" (company/interviews/_outcome_actions): the
   three answers for a booked interview that should be over, in the hiring
   inbox, on the applicant's page and on the interview's page. Then the next
   step after a no-show (company/interviews/_no_show_follow_up).
   -------------------------------------------------------------------------- */

.co-inbox-intro {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.co-inbox-intro-question {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--jobs-text-primary);
}

.co-inbox-intro-text {
  margin: 0;
  max-width: 44rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--jobs-text-secondary);
}

.co-outcome-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* button_to wraps each button in a form. */
.co-outcome-form {
  display: inline-flex;
  margin: 0;
}

.co-outcome-actions .co-btn {
  white-space: nowrap;
}

/* In a table row the answers sit at the right, without the row actions'
   own spacing. */
.co-table .cell-actions .co-outcome-actions {
  justify-content: flex-end;
}

.co-table .cell-actions .co-outcome-actions .co-outcome-form,
.co-table .cell-actions .co-outcome-actions .co-btn {
  margin: 0;
}

.co-interview-outcome {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.6rem;
}

.co-interview-outcome-question {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #78350f;
}

.co-interview-outcome-note {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #92400e;
}

/* On the interview's own page it sits under the status banner. */
.co-interview-outcome-wide {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.co-interview-outcome-wide .co-interview-outcome-question {
  font-size: 1rem;
}

.co-interview-outcome-wide .co-interview-outcome-note {
  font-size: 0.78rem;
}

/* "Still interested? Check in" (Applications::CheckIn): the note on the
   applicant page while a check-in is unanswered, and the flag on a hiring
   inbox row. */
.co-check-in-note {
  background: #f5f9ff;
  border: 1px solid #d6e4fb;
  border-left: 4px solid var(--jobs-accent);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
}

.co-check-in-note-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--jobs-text-primary);
}

.co-check-in-note-text {
  margin: 0 0 0.7rem;
  max-width: 44rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--jobs-text-secondary);
}

/* min-width: in the inbox table's narrow first column on a phone it would
   otherwise wrap to a word a line. */
.co-check-in-flag {
  display: block;
  width: fit-content;
  min-width: 9.5rem;
  margin-top: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--tone-info-fg);
  background: var(--tone-info-bg);
}

/* A section a link on the same page jumps to: clears the fixed navbar. */
.co-anchor-target {
  scroll-margin-top: 5rem;
}

@media (max-width: 767.98px) {
  /* Finger-sized on a phone. */
  .co-check-in-note .co-btn {
    min-height: 2.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.co-no-show-next {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #6b7280;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
}

.co-no-show-next:focus {
  outline: none;
}

.co-no-show-next:focus-visible {
  outline: 2px solid var(--jobs-accent);
  outline-offset: 2px;
}

.co-no-show-next-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--jobs-text-primary);
}

.co-no-show-next-text {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--jobs-text-secondary);
}

.co-no-show-next-question {
  display: block;
  margin-top: 0.15rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
}

.co-no-show-next-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.co-no-show-next-mistake {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0.7rem 0 0;
  font-size: 0.76rem;
  color: var(--jobs-text-muted);
}

.co-no-show-next-undo {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--jobs-accent);
  text-decoration: underline;
  cursor: pointer;
}

/* In the applicant page's narrow Interviews card. */
.co-interview-round .co-no-show-next {
  padding: 0.75rem;
  margin-bottom: 0.6rem;
}

/* There the buttons share the card's width, so a row never ends ragged. */
.co-interview-round .co-outcome-actions .co-outcome-form,
.co-interview-round .co-outcome-actions > .co-btn,
.co-interview-round .co-no-show-next-actions .co-outcome-form,
.co-interview-round .co-no-show-next-actions > .co-btn {
  flex: 1 1 auto;
  justify-content: center;
}

.co-interview-round .co-outcome-form .co-btn {
  width: 100%;
  justify-content: center;
}

/* "No-show" is one word: it never breaks at its hyphen. */
.co-badge-no_show {
  white-space: nowrap;
}

.co-interview-status-banner-no_show {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
}

.co-interview-status-banner-no_show .co-interview-status-banner-icon {
  background: #f3f4f6;
  color: #6b7280;
}

/* Thumb-sized answers wherever a finger does the tapping. */
@media (max-width: 640px), (pointer: coarse) {
  .co-outcome-actions .co-btn,
  .co-no-show-next-actions .co-btn {
    min-height: 2.75rem;
    padding: 0 1rem;
    font-size: 0.88rem;
    justify-content: center;
  }

  .co-no-show-next-undo {
    min-height: 2.75rem;
  }
}

@media (max-width: 640px) {
  /* Five columns and three answers do not fit a phone, so each interview
     becomes a block: who, the job and round, when it was, then the answers
     in a row of their own. */
  .co-table.co-inbox-table-interview_outcomes,
  .co-table.co-inbox-table-interview_outcomes tbody {
    display: block;
  }

  .co-table.co-inbox-table-interview_outcomes thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .co-table.co-inbox-table-interview_outcomes tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.6rem;
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
  }

  .co-table.co-inbox-table-interview_outcomes tbody tr:last-child {
    border-bottom: none;
  }

  .co-table.co-inbox-table-interview_outcomes tbody tr td {
    display: block;
    padding: 0;
    border-bottom: none;
  }

  .co-table.co-inbox-table-interview_outcomes .cell-title {
    flex: 0 0 100%;
    font-size: 1rem;
  }

  .co-table.co-inbox-table-interview_outcomes .cell-actions {
    flex: 0 0 100%;
    margin-top: 0.6rem;
    white-space: normal;
  }

  .co-table .cell-actions .co-outcome-actions {
    justify-content: flex-start;
  }

  .co-outcome-actions .co-outcome-form,
  .co-outcome-actions > .co-btn {
    flex: 1 1 0;
  }

  .co-outcome-actions .co-outcome-form .co-btn {
    width: 100%;
  }

  .co-no-show-next-actions .co-outcome-form,
  .co-no-show-next-actions > .co-btn {
    flex: 1 1 auto;
  }

  .co-no-show-next-actions .co-outcome-form .co-btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Admin support tools: the Account card and admin history on
   admin/users/show, and the audit log.
   -------------------------------------------------------------------------- */

.co-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.co-section-header .co-section-heading {
  margin-bottom: 0;
}

.co-account {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.co-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.co-account-row:last-child {
  border-bottom: none;
}

.co-account-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  min-width: 0;
  font-size: 0.82rem;
}

.co-account-info .co-info-label {
  width: 5.5rem;
}

.co-account-hint {
  flex-basis: 100%;
  padding-left: 6.25rem;
  font-size: 0.76rem;
  color: var(--jobs-text-muted);
}

.co-account-hint-inline {
  flex-basis: auto;
  padding-left: 0;
}

.co-account-suspend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.co-account-reason {
  width: 16rem;
  max-width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .co-account-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .co-account-hint {
    padding-left: 0;
  }

  .co-account-suspend {
    width: 100%;
  }

  .co-account-reason {
    flex: 1;
    width: auto;
    min-width: 0;
  }
}

.co-audit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.co-audit-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 1rem;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.co-audit-entry:last-child {
  border-bottom: none;
}

.co-audit-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.5rem;
  min-width: 0;
  font-size: 0.86rem;
}

.co-audit-event {
  font-weight: 600;
  color: var(--jobs-text-primary);
}

.co-audit-record {
  color: var(--jobs-accent, #0d6efd);
  overflow-wrap: anywhere;
}

.co-audit-record-gone {
  color: var(--jobs-text-muted);
}

.co-audit-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.75rem;
  color: var(--jobs-text-muted);
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: right;
}

.co-audit-details {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  color: var(--jobs-text-secondary, #4b5563);
  overflow-wrap: anywhere;
}

.co-audit-filter-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--jobs-text-muted);
}

@media (max-width: 640px) {
  .co-audit-entry {
    grid-template-columns: minmax(0, 1fr);
  }

  .co-audit-meta {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    gap: 0.75rem;
    align-items: baseline;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Saved replies: the picker above a message box (message_templates/_picker)
   and the pages where a team manages its replies.
   The picker also sits in the invite modal, outside .co-dashboard, and
   inside .co-form, so its select carries its whole look and comes after
   both in the cascade.
   -------------------------------------------------------------------------- */

.co-reply-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-bottom: 0.5rem;
}

.co-reply-picker select {
  display: block;
  flex: 0 1 17rem;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 2.5rem;
  font-family: var(--jobs-font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  padding: 0.45rem 2.25rem 0.45rem 0.75rem;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1rem;
  text-overflow: ellipsis;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.co-reply-picker select:hover:not(:focus) {
  border-color: #9ca3af;
  background-color: #fff;
}

.co-reply-picker select:focus {
  border-color: var(--jobs-accent);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
  outline: none;
}

.co-reply-picker-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jobs-accent);
  text-decoration: none;
}

.co-reply-picker-link:hover {
  text-decoration: underline;
}

.co-reply-picker-none {
  font-size: 0.78rem;
  color: var(--jobs-text-secondary);
}

/* What the last pick did. Empty until a reply is picked. */
.co-reply-status {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--tone-success-fg);
}

.co-reply-status:empty {
  display: none;
}

.co-reply-status[data-warning] {
  color: var(--tone-warning-fg);
  font-weight: 600;
}

/* The list on the manage page. Its header holds the count and the
   "up to 20" note, which drops under the title when there is no room. */
.co-reply-list-header {
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.co-reply-list-header .co-card-title {
  white-space: nowrap;
}

.co-reply-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.co-reply-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.co-reply-item:last-child {
  border-bottom: none;
}

.co-reply-item-main {
  min-width: 0;
}

.co-reply-item-name {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--jobs-text-primary);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.co-reply-item-body {
  margin: 0;
  max-width: 64ch;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #374151;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* A {placeholder}: the part that changes with each candidate */
.co-reply-token {
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: var(--tone-info-bg);
  color: var(--tone-info-fg);
  font-weight: 600;
  white-space: nowrap;
}

.co-reply-item-meta {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
}

.co-reply-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* The buttons under the message box that add a placeholder for you */
.co-reply-placeholders {
  margin-top: 1rem;
}

.co-reply-placeholders-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
  margin-bottom: 0.4rem;
}

.co-reply-placeholders-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  /* Full-width, thumb-sized controls on a phone */
  .co-reply-picker select {
    flex: 1 1 100%;
    min-height: 2.75rem;
  }

  .co-reply-picker-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .co-reply-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .co-reply-item-actions .co-btn,
  .co-reply-placeholders-buttons .co-btn {
    min-height: 2.75rem;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

/* --------------------------------------------------------------------------
   Schedule Interview form: details carried over from the last interview
   (Interviews::Prefill, carry_over_controller.js).
   .co-carry-hint says the form was filled in. A .co-carry line sits under a
   box and either warns that last time's text is in it or offers to put it
   in. They sit inside .co-form, so the buttons come after it in the cascade.
   -------------------------------------------------------------------------- */

.co-carry-hint {
  margin-bottom: 1rem;
}

.co-carry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--jobs-text-secondary);
}

/* display: flex above would otherwise beat the hidden attribute */
.co-carry[hidden],
.co-carry-btn[hidden] {
  display: none;
}

.co-carry > span {
  flex: 1 1 16rem;
  min-width: 0;
}

/* Last time's notes are in the box: read them before they go out */
.co-carry-caution {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--tone-warning-bg);
  color: var(--tone-warning-fg);
  font-weight: 600;
}

.co-carry .co-carry-btn {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  /* A thumb-sized button on its own line */
  .co-carry .co-carry-btn {
    min-height: 2.75rem;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

/* --------------------------------------------------------------------------
   Applicants: find someone by name or email across the company's jobs
   (company/applicants), and the name filter on a job's applicant list
   (company/applications).
   -------------------------------------------------------------------------- */

.co-applicant-search {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.25rem 1rem;
  background: var(--th-bg-card);
  border: 1.5px solid var(--th-border);
  border-radius: 10px;
}

.co-applicant-search-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--jobs-text-primary);
}

.co-applicant-search-row,
.co-applicant-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.co-applicant-search-input,
.co-applicant-filter-input {
  flex: 1 1 14rem;
  min-width: 0;
  font-family: var(--jobs-font);
  color: var(--jobs-text-primary);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* The page's one job, so the box is the biggest thing on it. 16px type
   keeps a phone from zooming in when it is tapped. */
.co-applicant-search-input {
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem 0.5rem 2.6rem;
  font-size: 1rem;
  background-position: 0.85rem center;
  background-size: 1.1rem;
}

.co-applicant-filter-input {
  max-width: 22rem;
  padding: 0.4rem 0.75rem 0.4rem 2.1rem;
  font-size: 0.85rem;
  background-position: 0.7rem center;
  background-size: 0.9rem;
}

.co-applicant-search-input:focus,
.co-applicant-filter-input:focus {
  outline: none;
  border-color: var(--jobs-accent);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.18);
}

.co-applicant-search-btn {
  min-height: 2.75rem;
}

.co-applicant-search-hint {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--jobs-text-secondary);
}

.co-applicant-filter {
  margin-bottom: 0.75rem;
}

.co-applicant-filter-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--jobs-text-primary);
}

.co-applicant-filter-note a {
  font-weight: 600;
  color: var(--jobs-accent);
}

.co-applicant-filter-note a:hover {
  text-decoration: underline;
}

.co-applicants-header {
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

/* The heading repeats what was typed, so it is not set in capitals. */
.co-applicants-header .co-applicants-result-title {
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--jobs-text-primary);
  overflow-wrap: anywhere;
}

.co-applicants-detail {
  margin-top: 0.1rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--jobs-text-muted);
  overflow-wrap: anywhere;
}

.co-applicants-status,
.co-applicants-date {
  white-space: nowrap;
}

/* Only a phone needs "Applied" beside the date: there the column headings
   are gone. */
.co-applicants-date-label {
  display: none;
}

@media (max-width: 640px) {
  .co-applicant-search {
    padding: 1rem;
  }

  .co-applicant-search-input {
    flex-basis: 100%;
  }

  .co-applicant-search-btn {
    flex: 1 1 0;
  }

  /* Thumb-sized, and 16px so the phone does not zoom in. */
  .co-applicant-filter-input {
    flex-basis: 10rem;
    max-width: none;
    min-height: 2.75rem;
    padding-left: 2.4rem;
    font-size: 1rem;
    background-position: 0.8rem center;
    background-size: 1.05rem;
  }

  .co-applicant-filter-btn {
    min-height: 2.75rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .co-applicant-filter-note a {
    padding: 0.4rem 0;
  }

  /* Five columns do not fit a phone, so each application becomes a block:
     who and status, then the job and date beside a thumb-sized button. The
     whole block opens the application. */
  .co-table.co-applicants-table,
  .co-table.co-applicants-table tbody {
    display: block;
  }

  .co-table.co-applicants-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .co-table.co-applicants-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'who status'
      'job open'
      'date open';
    align-items: start;
    gap: 0.35rem 0.75rem;
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
  }

  .co-table.co-applicants-table tbody tr:last-child {
    border-bottom: none;
  }

  .co-table.co-applicants-table tbody tr td {
    display: block;
    padding: 0;
    border-bottom: none;
  }

  .co-applicants-table .co-applicants-who {
    grid-area: who;
    font-size: 1rem;
  }

  .co-applicants-table .co-applicants-status {
    grid-area: status;
    justify-self: end;
  }

  .co-applicants-table .co-applicants-job {
    grid-area: job;
    font-weight: 600;
  }

  .co-applicants-table .co-applicants-date {
    grid-area: date;
  }

  .co-applicants-table .co-applicants-open {
    grid-area: open;
    align-self: center;
    justify-self: end;
  }

  .co-applicants-date-label {
    display: inline;
  }

  /* The name's link covers the block. */
  .co-applicants-name::after {
    content: '';
    position: absolute;
    inset: 0;
  }

  .co-table.co-applicants-table .co-applicants-open .co-btn {
    min-height: 2.75rem;
    margin-left: 0;
    padding: 0 1.25rem;
    font-size: 0.88rem;
  }
}

/* --------------------------------------------------------------------------
   Applicant list: the Move menu (move_menu_controller.js)
   -------------------------------------------------------------------------- */

/* A card is a link and a button cannot sit inside one, so the Move button
   is the card's sibling, laid over its bottom corner. The card's last line
   is as tall as the button and stops short of it. */
.co-pipeline-item {
  position: relative;
}

.co-pipeline-item-movable .co-pipeline-card-foot {
  display: flex;
  align-items: center;
  min-height: 1.9rem;
  padding-right: 4.75rem;
}

.co-move-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 1.9rem;
  padding: 0 0.5rem 0 0.65rem;
  font-family: var(--jobs-font);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--jobs-text-secondary);
  background: #fff;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 6px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.18s ease;
}

.co-move-btn svg {
  flex-shrink: 0;
  width: 0.85rem;
  height: 0.85rem;
}

.co-move-btn:hover,
.co-move-btn[aria-expanded='true'] {
  color: var(--th-accent);
  background: #f8faff;
  border-color: #c7d7f7;
}

.co-move-btn:focus-visible {
  outline: 2px solid var(--th-accent);
  outline-offset: 2px;
}

.co-pipeline-item .co-move-btn {
  position: absolute;
  right: calc(0.75rem + 1.5px);
  bottom: calc(0.7rem + 1.5px);
}

/* The button rides with its card when the card lifts. */
.co-pipeline-card:hover + .co-move-btn {
  transform: translateY(-1px);
}

/* The card that was just moved, so the eye finds it in its new column. */
.co-pipeline-item-arrived .co-pipeline-card {
  animation: coMoveArrived 1.6s ease-out;
}

@keyframes coMoveArrived {
  0%,
  35% {
    border-color: var(--th-accent);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
  }
  100% {
    border-color: var(--jobs-card-border);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0);
  }
}

/* In the list, Move has a narrow column of its own before Review. */
.co-table .co-applicant-list-move {
  width: 1%;
  padding-right: 0;
  text-align: right;
  white-space: nowrap;
}

/* The layer covers the page while the menu is open. A tap on it closes
   the menu and goes no further, so it never opens the card underneath.
   Fixed to the screen, so the sideways-scrolling board cannot clip it. */
.co-move-layer {
  position: fixed;
  inset: 0;
  z-index: 1050;
}

.co-move-layer[hidden] {
  display: none;
}

.co-move-sheet {
  position: absolute;
  top: var(--co-move-top, 0);
  left: var(--co-move-left, 0);
  width: 17rem;
  max-width: calc(100vw - 1rem);
  padding: 0.4rem;
  font-family: var(--jobs-font);
  background: #fff;
  border: 1px solid var(--jobs-card-border);
  border-radius: 10px;
  box-shadow:
    0 14px 36px rgba(15, 23, 42, 0.16),
    0 2px 6px rgba(15, 23, 42, 0.06);
  animation: coMoveIn 0.12s ease-out;
}

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

.co-move-title {
  margin: 0;
  padding: 0.4rem 0.6rem 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--jobs-text-secondary);
  overflow-wrap: anywhere;
}

.co-move-title span {
  font-weight: 700;
  color: var(--jobs-text-primary);
}

.co-move-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.co-move-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0 0.6rem;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--jobs-text-primary);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.co-move-option[hidden] {
  display: none;
}

.co-move-option:hover,
.co-move-option:focus-visible {
  background: #f1f5fb;
}

.co-move-option:focus-visible,
.co-move-cancel:focus-visible,
.co-move-back:focus-visible,
.co-move-reject:focus-visible {
  outline: 2px solid var(--th-accent);
  outline-offset: -2px;
}

.co-move-reject:focus-visible {
  outline-offset: 2px;
}

.co-move-cancel {
  display: block;
  width: 100%;
  min-height: 2.4rem;
  margin-top: 0.3rem;
  padding: 0 0.6rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  color: var(--jobs-text-secondary);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--th-border-light);
  border-radius: 0 0 6px 6px;
  cursor: pointer;
}

.co-move-cancel:hover {
  color: var(--jobs-text-primary);
  background: #f9fafb;
}

/* The check before "Not selected". */
.co-move-confirm .co-move-title {
  padding-top: 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--jobs-text-primary);
}

.co-move-text {
  margin: 0;
  padding: 0 0.6rem 0.8rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--jobs-text-secondary);
}

.co-move-confirm-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 0.35rem 0.35rem;
}

.co-move-back,
.co-move-reject {
  min-height: 2.5rem;
  padding: 0 0.85rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.co-move-back {
  flex: 0 0 auto;
  color: var(--jobs-text-secondary);
  background: #fff;
  border: 1.5px solid var(--jobs-card-border);
}

.co-move-back:hover {
  color: var(--jobs-text-primary);
  background: #f9fafb;
  border-color: #d1d5db;
}

/* The same red as the app's confirm dialog. */
.co-move-reject {
  flex: 1 1 auto;
  color: #fff;
  background: #dc3545;
  border: 1.5px solid #dc3545;
}

.co-move-reject:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.co-move-error {
  margin: 0.4rem 0.35rem 0.25rem;
  padding: 0.5rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--tone-danger-fg);
  background: var(--tone-danger-bg);
  border-radius: 6px;
}

/* While a move is on its way, only its own button says so. */
.co-move-sheet[aria-busy='true'] .co-move-option:not(:disabled),
.co-move-sheet[aria-busy='true'] .co-move-reject:not(:disabled) {
  opacity: 0.5;
  pointer-events: none;
}

.co-move-option:disabled,
.co-move-reject:disabled {
  cursor: progress;
}

/* Fingers: a thumb-sized button on the card. */
@media (max-width: 640px), (pointer: coarse) {
  .co-move-btn {
    min-width: 4.5rem;
    min-height: 2.75rem;
    padding: 0 0.7rem 0 0.85rem;
    font-size: 0.84rem;
    border-radius: 8px;
  }

  .co-pipeline-item-movable .co-pipeline-card-foot {
    min-height: 2.75rem;
    padding-right: 5.25rem;
  }
}

/* A phone: the list scrolls sideways, so its Move column stays pinned to
   the right edge, under the thumb, while the rest slides beneath it. */
@media (max-width: 640px) {
  .co-table .co-applicant-list-move {
    position: sticky;
    right: 0;
    padding: 0.5rem 0.75rem 0.5rem 0.6rem;
    background: #fff;
    box-shadow: -12px 0 12px -12px rgba(15, 23, 42, 0.22);
  }

  .co-table thead .co-applicant-list-move {
    background: #fafbfc;
  }
}

/* A phone: the menu is a sheet along the bottom, where the thumb is, over a
   dimmed page. The check before "Not selected" keeps its buttons on the
   bottom row and its words above them, so a second tap where "Not selected"
   was lands on words, not on a button. */
@media (max-width: 640px) {
  .co-move-layer {
    display: flex;
    align-items: flex-end;
    background: rgba(15, 23, 42, 0.45);
    touch-action: none;
  }

  .co-move-sheet {
    position: static;
    width: 100%;
    max-width: none;
    max-height: calc(100% - 3rem);
    padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.2);
    /* The sheet comes up under the thumb that opened it and takes no taps
       until it has arrived, so this outlasts a double tap. */
    animation: coMoveUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .co-move-title,
  .co-move-confirm .co-move-title {
    padding: 0.4rem 0.6rem 0.65rem;
    font-size: 1rem;
  }

  .co-move-option {
    min-height: 3.25rem;
    padding: 0 0.75rem;
    font-size: 1rem;
    border-radius: 10px;
  }

  .co-move-option .co-status-option-dot {
    width: 10px;
    height: 10px;
  }

  .co-move-cancel {
    min-height: 3rem;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    text-align: center;
  }

  .co-move-text {
    padding-bottom: 1rem;
    font-size: 0.92rem;
  }

  .co-move-confirm-actions {
    padding: 0 0.25rem 0.25rem;
  }

  /* Two halves: taking it back is as easy to hit as going ahead. */
  .co-move-back,
  .co-move-reject {
    flex: 1 1 0;
    min-height: 3rem;
    padding: 0 0.5rem;
    font-size: 0.92rem;
    border-radius: 10px;
  }

  .co-move-error {
    font-size: 0.88rem;
  }
}

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

/* The menu still fades in, without moving: it takes no taps until it has
   arrived (move_menu_controller.js). */
@keyframes coMoveFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .co-move-sheet {
    animation-name: coMoveFade;
  }

  .co-pipeline-item-arrived .co-pipeline-card {
    animation: none;
  }

  .co-move-btn {
    transition: none;
  }
}
