:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --panel: #ffffff;
  --text: #12161f;
  --muted: #667085;
  --border: #e3e7ee;
  --accent: #3157d5;
  --accent-soft: #eef2ff;
  --good: #147d64;
  --warn: #9a6700;
  --bad: #b42318;
  --shadow: 0 8px 30px rgba(16,24,40,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --panel: #151b23;
    --text: #eef2f7;
    --muted: #9ba7b6;
    --border: #29313d;
    --accent: #8ea7ff;
    --accent-soft: #1e2947;
    --good: #63d6b5;
    --warn: #f0c56a;
    --bad: #ff8f86;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
.wrap { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 64px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: -.045em; margin: 0; }
.sub { max-width: 700px; color: var(--muted); font-size: 16px; line-height: 1.55; margin: 14px 0 0; }
.status { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 18px; }
.stats > div { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.stats span { display: block; font-size: 28px; font-weight: 750; letter-spacing: -.03em; }
.stats small { color: var(--muted); font-size: 12px; }
.controls { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.controls label { min-width: 0; }
.controls span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin: 0 0 6px 2px; text-transform: uppercase; letter-spacing: .07em; }
input, select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; outline: none; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.result-line { margin: 22px 2px 10px; font-size: 13px; color: var(--muted); }
#errorBadge { color: var(--warn); margin-left: 8px; }
.jobs { display: grid; gap: 12px; }
.job { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.job-top { display: grid; grid-template-columns: 80px 1fr auto; gap: 18px; align-items: start; }
.score { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 26px; font-weight: 800; }
.company { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.job h2 { font-size: 20px; letter-spacing: -.02em; margin: 0 0 7px; }
.meta { display: flex; flex-wrap: wrap; gap: 7px 12px; color: var(--muted); font-size: 13px; }
.verdict { font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 7px 9px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }
.verdict.now { color: var(--good); }
.verdict.skip { color: var(--bad); }
.rationale { margin: 16px 0 12px 90px; line-height: 1.5; font-size: 14px; }
.tags { margin-left: 90px; display: flex; gap: 7px; flex-wrap: wrap; }
.tag { padding: 5px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.tag.risk { color: var(--warn); }
.actions { margin: 16px 0 0 90px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn { appearance: none; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 650; padding: 9px 12px; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--text); color: var(--panel); border-color: var(--text); }
.btn.applied { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, var(--border)); }
.btn.ignore { color: var(--muted); }
.new-pill { color: var(--good); font-weight: 750; }
.empty { margin-top: 14px; padding: 40px; text-align: center; border: 1px dashed var(--border); border-radius: 16px; color: var(--muted); }
footer { margin-top: 30px; color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 760px) {
  .wrap { width: min(100% - 20px, 1100px); padding-top: 26px; }
  .hero { display: block; }
  .status { text-align: left; margin-top: 14px; white-space: normal; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .controls { grid-template-columns: 1fr 1fr; }
  .search { grid-column: 1 / -1; }
  .job-top { grid-template-columns: 58px 1fr; gap: 12px; }
  .score { width: 56px; height: 56px; border-radius: 14px; font-size: 21px; }
  .verdict { grid-column: 2; justify-self: start; }
  .rationale, .tags, .actions { margin-left: 0; }
}
