@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
}

/* ==========================================================================
   HireFlow Design System — theme.css
   --------------------------------------------------------------------------
   A self-contained design system (tokens + primitives + components) for the
   public jobseeker, employer and admin surfaces.

   Design goals:
   • No CDN, no build step, no FOUC. Every rewritten page renders from this
     file alone (Tailwind is only kept for legacy pages mid-migration).
   • One source of truth for colour, type, spacing, radius, elevation.
   • Accessible by default: WCAG AA contrast, visible focus rings, 44px touch
     targets, reduced-motion support, semantic HTML hooks.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand — refined scale built around the existing #165DFF */
  --primary-50: #eff5ff;
  --primary-100: #dbe6ff;
  --primary-200: #b9ceff;
  --primary-300: #8db0ff;
  --primary-400: #5589ff;
  --primary-500: #165dff;
  --primary-600: #1149db;
  --primary-700: #0f3ab0;
  --primary-800: #103189;
  --primary-900: #0f2c6d;
  --primary: var(--primary-500);
  --on-primary: #ffffff;
  --primary-ring: rgba(22, 93, 255, 0.28);

  /* Neutrals — cool, slightly desaturated for a premium feel */
  --gray-0: #ffffff;
  --gray-25: #fcfcfd;
  --gray-50: #f7f8fa;
  --gray-100: #f1f3f6;
  --gray-200: #e5e8ee;
  --gray-300: #d4d9e2;
  --gray-400: #a9b1c0;
  --gray-500: #7b8797;
  --gray-600: #5a6472;
  --gray-700: #434c5b;
  --gray-800: #2b3240;
  --gray-900: #1a1f29;
  --gray-950: #11151c;

  /* Semantic status */
  --success-50: #e9f9ef;
  --success-100: #cdf2da;
  --success-500: #00b42a;
  --success-600: #00961f;
  --success-700: #027518;
  --warning-50: #fff5e8;
  --warning-100: #ffe6c2;
  --warning-500: #ff7d00;
  --warning-600: #e06a00;
  --warning-700: #b25200;
  --danger-50: #ffefec;
  --danger-100: #ffd9d4;
  --danger-500: #f53f3f;
  --danger-600: #dc2f2f;
  --danger-700: #b42318;
  --info-50: #f0f6ff;
  --info-500: #4a80ff;

  /* Surfaces & text */
  --bg: var(--gray-50);
  --bg-subtle: var(--gray-25);
  --bg-muted: var(--gray-100);
  --surface: var(--gray-0);
  --surface-raised: var(--gray-0);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);
  --text: var(--gray-800);
  --text-strong: var(--gray-950);
  --text-muted: var(--gray-600);
  --text-subtle: #637083;
  --text-inverse: #ffffff;

  /* Typography */
  --font-sans:
    "Inter var", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --text-xs: 0.75rem; /* 12 */
  --text-sm: 0.8125rem; /* 13 */
  --text-base: 0.9375rem; /* 15 */
  --text-md: 1rem; /* 16 */
  --text-lg: 1.125rem; /* 18 */
  --text-xl: 1.25rem; /* 20 */
  --text-2xl: 1.5rem; /* 24 */
  --text-3xl: 1.875rem; /* 30 */
  --text-4xl: 2.25rem; /* 36 */
  --text-5xl: 3rem; /* 48 */

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.022em;
  --tracking-normal: -0.006em;
  --tracking-wide: 0.04em;

  /* Spacing — 4px grid */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 26px;
  --r-full: 999px;

  /* Elevation */
  --sh-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --sh-sm: 0 1px 3px rgba(16, 24, 40, 0.07), 0 1px 2px rgba(16, 24, 40, 0.04);
  --sh-md:
    0 4px 10px -2px rgba(16, 24, 40, 0.08),
    0 2px 4px -2px rgba(16, 24, 40, 0.04);
  --sh-lg:
    0 12px 24px -6px rgba(16, 24, 40, 0.12),
    0 4px 8px -4px rgba(16, 24, 40, 0.05);
  --sh-xl: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
  --sh-inset: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --ring: 0 0 0 3px var(--primary-ring);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 120ms;
  --dur-2: 180ms;
  --dur-3: 260ms;

  /* Layout */
  --shell: 1200px;
  --shell-narrow: 900px;
  --shell-wide: 1280px;
  --nav-h: 72px;
  --radius-card: var(--r-lg);
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
p,
figure,
blockquote,
dl {
  margin: 0;
}
[hidden] {
  display: none !important;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend {
  padding: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
a {
  color: var(--primary-600);
  text-decoration: none;
}
a:hover {
  color: var(--primary-700);
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--sp-6) 0;
}
table {
  border-collapse: collapse;
  width: 100%;
}

::selection {
  background: var(--primary-100);
  color: var(--primary-900);
}

:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* Keyboard-only skip link */
.hf-skip {
  position: absolute;
  left: var(--sp-4);
  top: -60px;
  z-index: 200;
  background: var(--gray-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: top var(--dur-2) var(--ease);
}
.hf-skip:focus {
  top: var(--sp-4);
  color: #fff;
}

.hf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Slim, unobtrusive scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--r-full);
  border: 3px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
  background-clip: content-box;
}

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.hf-container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.hf-container--narrow {
  max-width: var(--shell-narrow);
}
.hf-container--wide {
  max-width: var(--shell-wide);
}
@media (max-width: 640px) {
  .hf-container {
    padding-inline: var(--sp-4);
  }
}

.hf-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.hf-main {
  flex: 1 0 auto;
}

.hf-section {
  padding-block: var(--sp-16);
}
.hf-section--tight {
  padding-block: var(--sp-10);
}
.hf-section--flush {
  padding-block: 0;
}
@media (max-width: 768px) {
  .hf-section {
    padding-block: var(--sp-10);
  }
  .hf-section--tight {
    padding-block: var(--sp-8);
  }
}

.hf-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.hf-stack--xs {
  gap: var(--sp-1);
}
.hf-stack--sm {
  gap: var(--sp-2);
}
.hf-stack--md {
  gap: var(--sp-4);
}
.hf-stack--lg {
  gap: var(--sp-6);
}
.hf-stack--xl {
  gap: var(--sp-8);
}

.hf-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
.hf-cluster--sm {
  gap: var(--sp-2);
}
.hf-cluster--lg {
  gap: var(--sp-5);
}
.hf-cluster--tight {
  gap: var(--sp-1);
}

.hf-split {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
}

.hf-grid {
  display: grid;
  gap: var(--sp-5);
}
.hf-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hf-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hf-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hf-grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
@media (max-width: 1024px) {
  .hf-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hf-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .hf-grid--2,
  .hf-grid--3,
  .hf-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Search results layout: filter rail + list */
.hf-layout-search {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 276px minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 1024px) {
  .hf-layout-search {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Job detail layout: content + sticky rail */
.hf-layout-detail {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}
@media (max-width: 1024px) {
  .hf-layout-detail {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hf-sticky {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-5));
}

.hf-divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY HELPERS
   -------------------------------------------------------------------------- */
.hf-display {
  font-size: clamp(2rem, 1.2rem + 3.6vw, var(--text-5xl));
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hf-h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, var(--text-3xl));
}
.hf-h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, var(--text-2xl));
}
.hf-h3 {
  font-size: var(--text-lg);
}
.hf-h4 {
  font-size: var(--text-md);
}
.hf-lede {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  text-wrap: pretty;
}
.hf-muted {
  color: var(--text-muted);
}
.hf-subtle {
  color: var(--text-subtle);
}
.hf-strong {
  color: var(--text-strong);
  font-weight: 600;
}
.hf-micro {
  font-size: var(--text-xs);
  color: var(--text-subtle);
}
.hf-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--primary-600);
}
.hf-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.hf-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hf-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hf-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hf-prose {
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}
.hf-prose p + p {
  margin-top: var(--sp-4);
}
.hf-prose ul {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.hf-prose li {
  position: relative;
  padding-left: 1.4em;
}
.hf-prose li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: var(--r-full);
  background: var(--primary-400);
}
.hf-prose h3 {
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
  font-size: var(--text-lg);
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.hf-btn {
  --btn-bg: var(--primary-500);
  --btn-fg: var(--on-primary);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-5);
  height: 44px;
  min-width: 44px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-align: center;
  transition:
    background var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease),
    transform var(--dur-1) var(--ease);
  box-shadow: var(--sh-xs);
}
.hf-btn:hover {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: var(--btn-bd);
  filter: brightness(0.97);
}
.hf-btn:not([class*="hf-btn--secondary"]):not([class*="hf-btn--ghost"]):not(
    [class*="hf-btn--soft"]
  ):hover {
  box-shadow: var(--sh-sm);
}
.hf-btn:active {
  transform: translateY(1px);
}
.hf-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.hf-btn:disabled,
.hf-btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  box-shadow: none;
}
.hf-btn svg {
  flex: none;
}

.hf-btn--secondary {
  --btn-bg: var(--surface);
  --btn-fg: var(--text-strong);
  --btn-bd: var(--border-strong);
  box-shadow: var(--sh-xs);
}
.hf-btn--secondary:hover {
  --btn-bg: var(--gray-50);
  --btn-fg: var(--primary-700);
  --btn-bd: var(--gray-400);
}

.hf-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text-muted);
  --btn-bd: transparent;
  box-shadow: none;
}
.hf-btn--ghost:hover {
  --btn-bg: var(--gray-100);
  --btn-fg: var(--text-strong);
}

.hf-btn--soft {
  --btn-bg: var(--primary-50);
  --btn-fg: var(--primary-700);
  --btn-bd: transparent;
  box-shadow: none;
}
.hf-btn--soft:hover {
  --btn-bg: var(--primary-100);
  --btn-fg: var(--primary-800);
}

.hf-btn--dark {
  --btn-bg: var(--gray-900);
  --btn-fg: #fff;
}
.hf-btn--dark:hover {
  --btn-bg: var(--gray-950);
}

.hf-btn--success {
  --btn-bg: var(--success-500);
  --btn-fg: #fff;
}
.hf-btn--success:hover {
  --btn-bg: var(--success-600);
}

.hf-btn--danger {
  --btn-bg: var(--danger-50);
  --btn-fg: var(--danger-700);
  --btn-bd: transparent;
  box-shadow: none;
}
.hf-btn--danger:hover {
  --btn-bg: var(--danger-500);
  --btn-fg: #fff;
}

.hf-btn--sm {
  min-height: 36px;
  height: auto;
  padding: 0 var(--sp-3);
  font-size: var(--text-sm);
  border-radius: var(--r-sm);
}
.hf-btn--lg {
  height: 52px;
  padding: 0 var(--sp-6);
  font-size: var(--text-md);
  border-radius: var(--r-md);
}
.hf-btn--block {
  width: 100%;
}
.hf-btn--icon {
  padding: 0;
  width: 44px;
  border-radius: var(--r-md);
}
.hf-btn--icon.hf-btn--sm {
  width: 34px;
}
.hf-btn--pill {
  border-radius: var(--r-full);
}

.hf-btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.hf-btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  color: var(--on-primary);
  animation: hf-spin 0.7s linear infinite;
}
.hf-btn--secondary.is-loading::after,
.hf-btn--ghost.is-loading::after,
.hf-btn--soft.is-loading::after {
  color: var(--primary-500);
}

.hf-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  color: var(--text-muted);
  background: transparent;
  transition:
    background var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease);
}
.hf-icon-btn:hover {
  background: var(--gray-100);
  color: var(--text-strong);
}
.hf-icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.hf-icon-btn.is-active {
  color: var(--primary-600);
  background: var(--primary-50);
}

@keyframes hf-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   6. FORM CONTROLS
   -------------------------------------------------------------------------- */
.hf-field {
  display: grid;
  gap: var(--sp-2);
}
.hf-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-strong);
}
.hf-label .req {
  color: var(--danger-500);
  margin-left: 2px;
}
.hf-hint {
  font-size: var(--text-xs);
  color: var(--text-subtle);
}
.hf-error-text {
  font-size: var(--text-xs);
  color: var(--danger-600);
  font-weight: 500;
  display: none;
}
.hf-field.has-error .hf-error-text {
  display: block;
}
.hf-field.has-error .hf-input,
.hf-field.has-error .hf-select,
.hf-field.has-error .hf-textarea {
  border-color: var(--danger-500);
  box-shadow: 0 0 0 3px rgba(245, 63, 63, 0.14);
}

.hf-input,
.hf-select,
.hf-textarea {
  width: 100%;
  height: 44px;
  padding: 0 var(--sp-3);
  background: var(--surface);
  color: var(--text-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  transition:
    border-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease),
    background var(--dur-2) var(--ease);
  box-shadow: var(--sh-xs);
}
.hf-textarea {
  height: auto;
  min-height: 108px;
  padding: var(--sp-3);
  line-height: var(--leading-relaxed);
  resize: vertical;
}
.hf-input::placeholder,
.hf-textarea::placeholder {
  color: var(--gray-400);
}
.hf-input:hover,
.hf-select:hover,
.hf-textarea:hover {
  border-color: var(--gray-400);
}
.hf-input:focus,
.hf-select:focus,
.hf-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: var(--ring);
  background: var(--surface);
}
.hf-input:disabled,
.hf-select:disabled,
.hf-textarea:disabled {
  background: var(--gray-100);
  color: var(--text-subtle);
  cursor: not-allowed;
}
.hf-input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.hf-select {
  appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6472' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* Input with leading icon */
.hf-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.hf-input-wrap > svg:first-child {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  pointer-events: none;
}
.hf-input-wrap .hf-input {
  padding-left: 40px;
}
.hf-input-wrap .hf-input--trail {
  padding-right: 40px;
}
.hf-input-wrap > .hf-input-clear {
  position: absolute;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}
.hf-input-wrap > .hf-input-clear:hover {
  background: var(--gray-100);
  color: var(--text-strong);
}
.hf-input-wrap.has-value > .hf-input-clear {
  display: flex;
}

.hf-checkbox,
.hf-radio {
  min-height: 40px;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: 6px 0;
  cursor: pointer;
  font-size: var(--text-base);
  color: var(--text);
  border-radius: var(--r-sm);
}
.hf-checkbox input,
.hf-radio input {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  transition: all var(--dur-1) var(--ease);
  cursor: pointer;
}
.hf-checkbox input {
  border-radius: var(--r-xs);
}
.hf-radio input {
  border-radius: 50%;
}
.hf-checkbox input:hover,
.hf-radio input:hover {
  border-color: var(--primary-400);
}
.hf-checkbox input:checked,
.hf-radio input:checked {
  background: var(--primary-500);
  border-color: var(--primary-500);
}
.hf-checkbox input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.hf-radio input:checked {
  box-shadow: inset 0 0 0 3.5px var(--surface);
}
.hf-checkbox input:focus-visible,
.hf-radio input:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.hf-checkbox .hf-choice-label {
  display: grid;
  gap: 1px;
}
.hf-choice-count {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}

.hf-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
}
.hf-switch input {
  appearance: none;
  width: 40px;
  height: 24px;
  border-radius: var(--r-full);
  background: var(--gray-300);
  position: relative;
  transition: background var(--dur-2) var(--ease);
  cursor: pointer;
  margin: 0;
}
.hf-switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-2) var(--ease-out);
}
.hf-switch input:checked {
  background: var(--primary-500);
}
.hf-switch input:checked::after {
  transform: translateX(16px);
}
.hf-switch input:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Segmented control */
.hf-segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--gray-100);
  border-radius: var(--r-md);
  gap: 2px;
}
.hf-segmented button,
.hf-segmented a {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--dur-2) var(--ease);
}
.hf-segmented button:hover,
.hf-segmented a:hover {
  color: var(--text-strong);
}
.hf-segmented [aria-selected="true"],
.hf-segmented .is-active {
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: var(--sh-xs);
}

/* --------------------------------------------------------------------------
   7. SURFACES: CARDS, BADGES, CHIPS
   -------------------------------------------------------------------------- */
.hf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--sh-xs);
}
.hf-card--pad {
  padding: var(--sp-6);
}
.hf-card--hover {
  transition:
    box-shadow var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease-out);
}
.hf-card--hover:hover {
  box-shadow: var(--sh-md);
  border-color: var(--gray-300);
}
.hf-card--lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-lg);
}
.hf-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.hf-card-body {
  padding: var(--sp-5);
}
.hf-card-foot {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--border);
  background: var(--gray-25);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.hf-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.hf-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--gray-100);
  color: var(--gray-700);
  white-space: nowrap;
}
.hf-badge svg {
  width: 12px;
  height: 12px;
}
.hf-badge--primary {
  background: var(--primary-50);
  color: var(--primary-700);
}
.hf-badge--success {
  background: var(--success-50);
  color: var(--success-700);
}
.hf-badge--warning {
  background: var(--warning-50);
  color: var(--warning-700);
}
.hf-badge--danger {
  background: var(--danger-50);
  color: var(--danger-700);
}
.hf-badge--neutral {
  background: var(--gray-100);
  color: var(--gray-600);
}
.hf-badge--sponsor {
  background: #f4f6fa;
  color: var(--text-muted);
  justify-self: start;
}
.hf-badge--outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--gray-600);
}
.hf-badge--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--dur-2) var(--ease);
  white-space: nowrap;
}
.hf-chip:hover {
  border-color: var(--primary-300);
  color: var(--primary-700);
  background: var(--primary-50);
}
.hf-chip.is-active {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: #fff;
}
.hf-chip--remove {
  padding-right: 8px;
}
.hf-chip button {
  display: inline-flex;
  color: inherit;
  opacity: 0.65;
}
.hf-chip button:hover {
  opacity: 1;
}

.hf-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.hf-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hf-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--gray-400);
  flex: none;
}

/* Company logo tile (generated from initials when no logo is uploaded) */
.hf-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: var(--text-md);
  letter-spacing: -0.02em;
  background: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--border);
  overflow: hidden;
}
.hf-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hf-logo--sm {
  width: 36px;
  height: 36px;
  font-size: var(--text-sm);
  border-radius: var(--r-sm);
}
.hf-logo--lg {
  width: 64px;
  height: 64px;
  font-size: var(--text-xl);
  border-radius: var(--r-lg);
}
.hf-logo--xl {
  width: 80px;
  height: 80px;
  font-size: var(--text-2xl);
  border-radius: var(--r-lg);
}

.hf-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary-800);
  font-weight: 700;
  font-size: var(--text-sm);
  overflow: hidden;
}
.hf-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   8. JOB CARD
   -------------------------------------------------------------------------- */
.hf-job {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition:
    border-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease-out);
}
.hf-job:hover {
  border-color: var(--primary-200);
  box-shadow: var(--sh-md);
}
.hf-job.is-selected {
  border-color: var(--primary-500);
  box-shadow:
    0 0 0 1px var(--primary-500),
    var(--sh-md);
}
.hf-job.is-saved {
  border-color: var(--warning-100);
}
.hf-job--sponsor {
  background: var(--surface);
}
.hf-job-top {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.hf-job-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.hf-job-title a {
  color: inherit;
}
.hf-job-title a:hover {
  color: var(--primary-600);
}
.hf-job-company {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-base);
  color: var(--text-muted);
  font-weight: 500;
}
.hf-job-body {
  display: grid;
  gap: var(--sp-3);
}
.hf-job-salary {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--success-700);
  font-variant-numeric: tabular-nums;
}
.hf-job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.hf-job-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.hf-job-actions {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}
.hf-job-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  background: var(--surface);
  transition: all var(--dur-2) var(--ease);
}
.hf-job-save:hover {
  color: var(--warning-600);
  border-color: var(--warning-100);
  background: var(--warning-50);
}
.hf-job-save.is-saved {
  color: var(--warning-600);
  border-color: var(--warning-500);
  background: var(--warning-50);
}
.hf-job-save svg {
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------------------
   9. NAVIGATION (public header)
   -------------------------------------------------------------------------- */
.hf-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.hf-nav-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--nav-h);
}
.hf-nav-spacer {
  flex: 1 1 auto;
}
.hf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--text-strong);
  letter-spacing: -0.03em;
}
.hf-brand:hover {
  color: var(--text-strong);
}
.hf-brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--primary-500), var(--primary-700));
  color: #fff;
  box-shadow:
    var(--sh-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.hf-brand-mark svg {
  width: 18px;
  height: 18px;
}
.hf-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.hf-nav-link {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-muted);
  transition:
    color var(--dur-2) var(--ease),
    background var(--dur-2) var(--ease);
}
.hf-nav-link:hover {
  color: var(--text-strong);
  background: var(--gray-100);
}
.hf-nav-link.is-active {
  color: var(--primary-700);
  background: var(--primary-50);
  font-weight: 600;
}
.hf-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.hf-nav-burger {
  display: none;
}
@media (max-width: 900px) {
  .hf-nav-links {
    display: none;
  }
  .hf-nav-burger {
    display: inline-flex;
  }
  .hf-nav-actions .hf-btn--label-sm {
    display: none;
  }
}

/* Mobile drawer */
.hf-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}
.hf-drawer.is-open {
  display: block;
}
.hf-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 21, 28, 0.5);
  animation: hf-fade var(--dur-2) var(--ease);
}
.hf-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: var(--surface);
  box-shadow: var(--sh-xl);
  display: flex;
  flex-direction: column;
  padding: var(--sp-4);
  animation: hf-slide-in var(--dur-3) var(--ease-out);
  overflow-y: auto;
}
.hf-drawer-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 12px 10px;
  border-radius: var(--r-md);
  font-weight: 600;
  color: var(--text);
  font-size: var(--text-md);
}
.hf-drawer-link:hover {
  background: var(--gray-100);
  color: var(--text-strong);
}
.hf-drawer-link svg {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
}

@keyframes hf-fade {
  from {
    opacity: 0;
  }
}
@keyframes hf-slide-in {
  from {
    transform: translateX(24px);
    opacity: 0.4;
  }
}
@keyframes hf-rise {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.hf-footer {
  background: var(--gray-950);
  color: var(--gray-300);
  padding-block: var(--sp-14, 3.5rem) var(--sp-8);
  margin-top: auto;
}
.hf-footer a {
  color: var(--gray-400);
  font-size: var(--text-sm);
  transition: color var(--dur-2) var(--ease);
}
.hf-footer a:hover {
  color: #fff;
}
.hf-footer-grid {
  display: grid;
  gap: var(--sp-10);
  grid-template-columns: 1.6fr repeat(3, 1fr);
  padding-bottom: var(--sp-10);
}
@media (max-width: 900px) {
  .hf-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
}
@media (max-width: 560px) {
  .hf-footer-grid {
    grid-template-columns: 1fr;
  }
}
.hf-footer h4 {
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.hf-footer ul {
  display: grid;
  gap: var(--sp-3);
}
.hf-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-sm);
  color: var(--gray-500);
}
.hf-socials {
  display: flex;
  gap: var(--sp-2);
}
.hf-social {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.07);
  color: var(--gray-300);
  transition:
    background var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease);
}
.hf-social:hover {
  background: var(--primary-500);
  color: #fff;
  transform: translateY(-2px);
}
.hf-social svg {
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------------------
   11. SEARCH BAR (hero + sticky)
   -------------------------------------------------------------------------- */
.hf-searchbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1px minmax(0, 1fr) auto;
  gap: var(--sp-2);
  padding: var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
/* Keyword + location + country: three fields before the submit button. Declared
   before the narrow-screen rule below so it still collapses to one column. */
.hf-searchbar--places {
  grid-template-columns:
    minmax(0, 1.3fr) 1px minmax(0, 1fr) 1px minmax(0, 0.9fr)
    auto;
}
.hf-searchbar-field select {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: var(--text-md);
  color: var(--text-strong);
  font-family: inherit;
  min-width: 0;
  cursor: pointer;
}
.hf-searchbar-field select:focus {
  outline: none;
}
.hf-searchbar-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--sp-3);
  min-width: 0;
}
.hf-searchbar-field svg {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  flex: none;
}
.hf-searchbar-field input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: var(--text-md);
  color: var(--text-strong);
  min-width: 0;
}
.hf-searchbar-field input:focus {
  outline: none;
}
.hf-searchbar-field input::placeholder {
  color: var(--text-muted);
}
.hf-searchbar-field:focus-within {
  border-radius: var(--r-sm);
  background: var(--primary-50);
  box-shadow: inset 0 0 0 2px var(--primary-400);
}
.hf-searchbar-sep {
  width: 1px;
  background: var(--border);
  margin-block: 6px;
}
.hf-searchbar-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
/* Tablet width: three fields side by side get too narrow for country names, so
   the country picker drops to a second row and shares it with the button. */
@media (max-width: 1000px) {
  .hf-searchbar--places {
    grid-template-columns: minmax(0, 1.4fr) 1px minmax(0, 1fr);
    grid-template-areas:
      "keyword separator place"
      "country country submit";
  }
  .hf-searchbar--places > :nth-child(1) {
    grid-area: keyword;
  }
  .hf-searchbar--places > :nth-child(2) {
    grid-area: separator;
  }
  .hf-searchbar--places > :nth-child(3) {
    grid-area: place;
  }
  .hf-searchbar--places > :nth-child(4) {
    display: none;
  }
  .hf-searchbar--places > :nth-child(5) {
    grid-area: country;
    border-top: 1px solid var(--border);
  }
  .hf-searchbar--places > :nth-child(6) {
    grid-area: submit;
    border-top: 1px solid var(--border);
  }
}
@media (max-width: 768px) {
  .hf-searchbar {
    grid-template-columns: 1fr;
  }
  .hf-searchbar-sep {
    display: none;
  }
  .hf-searchbar-field {
    border-bottom: 1px solid var(--border);
    padding-block: 2px;
  }
  .hf-searchbar-field:last-of-type {
    border-bottom: 0;
  }
  .hf-searchbar--places {
    grid-template-areas: none;
  }
  .hf-searchbar--places > :nth-child(5),
  .hf-searchbar--places > :nth-child(6) {
    border-top: 0;
  }
}
.hf-searchbar--compact {
  box-shadow: var(--sh-xs);
  border-radius: var(--r-md);
}
.hf-searchbar--compact .hf-searchbar-field input,
.hf-searchbar--compact .hf-searchbar-field select {
  padding: 9px 0;
  font-size: var(--text-base);
}

/* --------------------------------------------------------------------------
   12. FILTER RAIL
   -------------------------------------------------------------------------- */
.hf-filters {
  display: grid;
  gap: var(--sp-3);
}
.hf-filter-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hf-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-4);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-strong);
  text-align: left;
}
.hf-filter-head svg {
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  transition: transform var(--dur-2) var(--ease);
}
.hf-filter-head[aria-expanded="false"] svg {
  transform: rotate(-90deg);
}
.hf-filter-body {
  padding: 0 var(--sp-4) var(--sp-4);
  display: grid;
  gap: 2px;
}
.hf-filter-body[hidden] {
  display: none;
}
.hf-filter-more {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-600);
  padding-top: var(--sp-2);
}
.hf-filter-more:hover {
  text-decoration: underline;
}
@media (max-width: 1024px) {
  .hf-filters-rail {
    display: none;
  }
  .hf-filters-rail.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(17, 21, 28, 0.5);
    padding: var(--sp-4);
    overflow-y: auto;
    animation: hf-fade var(--dur-2) var(--ease);
  }
  .hf-filters-rail.is-open .hf-filters {
    max-width: 420px;
    margin-inline: auto;
    background: var(--bg);
    border-radius: var(--r-xl);
    padding: var(--sp-4);
  }
}

/* --------------------------------------------------------------------------
   13. SKELETONS, EMPTY, LOADING
   -------------------------------------------------------------------------- */
.hf-skeleton {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: var(--r-sm);
}
.hf-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  );
  animation: hf-shimmer 1.4s infinite;
}
@keyframes hf-shimmer {
  100% {
    transform: translateX(100%);
  }
}
.hf-skeleton-line {
  height: 12px;
}
.hf-skeleton-line--title {
  height: 18px;
  width: 62%;
}
.hf-skeleton-line--sm {
  height: 10px;
  width: 40%;
}
.hf-skeleton-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
}

.hf-empty {
  display: grid;
  justify-items: center;
  gap: var(--sp-4);
  padding: var(--sp-16) var(--sp-6);
  text-align: center;
}
.hf-empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-xl);
  background: var(--gray-100);
  color: var(--gray-400);
}
.hf-empty-icon svg {
  width: 28px;
  height: 28px;
}
.hf-empty h3 {
  font-size: var(--text-xl);
}
.hf-empty p {
  color: var(--text-muted);
  max-width: 46ch;
}

.hf-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  border-top-color: var(--primary-500);
  animation: hf-spin 0.7s linear infinite;
}

/* --------------------------------------------------------------------------
   14. TOASTS
   -------------------------------------------------------------------------- */
.hf-toaster {
  position: fixed;
  z-index: 120;
  bottom: var(--sp-5);
  right: var(--sp-5);
  display: grid;
  gap: var(--sp-3);
  width: min(380px, calc(100vw - 2.5rem));
  pointer-events: none;
}
@media (max-width: 640px) {
  .hf-toaster {
    bottom: var(--sp-4);
    right: var(--sp-4);
    left: var(--sp-4);
    width: auto;
  }
}
.hf-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--gray-900);
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-xl);
  font-size: var(--text-sm);
  animation: hf-toast-in var(--dur-3) var(--ease-out);
  border-left: 3px solid var(--primary-400);
}
.hf-toast.is-out {
  animation: hf-toast-out var(--dur-2) var(--ease) forwards;
}
.hf-toast svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}
.hf-toast--success {
  border-left-color: var(--success-500);
}
.hf-toast--success svg {
  color: #4ade80;
}
.hf-toast--error {
  border-left-color: var(--danger-500);
}
.hf-toast--error svg {
  color: #ff8f8f;
}
.hf-toast--warning {
  border-left-color: var(--warning-500);
}
.hf-toast-close {
  margin-left: auto;
  color: var(--gray-400);
  display: grid;
  place-items: center;
}
.hf-toast-close:hover {
  color: #fff;
}
@keyframes hf-toast-in {
  from {
    transform: translateY(12px) scale(0.98);
    opacity: 0;
  }
}
@keyframes hf-toast-out {
  to {
    transform: translateY(8px);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   15. MODALS / SHEETS
   -------------------------------------------------------------------------- */
.hf-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: rgba(17, 21, 28, 0.55);
  backdrop-filter: blur(3px);
  animation: hf-fade var(--dur-2) var(--ease);
}
.hf-overlay.is-open {
  display: flex;
}
.hf-modal {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  animation: hf-rise var(--dur-3) var(--ease-out);
  overflow: hidden;
}
.hf-modal--wide {
  max-width: 760px;
}
.hf-modal--narrow {
  max-width: 420px;
}
.hf-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border);
}
.hf-modal-body {
  padding: var(--sp-6);
  overflow-y: auto;
}
.hf-modal-foot {
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-end;
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border);
  background: var(--gray-25);
}
@media (max-width: 640px) {
  .hf-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .hf-modal {
    max-width: none;
    max-height: 92vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    animation: hf-sheet var(--dur-3) var(--ease-out);
  }
}
@keyframes hf-sheet {
  from {
    transform: translateY(100%);
  }
}
body.hf-no-scroll {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   16. TABLES, TABS, PAGINATION, STATS
   -------------------------------------------------------------------------- */
.hf-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.hf-table {
  font-size: var(--text-sm);
  min-width: 640px;
}
.hf-table th {
  text-align: left;
  padding: 12px var(--sp-4);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-subtle);
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.hf-table td {
  padding: 14px var(--sp-4);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
.hf-table tbody tr:last-child td {
  border-bottom: 0;
}
.hf-table tbody tr {
  transition: background var(--dur-1) var(--ease);
}
.hf-table tbody tr:hover {
  background: var(--gray-50);
}

.hf-tabs {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.hf-tab {
  padding: 12px var(--sp-4);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition:
    color var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease);
}
.hf-tab:hover {
  color: var(--text-strong);
}
.hf-tab[aria-selected="true"],
.hf-tab.is-active {
  color: var(--primary-600);
  border-bottom-color: var(--primary-500);
}

.hf-pagination {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  justify-content: center;
  flex-wrap: wrap;
}
.hf-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all var(--dur-2) var(--ease);
  font-variant-numeric: tabular-nums;
}
.hf-page-btn:hover {
  background: var(--gray-100);
  color: var(--text-strong);
}
.hf-page-btn.is-active {
  background: var(--primary-500);
  color: #fff;
}
.hf-page-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.hf-page-ellipsis {
  padding: 0 4px;
  color: var(--text-subtle);
}

.hf-stat {
  display: grid;
  gap: 4px;
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.hf-stat-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hf-stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}
.hf-stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--success-600);
}
.hf-stat-delta--down {
  color: var(--danger-600);
}

/* Progress / steps */
.hf-steps {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.hf-step {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-subtle);
}
.hf-step-dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--text-subtle);
  font-size: var(--text-xs);
  font-weight: 700;
}
.hf-step.is-active {
  color: var(--primary-700);
}
.hf-step.is-active .hf-step-dot {
  background: var(--primary-500);
  color: #fff;
}
.hf-step.is-done .hf-step-dot {
  background: var(--success-50);
  color: var(--success-600);
}
.hf-step-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  border-radius: 2px;
  min-width: 16px;
}
.hf-step-line.is-done {
  background: var(--success-500);
}

.hf-progress {
  height: 8px;
  border-radius: var(--r-full);
  background: var(--gray-100);
  overflow: hidden;
}
.hf-progress-bar {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
  transition: width var(--dur-3) var(--ease-out);
}

/* --------------------------------------------------------------------------
   17. HERO / MARKETING
   -------------------------------------------------------------------------- */
.hf-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.hf-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      900px 420px at 12% -8%,
      var(--primary-50) 0%,
      transparent 62%
    ),
    radial-gradient(700px 380px at 92% 4%, #f3f0ff 0%, transparent 58%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
}
.hf-hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--gray-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 320px at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(
    700px 320px at 50% 0%,
    #000 0%,
    transparent 78%
  );
}
.hf-hero-inner {
  position: relative;
  padding-block: var(--sp-20) var(--sp-16);
  display: grid;
  gap: var(--sp-8);
  justify-items: center;
  text-align: center;
}
@media (max-width: 768px) {
  .hf-hero-inner {
    padding-block: var(--sp-12) var(--sp-10);
  }
}

.hf-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6) var(--sp-10);
  align-items: center;
  justify-content: center;
}
.hf-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}
.hf-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--success-500);
}

.hf-feature {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition:
    box-shadow var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease);
}
.hf-feature:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
  border-color: var(--gray-300);
}
.hf-feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--primary-50);
  color: var(--primary-600);
}
.hf-feature-icon svg {
  width: 22px;
  height: 22px;
}

.hf-category {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--dur-2) var(--ease);
  color: var(--text);
}
.hf-category:hover {
  border-color: var(--primary-300);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
  color: var(--text);
}
.hf-category-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--r-md);
  background: var(--gray-100);
  color: var(--gray-700);
  transition: all var(--dur-2) var(--ease);
}
.hf-category:hover .hf-category-icon {
  background: var(--primary-50);
  color: var(--primary-600);
}
.hf-category-icon svg {
  width: 20px;
  height: 20px;
}

.hf-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  background: linear-gradient(
    135deg,
    var(--primary-700) 0%,
    var(--primary-500) 55%,
    #4a80ff 100%
  );
  color: #fff;
  padding: var(--sp-12) var(--sp-8);
}
.hf-cta::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.hf-cta h2 {
  color: #fff;
}
.hf-cta .hf-btn {
  --btn-bg: #fff;
  --btn-fg: var(--primary-700);
}
.hf-cta .hf-btn:hover {
  --btn-bg: var(--primary-50);
}
.hf-cta .hf-btn--secondary {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.32);
}
.hf-cta .hf-btn--secondary:hover {
  --btn-bg: rgba(255, 255, 255, 0.22);
  --btn-fg: #fff;
}

.hf-quote {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.hf-quote-text {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text);
}
.hf-quote-person {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.hf-stars {
  display: flex;
  gap: 2px;
  color: #f5a623;
}
.hf-stars svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   18. COOKIE BANNER
   -------------------------------------------------------------------------- */
.hf-cookie {
  position: fixed;
  z-index: 100;
  left: var(--sp-5);
  right: var(--sp-5);
  bottom: var(--sp-5);
  margin-inline: auto;
  max-width: 760px;
  display: none;
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  background: var(--gray-900);
  color: var(--gray-200);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  animation: hf-rise var(--dur-3) var(--ease-out);
}
.hf-cookie.is-open {
  display: flex;
}
.hf-cookie p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}
.hf-cookie a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hf-cookie-actions {
  display: flex;
  gap: var(--sp-2);
  flex: none;
}
.hf-cookie .hf-btn--secondary {
  --btn-bg: rgba(255, 255, 255, 0.1);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.22);
}
@media (max-width: 700px) {
  .hf-cookie {
    flex-direction: column;
    align-items: stretch;
    left: var(--sp-3);
    right: var(--sp-3);
    bottom: var(--sp-3);
  }
  .hf-cookie-actions .hf-btn {
    flex: 1;
  }
}

/* --------------------------------------------------------------------------
   19. MOBILE STICKY ACTION BAR
   -------------------------------------------------------------------------- */
.hf-actionbar {
  position: fixed;
  z-index: 70;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3) var(--sp-4)
    calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(16, 24, 40, 0.08);
}
@media (max-width: 1024px) {
  .hf-actionbar {
    display: flex;
  }
}
.hf-actionbar-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

/* --------------------------------------------------------------------------
   20. UTILITIES
   -------------------------------------------------------------------------- */
.hf-center {
  text-align: center;
}
.hf-flex {
  display: flex;
}
.hf-items-center {
  align-items: center;
}
.hf-justify-between {
  justify-content: space-between;
}
.hf-grow {
  flex: 1 1 auto;
}
.hf-wrap {
  flex-wrap: wrap;
}
.hf-hide-sm {
  display: initial;
}
.hf-show-sm {
  display: none;
}
@media (max-width: 768px) {
  .hf-hide-sm {
    display: none !important;
  }
  .hf-show-sm {
    display: initial;
  }
}
.hf-mt-0 {
  margin-top: 0;
}
.hf-mt-2 {
  margin-top: var(--sp-2);
}
.hf-mt-4 {
  margin-top: var(--sp-4);
}
.hf-mt-6 {
  margin-top: var(--sp-6);
}
.hf-mt-8 {
  margin-top: var(--sp-8);
}
.hf-mb-2 {
  margin-bottom: var(--sp-2);
}
.hf-mb-4 {
  margin-bottom: var(--sp-4);
}
.hf-mb-6 {
  margin-bottom: var(--sp-6);
}
.hf-mb-8 {
  margin-bottom: var(--sp-8);
}
.hf-w-full {
  width: 100%;
}
.hf-relative {
  position: relative;
}
.hf-scroll-x {
  overflow-x: auto;
  scrollbar-width: none;
}
.hf-scroll-x::-webkit-scrollbar {
  display: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print (job detail pages are often printed / saved as PDF) */
@media print {
  .hf-nav,
  .hf-footer,
  .hf-actionbar,
  .hf-toaster,
  .hf-cookie,
  .hf-sticky,
  .hf-job-actions {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .hf-layout-detail {
    grid-template-columns: 1fr;
  }
  .hf-card,
  .hf-job {
    box-shadow: none;
    border-color: #ddd;
  }
}

/* ==========================================================================
   21. PAGE PATTERNS
   Reusable, page-level compositions built from the primitives above.
   ========================================================================== */

/* --- Search page ------------------------------------------------------- */
.hf-searchbar-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 55;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: var(--sp-3);
}
.hf-results-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-5) var(--sp-3);
}
.hf-result-count {
  font-size: var(--text-md);
  color: var(--text-muted);
}
.hf-result-count strong {
  color: var(--text-strong);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hf-results-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.hf-results-controls .hf-select {
  height: 38px;
  width: auto;
  min-width: 168px;
  font-size: var(--text-sm);
}
.hf-recent {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  padding-bottom: var(--sp-4);
}
.hf-recent-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.hf-filter-toggle {
  display: none;
}
@media (max-width: 1024px) {
  .hf-filter-toggle {
    display: inline-flex;
  }
}
.hf-badge-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--primary-500);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hf-list {
  display: grid;
  gap: var(--sp-3);
}

/* Range input (pay filter) */
.hf-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
}
.hf-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--r-full);
  background: var(--gray-200);
}
.hf-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--primary-500);
  border: 3px solid #fff;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-1) var(--ease);
}
.hf-range::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}
.hf-range::-moz-range-track {
  height: 6px;
  border-radius: var(--r-full);
  background: var(--gray-200);
}
.hf-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-500);
  border: 3px solid #fff;
  box-shadow: var(--sh-sm);
}
.hf-range:focus-visible {
  outline: none;
}
.hf-range:focus-visible::-webkit-slider-thumb {
  box-shadow: var(--ring);
}
.hf-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}

/* --- Job detail page --------------------------------------------------- */
.hf-detail-head {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.hf-detail-title-row {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.hf-detail-title {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, var(--text-3xl));
  letter-spacing: -0.028em;
}
.hf-detail-company {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-md);
  color: var(--text-muted);
  font-weight: 500;
}
.hf-detail-company a {
  color: inherit;
  font-weight: 600;
}
.hf-detail-company a:hover {
  color: var(--primary-600);
}
.hf-detail-actions {
  display: flex;
  gap: var(--sp-2);
  margin-left: auto;
  flex: none;
}
@media (max-width: 640px) {
  .hf-detail-title-row {
    flex-wrap: wrap;
  }
  .hf-detail-actions {
    margin-left: 0;
    width: 100%;
  }
}
.hf-detail-section {
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.hf-detail-section + .hf-detail-section {
  margin-top: var(--sp-4);
}
.hf-detail-section h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-3);
}
.hf-detail-section h3 {
  font-size: var(--text-md);
  margin: var(--sp-5) 0 var(--sp-2);
}
.hf-detail-poster {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--gray-100);
}

.hf-keyfacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-4);
}
.hf-keyfact {
  display: grid;
  gap: 3px;
}
.hf-keyfact dt {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hf-keyfact dt svg {
  width: 14px;
  height: 14px;
  color: var(--gray-400);
}
.hf-keyfact dd {
  margin: 0;
  font-weight: 600;
  color: var(--text-strong);
  font-size: var(--text-base);
}

.hf-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-2) var(--sp-4);
}
.hf-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-base);
  color: var(--text);
  padding: 6px 0;
}
.hf-benefit svg {
  width: 18px;
  height: 18px;
  color: var(--success-500);
  flex: none;
  margin-top: 1px;
}

.hf-apply-card {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.hf-apply-card .hf-btn {
  width: 100%;
}
.hf-employer-card {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.hf-employer-head {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
}
.hf-safety {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--warning-50);
  border: 1px solid var(--warning-100);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: var(--warning-700);
  line-height: var(--leading-relaxed);
}
.hf-safety svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}
.hf-applied-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--success-50);
  border: 1px solid var(--success-100);
  border-radius: var(--r-md);
  color: var(--success-700);
  font-weight: 600;
}
.hf-applied-banner svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* --- Auth / form pages ------------------------------------------------- */
.hf-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  min-height: calc(100vh - var(--nav-h));
}
@media (max-width: 1024px) {
  .hf-auth-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hf-auth-main {
  display: grid;
  place-items: center;
  padding: var(--sp-12) var(--sp-5);
}
.hf-auth-card {
  width: 100%;
  max-width: 460px;
  display: grid;
  gap: var(--sp-6);
}
.hf-auth-aside {
  position: relative;
  overflow: hidden;
  padding: var(--sp-12) var(--sp-10);
  background: linear-gradient(160deg, var(--primary-800), var(--primary-500));
  color: #fff;
  display: grid;
  align-content: center;
  gap: var(--sp-6);
}
@media (max-width: 1024px) {
  .hf-auth-aside {
    display: none;
  }
}
.hf-auth-aside h2 {
  color: #fff;
}
.hf-auth-aside p {
  color: rgba(255, 255, 255, 0.82);
  line-height: var(--leading-relaxed);
}
.hf-auth-aside::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  right: -140px;
  bottom: -180px;
}
.hf-auth-points {
  display: grid;
  gap: var(--sp-4);
  position: relative;
  z-index: 1;
}
.hf-auth-point {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--text-base);
}
.hf-auth-point svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: #a9c8ff;
  margin-top: 1px;
}
.hf-auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-subtle);
  font-size: var(--text-sm);
}
.hf-auth-divider::before,
.hf-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.hf-form-grid {
  display: grid;
  gap: var(--sp-4);
}
.hf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 560px) {
  .hf-form-row {
    grid-template-columns: 1fr;
  }
}
.hf-password-wrap {
  position: relative;
}
.hf-password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--gray-500);
}
.hf-password-toggle:hover {
  background: var(--gray-100);
  color: var(--text-strong);
}
.hf-password-wrap .hf-input {
  padding-right: 44px;
}
.hf-strength {
  display: grid;
  gap: 6px;
}
.hf-strength-bars {
  display: flex;
  gap: 4px;
}
.hf-strength-bars span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--gray-200);
  transition: background var(--dur-2) var(--ease);
}

/* --- App / dashboard shell --------------------------------------------- */
.hf-app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
}
@media (max-width: 1024px) {
  .hf-app {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hf-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
@media (max-width: 1024px) {
  .hf-sidebar {
    position: fixed;
    z-index: 95;
    width: 264px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform var(--dur-3) var(--ease-out);
    box-shadow: var(--sh-xl);
  }
  .hf-sidebar.is-open {
    transform: none;
  }
}
.hf-sidebar-section {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-subtle);
  padding: var(--sp-4) var(--sp-3) var(--sp-2);
}
.hf-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-muted);
  transition:
    background var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease);
}
.hf-sidebar-link svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.hf-sidebar-link:hover {
  background: var(--gray-100);
  color: var(--text-strong);
}
.hf-sidebar-link.is-active {
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 600;
}
.hf-sidebar-link .hf-badge-count {
  margin-left: auto;
}
.hf-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: var(--nav-h);
  padding-inline: var(--sp-5);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.hf-app-main {
  padding: var(--sp-6) var(--sp-6) var(--sp-12);
  display: grid;
  gap: var(--sp-6);
  align-content: start;
}
@media (max-width: 640px) {
  .hf-app-main {
    padding: var(--sp-4) var(--sp-4) var(--sp-10);
  }
}
.hf-page-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: flex-end;
  justify-content: space-between;
}
.hf-page-head p {
  color: var(--text-muted);
  margin-top: 4px;
}
.hf-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  justify-content: space-between;
}
.hf-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--sp-4);
}
.hf-row-actions {
  display: flex;
  gap: var(--sp-1);
  justify-content: flex-end;
}

/* --- Content / marketing pages ----------------------------------------- */
.hf-page-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-16) var(--sp-12);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hf-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    700px 300px at 15% -20%,
    var(--primary-50),
    transparent 65%
  );
}
.hf-page-hero .hf-container {
  position: relative;
}
@media (max-width: 768px) {
  .hf-page-hero {
    padding-block: var(--sp-12) var(--sp-8);
  }
}

.hf-content {
  max-width: 74ch;
  display: grid;
  gap: var(--sp-5);
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}
.hf-content h2 {
  font-size: var(--text-2xl);
  color: var(--text-strong);
  margin-top: var(--sp-6);
}
.hf-content h3 {
  font-size: var(--text-lg);
  color: var(--text-strong);
  margin-top: var(--sp-4);
}
.hf-content p + p {
  margin-top: var(--sp-4);
}
.hf-content ul {
  display: grid;
  gap: var(--sp-2);
}
.hf-content li {
  position: relative;
  padding-left: 1.5em;
}
.hf-content li::before {
  content: "";
  position: absolute;
  left: 0.25em;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-400);
}
.hf-content a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--primary-200);
}
.hf-content a:hover {
  text-decoration-color: var(--primary-500);
}
.hf-content strong {
  color: var(--text-strong);
}

/* Numbered process steps */
.hf-process-steps {
  display: grid;
  gap: var(--sp-5);
  counter-reset: step;
}
.hf-step-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.hf-step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 800;
  font-size: var(--text-md);
  font-variant-numeric: tabular-nums;
}
.hf-step-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 6px;
}
.hf-step-card p {
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  font-size: var(--text-base);
}
.hf-step-card ul {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.hf-step-card li {
  position: relative;
  padding-left: 1.4em;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.hf-step-card li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success-500);
}
@media (max-width: 560px) {
  .hf-step-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hf-callout {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--r-md);
  color: var(--primary-800);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
.hf-callout svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}
.hf-callout--warning {
  background: var(--warning-50);
  border-color: var(--warning-100);
  color: var(--warning-700);
}
.hf-callout--success {
  background: var(--success-50);
  border-color: var(--success-100);
  color: var(--success-700);
}

/* FAQ accordion */
.hf-faq {
  display: grid;
  gap: var(--sp-2);
}
.hf-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.hf-faq details[open] {
  border-color: var(--primary-200);
  box-shadow: var(--sh-xs);
}
.hf-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-strong);
  list-style: none;
  font-size: var(--text-md);
}
.hf-faq summary::-webkit-details-marker {
  display: none;
}
.hf-faq summary::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--gray-400);
  background: currentColor;
  transition: transform var(--dur-2) var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.hf-faq details[open] summary::after {
  transform: rotate(180deg);
}
.hf-faq .hf-faq-body {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  font-size: var(--text-base);
}

/* Data viz: simple horizontal bars for salary/insight pages */
.hf-bar-fill {
  display: block;
}
.hf-bars {
  display: grid;
  gap: var(--sp-3);
}
.hf-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr auto;
  gap: var(--sp-3);
  align-items: center;
  font-size: var(--text-sm);
}
@media (max-width: 640px) {
  .hf-bar-row {
    grid-template-columns: 1fr auto;
  }
  .hf-bar-row .hf-bar {
    grid-column: 1 / -1;
  }
}
.hf-bar {
  height: 10px;
  border-radius: var(--r-full);
  background: var(--gray-100);
  overflow: hidden;
}
.hf-bar-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
  transition: width var(--dur-3) var(--ease-out);
}
.hf-bar-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text-strong);
  white-space: nowrap;
}

/* Range display for salary explorer */
.hf-payrange {
  display: grid;
  gap: 6px;
  padding: var(--sp-5);
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.hf-payrange-values {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.hf-payrange-median {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

/* Public marketplace refinements */
.hf-demo-notice {
  padding: 7px 20px;
  text-align: center;
  background: #eaf0ff;
  color: #304c8b;
  font-size: 12px;
  font-weight: 500;
}
.hf-text-brand {
  color: var(--primary-500);
}
.hf-brand {
  font-size: 23px;
  letter-spacing: -0.9px;
}
.hf-brand-mark {
  width: 36px;
  height: 36px;
}
.hf-nav-inner {
  gap: 32px;
}
.hf-nav-link {
  font-size: 14px;
}
.hf-nav-actions {
  flex-shrink: 0;
}
.hf-nav-actions .hf-btn {
  min-height: 40px;
}
.hf-hero-inner {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.8fr);
  justify-items: stretch;
  align-items: center;
  gap: 28px 64px;
  text-align: start;
  padding-block: 64px 40px;
}
.hf-hero-intro {
  display: grid;
  gap: 23px;
}
.hf-hero-intro .hf-display {
  font-size: clamp(40px, 4.6vw, 66px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.hf-hero-intro .hf-lede {
  font-size: 18px;
  max-width: 46ch;
}
.hf-hero-intro .hf-badge {
  justify-self: start;
}
.hf-hero-inner > .hf-searchbar {
  grid-column: 1 / -1;
  padding: 10px;
  margin-top: 12px;
  box-shadow: 0 8px 32px #1c386110;
  border-color: #d7dfea;
}
.hf-hero-inner > .hf-cluster {
  grid-column: 1 / -1;
}
.hf-hero-inner > .hf-trust {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding-top: 12px;
  font-size: 13px;
}
.hf-hero-spotlight {
  position: relative;
  padding: 20px 36px 24px 16px;
  isolation: isolate;
}
.hf-hero-spotlight::before {
  content: "";
  position: absolute;
  inset: 42px 16px 40px 36px;
  border: 1px solid #cddafd;
  background: #e8efff;
  border-radius: 20px;
  transform: rotate(5deg);
  z-index: -1;
}
.hf-spotlight-caption {
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: #617397;
  margin: 0 0 14px 8px;
}
.hf-spotlight-card {
  display: grid;
  gap: 10px;
  padding: 26px;
  border: 1px solid #dce3ef;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 40px #2b477514;
}
.hf-spotlight-card h2 {
  font-size: 23px;
}
.hf-spotlight-card > .hf-micro {
  font-size: 14px;
  margin-top: 4px;
}
.hf-spotlight-card .hf-meta-item {
  font-size: 13px;
}
.hf-spotlight-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}
.hf-spotlight-bottom strong {
  color: #18497d;
  font-size: 14px;
}
.hf-spotlight-note {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  right: -8px;
  bottom: -8px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 12px;
  color: var(--text-muted);
}
.hf-spotlight-note strong {
  color: var(--text-strong);
}
.hf-note-icon {
  display: grid;
  place-items: center;
  color: #247f69;
  background: #e6f8ee;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
}
.hf-resource-section {
  background: var(--surface);
}
.hf-resource {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: #f4f7fb;
  border-radius: var(--r-lg);
  color: var(--text);
  transition: background 0.2s;
}
.hf-resource:nth-child(2) {
  background: #eff7f3;
}
.hf-resource:nth-child(3) {
  background: #f8f4ed;
}
.hf-resource h3 {
  font-size: 23px;
  line-height: 1.3;
}
.hf-resource p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.hf-resource-link {
  color: var(--text-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  padding-top: 8px;
}
.hf-resource-link span {
  font-size: 20px;
}
.hf-resource:hover {
  background: var(--primary-50);
  color: var(--text);
}
.hf-form-error {
  padding: 12px 14px;
  background: var(--danger-50);
  color: var(--danger-700);
  border: 1px solid var(--danger-100);
  border-radius: var(--r-md);
  font-size: 14px;
}
.hf-hero-bg {
  background: linear-gradient(110deg, #f8faff, #f0f5ff 68%, #f4f8fc);
}
.hf-hero-grid {
  opacity: 0.16;
}
.hf-job {
  padding: 24px;
}
.hf-job-body .hf-badge {
  justify-self: start;
}
.hf-job-company .hf-badge {
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 10px;
}
.hf-job-title {
  font-size: 19px;
}
.hf-job-salary {
  color: #28664d;
}
.hf-job-foot {
  border-top-color: #f0f2f5;
}
.hf-job-foot .hf-micro {
  line-height: 1.8;
}
.hf-footer {
  margin-top: 48px;
}
.hf-checkbox .hf-choice-label {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.hf-choice-count {
  font-size: 11px;
  padding: 1px 5px;
  background: var(--gray-50);
  border-radius: 4px;
}
.hf-filter-group {
  border-radius: 12px;
}
.hf-filter-body {
  gap: 0;
}
.hf-filter-head {
  font-size: 14px;
}
.hf-filters-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}
.hf-results-heading {
  padding-block: 28px 4px;
}
.hf-results-heading h1 {
  font-size: 26px;
}
.hf-results-heading p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}
.hf-chip button {
  min-width: 28px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
}
.hf-chip--remove {
  padding-block: 2px;
}
.hf-safety + .hf-card {
  margin-top: 0;
}
@media (max-width: 1150px) {
  .hf-nav-inner {
    gap: 16px;
  }
  .hf-nav-link {
    padding-inline: 8px;
  }
  .hf-nav-actions > .hf-hide-sm {
    display: none;
  }
  .hf-hero-inner {
    gap: 28px 32px;
  }
}
@media (max-width: 850px) {
  .hf-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
  .hf-hero-spotlight {
    display: none;
  }
  .hf-hero-intro {
    max-width: 650px;
  }
  .hf-hero-intro .hf-display {
    font-size: clamp(39px, 7vw, 56px);
  }
}
@media (max-width: 768px) {
  .hf-hero-inner > .hf-searchbar {
    margin-top: 0;
  }
  .hf-hero-inner > .hf-trust {
    gap: 12px 24px;
  }
  .hf-trust-item {
    font-size: 12px;
  }
  .hf-job {
    padding: 18px;
  }
  .hf-job-top {
    gap: 12px;
  }
  .hf-job-title {
    font-size: 17px;
  }
  .hf-job-company {
    font-size: 13px;
    flex-wrap: wrap;
  }
  .hf-job-foot {
    flex-wrap: wrap;
  }
  .hf-job-actions {
    margin-left: auto;
  }
  .hf-btn--sm {
    min-height: 40px;
  }
  .hf-results-controls {
    width: 100%;
    flex-wrap: wrap;
  }
  .hf-results-controls .hf-select {
    flex: 1;
    min-width: 140px;
    max-width: 220px;
  }
  .hf-nav-actions .hf-btn {
    padding-inline: 10px;
  }
  .hf-nav-inner {
    gap: 12px;
  }
  .hf-nav-actions {
    gap: 4px;
  }
  .hf-nav-actions > .hf-btn:last-of-type {
    display: none;
  }
  .hf-brand {
    font-size: 21px;
  }
}
.hf-mt-3 {
  margin-top: 12px;
}
.hf-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-600);
  font-weight: 600;
  font-size: 14px;
  min-height: 36px;
}
.hf-auth-card .hf-h1 {
  line-height: 1.2;
  font-size: 34px;
}
.hf-auth-main {
  background: white;
}
.hf-auth-art {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}
.hf-auth-art > div {
  display: flex;
  justify-content: space-between;
  border: 1px solid #ffffff38;
  padding: 15px 18px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
}
.hf-auth-art > div:nth-child(2) {
  transform: translateX(12px);
  background: #ffffff10;
}
.hf-auth-art > div:nth-child(3) {
  transform: translateX(24px);
  background: #ffffff20;
}
.hf-onboarding-extra {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.hf-onboarding-extra summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  min-height: 32px;
}
.hf-auth-card .hf-hint:empty {
  display: none;
}
.hf-auth-card .hf-form-row {
  grid-template-columns: 1fr;
}

/* Candidate workspace */
.hf-candidate-app {
  min-height: calc(100vh - var(--nav-h));
}
.hf-candidate-app .hf-sidebar {
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  padding: 24px 16px;
}
.hf-candidate-app .hf-app-main {
  padding: 36px;
  max-width: 1240px;
  width: 100%;
}
.hf-candidate-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 6px 20px;
  overflow-wrap: anywhere;
}
.hf-candidate-identity strong {
  display: block;
  font-size: 14px;
}
.hf-candidate-identity .hf-avatar {
  width: 42px;
  height: 42px;
}
.hf-candidate-tabs {
  display: grid;
  gap: 4px;
}
.hf-sidebar-bottom {
  margin-top: auto;
  padding-top: 32px;
}
.hf-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--primary-50);
  color: var(--primary-600);
  border-radius: 10px;
  flex-shrink: 0;
}
.hf-candidate-app .hf-stat-value {
  margin-top: 8px;
}
.hf-candidate-app .hf-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hf-candidate-app .hf-stat {
  gap: 8px;
}
.hf-candidate-app .hf-stat-label {
  font-size: 12px;
}
.hf-profile-progress {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  background: #eef3ff;
  border: 1px solid #dce5ff;
  border-radius: var(--r-lg);
}
.hf-profile-progress > div:first-child {
  flex: 1;
}
.hf-profile-progress strong {
  font-size: 14px;
}
.hf-profile-progress .hf-micro {
  margin-top: 5px;
}
.hf-profile-meter {
  width: 150px;
  flex-shrink: 0;
}
.hf-profile-meter .hf-progress {
  margin-top: 6px;
  height: 6px;
  background: #d2ddf7;
}
.hf-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.hf-section-heading h2 {
  font-size: 22px;
}
.hf-application-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.hf-application-toolbar .hf-input-wrap {
  flex: 1;
}
.hf-application-toolbar .hf-select {
  width: 180px;
}
.hf-application-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.hf-application-card h3 a {
  color: var(--text-strong);
}
.hf-application-card h3 a:hover {
  color: var(--primary-600);
}
.hf-application-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  flex: none;
}
.hf-application-end {
  display: grid;
  gap: 8px;
  justify-items: end;
}
.hf-application-steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}
.hf-application-steps li {
  display: grid;
  gap: 8px;
  justify-items: center;
  position: relative;
  flex: 1;
}
.hf-application-steps li span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-weight: 600;
}
.hf-application-steps .is-done span {
  background: var(--primary-50);
  color: var(--primary-600);
  border-color: var(--primary-100);
}
.hf-upload-box {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 28px;
  border: 1px dashed var(--primary-200);
  background: #f8faff;
  border-radius: var(--r-lg);
}
.hf-upload-box > div:first-child {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.hf-upload-box svg {
  color: var(--primary-500);
}
.hf-upload-box input {
  max-width: 100%;
  font-size: 14px;
}
.hf-upload-box input::file-selector-button {
  background: white;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 12px;
  margin-right: 12px;
  color: var(--text-strong);
}
.hf-document-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.hf-document-icon {
  display: grid;
  place-items: center;
  background: #fff1eb;
  color: #b15c38;
  width: 40px;
  height: 44px;
  border-radius: 8px;
  flex: none;
}
.hf-message-row {
  display: flex;
  gap: 16px;
  align-items: center;
  background: white;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: 100%;
}
.hf-message-row.is-unread {
  background: #f7faff;
  border-color: var(--primary-200);
}
.hf-message-row:hover {
  border-color: var(--primary-400);
}
.hf-message-row .hf-micro {
  display: block;
  margin: 5px 0;
}
.hf-conversation {
  display: grid;
  gap: 16px;
}
.hf-bubble {
  max-width: 90%;
  background: var(--gray-100);
  border-radius: 12px 12px 12px 2px;
  padding: 16px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.hf-bubble.is-mine {
  background: var(--primary-50);
  justify-self: end;
  border-radius: 12px 12px 2px 12px;
}
.hf-bubble p {
  margin-block: 8px;
}
.hf-activity-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.hf-activity-item:last-child {
  border-bottom: 0;
}
@media (max-width: 1200px) {
  .hf-candidate-app .hf-app-main {
    padding: 24px;
  }
  .hf-candidate-app .hf-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hf-profile-progress {
    flex-wrap: wrap;
    gap: 16px;
  }
}
@media (max-width: 1024px) {
  .hf-candidate-app {
    display: block;
  }
  .hf-candidate-app .hf-sidebar {
    transform: none;
    position: static;
    width: auto;
    height: auto;
    display: block;
    padding: 8px 16px;
    box-shadow: none;
    overflow: auto;
  }
  .hf-candidate-identity,
  .hf-candidate-app .hf-sidebar-section {
    display: none;
  }
  .hf-candidate-tabs {
    display: flex;
    gap: 4px;
    white-space: nowrap;
  }
  .hf-candidate-app .hf-sidebar-bottom {
    margin: 0;
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
  }
  .hf-candidate-app .hf-sidebar-link {
    font-size: 13px;
    padding: 8px 10px;
  }
}
@media (max-width: 640px) {
  .hf-candidate-app .hf-app-main {
    padding: 24px 16px;
  }
  .hf-candidate-app .hf-page-head .hf-h1 {
    font-size: 25px;
  }
  .hf-candidate-app .hf-page-head .hf-eyebrow {
    font-size: 10px;
  }
  .hf-candidate-app .hf-stat {
    padding: 14px;
  }
  .hf-candidate-app .hf-stat-icon {
    width: 26px;
    height: 26px;
  }
  .hf-candidate-app .hf-stat-value {
    font-size: 26px;
  }
  .hf-profile-progress {
    padding: 16px;
  }
  .hf-profile-progress > div:first-child {
    flex-basis: 100%;
  }
  .hf-profile-meter {
    flex: 1;
  }
  .hf-application-card {
    padding: 18px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .hf-application-card h3 {
    font-size: 16px;
  }
  .hf-application-icon {
    width: 38px;
    height: 38px;
  }
  .hf-application-card .hf-grow {
    flex: 1;
    min-width: 170px;
  }
  .hf-application-end {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
  }
  .hf-application-toolbar {
    flex-wrap: wrap;
  }
  .hf-application-toolbar .hf-input-wrap {
    min-width: 100%;
  }
  .hf-application-toolbar .hf-select {
    width: 100%;
  }
  .hf-document-card {
    flex-wrap: wrap;
  }
  .hf-document-card .hf-cluster {
    width: 100%;
    justify-content: flex-end;
  }
}
.hf-btn.hf-hide-sm {
  display: inline-flex;
}
.hf-footer .hf-brand {
  font-size: 22px;
  color: #fff;
}
.hf-marketplace-fields {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.hf-marketplace-fields .hf-form-row {
  row-gap: 16px;
}
@media (max-width: 768px) {
  .hf-btn.hf-hide-sm {
    display: none;
  }
}
.hf-auth-card p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hf-detail-company {
  flex-wrap: wrap;
  row-gap: 6px;
  margin-top: 8px;
}
.hf-detail-head,
.hf-detail-section,
.hf-apply-card {
  min-width: 0;
  overflow-wrap: anywhere;
}
.hf-layout-detail > * {
  min-width: 0;
}
@media (max-width: 640px) {
  .hf-input,
  .hf-select,
  .hf-textarea,
  .hf-searchbar-field input,
  .hf-searchbar-field select,
  .hf-searchbar--compact .hf-searchbar-field input {
    font-size: 16px;
  }
  .hf-btn--sm {
    min-height: 44px;
  }
}
.hf-job-title,
.hf-job-company,
.hf-prose,
.hf-modal {
  overflow-wrap: anywhere;
}
.hf-recent .hf-chip {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.hf-prose ol {
  list-style: decimal;
  display: grid;
  gap: 8px;
  padding-left: 1.5em;
  margin-top: 12px;
}
.hf-prose ol li {
  padding-left: 4px;
}
.hf-prose ol li::before {
  display: none;
}
.hf-prose > div + div {
  margin-top: 16px;
}
