/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --ok: #15803d;
  --error: #b91c1c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.5;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

main.page-wide {
  max-width: 44rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 6%);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

button,
a.btn-primary,
a.btn-secondary {
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg);
}

.status {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.status-label {
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.status-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.status-ok {
  color: var(--ok);
  font-weight: 600;
}

.status-error {
  color: var(--error);
  font-weight: 600;
}

.status-partial {
  color: #d97706;
  font-weight: 600;
}

.status-muted {
  color: var(--muted);
  font-weight: 600;
}

/* Connector status list (home page / IntegrationStatus component) */
.connector-status-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.connector-status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.connector-name {
  font-weight: 500;
}

/* Sources fieldset in profile form */
.sources-fieldset {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.sources-fieldset legend {
  padding: 0 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.source-group {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.source-group-label {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.source-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.source-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.source-name {
  font-weight: 500;
}

.source-badge {
  font-size: 0.78rem;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-weight: 500;
}

.source-badge-ok {
  background: #dcfce7;
  color: #166534;
}

.source-badge-partial {
  background: #fef9c3;
  color: #854d0e;
}

.source-badge-error {
  background: #fee2e2;
  color: #991b1b;
}

.field-hint-error {
  font-size: 0.85rem;
  color: var(--error);
  margin-top: 0.4rem;
}

/* Base hint — slightly more prominent than muted text */
.field-hint {
  font-size: 0.82rem;
  color: #4b5563;
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
  border-radius: 0 4px 4px 0;
  padding: 0.4rem 0.65rem;
  margin-top: 0.35rem;
  margin-bottom: 0.6rem;
  line-height: 1.45;
}

/* Warning variant — amber */
.field-hint.field-hint-warn {
  color: #78350f;
  background: #fffbeb;
  border-left-color: #f59e0b;
}

/* Info variant — blue, for feature-level notes */
.field-hint.field-hint-info {
  color: #1e3a5f;
  background: #eff6ff;
  border-left-color: #3b82f6;
}

/* Adzuna countries grid — 2 columns on wider screens */
.adzuna-countries-fieldset {
  margin-top: 0.5rem;
}

.adzuna-countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: 0.15rem 1rem;
  gap: 0.15rem 1rem;
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.upload-form input[type="file"] {
  flex: 1 1 12rem;
  font-size: 0.9rem;
}

.file-hint {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.message-error {
  margin-top: 1rem;
  color: var(--error);
  font-size: 0.9rem;
}

.message-success,
.message-ok {
  margin-top: 1rem;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.message-warning {
  margin-top: 1rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.message-pending {
  margin-top: 1rem;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.spinner {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  vertical-align: middle;
  margin-right: 0.4em;
  flex-shrink: 0;
}

.fetch-progress-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #1e40af;
  line-height: 1.5;
}

.fetch-progress-label {
  font-weight: 500;
  white-space: nowrap;
}

.fetch-progress-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  color: #374151;
  font-size: 0.85rem;
}

.fetch-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}

.fetch-source-chip--running {
  background: #dbeafe;
  color: #1d4ed8;
}

.fetch-source-chip--completed {
  background: #dcfce7;
  color: #166534;
}

.fetch-source-chip--partial {
  background: #fef3c7;
  color: #92400e;
}

.fetch-source-chip--failed {
  background: #fee2e2;
  color: #991b1b;
}

.fetch-source-chip--pending {
  background: #f3f4f6;
  color: #6b7280;
}

.section-divider {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.chip-button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.chip-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip-button.chip-button-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.checkbox-field input {
  width: auto;
}

.schedule-form {
  margin-top: 0.5rem;
}


.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.field span {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  padding: 0.55rem 0.65rem;
  background: var(--surface);
  color: var(--text);
}

.field textarea {
  resize: vertical;
  min-height: 3rem;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.field-row .field {
  flex: 1 1 10rem;
}

.field-narrow {
  flex: 0 1 6rem;
}

.profile-list {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.profile-list h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.profile-list ul {
  list-style: none;
}

.profile-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.row-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
}

.btn-small {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.suggest-row {
  margin-top: -0.25rem;
}

.suggestion-hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -0.25rem;
}

.filters-row {
  margin-top: 0;
}

/* Compact always-visible filter bar — same feel as pagination bar */
.compact-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.4rem 0.75rem;
  margin-top: 1rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.compact-filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.compact-filter-item span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.compact-filter-item select,
.compact-filter-item input {
  font-size: 0.8rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  min-width: 7rem;
  max-width: 12rem;
}

.compact-filter-wide select {
  min-width: 10rem;
  max-width: 16rem;
}

.compact-filter-location input {
  min-width: 9rem;
  max-width: 14rem;
}

.job-link {
  color: var(--primary);
  display: inline-block;
  font-size: 0.9rem;
  margin-top: 0.35rem;
  text-decoration: none;
}

.job-link:hover {
  text-decoration: underline;
}

.profile-list li:last-child {
  border-bottom: none;
}

.profile-title {
  display: block;
  font-weight: 600;
}

.profile-meta {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.resume-list {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.resume-list h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.resume-list ul {
  list-style: none;
}

.resume-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.resume-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.btn-danger {
  background: var(--surface);
  border: 1px solid var(--error);
  border-radius: 8px;
  color: var(--error);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
}

.btn-danger:hover:not(:disabled) {
  background: #fef2f2;
}

.btn-danger:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.resume-list li:last-child {
  border-bottom: none;
}

.resume-name {
  display: block;
  font-weight: 500;
}

.resume-meta {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.badge {
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  text-transform: lowercase;
}

.badge-source-hh {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-source-trudvsem {
  background: #dcfce7;
  color: #166534;
}

.badge-source-superjob {
  background: #fce7f3;
  color: #9d174d;
}

.badge-source-adzuna {
  background: #e0e7ff;
  color: #3730a3;
}

.badge-source-workingnomads {
  background: #ccfbf1;
  color: #115e59;
}

.badge-source-hiringcafe {
  background: #fef3c7;
  color: #b45309;
}

.badge-source-linkedin_extension {
  background: #dbeafe;
  color: #1e3a8a;
}

.badge-source-telegram {
  background: #e0f2fe;
  color: #0284c7;
}

.badge-channel {
  background: #f1f5f9;
  color: #475569;
  font-family: monospace;
  font-size: 0.78rem;
}

/* ── LinkedIn search button (outlined) ──────────────────────────────────── */
.btn-linkedin-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  color: #0a66c2;
  border: 1.5px solid #0a66c2;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s;
}
.btn-linkedin-outline:hover:not(:disabled) {
  background: #eff6ff;
  color: #004182;
  border-color: #004182;
}
.btn-linkedin-outline:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-linkedin-outline.btn-small {
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
}

/* LinkedIn search status (shown below the buttons row) */
.linkedin-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  margin-top: 0.3rem;
}
.linkedin-status-pending { background: #fef3c7; color: #92400e; }
.linkedin-status-running { background: #dbeafe; color: #1e3a8a; }
.linkedin-status-done    { background: #dcfce7; color: #166534; }
.linkedin-status-error   { background: #fee2e2; color: #991b1b; flex-wrap: wrap; }

.badge-source-mock,
.badge-mock {
  background: #fef3c7;
  color: #92400e;
}

.badge-status-new {
  background: #dcfce7;
  color: #166534;
}

.badge-status-viewed {
  background: #e2e8f0;
  color: #475569;
}

.badge-status-saved {
  background: #ede9fe;
  color: #5b21b6;
}

.badge-status-hidden {
  background: #fee2e2;
  color: #991b1b;
}

.badge-run-new {
  background: #bbf7d0;
  color: #14532d;
  font-weight: 600;
}

.badge-run-known {
  background: #f1f5f9;
  color: #64748b;
}

.badge-pref-lang {
  background: #e0e7ff;
  color: #3730a3;
  font-weight: 600;
}

.ai-pref-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.compact-filter-check {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.compact-filter-check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

.badge-relevance-strong {
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
}

.badge-relevance-possible {
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
}

.badge-relevance-weak {
  background: #f1f5f9;
  color: #64748b;
}

.badge-relevance-none {
  background: #e2e8f0;
  color: #475569;
}

.badge-ai-strong,
.badge-ai-possible,
.badge-ai-weak,
.badge-ai-none {
  border: 1px solid #a855f7;
}

.badge-ai-strong {
  background: #f3e8ff;
  color: #6b21a8;
  font-weight: 600;
}

.badge-ai-possible {
  background: #f3e8ff;
  color: #7e22ce;
  font-weight: 600;
}

.badge-ai-weak {
  background: #faf5ff;
  color: #86198f;
}

.badge-ai-none {
  background: #faf5ff;
  color: #86198f;
}

.match-reasons {
  color: var(--ok);
}

.risk-reasons {
  color: var(--error);
}

.missing-skills-meta {
  color: var(--muted);
}

.help-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.compact-profiles-panel {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.compact-profiles-panel h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.compact-profiles-list {
  list-style: none;
}

.compact-profiles-list li {
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
}

.compact-profiles-list li:last-child {
  border-bottom: none;
}

.compact-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.jobs-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.job-list-item {
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.job-list-item-header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.job-list-item-main {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.job-list-select {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0.35rem 0 0.5rem;
}

.bulk-select-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  font-size: 0.85rem;
  color: var(--text);
}

.bulk-select-item input {
  margin: 0;
  cursor: pointer;
}

.job-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.job-meta-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.job-open-btn {
  font-size: 0.78rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.job-actions-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.1rem;
  font-size: 0.8rem;
}

.job-actions-inline .btn-link {
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--muted);
}

.job-actions-inline .btn-link:hover:not(:disabled) {
  color: var(--text);
  text-decoration: underline;
}

.job-actions-inline .btn-link-danger {
  color: #dc2626;
}

.job-actions-inline .btn-link-danger:hover:not(:disabled) {
  color: #991b1b;
}

.job-actions-inline .btn-link:disabled {
  opacity: 0.35;
  cursor: default;
}

.job-action-sep {
  color: var(--border);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  font-size: 0.8rem;
}

.score-breakdown {
  margin: 0.25rem 0;
}

.score-breakdown summary {
  cursor: pointer;
  list-style: none;
}

.score-breakdown summary::-webkit-details-marker {
  display: none;
}

.score-breakdown-list {
  font-size: 0.85rem;
  color: var(--muted);
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.score-breakdown-list li {
  padding: 0.1rem 0;
}

.run-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
}

.run-summary h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.fetch-runs-list {
  list-style: none;
  margin-top: 0.5rem;
}

.fetch-runs-list li {
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  padding: 0.45rem 0;
}

.fetch-runs-list li:last-child {
  border-bottom: none;
}

/* Batch rows in fetch history */
.fetch-batch-row {
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0;
}

.fetch-batch-row:last-child {
  border-bottom: none;
}

.fetch-batch-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
}

.fetch-batch-summary > span {
  color: var(--text-muted, #6b7280);
}

.fetch-batch-summary > a,
.fetch-batch-summary > button {
  white-space: nowrap;
}

.fetch-batch-details {
  margin-top: 0.35rem;
  margin-left: 1rem;
  border-left: 2px solid var(--border);
  padding-left: 0.75rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent, #2563eb);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-link-danger {
  color: #dc2626;
}

.btn-link-danger:hover:not(:disabled) {
  color: #991b1b;
}

.btn-link:disabled,
.btn-link-danger:disabled {
  opacity: 0.45;
  cursor: default;
}

.dashboard-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.dashboard-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.page-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.job-title-link {
  color: var(--text);
  text-decoration: none;
}

.job-title-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.profile-row-stacked {
  flex-direction: column;
  align-items: stretch;
}

.profile-row-stacked .row-actions {
  flex-wrap: wrap;
}

.back-link {
  display: inline-block;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.detail-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.detail-section h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.detail-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text);
  margin-top: 0.5rem;
}

.detail-subsection {
  margin-top: 1.25rem;
}

.detail-subsection-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.score-display {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.score-number {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.score-number-strong {
  color: var(--ok);
}

.score-number-possible {
  color: #b45309;
}

.score-number-weak {
  color: var(--muted);
}

.breakdown-rows {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.breakdown-row {
  display: flex;
  gap: 0.75rem;
}

.breakdown-label {
  color: var(--muted);
  min-width: 9rem;
}

.breakdown-value {
  font-weight: 500;
}

.breakdown-penalty {
  color: var(--error);
}

.reason-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  margin-top: 0.4rem;
}

.reason-ok {
  color: var(--ok);
}

.reason-risk {
  color: var(--error);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.chip {
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.chip-matched {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #15803d;
}

.chip-missing {
  background: var(--bg);
  border-color: var(--border);
  color: var(--muted);
}

.chip-skill {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0369a1;
}

.chip-vacancy-gap {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.ai-placeholder {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.known-jobs-divider {
  display: block;
  width: 100%;
  margin: 2rem 0 0;
  padding: 0.9rem 1.25rem;
  background: #eef2f7;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #475569;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.known-jobs-divider:hover {
  background: #dde4ee;
  border-color: #94a3b8;
}

.known-section-heading {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-label-hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── Pagination toolbar ───────────────────────────────────────── */

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.pagination-bar--top {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.pagination-bar-info {
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
}

.pagination-bar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.pagination-page-size {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.pagination-page-size select {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
}

.btn-secondary {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-secondary:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: default;
}

.btn-page {
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
}

/* ── Navigation bar ──────────────────────────────────────────────────────── */

.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link-admin {
  color: #6d28d9;
  font-weight: 500;
}

.nav-link-admin:hover {
  color: #4c1d95;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-locale {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.nav-locale-select {
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-email {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Auth pages ──────────────────────────────────────────────────────────── */

main.page-narrow {
  max-width: 26rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.auth-form .btn-primary {
  align-self: flex-start;
}

.auth-switch {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.auth-switch a {
  color: var(--primary);
  text-decoration: none;
}

.auth-cta {
  margin: 1rem 0;
}

.auth-cta .tagline {
  margin-bottom: 1rem;
}

/* ── Admin pages ─────────────────────────────────────────── */

.admin-wide {
  max-width: 72rem;
}

.admin-section {
  margin-bottom: 2.5rem;
}

.admin-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.85rem;
}

/* Overview metric cards */
.stat-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  min-width: 9rem;
  flex: 1 1 9rem;
}

.stat-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.stat-card-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.stat-card-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Activity filters */
.admin-activity-filters {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.filter-select,
.filter-input {
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

.filter-select {
  min-width: 14rem;
}

.filter-input {
  min-width: 18rem;
}

/* Event type badges in activity log */
.event-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: monospace;
  background: #f1f5f9;
  color: var(--text);
  white-space: nowrap;
}

.event-user   { background: #ede9fe; color: #5b21b6; }
.event-fetch  { background: #dbeafe; color: #1e40af; }
.event-job    { background: #dcfce7; color: #166534; }
.event-admin  { background: #fef3c7; color: #92400e; }

/* Activity log table */
.admin-activity-table .activity-col-time {
  white-space: nowrap;
  font-size: 0.82rem;
}

.admin-activity-table .activity-col-user {
  font-size: 0.82rem;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-activity-table .activity-col-entity {
  font-size: 0.82rem;
}

.admin-activity-table .activity-col-actions {
  width: 5rem;
  text-align: right;
  white-space: nowrap;
}

.activity-row-expanded td {
  border-bottom: none;
}

.activity-details-row td {
  padding: 0 0.75rem 0.75rem;
  background: #f8fafc;
  border-top: none;
}

.activity-metadata {
  margin: 0;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  grid-gap: 0.5rem;
  gap: 0.5rem;
}

.activity-metadata-item {
  display: grid;
  grid-template-columns: 10rem 1fr;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  align-items: start;
}

.activity-metadata-item dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  font-family: monospace;
}

.activity-metadata-item dd {
  margin: 0;
  font-size: 0.78rem;
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

/* Pagination bar (reused from jobs page style) */
.pagination-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  padding: 1rem 0 0;
}

.admin-cleanup-note {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.page-header h1 {
  margin: 0;
}

.admin-users-table-wrap {
  overflow-x: auto;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-users-table th,
.admin-users-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.admin-users-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface);
}

.admin-users-table tbody tr:hover {
  background: #f8fafc;
}

.admin-row-self {
  background: #f0fdf4;
}

.admin-self-badge {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 0.3rem;
}

.admin-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

/* Status badges */
.badge-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-status-active {
  background: #dcfce7;
  color: #166534;
}

.badge-status-pending {
  background: #dbeafe;
  color: #1e40af;
}

.badge-status-blocked {
  background: #fee2e2;
  color: #991b1b;
}

/* Role badges */
.badge-role {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: #f1f5f9;
  color: var(--muted);
  text-transform: capitalize;
}

.badge-role-admin {
  background: #ede9fe;
  color: #5b21b6;
}

/* LinkedIn Extension settings page */
.extension-risk-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #78350f;
}

.extension-risk-list {
  margin: 0.5rem 0 0 1.25rem;
}

.extension-risk-list li {
  margin-bottom: 0.25rem;
}

.extension-steps {
  margin: 0.25rem 0 0 1.25rem;
  line-height: 1.8;
  font-size: 0.9rem;
}

.extension-token-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.extension-token-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.extension-token-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  word-break: break-all;
  flex: 1 1;
}

/* Applications tracker */
.applications-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.application-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.application-row:last-child {
  border-bottom: none;
}
.application-row-main {
  flex: 1 1 16rem;
  min-width: 0;
}
.application-row-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.2rem;
}
.application-row-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}
.application-row-title:hover {
  text-decoration: underline;
}
.application-row-meta {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
}
.application-row .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-shrink: 0;
}

.badge-app-stage {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #334155;
  white-space: nowrap;
}
.badge-app-stage-applied,
.badge-app-stage-awaiting_response { background: #e0f2fe; color: #075985; }
.badge-app-stage-responded { background: #fef3c7; color: #92400e; }
.badge-app-stage-interview { background: #ede9fe; color: #5b21b6; }
.badge-app-stage-offer,
.badge-app-stage-hired { background: #dcfce7; color: #166534; }
.badge-app-stage-rejected,
.badge-app-stage-withdrawn { background: #fee2e2; color: #991b1b; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem;
  z-index: 200;
  overflow-y: auto;
}
.modal-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  width: min(32rem, 100%);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

