:root {
  --blue: #50A2FF; /* deliberate: public pages run the lighter primary (styles.css uses #3b82f6) */
  /* --blue-dark removed: it held the NAVY (#020C45) here while styles.css's
     --blue-dark is an actual darker blue (#1d4ed8) — a same-name-different-
     concept hazard. It was never referenced; --navy below is the named navy. */
  --blue-mid: #1d4ed8;
  --blue-light: #a8d0ff;
  --navy: #020C45;
  /* Same value as styles.css:--ink. Duplicated because these pages do NOT load styles.css:
     a custom property is inherited through the DOM, not shared between stylesheets, so a
     var(--ink) here would be invalid-at-computed-value-time and silently fall back to
     `inherit`. Keep in step with styles.css. */
  --ink: #020C45;
  --bg: #f0f5ff;
  --white: #ffffff;
  --gray-light: #e4ecf9;
  --gray-mid: #c0cfe8;
  --text: #020C45;
  --text-muted: #5a6a8a;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(2,12,69,0.09);
  --instant: #00c27a;
  --instant-bg: #e6faf3;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── NAV ──
   The <nav> element itself is owned entirely by nav.css, which is linked LAST on
   every page and re-declares the same `nav {}` (sticky, z-index:100, padding,
   background, …). A per-page `nav {}` block here only ever gets overridden — and
   its stale z-index:200 once misled the search-row stacking below into sitting
   above the real nav. Don't reintroduce it. The child rules below (.logo,
   .nav-links, .nav-avatar) are the page's own and still apply. */
.logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.logo .check { color: var(--blue); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { font-weight: 600; color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-login {
  background: none; border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text); cursor: pointer;
}
.btn-login:hover { color: var(--blue); }
.btn-signup {
  background: var(--blue); color: #ffffff;
  border: none; border-radius: 8px;
  padding: 8px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-signup:hover { background: var(--blue-mid); }
.nav-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.75rem; font-weight: 700;
  cursor: pointer;
}

/* ── PAGE LAYOUT ── */
.page-header {
  padding: 40px 40px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.page-header h1 {
  font-family: 'Sora', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.page-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-row {
  display: flex;
  gap: 12px;
  padding: 0 40px 28px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}
.main-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: 50px;
  padding: 11px 20px;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative; /* anchors the clear × and the recent-searches dropdown */
}
.main-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(80,162,255,0.15);
}
.main-search input {
  border: none; outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  color: var(--text);
  background: transparent;
  flex: 1;
}
.main-search input::placeholder { color: var(--text-muted); }
.main-search svg { color: var(--text-muted); flex-shrink: 0; }

/* Clear × — only rendered (via [hidden]) while the input holds text */
.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
}
.search-clear:hover { color: var(--ink); background: var(--gray-light); }

/* Recent searches — dropdown sheet directly under the search pill */
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  display: flex;
  flex-direction: column;
  z-index: 300; /* above the sticky filters panel, below the modal (500) */
}
.search-suggest-item,
.search-suggest-clear {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-align: left;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 0.9rem;
  color: var(--text);
  transition: background 0.15s;
}
.search-suggest-item:hover { background: var(--bg); }
.search-suggest-clear {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-mid);
  border-top: 1px solid var(--gray-light);
  border-radius: 0 0 7px 7px;
  margin-top: 4px;
}
.search-suggest-clear:hover { background: var(--bg); }

/* Search-term highlight in card titles/snippets (built by jobs.js highlightInto) */
.card-title mark,
.card-task mark {
  background: rgba(80,162,255,0.22);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

.result-count {
  color: var(--text-muted);
  font-size: 0.88rem;
  white-space: nowrap;
}
.result-count strong { color: var(--ink); }

.content-area {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 60px;
}

/* ── FILTERS ── */
.filters-panel {
  position: sticky;
  top: 80px;
  align-self: start;
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-light);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.filter-clear {
  font-size: 0.8rem;
  color: var(--blue);
  cursor: pointer;
  font-weight: 500;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
}
.filter-clear:hover { text-decoration: underline; }

.filter-group label.group-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

/* Job type toggle */
.type-toggle {
  display: flex;
  background: var(--bg);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.type-btn {
  flex: 1;
  padding: 7px 8px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.type-btn.active {
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(2,12,69,0.12);
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.checkbox-item input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
}
.checkbox-item span {
  font-size: 0.88rem;
  color: var(--text);
}
.checkbox-item .count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--gray-light);
  padding: 2px 7px;
  border-radius: 20px;
}

/* Range slider */
.range-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.range-label span {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.range-label strong { color: var(--ink); }
input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
  height: 4px;
}

/* (The old .toggle-row/.toggle-switch block was dead code — no HTML or JS
   referenced it. The canonical switch pattern is consent.css's
   .tp-consent-switch: real checkbox, sr-text, focus ring.) */

/* ── JOB GRID ── */
.jobs-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.jobs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.sort-select {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
}
.sort-select:focus,
.filters-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(80,162,255,0.15);
  outline: none;
}

.active-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.active-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(80,162,255,0.1);
  color: var(--blue-mid);
  border: 1px solid rgba(80,162,255,0.25);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}
.active-tag button {
  background: none; border: none; cursor: pointer;
  color: var(--blue-mid); font-size: 0.9rem; line-height: 1;
  padding: 0;
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Reset-load feedback: jobs.js dims the stale list while a fresh page is in flight */
.is-loading { opacity: .5; pointer-events: none; }

/* "Filters (n)" toggle — desktop keeps the always-visible panel, so hidden here;
   the ≤900px block below turns it on and collapses the panel behind it */
.filters-toggle { display: none; }

/* ── JOB CARD ── */
.job-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-light);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  align-items: start;
  animation: fadeUp 0.4s ease both;
}
.job-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(80,162,255,0.15);
}

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

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-instant {
  background: var(--instant-bg);
  color: var(--instant);
  border: 1px solid rgba(0,194,122,0.3);
}
.badge-apply {
  background: rgba(80,162,255,0.1);
  color: var(--blue-mid);
  border: 1px solid rgba(80,162,255,0.25);
}
.badge-skill {
  background: var(--gray-light);
  color: var(--text-muted);
  border: 1px solid var(--gray-mid);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.card-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}
.card-task {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-skills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.card-payout {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.card-payout span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}
.card-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-deadline {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--gray-light);
  border-radius: 6px;
  padding: 4px 9px;
  white-space: nowrap;
}
.btn-apply {
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-apply-instant {
  background: var(--instant);
  color: white;
}
.btn-apply-instant:hover { background: #00a868; transform: translateY(-1px); }
.btn-apply-normal {
  background: var(--blue);
  color: white;
}
.btn-apply-normal:hover { background: var(--blue-mid); transform: translateY(-1px); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,12,69,0.45);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: 14px;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(2,12,69,0.25);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s ease;
}
.modal-overlay.visible .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 28px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-mid);
  background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--gray-light); color: var(--ink); }

.modal-body { padding: 20px 28px 28px; }

.modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.modal-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}

.modal-section {
  margin-bottom: 20px;
}
.modal-section h4 {
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.modal-section p {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.65;
}
.modal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-section ul li {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.modal-section ul li::before {
  content: '✓';
  color: var(--instant);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.modal-payout-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.modal-payout-val {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}
.modal-payout-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.deadline-badge {
  background: rgba(80,162,255,0.1);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: right;
}
.deadline-badge .label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; }
.deadline-badge .val { font-size: 0.9rem; font-weight: 600; color: var(--ink); }

.modal-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Instant apply */
.instant-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--instant-bg);
  border: 1px solid rgba(0,194,122,0.3);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #006644;
}
.instant-notice svg { flex-shrink: 0; }

.apply-msg-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.apply-msg-area label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.apply-msg-area textarea {
  width: 100%;
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  resize: none;
  height: 100px;
  outline: none;
  transition: border-color 0.2s;
}
.apply-msg-area textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(80,162,255,0.15);
}

.modal-cta {
  padding: 13px;
  border-radius: 10px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}
.cta-instant { background: var(--instant); color: white; }
.cta-instant:hover { background: #00a868; }
.cta-apply { background: var(--blue); color: white; }
.cta-apply:hover { background: var(--blue-mid); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.page-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-mid);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover, .page-btn.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* No results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.no-results svg { opacity: 0.3; margin-bottom: 16px; }
.no-results h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 6px;
}

/* Scrollbar */
.modal::-webkit-scrollbar { width: 5px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: var(--gray-mid); border-radius: 10px; }

/* Footer: styled by the shared component in footer.css — no page-local override.
   (A legacy element-selector block here used to force text-align:center over it.) */

/* Responsive */
@media (max-width: 900px) {
  .content-area { grid-template-columns: 1fr; }
  /* Panel collapses behind the "Filters (n)" button (jobs.js toggles .open) */
  .filters-panel { position: static; display: none; }
  .filters-panel.open { display: flex; }
  .filters-toggle {
    display: block;
    width: 100%;
    padding: 11px 16px;
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-mid);
    background: var(--white);
    box-shadow: var(--shadow);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
  }
  .filters-toggle[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); }
}
@media (max-width: 600px) {
  nav { padding: 14px 20px; }
  .page-header, .search-row { padding-left: 20px; padding-right: 20px; }
  .search-row { flex-wrap: wrap; }
  .main-search { flex-basis: 100%; }
  .result-count { flex-basis: 100%; }
  /* Keep the search under the sticky nav while scrolling the board. Offset =
     nav height at this width: 14px top/bottom padding + ~37px content row
     (Sign Up button + line box) = 65px, confirmed by measurement at 375px. */
  .search-row {
    position: sticky;
    top: 65px;
    /* Under the nav AND its open hamburger drawer, over the cards. nav.css
       (linked last) owns `nav` at z-index:100, and the drawer is position:absolute
       inside the nav so it shares that layer. This row must stay below 100 or it
       paints OVER the open drawer and shows through it on scroll. */
    z-index: 90;
    background: var(--bg);
    padding-top: 10px;
    padding-bottom: 12px;
  }
  .content-area { padding: 0 20px 40px; }
  .job-card { grid-template-columns: 1fr; }
  .card-right { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Dark mode — toggled by JS/theme.js (jobs.html is self-contained) ---------- */
body.dark {
  --bg: #0b1226;
  --white: #111a38;           /* surface flips; always-white text is literal #ffffff */
  --gray-bg: #0e1832;
  --gray-light: #26325c;
  --gray-mid: #34426e;
  --border: #26325c;
  --text: #dbe4f8;
  --ink: #e8eefc;
  --text-muted: #93a3c8;
  --blue-pale: rgba(59,130,246,0.16);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  /* --navy is NOT flipped: it is the bg of heroes/footers/panels (already dark) */
  background: #0b1226;
  color: #dbe4f8;
}
body.dark h1, body.dark h2, body.dark h3, body.dark h4, body.dark h5 { color: #e8eefc; }
body.dark .type-btn.active { background: #1c2749; color: #e8eefc; }
/* ── QA dark-mode accessibility fixes (jobs.html is self-contained → repaint nav + navy text) ── */
body.dark { color-scheme: dark; }
body.dark nav { background: #111a38; border-bottom-color: #26325c; }
body.dark nav .logo { color: #ffffff; }
body.dark .nav-links a { color: var(--text, #dbe4f8); }
body.dark .nav-links a:hover, body.dark .nav-links a.active { color: #50A2FF; }
body.dark .btn-login { color: var(--text, #dbe4f8); }
body.dark .btn-login:hover { color: #50A2FF; }
body.dark .result-count strong, body.dark .range-label strong { color: #e8eefc; }
body.dark .card-title, body.dark .card-payout { color: #e8eefc; }
body.dark .modal-title, body.dark .modal-payout-val, body.dark .deadline-badge .val { color: #e8eefc; }
body.dark .apply-msg-area label { color: #dbe4f8; }
body.dark .modal-close:hover { background: #1c2749; color: #e8eefc; }
/* Search extras: surfaces flip via tokens; pin the accent colours that don't */
body.dark .search-suggest { box-shadow: 0 4px 24px rgba(0,0,0,0.5); }
body.dark .search-suggest-clear { color: #50A2FF; }
body.dark .search-clear:hover { background: #1c2749; }
body.dark .card-title mark, body.dark .card-task mark { background: rgba(80,162,255,0.3); }
