/* JD Match AI — v2 */
:root {
  --bg: #06060a;
  --bg-2: #0a0a12;
  --surface: rgba(255, 255, 255, 0.042);
  --surface-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ececf5;
  --muted: #9a9cb2;
  --faint: #6c6e82;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --accent-3: #f0abfc;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --font: "Inter", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(94, 234, 212, 0.25); }

.aurora {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 900px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 18% 8%, rgba(94, 234, 212, 0.16), transparent 65%),
    radial-gradient(760px 520px at 78% 0%, rgba(129, 140, 248, 0.19), transparent 62%),
    radial-gradient(520px 420px at 55% 30%, rgba(240, 171, 252, 0.10), transparent 70%);
  filter: blur(18px);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 3px 3px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 60%);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 26px;
  background: rgba(6, 6, 10, 0.66);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}
.nav::after {
  content: "";
  position: absolute;
  left: 26px; right: 26px; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
  color: #05201c;
  background: linear-gradient(135deg, var(--accent), #a5b4fc);
  box-shadow: 0 6px 18px rgba(94, 234, 212, 0.28);
}
.brand-name b { color: var(--accent); }
.brand-chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 999px;
}
.nav-links { display: flex; gap: 20px; margin-left: 12px; color: var(--muted); font-size: 13.5px; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); background: var(--surface);
  padding: 5px 11px; border-radius: 999px;
  font-family: var(--mono);
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.token-pop {
  position: fixed;
  top: 62px; right: max(20px, calc((100vw - 1220px) / 2 + 26px));
  z-index: 60;
  width: 300px;
  display: grid; gap: 9px;
  padding: 16px;
  background: #101019;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 12.5px;
  color: var(--muted);
}
.token-pop input {
  padding: 9px 11px; border-radius: 9px;
  background: var(--bg-2); border: 1px solid var(--line);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #a5b4fc);
  border-color: transparent;
  color: #06231f;
  box-shadow: 0 10px 28px rgba(94, 234, 212, 0.22);
}
.btn-primary:hover { background: linear-gradient(135deg, #7ff0dd, #b3bdfd); box-shadow: 0 12px 34px rgba(129, 140, 248, 0.32); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 10px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }

/* ---------- layout ---------- */
.shell { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 26px 80px; }
section { scroll-margin-top: 84px; }

.hero { padding: 76px 0 46px; max-width: 860px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.gradient-text {
  background: linear-gradient(100deg, var(--accent) 0%, #a5b4fc 55%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 16px; max-width: 640px; margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-top: 40px;
}
.stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
}
.stat b { display: block; font-size: 24px; letter-spacing: -0.02em; font-weight: 700; }
.stat span { font-size: 12px; color: var(--muted); }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pad { padding: 24px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-head h2 { font-size: 19px; letter-spacing: -0.015em; }
.card-head p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.step {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 6px;
}
.engine-badge {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); border: 1px solid rgba(94, 234, 212, 0.3);
  background: rgba(94, 234, 212, 0.08);
  padding: 4px 9px; border-radius: 999px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* ---------- dropzone ---------- */
.dropzone { position: relative; border-radius: 14px; }
.dropzone textarea {
  width: 100%;
  min-height: 236px;
  resize: vertical;
  padding: 18px 18px 40px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  background: rgba(0, 0, 0, 0.28);
  line-height: 1.65;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone textarea:focus { border-color: rgba(94, 234, 212, 0.55); background: rgba(0, 0, 0, 0.36); }
.dropzone.dragover textarea { border-color: var(--accent); background: rgba(94, 234, 212, 0.06); }
.drop-hint {
  position: absolute; left: 18px; right: 18px; bottom: 12px;
  display: flex; align-items: center; gap: 7px;
  color: var(--faint); font-size: 11.5px;
  pointer-events: none;
}
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.toolbar .btn-primary { margin-left: auto; }
.hint-line { color: var(--faint); font-size: 11.5px; margin-top: 10px; }

.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track {
  width: 34px; height: 19px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  position: relative; transition: background 0.18s ease, border-color 0.18s ease;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--muted); transition: transform 0.18s ease, background 0.18s ease;
}
.switch input:checked + .track { background: rgba(94, 234, 212, 0.18); border-color: rgba(94, 234, 212, 0.5); }
.switch input:checked + .track::after { transform: translateX(15px); background: var(--accent); }

.file-picker { cursor: pointer; }
.file-picker input { display: none; }

/* ---------- results ---------- */
.results { min-height: 420px; }
.empty { display: grid; place-items: center; text-align: center; gap: 6px; padding: 70px 0 50px; color: var(--muted); }
.empty p { color: var(--text); font-weight: 600; margin-top: 16px; }
.empty span { font-size: 12.5px; color: var(--faint); }
.empty-orb {
  width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(94,234,212,0.9), rgba(129,140,248,0.5) 45%, rgba(129,140,248,0.05) 72%);
  filter: blur(0.5px);
  box-shadow: 0 0 60px rgba(94, 234, 212, 0.25);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.candidate {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 14px;
}
.avatar {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px; color: #06231f;
  background: linear-gradient(135deg, var(--accent), #a5b4fc);
}
.candidate .who { min-width: 140px; }
.candidate .who b { display: block; font-size: 15px; }
.candidate .who span { font-size: 12px; color: var(--muted); }
.candidate .meta { display: flex; flex-wrap: wrap; gap: 7px; margin-left: auto; }
.tag {
  font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 3px 9px; background: rgba(255,255,255,0.03);
}
.summary {
  padding: 15px 17px; border-radius: 13px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: linear-gradient(150deg, rgba(94, 234, 212, 0.085), rgba(129, 140, 248, 0.05));
  font-size: 13px; color: #cfd6e6; white-space: pre-line;
  margin-bottom: 16px;
}
.summary b { color: var(--accent); }

.match-list { display: grid; gap: 12px; }
.match {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 14px;
  background: rgba(255, 255, 255, 0.028);
  transition: border-color 0.16s ease, background 0.16s ease;
  animation: rise 0.35s ease both;
}
.match:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.045); }
.match:first-child { border-color: rgba(94, 234, 212, 0.32); background: linear-gradient(160deg, rgba(94,234,212,0.075), rgba(255,255,255,0.02)); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.match-top { display: flex; gap: 14px; align-items: center; }
.rank {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  color: var(--muted); border: 1px solid var(--line);
}
.match:first-child .rank { color: #06231f; background: var(--accent); border-color: transparent; font-weight: 700; }
.match .title-wrap { min-width: 0; flex: 1; }
.match .title { font-weight: 650; font-size: 14.5px; letter-spacing: -0.01em; }
.match .sub { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.match .sub a { color: var(--accent); border-bottom: 1px dotted rgba(94,234,212,0.4); }
.ring { flex: none; width: 58px; height: 58px; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
}
.match .reason { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.match .chips { margin-top: 10px; }
.signals { display: flex; gap: 14px; margin-top: 11px; flex-wrap: wrap; }
.signal { min-width: 86px; flex: 1; }
.signal label { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); font-family: var(--mono); }
.signal .bar { height: 3px; border-radius: 99px; background: rgba(255,255,255,0.08); margin-top: 4px; overflow: hidden; }
.signal .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.match .explain { margin-top: 10px; font-size: 12px; color: var(--faint); display: none; white-space: pre-line; }
.match.open .explain { display: block; }
.match-toggle {
  margin-top: 10px; background: none; border: none; padding: 0;
  color: var(--muted); font-size: 11.5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.match-toggle:hover { color: var(--accent); }

.advice {
  margin-top: 18px; padding: 18px;
  border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  font-size: 13px; color: #cfd6e6;
}
.advice h4 { margin: 12px 0 6px; font-size: 13.5px; color: var(--accent); }
.advice ul { margin: 0; padding-left: 18px; }
.advice li { margin: 4px 0; }
.advice p { margin: 6px 0; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}
.chip.hit { color: #8ef0cf; border-color: rgba(52, 211, 153, 0.32); background: rgba(52, 211, 153, 0.09); }
.chip.gap { color: #fda4b3; border-color: rgba(251, 113, 133, 0.3); background: rgba(251, 113, 133, 0.08); }
.chip.filter { cursor: pointer; transition: all 0.15s ease; }
.chip.filter:hover { border-color: var(--line-strong); color: var(--text); }
.chip.filter.active { color: #06231f; background: var(--accent); border-color: transparent; font-weight: 600; }

/* ---------- sections ---------- */
.section { margin-top: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { font-size: 26px; letter-spacing: -0.025em; }
.section-head p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.section-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; height: 38px; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25);
  color: var(--faint); min-width: 240px;
}
.search input { background: none; border: none; outline: none; width: 100%; font-size: 13px; }
.search input::placeholder { color: var(--faint); }
.chips#sourceChips { margin-bottom: 16px; }

.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.job-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.job-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.job-card .row1 { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.job-card .co { font-size: 11.5px; color: var(--accent); font-weight: 600; }
.src-tag { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; }
.job-card h3 { font-size: 15px; line-height: 1.35; letter-spacing: -0.01em; }
.job-card .meta { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 11.5px; color: var(--muted); }
.job-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.job-card .chips { margin-top: 2px; }
.job-card .more { font-size: 11px; color: var(--faint); margin-top: auto; font-family: var(--mono); }
.job-empty { padding: 46px; text-align: center; color: var(--faint); border: 1px dashed var(--line); border-radius: 16px; grid-column: 1 / -1; }

.load-more { display: flex; justify-content: center; margin-top: 18px; }

/* ---------- sources ---------- */
.source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 12px; }
.source-card {
  padding: 16px 17px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  display: grid; gap: 7px;
}
.source-card .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.source-card .name { font-weight: 650; font-size: 14px; }
.source-card .type { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.source-card .num { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.source-card .num small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.source-card .state { font-size: 11px; color: var(--ok); display: inline-flex; align-items: center; gap: 5px; }

.import-card { margin-top: 14px; }
.import-card summary { list-style: none; cursor: pointer; }
.import-card summary::-webkit-details-marker { display: none; }
.import-card summary h2 { font-size: 18px; display: inline; margin-left: 8px; }
.summary-hint { color: var(--faint); font-size: 12px; margin-left: 10px; }
.import-form { display: grid; gap: 12px; margin-top: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.import-form label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.import-form input, .import-form textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.28);
  outline: none; font-size: 13px; resize: vertical;
}
.import-form input:focus, .import-form textarea:focus { border-color: rgba(94, 234, 212, 0.5); }
.import-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.import-actions .hint-line { margin: 0; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.modal-mask { position: absolute; inset: 0; background: rgba(3, 3, 8, 0.72); backdrop-filter: blur(6px); }
.modal-card {
  position: relative; width: min(720px, 100%); max-height: 82vh; overflow: auto;
  padding: 26px; border-radius: 20px;
  background: #0e0e17; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  animation: rise 0.25s ease both;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: 17px; cursor: pointer;
}
.modal-card h2 { font-size: 21px; letter-spacing: -0.02em; padding-right: 40px; }
.modal-card .modal-sub { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.modal-card .jd-body { margin-top: 18px; font-size: 13px; line-height: 1.72; color: #c9cede; white-space: pre-line; }
.modal-card .chips { margin-top: 14px; }

/* ---------- footer ---------- */
.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 70px; padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint); font-size: 12px;
}
.mono { font-family: var(--mono); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  transform: translate(-50%, 20px);
  padding: 11px 18px; border-radius: 12px;
  background: #17172a; border: 1px solid var(--line-strong);
  color: var(--text); font-size: 13px;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: min(520px, calc(100vw - 40px));
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: #06231f;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .workspace { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding-top: 54px; }
}
@media (max-width: 640px) {
  .shell { padding: 0 16px 60px; }
  .nav { padding: 12px 16px; }
  .nav::after { left: 16px; right: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .match .signals { gap: 10px; }
  .section-head { align-items: flex-start; }
  .search { min-width: 100%; }
  .brand-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
