:root {
  /* Brand */
  --primary: #2D6C26;
  --primary-hover: #235a1e;
  --secondary: #FED700;
  --accent: #E6FBF0;      /* mint accent surface */
  --bg: #F4F4F4;           /* page background */
  --text-muted: #808080;   /* "Text colour" grey */
  --text-subtle: #CCCCCC;  /* lighter grey */
  --ink: #2B2B2B;          /* near-black text */

  /* Aliases used throughout existing views — keep old var names working */
  --accent-2: var(--secondary);
  --success: var(--primary);
  --danger: #c0392b;
}

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: white;
}

h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: black;
}

.app-main { min-height: calc(100vh - 64px); padding: 2rem 0 4rem; }

a { color: var(--primary-2); }

/* ===== Landing page v2 ===== */
.landing-v2-nav {
  position: absolute;
  top: 1.5rem; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1100px;
  background: #fff;
  border-radius: 999px;
  padding: 0.6rem 0.6rem 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 10;
}
.landing-v2-nav .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.landing-v2-nav .brand span { color: var(--secondary); }
.landing-v2-nav .nav-links { display: flex; gap: 1.75rem; }
.landing-v2-nav .nav-links a { color: var(--ink); font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.landing-v2-nav .nav-links a:hover { color: var(--primary); }

.landing-v2-hero {
  position: relative;
  min-height: 900px;
  border-radius: 24px;
  margin: 1.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.landing-v2-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.landing-v2-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.15), rgba(20,20,20,0.6));
  z-index: 1;
}
.landing-v2-hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 3rem 3rem;
  max-width: 620px;
  color: #fff;
}
.landing-v2-hero-content h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.landing-v2-hero-content h1 .accent-line { color: var(--secondary); display: block; }
.landing-v2-hero-content p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 1.75rem; }

.landing-v2-nav-static {
  position: relative;
  top: 0; left: 0; transform: none;
  margin: 1.5rem auto 0;
  width: calc(100% - 3rem);
}
.landing-v2-nav .nav-links a.active { color: var(--primary); font-weight: 700; }

.btn-amber {
  background: var(--secondary);
  color: #3A2604;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
}
.btn-amber:hover { background: #e6c200; color: #3A2604; }

/* ===== Journey section ===== */
.journey-section { padding: 5rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.journey-heading { text-align: center; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 2rem; margin-bottom: 3.5rem; color: #353535; }

.journey-feature { border-left: 3px solid var(--secondary); padding-left: 1rem; margin-bottom: 1.75rem; }
.journey-feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; }
.journey-feature p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.journey-mockup {
  background: #F1F4F2;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  height: 100%;
}
.journey-mockup h2 {
  text-align: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}
.mockup-search-row { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.mockup-search-row .fake-input {
  flex: 1;
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid #e5e5e5;
}
.mockup-search-row .fake-btn {
  background: var(--primary);
  color: var(--secondary);
  border-radius: 999px;
  padding: 17px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.mockup-job-card {
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.mockup-job-card .job-title { font-weight: 700; font-size: 0.9rem; }
.mockup-job-card .job-meta { color: var(--text-muted); font-size: 0.72rem; }
.mockup-job-card .fake-apply-btn {
  background: var(--primary);
  color: var(--secondary);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ===== HR operations placeholder section ===== */
.hr-ops-section { padding: 4rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.hr-ops-section h2 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 2rem; max-width: 480px; }
.hr-ops-section p { color: var(--text-muted); max-width: 480px; }
.checker-placeholder {
  margin-top: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background-image:
    linear-gradient(45deg, #e8e8e8 25%, transparent 25%),
    linear-gradient(-45deg, #e8e8e8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e8e8e8 75%),
    linear-gradient(-45deg, transparent 75%, #e8e8e8 75%);
  background-size: 48px 48px;
  background-position: 0 0, 0 24px, 24px -24px, -24px 0px;
  background-color: #f4f4f4;
}

/* ===== Dark CTA / feature grid ===== */
.hr-cta-band { background: var(--primary); color: #fff; padding: 5rem 1.5rem; }
.hr-cta-band { text-align: center; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 2rem; margin-bottom: 3rem; }
.hr-cta-grid-wrap {
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 2.5rem;
}
.hr-cta-item .feat-i { font-size: 1.3rem; color: var(--secondary); margin-bottom: 0.6rem; }
.hr-cta-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.hr-cta-item p { font-size: 0.85rem; opacity: 0.85; margin: 0; }

@media (max-width: 767px) {
  .landing-v2-nav .nav-links { display: none; }
  .landing-v2-hero-content { padding: 6rem 1.5rem 2.5rem; }
  .landing-v2-hero-content h1 { font-size: 2rem; }
}

/* ---------- Navbar ---------- */
.app-navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
.app-navbar .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.95rem;
}
.app-navbar .nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.5rem 0.9rem;
}
.app-navbar .nav-link.active { color: var(--primary); font-weight: 600; }

/* ---------- Auth / centered card pages ---------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1100px 500px at 15% -10%, #EEF1FA 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 10%, #FFF4E1 0%, transparent 55%),
    var(--bg);
  padding: 1.5rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.auth-brand .brand-mark { width: 38px; height: 38px; font-size: 1.05rem; }
.auth-brand span.name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }

/* ---------- Cards / panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel-pad { padding: 1.5rem; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; }
.stat-card .stat-label { color: var(--ink-soft); font-size: 0.85rem; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus { background: var(--primary-2); border-color: var(--primary-2); }
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #3A2604;
  font-weight: 600;
}
.btn-accent:hover { background: #d99629; color: #3A2604; }
.btn:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}

/* ---------- Badges (status) ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
}
.status-locked   { background: var(--locked-bg); color: #6b7280; }
.status-unlocked { background: var(--accent-2); color: #8a5a10; }
.status-in_progress { background: var(--accent-2); color: #8a5a10; }
.status-submitted { background: #E7EEFB; color: var(--primary-2); }
.status-approved { background: var(--success-bg); color: var(--success); }
.status-rejected { background: var(--danger-bg); color: var(--danger); }
.status-skipped { background: var(--locked-bg); color: #9096a3; font-style: italic; }

/* =========================================================
   SIGNATURE ELEMENT — The Stage Rail
   A vertical connected timeline where each node's fill state
   literally is the data: locked / unlocked / submitted / approved.
   ========================================================= */
.stage-rail { position: relative; padding-left: 3rem; }
.stage-rail .rail-line {
  position: absolute;
  left: 1.05rem;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 2px;
  background: var(--border);
}
.rail-node {
  position: relative;
  margin-bottom: 0.9rem;
}
.rail-dot {
  position: absolute;
  left: -3rem;
  top: 1.15rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--surface);
  z-index: 1;
}
.rail-dot.dot-locked { color: var(--locked); border-color: var(--border); background: var(--locked-bg); }
.rail-dot.dot-unlocked, .rail-dot.dot-in_progress { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-2); }
.rail-dot.dot-submitted { color: #fff; background: var(--primary-2); border-color: var(--primary-2); }
.rail-dot.dot-approved { color: #fff; background: var(--success); border-color: var(--success); }
.rail-dot.dot-rejected { color: #fff; background: var(--danger); border-color: var(--danger); }
.rail-dot.dot-skipped { color: #9096a3; border-color: var(--border); background: var(--locked-bg); }

.rail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;
}
.rail-card.is-current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-2); }
.rail-card.is-locked { opacity: 0.6; }
.rail-card h6 { font-family: var(--font-display); font-weight: 700; margin-bottom: 0.15rem; }

/* ---------- Onboarding item cards (employee stage view) ---------- */
.item-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.9rem;
  background: var(--surface);
}
.item-card.item-done { border-color: #bfe3cc; background: var(--success-bg); }
.item-icon {
  width: 2.2rem; height: 2.2rem;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.item-card.item-done .item-icon { background: var(--success-bg); color: var(--success); }

/* NDA / text agreement scroll box */
.agreement-box {
  max-height: 260px;
  overflow-y: auto;
  background: #FBFBFD;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Signature pad */
.sig-pad-wrap {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  background: #FBFBFD;
}
canvas#sigPad { width: 100%; height: 180px; touch-action: none; cursor: crosshair; }

/* Progress bar */
.progress { height: 8px; border-radius: 99px; background: var(--locked-bg); }
.progress-bar { background: var(--accent); }

/* Table tidy-up */
.table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom-width: 1px;
  font-weight: 600;
}
.table td, .table th { vertical-align: middle; }

.form-label { font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: var(--primary-2); box-shadow: 0 0 0 3px var(--primary-light); }

.subtle { color: var(--ink-soft); }
.mono { font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; }

@media (max-width: 576px) {
  .stage-rail { padding-left: 2.4rem; }
  .rail-dot { left: -2.35rem; width: 1.8rem; height: 1.8rem; font-size: 0.8rem; }
  .stage-rail .rail-line { left: 0.85rem; }
}

/* =========================================================
   APP SHELL — sidebar navigation (replaces the old top navbar
   as the primary way to move between modules as the product grows)
   ========================================================= */
.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 1030;
}
.app-sidebar .sidebar-brand {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1.35rem 1.25rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  color: #000000; text-decoration: none;
}
.app-sidebar .sidebar-brand .brand-mark { background: var(--accent); color: #3A2604; }
.app-sidebar .sidebar-section-label {
  padding: 1rem 1.25rem 0.35rem;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(6, 6, 6, 0.45); font-weight: 600;
}
.app-sidebar .sidebar-link {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 1.25rem;
  color: rgba(10, 10, 10, 0.78);
  text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  border-left: 3px solid transparent;
}
.app-sidebar .sidebar-link i { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.app-sidebar .sidebar-link:hover { background: rgba(255,255,255,0.06); color: #000000; }
.app-sidebar .sidebar-link.active {
  background: rgba(255,255,255,0.1);
  color: #000000;
  border-left-color: var(--accent);
  font-weight: 600;
}
.app-sidebar .sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.app-sidebar .sidebar-user { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.app-sidebar .sidebar-user .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #3A2604;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.app-sidebar .sidebar-user .name { font-size: 0.85rem; font-weight: 600; color: #060606; line-height: 1.2; }
.app-sidebar .sidebar-user .role { font-size: 0.72rem; color: rgba(0, 0, 0, 0.55); }
.app-sidebar .sidebar-footer form button {
  width: 100%; font-size: 0.85rem;
  background: rgba(255,255,255,0.08); color: #171515; border: 1px solid rgba(255,255,255,0.15);
}
.app-sidebar .sidebar-footer form button:hover { background: rgba(172, 206, 20, 0.16); }

.app-content { flex-grow: 1; min-width: 0; }
.app-topbar {
  display: none;
  align-items: center; justify-content: space-between;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
}
.app-main { min-height: calc(100vh - 0px); padding: 2rem 0 4rem; }

@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); transition: transform .2s ease; width: 270px; }
  .app-sidebar.show { transform: translateX(0); box-shadow: var(--shadow-md); }
  .app-content { margin-left: 0; }
  .app-topbar { display: flex; }
  .sidebar-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 1025;
  }
  .sidebar-backdrop.show { display: block; }
}

/* =========================================================
   LANDING PAGE
   ========================================================= */
.landing-hero {
  background:
    radial-gradient(1100px 500px at 15% -10%, #EEF1FA 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 10%, #FFF4E1 0%, transparent 55%),
    var(--bg);
  padding: 5rem 0 4rem;
}
.landing-hero h1 { font-size: 2.6rem; max-width: 640px; }
.landing-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.landing-feature-card .feat-icon {
  width: 2.6rem; height: 2.6rem; border-radius: 10px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 0.9rem;
}
.landing-nav { background: transparent; padding: 1.25rem 0; }
.landing-nav .brand-mark { background: var(--primary); }



/* Buttons — matches the three-state pill button in Image 2 */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn-primary:active {
  background: #1b4716;
  border-color: #1b4716;
}
.btn-primary:disabled {
  background: var(--text-subtle);
  border-color: var(--text-subtle);
  color: #999;
}

.btn-outline-primary {
  border-radius: 999px;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding:12px;
  background-color: white;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* Inputs — matches the four-state field in Image 2 */
.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid var(--text-subtle);
  background: #fafafa;
  padding: 0.6rem 0.9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45, 108, 38, 0.12);
}
.form-control:disabled {
  background: #ededed;
  color: #aaa;
}

/* Careers page */
.careers-hero {
  text-align: center;
  padding: 4rem 1rem 2rem;
}
.careers-hero h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 2.75rem;
  color: var(--ink);
}
.careers-search {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.careers-search .form-control,
.careers-search .form-select {
  flex: 1;
  min-width: 200px;
}
.job-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.job-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.job-card .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.job-card-clickable {
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.job-card-clickable:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

/* Button text uses the secondary (amber) color on the primary green
   background, matching the screenshot — not plain white */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
  border-radius: 999px;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--secondary);
}
.btn-primary:active {
  background: var(--primary-active, #1b4716);
  border-color: var(--primary-active, #1b4716);
  color: var(--secondary);
}
.cv-upload-zone {
  border: 1px solid var(--text-subtle);
  border-radius: 999px;
  background: #fff;
  padding: 0.9rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}
.cv-upload-zone:hover { border-color: var(--primary); }
.cv-upload-link { color: var(--primary); font-weight: 600; }
/* Status pills matching Jobs index screenshot exactly */
.job-status-pill {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.job-status-open   { background: var(--accent); color: var(--primary); }
.job-status-closed { background: #FCE2E0; color: #c0392b; }
.job-status-draft  { background: #ECECEC; color: #666; }

/* Toggle switch (Step 2 required toggles) */
.field-toggle {
  position: relative;
  width: 38px; height: 20px;
  display: inline-block;
  flex-shrink: 0;
}
.field-toggle input { opacity: 0; width: 0; height: 0; }
.field-toggle .slider {
  position: absolute; inset: 0;
  background: #ddd;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s;
}
.field-toggle .slider::before {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  left: 2px; top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.15s;
}
.field-toggle input:checked + .slider { background: var(--primary); }
.field-toggle input:checked + .slider::before { transform: translateX(18px); }
.field-toggle input:disabled + .slider { background: var(--primary); opacity: 0.6; cursor: not-allowed; }

/* Wizard progress bar */
.wizard-progress { display: flex; gap: 6px; margin-bottom: 2rem; }
.wizard-progress .seg { flex: 1; height: 4px; border-radius: 4px; background: #e0e0e0; }
.wizard-progress .seg.done { background: var(--primary); }

/* Floating collapse-style circular button (top-right on wizard steps) */
.floating-circle-btn {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  border: none;
  z-index: 20;
}

/* Field row on Step 2 */
.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  margin-bottom: 0.75rem;
}
.field-row .field-name { font-weight: 600; font-size: 0.95rem; }
.field-row .field-meta { display: flex; align-items: center; gap: 0.75rem; }

.add-field-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--secondary);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.add-field-menu {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 0.5rem;
  min-width: 200px;
}
.add-field-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
}
.add-field-menu a:hover { background: #f5f6f4; }
.pipeline-tab {
  text-decoration: none;
  font-size: 16px;
  padding: 4px 12px;
}

.pipeline-tab.active {
  background-color: white;
}
.merge-token {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  border: 1px solid #c9ecd8;
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
  font-family: 'Inter', monospace;
  font-size: 0.85em;
  white-space: nowrap;
}