/* ─── shadcn-style design tokens (light theme) ─────────────────────────── */
:root {
  --background: 220 33% 99%;     /* #FAFBFD — matches landing's --rn-bg */
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 240 5.9% 10%;
  --radius: 0.5rem;

  /* Brand identity (kept for headline gradient + figma logo only) */
  --figma-red:    #F24E1E;
  --figma-orange: #FF7262;
  --figma-purple: #A259FF;
  --figma-blue:   #1ABCFE;
  --figma-green:  #0ACF83;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

/* ─── Brand identity (preserved) ──────────────────────────────────────── */
.brand-gradient {
  background: linear-gradient(135deg,#A259FF 0%,#F24E1E 50%,#FF7262 100%);
}
.brand-gradient-text {
  background: linear-gradient(135deg,#A259FF 0%,#F24E1E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ResumeNomad blue→sky→teal gradient — used on accent words in headlines and the "Nomad" wordmark */
.serif-accent {
  font-weight: 500;
  background: linear-gradient(120deg, #2563EB 0%, #0EA5E9 50%, #14B8A6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fig-logo {
  display: inline-grid;
  grid-template-columns: 14px 14px;
  grid-template-rows: 14px 14px;
  gap: 2px;
}
.fig-logo span { border-radius: 4px; }
.fig-logo span:nth-child(1) { background: var(--figma-red); }
.fig-logo span:nth-child(2) { background: var(--figma-purple); }
.fig-logo span:nth-child(3) { background: var(--figma-orange); }
.fig-logo span:nth-child(4) { background: var(--figma-blue); border-radius: 50%; }

/* ─── Card (shadcn Card) ──────────────────────────────────────────────── */
.card {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: border-color 150ms, box-shadow 150ms;
  animation: card-fade-in 320ms ease-out backwards;
}
.card:hover {
  border-color: hsl(var(--foreground) / 0.2);
  box-shadow: 0 4px 12px -2px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.04);
}
@keyframes card-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Subtle cascade so a refreshed grid doesn't pop all at once */
#job-grid .card:nth-child(1)  { animation-delay: 0ms;  }
#job-grid .card:nth-child(2)  { animation-delay: 30ms; }
#job-grid .card:nth-child(3)  { animation-delay: 60ms; }
#job-grid .card:nth-child(4)  { animation-delay: 90ms; }
#job-grid .card:nth-child(5)  { animation-delay: 120ms; }
#job-grid .card:nth-child(6)  { animation-delay: 150ms; }
#job-grid .card:nth-child(n+7){ animation-delay: 180ms; }

/* ─── Button (shadcn Button) ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap;
  font-weight: 500; font-size: 14px; line-height: 1;
  height: 40px;
  padding: 0 16px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 150ms, color 150ms, border-color 150ms, box-shadow 150ms;
}
.btn:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}
.btn:disabled,
.btn[disabled] {
  opacity: 0.5; pointer-events: none;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}
.btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
  color: hsl(var(--primary-foreground));
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-destructive {
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  border-color: hsl(var(--destructive));
}
.btn-destructive:hover { background: hsl(var(--destructive) / 0.9); }

.btn-brand {
  color:#fff; border-color: transparent;
  background: linear-gradient(135deg,#A259FF 0%,#F24E1E 100%);
  background-size: 150% 150%;
  background-position: 0% 50%;
  transition: background-position 300ms ease, transform 120ms ease, box-shadow 150ms;
}
.btn-brand:hover { background-position: 100% 50%; color:#fff; }

/* ─── Input + Select (shadcn Input / Select) ──────────────────────────── */
.input, .select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  font-size: 14px; line-height: 38px;
  color: hsl(var(--foreground));
  outline: none;
  box-sizing: border-box;
  transition: border-color 150ms, box-shadow 150ms;
  vertical-align: middle;
}
.input { line-height: 1; }
.input::placeholder { color: hsl(var(--muted-foreground)); }
.input:focus-visible, .select:focus-visible,
.input:focus, .select:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-color: hsl(var(--ring));
}

.select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5l3 3 3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px;
  padding-right: 36px;
  cursor: pointer;
}

/* ─── Custom popover menus (non-native dropdown) ────────────────────────── */
button.select {
  text-align: left;
  font-family: inherit;
  white-space: nowrap;
}
button.select[aria-expanded="true"] {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.18);
}
.menu-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  background: hsl(var(--popover));
  color: hsl(var(--popover-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 10px 28px -8px rgb(0 0 0 / 0.16), 0 2px 6px -2px rgb(0 0 0 / 0.04);
  padding: 4px;
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
  animation: menu-in 120ms ease-out;
}
.menu-panel[hidden] { display: none; }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.menu-panel.menu-right { left: auto; right: 0; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.menu-item:hover { background: hsl(var(--accent)); }
.menu-item input { position: absolute; opacity: 0; pointer-events: none; }

.menu-check {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid hsl(var(--border));
  background: hsl(var(--background));
  border-radius: 4px;
  transition: background-color 120ms, border-color 120ms;
}
.menu-item input[type="radio"] + .menu-check { border-radius: 999px; }
.menu-item input:checked + .menu-check {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
}
.menu-item input[type="checkbox"]:checked + .menu-check::after {
  content: "";
  width: 9px; height: 5px;
  border: 2px solid hsl(var(--primary-foreground));
  border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
.menu-item input[type="radio"]:checked + .menu-check::after {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: hsl(var(--primary-foreground));
}
.menu-divider {
  height: 1px;
  background: hsl(var(--border));
  margin: 4px 0;
}
.menu-action {
  display: block; width: 100%;
  text-align: left;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}
.menu-action:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.menu-action-danger { color: #DC2626; }
.menu-action-danger:hover { background: #FEF2F2; color: #B91C1C; }

/* ─── Badge / Chip (shadcn Badge) ─────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}
.chip:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.chip-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}
.chip-active:hover {
  background: hsl(var(--primary) / 0.9);
  color: hsl(var(--primary-foreground));
}
/* Live count inside a filter chip, e.g. "Applied (3)". Indeed/Otta pattern. */
.chip-count {
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 600;
  padding: 0 6px;
  margin-right: -4px;
  border-radius: 9999px;
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
}
.chip-active .chip-count {
  background: hsl(var(--primary-foreground) / 0.18);
  color: hsl(var(--primary-foreground));
}

/* ─── Score badge (kept domain-specific) ──────────────────────────────── */
.score-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-variant-numeric: tabular-nums;
  border-radius: 9999px; padding: 4px 10px;
  font-size: 13px; line-height: 1; letter-spacing: -0.01em;
}
.score-green   { background:#DCFCE7; color:#166534; }
.score-blue    { background:#DBEAFE; color:#1E40AF; }
.score-amber   { background:#FEF3C7; color:#92400E; }
.score-neutral { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }

/* Freshness signal on the posted-at line. Most cards stay neutral; stale
   ages get an amber tint, anything 60+ days old goes red with a "may be
   ghost job" tag (ResumeBuilder 2024: 30% of postings are fake). */
.freshness {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12px;
  line-height: 1.4;
}
.freshness-fresh { color: #64748B; }
.freshness-stale { background: #FEF3C7; color: #92400E; }
.freshness-ghost { background: #FEE2E2; color: #B91C1C; font-weight: 500; }
.freshness-tag   { font-size: 11px; font-weight: 500; opacity: 0.85; }

/* Salary chip — surfaced when the row has it. Wellfound/Otta pattern. */
.salary-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 6px;
  padding: 2px 8px;
}
.salary-chip svg { width: 12px; height: 12px; }

/* ─── Onboarding two-column layout ────────────────────────────────────── */
.onboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  min-height: calc(100vh - 240px);
}
@media (min-width: 900px) {
  .onboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    gap: 40px;
    align-items: stretch;
  }
}
.onboard-aside {
  background: linear-gradient(160deg, #E0F2FE 0%, #DCFCE7 60%, #F0FDFA 100%);
  border-radius: 24px;
  padding: 56px 40px 48px;
  position: relative;
  overflow: hidden;
}
.onboard-aside::before {
  content: '';
  position: absolute;
  inset: auto -120px -120px auto;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.onboard-aside-inner {
  position: relative;
  max-width: 460px;
  margin-left: auto;
}
@media (min-width: 900px) {
  .onboard-aside-inner { margin-left: 0; }
}
.onboard-h1 {
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--rn-text, #0F172A);
}
@media (min-width: 900px) {
  .onboard-h1 { font-size: 44px; }
}
.onboard-main {
  padding: 16px 0;
  max-width: 560px;
  width: 100%;
}
.onboard-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  background: #E2E8F0; color: #94A3B8;
}
.onboard-step.is-current { background: #0F172A; color: #fff; }
.onboard-step.is-done {
  background: #10B981; color: #fff;
}
.onboard-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  padding: 32px;
  min-height: 140px;
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  background: #FAFBFD;
  cursor: pointer;
  position: relative;
  transition: border-color 160ms, background 160ms;
}
.onboard-drop:hover {
  border-color: #93C5FD;
  background: #F0F9FF;
}

/* ─── Company lookup links (job detail sidebar) ───────────────────────── */
.lookup-link {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  transition: background 120ms, color 120ms;
}
.lookup-link:hover {
  background: #F1F5F9;
  color: #0F172A;
}
.lookup-link svg { flex-shrink: 0; }

/* ─── AI-tell banner (above tailored resume / cover / outreach) ───────── */
.ai-tells-banner {
  border: 1px solid #FDE68A;
  background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 100%);
  border-radius: 10px;
  padding: 0;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: #92400E;
}
.ai-tells-summary {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  user-select: none;
}
.ai-tells-summary::-webkit-details-marker { display: none; }
.ai-tells-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: #FDE68A;
  color: #92400E;
}
.ai-tells-icon svg { width: 12px; height: 12px; }
.ai-tells-summary > span:nth-child(2) { flex: 1; }
.ai-tells-sub { color: #B45309; font-weight: 400; }
.ai-tells-chevron {
  display: inline-flex; align-items: center; color: #B45309;
  transition: transform 160ms;
}
.ai-tells-chevron svg { width: 14px; height: 14px; }
.ai-tells-banner[open] .ai-tells-chevron { transform: rotate(180deg); }
.ai-tells-list {
  list-style: none;
  margin: 0; padding: 6px 12px 12px;
  border-top: 1px solid rgba(180, 83, 9, 0.2);
}
.ai-tells-list li {
  padding: 4px 0;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 6px 10px;
  align-items: baseline;
}
.ai-tells-phrase {
  font-weight: 600;
  font-family: 'Geist Mono', ui-monospace, monospace;
  color: #78350F;
  background: rgba(180, 83, 9, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.ai-tells-count {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: #B45309;
  font-weight: 600;
}
.ai-tells-why {
  color: #78350F;
  opacity: 0.85;
  font-size: 12px;
}

/* ─── Trust signal pill (JD-derived: visa, citizenship, sponsorship) ──── */
.trust-pill {
  display: inline-flex; align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.trust-pill-green { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.trust-pill-amber { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.trust-pill-neutral { background: #F1F5F9; color: #475569; border-color: #E2E8F0; }
.trust-pill-red { background: #FEE2E2; color: #B91C1C; border-color: #FECACA; }

/* ─── Seniority level pill (Senior, Mid, Staff, etc.) ─────────────────── */
.level-pill {
  display: inline-flex; align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 2px 8px;
  border-radius: 6px;
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
  white-space: nowrap;
}

/* ─── AI score: per-dimension breakdown bars (Jobright-style) ─────────── */
.dimension-breakdown {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}
.dimension-row {
  display: grid;
  grid-template-columns: 110px 1fr 36px;
  align-items: center;
  gap: 8px;
}
.dimension-label {
  font-size: 11.5px;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}
.dimension-track {
  height: 6px;
  background: hsl(var(--secondary));
  border-radius: 999px;
  overflow: hidden;
}
.dimension-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* Reuse the existing score-tier colors so green = strong dimension. */
.dimension-fill.score-green   { background: #10B981; }
.dimension-fill.score-blue    { background: #3B82F6; }
.dimension-fill.score-amber   { background: #F59E0B; }
.dimension-fill.score-neutral { background: #94A3B8; }
.dimension-value {
  font-size: 11.5px;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-align: right;
}

/* ─── Follow-up nudge row ─────────────────────────────────────────────── */
.follow-up-card { box-shadow: 0 1px 2px rgba(120, 53, 15, 0.04); }
.follow-up-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid #FCD34D;
  background: #FFFFFF;
  color: #92400E;
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms, opacity 120ms;
}
.follow-up-btn:hover { background: #FEF3C7; border-color: #F59E0B; }
.follow-up-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.follow-up-btn-primary {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}
.follow-up-btn-primary:hover { background: #1E293B; border-color: #1E293B; color: #FFFFFF; }
.follow-up-btn-ghost {
  border-color: transparent;
  background: transparent;
  color: #92400E;
  padding: 0 6px;
}
.follow-up-btn-ghost:hover { background: #FEF3C7; border-color: transparent; }

/* ─── Status pill ─────────────────────────────────────────────────────── */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  border-radius: 9999px; padding: 2px 10px;
  border: 1px solid;
}
.status-new        { background: hsl(var(--background)); color: hsl(var(--muted-foreground)); border-color: hsl(var(--border)); }
.status-interested { background:#FFF7ED; color:#C2410C; border-color:#FFEDD5; }
.status-applied    { background:#ECFDF5; color:#047857; border-color:#D1FAE5; }
.status-rejected   { background:#FEF2F2; color:#B91C1C; border-color:#FEE2E2; }
.status-ignored    { background: hsl(var(--secondary)); color: hsl(var(--muted-foreground)); border-color: hsl(var(--border)); }

/* ─── Spinner / loading ───────────────────────────────────────────────── */
.spinner {
  width: 14px; height: 14px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}
.htmx-indicator,
.htmx-indicator.spinner { display: none; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { display: inline-flex; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton primitives — compose these to mock any layout while data loads. */
.skel,
.skeleton-line {
  background: linear-gradient(90deg, hsl(var(--muted)) 0%, hsl(var(--border)) 50%, hsl(var(--muted)) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}
.skeleton-line { height: 12px; }
.skel-line     { height: 10px; border-radius: 5px; }
.skel-line-md  { height: 12px; border-radius: 6px; }
.skel-line-lg  { height: 16px; border-radius: 6px; }
.skel-circle   { border-radius: 999px; }
.skel-block    { border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Top page-progress bar — hooked to htmx events in base.html. */
#rn-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 60;
  background: transparent;
  pointer-events: none;
}
#rn-progress::before {
  content: '';
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #2563EB 0%, #0EA5E9 50%, #14B8A6 100%);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.45);
  border-radius: 0 2px 2px 0;
  transition: width 220ms ease, opacity 280ms ease 120ms;
  opacity: 0;
}
#rn-progress.rn-progress-start::before { width: 35%; opacity: 1; transition: width 700ms ease; }
#rn-progress.rn-progress-active::before { width: 75%; opacity: 1; }
#rn-progress.rn-progress-done::before  { width: 100%; opacity: 0; }

/* Dashboard grid: dim + light pulse while HTMX is fetching new rows. */
#job-grid.htmx-request { opacity: 0.55; transition: opacity 120ms; }
#job-grid.htmx-request * { pointer-events: none; }

/* ─── Prose (job description rendering) ───────────────────────────────── */
.prose-jb {
  font-size: 14.5px; line-height: 1.65; color: hsl(var(--foreground));
  overflow-wrap: anywhere;
  word-break: break-word;
}
.prose-jb pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
  background: hsl(var(--muted));
  padding: 12px 14px;
  border-radius: calc(var(--radius) - 2px);
  font-size: 13px;
  font-family:'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  margin: 0.6em 0;
}
.prose-jb a { word-break: break-all; color: var(--figma-purple); text-decoration: underline; text-underline-offset: 2px; }
.prose-jb h1,.prose-jb h2,.prose-jb h3 { font-weight:700; letter-spacing:-0.015em; margin: 1.2em 0 .4em; }
.prose-jb h1 { font-size: 22px; }
.prose-jb h2 { font-size: 18px; }
.prose-jb h3 { font-size: 16px; }
.prose-jb p  { margin: .6em 0; }
.prose-jb ul,.prose-jb ol { margin: .4em 0 .8em 1.4em; }
.prose-jb li { margin: .2em 0; }
.prose-jb strong { color: hsl(var(--foreground)); font-weight:600; }
.prose-jb code {
  background: hsl(var(--muted)); padding: 1px 6px; border-radius:4px;
  font-size: 13px; font-family:'Geist Mono', ui-monospace, SFMono-Regular, monospace;
}

.dotted-bg {
  background-image: radial-gradient(circle, hsl(var(--border)) 1px, transparent 1px);
  background-size: 24px 24px;
}

.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  padding: 14px 20px; border-radius: var(--radius);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,.25);
  font-size: 14px; z-index: 100;
  animation: toast-in 220ms ease-out;
}
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
