:root {
  --bg: #16181b;
  --surface: #1b1e22;
  --surface-2: #212429;
  --surface-3: #282c32;
  --line: #2f343a;
  --line-strong: #3b4148;
  --text: #e7e9eb;
  --text-2: #b9bfc6;
  --muted: #8d959e;
  --faint: #646c75;
  --accent: #8fb3d9;
  --accent-ink: #0f1a26;
  --accent-soft: rgba(143, 179, 217, 0.12);
  --entry: #6dbb8a;
  --entry-soft: rgba(109, 187, 138, 0.13);
  --maybe: #d3a955;
  --maybe-soft: rgba(211, 169, 85, 0.13);
  --exp: #7d858e;
  --exp-soft: rgba(125, 133, 142, 0.14);
  --danger: #d9776c;
  --danger-soft: rgba(217, 119, 108, 0.13);
  --focus: #b9d3ef;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --topbar: 52px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eceef0;
    --surface: #f6f7f8;
    --surface-2: #ffffff;
    --surface-3: #e4e7ea;
    --line: #d6dadf;
    --line-strong: #c3c9cf;
    --text: #1d2024;
    --text-2: #3d434a;
    --muted: #5f6770;
    --faint: #88909a;
    --accent: #2f5f8f;
    --accent-ink: #ffffff;
    --accent-soft: rgba(47, 95, 143, 0.1);
    --entry: #2f7d4f;
    --entry-soft: rgba(47, 125, 79, 0.1);
    --maybe: #8f6512;
    --maybe-soft: rgba(143, 101, 18, 0.1);
    --exp: #6b737c;
    --exp-soft: rgba(107, 115, 124, 0.12);
    --danger: #b04436;
    --danger-soft: rgba(176, 68, 54, 0.1);
    --focus: #2f5f8f;
    --shadow: 0 12px 32px rgba(20, 24, 28, 0.16);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
kbd {
  font: 500 11px var(--mono);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  padding: 1px 5px;
  margin: 0 2px;
  color: var(--text-2);
  background: var(--surface-2);
}
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.label, .flabel, th {
  font: 600 11px/1.2 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 15px;
  white-space: nowrap;
}
.brand-mark {
  width: 14px;
  height: 14px;
  background: linear-gradient(var(--accent), var(--accent)) left top / 6px 6px no-repeat,
    linear-gradient(var(--text-2), var(--text-2)) right top / 6px 6px no-repeat,
    linear-gradient(var(--text-2), var(--text-2)) left bottom / 6px 6px no-repeat,
    linear-gradient(var(--entry), var(--entry)) right bottom / 6px 6px no-repeat;
}
.brand-lg { font-size: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
}
.btn:hover { background: var(--surface-3); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger { color: var(--danger); }
.btn-sm { height: 26px; padding: 0 8px; font-size: 12.5px; }
.btn-block { width: 100%; height: 38px; }
.btn svg, .icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; flex: none; }

input[type="text"], input[type="search"], input[type="password"], input[type="number"], input[type="url"], input[type="date"], select, textarea {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  min-width: 0;
}
textarea { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); }
select { padding-right: 28px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 13px, calc(100% - 10px) 13px; background-size: 5px 5px; background-repeat: no-repeat; }
input[type="number"]::-webkit-inner-spin-button { opacity: 0.4; }

.login {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.login-box {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px 28px 24px;
  display: grid;
  gap: 16px;
}
.login-sub { margin: -6px 0 4px; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; height: 36px; }
.field textarea { height: auto; }
.field small { color: var(--muted); font-size: 12px; }
.form-err { margin: 0; min-height: 18px; color: var(--danger); font-size: 13px; }

.app { display: flex; flex-direction: column; height: 100%; }
.topbar {
  height: var(--topbar);
  flex: none;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.tabs { display: flex; height: 100%; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.tab-count { font: 500 11px var(--mono); color: var(--faint); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.home-chip { font: 500 12px var(--mono); color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; white-space: nowrap; }

.statbar {
  flex: none;
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow-x: auto;
  scrollbar-width: none;
}
.stat { padding: 10px 20px; border-right: 1px solid var(--line); min-width: 120px; cursor: default; }
.stat button { all: unset; cursor: pointer; display: block; }
.stat-v { font: 600 20px/1.1 var(--mono); letter-spacing: -0.02em; font-feature-settings: "tnum"; }
.stat-k { font-size: 11.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.stat-entry .stat-v { color: var(--entry); }
.stat-maybe .stat-v { color: var(--maybe); }
.stat-alert .stat-v { color: var(--danger); }
.stat-meta { margin-left: auto; padding: 10px 20px; font-size: 12px; color: var(--muted); display: flex; align-items: center; white-space: nowrap; }

.view { flex: 1; min-height: 0; }
.view-jobs { display: grid; grid-template-columns: 264px minmax(360px, 1fr) minmax(420px, 1.15fr); }
.view-page { overflow: auto; padding: 24px 28px 64px; }

.filters { border-right: 1px solid var(--line); overflow-y: auto; background: var(--surface); padding-bottom: 32px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.fgroup { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.search { position: relative; }
.search svg { position: absolute; left: 9px; top: 8px; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.search input { width: 100%; padding-left: 32px; height: 34px; }
.checks { display: grid; gap: 6px; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2); }
.check input { accent-color: var(--accent); margin: 0; }
.dot { width: 8px; height: 8px; display: inline-block; flex: none; }
.dot-entry { background: var(--entry); }
.dot-maybe { background: var(--maybe); }
.dot-exp { background: var(--exp); }
.seg { display: flex; border: 1px solid var(--line-strong); }
.seg button { flex: 1; height: 28px; border: 0; border-right: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-2); cursor: pointer; font-size: 12.5px; padding: 0 6px; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { height: 26px; padding: 0 9px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-2); font-size: 12.5px; cursor: pointer; }
.chips button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.chips-neg button.on { border-color: var(--danger); background: var(--danger-soft); text-decoration: line-through; text-decoration-color: var(--danger); }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text-2); }
.toggle em { font-style: normal; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span { width: 30px; height: 16px; border: 1px solid var(--line-strong); background: var(--surface-3); position: relative; flex: none; }
.toggle span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; background: var(--muted); transition: transform 0.12s; }
.toggle input:checked + span { background: var(--accent-soft); border-color: var(--accent); }
.toggle input:checked + span::after { transform: translateX(14px); background: var(--accent); }
.toggle input:focus-visible + span { outline: 2px solid var(--focus); }
.inline { display: flex; align-items: center; border: 1px solid var(--line-strong); background: var(--surface-2); }
.inline input { border: 0; width: 100%; background: transparent; }
.inline .prefix, .inline .suffix { color: var(--muted); padding: 0 8px; font-size: 13px; white-space: nowrap; }
.inline .prefix { padding-right: 0; }
.fgroup select { width: 100%; }

.results { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.results-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.count { color: var(--muted); font-size: 13px; flex: 1; }
.count b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.joblist { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; outline: none; }
.job {
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: 0 12px;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.job:hover { background: var(--surface); }
.job.sel { background: var(--surface-2); }
.job.sel::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.job-bar { grid-row: 1 / span 3; }
.job[data-tier="entry"] .job-bar { background: var(--entry); }
.job[data-tier="maybe"] .job-bar { background: var(--maybe); }
.job[data-tier="experienced"] .job-bar { background: var(--line-strong); }
.job-title { font-weight: 600; font-size: 14.5px; line-height: 1.3; color: var(--text); padding-left: 12px; }
.job.seen .job-title { color: var(--text-2); font-weight: 500; }
.job-sub { padding-left: 12px; color: var(--muted); font-size: 13px; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 0 6px; }
.job-sub .sep { color: var(--faint); }
.job-meta { padding-left: 12px; margin-top: 7px; display: flex; flex-wrap: wrap; gap: 5px; }
.job-side { grid-row: 1 / span 3; grid-column: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.job-pay { font: 500 13px var(--mono); color: var(--text); white-space: nowrap; }
.job-age { font-size: 12px; color: var(--faint); white-space: nowrap; }
.job-actions { display: flex; gap: 2px; opacity: 0; transition: opacity 0.1s; }
.job:hover .job-actions, .job.sel .job-actions, .job-actions.active { opacity: 1; }
.iconbtn { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.iconbtn:hover { border-color: var(--line-strong); color: var(--text); background: var(--surface-3); }
.iconbtn.on { color: var(--accent); }
.iconbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.iconbtn.on svg.fillable { fill: currentColor; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; font-size: 11.5px; font-weight: 500; border: 1px solid var(--line); color: var(--text-2); background: var(--surface); white-space: nowrap; }
.pill-entry { color: var(--entry); border-color: color-mix(in srgb, var(--entry) 40%, transparent); background: var(--entry-soft); }
.pill-maybe { color: var(--maybe); border-color: color-mix(in srgb, var(--maybe) 40%, transparent); background: var(--maybe-soft); }
.pill-exp { color: var(--exp); background: var(--exp-soft); }
.pill-new { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.pill-status { color: var(--text); border-color: var(--line-strong); background: var(--surface-3); }
.pill-warn { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-soft); }
.score { font: 600 11px var(--mono); }

.more { padding: 16px; text-align: center; color: var(--muted); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--text); font-weight: 600; margin: 0 0 6px; font-size: 15px; }

.detail { overflow-y: auto; background: var(--bg); min-height: 0; }
.detail-empty { padding: 64px 40px; color: var(--muted); max-width: 440px; }
.kbd-help { margin-top: 18px; font-size: 12.5px; line-height: 2; }
.detail-body { padding: 0 0 48px; }
.d-head { padding: 22px 28px 18px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 2; }
.d-back { display: none; }
.d-title { font-size: 21px; font-weight: 600; line-height: 1.25; margin: 0 0 6px; letter-spacing: -0.01em; }
.d-company { color: var(--text-2); font-size: 14px; }
.d-company .sep { color: var(--faint); margin: 0 6px; }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.d-section { padding: 18px 28px; border-bottom: 1px solid var(--line); }
.d-section h4 { margin: 0 0 12px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.fact { padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.fact:nth-child(3n) { border-right: 0; }
.fact-k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.fact-v { margin-top: 3px; font-weight: 500; overflow-wrap: anywhere; }
.fact-v.good { color: var(--entry); }
.fact-v.warn { color: var(--maybe); }
.fact-v.bad { color: var(--danger); }
.statusbar { display: flex; flex-wrap: wrap; border: 1px solid var(--line-strong); }
.statusbar button { flex: 1 1 auto; height: 32px; padding: 0 10px; border: 0; border-right: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-2); font-size: 12.5px; cursor: pointer; }
.statusbar button:last-child { border-right: 0; }
.statusbar button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.statusbar button[data-s="hidden"].on, .statusbar button[data-s="rejected"].on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--danger); }
.trackgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.trackgrid .field.wide { grid-column: 1 / -1; }
.signals { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sig { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px; background: var(--surface); font-size: 13px; }
.sig-w { font: 600 12px var(--mono); }
.sig-w.pos { color: var(--entry); }
.sig-w.neg { color: var(--danger); }
.scorebar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.scoretrack { flex: 1; height: 6px; background: var(--surface-3); position: relative; }
.scoretrack i { position: absolute; left: 0; top: 0; bottom: 0; }
.scoretrack b { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); font-size: 13.5px; line-height: 1.6; max-width: 76ch; }
.desc mark { background: var(--maybe-soft); color: var(--text); box-shadow: inset 0 -1px 0 var(--maybe); }
.desc mark.good { background: var(--entry-soft); box-shadow: inset 0 -1px 0 var(--entry); }
.alts { display: grid; gap: 4px; font-size: 13px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 72ch; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type="search"], .toolbar input[type="text"], .toolbar input[type="url"] { width: 260px; }
.tablewrap { border: 1px solid var(--line); background: var(--surface); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
td.num, th.num { text-align: right; font-family: var(--mono); font-feature-settings: "tnum"; white-space: nowrap; }
td .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.status-ok { color: var(--entry); }
.status-err { color: var(--danger); }
.status-off { color: var(--faint); }

.board { display: grid; grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--surface); border: 1px solid var(--line); min-height: 160px; display: flex; flex-direction: column; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.col-body { padding: 8px; display: grid; gap: 8px; align-content: start; }
.card { border: 1px solid var(--line); background: var(--surface-2); padding: 10px 12px; cursor: pointer; }
.card:hover { border-color: var(--line-strong); }
.card-t { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.card-s { color: var(--muted); font-size: 12px; margin-top: 3px; }
.card-f { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.due { color: var(--danger); }

.panel { border: 1px solid var(--line); background: var(--surface); padding: 18px 20px; margin-bottom: 16px; }
.panel h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.panel p { color: var(--muted); margin: 0 0 14px; max-width: 76ch; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 14px 20px; }
.form-actions { display: flex; gap: 8px; margin-top: 16px; align-items: center; }

.progs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.prog { border: 1px solid var(--line); background: var(--surface); padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.prog-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.prog-n { font-weight: 600; line-height: 1.3; }
.prog-wage { font: 600 15px var(--mono); color: var(--entry); white-space: nowrap; text-align: right; }
.prog-wage small { display: block; font: 400 11px var(--sans); color: var(--muted); }
.occ { display: grid; gap: 3px; font-size: 12.5px; color: var(--text-2); }
.occ div { display: flex; justify-content: space-between; gap: 10px; }
.occ span:last-child { font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.prog-c { font-size: 12.5px; color: var(--muted); display: grid; gap: 2px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 10px 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  max-width: calc(100vw - 32px);
  z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: var(--danger); }

.only-mobile { display: none; }
.skeleton { height: 64px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, var(--surface), transparent) 0 0 / 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1280px) {
  .view-jobs { grid-template-columns: 240px minmax(320px, 1fr) minmax(380px, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3n) { border-right: 1px solid var(--line); }
  .fact:nth-child(2n) { border-right: 0; }
}

@media (max-width: 980px) {
  .view-jobs { grid-template-columns: 1fr; position: relative; }
  .filters {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(340px, 88vw);
    z-index: 30;
    transform: translateX(-102%);
    transition: transform 0.18s;
    box-shadow: var(--shadow);
  }
  .filters.open { transform: none; }
  .only-mobile { display: inline-flex; }
  .results { border-right: 0; }
  .detail { position: fixed; inset: 0; z-index: 40; display: none; }
  .detail.open { display: block; }
  .d-back { display: inline-flex; margin-bottom: 10px; }
  .detail-empty { display: none; }
  .topbar { gap: 12px; padding: 0 12px; }
  .topbar .brand { font-size: 0; gap: 0; }
  .home-chip { display: none; }
  .stat { padding: 8px 14px; min-width: 96px; }
  .stat-v { font-size: 17px; }
  .stat-meta { display: none; }
  .view-page { padding: 18px 16px 48px; }
  .d-head, .d-section { padding-left: 16px; padding-right: 16px; }
  .trackgrid, .form-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar input[type="search"], .toolbar input[type="text"], .toolbar input[type="url"] { width: 100%; }
  .job-actions { opacity: 1; }
  .board { grid-template-columns: repeat(6, minmax(250px, 1fr)); }
}

@media (max-width: 520px) {
  .job { grid-template-columns: 4px 1fr; }
  .job-side { grid-column: 2; grid-row: auto; flex-direction: row; align-items: center; justify-content: space-between; padding-left: 12px; margin-top: 8px; }
  .progs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
