/* DevMint Jobs — dark SaaS theme (PeopleOS / ReachOS pattern)
   Vanilla CSS only. No external URLs, no CDN, no webfonts (system stack). */

:root {
  --bg: #0b0f0e;
  --bg2: #0e1311;
  --surface: #121916;
  --surface2: #16211c;
  --surface3: #1b2822;
  --border: rgba(255, 255, 255, .08);
  --border2: rgba(44, 230, 168, .35);
  --mint: #2ce6a8;
  --mint-dim: rgba(44, 230, 168, .12);
  --lime: #52ff00;
  --text: #f2f5f3;
  --muted: #9aa7a0;
  --muted2: #6e7a73;
  --blue: #7fb8f5;
  --amber: #f5c86e;
  --green: #4ade80;
  --red: #f58a8a;
  --radius: 16px;
  --radius-sm: 10px;
  --topbar-h: 64px;
  --sidebar-w: 240px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--mint); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }

/* ---------- brand / logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo:hover { color: var(--text); }
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px;
  background: linear-gradient(135deg, var(--mint), var(--lime));
  display: flex; align-items: center; justify-content: center;
  color: #06231a; font-weight: 900; font-size: 18px;
}
.logo em { font-style: normal; color: var(--mint); }

/* ---------- public header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 14, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.badge-updated {
  font-size: 12px; color: var(--mint); border: 1px solid var(--border2);
  border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}
.badge-updated i {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint); margin-right: 7px; box-shadow: 0 0 8px var(--mint);
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 34px;
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(44, 230, 168, .14), transparent 60%),
    radial-gradient(700px 380px at 90% 0%, rgba(82, 255, 0, .07), transparent 60%);
}
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; max-width: 860px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--mint), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 660px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.stat, .stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.stat b, .stat-card b { display: block; font-size: 30px; letter-spacing: -.02em; color: var(--mint); }
.stat span, .stat-card span { font-size: 13px; color: var(--muted); }
.stat-card .stat-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted2); margin-bottom: 6px; }
.stat-card .stat-sub { font-size: 12.5px; color: var(--muted2); margin-top: 4px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0 24px; }

/* ---------- search ---------- */
.searchbar { margin-top: 28px; display: flex; gap: 10px; }
.searchbar input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 15px 18px; font-size: 16px; color: var(--text); outline: none;
}
.searchbar input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(44, 230, 168, .15); }
.searchbar input::placeholder { color: var(--muted2); }
.searchbar button { background: var(--mint); color: #06231a; border: 0; border-radius: 12px; padding: 0 24px; font-size: 15px; font-weight: 700; }
.searchbar button:hover { background: #4af0b8; }

/* ---------- filters / chips ---------- */
.filters {
  position: sticky; top: 64px; z-index: 40;
  background: rgba(11, 15, 14, .92); backdrop-filter: blur(12px);
  padding: 16px 0 14px; border-bottom: 1px solid var(--border);
}
.chip-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.chip-row:last-of-type { margin-bottom: 0; }
.chip-label { flex: 0 0 108px; padding-top: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  border-radius: 999px; padding: 8px 14px; font-size: 13.5px; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .22); }
.chip.active { background: var(--mint); color: #06231a; border-color: var(--mint); font-weight: 700; }
.chip.active:hover { color: #06231a; }
.chip .n { opacity: .65; font-size: 12px; margin-left: 4px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--mint); width: 17px; height: 17px; cursor: pointer; }
.result-count { margin-left: auto; font-size: 13.5px; color: var(--muted); }
.result-count b { color: var(--mint); }

/* ---------- job cards ---------- */
.jobs { padding: 28px 0 60px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border2); }
/* The [hidden] attribute must actually hide: .card sets display:flex, and
   an author display rule beats the browser's [hidden]{display:none}, so
   without this every hidden .card (Find progress/summary panels) stays
   visible forever. Found 25 Nov 2026 from the user's Find screenshots. */
[hidden] { display: none !important; }
.card h3 { font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.card h3 a:hover { color: var(--mint); }
.company { font-size: 14px; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12px; border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; color: var(--muted); white-space: nowrap; }
.pill.remote { color: var(--mint); border-color: var(--border2); }
.pill.source { color: #c9f7e4; background: rgba(44, 230, 168, .08); }
.salary { font-size: 15px; font-weight: 700; color: var(--mint); }
.card .spacer { flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.posted { font-size: 12.5px; color: var(--muted2); }
.apply { background: var(--mint); color: #06231a; font-weight: 700; font-size: 13.5px; border-radius: 9px; padding: 8px 16px; white-space: nowrap; }
.apply:hover { background: #4af0b8; color: #06231a; }
.cats { display: flex; flex-wrap: wrap; gap: 5px; }
.cats span { font-size: 11px; background: rgba(44, 230, 168, .1); color: var(--mint); border-radius: 6px; padding: 2px 7px; }
.cats span.role { background: rgba(82, 255, 0, .09); color: #b8f5a0; }
.loadmore {
  display: block; margin: 30px auto 0; background: transparent;
  border: 1px solid var(--border2); color: var(--mint); border-radius: 12px;
  padding: 13px 34px; font-size: 15px; font-weight: 700; text-align: center;
}
.loadmore:hover { background: rgba(44, 230, 168, .1); color: var(--mint); }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty h3 { color: var(--text); font-size: 22px; margin-bottom: 8px; }
.empty p { max-width: 520px; margin: 0 auto; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 34px 0 44px; color: var(--muted2); font-size: 13.5px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 12px; }
footer b { color: var(--muted); }

/* ---------- app shell: sidebar + topbar ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--bg2); border-right: 1px solid var(--border);
  padding: 18px 14px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .logo { padding: 2px 8px 16px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav .nav-section {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted2); padding: 14px 10px 6px;
}
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: var(--radius-sm); color: var(--muted); font-size: 14.5px;
}
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active { background: var(--surface2); color: var(--mint); font-weight: 600; }
.nav-link .nav-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted2); flex: 0 0 7px; }
.nav-link.active .nav-dot { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.sidebar-foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted2); }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h); flex: 0 0 var(--topbar-h);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 14, .9); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 40;
}
.topbar .page-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.topbar-spacer { flex: 1; }
.ws-switcher { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ws-switcher label { white-space: nowrap; }
.user-menu { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.user-menu .user-name { color: var(--text); font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu a { font-size: 13.5px; }
.content { padding: 24px; max-width: 1180px; width: 100%; margin: 0 auto; }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 4px; }
.page-head h1 { font-size: 24px; letter-spacing: -.02em; }
.page-head p { color: var(--muted); font-size: 14.5px; }
.page-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.panel h2 { font-size: 17px; margin-bottom: 4px; }
.panel .panel-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.panel-head h2 { margin-bottom: 0; }
.panel-head .spacer { flex: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface2); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 16px; font-size: 14px; font-weight: 600;
}
.btn:hover { border-color: rgba(255, 255, 255, .22); color: var(--text); }
.btn-primary { background: var(--mint); border-color: var(--mint); color: #06231a; }
.btn-primary:hover { background: #4af0b8; border-color: #4af0b8; color: #06231a; }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; border-color: rgba(245, 138, 138, .5); color: var(--red); }
.btn-danger:hover { border-color: var(--red); color: var(--red); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- forms ---------- */
.input, .select, .textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14.5px; color: var(--text); outline: none; width: 100%;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(44, 230, 168, .15); }
.input::placeholder, .textarea::placeholder { color: var(--muted2); }
.select { width: auto; cursor: pointer; }
.select option { background: var(--surface2); color: var(--text); }
.textarea { resize: vertical; min-height: 64px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--muted2); margin-top: 5px; }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.form-inline .field { margin-bottom: 0; flex: 1 1 160px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.checkbox-row input { accent-color: var(--mint); width: 17px; height: 17px; cursor: pointer; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.tbl thead th {
  position: sticky; top: 0; z-index: 2; background: var(--surface2);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
}
.tbl tbody tr:hover { background: rgba(255, 255, 255, .025); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .job-title { font-weight: 600; color: var(--text); }
.tbl .job-title a:hover { color: var(--mint); }
.tbl .sub { font-size: 12.5px; color: var(--muted2); }
.tbl td .select { padding: 6px 8px; font-size: 13px; }
.tbl .notes-cell { min-width: 220px; }
.tbl .notes-cell .textarea { min-height: 44px; font-size: 13px; padding: 8px 10px; }
.tbl .row-actions { display: flex; gap: 8px; align-items: center; }
.tbl tr.is-assigned { opacity: .75; }

/* ---------- status pills ---------- */
.status-pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; border: 1px solid transparent; }
.status-new { color: var(--muted); background: rgba(255, 255, 255, .06); border-color: var(--border); }
.status-contacted { color: #a8c8f0; background: rgba(127, 184, 245, .12); border-color: rgba(127, 184, 245, .3); }
.status-applied { color: var(--mint); background: rgba(44, 230, 168, .12); border-color: rgba(44, 230, 168, .3); }
.status-interview { color: var(--amber); background: rgba(245, 200, 110, .12); border-color: rgba(245, 200, 110, .3); }
.status-hired { color: var(--green); background: rgba(74, 222, 128, .12); border-color: rgba(74, 222, 128, .3); }
.status-rejected { color: var(--red); background: rgba(245, 138, 138, .12); border-color: rgba(245, 138, 138, .3); }

/* ---------- B2B Outreach batch status pills ---------- */
.pill-sent { color: var(--mint); background: rgba(44, 230, 168, .12); border-color: rgba(44, 230, 168, .3); }
.pill-pending { color: var(--muted); background: rgba(255, 255, 255, .06); border-color: var(--border); }
.pill-failed { color: var(--red); background: rgba(245, 138, 138, .12); border-color: rgba(245, 138, 138, .3); }
.pill-skipped { color: var(--amber); background: rgba(245, 200, 110, .12); border-color: rgba(245, 200, 110, .3); }

/* ---------- pitch preview (batch page <details>) ---------- */
.pitch-preview { white-space: pre-wrap; word-break: break-word; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; line-height: 1.55; margin: 8px 0; max-width: 560px; }
details summary { cursor: pointer; color: var(--text); }

/* ---------- flashes / notices ---------- */
.flash { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.flash-success { background: rgba(44, 230, 168, .1); border-color: rgba(44, 230, 168, .35); color: #c9f7e4; }
.flash-error { background: rgba(245, 138, 138, .1); border-color: rgba(245, 138, 138, .35); color: #fbd0d0; }
.flash-info { background: rgba(127, 184, 245, .1); border-color: rgba(127, 184, 245, .35); color: #d6e8fb; }
.notice {
  background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 22px; color: var(--muted); margin-bottom: 20px;
}
.notice h2 { color: var(--text); font-size: 18px; margin-bottom: 6px; }

/* ---------- pagination ---------- */
.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 28px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-block; padding: 8px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; color: var(--muted);
}
.pagination a:hover { color: var(--mint); border-color: var(--border2); }
.pagination .current { background: var(--mint); border-color: var(--mint); color: #06231a; font-weight: 700; }
.pagination .disabled { opacity: .45; }

/* ---------- misc ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.toolbar .spacer { flex: 1; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted2); }
.kv dd { color: var(--text); }
.divider { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.auth-box { max-width: 420px; margin: 60px auto; }
.auth-box .panel { padding: 28px; }
.center { text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats, .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .app-shell { flex-direction: column; }
  .sidebar {
    width: 100%; flex: none; height: auto; position: static;
    flex-direction: column; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--border);
  }
  .sidebar .logo { padding-bottom: 10px; margin-bottom: 8px; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .sidebar-nav .nav-section { display: none; }
  .sidebar-foot { display: none; }
  .topbar { padding: 0 16px; flex-wrap: wrap; height: auto; min-height: var(--topbar-h); padding-top: 10px; padding-bottom: 10px; }
  .content { padding: 16px; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 48px 0 26px; }
  .searchbar { flex-direction: column; }
  .searchbar button { padding: 13px; }
  .result-count { margin-left: 0; width: 100%; }
  .stats, .stats-grid { gap: 10px; }
  .stat b, .stat-card b { font-size: 24px; }
  .chip-row { flex-direction: column; gap: 6px; }
  .chip-label { flex: none; padding-top: 0; }
  .badge-updated { display: none; }
  .filters { position: static; }
  .user-menu .user-name { display: none; }
}

/* ---------- fix 2026-11-19: classes the PHP templates use but the CSS lacked ----------
   The login/setup pages rendered unstyled because .auth-page / .auth-card / .brand
   (and friends) had no rules at all. All rules below match the existing dark/mint theme. */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.auth-card h1 { font-size: 26px; letter-spacing: -.02em; margin: 18px 0 16px; }
.auth-card .brand { margin-bottom: 4px; }
.auth-card label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.auth-card input[type="email"], .auth-card input[type="password"], .auth-card input[type="text"] { display: block; width: 100%; margin-top: 6px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 12px; font-size: 15px; color: var(--text); outline: none; }
.auth-card input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(44, 230, 168, .15); }
.auth-card .btn { width: 100%; padding: 12px 16px; font-size: 15px; margin-top: 4px; }
.auth-card p.muted { font-size: 13.5px; margin-top: 14px; }
.auth-card p.muted a { color: var(--mint); }

/* Brand / logo (templates use .brand; same look as .logo) */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px; background: linear-gradient(135deg, var(--mint), var(--lime)); display: flex; align-items: center; justify-content: center; color: #06231a; font-weight: 900; font-size: 18px; }
.brand-name { font-weight: 800; }
.sidebar .brand { padding: 2px 8px 16px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }

/* Sidebar footer + nav container (templates use .sidebar-footer / nav.nav) */
.sidebar-footer { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted2); }
.sidebar-footer-link { color: var(--muted2); }
.sidebar-footer-link:hover { color: var(--mint); }
/* The nav is the only scrolling part of the sidebar: the sidebar itself
   is sticky at 100vh (see .sidebar above), the brand stays at the top
   and the footer stays at the bottom, and a long nav list scrolls
   inside its own area instead of being cut off on short screens. */
.sidebar nav.nav { flex-direction: column; align-items: stretch; justify-content: flex-start; height: auto; gap: 2px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }

/* Topbar bits */
.ws-switcher-label { white-space: nowrap; }
.user-menu-name { color: var(--text); font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-link { font-size: 13.5px; }
main.main { min-width: 0; }

/* Forms */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; max-width: 640px; }
.form-card label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-card input[type="text"], .form-card input[type="email"], .form-card input[type="password"], .form-card input[type="number"], .form-card select, .form-card textarea { display: block; width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14.5px; color: var(--text); outline: none; margin-bottom: 14px; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(44, 230, 168, .15); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .field { margin-bottom: 14px; }

/* Tables (templates use table.table; same look as table.tbl) */
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.table thead th { background: var(--surface2); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .job-title { font-weight: 600; color: var(--text); }
.table .sub { font-size: 12.5px; color: var(--muted2); }
.table td .select { padding: 6px 8px; font-size: 13px; }
.table .row-actions { display: flex; gap: 8px; align-items: center; }

/* Alerts (alias of .flash) */
.alert { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.alert-error { background: rgba(245, 138, 138, .1); border-color: rgba(245, 138, 138, .35); color: #fbd0d0; }

/* Find page bits */
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.checkbox-label input { accent-color: var(--mint); width: 17px; height: 17px; cursor: pointer; }
.row-check { accent-color: var(--mint); width: 17px; height: 17px; cursor: pointer; }
.pill-new { color: var(--mint); border-color: var(--border2); background: rgba(44, 230, 168, .08); }

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 22px; }
}

/* ---------- fix 2026-11-19: every native control matches the theme ----------
   Screenshots showed white native dropdowns/inputs (Find role/tool/limit,
   topbar workspace switcher, board source/sort, owner/role selects) because
   9 selects + several inputs had no class and the CSS only styled .input /
   .select classes — and there was no color-scheme: dark, so browsers rendered
   native controls in light mode. Base element rules below make EVERY control
   dark + mint, with or without a class. */
:root { color-scheme: dark; }

select, input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="number"], textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14.5px;
  color: var(--text);
  outline: none;
}
select:focus, input[type="text"]:focus, input[type="email"]:focus,
input[type="password"]:focus, input[type="search"]:focus,
input[type="number"]:focus, textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(44, 230, 168, .15);
}
select::placeholder, input::placeholder, textarea::placeholder { color: var(--muted2); }
select { cursor: pointer; }
select option { background: var(--surface2); color: var(--text); }
input[type="checkbox"] { accent-color: var(--mint); width: 17px; height: 17px; cursor: pointer; }

/* Buttons: any button without a .btn class gets the same look as .btn. */
button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface2); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 16px; font-size: 14px; font-weight: 600;
}
button:hover { border-color: rgba(255, 255, 255, .22); color: var(--text); }
button:disabled { opacity: .5; cursor: not-allowed; }

/* Form-grid labels (Find page): labels wrap bare inputs/selects. */
.form-grid label:not(.checkbox-label) { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.form-grid label:not(.checkbox-label) input,
.form-grid label:not(.checkbox-label) select { display: block; width: 100%; margin-top: 6px; }

/* Topbar workspace switcher select stays compact and dark. */
.ws-switcher select { width: auto; }

/* ---------- HX2B-style board redesign + grid-overflow fix (2026-11-19) ----------
   HX2B design language, adapted to DevMint (mint #2CE6A8 on #0B0F0E, no video,
   no HX2B wording): near-black hero, heavy Archivo-style headlines, kicker
   pill, bordered stat cards, source marquee strip, generous spacing.
   Also fixes the two verified board defects:
   (1) white Source/Sort selects + Remote checkbox — the base control rules
       above were live but browsers/CDN kept serving the cached old file, so
       the stylesheet URL is now versioned (?v=2) in index.php + layout.php;
       the .filter-row select rule below is belt-and-braces (higher
       specificity, can never fall back to a white native control);
   (2) grid blow-out — .pill had white-space: nowrap, so one ~30-country
       location pill became an unbreakable ~1,000px line and forced its grid
       track wide. Fixed on both layers: card meta pills may wrap + every
       grid child gets min-width: 0, AND index.php truncates the displayed
       location to the first 2 places + "+N more" (DB value stays full). */
html, body { overflow-x: clip; }

/* Hero — bigger, bolder, HX2B-style */
.hero { padding: 84px 0 40px; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mint); border: 1px solid var(--border2); border-radius: 999px;
  padding: 7px 14px; margin-bottom: 22px;
}
.hero .kicker .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 10px var(--mint);
}
.hero h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 900; letter-spacing: -.03em; line-height: 1.02; max-width: 900px; }
.hero p { font-size: 19px; }

/* Stats — clean bordered cards, big mint numbers, uppercase labels */
.stats { gap: 16px; margin-top: 44px; }
.stat { padding: 22px; border-radius: 18px; }
.stat b { font-size: 38px; font-weight: 900; }
.stat span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* Search — taller, more prominent */
.searchbar { margin-top: 34px; max-width: 860px; }
.searchbar input { padding: 18px 20px; font-size: 17px; border-radius: 14px; }
.searchbar button { padding: 0 32px; font-size: 16px; border-radius: 14px; }

/* Source marquee — HX2B-style strip of the boards tracked (DB-driven) */
.marquee { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: mqMove 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-group { display: flex; }
.mq-group span {
  display: inline-flex; align-items: center; gap: 24px; padding-right: 24px; white-space: nowrap;
  font-size: 13.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.mq-group span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex: none; }
@keyframes mqMove { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Filters — panel feel, selects explicitly dark (never white) */
.filters { padding: 22px 0 18px; }
.filter-row select {
  background: var(--surface2); color: var(--text); border: 1px solid var(--border);
}
.filter-row select:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(44, 230, 168, .15); }

/* Job cards — grid can never blow out again; clearer hierarchy */
.grid > * { min-width: 0; }
.grid > .card { min-width: 0; }
.card { padding: 22px; border-radius: 18px; }
.card h3 { font-size: 18px; }
.card h3, .card h3 a, .company { overflow-wrap: anywhere; }
.card .meta { min-width: 0; }
.card .meta .pill { white-space: normal; overflow-wrap: anywhere; }

/* Footer */
footer { padding: 44px 0 52px; }

@media (max-width: 620px) {
  .hero { padding: 56px 0 30px; }
  .stat b { font-size: 28px; }
  .stat { padding: 16px; }
  .searchbar input { padding: 15px 16px; font-size: 16px; }
  .marquee { padding: 14px 0; }
  .card { padding: 18px; }
}

/* Streaming Find — progress lines + spinner while a source is fetching */
#find-progress ul { list-style: none; padding: 0; margin: 12px 0 0; }
#find-progress li { padding: 6px 0; }
#find-progress .find-status { font-weight: 700; }
#find-progress li.is-fetching .find-status::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px;
  border: 2px solid var(--border); border-top-color: var(--mint); border-radius: 50%;
  animation: findSpin .7s linear infinite; vertical-align: -1px;
}
@keyframes findSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  #find-progress li.is-fetching .find-status::before { animation: none; }
}

/* One-click Apply toast (assets/js/apply.js): bottom-centre note after
   an Apply click — CV ready / no CV yet / error. */
.apply-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  max-width: min(92vw, 560px); z-index: 9999;
  background: var(--surface2, #1a201d); color: var(--text, #f0f4f1);
  border: 1px solid var(--border2, rgba(255,255,255,.16));
  border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.45;
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
}

/* ---------- Find portals (find.php) ---------- */
.portal-fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 4px 0 16px; }
.portal-fieldset legend { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 6px; }
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; margin-top: 10px; }
.portal-option { align-items: flex-start; }
.portal-note { font-size: 12px; color: var(--muted2); }
.portal-disabled { opacity: .55; }
.portal-reason { display: block; font-size: 12px; color: var(--muted2); margin-top: 2px; }
.portal-hint { margin-top: 10px; font-size: 12.5px; }
@media (max-width: 620px) { .portal-grid { grid-template-columns: 1fr; } }

/* ---------- Find/Leads filter dropdowns (inc/find_filters.php) ---------- */
/* Each filter group is a <details> dropdown, collapsed by default; the
 * summary shows the group name + ticked count, e.g. "Role group (2)". */
/* Compact layout: the dropdown groups sit in a responsive grid
 * (3 columns desktop, 2 tablet, 1 mobile) instead of one-per-line.
 * A grid cell's open panel expands its own row — no clipping, no
 * sideways push. Inside a flex toolbar (Leads/Assign) the wrapper
 * takes a full row of its own. */
.filter-grid-wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; flex: 1 1 100%; }
@media (max-width: 1100px) { .filter-grid-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .filter-grid-wrap { grid-template-columns: minmax(0, 1fr); } }
.filter-grid-wrap .filter-dropdown { margin: 4px 0 12px; min-width: 0; }
/* Find form flags: Remote-only + Direct-apply-only on one inline row. */
.form-flags { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 2px 0 10px; }
.filter-dropdown { border: 1px solid var(--border); border-radius: var(--radius); margin: 4px 0 16px; }
.filter-dropdown > .filter-summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 12px 14px; font-size: 13px; font-weight: 700; color: var(--muted); user-select: none; }
.filter-dropdown > .filter-summary::-webkit-details-marker { display: none; }
.filter-dropdown > .filter-summary::marker { content: ''; }
.filter-summary-label { overflow-wrap: anywhere; }
.filter-count { font-weight: 700; color: var(--mint); white-space: nowrap; }
.filter-caret { margin-left: auto; flex: none; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--muted); transition: transform .15s ease; }
.filter-dropdown[open] > .filter-summary .filter-caret { transform: rotate(180deg); }
.filter-panel { padding: 4px 16px 16px; border-top: 1px solid var(--border); }
.filter-dropdown .filter-add-skill { margin: 12px 0 0; }
@media (max-width: 620px) { .filter-dropdown > .filter-summary { padding: 12px; } .filter-panel { padding: 4px 12px 14px; } }
.filter-fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 4px 0 16px; }
.filter-fieldset legend { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 6px; }
.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; margin-top: 10px; }
.filter-option { align-items: flex-start; }
.filter-note { font-size: 12px; color: var(--muted2); margin-top: 10px; }
.filter-select-all { font-weight: 700; }
.filter-inline { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 10px; align-items: center; }
.filter-inline label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.filter-number { max-width: 160px; }
.filter-add-skill { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -8px 0 16px; }
.filter-add-skill label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
@media (max-width: 620px) { .filter-grid { grid-template-columns: 1fr; } }

/* ---------- Heading filters + Database / New fresh toggle ---------- */
/* Second header row, one control per column. Compact inputs; the row is
 * tinted so it reads as a filter bar, not data. The table already
 * scrolls horizontally inside .table-wrap, so on mobile the row scrolls
 * with it instead of breaking the layout. */
.heading-filter-row th { background: var(--surface-muted, rgba(255, 255, 255, .03)); padding: 8px 10px; vertical-align: middle; }
.heading-filter-row .heading-filter { width: 100%; min-width: 110px; padding: 7px 9px; font-size: 13px; }
.heading-filter-row select.heading-filter { min-width: 130px; }
/* Database / New fresh segmented toggle (Leads page). */
.src-toggle-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 4px 0 14px; }

/* ---------- Scrollable results tables (Find / Leads / Assign) ----------
 * The table scrolls inside a fixed-height container (60vh) so the action
 * bar below it (Assign / Export CSV / Clear) stays reachable without
 * scrolling the whole page past 100+ rows. Both header rows stay pinned
 * at the top of the container: the column header at top:0, the
 * heading-filter row just below it (its top = the header row's height).
 * .table (Find) and .tbl (Leads/Assign) headers share the same 12px
 * padding + 11.5px font, so one offset fits both — the value below is
 * the measured first-header-row height (see the deploy notes). */
.table-wrap.table-scroll { max-height: 60vh; overflow-y: auto; }
/* Sticky table headers: `position: sticky` on the `th` does NOT engage in
   Chrome for these tables (verified in the browser: the header scrolled
   away with the rows, although the computed style said sticky) — but it
   DOES work on the `thead` element itself. Pinning the whole `thead`
   keeps both rows (column headers + heading-filter row) visible as one
   block, so no magic top offset is needed for the second row. */
.table-scroll thead { position: sticky; top: 0; z-index: 3; }
.src-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; flex: none; }
.src-toggle-btn { padding: 8px 16px; font-size: 13.5px; font-weight: 700; color: var(--muted); background: transparent; text-decoration: none; }
.src-toggle-btn.is-active { color: var(--text); background: rgba(44, 230, 168, .14); }
.src-toggle-btn + .src-toggle-btn { border-left: 1px solid var(--border); }

/* ---------- sidebar nav sections (inc/layout.php) ---------- */
.nav .nav-section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted2); padding: 14px 10px 6px; }

/* ---------- CV match (cv_read.php / recommended.php) ---------- */
.match-super { color: var(--mint); border-color: var(--border2); background: rgba(44, 230, 168, .12); }
.match-fit { color: #b8f5a0; border-color: rgba(82, 255, 0, .35); background: rgba(82, 255, 0, .08); }
.match-try { color: #f0c96a; border-color: rgba(240, 201, 106, .35); background: rgba(240, 201, 106, .08); }
.pill-skill { color: #c9f7e4; background: rgba(44, 230, 168, .08); }
.match-keywords { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.cv-text { white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; font-size: 13.5px; line-height: 1.6; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }

/* Item 2 (2026-11-19): mobile sidebar is a top bar, not a sticky column —
   the nav sizes to its content and never scrolls internally. This block
   must stay AFTER the base .sidebar nav.nav rule above: same selector,
   so the later rule wins on small screens. */
@media (max-width: 860px) {
  .sidebar nav.nav { overflow-y: visible; flex: none; }
}
