/* styles/layouts/recruitment.css */

/*
 * Recruitment Manager Layout
 *
 * Reuses corpus layout classes for structural parity:
 *   .corpus-manager-container  -> shared via corpus-tabs.css / corpus-browser.css
 *   .corpus-nav                -> shared nav list styles
 *   .corpus-title-bar          -> shared title bar styles
 *   .corpus-content-wrapper    -> shared content wrapper
 *   .corpus-content-area       -> shared content area
 *   .corpus-action-buttons     -> shared action buttons
 *
 * Standard form patterns used: .form-group, .form-group--narrow, .action-group
 * Only recruitment-specific classes are defined here.
 */

/* ── Empty Section Placeholder ── */

.recr-empty-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  gap: var(--spacing-4);
  padding: var(--spacing-8);
  text-align: center;
}

.recr-empty-section i {
  font-size: 2rem;
  opacity: 0.5;
}

.recr-empty-section p {
  margin: 0;
  font-size: 0.95rem;
}

/* ── Shared Loading / Error States ── */

.recr-settings-loading {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-8);
  color: var(--text-secondary);
}

.recr-settings-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-8);
  color: var(--status-error);
  text-align: center;
}

.recr-settings-error i {
  font-size: 1.5rem;
}

/* ── Status Badges ── */

.recr-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.recr-badge--success {
  background: var(--status-success-bg);
  color: var(--status-success);
}

.recr-badge--error {
  background: var(--status-error-bg);
  color: var(--status-error);
}

.recr-badge--warning {
  background: var(--status-warning-bg);
  color: var(--status-warning);
}

.recr-badge--info {
  background: var(--status-info-bg);
  color: var(--status-info);
}

.recr-badge--neutral {
  background: var(--surface-subtle);
  color: var(--text-secondary);
}

/* ── Email Settings ── */

.recr-email-settings {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-6);
  padding: var(--spacing-6);
  overflow-y: auto;
  height: 100%;
}

.recr-settings-section {
  background: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 6px);
  padding: 10px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.recr-settings-section .form-group:last-child {
  margin-bottom: 0;
}

.recr-settings-heading {
  margin: 0px 0px 20px 0px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.recr-settings-desc {
  margin: 0 0 var(--spacing-4) 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.recr-settings-hint {
  margin: var(--spacing-2) 0 0 0;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.recr-inbound-address {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.recr-address-code {
  background: var(--surface-subtle);
  padding: var(--spacing-2) var(--spacing-3);
  border-radius: var(--radius-sm, 4px);
  font-size: 0.9rem;
  font-family: var(--font-family-mono, monospace);
  color: var(--text-primary);
  user-select: all;
}

/* Whitelist */

.recr-whitelist-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-3);
}

.recr-whitelist-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-2) var(--spacing-3);
  background: var(--surface-subtle);
  border-radius: var(--radius-sm, 4px);
}

.recr-whitelist-email {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-family-mono, monospace);
  margin-right: 15px;
}

.recr-whitelist-remove {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 2px;
  font-size: 0.85rem;
}

.recr-whitelist-remove:hover {
  color: var(--status-error);
}

.recr-whitelist-empty {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  padding: var(--spacing-2);
}

.recr-whitelist-add {
  display: flex;
  gap: var(--spacing-2);
  align-items: center;
}

.recr-whitelist-input {
  flex: 1;
  max-width: 320px;
  height: 30px;
}

/* ── Talent Profiles Table ── */

.recr-talent-profiles-view .data-table-container {
  max-height: 60vh;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.recr-talent-profiles-view .data-table-container table {
  width: 100%;
}

.recr-talent-profiles-view .data-table-container th {
  text-align: left;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-secondary);
  border-bottom: 2px solid var(--border-default);
  position: sticky;
  top: 0;
  z-index: 1;
}

.recr-talent-profiles-view .data-table-container td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.recr-talent-profiles-view .data-table-container tbody tr:hover {
  background-color: var(--surface-hover);
}

/* ── Projects View Table ── */

.recr-projects-view .data-table-container {
  max-height: 60vh;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.recr-projects-view .data-table-container table {
  width: 100%;
}

.recr-projects-view .data-table-container th {
  text-align: left;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-secondary);
  border-bottom: 2px solid var(--border-default);
  position: sticky;
  top: 0;
  z-index: 1;
}

.recr-projects-view .data-table-container td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.recr-projects-view .data-table-container tbody tr:hover {
  background-color: var(--surface-hover);
}

/* ── Filter Input Height Consistency ── */

.recr-filter-group .doc-input {
  height: 30px;
  padding: 4px 8px;
  font-size: 13px;
  box-sizing: border-box;
}

/* ── Action Labels — visible on wide, hidden on narrow ── */

.recr-action-label {
  font-size: 12px;
}

@media (max-width: 1100px) {
  .recr-action-label {
    display: none;
  }

  .recr-project-btn {
    display: none !important;
  }
}

/* ── Ingestion History ── */

.recr-ingestion-history {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: var(--spacing-4);
}

.recr-ingestions-table {
  width: 100%;
}

.recr-ingestions-table th {
  text-align: left;
}

.recr-filters-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  margin-bottom: 12px;
}

.recr-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.recr-filter-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.recr-filter-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* Detail panel */

.recr-detail-rejection {
  margin: 0 0 var(--spacing-3) 0;
  font-size: 0.85rem;
  color: var(--status-error);
  background: var(--status-error-bg);
  border-left: 3px solid var(--status-error);
  padding: var(--spacing-2) var(--spacing-3);
  border-radius: var(--radius-sm, 4px);
}

.recr-detail-guidance {
  margin: 0 0 var(--spacing-3) 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.recr-detail-empty {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Attachment table */

.recr-attachment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.recr-attachment-table th {
  text-align: left;
  padding: var(--spacing-2) var(--spacing-3);
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
}

.recr-attachment-table td {
  padding: var(--spacing-2) var(--spacing-3);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}

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

.recr-pipeline-error {
  color: var(--status-error);
  font-size: 0.8rem;
  word-break: break-word;
  max-width: 300px;
  display: inline-block;
}

/* Actions column */

.recr-actions-cell {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.recr-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--interactive-primary);
  border-radius: var(--radius-sm, 4px);
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.recr-download-link:hover {
  background: var(--surface-subtle);
}

.recr-reprocess-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  border-radius: var(--radius-sm, 4px);
  transition: color 0.15s ease, background-color 0.15s ease;
  font-size: 0.8rem;
}

.recr-reprocess-btn:hover {
  color: var(--interactive-primary);
  background: var(--surface-subtle);
}

.recr-reprocess-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Load more */

.recr-load-more {
  display: flex;
  justify-content: center;
  padding: var(--spacing-4) 0;
}

/* ── Requirements Form (Project Modal) ── */

.recr-requirements-section {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 6px);
  padding: var(--spacing-4);
  margin-top: var(--spacing-3);
  background: var(--surface-subtle);
  max-height: 50vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Tabbed mode: remove box styling (tab panel provides structure) */
.recr-requirements-section--tabbed {
  border: none;
  background: transparent;
  padding: var(--spacing-2) 0;
  margin-top: 0;
  max-height: none;
  overflow-y: visible;
  overflow-x: hidden;
}

/* Scrollable requirements tab content within project modal */
#requirementsTabPanel .tab-content {
  overflow-y: auto;
  max-height: calc(90vh - 320px);
}

/* Tab bar spacing in new-project modal */
#requirementsTabsWrapper .project-tabs {
  margin-top: var(--spacing-2);
}

.recr-requirements-section h3 {
  margin: 0 0 var(--spacing-3) 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.recr-requirements-section .recr-req-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}

.recr-requirements-section .recr-req-grid .form-group {
  margin-bottom: 0;
  min-width: 0;
}

/* Full-width items span all 4 columns */
.recr-requirements-section .recr-req-full {
  grid-column: 1 / -1;
}

/* Half-width items span 2 of 4 columns */
.recr-requirements-section .recr-req-half {
  grid-column: span 2;
}

.recr-requirements-section .doc-input {
  width: 100%;
  box-sizing: border-box;
}

.recr-requirements-section textarea.doc-input {
  min-height: 60px;
  resize: vertical;
}

/* In tabbed mode, auto-size textareas to content so only the tab panel scrolls */
.recr-requirements-section--tabbed textarea.doc-input {
  overflow: hidden;
  resize: none;
}

.recr-requirements-section textarea.recr-req-description {
  min-height: 160px;
}

.recr-req-client-constraints {
  margin-top: 30px !important;
}

.recr-requirements-subsection {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--spacing-3);
  margin-top: var(--spacing-3);
}

.recr-requirements-subsection h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Skill Chips (uses perm-tag from tag.css for styling) ── */

.recr-chips-container {
  margin-bottom: var(--spacing-2);
}

.recr-chip-add {
  display: flex;
  gap: var(--spacing-1);
  align-items: center;
  margin-top: var(--spacing-1);
}

.recr-chip-add input {
  max-width: 160px;
  font-size: 0.8rem;
  padding: 2px 6px;
}

/* ── Requirements List Items ── */

.recr-requirement-list {
  list-style: none;
  margin: 0 0 var(--spacing-2) 0;
  padding: 0;
}

.recr-requirement-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-2);
  padding: var(--spacing-1) 0;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.recr-requirement-item::before {
  content: "\2022";
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.recr-requirement-remove {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.recr-requirement-remove:hover {
  color: var(--status-error);
}

.recr-add-item-row {
  display: flex;
  gap: var(--spacing-1);
  align-items: center;
}

.recr-add-item-row input {
  flex: 1;
  font-size: 0.8rem;
  padding: 2px 6px;
}

.recr-add-item-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm, 4px);
  color: var(--interactive-primary);
  cursor: pointer;
  padding: 2px 8px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.recr-add-item-btn:hover {
  background: var(--surface-hover);
}

.recr-suggest-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  margin-left: var(--spacing-2);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm, 4px);
  background: var(--surface-default);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  vertical-align: middle;
}

.recr-suggest-btn:hover {
  background: var(--surface-hover);
  border-color: var(--interactive-primary);
  color: var(--interactive-primary);
}

.recr-suggest-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.recr-suggest-btn sl-icon {
  font-size: 0.8rem;
}

/* ── Talent Analysis Workspace ── */

.recr-talent-analysis-container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* ── Fullscreen Mode ── */

.recr-talent-analysis-container:fullscreen {
  background: var(--surface-default);
  padding: var(--spacing-2);
}

/* ── Filter Info Bar ── */

.recr-filter-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  background: var(--background-highlight);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.recr-filter-info-text {
  color: var(--text-secondary);
}

.recr-filter-clear-link {
  color: var(--interactive-secondary);
  text-decoration: none;
  font-size: 0.8rem;
}

.recr-filter-clear-link:hover {
  text-decoration: underline;
}

/* ── Similar Mode ── */

.recr-filter-info-bar--similar {
  background: var(--surface-info, #e8f0fe);
  border-bottom-color: var(--border-info, #4285f4);
}

.recr-similarity-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--interactive-secondary);
  color: var(--text-on-accent);
  font-size: 0.7rem;
  font-weight: 600;
}

/* Similarity tier colours */
.recr-similarity-rank--tier-1 {
  background: var(--recr-sim-tier-1, #1b7a3d);
}

.recr-similarity-rank--tier-2 {
  background: var(--recr-sim-tier-2, #1a7a6d);
}

.recr-similarity-rank--tier-3 {
  background: var(--recr-sim-tier-3, #8a6d00);
}

.recr-similarity-rank--tier-4 {
  background: var(--recr-sim-tier-4, #b85c00);
}

.recr-similarity-rank--tier-5 {
  background: var(--recr-sim-tier-5, #a83232);
}

/* ── Filter Badge ── */

.recr-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--interactive-secondary);
  color: var(--text-on-accent);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  box-sizing: border-box;
  padding: 0 5px;
  margin-left: 4px;
}

/* ── Hard Filter Panel ── */

.recr-hard-filter-form sl-dropdown::part(popup) {
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.recr-hard-filter-form {
  background: var(--surface-default);
  min-width: 460px;
  max-width: 480px;
}

/* Dim other filter sections when Quick Find (phone/email) is active */
.recr-hard-filter-form.recr-phone-email-active>*:not(.recr-quick-find-section):not(:last-child) {
  opacity: 0.4;
  pointer-events: none;
}

.recr-date-range-error {
  font-size: 0.75rem;
  color: var(--status-error);
  margin-top: 4px;
}

.recr-hard-filter-heading {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.recr-filter-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--surface-alt);
  font-size: 0.75rem;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease;
}

.recr-filter-checkbox-label:hover {
  background: var(--interactive-hover);
}

.recr-filter-checkbox-label input[type="checkbox"] {
  width: 12px;
  height: 12px;
  margin: 0;
}

.recr-filter-clear-all {
  font-size: 0.8rem;
  color: var(--interactive-secondary);
  text-decoration: none;
}

.recr-filter-clear-all:hover {
  text-decoration: underline;
}

/* ── Match Score Cell ── */

.recr-match-cell {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  height: auto;
  padding: 0;
}

.recr-match-bar {
  display: flex;
  gap: 1px;
  align-items: center;
}

.recr-match-segment {
  width: 4px;
  height: 12px;
  border-radius: 1px;
  background: var(--surface-alt);
}

.recr-match-value {
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 600;
  font-size: 13px;
  min-width: 24px;
  text-align: right;
  color: inherit;
}

.recr-match-empty {
  font-size: 0.8rem;
}

/* ── Grid Skill Chips (compact, for AG Grid cells) ── */

.recr-skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  overflow: hidden;
  align-items: center;
}

.recr-skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--status-info-bg);
  color: var(--status-info);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.recr-skill-chip--overflow {
  background: var(--surface-alt);
  color: var(--text-secondary);
  cursor: default;
}

/* ── Candidate Link ── */

.recr-candidate-link {
  color: var(--interactive-secondary);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.recr-candidate-link:hover {
  text-decoration: underline;
}

/* ── AG Grid Row Styling ── */

.recr-row-search-only {
  background-color: var(--surface-alt) !important;
}

/* ── Deep Analysis Modal ── */

.recr-deep-analysis-modal {
  max-width: 640px;
}

.recr-analysis-section {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.recr-analysis-section:last-of-type {
  border-bottom: none;
}

.recr-analysis-section--red-flags {
  background: rgba(255, 193, 7, 0.05);
  border-radius: var(--radius-md, 4px);
  padding: 12px;
  border-bottom: none;
  margin-bottom: 16px;
}

.recr-analysis-heading {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.recr-analysis-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.recr-analysis-list li {
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.recr-analysis-list li .recr-sq-badge {
  flex-shrink: 0;
}

.recr-analysis-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.recr-analysis-recommendation {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

.recr-analysis-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* ── Score Bars (Deep Analysis) ── */

.recr-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.recr-score-label {
  min-width: 120px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.recr-score-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.recr-score-bar {
  flex: 1;
  height: 8px;
  background: var(--surface-alt);
  border-radius: 4px;
  overflow: hidden;
}

.recr-score-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.recr-score-value {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Comparative Analysis Modal ── */

.recr-compare-ranking {
  margin: 0;
  padding-left: 24px;
  font-size: 0.9rem;
  line-height: 1.8;
}

.recr-ranking-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recr-ranking-item--top {
  font-weight: 600;
}

.recr-ranking-name {
  color: var(--text-primary);
}

.recr-ranking-score {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.recr-compare-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.recr-compare-matrix th {
  text-align: center;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
}

.recr-compare-matrix td {
  text-align: center;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.recr-matrix-label {
  text-align: left !important;
  font-weight: 500;
  color: var(--text-secondary);
}

.recr-matrix-cell {
  font-variant-numeric: tabular-nums;
}

/* ── Talent Match Query Editor Modal ── */

.recr-match-query-modal {
  max-width: 780px;
}

.recr-match-query-header {
  margin-bottom: var(--spacing-3, 12px);
}

.recr-match-query-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.recr-match-query-body {
  margin-bottom: var(--spacing-3, 12px);
}

.recr-match-query-textarea {
  width: 100%;
  font-family: var(--font-family-base);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 10px;
  resize: vertical;
  min-height: 140px;
}

.recr-match-query-word-count {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-tertiary, var(--text-secondary));
  text-align: right;
}

/* Query generation options section */
.recr-match-query-gen-options {
  margin-bottom: var(--spacing-3, 12px);
}

.recr-match-query-gen-options::part(base) {
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.recr-match-query-gen-options::part(summary) {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 12px;
}

.recr-match-query-gen-options__description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.recr-match-query-gen-options__group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}

.recr-match-query-gen-options__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.recr-match-query-gen-options__item input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

/* Action buttons */
.recr-match-query-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.recr-match-query-actions__left,
.recr-match-query-actions__right {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Warning banner spacing */
#recr-match-query-warning-container {
  margin-bottom: var(--spacing-2, 8px);
}

#recr-match-query-warning-container:empty {
  margin-bottom: 0;
}

/* ── Talent Analysis Tabs Area ── */

.recr-talent-analysis-tabs-area {
  flex-shrink: 0;
}

/* ── Talent Analysis Grid Container ── */

.recr-talent-analysis-grid {
  position: relative;
}

/* ── Grid Loading Overlay ── */

.grid-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
  gap: 12px;
}

.grid-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--interactive-secondary);
  border-radius: 50%;
  animation: grid-loading-spin 0.8s linear infinite;
}

.grid-loading-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@keyframes grid-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Hard Filter Section Visibility ── */

.recr-hard-filter-section--hidden {
  display: none;
}

/* ── Progress Indicator ── */

.recr-progress-indicator {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
}

.recr-progress-message {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.recr-progress-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recr-progress-percent {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Floating Progress Overlay ── */

.recr-floating-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}

.recr-floating-progress-panel {
  background: var(--surface-default);
  border-radius: 8px;
  padding: 24px 32px;
  min-width: 340px;
  max-width: 460px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

/* ── Notes Cell ── */

.recr-notes-cell {
  cursor: pointer;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recr-notes-edit-icon {
  opacity: 0.4;
  font-size: 0.85em;
  flex-shrink: 0;
}

.recr-notes-cell:hover .recr-notes-edit-icon {
  opacity: 1;
  color: var(--interactive-primary);
}

/* ── Profile Analysis Modal ── */

.recr-analysis-modal-body {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  border-top: 1px solid var(--border-subtle);
}

.recr-analysis-sidebar {
  width: 200px;
  min-width: 200px;
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  padding: 8px 0;
  background: var(--surface-alt);
}

.recr-analysis-sidebar-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease;
  font-size: 0.85rem;
}

.recr-analysis-sidebar-item:hover {
  background: var(--surface-hover);
}

.recr-analysis-sidebar-item--active {
  background: var(--surface-default);
  border-left-color: var(--interactive-primary);
  font-weight: 600;
}

.recr-analysis-sidebar-item--disabled {
  opacity: 0.5;
  pointer-events: none;
}

.recr-analysis-sidebar-label {
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recr-analysis-sidebar-score {
  display: flex;
  align-items: center;
  gap: 6px;
}

.recr-analysis-sidebar-score .recr-score-bar {
  height: 4px;
  width: 60px;
}

.recr-analysis-sidebar-score-value {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.recr-analysis-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.recr-analysis-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  padding: 40px;
}

.recr-analysis-error {
  padding: 24px;
  color: var(--status-error);
}

.recr-analysis-section {
  margin-bottom: var(--spacing-4);
}

.recr-analysis-section-title {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2);
}

.recr-analysis-score-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--spacing-4);
}

.recr-analysis-score-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.recr-analysis-score-label {
  width: 160px;
  min-width: 160px;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
}

.recr-analysis-list {
  margin: 0;
  padding-left: var(--spacing-4);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
}

.recr-analysis-list--red {
  color: var(--status-error);
}

/* Screening question priority badge — shown inline next to strengths/weaknesses/red_flags */
.recr-sq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  cursor: default;
  user-select: none;
}

.recr-sq-badge--1 {
  background: var(--status-error);
  color: var(--color-white, #fff);
}

.recr-sq-badge--2 {
  background: var(--status-warning);
  color: var(--color-white, #fff);
}

.recr-sq-badge--3 {
  background: var(--interactive-secondary);
  color: var(--color-white, #fff);
}

.recr-sq-badge--4,
.recr-sq-badge--5 {
  background: var(--surface-raised);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.recr-analysis-recommendation {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  padding: 12px var(--spacing-4);
  background: var(--surface-alt);
  border-radius: 6px;
  border-left: 3px solid var(--interactive-primary);
}

.recr-analysis-summary-text {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
}

/* ── Scatter Quadrant Charts ── */

.recr-quadrant-charts-container {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.recr-quadrant-chart-wrapper {
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px;
  min-width: 280px;
  flex: 1;
  background: var(--surface-default);
}

/* ── Tier Legend Items in Info Bar ── */

.recr-sim-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  font-size: 0.78rem;
}

.recr-sim-legend-item .recr-similarity-rank {
  min-width: 18px;
  height: 18px;
  font-size: 0.65rem;
}

/* ── Similar Search Modal ── */

.recr-similar-modal__seeds {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}

.recr-similar-modal__seeds li {
  padding: 2px 0;
  font-weight: 500;
}

.recr-similar-modal__seeds li::before {
  content: "\25CF";
  color: var(--interactive-primary);
  margin-right: 6px;
}

.recr-similar-modal__field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.recr-similar-modal__mode-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}

.recr-similar-modal__filter-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Whitelist Action Buttons ── */

.recr-whitelist-check,
.recr-whitelist-resend {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.recr-whitelist-check:hover,
.recr-whitelist-resend:hover {
  color: var(--interactive-primary);
  background-color: var(--surface-hover);
}

.recr-whitelist-check:disabled,
.recr-whitelist-resend:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.check-email-link {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.check-email-link:hover {
  color: var(--interactive-primary);
}


/* ── Pool Warning Banner ── */

.recr-pool-warning-banner {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--status-warning-bg, #fff8e1);
  color: var(--text-primary);
  border: 1px solid var(--status-warning, #f9a825);
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.recr-pool-warning-banner i {
  color: var(--status-warning, #f9a825);
  flex-shrink: 0;
}


/* Ensure all hoisted sl-popup panels (city/country dropdowns) appear above sticky top-bar.
   Shoelace appends hoisted panels as sl-popup children of body — set z-index variable here. */
body>sl-popup {
  --sl-z-index-dropdown: 1000;
}

/* ATS link row in submission pack modal */
.recr-ats-link:hover {
  color: var(--interactive-primary);
  text-decoration: underline;
}

.recr-ats-link:hover .recr-ats-link-icon {
  color: var(--interactive-primary);
}

/* ============================================================
   Boolean CV Text Search panel
   ============================================================ */

/* Panel container */
.recr-boolean-search-panel {
  width: min(680px, calc(100vw - 48px));
  min-width: min(580px, calc(100vw - 48px));
  max-height: 60vh;
  border-radius: 8px;
  box-shadow: var(--shadow-dropdown);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface-default);
  border: 1px solid var(--border-subtle);
}

/* Panel header */
.bs-header {
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.bs-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.bs-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bs-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.bs-subtitle.bs-subtitle--warn {
  color: var(--status-warning);
}

.bs-subtitle.bs-subtitle--error {
  color: var(--status-error);
}

.bs-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
}

.bs-close:hover {
  color: var(--text-primary);
  background: var(--surface-alt);
}

/* Clause list */
.recr-boolean-search-clause-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Single clause row: 3-col grid */
.recr-boolean-search-clause {
  display: grid;
  grid-template-columns: 84px 1fr 28px;
  gap: 10px;
  align-items: center;
  animation: clause-in 160ms ease-out;
}

.recr-boolean-search-clause.is-removing {
  animation: clause-out 140ms ease-in forwards;
  pointer-events: none;
}

@keyframes clause-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes clause-out {
  from {
    opacity: 1;
    transform: translateY(0);
    max-height: 60px;
  }

  to {
    opacity: 0;
    transform: translateY(-3px);
    max-height: 0;
  }
}

/* WHERE locked pill (first clause operator) */
.recr-boolean-search-operator-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  width: 84px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  border: 1px dashed var(--border-subtle);
  border-radius: 999px;
}

/* AND/OR operator pill toggle */
.clause-op-slot {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.recr-boolean-search-operator {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  height: 28px;
  width: 84px;
  background: var(--surface-alt);
  border: 1px solid var(--border-input);
  border-radius: 999px;
  padding: 2px;
}

.recr-boolean-search-operator button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  transition: color .15s ease;
}

.recr-boolean-search-operator button.active {
  color: #fff;
}

.recr-boolean-search-operator .op-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  height: calc(100% - 4px);
  width: calc(50% - 2px);
  background: var(--interactive-primary);
  border-radius: 999px;
  transition: transform .18s ease, background-color .18s ease;
  z-index: 0;
  pointer-events: none;
}

.recr-boolean-search-operator[data-op="OR"] .op-thumb {
  transform: translateX(100%);
  background: var(--color-brand-teal, var(--interactive-primary));
}

/* Value input wrapper */
.recr-boolean-search-value-wrap {
  position: relative;
}

.bs-value-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-muted);
  pointer-events: none;
}

.recr-boolean-search-value {
  /* Full base input styling — doc-input has no standalone rule outside modal contexts */
  display: block;
  width: 100%;
  height: 34px;
  padding: 0 60px 0 28px;
  box-sizing: border-box;
  border: 1px solid var(--border-input);
  border-radius: 4px;
  background: var(--surface-input, var(--surface-default));
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  line-height: 34px;
  outline: none;
  transition: border-color 0.15s ease;
}

.recr-boolean-search-value:focus {
  border-color: var(--interactive-primary);
  box-shadow: 0 0 0 2px var(--interactive-primary-faint, rgba(0, 0, 0, 0.08));
}

.recr-boolean-search-value::placeholder {
  color: var(--text-muted);
}

.recr-boolean-search-value-hint {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--surface-alt);
  padding: 1px 5px;
  border-radius: 3px;
  pointer-events: none;
}

.recr-boolean-search-value-wrap:not(:focus-within) .recr-boolean-search-value-hint {
  display: none;
}

/* Remove clause button */
.recr-boolean-search-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
}

.recr-boolean-search-remove:hover {
  background: var(--status-error-bg);
  color: var(--status-error);
}

.recr-boolean-search-remove.is-hidden {
  visibility: hidden;
}

/* Add condition button */
.recr-boolean-search-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  background: transparent;
  border: none;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--interactive-primary);
  cursor: pointer;
}

.recr-boolean-search-add:hover {
  color: var(--interactive-primary-hover);
  text-decoration: underline;
}

.recr-boolean-search-add:disabled {
  color: var(--text-disabled);
  cursor: not-allowed;
  text-decoration: none;
}

/* Hint bar */
.bs-hint {
  padding: 0 14px 8px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bs-hint kbd {
  background: var(--surface-alt);
  border: 1px solid var(--border-input);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 0 4px;
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 14px;
}

/* Sticky footer */
.bs-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-default);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.bs-footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bs-footer-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Apply search primary button */
.recr-boolean-search-panel .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  background: var(--interactive-primary);
  color: #fff;
  border: 1px solid var(--interactive-primary);
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}

.recr-boolean-search-panel .btn-primary:hover:not(:disabled) {
  background: var(--interactive-primary-hover);
  border-color: var(--interactive-primary-hover);
}

.recr-boolean-search-panel .btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Clear all button in panel footer */
.recr-boolean-search-clear-all {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 6px 4px;
}

.recr-boolean-search-clear-all:hover {
  color: var(--status-error);
  text-decoration: underline;
}

.recr-boolean-search-clear-all:disabled {
  color: var(--text-disabled);
  cursor: not-allowed;
}

/* CV search chip in filter info bar */
.recr-boolean-search-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 4px 2px 6px;
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.recr-filter-chip-x {
  background: none;
  border: none;
  padding: 0 2px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
}

.recr-filter-chip-x:hover {
  color: var(--status-error);
}

/* ── Match Search Config Modal (recr-match-config-*) ── */

.recr-match-config-intro {
  margin-bottom: var(--spacing-4);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.recr-match-config-section {
  margin-bottom: var(--spacing-4);
}

.recr-match-config-section-header {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-2);
}

.recr-match-config-section-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.recr-match-config-section-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Segmented control (date window) */
.recr-match-config-segmented {
  display: flex;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}

.recr-match-config-seg-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 6px 16px;
  font-size: var(--font-size-sm);
  cursor: pointer;
  color: var(--text-secondary);
  border-right: 1px solid var(--border-subtle);
  transition: background 0.12s, color 0.12s;
  user-select: none;
}

.recr-match-config-seg-item:last-child {
  border-right: none;
}

.recr-match-config-seg-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.recr-match-config-seg-item.is-checked {
  background: var(--interactive-primary);
  color: var(--color-white);
  font-weight: var(--font-weight-medium);
}

.recr-match-config-seg-item:not(.is-checked):hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

/* Stacked radio rows (scope, match type) */
.recr-match-config-radio-stack {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.recr-match-config-radio-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  user-select: none;
}

.recr-match-config-radio-row input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.recr-match-config-radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-default);
  flex-shrink: 0;
  transition: border-color 0.12s, background 0.12s;
  box-sizing: border-box;
}

.recr-match-config-radio-row.is-checked .recr-match-config-radio-dot {
  border-color: var(--interactive-primary);
  background: var(--interactive-primary);
  box-shadow: inset 0 0 0 2px var(--surface-default);
}

.recr-match-config-radio-row.is-checked {
  border-color: var(--interactive-primary);
  background: rgba(14, 48, 72, 0.04);
}

.recr-match-config-radio-row:not(.is-checked):hover {
  border-color: var(--border-default);
  background: var(--surface-hover);
}

.recr-match-config-radio-label {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  line-height: 1.4;
}

.recr-match-config-radio-hint {
  color: var(--text-muted);
  font-size: 12px;
}

/* Advanced match narrative banner */
.recr-advanced-match-banner {
  background: var(--surface-info, rgba(14, 48, 72, 0.05));
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--interactive-primary);
  border-radius: 4px;
  padding: var(--spacing-3) var(--spacing-4);
  margin-bottom: var(--spacing-3);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.recr-advanced-match-banner-label {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--interactive-primary);
}

/* ── Filter/Match indicators — pill badges matching Claude Design ── */
.recr-ind {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 6px 0 5px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
  cursor: help;
  position: relative;
  white-space: nowrap;
  line-height: 1;
  margin-left: 3px;
  vertical-align: middle;
}

.recr-ind i {
  font-size: 9px;
}

.recr-ind--filter {
  background: rgba(19, 92, 121, 0.08);
  border-color: rgba(19, 92, 121, 0.22);
  color: #114d65;
}

.recr-ind--match {
  background: rgba(14, 48, 72, 0.06);
  border-color: rgba(14, 48, 72, 0.18);
  color: var(--interactive-primary);
}

/* Tooltip on hover */
.recr-ind__tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 9px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0;
  text-transform: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.recr-ind__tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #333;
}

.recr-ind:hover .recr-ind__tip {
  opacity: 1;
}

/* ── Project Account New Modal — remove gap, no added padding (sections control their own) ── */
.modal--form:has(.panm-header) .modal__content {
  gap: 0;
  padding: 0;
}

/* Requirements form grid gets side padding from the modal context */
#requirementsTabsWrapper .recr-req-group {
  padding: 16px 20px 8px;
}

/* ── Requirements tab bar — underline-style tabs matching Claude Design ── */
.recr-req-tabs-bar {
  display: flex;
  gap: 4px;
  padding: 8px 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-default);
}

/* Override modal.css filled-tab style with underline style */
.recr-req-tabs-bar .project-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  position: relative;
  transition: color 0.15s, background 0.15s;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.recr-req-tabs-bar .project-tab:hover:not(.is-active) {
  background: rgba(14, 48, 72, 0.04);
  color: var(--text-primary);
}

.recr-req-tabs-bar .project-tab.is-active {
  background: transparent;
  border-color: transparent;
  color: var(--interactive-primary);
  font-weight: 600;
}

.recr-req-tabs-bar .project-tab.is-active::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 2px;
  background: var(--interactive-primary);
  border-radius: 2px 2px 0 0;
}

/* ── Legend chips ── */
.recr-req-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Panel variant (project-modal) — shown at top of requirements tab panel */
.recr-req-legend--panel {
  padding: 8px 16px 6px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-background, #f8f9fa);
}

.recr-req-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.recr-req-legend-chip i {
  font-size: 10px;
}

.recr-req-legend-chip--filter {
  background: rgba(19, 92, 121, 0.07);
  border-color: rgba(19, 92, 121, 0.25);
  color: #114d65;
}

.recr-req-legend-chip--match {
  background: rgba(14, 48, 72, 0.06);
  border-color: rgba(14, 48, 72, 0.20);
  color: var(--interactive-primary);
}

/* ── Section divider — label left, line right only ── */
.recr-req-section-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 4px;
}

.recr-req-section-divider__label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

.recr-req-section-divider__line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ── Geo location selector (requirements form) ── */
.recr-req-geo-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.recr-req-geo-chip-area {
  display: flex;
  align-items: center;
}

.recr-req-geo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--primary-color-subtle, #e8f4f8);
  border: 1px solid var(--color-primary-light, #135c79);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-primary);
}

.recr-req-geo-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: var(--text-muted);
  padding: 0 2px;
}

.recr-req-geo-chip-remove:hover {
  color: var(--status-error);
}

.recr-req-geo-mode-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: 4px;
}

.recr-req-geo-distance-area {
  display: flex;
  align-items: center;
  gap: 6px;
}

.recr-req-geo-distance-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.recr-req-geo-distance {
  width: 80px !important;
}

/* ── Year range pair ── */
.recr-req-year-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.recr-req-year-range .doc-input {
  width: 100%;
}

.recr-req-year-range-sep {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.recr-req-label-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ── Description hint ── */
.recr-req-field-hint {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* ── Chip multi-select group (clearance, work rights, availability, pool) ── */
.recr-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recr-chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border-default, #ced4da);
  background: #fff;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: all 0.12s;
}

.recr-chip-toggle:hover {
  border-color: var(--interactive-primary);
  color: var(--text-primary);
}

.recr-chip-toggle i {
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.1s;
}

.recr-chip-toggle.is-on {
  background: rgba(14, 48, 72, 0.05);
  border-color: var(--interactive-primary);
  color: var(--interactive-primary);
}

.recr-chip-toggle.is-on i {
  opacity: 1;
}

.recr-chip-toggle:disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ── Score weight sliders ── */
.recr-weight-section {
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: var(--spacing-4);
  background: var(--surface-subtle, rgba(14, 48, 72, 0.03));
  margin-bottom: var(--spacing-4);
}

.recr-weight-section__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 4px;
  color: var(--text-primary);
}

.recr-weight-section__desc {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 0 var(--spacing-3);
}

.recr-weight-presets {
  display: flex;
  gap: var(--spacing-2);
  flex-wrap: wrap;
  margin-top: var(--spacing-4);
  margin-bottom: var(--spacing-4);
}

.recr-weight-preset-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border-default);
  border-radius: 9999px;
  background: var(--surface-default);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.recr-weight-preset-btn:hover {
  background: var(--surface-subtle, #f9fafb);
  border-color: var(--interactive-primary);
  color: var(--interactive-primary);
}

.recr-weight-preset-btn.is-active {
  background: var(--interactive-primary);
  border-color: var(--interactive-primary);
  color: #fff;
}

.recr-weight-preset-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.recr-weight-sliders {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.recr-weight-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recr-weight-row.is-locked .recr-weight-slider {
  opacity: 0.6;
}

.recr-weight-row__label-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.recr-weight-lock {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 3px;
  transition: color 0.15s;
  flex-shrink: 0;
}

.recr-weight-lock:hover {
  color: var(--interactive-primary);
}

.recr-weight-lock[aria-pressed="true"] {
  color: var(--interactive-primary);
}

.recr-weight-lock:disabled {
  opacity: 0.4;
  cursor: default;
}

.recr-weight-row__name {
  flex: 1;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.recr-weight-row__val {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--interactive-primary);
  min-width: 36px;
  text-align: right;
}

.recr-weight-row__desc {
  font-size: 11px;
  color: var(--text-muted);
  padding-left: 26px;
}

.recr-weight-slider {
  width: 100%;
  accent-color: var(--interactive-primary);
  cursor: pointer;
}

.recr-weight-slider:disabled {
  cursor: default;
}

.recr-weight-total {
  margin-top: var(--spacing-3);
  text-align: right;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.recr-weight-total__val {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.recr-weight-total__val--error {
  color: var(--status-error, #c0392b);
}

/* ── Project Account New Modal — zero out modal padding so header/toprow are edge-to-edge ── */
.modal--form:has(.panm-header) {
  padding: 0;
  max-height: 90vh;
  overflow: hidden;
}

/* Footer always visible at bottom */
.modal--form:has(.panm-header)>.button-group {
  padding: 14px 20px;
  margin-top: 0;
  border-top: 1px solid var(--border-subtle);
}

/*
 * The requirements wrapper scrolls when the modal viewport is too short.
 * Heights of fixed parts:
 *   panm-header ≈ 100px, panm-toprow ≈ 74px, tab-bar ≈ 43px, footer ≈ 60px → ~277px total
 * We cap the wrapper so content stays within the 90vh modal.
 */
.modal--form:has(.panm-header) #requirementsTabsWrapper {
  max-height: calc(90vh - 277px);
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Project Account New Modal — header (title + legend row + subtitle) ── */
.panm-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-default, #fff);
}

.panm-header__top {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.panm-header .modal__close {
  flex-shrink: 0;
  position: static !important;
  top: auto !important;
  right: auto !important;
}

.panm-header__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex: 1;
}

.panm-header__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--interactive-primary);
  display: inline-block;
  flex-shrink: 0;
  opacity: 0.85;
}

.panm-header__subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.panm-header__legend {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

/* ── Project Account New Modal — compact top row (Account + Project) ── */
.panm-toprow {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 20px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-default, #fff);
}

.panm-toprow__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.panm-toprow__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  height: 22px;
}

.panm-toprow__head i {
  font-size: 10px;
  color: var(--interactive-primary);
}

.panm-toprow__field {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.panm-toprow__field .doc-input {
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  border: 1px solid var(--border-default, #ced4da);
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  background: var(--surface-default, #fff);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}

.panm-toprow__field .doc-input:focus {
  border-color: var(--interactive-primary);
  box-shadow: 0 0 0 3px rgba(14, 48, 72, 0.08);
}

/* ── Segmented toggle (Create New / Select Existing) ── */
.panm-seg {
  display: inline-flex;
  background: var(--surface-background, #f0f2f4);
  border: 1px solid var(--border-default, #ced4da);
  border-radius: 6px;
  padding: 2px;
  gap: 0;
  margin-left: auto;
}

.panm-seg__btn {
  border: none;
  background: transparent;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  height: 24px;
  line-height: 1;
  white-space: nowrap;
}

.panm-seg__btn:hover:not(.is-active) {
  color: var(--text-primary);
}

.panm-seg__btn.is-active {
  background: var(--surface-default, #fff);
  color: var(--interactive-primary);
  box-shadow: 0 1px 2px rgba(14, 48, 72, 0.08);
  font-weight: 600;
}

/* ── panm responsive ── */

/* Mid-width (< ~780px): stack toprow, hide legend chips */
@media (max-width: 780px) {
  .panm-header__legend {
    display: none;
  }

  .panm-header__title {
    white-space: normal;
  }

  .panm-toprow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .panm-toprow__head {
    height: auto;
  }
}

/* Override modal.css @media(max-width:768px) which sets .project-tabs { flex-direction:column } */
/* Our tab bar must always be a horizontal row */
@media (max-width: 768px) {
  .recr-req-tabs-bar {
    flex-direction: row !important;
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
  }

  .recr-req-tabs-bar .project-tab {
    justify-content: flex-start;
    border-radius: 6px 6px 0 0;
  }

  .recr-req-tabs-bar .project-tab.is-active::after {
    display: block;
  }
}

/* Narrow (< ~860px): collapse 4-col grid to 2-col to avoid cramped fields */
@media (max-width: 860px) {
  .recr-requirements-section .recr-req-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recr-requirements-section .recr-req-full {
    grid-column: 1 / -1;
  }

  .recr-requirements-section .recr-req-half {
    grid-column: 1 / -1;
  }

  .recr-requirements-section .recr-req-full-2 {
    grid-column: 1 / -1;
  }
}

/* Very narrow (< ~580px): tabs compact */
@media (max-width: 580px) {
  .recr-req-tabs-bar {
    padding: 6px 8px 0;
    gap: 2px;
  }

  .recr-req-tabs-bar .project-tab {
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
    gap: 4px;
  }
}

/* ── Weight section title row (title + reset button) ── */
.recr-weight-section__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.recr-weight-reset-btn {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}

.recr-weight-reset-btn:hover {
  color: var(--interactive-primary);
  border-color: var(--interactive-primary);
}

.recr-weight-reset-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ── Collapse empty ESCO chip containers ── */
.perm-list-container.recr-chips-container:empty {
  display: none;
}

/* ── Match stats inline (inside filter info bar) ── */
.recr-match-stats-inline {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.recr-match-stats-inline__strong {
  color: var(--status-success, green);
  font-weight: 500;
}

.recr-match-stats-inline__good {
  color: var(--interactive-primary);
  font-weight: 500;
}

.recr-match-stats-inline__view-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  color: var(--interactive-secondary);
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
}

/* ── Match Results Modal ── */
.recr-match-results-modal__stats-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-2);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-8);
}

.recr-match-results-modal__check {
  font-weight: 600;
  color: var(--status-success, green);
}

.recr-match-results-modal__sep {
  opacity: 0.4;
}

.recr-match-results-modal__strong {
  color: var(--status-success, green);
  font-weight: 500;
}

.recr-match-results-modal__good {
  color: var(--interactive-primary);
  font-weight: 500;
}

.recr-match-results-modal__partial {
  color: var(--text-secondary);
}

.recr-match-results-modal__advanced-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--interactive-primary);
  color: #fff;
  border-radius: 10px;
  font-weight: 500;
  vertical-align: middle;
}

.recr-match-results-modal__narrative {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  background: var(--surface-alt);
  border-left: 3px solid var(--interactive-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--spacing-8);
  padding: 10px;
}

.recr-match-results-modal__section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--spacing-2);
}

.recr-match-results-modal__candidates {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-3);
}

.recr-match-results-modal__candidate-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: 0.85rem;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.recr-match-results-modal__rank {
  color: var(--text-muted);
  font-size: 0.75rem;
  min-width: 18px;
}

.recr-match-results-modal__name-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.recr-match-results-modal__name {
  font-weight: 500;
}

.recr-match-results-modal__title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recr-match-results-modal__score-badge {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.recr-match-results-modal__score-badge--strong {
  background: var(--status-success-bg, #e8f5e9);
  color: var(--status-success, #2e7d32);
}

.recr-match-results-modal__score-badge--good {
  background: var(--surface-info, #e3f2fd);
  color: var(--interactive-primary);
}

.recr-match-results-modal__score-badge--partial {
  background: var(--surface-alt);
  color: var(--text-secondary);
}

.recr-match-results-modal {
  width: min(840px, 90vw);
}

.recr-match-results-modal__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--spacing-4);
  margin-bottom: var(--spacing-2);
}

.recr-match-results-modal__note i {
  color: var(--status-success, green);
  margin-right: 4px;
}

.recr-match-results-modal__expansion {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2);
  padding: var(--spacing-1) 0;
}

.recr-match-results-modal__expansion-warn {
  color: var(--status-warning, #b45309);
}

/* ── Candidate cell with compare link ── */

.recr-candidate-cell {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  width: 100%;
}

.recr-candidate-compare-link {
  display: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.recr-candidate-compare-link:hover {
  opacity: 1;
  color: var(--interactive-primary);
}

.ag-row:hover .recr-candidate-compare-link,
.ag-row-selected .recr-candidate-compare-link {
  display: inline;
}


/* ── CV vs Job Brief Comparison Modal ── */

/* Modal shell — inherits cv-edit-view-modal base (97vw, 95vh, flex column) */
.recr-cv-job-brief-comparison-modal {
  height: 92vh !important;
  max-height: 92vh !important;
}

/* Header */
.recr-comparison-header {
  flex-shrink: 0;
  padding-bottom: var(--spacing-2);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0px;
}

.recr-comparison-header h2 {
  margin: 0 0 4px 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  flex-wrap: wrap;
}

.recr-comparison-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Score badge */
.recr-match-score-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  vertical-align: middle;
}

.recr-match-score-badge--high {
  background: var(--status-success-bg);
  color: var(--status-success);
}

.recr-match-score-badge--medium {
  background: var(--status-warning-bg);
  color: var(--status-warning);
}

.recr-match-score-badge--low {
  background: var(--status-error-bg);
  color: var(--status-error);
}

/* Content row: OVERRIDE cv-modal-content which defaults to flex-direction:column */
.recr-comparison-content {
  display: flex !important;
  flex-direction: row !important;
  flex: 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  gap: 0;
}

/* Left pane */
.recr-comparison-left {
  flex: 0 0 30%;
  min-width: 260px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--surface-subtle);
}

/* Tab bar inside left pane — height matches .cv-preview-header on the right.
   cv-preview-header has inline style padding: 10px 16px + ~19px text + 1px border = 40px.
   Force exact 40px so both headers sit at the same level. */
.recr-comparison-tabs-bar {
  flex-shrink: 0;
  padding: 0 var(--spacing-4);
  background: var(--surface-default);
  height: 40px;
  align-items: center;
}

/* Right pane preview container: no box border — flush with left pane divider line */
.recr-comparison-right .cv-edit-preview-pane__preview-container {
  border: none;
  border-radius: 0;
}

/* Tab panel container */
.recr-comparison-tab-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Panel: hidden by default, flex column when active so .cv-preview-content inside can fill+scroll */
.recr-comparison-tab-panel {
  display: none;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.recr-comparison-tab-panel--active {
  display: flex;
}

/* Left pane: smaller type than the full-screen CV editor */
.recr-comparison-left .markdown-preview h1 {
  font-size: 18px;
}

.recr-comparison-left .markdown-preview h2 {
  font-size: 15px;
}

.recr-comparison-left .markdown-preview h3,
.recr-comparison-left .markdown-preview p,
.recr-comparison-left .markdown-preview li {
  font-size: 13px;
}

/* Right pane — flex column for tab bar + tab content */
.recr-comparison-right {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Loading / empty states */
.recr-comparison-loading,
.recr-comparison-no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-4);
  padding: var(--spacing-8);
  color: var(--text-secondary);
  text-align: center;
  min-height: 120px;
}

.recr-comparison-loading i,
.recr-comparison-no-data i {
  font-size: 1.4rem;
  opacity: 0.45;
}

.recr-comparison-no-data p {
  margin: 0;
  font-size: 0.85rem;
  max-width: 240px;
}

/* Footer */
.recr-comparison-footer {
  flex-shrink: 0;
  margin-top: 0 !important;
  border-top: 1px solid var(--border-subtle) !important;
  padding: var(--spacing-2) 0 0 !important;
}

/* Narrow screens: hide left pane */
@media (max-width: 860px) {
  .recr-comparison-left {
    display: none;
  }
}

/* ── Ideal CV info banner ── */

.recr-ideal-cv-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  margin: 8px 2px 18px;
  background: var(--status-info-bg, #e3f2fd);
  border: 1px solid var(--status-info, #1565c0);
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-primary);
  flex-shrink: 0;
}

.recr-ideal-cv-banner i {
  color: var(--status-info, #1565c0);
  flex-shrink: 0;
  margin-top: 2px;
}

.recr-ideal-cv-banner__link {
  color: var(--interactive-primary);
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

.recr-ideal-cv-banner__link:hover {
  opacity: 0.8;
}

/* ── Job Brief read-only summary ── */

.recr-jb-summary {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  /* 16px between fields */
}

.recr-jb-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Label style mirrors .panm-section-label / ACCOUNT header in reference modals:
   small-caps, muted, uppercase */
.recr-jb-label {
  font-size: var(--font-size-xs);
  /* 12px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* Value style: standard body text weight */
.recr-jb-value {
  font-size: var(--font-size-sm);
  /* 14px */
  color: var(--text-primary);
  line-height: 1.4;
}

.recr-jb-block {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1);
}

/* Description block — same pattern as .panm-selected-account */
.recr-jb-block-text {
  font-size: var(--font-size-sm);
  /* 14px */
  color: var(--text-secondary);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: var(--spacing-2);
}

.recr-jb-field--chips .recr-jb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-1);
  margin-top: var(--spacing-1);
}

/* Chip style — matches the FILTER/MATCH badge pill from the reference modal header */
.recr-jb-chip {
  display: inline-flex;
  align-items: center;
  background: var(--surface-subtle);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: var(--font-size-xs);
  /* 12px */
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ── CV section score pill (inline annotation) ── */

.recr-cv-score-pill {
  cursor: help;
  margin-left: 8px;
  vertical-align: middle;
  font-size: 0.72rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

/* CSS tooltip shown on hover */
.recr-cv-score-pill[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-overlay, #1a1a2e);
  color: var(--text-on-overlay, #f0f0f0);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: normal;
  width: 260px;
  max-width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10100;
  text-align: left;
}

.recr-cv-score-pill[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--surface-overlay, #1a1a2e);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10100;
}

.recr-cv-score-pill[data-tooltip]:hover::after,
.recr-cv-score-pill[data-tooltip]:hover::before {
  opacity: 1;
}

/* ── Analysis summary strip (slim, above footer) ── */

.recr-analysis-summary-strip {
  display: none;
  padding: 8px 16px;
  background: var(--surface-subtle, #f5f5f5);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-shrink: 0;
}

.recr-analysis-summary-strip--visible {
  display: block;
}

.recr-analysis-summary-strip--error {
  color: var(--status-error, #c0392b);
}

.recr-analysis-coverage-badge {
  white-space: nowrap;
  font-weight: 600;
  flex-shrink: 0;
}

.recr-analysis-coverage-badge.recr-similarity-score-high {
  color: var(--color-green-700, #166534);
}

.recr-analysis-coverage-badge.recr-similarity-score-medium {
  color: var(--color-amber-700, #92400e);
}

.recr-analysis-coverage-badge.recr-similarity-score-low {
  color: var(--status-error, #c0392b);
}

.recr-analysis-summary-text {
  flex: 1;
}



/* ── Diagnostics Panel (legacy — no longer rendered but keep for stability) ── */

.recr-similarity-diagnostics {
  flex-shrink: 0;
  border-top: 2px solid var(--border-subtle);
  background: var(--surface-subtle);
  max-height: 380px;
  overflow-y: auto;
}

.recr-similarity-diagnostics-inner {
  padding: var(--spacing-2) var(--spacing-4);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.recr-similarity-loading,
.recr-similarity-error {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-4);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.recr-similarity-error {
  color: var(--status-error);
}

.recr-similarity-headline {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  flex-wrap: wrap;
}

.recr-similarity-coverage {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
}

.recr-similarity-headline__detail {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

/* Score colour classes (reused on coverage, heatmap cells, passage scores) */
.recr-similarity-score-high {
  background: var(--status-success-bg);
  color: var(--status-success);
}

.recr-similarity-score-medium {
  background: var(--status-warning-bg);
  color: var(--status-warning);
}

.recr-similarity-score-low {
  background: var(--status-error-bg);
  color: var(--status-error);
}

.recr-similarity-explanation h4,
.recr-similarity-heatmap-section h4,
.recr-similarity-passages-section h4 {
  margin: 0 0 var(--spacing-2) 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.recr-similarity-explanation-text {
  font-size: 0.85rem;
  line-height: 1.6;
  background: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: var(--spacing-2);
}

.recr-similarity-heatmap-wrapper {
  overflow-x: auto;
}

.recr-similarity-heatmap {
  border-collapse: collapse;
  font-size: 0.78rem;
  min-width: 100%;
}

.recr-similarity-heatmap th {
  padding: 3px 7px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  border: 1px solid var(--border-subtle);
}

.recr-similarity-heatmap-row-label {
  text-align: left !important;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text-primary);
}

.recr-similarity-heatmap-cell {
  padding: 3px 7px;
  text-align: center;
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.74rem;
  cursor: default;
}

.recr-similarity-heatmap-cell--empty {
  color: var(--text-muted);
  font-weight: 400;
}

.recr-similarity-passages {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.recr-similarity-passage {
  background: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm, 4px);
  overflow: hidden;
}

.recr-similarity-passage-summary {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2);
  cursor: pointer;
  font-size: 0.82rem;
  user-select: none;
  flex-wrap: wrap;
}

.recr-similarity-passage-summary:hover {
  background: var(--surface-subtle);
}

.recr-similarity-passage-num {
  color: var(--text-muted);
  font-size: 0.74rem;
  flex-shrink: 0;
}

.recr-similarity-passage-score {
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.74rem;
  flex-shrink: 0;
}

.recr-similarity-passage-label {
  color: var(--text-secondary);
  font-size: 0.79rem;
}

.recr-similarity-passage-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-subtle);
}

.recr-similarity-passage-col {
  padding: var(--spacing-2);
  min-width: 0;
}

.recr-similarity-passage-col:first-child {
  border-right: 1px solid var(--border-subtle);
}

.recr-similarity-passage-col-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--spacing-1);
}

.recr-similarity-passage-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Project modal header: title + legend side by side ── */
.project-modal .project-modal__header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--spacing-4, 16px);
}

.project-modal .project-modal__header-top #projectModalTitle {
  margin: 0;
  flex: 1;
}

/* ============================================================= *
 *  Geo Selector Modal — recr-geo-* classes                       *
 *  Port of prototype CSS with token-mapped variables             *
 * ============================================================= */

/* ── Mode bar (segmented toggle + note) ── */
.recr-geo-modebar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 10px;
  flex-wrap: wrap;
}
.recr-geo-modebar__note {
  font-size: 12.5px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.recr-geo-modebar__note i {
  color: var(--color-primary-light);
}

/* ── Segmented control ── */
.recr-geo-seg {
  display: flex;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}
.recr-geo-seg__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface-default);
  border: none;
  border-right: 1px solid var(--border-input);
  cursor: pointer;
  transition: background 0.12s;
}
.recr-geo-seg__item:last-child {
  border-right: none;
}
.recr-geo-seg__item:hover:not(.recr-geo-seg__item--on) {
  background: var(--surface-alt);
}
.recr-geo-seg__item--on {
  background: var(--interactive-primary);
  color: var(--text-on-primary);
  font-weight: 600;
}

/* ── Search row ── */
.recr-geo-searchrow {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

/* Country picker */
.recr-geo-country {
  position: relative;
  flex-shrink: 0;
}
.recr-geo-country__btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  background: var(--surface-default);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.recr-geo-country__btn--static {
  cursor: default;
  background: var(--surface-subtle);
}
.recr-geo-country__btn--static:hover {
  border-color: var(--border-input);
}
.recr-geo-country__btn:hover {
  border-color: var(--color-primary);
}
.recr-geo-country__flag {
  font-size: 16px;
  line-height: 1;
}
.recr-geo-country__chev {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.15s;
}
.recr-geo-country__chev.is-open {
  transform: rotate(180deg);
}
.recr-geo-country__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 220px;
  background: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  box-shadow: var(--shadow-dropdown);
  padding: 6px;
}
.recr-geo-country__opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: none;
  background: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  text-align: left;
}
.recr-geo-country__opt:hover:not(.is-disabled) {
  background: var(--surface-alt);
}
.recr-geo-country__opt.is-on {
  font-weight: 600;
}
.recr-geo-country__opt.is-on .fa-check {
  margin-left: auto;
  color: var(--color-primary);
  font-size: 12px;
}
.recr-geo-country__opt.is-disabled {
  color: var(--text-disabled);
  cursor: not-allowed;
}
.recr-geo-country__name {
  flex: 1;
}

/* Search input */
.recr-geo-search {
  position: relative;
  flex: 1;
}
.recr-geo-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}
.recr-geo-search__input {
  box-sizing: border-box;
  width: 100%;
  height: 38px;
  padding: 0 38px 0 38px;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--surface-default);
}
.recr-geo-search__input::placeholder {
  color: var(--text-placeholder);
}
.recr-geo-search__input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}
.recr-geo-search__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.recr-geo-search__clear:hover {
  background: var(--surface-alt);
  color: var(--text-primary);
}

/* ── Admin1 state/region chips ── */
.recr-geo-admin1 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.recr-geo-admin1__chip {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-default);
  border: 1px solid var(--border-input);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.12s;
}
.recr-geo-admin1__chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.recr-geo-admin1__chip.is-on {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ── List pane ── */
.recr-geo-listpane {
  margin-top: 12px;
}
.recr-geo-listhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.recr-geo-listhead__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.recr-geo-listhead__hint {
  font-size: 12px;
  color: var(--text-muted);
}
.recr-geo-results {
  max-height: 286px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 -6px;
  padding: 2px 6px;
}
.recr-geo-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--surface-default);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.12s, border-color 0.12s;
}
.recr-geo-result:hover {
  background: var(--surface-subtle);
}
.recr-geo-result.is-on {
  border-color: var(--color-primary);
  background: var(--surface-subtle);
}
.recr-geo-result__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.recr-geo-result__icon--metro {
  background: var(--primary-color-subtle);
  color: var(--color-primary);
}
.recr-geo-result__icon--regional_city {
  background: var(--status-info-bg);
  color: var(--color-primary-light);
}
.recr-geo-result__icon--town {
  background: var(--surface-background);
  color: var(--text-secondary);
}
.recr-geo-result__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.recr-geo-result__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.recr-geo-result__parent {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13px;
}
.recr-geo-result__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.recr-geo-tier {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
}
.recr-geo-tier--metro {
  background: var(--primary-color-subtle);
  color: var(--color-primary);
}
.recr-geo-tier--regional_city {
  background: var(--status-info-bg);
  color: var(--color-primary-light);
}
.recr-geo-tier--town {
  background: var(--surface-background);
  color: var(--text-secondary);
}
.recr-geo-result__state {
  color: var(--text-muted);
}
.recr-geo-result__pop {
  color: var(--text-muted);
}
.recr-geo-result__action {
  flex-shrink: 0;
}
.recr-geo-result__select {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-primary-light);
  opacity: 0;
  transition: opacity 0.12s;
}
.recr-geo-result:hover .recr-geo-result__select {
  opacity: 1;
}
.recr-geo-result.is-on .recr-geo-result__action .fa-circle-check {
  color: var(--color-primary);
  font-size: 18px;
}

/* Loading / empty states */
.recr-geo-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 12px;
  color: var(--text-muted);
  font-size: 14px;
}
.recr-geo-loading i {
  color: var(--color-primary-light);
}
.recr-geo-empty {
  text-align: center;
  padding: 28px 24px;
}
.recr-geo-empty > i {
  font-size: 26px;
  color: var(--color-gray-300);
  margin-bottom: 12px;
}
.recr-geo-empty p {
  margin: 0;
  font-size: 14px;
  color: var(--text-primary);
}
.recr-geo-empty__sub {
  margin-top: 6px !important;
  color: var(--text-secondary) !important;
  font-size: 13px !important;
}

/* ── Map pane ── */
.recr-geo-mappane {
  margin-top: 12px;
  position: relative;
}
.recr-geo-mapresults {
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  z-index: 15;
  background: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  box-shadow: var(--shadow-dropdown);
  padding: 6px;
  transform: translateY(-100%);
}
.recr-geo-mapresult {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: none;
  background: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  text-align: left;
}
.recr-geo-mapresult:hover,
.recr-geo-mapresult.is-on {
  background: var(--surface-alt);
}
.recr-geo-mapresult > i {
  color: var(--color-primary-light);
  width: 16px;
  text-align: center;
}
.recr-geo-mapresult > span:nth-child(2) {
  flex: 1;
  font-weight: 500;
}
.recr-geo-mapresult__tier {
  font-size: 11px;
  color: var(--text-muted);
}
.recr-geo-mapresults__empty {
  padding: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Map grid stand-in */
.recr-geo-map {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: #eef1f3;
  background-image:
    linear-gradient(rgba(14,48,72,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,48,72,0.07) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px;
  user-select: none;
  transition: background-position 0.5s cubic-bezier(.22,.61,.36,1);
}
.recr-geo-map__tick {
  position: absolute;
  font-family: monospace;
  font-size: 9.5px;
  color: rgba(14,48,72,0.4);
  pointer-events: none;
}
.recr-geo-map__tick--lon {
  top: 4px;
}
.recr-geo-map__tick--lat {
  left: 5px;
}
.recr-geo-map__radius {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid;
  border-radius: 50%;
  pointer-events: none;
  transition: width 0.18s ease, height 0.18s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.recr-geo-map__radius-edge {
  transform: translateY(-50%);
  background: var(--surface-default);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border: 1px solid;
  border-radius: 999px;
  white-space: nowrap;
}
.recr-geo-map__marker {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  font-size: 28px;
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.3));
}
.recr-geo-map__pulse {
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0.25;
  animation: recr-geopulse 2.2s ease-out infinite;
}
@keyframes recr-geopulse {
  0% { transform: translateX(-50%) scale(0.6); opacity: 0.4; }
  100% { transform: translateX(-50%) scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .recr-geo-map__pulse { animation: none; }
}
.recr-geo-map__center-chip {
  position: absolute;
  left: 50%;
  top: calc(50% + 14px);
  transform: translateX(-50%);
  background: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  padding: 6px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  white-space: nowrap;
  pointer-events: none;
}
.recr-geo-map__center-chip strong {
  font-size: 13px;
  color: var(--text-primary);
}
.recr-geo-map__coords {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: monospace;
}
.recr-geo-map__standin {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(2px);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 12px;
}
.recr-geo-map__standin i {
  color: var(--color-primary-light);
}
.recr-geo-map__scalebar {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  pointer-events: none;
}
.recr-geo-map__scalebar-line {
  height: 4px;
  border: 1px solid rgba(14,48,72,0.55);
  border-top: none;
  background: rgba(255,255,255,0.5);
}
.recr-geo-map__scalebar-label {
  font-size: 10px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.75);
  padding: 0 4px;
  border-radius: 2px;
}
.recr-geo-map__hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.recr-geo-map__hint i {
  color: var(--color-primary);
}

/* ── Distance slider ── */
.recr-geo-slider {
  margin-top: 12px;
}
.recr-geo-slider__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 7px;
}
.recr-geo-slider__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.recr-geo-slider__value {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
}
.recr-geo-slider input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--color-primary) var(--fill), var(--surface-background) var(--fill));
  cursor: pointer;
}
.recr-geo-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-default);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.recr-geo-slider input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-default);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.recr-geo-slider__scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.recr-geo-slider__cap-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.recr-geo-slider__cap-note i {
  font-size: 12px;
  color: var(--status-info, #3b82f6);
}

/* ── Footer with selection summary ── */
.recr-geo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.recr-geo-selsummary {
  flex: 1;
  min-width: 160px;
}
.recr-geo-selsummary__empty {
  font-size: 13px;
  color: var(--text-muted);
}
.recr-geo-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface-subtle);
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  padding: 7px 8px 7px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.recr-geo-chip > i {
  color: var(--color-primary);
  font-size: 13px;
}
.recr-geo-chip__radius {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary-light);
  background: var(--status-info-bg);
  border-radius: 999px;
  padding: 2px 9px;
}
.recr-geo-chip__x {
  width: 22px;
  height: 22px;
  border: none;
  background: none;
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.recr-geo-chip__x:hover {
  background: var(--color-primary);
  color: #fff;
}
.recr-geo-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

/* ── Geo modal chrome overrides ── */
.recr-geo-modal {
  width: min(600px, 90vw);
  max-width: 600px;
  padding: 1.25rem 1.5rem 1.25rem;
}
.recr-geo-modal--map {
  max-width: 780px;
}

/* ── Re-centre control button (MapLibre custom control) ── */
.recr-geo-recentre-btn {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  background: var(--surface-default);
  border: none;
  color: var(--text-primary);
}
.recr-geo-recentre-btn:hover {
  background: var(--surface-hover, #f0f0f0);
}

/* ── Map location label marker ── */
.recr-geo-map-label {
  background: var(--surface-default);
  color: var(--text-primary);
  font: 600 12px/1.2 var(--font-family-base);
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  white-space: nowrap;
  pointer-events: none;
}

/* ── Info banner (map mode) ── */
.recr-geo-banner {
  margin-top: 10px;
}
.recr-geo-banner .ibanner__icon {
  background: var(--color-primary);
}

/* ── Email Settings Redesign — Card / Table / Add-Form / Tester ── */

/* Card container */
.recr-card { background: var(--surface-default); border: 1px solid var(--border-subtle); border-radius: var(--radius-md, 6px); padding: 20px; margin-bottom: 16px; }
.recr-card__head { margin-bottom: 14px; }
.recr-card__title { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.recr-card__desc { font-size: 0.85rem; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.recr-count-chip { font-size: 11px; font-weight: 600; color: var(--text-secondary); background: var(--surface-subtle); padding: 2px 8px; border-radius: 99px; }

/* List toolbar (search + meta + buttons) */
.recr-list-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.recr-list-toolbar .recr-list-meta { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

/* Search input */
.recr-search { position: relative; display: inline-flex; align-items: center; flex: 1; min-width: 0; }
.recr-search i { position: absolute; left: 10px; color: var(--text-muted); font-size: 13px; pointer-events: none; }
.recr-search__input { width: 100%; height: 32px; padding: 0 10px 0 30px; border: 1px solid var(--border-input); border-radius: var(--radius-md, 4px); font-size: 0.85rem; color: var(--text-primary); background: var(--surface-default); }
.recr-search__input:focus { outline: none; border-color: var(--border-focus); }

/* Listbox (bordered table container with scroll) */
.recr-listbox { border: 1px solid var(--border-subtle); border-radius: var(--radius-md, 4px); overflow: hidden; }
.recr-scroller { max-height: 320px; overflow-y: auto; }

/* Dense data table */
.recr-data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.recr-data-table thead th { position: sticky; top: 0; z-index: 1; text-align: left; padding: 8px 12px; background: var(--surface-alt); color: var(--text-secondary); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.recr-data-table td { padding: 7px 12px; border-bottom: 1px solid var(--surface-subtle); color: var(--text-primary); vertical-align: middle; }
.recr-data-table tbody tr:last-child td { border-bottom: none; }
.recr-data-table tbody tr:hover td { background: var(--color-primary-transparent-5); }
.recr-data-table .recr-cell-mono { font-family: var(--font-family-mono, monospace); font-size: 0.8rem; }
.recr-data-table .recr-cell-email { color: var(--text-secondary); }
.recr-data-table .recr-cell-pattern code { font-family: var(--font-family-mono, monospace); font-size: 0.78rem; background: var(--surface-subtle); border: 1px solid var(--border-subtle); border-radius: 3px; padding: 1px 5px; white-space: nowrap; }

/* Row actions */
.recr-row-actions { display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
.recr-iconbtn { width: 28px; height: 28px; border: none; background: none; border-radius: var(--radius-md, 4px); color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.recr-iconbtn:hover { background: var(--color-primary-transparent-10); color: var(--text-primary); }
.recr-iconbtn--danger:hover { background: var(--status-error-bg); color: var(--status-error); }

/* Toggle */
.recr-toggle { width: 36px; height: 20px; border-radius: 999px; background: var(--color-gray-300, #ccc); position: relative; cursor: pointer; border: none; padding: 0; display: inline-block; }
.recr-toggle::after { content: ""; position: absolute; width: 16px; height: 16px; background: white; border-radius: 50%; top: 2px; left: 2px; transition: left 0.15s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.recr-toggle--on { background: var(--color-primary); }
.recr-toggle--on::after { left: 18px; }

/* Disabled row */
.recr-row--disabled td { opacity: 0.55; }
.recr-row--disabled td.recr-toggle-cell,
.recr-row--disabled td.recr-act-cell { opacity: 1; }

/* Inline add form */
.recr-addform { border: 1px solid var(--status-info-bg); background: var(--color-primary-transparent-5); border-radius: var(--radius-md, 4px); padding: 14px; margin-top: 10px; }
.recr-addform.is-hidden { display: none; }
.recr-addform__title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.recr-addform__row2 { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.recr-addform__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* Form fields inside add form */
.recr-field { display: flex; flex-direction: column; gap: 4px; }
.recr-field__label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.recr-field__input { height: 34px; padding: 0 10px; border: 1px solid var(--border-input); border-radius: var(--radius-md, 4px); font-size: 0.85rem; color: var(--text-primary); background: var(--surface-default); }
.recr-field__input:focus { outline: none; border-color: var(--border-focus); }
.recr-field__input--mono { font-family: var(--font-family-mono, monospace); }
.recr-field__input.is-error { border-color: var(--status-error); }
.recr-field__error { font-size: 0.75rem; color: var(--status-error); display: inline-flex; align-items: center; gap: 4px; }

/* Regex tester */
.recr-tester { margin-top: 10px; }
.recr-tester__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.recr-tester__label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; }
.recr-tester__verdict { font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; }
.recr-tester__verdict--match { background: var(--status-error-bg); color: var(--status-error); }
.recr-tester__verdict--nomatch { background: var(--status-success-bg); color: var(--status-success); }
.recr-tester__verdict--idle { background: var(--surface-subtle); color: var(--text-muted); }
.recr-tester__area { width: 100%; min-height: 56px; resize: vertical; border: 1px solid var(--border-input); border-radius: var(--radius-md, 4px); padding: 8px 10px; font: 400 0.8rem/1.5 var(--font-family-mono, monospace); color: var(--text-primary); background: var(--surface-default); box-sizing: border-box; }
.recr-tester__area:focus { outline: none; border-color: var(--border-focus); }
.recr-tester mark { background: var(--status-error-bg); color: var(--status-error); border-radius: 2px; padding: 0 1px; font-weight: 600; }
.recr-tester__preview { margin-top: 6px; font: 400 0.8rem/1.5 var(--font-family-mono, monospace); background: var(--surface-default); border: 1px solid var(--border-subtle); border-radius: var(--radius-md, 4px); padding: 8px 10px; color: var(--text-secondary); white-space: pre-wrap; word-break: break-word; display: none; box-sizing: border-box; }
.recr-tester__preview.is-shown { display: block; }

/* Sample pills */
.recr-tester__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.recr-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border-subtle); background: var(--surface-default); font-size: 0.75rem; color: var(--text-secondary); cursor: pointer; transition: all 0.12s ease; }
.recr-pill:hover { border-color: var(--border-input); color: var(--text-primary); }
.recr-pill--active { background: var(--color-primary-transparent-10); border-color: var(--color-primary); color: var(--color-primary); font-weight: 600; }

/* Pattern example links */
.recr-field__examples { font-weight: 400; font-size: 0.75rem; color: var(--text-muted); margin-left: 6px; }
.recr-field__examples a { color: var(--color-primary); text-decoration: none; cursor: pointer; }
.recr-field__examples a:hover { text-decoration: underline; }

/* Empty state */
.recr-empty { text-align: center; padding: 28px 16px; color: var(--text-muted); }
.recr-empty i { font-size: 22px; color: var(--text-disabled); margin-bottom: 8px; display: block; }
.recr-empty p { margin: 0 0 4px; font-size: 0.85rem; }

/* Save bar */
.recr-savebar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.recr-savebar__dirty { font-size: 0.85rem; color: var(--status-warning); display: inline-flex; align-items: center; gap: 7px; }
.recr-savebar__actions { display: flex; gap: 10px; }

/* ── Responsive ── */
@media (max-width: 620px) {
  .recr-geo-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .recr-geo-actions {
    justify-content: flex-end;
  }
  .recr-addform__row2 {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   CV–Job Brief Comparison Modal — Right pane tab system + Information tab
   ═══════════════════════════════════════════════════════════════════ */

/* ── Right pane tab bar (mirrors left side) ── */

.recr-comparison-right-tabs-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-4);
  background: var(--surface-default);
  height: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

/* ATS link slot — right-align within the tab bar */
[data-ref="ats-link-slot"] {
  width: 100%;
  text-align: right;
}

/* ATS link in the right tab bar */
.recr-comparison-ats-link {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.recr-comparison-ats-link:hover {
  color: var(--interactive-primary);
  text-decoration: underline;
}
.recr-comparison-ats-link i {
  font-size: 10px;
}

/* Right pane tab panels */
.recr-comparison-right-tab-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.recr-comparison-right-tab-panel {
  display: none;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.recr-comparison-right-tab-panel--active {
  display: flex;
}

/* ── Information tab — scrollable wrapper ── */

.recr-info-tab-content {
  overflow-y: auto;
  padding: 0;
}

/* ── Information tab — Header card ── */

.recr-info-header {
  display: flex;
  flex-direction: column;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.recr-info-header__top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.recr-info-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--interactive-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.recr-info-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.recr-info-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.recr-info-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 7px;
}

.recr-info-location i {
  font-size: 11px;
  color: var(--interactive-secondary);
}

.recr-info-occupation-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #f1f8fb;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--interactive-primary);
}

.recr-info-occupation-pill i {
  font-size: 10px;
  color: var(--interactive-secondary);
}

/* Badge row */
.recr-info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.recr-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.recr-info-badge--success {
  background: rgba(40, 167, 69, 0.15);
  color: #1e7e34;
}
.recr-info-badge--warning {
  background: rgba(172, 130, 0, 0.12);
  color: #8a6a00;
}
.recr-info-badge--error {
  background: rgba(220, 53, 69, 0.10);
  color: #c12f3d;
}
.recr-info-badge--info {
  background: rgba(19, 92, 121, 0.10);
  color: #135c79;
}
.recr-info-badge--neutral {
  background: #e9ecef;
  color: var(--text-secondary);
}

.recr-info-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.recr-info-badge--success .recr-info-badge__dot { background: #28a745; }
.recr-info-badge--warning .recr-info-badge__dot { background: #ac8200; }
.recr-info-badge--error .recr-info-badge__dot { background: #dc3545; }
.recr-info-badge--info .recr-info-badge__dot { background: #135c79; }
.recr-info-badge--neutral .recr-info-badge__dot { background: #999; }

/* Contact row */
.recr-info-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
  font-size: 12px;
  color: var(--text-muted, #6c757d);
}

.recr-info-contact-row i {
  color: var(--text-tertiary, #adb5bd);
}

.recr-info-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.recr-info-contact-item--id {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

/* ── Information tab — Accordion sections ── */

.recr-info-sections {
  padding: 0 26px 10px;
}

.recr-info-section {
  border-top: 1px solid var(--border-subtle);
}

.recr-info-section__toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
  font-family: inherit;
}

.recr-info-section__toggle:hover {
  opacity: 0.85;
}

.recr-info-section__icon {
  font-size: 13px;
  color: var(--interactive-secondary);
  width: 16px;
  text-align: center;
}

.recr-info-section__title {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}

.recr-info-section__chevron {
  font-size: 11px;
  color: var(--text-muted, #6c757d);
}

.recr-info-section__body {
  display: none;
  padding: 0 0 16px;
}

.recr-info-section--open .recr-info-section__body {
  display: block;
}

/* ── Information tab — Field grid ── */

.recr-info-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.recr-info-field-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid #e9ecef;
  min-width: 0;
}

.recr-info-field-label {
  width: 130px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted, #6c757d);
}

.recr-info-field-value {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.recr-info-field-value--muted {
  color: var(--text-muted, #6c757d);
  font-weight: 400;
}

/* Download link inside field row */
.recr-info-download-link {
  color: var(--interactive-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: inherit;
}
.recr-info-download-link:hover {
  text-decoration: underline;
}
.recr-info-download-link i {
  font-size: 11px;
}

/* Pill inside field row */
.recr-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.recr-info-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.recr-info-pill--success { background: rgba(40,167,69,0.15); color: #1e7e34; }
.recr-info-pill--success .recr-info-pill__dot { background: #28a745; }
.recr-info-pill--warning { background: rgba(172,130,0,0.12); color: #8a6a00; }
.recr-info-pill--warning .recr-info-pill__dot { background: #ac8200; }
.recr-info-pill--error   { background: rgba(220,53,69,0.10); color: #c12f3d; }
.recr-info-pill--error .recr-info-pill__dot   { background: #dc3545; }
.recr-info-pill--info    { background: rgba(19,92,121,0.10); color: #135c79; }
.recr-info-pill--info .recr-info-pill__dot    { background: #135c79; }
.recr-info-pill--neutral { background: #e9ecef; color: #666; }
.recr-info-pill--neutral .recr-info-pill__dot { background: #999; }

/* ── Information tab — Chips ── */

.recr-info-chip-group {
  margin-bottom: 14px;
}

.recr-info-chip-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #6c757d);
  font-weight: 600;
  margin-bottom: 7px;
}

.recr-info-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recr-info-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: #f1f8fb;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 4px);
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.45;
}

.recr-info-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--interactive-secondary);
  flex-shrink: 0;
}

.recr-info-empty-text {
  font-size: 13px;
  color: var(--text-tertiary, #adb5bd);
  font-style: italic;
}

/* ── Information tab — Notes block ── */

.recr-info-notes-empty {
  font-size: 13px;
  color: var(--text-tertiary, #adb5bd);
  font-style: italic;
}

.recr-info-notes-block {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
  background: var(--surface-subtle, #f9f9f9);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px 14px;
}