/* ===================================================================
   RESUME ANALYSER & RECRUITMENT STUDIO
   Human-Crafted Professional SaaS Design System
   Infused with Eye-Soothing, Anti-Glare Light Blue, Pink & Mint Colours
   Designed to eliminate white-screen eye fatigue & visual irritation
   =================================================================== */

/* ─── 1. DESIGN TOKENS & THEMING ────────────────────────────────── */
:root {
  /* Surface & Background (Soothing Anti-Glare System) */
  --bg:           #eaf1f7; /* Anti-glare soft sky-sage canvas (lowered white) */
  --bg-subtle:    #dde8f2;
  --bg-card:      #f0f6fc; /* Luminous pastel surface (no stark white) */
  --bg-card-hover:#e4eff9;
  --surface:      rgba(235, 244, 252, 0.96);
  --surface-2:    rgba(242, 248, 253, 0.96);

  /* Borders & Dividers */
  --border:       #c5dcee;
  --border-subtle:#d7e7f4;
  --border-hover: #99c3e6;
  --border-active:#62a2dc;

  /* Typography (Clear high-contrast dark slate for zero squinting) */
  --text:         #0f172a;
  --text-2:       #334155;
  --text-3:       #64748b;
  --text-muted:   #64748b;

  /* Brand Accents */
  --primary:      #0284c7; /* Serene Ocean / Sky Blue */
  --primary-hover:#0369a1;
  --primary-subtle: #dcedfa;
  --primary-border: #9ecbf0;

  /* Status Tokens */
  --green:        #15803d;
  --green-bg:     var(--pastel-mint);
  --green-border: var(--pastel-mint-border);

  --red:          #be123c;
  --red-bg:       var(--pastel-rose);
  --red-border:   var(--pastel-rose-border);

  --yellow:       #b45309;
  --yellow-bg:    var(--pastel-amber);
  --yellow-border:var(--pastel-amber-border);

  /* ─── Eye-Friendly Pastels: Light Blue, Pink, Mint Green ─── */
  --pastel-sky:             #dcedfa;
  --pastel-sky-soft:        #cce5f8;
  --pastel-sky-border:      #92c6f1;
  --pastel-sky-text:        #0369a1;
  --pastel-sky-accent:      #0284c7;

  --pastel-rose:            #fce1ed;
  --pastel-rose-soft:       #f9cadf;
  --pastel-rose-border:     #f69ebd;
  --pastel-rose-text:       #9f1239;
  --pastel-rose-accent:     #be185d;

  --pastel-mint:            #d6f3e0;
  --pastel-mint-soft:       #bfeecd;
  --pastel-mint-border:     #82dfa3;
  --pastel-mint-text:       #166534;
  --pastel-mint-accent:     #15803d;

  --pastel-lavender:        #e7edfc;
  --pastel-lavender-soft:   #d8e1fa;
  --pastel-lavender-border: #acc2f8;
  --pastel-lavender-text:   #5b21b6;
  --pastel-lavender-accent: #7c3aed;

  --pastel-amber:           #fcf0c9;
  --pastel-amber-soft:      #fae4a4;
  --pastel-amber-border:    #f2cd66;
  --pastel-amber-text:      #854d0e;
  --pastel-amber-accent:    #a16207;

  --pastel-indigo:          #e1ebf9;
  --pastel-indigo-soft:     #ccddf6;
  --pastel-indigo-border:   #9fc0f1;
  --pastel-indigo-text:     #3730a3;
  --pastel-indigo-accent:   #4338ca;

  --pastel-peach:           #fce7d4;
  --pastel-peach-soft:      #f8d4b6;
  --pastel-peach-border:    #f3b281;
  --pastel-peach-text:      #9a3412;
  --pastel-peach-accent:    #c2410c;

  /* Layout & Geometry */
  --radius-sm:    7px;
  --radius:       11px;
  --radius-lg:    15px;
  --radius-xl:    20px;

  /* Soft Eye-Pleasing Elevation */
  --shadow-sm:    0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow:       0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg:    0 18px 36px -6px rgba(15, 23, 42, 0.08);

  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ─── 2. RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14.5px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Anti-Glare Ambient Canvas Wash (Gentle Light Blue, Blush Pink & Mint Green) */
body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(at 5% 5%, rgba(186, 230, 253, 0.85) 0px, transparent 55%),    /* Luminous Sky Blue */
    radial-gradient(at 95% 5%, rgba(254, 205, 226, 0.82) 0px, transparent 55%),    /* Vibrant Soft Pink */
    radial-gradient(at 50% 95%, rgba(187, 247, 208, 0.82) 0px, transparent 60%),   /* Fresh Mint Green */
    radial-gradient(at 15% 85%, rgba(254, 240, 185, 0.55) 0px, transparent 50%);   /* Warm Sunny Honey */;  /* Subtle Warm Cream */
  background-attachment: fixed;
}

#particles {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ─── 3. TOP NAVIGATION HEADER ──────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: rgba(235, 244, 252, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--border);
  gap: 1.5rem;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
  filter: drop-shadow(0 3px 8px rgba(2, 132, 199, 0.32));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.logo-icon:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(2, 132, 199, 0.45));
}
.logo-icon.staff-logo {
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 3px 8px rgba(2, 132, 199, 0.32));
}
.logo-icon img,
.logo-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-name .portal-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  background: var(--pastel-mint);
  color: var(--pastel-mint-text);
  border: 1px solid var(--pastel-mint-border);
  border-radius: 12px;
}

.brand-tag {
  font-size: 0.76rem;
  color: var(--text-3);
  font-weight: 500;
  display: block;
  margin-top: -1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Data Privacy & Security Badges */
.privacy-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #065f46;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.privacy-assurance-callout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: rgba(240, 253, 250, 0.8);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  color: #0f766e;
  line-height: 1.4;
}

.privacy-assurance-callout svg {
  flex-shrink: 0;
  color: #0d9488;
}

/* Platform Segmented Navigation Switcher */
.portal-nav-switcher {
  display: flex;
  align-items: center;
  background: #eef4f9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.portal-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  border-radius: 5px;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.portal-nav-btn:hover {
  color: var(--primary);
}

.portal-nav-btn.active {
  background: #ffffff;
  color: var(--pastel-sky-text);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--pastel-sky-border);
}

.portal-nav-btn.staff-active {
  color: var(--pastel-mint-text);
}

/* ─── 4. MAIN LAYOUT GRID ───────────────────────────────────────── */
.main-grid {
  display: grid;
  grid-template-columns: 360px 1fr 340px;
  min-height: calc(100vh - 58px);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

@media (max-width: 1280px) {
  .main-grid {
    grid-template-columns: 340px 1fr;
  }
  .chat-side-panel {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .header {
    padding: 0.65rem 1rem;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .header-brand {
    flex: 1;
    min-width: 0;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .privacy-trust-chip {
    display: none !important;
  }

  .portal-nav-switcher {
    order: 3;
    width: 100%;
    margin-top: 0.25rem;
    display: flex;
  }

  .portal-nav-btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    font-size: 0.76rem;
    padding: 0.45rem 0.4rem;
    text-align: center;
  }

  .api-key-wrap {
    order: 2;
  }

  .main-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    overflow-x: hidden !important;
  }

  .panel {
    max-height: none !important;
    overflow-y: visible !important;
    padding: 1.25rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .panel-left {
    border-right: none !important;
    border-bottom: 1.5px solid #b3d7f0 !important;
  }

  .panel-center {
    padding: 1.25rem 1rem !important;
  }

  .panel-right {
    border-left: none !important;
    border-top: 1.5px solid #f5bed4 !important;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 0.6rem 0.75rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-tag {
    font-size: 0.7rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .panel {
    padding: 1rem 0.75rem !important;
  }

  .panel-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .panel-title {
    font-size: 0.95rem;
  }

  .dropzone {
    padding: 1.75rem 1rem;
  }

  .dropzone-title {
    font-size: 0.88rem;
  }

  .dropzone-sub {
    font-size: 0.74rem;
  }

  .btn-upload {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
  }

  .btn-analyse {
    width: 100%;
    padding: 0.82rem 1.2rem;
    font-size: 0.94rem;
    justify-content: center;
  }

  .score-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .score-meta {
    width: 100%;
  }

  .score-grade-row {
    justify-content: center;
  }

  .btn-copy-json {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .score-summary {
    text-align: left;
    font-size: 0.84rem;
  }

  .ai-editor-cta-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 0.85rem;
    padding: 1rem;
  }

  .btn-cta-launch-editor {
    width: 100%;
    justify-content: center;
  }

  .card {
    padding: 1.15rem 1rem;
    margin-bottom: 1.1rem;
  }

  .cards-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .evaluation-dimensions-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .eval-dimension-item {
    padding: 0.75rem 0.85rem;
  }

  .sp-headline-row {
    padding: 10px 12px;
    gap: 10px;
    justify-content: space-between;
  }

  .sp-score-val {
    font-size: 1.5rem;
  }

  .sp-gain-pill {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }

  .rewrite-comparison {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .brand-tag {
    display: none;
  }
  .portal-nav-btn {
    font-size: 0.72rem;
    padding: 0.4rem 0.3rem;
    gap: 0.25rem;
  }
  .portal-nav-btn svg {
    width: 12px;
    height: 12px;
  }
  .api-key-toggle {
    font-size: 0.72rem;
    padding: 0.35rem 0.55rem;
  }
}

/* Panels with Ergonomic Tinting */
.panel {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 58px);
}

/* Left Panel: Calming Light Blue Tint */
.panel-left {
  background: rgba(228, 242, 252, 0.94);
  border-right: 1.5px solid #b3d7f0;
}

.panel-center {
  padding: 2rem 2.25rem;
  background: transparent;
}

/* Right Panel: Comforting Soft Pink Tint */
.panel-right {
  border-left: 1.5px solid #f5bed4;
  border-right: none;
  background: rgba(253, 235, 243, 0.94);
}

.panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

/* ─── 5. LEFT PANEL CONTROLS (TABS & DROPZONE) ─────────────────── */
.tab-row {
  display: flex;
  background: #e2edf7;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.tab {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab:hover {
  color: var(--primary);
}

.tab.active {
  background: #ffffff;
  color: var(--pastel-sky-text);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--pastel-sky-border);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Dropzone (Restful Light Blue) */
.dropzone {
  border: 2px dashed #7fc1ed;
  border-radius: var(--radius);
  background: #dcf0fb;
  padding: 2.25rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary);
  background: #cfe8f9;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.12);
}

.dropzone-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 0.85rem auto;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid var(--pastel-sky-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}
.dropzone-icon svg {
  width: 24px;
  height: 24px;
}

.dropzone-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.dropzone-sub {
  font-size: 0.76rem;
  color: var(--text-3);
  margin-bottom: 1.1rem;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-upload:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.file-info {
  margin-top: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: #d4ecf9;
  border: 1.5px solid #91c7ee;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--pastel-sky-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.btn-remove-file {
  background: #ffffff;
  border: 1px solid rgba(220, 38, 38, 0.45);
  color: #dc2626;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  transition: all 0.15s ease;
  margin-left: 0.5rem;
}

.btn-remove-file:hover {
  background: #fee2e2;
  border-color: #dc2626;
}

.file-info.file-info-error {
  background: #fee2e2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.candidate-row.candidate-row-invalid {
  background: #fffafa;
}

.candidate-row.candidate-row-invalid:hover {
  background: #fef2f2;
}

/* Paste Textarea */
.textarea-wrapper {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.resume-textarea {
  width: 100%;
  height: 180px;
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.55;
}

.textarea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.char-count {
  font-size: 0.72rem;
  color: var(--text-3);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.role-row {
  margin-top: 1.1rem;
}

.label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.35rem;
}

.optional {
  color: var(--text-3);
  font-weight: 400;
}

.input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  color: var(--text);
  font-size: 0.84rem;
  transition: all 0.15s ease;
  outline: none;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--pastel-sky-border);
}

.jd-textarea {
  resize: vertical;
  min-height: 70px;
}

/* Analyse Button */
.btn-analyse {
  margin-top: 1.4rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.28);
  transition: all 0.15s ease;
}

.btn-analyse:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-analyse:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─── Shining Watermark below Analyse Button ─── */
.analyse-watermark-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.15rem 0;
  user-select: none;
  pointer-events: none;
}

.analyse-watermark-shine {
  font-family: 'Space Grotesk', 'Outfit', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  padding-left: 0.38em; /* balances letter-spacing visually */

  /* Luminous multi-hue shimmering gradient */
  background: linear-gradient(
    120deg,
    rgba(2, 132, 199, 0.5) 0%,
    rgba(14, 165, 233, 0.85) 20%,
    #ffffff 45%,
    #e0f2fe 52%,
    #f472b6 60%,
    rgba(14, 165, 233, 0.85) 78%,
    rgba(2, 132, 199, 0.5) 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: wamenderShimmer 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;

  /* Ambient light sheen */
  filter: drop-shadow(0 0 9px rgba(14, 165, 233, 0.45));
  opacity: 0.95;
  transition: opacity 0.25s ease;
}

@keyframes wamenderShimmer {
  0% {
    background-position: 220% 0;
  }
  100% {
    background-position: -40% 0;
  }
}

/* Center Bottom Watermark in Staff Portal */
.staff-bottom-watermark-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.2rem auto 1.5rem auto;
  padding: 0.5rem 0;
  user-select: none;
  pointer-events: none;
}

/* ─── 6. CENTER RESULTS DASHBOARD (Eye-Care Light Blue, Pink & Green Cards) ─── */
.panel-center:has(#results:not(.hidden)) #emptyState,
.panel-center:has(#skeletonWrap:not(.hidden)) #emptyState {
  display: none !important;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  text-align: center;
  padding: 2rem;
}

.empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--pastel-sky);
  border: 1.5px solid var(--pastel-sky-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.empty-sub {
  font-size: 0.85rem;
  color: var(--text-3);
  max-width: 380px;
}

/* Score Section Banner (Soothing Light Blue to Mint Gradient) */
.score-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, #dcedfa 0%, #dbf5e7 100%);
  border: 1.5px solid #a8daf5;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px -2px rgba(2, 132, 199, 0.06);
  margin-bottom: 1.5rem;
}

.score-ring-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.score-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: #d7e8f5;
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.score-label {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 600;
  margin-top: 2px;
}

.score-meta {
  flex: 1;
}

.score-grade-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.score-grade {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  background: var(--pastel-sky);
  color: var(--pastel-sky-text);
  border: 1px solid var(--pastel-sky-border);
}

.verdict-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  background: var(--pastel-mint);
  border: 1px solid var(--pastel-mint-border);
  color: var(--pastel-mint-text);
}

.btn-copy-json {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
  background: #ffffff;
  border: 1.5px solid var(--pastel-sky-border);
  border-radius: var(--radius-sm);
  color: var(--pastel-sky-text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-copy-json:hover {
  background: var(--pastel-sky);
}

.btn-open-editor {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
  transition: all 0.15s ease;
}
.btn-open-editor:hover {
  background: var(--primary-hover);
}

.score-summary {
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* AI Resume Editor Action Banner (Tri-Pastel Wash: Blue -> Pink -> Green) */
.ai-editor-cta-banner {
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.4rem;
  background: linear-gradient(135deg, #dcf0fc 0%, #fce2ed 50%, #d8f3e3 100%);
  border: 1.5px solid #b3daf5;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.05);
}

.cta-banner-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cta-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #bde0f7;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.1);
}

.cta-banner-text h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.cta-banner-text p {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.45;
}

.btn-cta-launch-editor {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  transition: all 0.15s ease;
}
.btn-cta-launch-editor:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ─── Cards System: Soft Tinted Anti-Glare Surfaces ─── */
.card {
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}

/* Specific Eye-Care Tinting per Card Type */
#evalDimensionsCard {
  background: #e9f4fc;
  border: 1.5px solid #b5ddf7;
}

#sectionScoresCard {
  background: #fde6f0;
  border: 1.5px solid #f6b4ce;
}

#diagnosticAuditCard {
  background: #e0f6e9;
  border: 1.5px solid #99e1b5;
}

#skillsInventoryCard {
  background: #ebf3fe;
  border: 1.5px solid #bad9f9;
}

#bulletRewriteCard {
  background: #e8f3fd;
  border: 1.5px solid #b1d9f6;
}

#languageAuditCard {
  background: #fde6f0;
  border: 1.5px solid #f6b4ce;
}

#employmentGapsCard {
  background: #e0f6e9;
  border: 1.5px solid #99e1b5;
}

#suggestedRolesCard {
  background: #e8f3fd;
  border: 1.5px solid #b1d9f6;
}

.card-action {
  background: #e0f6e9;
  border: 1.5px solid #99e1b5;
}

.card:not([id]):not([class*="card-"]) {
  background: #eaf3fb;
  border: 1.5px solid #bfdcf1;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1rem;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}
.cards-row .card {
  margin-bottom: 0;
}

/* Evaluation Dimensions */
.eval-dimensions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.dimensions-weight-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--pastel-sky-text);
  background: #ffffff;
  border: 1.5px solid var(--pastel-sky-border);
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
}

.dimensions-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 1.1rem;
}

.evaluation-dimensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.eval-dimension-item {
  background: #f7fbfe;
  border: 1.5px solid #c8e2f4;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: all 0.15s ease;
}
.eval-dimension-item:hover {
  border-color: #9bc8ea;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.06);
}

.dim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.dim-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dim-weight-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--pastel-sky-text);
  background: var(--pastel-sky);
  border: 1px solid var(--pastel-sky-border);
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
}

.dim-meter-track {
  height: 6px;
  background: #e2eef7;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.dim-meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.dim-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}

.dim-score-text {
  color: var(--text-2);
}

.dim-status-text {
  font-weight: 700;
  color: var(--pastel-mint-text);
}

/* Section Bars */
.section-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-bar-item {
  display: grid;
  grid-template-columns: 140px 1fr 45px;
  align-items: center;
  gap: 0.85rem;
}

.section-bar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
}

.section-bar-track {
  height: 7px;
  background: #f8c9dc;
  border-radius: 4px;
  overflow: hidden;
}

.section-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-bar-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

/* Evidence Audit Grid (Mint Green Theme) */
.audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.audit-item {
  background: #f3fcf6;
  border: 1.5px solid #a9e4be;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.audit-highlight {
  grid-column: 1 / -1;
  background: #d3f4df;
  border: 1.5px solid #77dba0;
}

.audit-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.audit-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-2);
}

.audit-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.audit-sub {
  font-size: 0.74rem;
  color: var(--text-2);
  line-height: 1.45;
  margin-top: 0.25rem;
}

/* Seniority tracks in audit */
.audit-seniority-tracks {
  margin: 0.65rem 0;
  padding: 0.6rem 0.8rem;
  background: #ffffff;
  border: 1px solid #bce8cb;
  border-radius: var(--radius-sm);
}

.audit-seniority-title {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.45rem;
}

.seniority-tier-item {
  margin-bottom: 0.4rem;
}

.tier-header-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  margin-bottom: 2px;
}

.tier-meter {
  height: 5px;
  background: #e2f2e7;
  border-radius: 3px;
  overflow: hidden;
}

.tier-meter-bar {
  height: 100%;
  border-radius: 3px;
}

/* Technical Skills Categorized Inventory (Restful Blue, Pink & Green Groups) */
.skills-category-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.skills-category-group {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--border);
}

/* Group 1: Light Sky Blue */
.skills-category-group:nth-child(1) {
  background: #dcedfa;
  border-color: #92c6f1;
}
/* Group 2: Soft Rose Pink */
.skills-category-group:nth-child(2) {
  background: #fce1ed;
  border-color: #f69ebd;
}
/* Group 3: Calming Mint Green */
.skills-category-group:nth-child(3) {
  background: #d6f3e0;
  border-color: #82dfa3;
}
/* Group 4: Soft Lavender Blue */
.skills-category-group:nth-child(4) {
  background: #e7edfc;
  border-color: #acc2f8;
}
/* Group 5: Soft Peach Warmth */
.skills-category-group:nth-child(5) {
  background: #fce7d4;
  border-color: #f4b484;
}

.category-group-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.category-group-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.category-group-count {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-2);
}

.category-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.category-skill-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Bullet Lists & Highlights */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.45;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

/* 3 Key Status Cards: Green, Pink, Yellow */
.card-green {
  border: 1.5px solid #8be3ab;
  background: #d8f5e3;
}
.card-green .card-title {
  color: #166534;
}
.card-green .bullet-list li::before {
  color: #166534;
}

.card-red {
  border: 1.5px solid #f6a6c3;
  background: #fce3ee;
}
.card-red .card-title {
  color: #9f1239;
}
.card-red .bullet-list li::before {
  color: #9f1239;
}

.card-yellow {
  border: 1.5px solid #f1cd64;
  background: #fcf1ca;
}
.card-yellow .card-title {
  color: #854d0e;
}

/* ATS Pillar Row */
.ats-score-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.ats-score-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.ats-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #f4e39e;
  color: #854d0e;
}

/* Weakness List */
.weakness-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.weakness-item {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.weakness-text {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.45;
}

.severity-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  white-space: nowrap;
}
.severity-high {
  background: var(--pastel-rose);
  border: 1px solid var(--pastel-rose-border);
  color: var(--pastel-rose-text);
}
.severity-medium {
  background: var(--pastel-amber);
  border: 1px solid var(--pastel-amber-border);
  color: var(--pastel-amber-text);
}
.severity-low {
  background: var(--pastel-sky);
  border: 1px solid var(--pastel-sky-border);
  color: var(--pastel-sky-text);
}

/* ─── High-Impact Bullet Rewriter (STAR / Google XYZ Formula) ─── */
.rewrite-intro {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.rewrite-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.rewrite-card {
  background: #ffffff;
  border: 1.5px solid #bddcf6;
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  transition: all 0.2s ease;
}

.rewrite-card:hover {
  border-color: #79baea;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.1);
  transform: translateY(-1px);
}

.rewrite-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #dbeafe;
}

.rewrite-badge {
  font-size: 0.75rem;
  font-weight: 800;
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
}

.rewrite-issue {
  font-size: 0.79rem;
  font-weight: 600;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
}

.rewrite-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .rewrite-comparison {
    grid-template-columns: 1fr;
  }
}

.rewrite-block {
  border-radius: 10px;
  padding: 0.95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  line-height: 1.55;
  transition: border-color 0.15s ease;
}

.rewrite-block.original {
  background: #fff5f5;
  border: 1.5px solid #fecaca;
}

.rewrite-block.original .rewrite-label {
  color: #dc2626;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.rewrite-block.original .rewrite-text {
  font-size: 0.83rem;
  color: #475569;
}

.rewrite-block.improved {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.05);
}

.rewrite-block.improved .rewrite-label {
  color: #15803d;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.rewrite-block.improved .rewrite-text {
  font-size: 0.84rem;
  color: #0f172a;
  font-weight: 600;
}

.empty-rewrite-box {
  background: #ffffff;
  border: 1.5px dashed #bbf7d0;
  border-radius: var(--radius-md, 12px);
  padding: 1.5rem;
  text-align: center;
}

/* ─── Recommended Job Roles to Apply For (Separated Boxes) ─── */
.roles-intro {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 1.15rem;
  line-height: 1.5;
}

.suggested-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.25rem;
}

.suggested-role-card {
  background: #ffffff;
  border: 1.5px solid #bddcf6;
  border-radius: var(--radius-md, 14px);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.suggested-role-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #94a3b8;
}

.suggested-role-card.priority-high::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.suggested-role-card.priority-mid::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.suggested-role-card.priority-low::before {
  background: linear-gradient(90deg, #94a3b8, #64748b);
}

.suggested-role-card:hover {
  transform: translateY(-3px);
  border-color: #79baea;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
}

.role-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #eef4f9;
}

.role-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  line-height: 1.3;
}

.role-level {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-3, #64748b);
  margin-top: 3px;
}

.role-match-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.role-priority-badge {
  font-size: 0.69rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.role-priority-badge.priority-high {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.role-priority-badge.priority-mid {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.role-priority-badge.priority-low {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.role-match-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.role-desc {
  font-size: 0.81rem;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

/* Seniority Matrix Sub-Box inside Role Card */
.role-seniority-matrix {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.seniority-track-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.seniority-track-items {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.seniority-tier-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tier-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
}

.tier-label {
  color: #475569;
  font-weight: 500;
}

.tier-stat {
  font-weight: 700;
  color: #0f172a;
}

.tier-meter {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.tier-meter-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Skills Breakdown inside Role Card */
.role-skills-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.role-skills-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.role-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.role-skill-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.3;
}

.role-skill-badge.match {
  background: #eaf8f0;
  color: #15803d;
  border: 1px solid #b7ebd0;
}

.role-skill-badge.missing {
  background: #fef8ee;
  color: #92400e;
  border: 1px solid #fae2b8;
}

/* ─── Language Issues & Employment Gaps Boxes ─── */
.lang-issues-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lang-issue-card {
  background: #ffffff;
  border: 1.5px solid #fecaca;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.04);
}

.lang-issue-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b91c1c;
}

.lang-snippet-text {
  font-size: 0.8rem;
  color: #64748b;
  font-style: italic;
  background: #fef2f2;
  padding: 4px 8px;
  border-radius: 6px;
  border-left: 3px solid #ef4444;
}

.lang-suggestion-text {
  font-size: 0.82rem;
  color: #0f172a;
}

.lang-positive-box,
.gap-positive-box {
  background: #ffffff;
  border: 1.5px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #15803d;
}

.lang-positive-box .lang-icon,
.gap-positive-box .gap-icon {
  font-weight: 800;
  font-size: 1.1rem;
  color: #16a34a;
}

.gap-notice-card {
  background: #ffffff;
  border: 1.5px solid #fde68a;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.04);
}

.gap-notice-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #b45309;
}

.gap-notice-desc {
  font-size: 0.81rem;
  color: #334155;
}

/* Keywords Chips */
.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.kw-chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
}

.kw-chip.matched {
  background: #eaf6ee;
  border-color: #aee4c2;
  color: #166534;
}

.kw-chip.missing {
  background: #fdf0f5;
  border-color: #f8bed6;
  color: #9f1239;
}

/* Action Plan */
.action-list {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.action-list li {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.45;
}

/* Career Continuity & Language Issues */
.gap-positive-box, .lang-positive-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.45;
}
.gap-positive-box {
  background: #ffffff;
  border: 1.5px solid #aee4c2;
  color: #166534;
}
.lang-positive-box {
  background: #ffffff;
  border: 1.5px solid #b5daf5;
  color: #0369a1;
}

.lang-issue-card {
  background: #ffffff;
  border: 1.5px solid #f8bed6;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.5rem;
}

.lang-issue-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9f1239;
  background: #fdf0f5;
  border: 1px solid #f8bed6;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}

.lang-snippet-text {
  font-size: 0.76rem;
  font-style: italic;
  color: var(--text-3);
  margin: 0.35rem 0;
}

.lang-suggestion-text {
  font-size: 0.78rem;
  color: var(--text-2);
}

/* ─── 7. RIGHT PANEL (CAREER ADVISOR - COMFORTING SOFT PINK) ─── */
.chat-side-panel {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 58px);
}

.chat-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid #fae2ec;
  margin-bottom: 1rem;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fdf0f5;
  border: 1.5px solid #f8bed6;
  color: #be185d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.chat-status {
  font-size: 0.72rem;
  color: var(--text-3);
}

.quick-prompts {
  margin-bottom: 1rem;
}

.quick-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.quick-chip {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: #e8f4fc;
  border: 1.5px solid #8fc3ec;
  border-radius: 12px;
  color: #0369a1;
  cursor: pointer;
  transition: all 0.15s ease;
}
.quick-chip:hover {
  background: #e8f4fc;
  border-color: #0284c7;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-right: 0.35rem;
  margin-bottom: 1rem;
}

.chat-msg {
  display: flex;
  gap: 0.65rem;
  max-width: 95%;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg.assistant {
  align-self: flex-start;
}

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fdf0f5;
  border: 1px solid #f8bed6;
  color: #be185d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-bubble {
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.5;
}

.chat-msg.user .msg-bubble {
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-msg.assistant .msg-bubble {
  background: #fef7fa;
  border: 1.5px solid #f6bed4;
  color: #1e293b;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.05);
}

.chat-input-area {
  display: flex;
  gap: 0.45rem;
  background: #fef7fa;
  border: 1.5px solid #f6bed4;
  border-radius: var(--radius);
  padding: 0.45rem 0.6rem;
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-size: 0.82rem;
  color: var(--text);
  max-height: 80px;
}

.chat-send {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  align-self: flex-end;
}
.chat-send:hover {
  background: var(--primary-hover);
}

/* ─── 8. RESUME EDITOR MODAL STUDIO (Anti-Glare Warm Paper) ─────── */
.resume-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.resume-editor-window {
  width: 96vw;
  max-width: 1160px;
  height: 94vh;
  background: #f4f8fc;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border);
}

.editor-header {
  padding: 0.85rem 1.4rem;
  background: #ffffff;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.editor-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.editor-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.editor-target-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: #e8f4fc;
  color: #0369a1;
  border-radius: 12px;
  border: 1px solid #b5daf5;
}

.editor-ats-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: #eaf6ee;
  color: #166534;
  border-radius: 12px;
  border: 1px solid #aee4c2;
}

.editor-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-editor-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-editor-action:hover {
  background: #e8f4fc;
  border-color: #9bc8ea;
}

.btn-editor-action.btn-download-pdf {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.btn-editor-action.btn-download-pdf:hover {
  background: var(--primary-hover);
}

.btn-close-editor {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.btn-close-editor:hover {
  background: var(--pastel-rose);
  color: var(--pastel-rose-text);
  border-color: var(--pastel-rose-border);
}

/* Fixes Banner */
.editor-fixes-banner {
  padding: 0.65rem 1.4rem;
  background: #fdf2f7;
  border-bottom: 1.5px solid #f8c8dc;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  flex-shrink: 0;
}

.fixes-banner-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9f1239;
  white-space: nowrap;
}

.fixes-pills-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fix-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  background: #ffffff;
  color: #9f1239;
  border: 1px solid #f8c3d7;
  border-radius: 12px;
  white-space: nowrap;
}
.fix-badge-pill .fix-cat {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.66rem;
}

/* Document Paper Canvas (Ivory Eye-Comfort Anti-Glare Paper) */
.editor-body-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: #dce9f4;
  display: flex;
  justify-content: center;
}

.editor-canvas-container {
  width: 100%;
  max-width: 820px;
}

.editor-paper {
  background: #fcfaf6; /* Ivory reading paper tint, zero white glare */
  color: #0f172a;
  padding: 3.2rem 3.5rem;
  min-height: 1050px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  border: 1.5px solid #ded6c8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  font-size: 0.95rem;
}

[contenteditable="true"] {
  outline: none;
  transition: all 0.15s ease;
  border-radius: 3px;
}
[contenteditable="true"]:hover {
  background: #e8f4fc;
}
[contenteditable="true"]:focus {
  background: #e8f4fc;
  box-shadow: 0 0 0 1.5px #0284c7;
  padding: 2px 4px;
}

.resume-header-block {
  text-align: center;
  margin-bottom: 1.5rem;
}

.resume-candidate-name {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem 0;
  color: #0f172a;
  text-transform: uppercase;
}

.resume-candidate-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.resume-contact-line {
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.contact-sep {
  color: #cbd5e1;
}

.resume-section-block {
  margin-bottom: 1.35rem;
}

.resume-section-heading {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f172a;
  border-bottom: 1.5px solid #0f172a;
  padding-bottom: 0.25rem;
  margin-bottom: 0.65rem;
}

.resume-summary-text {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
  text-align: justify;
}

.resume-skills-editable {
  font-size: 0.88rem;
  color: #1e293b;
  line-height: 1.6;
  font-weight: 500;
}

.editor-hint {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.35rem;
  font-style: italic;
}

.resume-job-item, .resume-proj-item {
  margin-bottom: 1rem;
}

.resume-job-header, .resume-proj-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.job-title, .proj-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.job-company {
  font-size: 0.88rem;
  color: #475569;
  font-style: italic;
}

.job-period {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.proj-tools {
  font-size: 0.82rem;
  color: #0284c7;
  font-weight: 600;
}

.resume-bullets-list {
  margin: 0;
  padding-left: 1.3rem;
}

.bullet-item-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  position: relative;
}

.bullet-item {
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.55;
  flex: 1;
}

.btn-bullet-del {
  opacity: 0;
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: opacity 0.15s ease;
}
.bullet-item-wrap:hover .btn-bullet-del {
  opacity: 1;
}

.btn-item-delete {
  opacity: 0.35;
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #64748b;
  font-size: 0.7rem;
  cursor: pointer;
  padding: 1px 5px;
  margin-left: auto;
  transition: all 0.15s ease;
}
.btn-item-delete:hover {
  opacity: 1;
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.btn-add-bullet-to-item {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: #0284c7;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}
.btn-add-bullet-to-item:hover {
  text-decoration: underline;
}

.resume-education-block {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
}

.btn-editor-add {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.3rem 0.75rem;
  background: transparent;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 0.76rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-editor-add:hover {
  background: #f8fafc;
  border-color: #0284c7;
  color: #0284c7;
}

.editor-toast-pill {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 100000;
  transition: opacity 0.3s ease;
}
.editor-toast-pill.fade-out {
  opacity: 0;
}

/* ─── Editor View Switcher & Comparison Window ───────────────────────── */
.editor-view-toggle {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  gap: 2px;
}

.btn-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-view-toggle:hover {
  color: #0f172a;
}

.btn-view-toggle.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.editor-comparison-container {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comparison-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.comp-legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-2);
}

.comp-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.dot-before {
  background: #94a3b8;
}

.legend-dot.dot-after {
  background: #10b981;
}

.comp-arrow-divider {
  color: #cbd5e1;
  font-weight: 700;
}

.comp-mode-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.comp-mode-pill {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.comp-mode-pill:hover {
  background: #f1f5f9;
}

.comp-mode-pill.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

.comp-pane {
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.comp-pane-before {
  border-color: #cbd5e1;
}

.comp-pane-after {
  border-color: #86efac;
}

.comp-pane-header {
  padding: 0.75rem 1.2rem;
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comp-pane-after .comp-pane-header {
  background: #f0fdf4;
  border-bottom-color: #bbf7d0;
}

.comp-pane-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.comp-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comp-tag.raw {
  color: #64748b;
}

.comp-tag.enhanced {
  color: #15803d;
}

.comp-status-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  background: #e2e8f0;
  color: #475569;
}

.comp-status-chip.highlight {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.comp-paper {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-height: 70vh;
  overflow-y: auto;
}

.comp-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.comp-sec-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.2rem;
  text-transform: uppercase;
}

.comp-pane-after .comp-sec-heading {
  border-bottom-color: #bbf7d0;
  color: #166534;
}

.comp-text {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.5;
}

.comp-text-raw {
  color: #475569;
}

.comp-text.comp-empty {
  font-style: italic;
  color: #94a3b8;
}

.comp-text-enhanced {
  color: #0f172a;
  font-weight: 500;
}

.comp-change-pill {
  margin-top: 0.35rem;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
}

.raw-skill-chip {
  display: inline-block;
  font-size: 0.74rem;
  padding: 0.15rem 0.45rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #475569;
  margin: 0.15rem 0.15rem 0.15rem 0;
}

.enhanced-skill-chip {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 4px;
  color: #166534;
  margin: 0.15rem 0.15rem 0.15rem 0;
}

.comp-item {
  margin-bottom: 0.65rem;
}

.comp-item-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.comp-bullets {
  margin: 0;
  padding-left: 1.2rem;
}

.comp-bullet-raw {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 0.25rem;
}

.comp-bullet-enhanced {
  font-size: 0.82rem;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 0.25rem;
}

/* ─── Role Development Card & Roadmap ────────────────────────────────── */
.card-role-dev {
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.05);
  margin-top: 1.5rem;
}

.role-dev-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1.5px solid #e0f2fe;
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.role-dev-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.role-dev-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-dev-sub {
  font-size: 0.85rem;
  color: var(--text-2);
  margin: 0;
}

.role-dev-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  background: #e0f2fe;
  color: #0284c7;
  border-radius: 20px;
  border: 1px solid #7dd3fc;
}

.role-dev-target-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.role-dev-banner-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.role-dev-company-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  background: #0284c7;
  color: #ffffff;
  border-radius: 6px;
}

.role-dev-role-name {
  font-size: 1rem;
  color: #0c4a6e;
}

.role-dev-focus-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0369a1;
}

.role-dev-section {
  margin-bottom: 1.5rem;
}

.role-dev-section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.role-dev-section-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 0.85rem;
}

.role-dev-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.role-dev-skill-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: all 0.15s ease;
}

.role-dev-skill-card:hover {
  border-color: #38bdf8;
  background: #f0f9ff;
}

.skill-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.skill-name {
  font-size: 0.9rem;
  color: #0f172a;
}

.skill-need-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 4px;
}

.skill-reason {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.45;
  margin: 0;
}

.role-dev-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.role-dev-project-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.project-card-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0284c7;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.project-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.45rem;
}

.project-card-tech {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.tech-label {
  font-weight: 600;
  color: #475569;
}

.tech-pills {
  color: #0284c7;
  font-weight: 500;
}

.project-card-why {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.45;
  margin: 0;
  background: #f8fafc;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border-left: 3px solid #0284c7;
}

.role-dev-topics-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.65rem;
}

.topic-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
}

.topic-bullet {
  color: #0284c7;
  font-weight: 800;
}

.topic-text {
  font-size: 0.84rem;
  color: #1e293b;
  line-height: 1.45;
}

.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.roadmap-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
}

.step-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.step-title {
  font-size: 0.88rem;
  color: #0f172a;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.45;
  margin: 0;
}

/* ─── 9. STAFF PLACEMENT PORTAL STYLING (staff.html) ─────────────── */
.staff-main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
}

.staff-batch-uploader-card {
  background: linear-gradient(135deg, #dcf4e5 0%, #dcedfa 100%);
  border: 1.5px solid #9ce1b7;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  margin-bottom: 2rem;
}

.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.section-subheading {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.5;
}

.batch-drive-settings {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.setting-item {
  flex: 1;
  min-width: 260px;
}
.setting-item label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}

.batch-dropzone {
  margin-top: 1.5rem;
  border: 2px dashed #92e0b5;
  border-radius: var(--radius);
  background: #e8f7f0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.batch-dropzone:hover {
  border-color: #15803d;
  background: #def4e7;
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.1);
}

.btn-batch-browse {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.25rem;
  background: #15803d;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
  transition: background 0.15s ease;
}
.btn-batch-browse:hover {
  background: #166534;
}

.batch-selected-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border: 1.5px solid #aee4c2;
  border-radius: var(--radius-sm);
}

.files-count-badge {
  font-size: 0.88rem;
  font-weight: 700;
  color: #166534;
}

.files-size-info {
  font-size: 0.76rem;
  color: var(--text-3);
  margin-left: 0.5rem;
}

.btn-start-batch-audit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.2rem;
  background: #15803d;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
  transition: all 0.15s ease;
}
.btn-start-batch-audit:hover {
  background: #166534;
  transform: translateY(-1px);
}

/* Real-Time Progress Bar */
.batch-progress-wrap {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.progress-track {
  height: 8px;
  background: #e2f2e7;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #15803d, #22c55e);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-status-log {
  font-size: 0.74rem;
  color: var(--text-3);
}

/* KPI Overview Grid (Distinct Pastel Light Blue, Mint Green, Pink & Amber Tiles) */
.batch-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.kpi-card {
  border-radius: var(--radius);
  padding: 1.35rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}
.kpi-card:hover {
  transform: translateY(-2px);
}

/* 1. Batch Size: Restful Light Sky Blue */
.kpi-card:nth-child(1) {
  background: #dcedfa;
  border: 1.5px solid #92c6f1;
}
.kpi-card:nth-child(1) .kpi-label {
  color: #0369a1;
}

/* 2. Class Average: Calming Mint Green */
.kpi-card.highlight-emerald {
  background: #d6f3e0;
  border: 1.5px solid #82dfa3;
}
.kpi-card.highlight-emerald .kpi-label {
  color: #15803d;
}

/* 3. Placement Ready: Gentle Rose Pink */
.kpi-card.highlight-blue {
  background: #fce1ed;
  border: 1.5px solid #f69ebd;
}
.kpi-card.highlight-blue .kpi-label {
  color: #be185d;
}

/* 4. Batch Highest: Warm Soft Butter Amber */
.kpi-card.highlight-gold {
  background: #fcf0c9;
  border: 1.5px solid #f2cd66;
}
.kpi-card.highlight-gold .kpi-label {
  color: #a16207;
}

.kpi-value {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.kpi-sub {
  font-size: 0.74rem;
  color: var(--text-3);
}

/* Podium Cards (Gold, Sky Blue & Rose Pink) */
.podium-card {
  background: #e8f2f9;
  border: 1.5px solid #b7d6ed;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.podium-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.podium-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.podium-subtitle {
  display: block;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 2px;
}

.btn-deduplicate {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: #fdf0f5;
  border: 1.5px solid #f8c2d6;
  border-radius: var(--radius-sm);
  color: #9f1239;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-deduplicate:hover {
  background: #fae2ec;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.podium-rank-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.podium-rank-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

/* Rank 1: Warm Soft Gold */
.podium-rank-card.rank-1 {
  background: #fefcf0;
  border: 1.5px solid #f6dd8f;
}
.podium-rank-card.rank-1 .podium-badge {
  background: #fdf8e8;
  color: #854d0e;
  border: 1px solid #f4df8f;
}

/* Rank 2: Light Sky Blue */
.podium-rank-card.rank-2 {
  background: #edf6fd;
  border: 1.5px solid #b8dcf5;
}
.podium-rank-card.rank-2 .podium-badge {
  background: #e8f4fc;
  color: #0369a1;
  border: 1px solid #b5daf5;
}

/* Rank 3: Soft Rose Pink */
.podium-rank-card.rank-3 {
  background: #fdf2f6;
  border: 1.5px solid #f9c8da;
}
.podium-rank-card.rank-3 .podium-badge {
  background: #fdf0f5;
  color: #9f1239;
  border: 1px solid #f8bfd6;
}

.podium-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  margin-bottom: 0.65rem;
}

.podium-student-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.podium-score-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.podium-score-num {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.podium-grade-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
  background: #eaf6ee;
  color: #166534;
  border: 1px solid #aee4c2;
}

.role-priority-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background: #e8f4fc;
  border: 1px solid #b5daf5;
  color: #0369a1;
}

.podium-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1rem 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.podium-detail-item {
  font-size: 0.78rem;
  color: var(--text-2);
}
.podium-detail-item strong {
  color: var(--text);
}

.btn-podium-audit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-podium-audit:hover {
  background: #e8f4fc;
  border-color: #9bc8ea;
  color: #0369a1;
}

.btn-card-remove {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 0.74rem;
  color: var(--text-3);
  cursor: pointer;
}
.btn-card-remove:hover {
  color: var(--red);
}

/* Candidate Directory Card & Table (Anti-Glare Light Blue/Slate) */
.candidate-directory-card {
  background: #f4f8fb;
  border: 1.5px solid #d0e2f2;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}

.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.directory-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.directory-count {
  font-size: 0.76rem;
  color: var(--text-3);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.input-search {
  min-width: 220px;
}

.select-filter {
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}

.btn-export-pdf, .btn-export-csv {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-export-pdf {
  background: #e8f4fc;
  border: 1.5px solid #b5daf5;
  color: #0369a1;
}
.btn-export-pdf:hover {
  background: #ddecfa;
}

.btn-export-csv {
  background: #eaf6ee;
  border: 1.5px solid #aee4c2;
  color: #166534;
}
.btn-export-csv:hover {
  background: #d8f2df;
}

.table-responsive {
  overflow-x: auto;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}

.candidate-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.candidate-table th {
  padding: 0.8rem 1rem;
  background: #e2edf7;
  font-weight: 700;
  color: var(--text-2);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.candidate-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  background: #ffffff;
}

.candidate-table tr:nth-child(even) td {
  background: #f8fbfe;
}

.candidate-table tr:hover td {
  background: #edf6fd;
}

.student-name-text {
  font-weight: 700;
  color: var(--text);
  font-size: 0.86rem;
}

.student-contact-text {
  font-size: 0.74rem;
  color: var(--text-3);
  display: flex;
  gap: 0.5rem;
  margin-top: 2px;
}

.table-score-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  border: 1px solid transparent;
}

.table-grade-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  background: #eaf6ee;
  border: 1px solid #aee4c2;
  color: #166534;
  margin-left: 0.35rem;
}

.table-skill-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #e8f4fc;
  border: 1px solid #b5daf5;
  color: #0369a1;
  white-space: nowrap;
}

.skills-total-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #fdf0f5;
  border: 1px solid #f8bed6;
  color: #9f1239;
}

.badge-status {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
}
.status-pass {
  background: #eaf6ee;
  border: 1px solid #aee4c2;
  color: #166534;
}
.status-warn {
  background: #fdf8e8;
  border: 1px solid #f4df8f;
  color: #854d0e;
}

.cgpa-val {
  font-weight: 700;
  color: var(--text);
}
.cgpa-none {
  color: var(--text-3);
  font-weight: 400;
}

.btn-table-audit {
  padding: 0.35rem 0.7rem;
  background: #e8f4fc;
  border: 1.5px solid #b5daf5;
  border-radius: 4px;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-table-audit:hover {
  background: #ddecfa;
}

.btn-table-remove {
  padding: 0.35rem 0.55rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-3);
  font-size: 0.75rem;
  cursor: pointer;
}
.btn-table-remove:hover {
  background: #fdf0f5;
  border-color: #f8bed6;
  color: #9f1239;
}

/* Candidate Table Column Widths & Layout */
.candidate-table .col-rank { width: 5%; text-align: center; }
.candidate-table .col-name { width: 17%; }
.candidate-table .col-score { width: 12%; }
.candidate-table .col-cgpa { width: 7%; text-align: center; }
.candidate-table .col-skills { width: 16%; }
.candidate-table .col-exp { width: 9%; text-align: center; }
.candidate-table .col-proj { width: 11%; text-align: center; }
.candidate-table .col-ats { width: 10%; text-align: center; }
.candidate-table .col-action { width: 13%; text-align: center; }

.table-proj-wrap,
.table-ats-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.proj-score-sub,
.ats-score-label {
  font-size: 0.69rem;
  color: var(--text-3);
  font-weight: 600;
}

.ats-pct-tag {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: #eaf6ee;
  border: 1px solid #aee4c2;
  color: #166534;
}

.pdf-audit-print-tag {
  display: none;
}

.pdf-audit-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: #eaf6ee;
  border: 1px solid #aee4c2;
  color: #166534;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ─── PDF Export Print Styling ─── */
body.exporting-staff-pdf .staff-main-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

body.exporting-staff-pdf .header,
body.exporting-staff-pdf .staff-batch-uploader-card,
body.exporting-staff-pdf #batchProgressWrap {
  display: none !important;
}

.exporting-pdf {
  background: #ffffff !important;
  color: #0f172a !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.exporting-pdf .directory-toolbar,
.exporting-pdf .btn-deduplicate,
.exporting-pdf .btn-table-remove,
.exporting-pdf .btn-table-audit,
.exporting-pdf .table-actions-group,
.exporting-pdf .btn-card-remove,
.exporting-pdf .btn-podium-audit,
.exporting-pdf #btnAutoDeduplicate {
  display: none !important;
}

.exporting-pdf .pdf-audit-print-tag {
  display: block !important;
}

.exporting-pdf .batch-kpi-grid {
  margin-bottom: 0.75rem !important;
  gap: 0.65rem !important;
  break-inside: avoid;
  page-break-inside: avoid;
}

.exporting-pdf .kpi-card {
  padding: 0.65rem 0.85rem !important;
  box-shadow: none !important;
  border: 1.5px solid #cbd5e1 !important;
}

.exporting-pdf .podium-card {
  padding: 0.85rem 1.15rem !important;
  margin-bottom: 0.85rem !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: none !important;
  break-inside: avoid;
  page-break-inside: avoid;
}

.exporting-pdf .podium-header-wrap {
  margin-bottom: 0.5rem !important;
}

.exporting-pdf .podium-grid {
  gap: 0.75rem !important;
}

.exporting-pdf .podium-student-card {
  padding: 0.75rem 0.95rem !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: none !important;
}

.exporting-pdf .candidate-directory-card {
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 0.85rem !important;
}

.exporting-pdf .table-responsive {
  overflow: visible !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: none !important;
  width: 100% !important;
}

.exporting-pdf .candidate-table {
  width: 100% !important;
  table-layout: fixed !important;
  font-size: 0.71rem !important;
}

.exporting-pdf .candidate-table th,
.exporting-pdf .candidate-table td {
  padding: 0.5rem 0.45rem !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

/* Institutional PDF Header Banner */
.pdf-export-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #0369a1 100%);
  color: #ffffff;
  padding: 0.95rem 1.35rem;
  border-radius: 10px;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.2);
  break-inside: avoid;
  page-break-inside: avoid;
}

.pdf-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
}

.pdf-banner-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 3px;
}

.pdf-banner-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0 0 3px 0;
}

.pdf-banner-sub {
  font-size: 0.82rem;
  color: #e0f2fe;
}

.pdf-banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.pdf-banner-chip {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #34d399;
  color: #6ee7b7;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 3px;
}

.pdf-banner-meta {
  font-size: 0.72rem;
  color: #bae6fd;
}

/* Candidate Dossier Print Section */
.pdf-dossier-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
  display: block !important;
  page-break-before: always;
  break-before: page;
}

.pdf-dossier-intro-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  border-left: 5px solid #38bdf8;
  page-break-after: avoid;
  break-after: avoid;
  margin-bottom: 0.85rem;
}

.pdf-dossier-main-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3px 0;
}

.pdf-dossier-main-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
}

.pdf-candidate-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: none;
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  margin-bottom: 0.85rem;
  display: block !important;
}

.pdf-cand-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid #e2e8f0;
  margin-bottom: 0.9rem;
}

.pdf-cand-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pdf-cand-rank {
  font-size: 1.1rem;
  font-weight: 800;
  background: #0284c7;
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
}

.pdf-cand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.pdf-cand-contact {
  font-size: 0.76rem;
  color: #64748b;
  display: flex;
  gap: 0.5rem;
}

.pdf-cand-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.pdf-cand-score-badge {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  padding: 2px 10px;
  border-radius: 8px;
}

.pdf-cand-fit-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 1px 8px;
  border-radius: 6px;
}

.pdf-cand-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 1rem;
}

.pdf-cand-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pdf-box-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.4rem;
}

.pdf-ats-score-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pdf-ats-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.pdf-ats-grade {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.pdf-ats-grade.grade-good {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.pdf-ats-grade.grade-fair {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.pdf-ats-grade.grade-poor {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.pdf-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.73rem;
  color: #334155;
}

.pdf-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.chk-icon {
  font-weight: 800;
  color: #16a34a;
}

.pdf-metric-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pdf-metric-pill {
  font-size: 0.72rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 6px;
  color: #334155;
}

.pdf-proj-count-label {
  font-size: 0.74rem;
  color: #0369a1;
  font-weight: 700;
  margin-bottom: 3px;
}

.pdf-proj-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.73rem;
  color: #475569;
}

.pdf-proj-item {
  line-height: 1.4;
}

.pdf-audit-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pdf-audit-list {
  list-style: none;
  padding: 0;
  margin: 2px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.73rem;
  color: #15803d;
}

.pdf-role-matches {
  font-size: 0.73rem;
  color: #0369a1;
  font-weight: 600;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 2px;
}

.pdf-audit-note {
  font-size: 0.72rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 2px;
}

/* Modal Window */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.audit-modal-window {
  width: 90vw;
  max-width: 920px;
  max-height: 88vh;
  background: #f4f8fc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.audit-modal-header {
  padding: 1.1rem 1.6rem;
  background: #e4edf6;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-student-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.modal-student-meta {
  font-size: 0.78rem;
  color: var(--text-3);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 1.2rem;
  cursor: pointer;
}
.btn-close-modal:hover {
  color: var(--text);
}

.audit-modal-body {
  padding: 1.6rem;
  overflow-y: auto;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.65rem 1rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  animation: toastIn 0.2s ease;
}

.toast-success {
  border-left: 3.5px solid #15803d;
}
.toast-error {
  border-left: 3.5px solid #be123c;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden {
  display: none !important;
}

/* ===================================================================
   RESERVED ADVERTISEMENT SLOTS (Zero Layout Shift / Light-Mode Clean)
   =================================================================== */
.ad-slot-placeholder-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.ad-slot-placeholder-wrap.hidden-ad-slot,
.ad-slot-placeholder-wrap[style*="display: none"] {
  display: none !important;
}

.ad-slot {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: all 0.2s ease;
}

.ad-slot:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}

.ad-slot-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #94a3b8;
  padding: 5px 12px 2px;
  line-height: 1;
  user-select: none;
}

.ad-slot-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  color: #94a3b8;
}

/* Formats: Banner (728x90 / responsive) */
.ad-slot-banner {
  min-height: 90px;
  height: 90px;
  max-width: 728px;
  width: 100%;
}

/* Formats: Rectangle (300x250 Medium Rectangle) */
.ad-slot-rectangle {
  min-height: 250px;
  height: 250px;
  width: 300px;
  max-width: 100%;
}

/* Strict Button Distance Policy: >= 200px from any action button */
/* Slot 1: Between Interactive Resume Optimization banner (with Open Editor button) and 6 Core Dimensions */
.ad-slot-placeholder-center-optimization,
.ad-slot-center-banner {
  margin-top: 205px !important;
  margin-bottom: 1.5rem !important;
}

/* Slot 2: Bottom of center column, after Section Breakdown */
.ad-slot-placeholder-center-bottom,
.ad-slot-bottom-banner {
  margin-top: 2.5rem !important;
  margin-bottom: 2rem !important;
}

/* Slot 3: Left column below Analyse Resume button (and watermark) */
.ad-slot-placeholder-left,
.ad-left-rectangle {
  margin-top: 205px !important;
  margin-bottom: 1.5rem !important;
  margin-left: auto;
  margin-right: auto;
}

@media print {
  .ad-slot,
  .ad-slot-placeholder-wrap {
    display: none !important;
  }
}


/* ─── GEMINI API KEY PANEL & STATUS BADGE ──────────────────────────── */

/* Wrapper keeps the panel positioned relative to the toggle button */
.api-key-wrap {
  position: relative;
}

/* Toggle button in the header */
.api-key-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border, #c5dcee);
  border-radius: 8px;
  background: var(--bg-card, #f0f6fc);
  color: var(--text-2, #334155);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.api-key-toggle:hover {
  border-color: var(--primary, #0284c7);
  background: var(--primary-subtle, #dcedfa);
}

/* Gemini status badge inside the toggle */
.gemini-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}
.gemini-builtin {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-3, #64748b);
  border: 1px solid var(--border, #c5dcee);
}
.gemini-active {
  background: rgba(16, 185, 129, 0.15);
  color: #15803d;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Collapsible panel */
.api-key-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 9999;
  width: 300px;
  background: var(--bg-card, #f0f6fc);
  border: 1px solid var(--border, #c5dcee);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 14px 16px 12px;
}
.api-key-panel.hidden {
  display: none;
}

.api-key-panel-header {
  margin-bottom: 10px;
}
.api-key-panel-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text, #0f172a);
}
.api-key-panel-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3, #64748b);
  margin-top: 2px;
}

.api-key-input-row {
  margin-bottom: 8px;
}
.api-key-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border, #c5dcee);
  border-radius: 7px;
  background: var(--surface, rgba(235,244,252,0.96));
  color: var(--text, #0f172a);
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.api-key-input:focus {
  border-color: var(--primary, #0284c7);
}

.api-key-actions {
  display: flex;
  gap: 7px;
  margin-bottom: 9px;
}
.btn-save-key,
.btn-clear-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.btn-save-key {
  background: var(--primary, #0284c7);
  color: #fff;
  flex: 1;
}
.btn-save-key:hover { opacity: 0.88; }
.btn-clear-key {
  background: var(--red-bg, #fce1ed);
  color: var(--red, #be123c);
  border: 1px solid var(--red-border, #f69ebd);
}
.btn-clear-key:hover { opacity: 0.80; }

.api-key-note {
  font-size: 0.69rem;
  color: var(--text-3, #64748b);
  line-height: 1.45;
  margin: 0;
}
.api-key-note a {
  color: var(--primary, #0284c7);
  text-decoration: none;
}
.api-key-note a:hover { text-decoration: underline; }

/* ─── END GEMINI API KEY PANEL ─────────────────────────────────────── */

/* ─── PDF EXPORT BUTTON ─────────────────────────────────────────────── */

.btn-export-pdf {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border, #c5dcee);
  background: var(--bg-card, #f0f6fc);
  color: var(--text-2, #334155);
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn-export-pdf:hover {
  background: var(--primary-subtle, #dcedfa);
  border-color: var(--primary, #0284c7);
  color: var(--primary, #0284c7);
}
.btn-export-pdf:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Hidden by default — only shown during print ─────────────────────── */
#pdfReportContainer {
  display: none;
}

/* ─── PRINT LAYOUT ───────────────────────────────────────────────────── */
@media print {

  /* Hide the entire application shell */
  body > *:not(#pdfReportContainer) {
    display: none !important;
  }

  /* Show only the report */
  #pdfReportContainer {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #0f172a !important;
    font-family: -apple-system, 'Segoe UI', system-ui, sans-serif !important;
  }

  #pdfReportContainer * {
    visibility: visible !important;
  }

  /* Page settings */
  @page {
    size: A4 portrait;
    margin: 15mm 15mm 18mm 15mm;
  }

  /* Ensure ad slots are also hidden (belt and braces with existing rule) */
  .ad-slot,
  .ad-slot-placeholder-wrap {
    display: none !important;
  }

  /* Prevent page breaks inside key cards */
  .rr-avoid-break {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Force page break before major sections when needed */
  .rr-section {
    break-inside: auto;
  }

  /* ─── ATS Printable Resume Styles ───────────────────────────────── */
  .ats-resume-print-document {
    font-family: 'Calibri', 'Arial', 'Helvetica Neue', sans-serif !important;
    font-size: 10.5pt !important;
    line-height: 1.45 !important;
    color: #111827 !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .ats-print-header {
    text-align: center;
    margin-bottom: 12pt;
    padding-bottom: 6pt;
  }

  .ats-print-name {
    font-size: 19pt !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    margin: 0 0 3pt 0 !important;
    color: #0f172a !important;
    text-transform: uppercase !important;
  }

  .ats-print-title {
    font-size: 11pt !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 4pt !important;
  }

  .ats-print-contact {
    font-size: 9.5pt !important;
    color: #475569 !important;
  }

  .ats-print-section {
    margin-bottom: 11pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .ats-print-sec-title {
    font-size: 11pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: 0.8px !important;
    margin: 0 0 2pt 0 !important;
    text-transform: uppercase !important;
  }

  .ats-print-divider {
    height: 1.2px;
    background: #0f172a;
    margin-bottom: 5pt;
  }

  .ats-print-paragraph {
    font-size: 10pt !important;
    line-height: 1.45 !important;
    margin: 0 0 4pt 0 !important;
    color: #1e293b !important;
  }

  .ats-print-entry {
    margin-bottom: 6pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .ats-print-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 10.5pt;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2pt;
  }

  .ats-print-period {
    font-style: italic;
    font-size: 9.5pt;
    color: #475569;
  }

  .ats-print-tools {
    font-size: 9.5pt;
    color: #0369a1;
    font-weight: 500;
  }

  .ats-print-bullets {
    margin: 2pt 0 4pt 18pt !important;
    padding: 0 !important;
    list-style-type: disc !important;
  }

  .ats-print-bullets li {
    font-size: 10pt !important;
    line-height: 1.4 !important;
    margin-bottom: 2.5pt !important;
    color: #1e293b !important;
  }

  .ats-print-edu-line {
    font-size: 10pt;
    line-height: 1.4;
    margin-bottom: 3pt;
    color: #1e293b;
  }
}

/* ─── END PDF EXPORT ─────────────────────────────────────────────────── */

/* ─── SCORE POTENTIAL PANEL ─────────────────────────────────────────── */

.card-score-potential {
  border-left: 3px solid var(--primary, #0284c7);
}

.card-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sp-subtitle {
  font-size: 0.76rem;
  color: var(--text-3, #64748b);
  font-style: italic;
}

/* Headline row: current → potential */
.sp-headline-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--bg-subtle, #dde8f2);
  border-radius: 8px;
  margin-bottom: 14px;
}

.sp-score-from,
.sp-score-to {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.sp-score-val {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text, #0f172a);
}

.sp-score-meta {
  font-size: 0.68rem;
  color: var(--text-3, #64748b);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sp-arrow-big {
  font-size: 1.3rem;
  color: var(--text-3, #64748b);
  flex-shrink: 0;
}

.sp-gain-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 4px;
}

.sp-gain-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.sp-gain-sub {
  font-size: 0.72rem;
  color: var(--text-3, #64748b);
}

/* "Already strong" chips row */
.sp-strong-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.78rem;
}

.sp-strong-label {
  color: var(--green, #15803d);
  font-weight: 600;
  flex-shrink: 0;
}

.sp-strong-chip {
  background: rgba(21,128,61,0.10);
  color: var(--green, #15803d);
  border: 1px solid rgba(21,128,61,0.25);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 500;
}

/* Improvement items list */
.sp-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-item {
  background: var(--bg-card, #f0f6fc);
  border: 1px solid var(--border, #c5dcee);
  border-radius: 8px;
  padding: 11px 13px;
}

.sp-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.sp-item-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sp-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--primary, #0284c7);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
}

.sp-dim-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text, #0f172a);
}

.sp-weight-tag {
  font-size: 0.68rem;
  color: var(--text-3, #64748b);
  background: var(--bg-subtle, #dde8f2);
  padding: 1px 6px;
  border-radius: 4px;
}

.sp-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sp-current-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-2, #334155);
}

.sp-denom {
  font-size: 0.68rem;
  color: var(--text-3, #64748b);
  font-weight: 400;
}

.sp-arrow {
  font-size: 0.75rem;
  color: var(--text-3, #64748b);
}

.sp-ceiling-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green, #15803d);
}

.sp-gain-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(21,128,61,0.12);
  color: var(--green, #15803d);
  border: 1px solid rgba(21,128,61,0.25);
}

/* Progress bar: filled portion + potential ghost */
.sp-bar-track {
  position: relative;
  height: 6px;
  background: var(--bg-subtle, #dde8f2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 7px;
}

.sp-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
  transition: width 0.7s cubic-bezier(.4,0,.2,1);
}

.sp-bar-potential {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: rgba(2,132,199,0.15);
  border-right: 2px dashed rgba(2,132,199,0.5);
}

/* Hint text */
.sp-hint {
  font-size: 0.79rem;
  color: var(--text-2, #334155);
  line-height: 1.5;
  margin: 0;
}

/* Perfect score state */
.sp-perfect-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: rgba(21,128,61,0.08);
  border-radius: 8px;
  border: 1px solid rgba(21,128,61,0.2);
}

.sp-perfect-icon {
  font-size: 1.1rem;
  color: var(--green, #15803d);
  flex-shrink: 0;
}

.sp-perfect-text {
  font-size: 0.82rem;
  color: var(--green, #15803d);
  font-weight: 500;
  line-height: 1.5;
}

/* ─── END SCORE POTENTIAL PANEL ─────────────────────────────────────── */

/* ===================================================================
   CAREER OPPORTUNITIES & LIVE JOBS HUB
   =================================================================== */

/* Header & Card Additions in index.html */
.career-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.see-more-jobs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm, 8px);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.see-more-jobs-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  background: linear-gradient(135deg, #0369a1, #075985);
  color: #ffffff !important;
}

.role-apply-footer {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #d7e7f4;
}

.role-openings-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  background: #f0f8ff;
  border: 1px solid #bae6fd;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all 0.18s ease;
  width: 100%;
  justify-content: center;
}

.role-openings-btn:hover {
  background: #0284c7;
  color: #ffffff !important;
  border-color: #0284c7;
}

/* Nav Badge */
.nav-pill-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 999px;
  background: #0284c7;
  color: #ffffff;
  margin-left: 4px;
}

.pulse-badge {
  animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.portal-nav-btn.opp-active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

/* ==========================================================================
   OPPORTUNITIES & CAREER HUB — HUMAN-DESIGNED MODERN UI/UX
   ========================================================================== */

/* Main Page Container */
.opp-main-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Breadcrumb Navigation */
.opp-breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: #64748b;
  flex-wrap: wrap;
}

.opp-breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.16s ease;
}

.opp-breadcrumb-link:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.opp-breadcrumb-divider {
  color: #cbd5e1;
  font-size: 0.85rem;
}

.opp-breadcrumb-current {
  color: #64748b;
  font-weight: 500;
}

/* Top Reviewer Return Header Button */
.portal-nav-btn.back-to-reviewer-btn {
  background: #ffffff;
  color: #1e293b;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.8125rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.18s ease;
}

.portal-nav-btn.back-to-reviewer-btn:hover {
  background: #f8fafc;
  color: #2563eb;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.portal-nav-btn.opp-active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  font-weight: 600;
}

/* Hero Section */
.opp-hero-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem 2rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.opp-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #2563eb;
}

.opp-badge-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.opp-badge-pill {
  font-size: 0.725rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.opp-badge-pill.verified-badge {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.opp-hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.opp-hero-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  max-width: 860px;
  margin-bottom: 1.25rem;
}

/* Resume Match Callout Bar */
.opp-resume-match-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.match-bar-loading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.match-bar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.match-bar-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  display: block;
}

.match-bar-sub {
  font-size: 0.78rem;
  color: #64748b;
  display: block;
  margin-top: 1px;
}

.match-bar-loaded {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.match-score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  min-width: 84px;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.match-score-badge .score-val {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.match-score-badge .score-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.match-details {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.match-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.match-head-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.match-role-tag {
  font-size: 0.75rem;
  color: #1e40af;
  background: #eff6ff;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid #bfdbfe;
}

.match-sub-text {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.4;
}

.match-skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.match-skill-pill {
  font-size: 0.7rem;
  font-weight: 500;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 2px 7px;
  border-radius: 4px;
}

.match-skill-extra {
  font-size: 0.7rem;
  font-weight: 600;
  color: #2563eb;
  padding: 2px 5px;
}

.reanalyse-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.85rem;
  border-radius: 7px;
  text-decoration: none;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.reanalyse-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.match-bar-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.match-bar-empty .empty-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.match-bar-empty .empty-info {
  flex: 1;
  min-width: 240px;
}

.match-bar-empty .empty-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.match-bar-empty .empty-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
  margin-top: 2px;
}

.btn-match-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff !important;
  background: #2563eb;
  border: 1px solid #1d4ed8;
  padding: 0.52rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
  transition: all 0.18s ease;
}

.btn-match-cta:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

/* 1-Click Search Portals Section */
.opp-quick-portals-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.opp-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.opp-section-sub {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 2px;
}

.active-query-tag {
  font-size: 0.75rem;
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.active-query-tag strong {
  color: #0f172a;
}

.opp-portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.opp-portal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.95rem 1rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.opp-portal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--portal-brand, #2563eb);
}

.opp-portal-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.portal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 1px 6px;
  border-radius: 4px;
}

.portal-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.portal-sub {
  font-size: 0.725rem;
  color: #64748b;
  line-height: 1.35;
  flex: 1;
}

.portal-action-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--portal-brand, #2563eb);
  margin-top: 0.25rem;
}

/* Filter & Search Section */
.opp-filter-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.opp-search-box {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-input-wrap {
  flex: 1;
  min-width: 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  padding: 0.68rem 2.4rem 0.68rem 2.5rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
  transition: all 0.16s ease;
}

.search-input-wrap input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #94a3b8;
  cursor: pointer;
}

.clear-search-btn:hover {
  color: #0f172a;
}

.location-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 220px;
}

.location-select-wrap svg {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  pointer-events: none;
}

.location-select-wrap select {
  width: 100%;
  padding: 0.68rem 1rem 0.68rem 2.3rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.84rem;
  color: #0f172a;
  outline: none;
  cursor: pointer;
  transition: border-color 0.16s ease;
}

.location-select-wrap select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Category Tabs */
.opp-category-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.opp-category-tabs::-webkit-scrollbar {
  display: none;
}

.opp-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.opp-tab:hover {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #f8fafc;
}

.opp-tab.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}

/* Listings Section & Feed Bar */
.opp-listings-section {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.live-sync-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.15rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  flex-wrap: wrap;
}

.live-sync-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
  flex-shrink: 0;
}

.live-sync-text {
  font-size: 0.8125rem;
  color: #334155;
}

.live-sync-text strong {
  color: #0f172a;
}

.live-auto-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.live-sync-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.time-filter-toggle {
  display: flex;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.time-pill {
  padding: 3px 8px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.725rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.time-pill:hover {
  color: #0f172a;
}

.time-pill.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.refresh-feed-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.refresh-feed-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.refresh-feed-btn.spinning svg {
  animation: spinIcon 0.7s linear infinite;
}

@keyframes spinIcon {
  100% { transform: rotate(360deg); }
}

.listings-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.25rem 0.2rem;
}

.listings-stat-label {
  font-size: 0.85rem;
  color: #475569;
}

.filter-highlight {
  color: #0f172a;
  font-weight: 600;
}

.listings-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #64748b;
}

.listings-sort-wrap select {
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.8rem;
  color: #0f172a;
  outline: none;
}

/* ==========================================================================
   HUMAN-DESIGNED JOB CARDS GRID
   ========================================================================== */
.opp-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.opp-job-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  gap: 0.85rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.opp-job-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
}

/* Card Top Recency / Batch Bar */
.job-card-recency-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.725rem;
}

.job-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.job-date-badge.badge-today {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.job-date-badge.badge-yesterday,
.job-date-badge.badge-week {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.job-date-badge.badge-active {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.recency-pulse {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.job-batch-tag {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 500;
  background: #f8fafc;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #f1f5f9;
}

/* Card Header (Company, Logo, Title, Match) */
.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.company-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  margin: -0.35rem -0.5rem;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
  text-decoration: none;
}

.company-badge-wrap:hover,
.company-badge-wrap:focus-visible {
  background: #f8fafc;
}

.company-badge-wrap:hover .job-company,
.company-badge-wrap:focus-visible .job-company {
  color: #2563eb;
}

.company-badge-wrap:hover .company-avatar,
.company-badge-wrap:focus-visible .company-avatar {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.16);
  transform: translateY(-1px) scale(1.02);
}

.company-badge-wrap:active {
  transform: translateY(0);
}

.company-guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.12rem 0.45rem;
  border-radius: 12px;
  margin-left: 0.4rem;
  vertical-align: middle;
  transition: all 0.18s ease;
  line-height: 1.3;
}

.company-badge-wrap:hover .company-guide-badge,
.company-badge-wrap:focus-visible .company-guide-badge {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.company-avatar {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  flex-shrink: 0;
  position: relative;
}

.company-avatar svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: auto;
}

.company-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.job-company {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
}

.verified-icon {
  color: #059669;
  font-weight: 700;
  font-size: 0.75rem;
}

.job-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-top: 2px;
}

/* Match Badge on Card */
.job-match-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.job-match-badge .match-num {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.job-match-badge .match-text {
  font-size: 0.725rem;
  font-weight: 600;
}

.job-match-badge.no-resume-badge {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 0.725rem;
}

/* Meta Information Badges Row */
.job-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
}

.job-type-pill {
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
}

.job-type-pill.type-internship {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.job-type-pill.type-fresher {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.job-meta-item {
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.job-meta-item.package-pill {
  background: #f8fafc;
  color: #0f172a;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
  font-weight: 600;
}

.job-desc {
  font-size: 0.835rem;
  color: #475569;
  line-height: 1.55;
  flex: 1;
}

/* Skills Section */
.job-skills-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #f8fafc;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.skills-label-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.skills-ratio {
  color: #2563eb;
  font-weight: 600;
}

.job-skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.job-skill-chip {
  font-size: 0.725rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
}

.job-skill-chip.neutral {
  background: #ffffff;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.job-skill-chip.match {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.job-skill-chip.missing {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* ==========================================================================
   CARD ACTION BUTTONS (Human Crafted & Polished)
   ========================================================================== */
.job-card-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
  width: 100%;
}

/* 1. Direct Apply Button */
.direct-apply-btn {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff !important;
  background: #2563eb;
  border: 1px solid #1d4ed8;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.direct-apply-btn:hover {
  background: #1d4ed8;
  border-color: #1e40af;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

/* 2. LinkedIn Quick Icon */
.btn-linkedin-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.18s ease;
  text-decoration: none;
}

.btn-linkedin-icon:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  box-shadow: 0 4px 10px rgba(10, 102, 194, 0.25);
  transform: translateY(-1px);
}

.btn-linkedin-icon svg {
  transition: fill 0.18s ease;
}

.btn-linkedin-icon:hover svg {
  fill: #ffffff;
}

/* Empty State */
.opp-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.opp-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.opp-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.opp-empty-desc {
  font-size: 0.84rem;
  color: #64748b;
  max-width: 460px;
  line-height: 1.5;
}

.btn-reset-filters {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-reset-filters:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

/* ==========================================================================
   ROLE INTELLIGENCE & INTERVIEW PREP MODAL
   ========================================================================== */
.modal-dialog.role-intel-dialog {
  max-width: 760px;
  width: 94%;
  max-height: 88vh;
  background: #ffffff !important;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 100000;
}

.modal-header {
  padding: 1.35rem 1.6rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-badge-pill {
  font-size: 0.725rem;
  font-weight: 600;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  width: fit-content;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.modal-subtitle {
  font-size: 0.8125rem;
  color: #475569;
  font-weight: 500;
}

.modal-close-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.role-intel-body {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-height: 65vh;
  overflow-y: auto;
  padding: 1.5rem 1.6rem;
  background: #ffffff;
}

.intel-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.intel-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.intel-text {
  font-size: 0.825rem;
  color: #475569;
  line-height: 1.55;
}

/* Process Steps Timeline */
.intel-process-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.intel-process-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 0.95rem;
  border-radius: 8px;
}

.step-num-badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.process-round-title {
  font-size: 0.835rem;
  font-weight: 700;
  color: #0f172a;
}

.process-round-desc {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.45;
}

/* Question Items */
.intel-questions-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.intel-question-item {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.825rem;
  color: #1e293b;
  line-height: 1.45;
}

.intel-question-item .quote-icon {
  font-size: 1.25rem;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
}

/* Grid Row for Skills & Batch */
.intel-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.role-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.role-skill-badge {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.intel-section.highlight-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 1rem 1.15rem;
}

.modal-footer {
  padding: 1rem 1.6rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-modal-dismiss {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.52rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-modal-dismiss:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-modal-action {
  background: #2563eb;
  border: 1px solid #1d4ed8;
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.52rem 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
  transition: all 0.16s ease;
}

.btn-modal-action:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE SUITE (Native Mobile App Experience)
   ========================================================================== */

/* Bottom App Navigation Bar (Desktop Hidden) */
.mobile-app-bottom-nav {
  display: none;
}

/* Toggle helpers for mobile header text */
.btn-text-mobile,
.nav-text-mobile {
  display: none;
}

@media (max-width: 768px) {
  .btn-text-full,
  .nav-text-full {
    display: none !important;
  }
  .btn-text-mobile,
  .nav-text-mobile {
    display: inline !important;
  }

  /* Native Mobile App Header */
  .header {
    height: 56px !important;
    padding: 0 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
  }

  .header-brand {
    gap: 0.6rem !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .brand-name {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
  }

  .brand-tag {
    display: none !important;
  }

  .header-actions {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .privacy-trust-chip {
    display: none !important;
  }

  /* Keep Primary Portal Navigation in Header across mobile & tablet */
  .portal-nav-switcher {
    display: flex !important;
    order: 3 !important;
    width: 100% !important;
    margin-top: 0.35rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 3px !important;
  }
  .portal-nav-switcher::-webkit-scrollbar {
    display: none !important;
  }
  .portal-nav-btn {
    flex: 1 1 auto !important;
    justify-content: center !important;
    padding: 0.35rem 0.55rem !important;
    font-size: 0.75rem !important;
  }

  /* Completely remove floating bottom navigation bar */
  .mobile-app-bottom-nav,
  .mobile-bottom-nav {
    display: none !important;
  }

  /* Mobile Input Auto-Zoom Prevention (16px) & Full Width Alignment */
  input, select, textarea {
    font-size: 16px !important;
  }

  .main-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .panel-left,
  .panel-center,
  .panel-right {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    padding: 1rem !important;
    margin: 0 !important;
  }

  .dropzone {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 1rem 0 !important;
    border-radius: 12px !important;
  }

  .btn-upload {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    box-sizing: border-box !important;
  }

  .btn-analyse {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    box-sizing: border-box !important;
  }

  /* Main Container & Breadcrumbs */
  .opp-main-container {
    padding: 1rem 0.85rem 3.5rem;
    gap: 1.25rem;
  }
  .opp-breadcrumb-nav {
    font-size: 0.75rem;
    gap: 0.4rem;
  }
  .opp-breadcrumb-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  .opp-breadcrumb-current {
    font-size: 0.75rem;
  }

  /* Hero Card */
  .opp-hero-card {
    padding: 1.25rem 1.15rem;
    border-radius: 12px;
  }
  .opp-hero-title {
    font-size: 1.35rem;
    letter-spacing: -0.015em;
  }
  .opp-hero-desc {
    font-size: 0.825rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  .opp-badge-row {
    gap: 0.35rem;
    margin-bottom: 0.6rem;
  }
  .opp-badge-pill {
    font-size: 0.68rem;
    padding: 2px 7px;
  }

  /* Search & Filter Controls */
  .opp-search-box {
    flex-direction: column;
    gap: 0.5rem;
  }
  .search-input-wrap,
  .location-select-wrap {
    width: 100%;
    min-width: 0;
  }
  .search-input-wrap input {
    padding: 0.62rem 2.2rem 0.62rem 2.3rem;
    font-size: 0.84rem;
  }
  .location-select-wrap select {
    padding: 0.62rem 0.85rem 0.62rem 2.2rem;
    font-size: 0.84rem;
  }
  .opp-category-tabs {
    padding-bottom: 6px;
    gap: 0.4rem;
    -webkit-overflow-scrolling: touch;
  }
  .opp-tab {
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  /* 1-Click Search Portals Grid */
  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .active-query-tag {
    align-self: flex-start;
  }
  .opp-portals-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
  }

  /* Jobs Grid & Cards */
  .opp-jobs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .opp-job-card {
    padding: 1.15rem 1rem;
    border-radius: 10px;
    gap: 0.75rem;
  }
  .job-card-header {
    gap: 0.5rem;
  }
  .company-badge-wrap {
    gap: 0.65rem;
  }
  .company-avatar {
    width: 40px;
    height: 40px;
    padding: 4px;
  }
  .job-title {
    font-size: 0.98rem;
  }
  .job-company {
    font-size: 0.78rem;
  }
  .job-match-badge {
    padding: 0.3rem 0.55rem;
  }
  .job-match-badge .match-num {
    font-size: 0.85rem;
  }
  .job-match-badge .match-text {
    font-size: 0.68rem;
  }
  .job-meta-row {
    gap: 0.4rem;
    font-size: 0.72rem;
  }
  .job-desc {
    font-size: 0.8rem;
    line-height: 1.5;
  }
  .job-skills-section {
    padding: 0.65rem 0.75rem;
  }

  /* Role Prep Modal */
  .modal-dialog.role-intel-dialog {
    width: 95%;
    max-width: 95%;
    max-height: 92vh;
    border-radius: 12px;
    margin: auto;
  }
  .modal-header {
    padding: 1rem 1.15rem;
  }
  .modal-title {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  .modal-subtitle {
    font-size: 0.76rem;
  }
  .role-intel-body {
    padding: 1.15rem;
    max-height: 65vh;
    gap: 1rem;
  }
  .intel-process-step {
    padding: 0.65rem 0.75rem;
    gap: 0.6rem;
  }
  .process-round-title {
    font-size: 0.8rem;
  }
  .process-round-desc {
    font-size: 0.75rem;
  }
  .intel-grid-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .modal-footer {
    padding: 0.85rem 1.15rem;
    flex-direction: column-reverse;
    gap: 0.5rem;
  }
  .btn-modal-dismiss {
    width: 100%;
    text-align: center;
    padding: 0.55rem;
  }
  .btn-modal-action {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.58rem;
  }
}

/* Specific Adjustments for Screens <= 640px */
@media (max-width: 640px) {
  /* Resume Match Bar Stacking */
  .match-bar-loaded {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .match-score-badge {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem 0.85rem;
  }
  .match-score-badge .score-val {
    font-size: 1.2rem;
  }
  .match-actions {
    width: 100%;
  }
  .reanalyse-btn {
    width: 100%;
    justify-content: center;
  }
  .match-bar-empty {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.25rem 0;
  }
  .match-bar-empty .empty-badge-icon {
    display: none;
  }
  .btn-match-cta {
    width: 100%;
    justify-content: center;
    padding: 0.55rem 1rem;
  }

  /* Live Feed Sync Bar */
  .live-sync-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
  }
  .live-sync-left {
    width: 100%;
    justify-content: space-between;
  }
  .live-sync-right {
    width: 100%;
    gap: 0.45rem;
  }
  .time-filter-toggle {
    flex: 1;
  }
  .time-pill {
    flex: 1;
    text-align: center;
    padding: 3px 4px;
    font-size: 0.68rem;
  }
  .refresh-feed-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
    flex-shrink: 0;
  }
  .listings-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }
  .listings-stat-label {
    font-size: 0.8rem;
  }
  .listings-sort-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .listings-sort-wrap select {
    flex: 1;
    max-width: none;
    margin-left: 0.5rem;
  }
}

/* Specific Adjustments for Screens <= 600px */
@media (max-width: 600px) {
  .header-brand {
    gap: 0.5rem;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
  }
  .portal-tag {
    display: none !important;
  }
  .btn-text-full,
  .nav-text-full {
    display: none !important;
  }
  .btn-text-mobile,
  .nav-text-mobile {
    display: inline !important;
  }
  .portal-nav-btn.back-to-reviewer-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
  }
}

/* Action Buttons Grid for Mobile Phones (<= 540px) */
@media (max-width: 540px) {
  .job-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }
  .direct-apply-btn {
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 0.58rem 0.85rem;
    font-size: 0.825rem;
    justify-content: center;
  }
  .btn-linkedin-icon {
    width: 38px;
    height: 38px;
    min-height: 38px;
    flex-shrink: 0;
    border-radius: 8px;
  }
}

/* Small Screens (<= 480px down to 320px) */
@media (max-width: 480px) {
  .opp-main-container {
    padding: 0.75rem 0.65rem 3rem;
    gap: 1rem;
  }
  .opp-breadcrumb-current,
  .opp-breadcrumb-divider {
    display: none;
  }
  .opp-portals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .opp-portal-card {
    padding: 0.75rem;
  }
  .portal-name {
    font-size: 0.825rem;
  }
  .portal-sub {
    display: none;
  }
  .portal-action-btn {
    font-size: 0.72rem;
  }
  .job-meta-row {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
}

/* ─── BEST MATCHING CARD AT BOTTOM OF ANALYSIS TAB ─── */
.card-best-matching {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.05) 0%, rgba(99, 102, 241, 0.07) 100%);
  border: 1.5px solid rgba(2, 132, 199, 0.35);
  border-radius: var(--radius-md, 12px);
  padding: 1.4rem 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 18px -2px rgba(2, 132, 199, 0.12);
  position: relative;
  overflow: hidden;
}

.card-best-matching::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #0284c7, #6366f1, #10b981);
}

.best-matching-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.best-matching-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 280px;
}

.best-matching-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #4f46e5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.best-matching-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0284c7;
  margin-bottom: 0.25rem;
}

.best-matching-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 800;
}

.best-matching-main-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.02em;
}

.best-matching-desc {
  font-size: 0.85rem;
  color: var(--text-secondary, #475569);
  line-height: 1.5;
  margin: 0;
}

.best-matching-cta-wrap {
  flex-shrink: 0;
}

.best-matching-cta-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  text-align: center;
}

.best-matching-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
  background: linear-gradient(135deg, #0369a1 0%, #4338ca 100%);
  color: #ffffff !important;
}

.best-matching-btn-label {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.best-matching-btn-sub {
  font-size: 0.72rem;
  opacity: 0.92;
  font-weight: 600;
  margin-top: 2px;
}

.best-matching-roles-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(2, 132, 199, 0.22);
}

.best-matching-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.best-matching-role-chip .match-score {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.72rem;
}

/* ─── BEST MATCHING PAGE SPECIFIC ENHANCEMENTS ─── */
.opp-match-bar,
.opp-resume-match-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.opp-job-card.best-match-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.35rem 1.4rem;
  gap: 0.85rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

.opp-job-card.best-match-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 12px 28px -4px rgba(2, 132, 199, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
}

.opp-job-card.best-match-card a,
.opp-job-card.best-match-card button {
  cursor: pointer;
}

.best-match-card .job-card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0.15rem;
}

.best-match-card-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.best-match-card-top-pill.top-1 {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.28);
}

.best-match-card-top-pill.top-2,
.best-match-card-top-pill.top-3 {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.best-match-card-top-pill.top-general {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.batch-eligibility-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.71rem;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 58%;
}

.batch-eligibility-pill svg {
  flex-shrink: 0;
  color: #94a3b8;
}

.best-match-card .company-badge-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  text-decoration: none;
}

.best-match-card .company-info-wrap {
  flex: 1;
  min-width: 0;
}

.best-match-card .company-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  flex-shrink: 0;
}

.best-match-card .company-avatar img,
.best-match-card .company-logo-img,
.best-match-card .brand-vector-logo {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block;
}

.best-match-card .job-desc {
  font-size: 0.835rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.85em;
}

.best-match-rationale-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  margin: 0;
  font-size: 0.79rem;
  color: #166534;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 3.4em;
  box-sizing: border-box;
}

.best-match-rationale-box svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.best-match-rationale-box .rationale-text {
  flex: 1;
}

.best-match-card .job-skills-section {
  margin-top: auto;
  background: #f8fafc;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.best-match-card .job-card-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
  width: 100%;
}

/* ─── BEST MATCHING ACCORDION / COLLAPSIBLE EXPANSION ─── */
.best-matching-collapsible-body {
  margin-top: 1.25rem;
  transition: opacity 0.28s ease, transform 0.28s ease;
  transform-origin: top center;
}

.best-matching-collapsible-body.hidden {
  display: none !important;
}

.best-matching-cta-btn.active {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.best-matching-cta-btn.active:hover {
  background: linear-gradient(135deg, #047857 0%, #0f766e 100%);
}

.btn-collapse-matching {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-collapse-matching:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
