:root {
  --bg: #ffffff; --fg: #1d2330; --muted: #667085; --line: #e4e7ec; --panel: #f8f9fb;
  --accent: #2f6fde; --accent-fg: #ffffff; --row-hover: #f2f5fb;
  --india: #12805c; --remote: #2f6fde; --unk: #8a6d00; --visa: #8e3fbf; --closed: #b42318;
  --saved: #b7791f; --applied: #12805c;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #12151c; --fg: #e6e9ef; --muted: #98a2b3; --line: #2a303c; --panel: #181c25;
  --accent: #6c9bff; --accent-fg: #0b0e14; --row-hover: #1c2230;
  --india: #3ccf91; --remote: #6c9bff; --unk: #e5c04b; --visa: #c58af0; --closed: #ff7b72;
  --saved: #f0b44c; --applied: #3ccf91;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, select, input { font: inherit; color: inherit; }
button, select, input[type="search"], input[type="number"], .filebtn {
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px;
}
button, .filebtn { cursor: pointer; }
button:hover, .filebtn:hover { border-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.muted { color: var(--muted); }

.top { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center;
       justify-content: space-between; padding: 10px 18px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brand h1 { font-size: 17px; margin: 0; }
.tabs { display: flex; gap: 4px; }
.tabs button { border: none; background: none; padding: 6px 12px; border-radius: 6px; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); }
.tools { display: flex; gap: 6px; }
.pill { font-size: 12px; opacity: .8; }

main { padding: 12px 18px 30px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 10px; }
.filters input[type="search"] { min-width: 260px; flex: 1 1 260px; max-width: 420px; }
.filters input[type="number"] { width: 64px; }
.filters fieldset { border: none; padding: 0; margin: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.chips label { border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; cursor: pointer; user-select: none; }
.chips input { margin: 0 4px 0 0; vertical-align: -1px; }
.inline { white-space: nowrap; }
.count { margin-left: auto; }
.link { border: none; background: none; color: var(--accent); padding: 4px; }
.tag { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 6px 3px 10px; }
.tag button { border: none; background: none; padding: 0 4px; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { position: sticky; top: 0; background: var(--panel); font-weight: 600; white-space: nowrap; font-size: 13px; }
th[data-sort] { cursor: pointer; }
th[aria-sort="ascending"]::after { content: " ▲"; font-size: 10px; }
th[aria-sort="descending"]::after { content: " ▼"; font-size: 10px; }
tbody tr:hover { background: var(--row-hover); }
td.num, th.num { text-align: right; }
td .sub { display: block; color: var(--muted); font-size: 12px; }
tr.closed td { opacity: .6; }
tr.hidden-mark td:not(.marks) { opacity: .45; }
.more { display: block; margin: 12px auto; padding: 7px 20px; }

.badge { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.b-india { color: var(--india); } .b-remote { color: var(--remote); } .b-remote_unspecified { color: var(--unk); }
.b-visa { color: var(--visa); } .b-closed { color: var(--closed); } .b-new { color: var(--accent); }
.b-glob { color: var(--muted); }
.intro { max-width: 70rem; margin: 0 0 .75rem; }
.b-rej { color: var(--muted); }
.score { display: inline-block; min-width: 34px; text-align: center; border-radius: 6px; padding: 1px 6px; font-variant-numeric: tabular-nums;
         background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.score.s-hi { border-color: var(--india); color: var(--india); }
.score.s-mid { border-color: var(--unk); color: var(--unk); }
.score.s-unk { color: var(--muted); }

.marks { white-space: nowrap; width: 1%; }
.marks button { border: 1px solid transparent; background: none; padding: 1px 5px; border-radius: 5px; opacity: .45; }
.marks button:hover { opacity: 1; border-color: var(--line); }
.marks button[aria-pressed="true"] { opacity: 1; }
.marks button[data-m="saved"][aria-pressed="true"] { color: var(--saved); }
.marks button[data-m="applied"][aria-pressed="true"] { color: var(--applied); }
.marks button[data-m="hidden"][aria-pressed="true"] { color: var(--closed); }

tr.detail td { background: var(--panel); }
.basis { border-collapse: collapse; width: auto; }
.basis td { border: none; padding: 2px 10px 2px 0; }
.basis .pts { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.basis .unchecked { color: var(--muted); }

footer { padding: 16px 18px 24px; font-size: 12px; }
@media (max-width: 700px) {
  #jt tr:not(.detail) > th:last-child, #jt tr:not(.detail) > td:last-child { display: none; }
  .filters input[type="search"] { min-width: 100%; }
}
