:root { color-scheme: light; font-family: system-ui, sans-serif; color: #172033; background: #f4f6fb; }
* { box-sizing: border-box; }
body { margin: 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 20px 14px; }
.header { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 28px; }
h1 { margin: 4px 0 8px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.eyebrow { margin: 0; color: #4c63d2; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.muted, .message { color: #667085; }
.scrape-progress { margin-bottom: 16px; padding: 16px; background: white; border: 1px solid #dbe3ff; border-radius: 12px; }
.progress-header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.progress-header span { color: #3448b8; font-weight: 700; }
.scrape-progress progress { display: block; width: 100%; height: 12px; accent-color: #4c63d2; }
.scrape-progress p { margin: 8px 0 0; font-size: .9rem; }
.filters-layout { display: grid; gap: 16px; }
.filters-sidebar { background: white; border: 1px solid #e4e7ec; border-radius: 12px; padding: 16px; }
.filters-sidebar h2 { margin: 0 0 14px; font-size: 1rem; }
.filters-sidebar label { display: block; color: #475467; font-size: .85rem; font-weight: 700; margin: 14px 0 6px; }
.checkbox-filter { max-height: 190px; overflow-y: auto; border: 1px solid #d0d5dd; border-radius: 8px; padding: 8px; background: #fff; }
.checkbox-filter label { display: flex; gap: 8px; align-items: center; margin: 0; padding: 6px 4px; font-weight: 400; cursor: pointer; }
.checkbox-filter input { accent-color: #4c63d2; }
.reset-button { width: 100%; margin-top: 16px; }
.filter-group { margin: 0 0 14px; }
.filter-group summary { color: #475467; font-size: .85rem; font-weight: 700; cursor: pointer; padding: 6px 0; }
.toolbar { display: grid; gap: 12px; padding: 14px; background: white; border: 1px solid #e4e7ec; border-radius: 12px; margin-bottom: 20px; }
input, select, button { border: 1px solid #d0d5dd; border-radius: 8px; padding: 10px 12px; font: inherit; background: white; }
.toolbar input[type="search"] { min-width: 0; width: 100%; }
.toolbar label { display: grid; gap: 5px; color: #475467; font-size: .9rem; }
.toolbar label input { min-width: 0; width: 100%; }
.toolbar output { color: #3448b8; font-weight: 700; }
button { cursor: pointer; }
.primary { color: white; background: #4c63d2; border-color: #4c63d2; font-weight: 700; }
.primary:disabled { opacity: .6; cursor: wait; }
.jobs { display: grid; gap: 14px; }
.job { background: white; border: 1px solid #e4e7ec; border-radius: 12px; padding: 18px; box-shadow: 0 2px 8px #1018280d; }
.job-header { display: flex; justify-content: space-between; gap: 16px; }
.job h2 { margin: 0 0 6px; font-size: 1.15rem; }
.job a { color: #3448b8; }
.meta { color: #667085; font-size: .9rem; margin: 8px 0; }
.score { color: #087443; font-weight: 700; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tags span { padding: 4px 8px; color: #3448b8; background: #eef2ff; border-radius: 999px; font-size: .78rem; }
.description { border-top: 1px solid #eaecf0; padding-top: 10px; }
.description summary { color: #3448b8; cursor: pointer; font-weight: 600; }
.description p { line-height: 1.55; white-space: pre-line; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions select { padding: 7px 9px; }
.empty { padding: 36px; text-align: center; background: white; border-radius: 12px; color: #667085; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0; }
.pagination .page-numbers { display: flex; gap: 4px; }
.pagination .page-summary { color: #667085; font-size: .85rem; text-align: center; }
.pagination button { min-width: 38px; padding: 8px; }
.pagination button.active { color: #fff; background: #4c63d2; border-color: #4c63d2; }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 640px) {
  .header { align-items: stretch; flex-direction: column; }
  .header .primary { width: 100%; }
  .job-header { flex-direction: column; gap: 8px; }
  .score { align-self: flex-start; }
  .toolbar { grid-template-columns: 1fr; }
  .pagination .page-summary { display: none; }
  .filter-group:not([open]) .checkbox-filter { display: none; }
}
@media (min-width: 800px) {
  .filters-layout { grid-template-columns: 230px minmax(0, 1fr); align-items: start; }
  .filters-sidebar { position: sticky; top: 16px; }
  .toolbar { grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(130px, 1fr)); align-items: end; }
}
