@font-face {
  font-family: "Geist Mono";
  src: url("/static/fonts/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #161616;
  --bg-soft: #1d1d1d;
  --border: #2a2a2a;
  --text: #e6e6e6;
  --muted: #888888;
  --dim: #555555;
  --accent: #00d8a8;
  --warn: #febc2e;
  --error: #ff5f57;
  --select: #1f3a3530;
  --s1: 4px;  --s2: 8px;  --s3: 12px;  --s4: 16px;  --s6: 24px;  --s8: 32px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  /* Sans-serif for body (CodexMonitor look). Code/pre still get the
     monospace stack via .msg-body code/pre rules below. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Text",
               "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  height: 100%;
  height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
code, pre, .mono {
  font-family: "Geist Mono", "JetBrains Mono", "SF Mono", Menlo, monospace;
}

/* Neutral text selection — accent-tint over green looked harsh.
   White-with-low-opacity reads cleanly on any background colour. */
::selection { background: rgba(255, 255, 255, 0.18); color: inherit; }
::-moz-selection { background: rgba(255, 255, 255, 0.18); color: inherit; }

button { background: none; border: none; color: inherit; cursor: pointer;
         font-family: inherit; font-size: inherit; }

a { color: var(--accent); text-decoration: none; }
/* No hover underline anywhere (2026-07-06 product call): links stay
   distinguishable by the accent color alone. */
a:hover { text-decoration: none; }

/* -- login -- */
.login-screen { display: flex; align-items: center; justify-content: center;
                min-height: 100dvh; padding: var(--s4); }
.login-card { display: flex; flex-direction: column; align-items: center; gap: var(--s4); max-width: 360px; }
.logo { color: var(--accent); font-size: 24px; font-weight: 600; letter-spacing: -0.5px; }
.subtitle { color: var(--muted); font-size: 13px; }
.dim { color: var(--dim); font-size: 12px; text-align: center; }

/* -- app shell — sidebar + main pane -- */
.app { display: flex; flex-direction: row; height: 100dvh; }

.sidebar {
  width: 220px; flex-shrink: 0;
  display: flex; flex-direction: column;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  padding: var(--s3) 0;
}
.sidebar-logo {
  padding: var(--s2) var(--s4) var(--s4);
  color: var(--text); font-weight: 600; font-size: 15px;
  letter-spacing: -0.2px;
  display: flex; align-items: center; gap: var(--s2);
}
.sidebar-logo::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.sidebar-section-label {
  padding: var(--s4) var(--s4) var(--s1);
  color: var(--dim); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 1px; padding: 0 var(--s2); }
.sidebar-link {
  display: flex; align-items: center; gap: var(--s2);
  padding: 8px var(--s3); border-radius: 6px;
  color: var(--muted); font-size: 13px; text-decoration: none;
  transition: background 80ms ease-out, color 80ms ease-out;
}
.sidebar-link:hover { background: rgba(255,255,255,0.04); color: var(--text); text-decoration: none; }
.sidebar-link.active { background: rgba(0,216,168,0.10); color: var(--accent); }
.sidebar-icon { font-size: 12px; opacity: 0.7; }
.sidebar-link.active .sidebar-icon { opacity: 1; }
.sidebar-footer { padding: var(--s3) var(--s2) var(--s2); border-top: 1px solid var(--border); }

/* min-height: 0 lets the .messages child's overflow-y: auto actually
   trigger scrolling instead of expanding the column past viewport. */
.main-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.topbar { display: flex; align-items: center; gap: var(--s3); height: 44px;
          padding: 0 var(--s4); background: var(--bg);
          border-bottom: 1px solid var(--border); flex-shrink: 0; }
.topbar-title { color: var(--text); font-size: 13px; font-weight: 500; }
.logout-form { margin: 0; padding: 0; }
.logout-link { color: var(--muted); font-size: 13px; padding: 8px var(--s3); border-radius: 6px; width: 100%; text-align: left; display: flex; align-items: center; gap: var(--s2); }
.logout-link:hover { background: rgba(255,255,255,0.04); color: var(--text); }

/* -- messages -- */
/* Comfortable left/right gutters; centered content column for readability
   on wide screens (matches the CodexMonitor layout). */
.messages {
  flex: 1; overflow-y: auto;
  padding: var(--s6) var(--s8);
  display: flex; flex-direction: column; gap: var(--s4);
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}
.msg { animation: fade-in 80ms ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.msg-meta { color: var(--muted); font-size: 12px; margin-bottom: var(--s1); }
.role-marker { color: var(--accent); }
.role-name { }
.msg-ts { color: var(--dim); }
/* No pre-wrap — markdown renders to <p> tags; preserving raw whitespace
   makes every \n in the HTML a visible blank line. break-word still keeps
   long URLs/code from overflowing. */
.msg-body { color: var(--text); word-wrap: break-word; overflow-wrap: anywhere; }
.msg-body > p { margin: 0; }
.msg-body > p + p { margin-top: var(--s2); }
/* Telegram convention: `*foo*` means BOLD, not italic. Markdown-it
   parses single asterisks as <em> per CommonMark, but the agent's
   output is targeted at Telegram, so render <em> as bold to keep
   visual parity. Pure-italic semantics are rarely needed by the
   agent and not worth a markdown preprocessor. */
.msg-body em, .msg-body i { font-style: normal; font-weight: 600; color: var(--text); }
.msg-body strong, .msg-body b { font-weight: 600; }
.msg-body code { background: #1a1a1a; padding: 2px 4px; color: var(--accent); border-radius: 2px; }
.msg-body .chat-command {
  background: #1a1a1a;
  padding: 2px 4px;
  color: var(--accent);
  border-radius: 2px;
  cursor: pointer;
  font-family: "Geist Mono", "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-weight: 400;
  transition: background 80ms ease-out, box-shadow 80ms ease-out;
}
.msg-body .chat-command:hover {
  background: rgba(0,216,168,0.14);
  box-shadow: 0 0 0 1px rgba(0,216,168,0.25);
}
.msg-body pre { background: #0f0f0f; padding: var(--s3); margin: var(--s2) 0; overflow-x: auto;
                font-size: 12px; border: 1px solid var(--border); border-radius: 3px; }
.msg-body pre code { background: none; padding: 0; color: inherit; }

/* Tables (web-only — agent emits markdown, server-side renderer turns
   it into <table>; bot side renders as plain text). */
.msg-body table {
  border-collapse: collapse;
  margin: var(--s2) 0;
  font-size: 12px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.msg-body thead {
  background: var(--bg-soft);
  color: var(--muted);
}
.msg-body th, .msg-body td {
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.msg-body th { font-weight: 600; color: var(--text); }
.msg-body tr:last-child td { border-bottom: none; }
.msg-body tr:hover td { background: rgba(255,255,255,0.02); }

.msg-body hr { border: none; border-top: 1px solid var(--border); margin: var(--s3) 0; }

.tool-line { color: var(--warn); font-style: italic; }
.tool-line.done { color: var(--accent); font-style: normal; }

/* Compacted-history digest — prepended above the oldest message once
   infinite-scroll-up is exhausted. Dim + dashed top rule so it reads as a
   summary of older turns, not a real message. */
.msg-digest {
  border-top: 1px dashed var(--border);
  margin-bottom: var(--s4);
  padding-top: var(--s4);
  color: var(--muted);
  font-size: 13px;
}
.msg-digest-label {
  color: var(--dim); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: var(--s2);
}
.msg-digest .msg-body { color: var(--muted); }

/* Compaction marker: a thin centered divider at the hot→archive seam, drawn
   once by app.js when scroll-up first crosses into archived (compacted) rows.
   Messages above it were moved into chat_messages_archive by the daily
   compactor; everything below is the live window. */
.compaction-marker {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: var(--s4) 0;
  color: var(--dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  justify-content: center;
}
.compaction-marker::before,
.compaction-marker::after {
  content: "";
  flex: 1;
  border-top: 1px dashed var(--border);
}

/* User messages: right-aligned, accent-tinted bubble. Agent / tool /
   system stay left-aligned plain text in codex-style. */
.msg-user {
  align-self: flex-end;
  max-width: 78%;
}
.msg-user .msg-meta { text-align: right; }
.msg-user .msg-body {
  background: rgba(0, 216, 168, 0.10);
  border: 1px solid rgba(0, 216, 168, 0.20);
  color: var(--text);
  padding: var(--s2) var(--s4);
  border-radius: 16px;
  /* speech-bubble corner pointing toward the composer */
  border-bottom-right-radius: 6px;
  display: inline-block;
}

/* "thinking…" three-dot animation while agent is producing the first event */
.thinking-dots { display: inline-flex; gap: 3px; color: var(--muted); }
.thinking-dots span {
  animation: thinking-blink 1.2s ease-in-out infinite;
  font-weight: 600;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes thinking-blink {
  0%, 80%, 100% { opacity: 0.2; }
  40%           { opacity: 1; }
}

/* -- composer (pill-shaped, codex-monitor look) -- */
.composer {
  display: flex; align-items: flex-end; gap: var(--s2);
  margin: var(--s4) auto var(--s4);
  padding: var(--s2) var(--s2) var(--s2) var(--s3);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 22px;
  flex-shrink: 0;
  width: calc(100% - var(--s8));
  max-width: 920px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px rgba(255,255,255,0.02) inset;
  transition: border-color 100ms ease-out, box-shadow 100ms ease-out;
}
.composer:focus-within {
  border-color: rgba(0,216,168,0.35);
  box-shadow: 0 4px 20px rgba(0,0,0,0.40), 0 0 0 3px rgba(0,216,168,0.10);
}
.composer #attach-btn, .composer #send-btn {
  width: 32px; height: 32px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 50%; flex-shrink: 0;
  color: var(--muted); font-size: 14px;
}
.composer #attach-btn:hover, .composer #send-btn:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.composer #send-btn { background: var(--accent); color: #061a14; }
.composer #send-btn:hover { background: #00f0bb; color: #061a14; }
.composer textarea {
  flex: 1; background: transparent; border: none; resize: none;
  color: var(--text); font: inherit; line-height: 1.5;
  min-height: 32px; max-height: 144px;
  caret-color: var(--accent); padding: 6px 4px;
}
.composer textarea:focus { outline: none; }
.composer textarea::placeholder { color: var(--dim); }

/* -- drop overlay -- */
.drop-overlay { position: fixed; inset: 0; background: rgba(17,17,17,0.85);
                display: none; align-items: center; justify-content: center;
                pointer-events: none; z-index: 100;
                transition: opacity 120ms ease-out; }
.drop-overlay.visible { display: flex; }
.drop-overlay-inner { color: var(--accent); font-size: 14px;
                      padding: var(--s8); border: 2px dashed var(--accent);
                      border-radius: 4px; }

/* -- required profile intake chat dialog -- */
.intake-chat-card {
  border: 1px solid rgba(0,216,168,0.22);
  border-radius: 14px;
  padding: var(--s4);
  background: rgba(0,216,168,0.045);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
  max-width: 760px;
}
.intake-chat-card + .intake-chat-card { margin-top: var(--s2); }
.intake-chat-card h3 {
  margin: 0 0 var(--s2);
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}
.intake-chat-card p { margin: 0; color: var(--text); }
.intake-chat-card p + p { margin-top: var(--s2); }
.intake-chat-card-info {
  border-color: rgba(254,188,46,0.28);
  background: rgba(254,188,46,0.06);
}
.intake-chat-card-error {
  border-color: rgba(255,95,87,0.34);
  background: rgba(255,95,87,0.08);
}
.intake-chat-eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: var(--s1);
}
.intake-chat-hint {
  color: var(--muted) !important;
  font-size: 13px;
}
.intake-chat-missing {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s3);
}
.intake-chat-missing span {
  color: var(--warn);
  background: rgba(254,188,46,0.10);
  border: 1px solid rgba(254,188,46,0.24);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}
.intake-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s3);
}
.intake-choice {
  border: 1px solid rgba(0,216,168,0.30);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--accent);
  background: rgba(0,216,168,0.08);
  font-size: 13px;
  transition: background 80ms ease-out, border-color 80ms ease-out, color 80ms ease-out;
}
.intake-choice:hover {
  color: #061a14;
  background: var(--accent);
  border-color: var(--accent);
}
.intake-choice:disabled {
  cursor: default;
  opacity: 0.45;
}
.intake-chat-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0,216,168,0.30);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--accent);
  background: rgba(0,216,168,0.06);
}
.intake-chat-link:hover {
  background: rgba(0,216,168,0.12);
  text-decoration: none;
}

/* -- sidebar badges -- */
.sidebar-badge {
  margin-left: auto; font-size: 11px; font-weight: 600;
  min-width: 20px; text-align: center;
  padding: 1px 6px; border-radius: 10px;
  background: rgba(255,255,255,0.06); color: var(--muted);
}
.sidebar-link.active .sidebar-badge { background: rgba(0,216,168,0.15); color: var(--accent); }
.sidebar-badge.warn { background: rgba(254,188,46,0.15); color: var(--warn); }
.sidebar-spacer { flex: 1; }

/* -- view toggle -- */
.view { display: none; }
.view.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }

/* -- pipeline list -- */
.pipeline-list {
  flex: 1; overflow-y: auto;
  padding: var(--s6) var(--s8);
  max-width: 720px; margin: 0 auto; width: 100%;
}
.pipeline-empty { color: var(--dim); font-size: 13px; padding: var(--s4) 0; }
.pipeline-error { color: var(--error); font-size: 13px; padding: var(--s4) 0; }
.pipeline-error a { color: var(--accent); cursor: pointer; }
.topbar-count { color: var(--dim); font-size: 13px; }

/* -- job card -- */
.job-card {
  border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: var(--s3); cursor: pointer;
  transition: border-color 80ms ease-out;
}
.job-card:hover { border-color: #3a3a3a; }
.job-card.expanded { border-color: rgba(0,216,168,0.25); }
.job-card-header {
  display: flex; align-items: baseline; gap: var(--s2);
  padding: var(--s3) var(--s4);
}
.job-seq { color: var(--dim); font-size: 12px; font-weight: 600; min-width: 28px; }
.job-title { color: var(--text); font-size: 13px; font-weight: 500; flex: 1; }
.job-company { color: var(--muted); }
.job-meta {
  display: flex; align-items: center; gap: var(--s3);
  padding: 0 var(--s4) var(--s3); font-size: 12px; color: var(--dim);
}
.job-score { color: var(--accent); font-weight: 600; }
.job-stale { color: var(--warn); font-size: 11px; font-weight: 600; }
.job-followup { color: var(--accent); font-size: 11px; font-weight: 600; }

/* expanded detail */
.job-detail {
  display: none; padding: 0 var(--s4) var(--s4);
  border-top: 1px solid var(--border);
}
.job-card.expanded .job-detail { display: block; }
.job-detail-row { padding: var(--s2) 0; font-size: 12px; }
.job-detail-label { color: var(--dim); margin-bottom: 2px; }
.job-detail-value { color: var(--muted); }
.job-actions { display: flex; gap: var(--s2); padding-top: var(--s3); flex-wrap: wrap; }
.job-action {
  font-size: 12px; padding: 6px 12px; border-radius: 6px;
  border: 1px solid var(--border); color: var(--muted);
  transition: all 80ms ease-out;
}
.job-action:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,216,168,0.06); }
.job-action.danger:hover { border-color: var(--error); color: var(--error); background: rgba(255,95,87,0.06); }
.job-action.warn:hover { border-color: var(--warn); color: var(--warn); background: rgba(254,188,46,0.06); }

/* -- per-card documents expander -- */
.job-docs { padding-top: var(--s3); }
.job-docs-toggle {
  font-size: 12px; padding: 6px 12px; border-radius: 6px;
  border: 1px solid var(--border); color: var(--muted); background: none;
  cursor: pointer; transition: all 80ms ease-out;
}
.job-docs-toggle:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,216,168,0.06); }
.job-docs-list { padding-top: var(--s2); }

/* -- artifact links (library + card documents) -- */
.library-group-label {
  color: var(--dim); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  margin: var(--s4) 0 var(--s2);
}
.artifact-link {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s3); border-radius: 6px;
  font-size: 13px; color: var(--text); text-decoration: none;
  transition: background 80ms ease-out;
}
.artifact-link:hover { background: rgba(0,216,168,0.06); }
.artifact-icon { flex: none; }
.artifact-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artifact-time { flex: none; color: var(--dim); font-size: 11px; }

/* -- scan viewer table -- */
.scan-meta { color: var(--dim); font-size: 13px; margin-bottom: var(--s4); }
.scan-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.scan-table th {
  text-align: left; color: var(--dim); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: var(--s2) var(--s3); border-bottom: 1px solid var(--border);
}
.scan-table td { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--border); color: var(--muted); }
.scan-table a { color: var(--accent); }

/* -- mobile -- */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .app { flex-direction: column; }
  .sidebar {
    width: 100%; flex-direction: row; align-items: center;
    padding: var(--s2) var(--s3); border-right: none;
    border-bottom: 1px solid var(--border);
    gap: var(--s3); overflow-x: auto;
  }
  .sidebar-logo { padding: 0; flex: 0 0 auto; }
  .sidebar-section-label { display: none; }
  .sidebar-nav { flex-direction: row; flex: 0 0 auto; padding: 0; gap: var(--s2); }
  .sidebar-spacer { display: none; }
  .sidebar-footer { border-top: none; padding: 0; }
  .messages { padding: var(--s3); gap: var(--s3); }
  .pipeline-list { padding: var(--s3); }
  .composer { padding-bottom: max(var(--s2), env(safe-area-inset-bottom)); }
  .intake-chat-card { max-width: none; }
  .intake-choice-row { flex-direction: column; align-items: stretch; }
  .intake-choice { width: 100%; text-align: left; }
}

/* ── Message content blocks (text / tool_use / tool_result) ──────────
   Each chat_messages row is a list of Anthropic content blocks; views.py
   renders one HTML node per block (inside .msg-body). The block-tool-*
   classes hide raw-file dumps inside a collapsible so a PDF-extracted
   CV with per-word newlines doesn't visually explode the chat surface. */
.msg-body > .block-text + .block-text,
.msg-body > .block-text + .block-tool-use,
.msg-body > .block-text + .block-tool-result,
.msg-body > .block-tool-use + .block-text,
.msg-body > .block-tool-use + .block-tool-use,
.msg-body > .block-tool-use + .block-tool-result,
.msg-body > .block-tool-result + .block-text,
.msg-body > .block-tool-result + .block-tool-use,
.msg-body > .block-tool-result + .block-tool-result {
  margin-top: var(--s2);
}
.msg-body .block-tool-use {
  color: var(--muted); font-size: 13px;
}
.msg-body .block-tool-use code {
  background: none; padding: 0; color: var(--muted);
}
.msg-body .block-tool-result > summary {
  color: var(--muted); font-size: 13px; cursor: pointer;
  list-style: none; user-select: none;
}
.msg-body .block-tool-result > summary::-webkit-details-marker { display: none; }
.msg-body .block-tool-result > summary::before {
  content: '▸ '; display: inline-block;
}
.msg-body .block-tool-result[open] > summary::before {
  content: '▾ ';
}
.msg-body .block-tool-result > pre {
  background: #0f0f0f; padding: var(--s3); margin: var(--s2) 0 0 0;
  max-height: 280px; overflow: auto;
  white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere;
  font-size: 12px; line-height: 1.45;
  border: 1px solid var(--border); border-radius: 2px;
}
.msg-body .block-tool-result.error > summary { color: #e88; }

/* Sentinel for infinite-scroll-up. Zero-height by default; grows to a
   small spinner row while a /chat/messages fetch is in flight.
   IntersectionObserver in app.js fires the fetch when it enters view. */
.load-more-sentinel { height: 1px; margin: 0; padding: 0; }
.load-more-sentinel.loading { height: 24px; }
.load-more-sentinel.loading::after {
  content: '↻ loading earlier messages…';
  display: block; text-align: center; color: var(--dim); font-size: 12px;
  padding: var(--s2) 0;
}

/* -- jobs feed (2026-07) -- */
.jobs-page { display: flex; gap: var(--s6); padding: var(--s6) var(--s8);
  overflow-y: auto; flex: 1; min-height: 0; align-items: flex-start; flex-wrap: wrap; }
.jobs-head { width: 100%; display: flex; align-items: baseline; gap: var(--s4); }
.jobs-head h1 { font-size: 16px; color: var(--text); margin: 0; }
.jobs-stats, .jobs-count { color: var(--dim); font-size: 12px; }
.jobs-filters { width: 240px; flex-shrink: 0; display: flex; flex-direction: column;
  gap: var(--s4); }
.jobs-facet { border: 1px solid var(--border); border-radius: 8px;
  padding: var(--s2) var(--s3) var(--s3); }
.jobs-facet legend { color: var(--dim); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 0 var(--s1); }
.jobs-hint { color: var(--dim); text-transform: none; letter-spacing: 0; margin-left: var(--s1); }
.jobs-check { display: block; color: var(--muted); font-size: 13px; padding: 2px 0; }
.jobs-row { display: flex; align-items: center; gap: var(--s2); color: var(--muted);
  font-size: 13px; padding: 2px 0; }
.jobs-input { background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); font-size: 13px; padding: 6px 8px; width: 100%; }
.jobs-input.narrow { width: 90px; }
.jobs-tags { display: flex; flex-wrap: wrap; gap: var(--s1); padding-top: var(--s2); }
.jobs-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px;
  color: var(--accent); background: rgba(0,216,168,0.08); border-radius: 10px;
  padding: 2px 8px; }
.jobs-tag-x { background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 12px; padding: 0; }
.jobs-actions { display: flex; gap: var(--s2); }
.jobs-results-pane { flex: 1; min-width: 320px; }
.jobs-card-link { display: block; text-decoration: none; }
.jobs-chip { border: 1px solid var(--border); border-radius: 10px; padding: 1px 8px;
  font-size: 11px; color: var(--muted); }
.jobs-chip.dim { color: var(--dim); }
.jobs-chip.warn { color: var(--warn); border-color: rgba(254,188,46,0.35); }
.jobs-age { color: var(--dim); margin-left: auto; }
.jobs-src { color: var(--dim); font-size: 11px; }
.jobs-banner { border: 1px solid rgba(254,188,46,0.35); color: var(--warn);
  border-radius: 8px; padding: var(--s2) var(--s3); margin-bottom: var(--s3);
  font-size: 13px; }
.jobs-desc-text { white-space: pre-wrap; color: var(--muted); font-size: 13px;
  max-width: 72ch; }
.jobs-detail-page { padding: var(--s6) var(--s8); overflow-y: auto; max-width: 860px; }
.jobs-back { margin: 0 0 var(--s4); font-size: 13px; }
.jobs-detail-head h1 { font-size: 16px; color: var(--text); margin: 0 0 var(--s2); }
.jobs-detail-req h2, .jobs-detail-desc h2 { font-size: 13px; color: var(--dim);
  text-transform: uppercase; letter-spacing: 0.08em; margin: var(--s6) 0 var(--s2); }
.jobs-facet.is-locked, .jobs-row.is-locked, .jobs-input.is-locked { opacity: 0.45; }
.jobs-sort { margin-left: auto; display: flex; gap: var(--s2); }
.jobs-sort .job-action.active { border-color: var(--accent); color: var(--accent); }
@media (max-width: 768px) {
  .jobs-page { flex-direction: column; padding: var(--s4); }
  .jobs-filters { width: 100%; }
}
