/* ============================================================
   JOB SEEKER PORTAL — 1:1 with job-portal.html mockup
   ============================================================ */
:root {
  --red: #d71920;
  --red-dark: #b51218;
  --ink: #17202d;
  --ink-dark: #0f192d;
  --muted: #667085;
  --border: #e3e7ed;
  --bg: #f7f8fa;
  --muted-2: #9ca3af;
  --red-soft: #fff0f0;
  --blue-soft: #f0f4ff;
  --amber-soft: #fff8f0;
}

body.jobs-portal * { box-sizing: border-box; }
body.jobs-portal {
  margin: 0;
  font: 14px/1.6 Montserrat, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
body.jobs-portal button,
body.jobs-portal input,
body.jobs-portal select { font: inherit; }
body.jobs-portal button,
body.jobs-portal a,
body.jobs-portal input,
body.jobs-portal select { outline-offset: 4px; }
body.jobs-portal button { cursor: pointer; }
body.jobs-portal button {
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 17px;
  font-weight: 600;
}
body.jobs-portal button:hover { background: #f3f4f6; }
body.jobs-portal .primary { background: var(--red); border-color: var(--red); color: white; text-decoration: none; }
body.jobs-portal .primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: white; }
body.jobs-portal .outline { border-color: #edb5b7; color: var(--red); text-decoration: none; }
/* Standard CTA format — anchors match buttons exactly */
body.jobs-portal a.primary,
body.jobs-portal a.outline {
  display: inline-block;
  padding: 10px 17px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}
body.jobs-portal .link { border: 0; background: transparent; padding: 4px; color: var(--red); }
body.jobs-portal svg {
  width: 21px;
  height: 21px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Sidebar ---------- */
body.jobs-portal .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 225px;
  background: white;
  border-right: 1px solid var(--border);
  padding: 28px 17px;
  z-index: 30;
}
body.jobs-portal .mark { color: var(--red); margin: 0 16px 35px; }
body.jobs-portal .mark svg { width: 29px; height: 29px; }
body.jobs-portal #nav { display: grid; gap: 9px; }
body.jobs-portal #nav a {
  width: 100%;
  text-align: left;
  border: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  background: transparent;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
body.jobs-portal #nav a:hover { background: #fff0f0; color: var(--red); }
body.jobs-portal #nav a.active { background: #fff0f0; color: var(--red); font-weight: 700; }
body.jobs-portal .sidebar-foot {
  position: absolute;
  bottom: 25px;
  left: 30px;
  right: 17px;
  color: var(--muted);
  font-size: 12px;
}
body.jobs-portal .small { font-size: 12px; }

/* ---------- Header (portal chrome only) ---------- */
body.jobs-portal > header {
  height: 83px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  margin-left: 225px;
}
body.jobs-portal .row { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
body.jobs-portal .top-actions { display: flex; gap: 20px; align-items: center; }
body.jobs-portal .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #fce8e9;
  color: var(--red);
  font-weight: 700;
  overflow: hidden;
}
body.jobs-portal .icon-btn {
  border: 0;
  padding: 8px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
body.jobs-portal .icon-btn:hover { color: var(--red); }
body.jobs-portal .menu { display: none; }

/* ---------- Main ---------- */
body.jobs-portal main { margin-left: 225px; padding: 36px 42px 60px; max-width: 1600px; }
body.jobs-portal h1 { font-size: 29px; letter-spacing: -.8px; line-height: 1.3; margin: 0 0 7px; }
body.jobs-portal h2 { font-size: 19px; margin: 0 0 15px; }
body.jobs-portal h3 { font-size: 15px; margin: 0 0 3px; }
body.jobs-portal p { margin: 0 0 18px; }
body.jobs-portal .muted { color: var(--muted); }
body.jobs-portal .intro { margin-bottom: 30px; }
/* ---------- Premium Statistics Cards ---------- */
body.jobs-portal .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
body.jobs-portal .stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: default;
}
body.jobs-portal .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(23, 32, 45, 0.08);
}
body.jobs-portal .stat-card:focus-within {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
body.jobs-portal .stat-card-link:focus-visible {
  outline: 2px solid var(--red);
  outlineOffset: 3px;
  border-radius: 16px;
}
body.jobs-portal .stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
body.jobs-portal .stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
body.jobs-portal .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.jobs-portal .stat-icon svg {
  width: 22px;
  height: 22px;
}
body.jobs-portal .stat-icon-red { background: var(--red-soft); color: var(--red); }
body.jobs-portal .stat-icon-blue { background: var(--blue-soft); color: #3b82f6; }
body.jobs-portal .stat-icon-amber { background: var(--amber-soft); color: #f59e0b; }
body.jobs-portal .stat-count {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink-dark);
  line-height: 1;
  margin-bottom: 8px;
}
body.jobs-portal .stat-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.5;
}
body.jobs-portal .stat-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
body.jobs-portal .stat-card-link,
body.jobs-portal .stat-card-link *,
body.jobs-portal .stat-card-link:visited,
body.jobs-portal .stat-card-link:visited *,
body.jobs-portal .stat-card-link:hover,
body.jobs-portal .stat-card-link:hover *,
body.jobs-portal .stat-card-link:focus,
body.jobs-portal .stat-card-link:focus *,
body.jobs-portal .stat-card-link:active,
body.jobs-portal .stat-card-link:active *,
body.jobs-portal .stat-label,
body.jobs-portal .stat-count,
body.jobs-portal .stat-hint,
body.jobs-portal .stat-footer-link,
body.jobs-portal .stat-footer-arrow,
body.jobs-portal .stat-card-link * {
  text-decoration: none;
  color: inherit;
  background: transparent;
}
body.jobs-portal .stat-card-link:visited,
body.jobs-portal .stat-card-link:visited *,
body.jobs-portal .stat-label:visited,
body.jobs-portal .stat-count:visited,
body.jobs-portal .stat-hint:visited,
body.jobs-portal .stat-footer-link:visited {
  color: inherit;
  background: transparent;
}
body.jobs-portal .stat-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}
body.jobs-portal .stat-footer-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color .15s ease;
}
body.jobs-portal .stat-footer-link:hover { color: var(--red); }
body.jobs-portal .stat-footer-arrow {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
body.jobs-portal .stat svg { color: var(--red); margin-bottom: 14px; }
body.jobs-portal .stat strong { display: block; font-size: 30px; margin-top: 4px; }
body.jobs-portal .stat span { color: var(--muted); }

/* ---------- Job rows ---------- */
body.jobs-portal .job { display: flex; align-items: center; gap: 17px; padding: 22px 0; border-bottom: 1px solid var(--border); }
body.jobs-portal .job:last-child { border-bottom: 0; }
body.jobs-portal .company-icon {
  width: 45px;
  height: 45px;
  border-radius: 9px;
  background: #fff0f0;
  display: grid;
  place-items: center;
  color: var(--red);
  flex-shrink: 0;
}
body.jobs-portal .job-info { flex: 1; min-width: 0; }
body.jobs-portal .job-info h3 { margin-bottom: 3px; }
body.jobs-portal .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
body.jobs-portal .chip { font-size: 12px; background: #f0f2f5; padding: 3px 10px; border-radius: 5px; color: #4c5767; }
body.jobs-portal .job-actions { display: flex; gap: 9px; align-items: center; }
body.jobs-portal .saved { color: var(--red); }
body.jobs-portal .saved svg { fill: #fde4e5; }

/* ---------- Search / filters ---------- */
body.jobs-portal .search { display: grid; grid-template-columns: 2fr 1.4fr auto; gap: 13px; }
body.jobs-portal .filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
body.jobs-portal label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
body.jobs-portal input,
body.jobs-portal select,
body.jobs-portal textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d6dce5;
  border-radius: 7px;
  background: white;
  color: var(--ink);
}
body.jobs-portal .results { margin-top: 25px; }
body.jobs-portal .empty { padding: 45px 10px; text-align: center; color: var(--muted); }

/* ---------- Job details ---------- */
body.jobs-portal .details-grid { display: grid; grid-template-columns: 1fr 290px; gap: 24px; margin-top: 25px; }
body.jobs-portal .detail-head { padding-bottom: 25px; border-bottom: 1px solid var(--border); margin-bottom: 25px; }
body.jobs-portal .detail-copy h2 { margin-top: 25px; }
body.jobs-portal .detail-copy ul { padding-left: 18px; }
body.jobs-portal .detail-copy li { margin-bottom: 8px; color: #526071; }
body.jobs-portal .stack { display: grid; gap: 12px; align-content: start; }

/* ---------- Profile ---------- */
body.jobs-portal .profile { max-width: 850px; }
body.jobs-portal .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
body.jobs-portal .full { grid-column: 1 / -1; }
body.jobs-portal .upload {
  display: block;
  border: 1px dashed #aeb8c6;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  background: #fafbfc;
}
body.jobs-portal .upload input { margin-top: 12px; }
body.jobs-portal .notice { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------- Alerts ---------- */
body.jobs-portal .alert-row { display: flex; align-items: center; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--border); }
body.jobs-portal .alert-row:last-child { border: 0; }
body.jobs-portal .alert-row .grow { flex: 1; min-width: 0; }
body.jobs-portal .toggle { position: relative; width: 44px; height: 25px; display: inline-block; flex-shrink: 0; margin: 0; }
body.jobs-portal .toggle input { opacity: 0; position: absolute; width: 100%; height: 100%; margin: 0; cursor: pointer; }
body.jobs-portal .toggle span { position: absolute; inset: 0; background: #c6cdd6; border-radius: 30px; pointer-events: none; }
body.jobs-portal .toggle span:before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  background: white;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  transition: .2s;
}
body.jobs-portal .toggle input:checked + span { background: var(--red); }
body.jobs-portal .toggle input:checked + span:before { transform: translateX(19px); }
body.jobs-portal .toggle input:focus-visible + span { outline: 3px solid #222; outline-offset: 3px; }

/* ---------- Toast / dialog / misc ---------- */
body.jobs-portal .toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #17202d;
  color: white;
  padding: 13px 24px;
  border-radius: 8px;
  z-index: 100;
  max-width: 90%;
  box-shadow: 0 5px 20px #0002;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
body.jobs-portal .toast.show { opacity: 1; }
body.jobs-portal dialog { border: 1px solid var(--border); border-radius: 12px; padding: 28px; width: 460px; max-width: 92vw; }
body.jobs-portal dialog::backdrop { background: #17202d80; }
body.jobs-portal dialog label { margin-top: 15px; }
body.jobs-portal .backdrop { display: none; }
body.jobs-portal .demo {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 5px;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Live-site additions ---------- */
body.jobs-portal .avatar-lg { width: 65px; height: 65px; font-size: 22px; }
body.jobs-portal .flash { padding: 13px 17px; border-radius: 8px; margin-bottom: 20px; font-size: 13px; font-weight: 600; }
body.jobs-portal .flash-ok { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
body.jobs-portal .flash-err { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }
body.jobs-portal .portal-logout { margin-top: 14px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-weight: 600; }
body.jobs-portal .portal-logout:hover { color: var(--red); }
body.jobs-portal .portal-logout svg { width: 16px; height: 16px; }
body.jobs-portal .empty-ico { margin-bottom: 14px; }
body.jobs-portal .empty h3 { font-size: 15px; font-weight: 500; margin: 0 0 8px; }
body.jobs-portal .empty p { font-size: 13px; margin: 0 0 16px; }
body.jobs-portal .empty .link { font-weight: 600; }
body.jobs-portal .profile-guide { margin-bottom: 25px; }

/* ---------- Premium dashboard finish ---------- */
body.jobs-portal .stat-card,
body.jobs-portal .panel { transition: border-color .2s ease, box-shadow .2s ease; }
body.jobs-portal .job { transition: background .15s ease; }
body.jobs-portal .panel > .job:hover { background: #fafbfd; }
body.jobs-portal .job-actions .outline:hover,
body.jobs-portal .stack .outline:hover { background: #fff5f5; border-color: var(--red); }
body.jobs-portal #nav a:hover svg { stroke-width: 1.9; }
body.jobs-portal .stat strong { letter-spacing: -0.5px; }
body.jobs-portal a:focus-visible,
body.jobs-portal button:focus-visible,
body.jobs-portal input:focus-visible,
body.jobs-portal select:focus-visible,
body.jobs-portal textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
body.jobs-portal .doc-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
body.jobs-portal .doc-modal.open { opacity: 1; pointer-events: auto; }
body.jobs-portal .doc-modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  max-width: 460px;
  width: 90vw;
  padding: 24px;
  max-height: 80vh;
  overflow: auto;
}
body.jobs-portal .doc-modal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; }
body.jobs-portal .doc-modal-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
body.jobs-portal .doc-list { display: grid; gap: 12px; }
body.jobs-portal .doc-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: #fafbfc; }

/* ---------- Responsive (mockup) ---------- */
@media (min-width: 1600px) { body.jobs-portal main { margin-right: auto; } }

@media (max-width: 1000px) {
  body.jobs-portal main { padding: 28px 24px; }
  body.jobs-portal > header { padding: 0 24px; }
  body.jobs-portal .sidebar { width: 195px; }
  body.jobs-portal > header,
  body.jobs-portal main { margin-left: 195px; }
  body.jobs-portal .job { flex-wrap: wrap; }
  body.jobs-portal .job-actions { margin-left: auto; }
  body.jobs-portal .details-grid { grid-template-columns: 1fr; }
  body.jobs-portal .stats { gap: 12px; }
  body.jobs-portal .stat-card { padding: 20px; }
  body.jobs-portal .stat-count { font-size: 30px; }
  body.jobs-portal .stat-label { font-size: 12px; }
}

@media (max-width: 700px) {
  body.jobs-portal .sidebar {
    transform: translateX(-100%);
    transition: .2s;
    width: 240px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
  }
  body.jobs-portal .sidebar.open { transform: translateX(0); }
  body.jobs-portal .backdrop.open { display: block; position: fixed; inset: 0; background: #17202d70; z-index: 25; }
  body.jobs-portal.locked { overflow: hidden; }
  body.jobs-portal .menu { display: inline-block; }
  body.jobs-portal > header,
  body.jobs-portal main { margin-left: 0; }
  body.jobs-portal > header { height: 70px; padding: 0 17px; }
  body.jobs-portal main { padding: 25px 17px; }
  body.jobs-portal h1 { font-size: 25px; }
  body.jobs-portal .stats { gap: 8px; }
  body.jobs-portal .stat-card { padding: 17px; }
  body.jobs-portal .stat-count { font-size: 25px; }
  body.jobs-portal .stat-label { font-size: 11px; }
  body.jobs-portal .stat-hint { font-size: 11px; }
  body.jobs-portal .stat span { font-size: 11px; }
  body.jobs-portal .stat strong { font-size: 25px; }
  body.jobs-portal .panel { padding: 19px; }
  body.jobs-portal .search,
  body.jobs-portal .filters,
  body.jobs-portal .fields { grid-template-columns: 1fr; }
  body.jobs-portal .full { grid-column: auto; }
  body.jobs-portal .row { flex-wrap: wrap; }
  body.jobs-portal .job { gap: 11px; }
  body.jobs-portal .company-icon { width: 35px; height: 35px; }
  body.jobs-portal .job-actions { width: 100%; justify-content: flex-end; }
  body.jobs-portal .top-actions { gap: 5px; }
  body.jobs-portal .alert-row { flex-wrap: wrap; gap: 13px; }
  body.jobs-portal .demo { display: none; }
  body.jobs-portal .intro { margin-bottom: 24px; }
}

/* ---------- Mobile stats cards (below 640px) ---------- */
body.jobs-portal .stat-mobile-row { display: none; }
body.jobs-portal .stat-mobile-chevron { display: none; }

@media (max-width: 640px) {
  body.jobs-portal .stat-mobile-row { display: flex; }
  body.jobs-portal .stat-mobile-chevron { display: block; }
  body.jobs-portal main { padding: 20px 16px; }
  body.jobs-portal > header { padding: 0 16px; }

  body.jobs-portal .stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  body.jobs-portal .stat-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
  }

  body.jobs-portal .stat-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    gap: 12px;
    min-width: 0;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: border-color .15s ease, box-shadow .15s ease;
  }

  body.jobs-portal .stat-card:hover {
    border-color: var(--red);
    box-shadow: 0 4px 12px rgba(215, 25, 32, 0.08);
  }

  body.jobs-portal .stat-desktop { display: none; }

  body.jobs-portal .stat-mobile-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  body.jobs-portal .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  body.jobs-portal .stat-icon svg { width: 20px; height: 20px; }

  body.jobs-portal .stat-icon-red { background: #fef2f2; color: #dc2626; }
  body.jobs-portal .stat-icon-blue { background: #eff6ff; color: #2563eb; }
  body.jobs-portal .stat-icon-green { background: #f0fdf4; color: #16a34a; }

  body.jobs-portal .stat-mobile-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  body.jobs-portal .stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.jobs-portal .stat-count {
    font-size: 27px;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.jobs-portal .stat-hint,
  body.jobs-portal .stat-footer {
    display: none;
  }

  body.jobs-portal .stat-mobile-chevron {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    flex-shrink: 0;
  }

  /* ---------- Mobile Recent Jobs ---------- */
  body.jobs-portal .recent-jobs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    min-width: 0;
  }

  body.jobs-portal .recent-jobs-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  body.jobs-portal .recent-jobs-header .link {
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
    white-space: nowrap;
  }

  body.jobs-portal .recent-jobs-header .link:hover { text-decoration: underline; }

  body.jobs-portal .job {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    min-width: 0;
  }

  body.jobs-portal .job:last-child { margin-bottom: 0; }

  body.jobs-portal .company-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fef2f2;
    display: grid;
    place-items: center;
    color: #dc2626;
    flex-shrink: 0;
    align-self: flex-start;
  }
  body.jobs-portal .company-icon svg { width: 20px; height: 20px; }

  body.jobs-portal .job-info {
    flex: 1;
    min-width: 0;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  body.jobs-portal .job-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.3;
    min-width: 0;
  }

  body.jobs-portal .job-info h3 a {
    color: #111827;
    text-decoration: none;
  }

  body.jobs-portal .job-info h3 a:visited { color: #111827; }

  body.jobs-portal .job-info .muted {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    min-width: 0;
  }

  body.jobs-portal .chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
  }

  body.jobs-portal .chip {
    font-size: 11px;
    background: #f3f4f6;
    color: #4b5563;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
  }

  body.jobs-portal .job-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    min-width: 0;
  }

  body.jobs-portal .job-actions .icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }

  body.jobs-portal .job-actions .icon-btn svg { width: 16px; height: 16px; }

  body.jobs-portal .job-actions .icon-btn.saved { color: #dc2626; border-color: #fecaca; }

  body.jobs-portal .job-actions a.outline {
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
    margin-left: auto;
    white-space: nowrap;
  }

  body.jobs-portal .job-actions a.outline:hover { text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  body.jobs-portal * { transition: none !important; }
}

body.jobs-portal .company-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
}
body.jobs-portal .job-salary {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-top: 4px;
}
body.jobs-portal .job-experience,
body.jobs-portal .job-education {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
body.jobs-portal .job-actions .primary {
  padding: 8px 16px;
  font-size: 13px;
}
body.jobs-portal .job-salary {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-top: 4px;
}
body.jobs-portal .job-experience,
body.jobs-portal .job-education {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
body.jobs-portal .job-actions .primary {
  padding: 8px 16px;
  font-size: 13px;
}
body.jobs-portal .job-actions .primary {
  padding: 8px 16px;
  font-size: 13px;
}
body.jobs-portal .job-salary {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-top: 4px;
}
body.jobs-portal .job-experience,
body.jobs-portal .job-education {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
body.jobs-portal .job-salary {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-top: 4px;
}
body.jobs-portal .job-experience,
body.jobs-portal .job-education {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
body.jobs-portal .job-actions .primary {
  padding: 8px 16px;
  font-size: 13px;
}
