@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=DM+Sans:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Dark theme (default :root) */
  --bg:       #0f1117;
  --bg2:      #14181f;
  --bg3:      #1a1f28;
  --bg4:      #222934;
  --border:   #2a3340;
  --border2:  #36424f;
  --primary:  #14b8a6;
  --primary2: #0d9488;
  --pgd:      rgba(20,184,166,0.14);
  --green:    #34d399;
  --green2:   #10b981;
  --gd:       rgba(52,211,153,0.10);
  --blue:     #60a5fa;
  --amber:    #fbbf24;
  --red:      #f87171;
  --purple:   #a78bfa;
  --text:     #f1f5f9;
  --text2:    #94a3b8;
  --text3:    #64748b;
  --card:     #14181f;
  --card2:    #1a1f28;

  --topbar-bg: rgba(15, 17, 23, 0.92);
  --topbar-border: rgba(20,184,166,0.18);
  --topbar-shadow: 0 1px 0 rgba(20,184,166,0.1), 0 2px 20px rgba(0,0,0,0.3);
  --brand-icon-grad1: #14b8a6;
  --brand-icon-grad2: #0d9488;
  --brand-icon-shadow: 0 0 0 1px rgba(20,184,166,0.2);
  --resizer-bg: linear-gradient(180deg, transparent 0%, rgba(20,184,166,0.05) 50%, transparent 100%);
  --focus-ring: rgba(20,184,166,0.2);

  --live-chip-border: rgba(52,211,153,0.22);
  --source-chip-bg: rgba(96,165,250,0.10);
  --source-chip-border: rgba(96,165,250,0.22);

  --btn-primary-grad1: #14b8a6;
  --btn-primary-grad2: #0d9488;
  --btn-primary-shadow: 0 2px 16px rgba(20,184,166,0.28);
  --btn-primary-hover-shadow: 0 4px 22px rgba(20,184,166,0.4);

  --preview-wrap-bg: #1a1f28;
  --preview-page-bg: #fbfcfe;
  --preview-page-shadow: 0 8px 32px rgba(0,0,0,0.36), 0 0 0 1px rgba(20,184,166,0.1);
  --preview-page-text: #1e252d;
  --preview-name: #11161b;
  --preview-muted: #576270;
  --preview-accent: #0d9488;
  --preview-section-border: #dfe5ec;
  --preview-company: #5f7286;
  --preview-bullet: #0d9488;

  --radius:   9px;
  --radius-lg: 14px;
}

:root[data-theme="light-pro"],
body[data-theme="light-pro"] {
  --bg:       #f8fafc;
  --bg2:      #ffffff;
  --bg3:      #f1f5f9;
  --bg4:      #e2e8f0;
  --border:   #e2e8f0;
  --border2:  #cbd5e1;
  --primary:  #0d9488;
  --primary2: #0f766e;
  --pgd:      rgba(13,148,136,0.10);
  --green:    #059669;
  --green2:   #047857;
  --gd:       rgba(5,150,105,0.08);
  --blue:     #0284c7;
  --amber:    #d97706;
  --red:      #dc2626;
  --purple:   #7c3aed;
  --text:     #0f172a;
  --text2:    #334155;
  --text3:    #94a3b8;
  --card:     #ffffff;
  --card2:    #f8fafc;

  --topbar-bg: rgba(255, 255, 255, 0.96);
  --topbar-border: rgba(13,148,136,0.15);
  --topbar-shadow: 0 1px 0 #e2e8f0, 0 2px 16px rgba(15,23,42,0.06);
  --brand-icon-grad1: #14b8a6;
  --brand-icon-grad2: #0d9488;
  --brand-icon-shadow: 0 0 0 1px rgba(13,148,136,0.2);
  --resizer-bg: linear-gradient(180deg, transparent 0%, rgba(13,148,136,0.07) 50%, transparent 100%);
  --focus-ring: rgba(13,148,136,0.18);

  --live-chip-border: rgba(5,150,105,0.2);
  --source-chip-bg: rgba(2,132,199,0.07);
  --source-chip-border: rgba(2,132,199,0.18);

  --btn-primary-grad1: #14b8a6;
  --btn-primary-grad2: #0d9488;
  --btn-primary-shadow: 0 2px 12px rgba(13,148,136,0.22);
  --btn-primary-hover-shadow: 0 4px 20px rgba(13,148,136,0.32);

  --preview-wrap-bg: #e2e8f0;
  --preview-page-bg: #ffffff;
  --preview-page-shadow: 0 8px 28px rgba(15,23,42,0.10), 0 0 0 1px rgba(13,148,136,0.06);
  --preview-page-text: #1e252d;
  --preview-name: #0f172a;
  --preview-muted: #5d6c7b;
  --preview-accent: #0d9488;
  --preview-section-border: #e2e8f0;
  --preview-company: #5c6f82;
  --preview-bullet: #0d9488;
}

html, body { height: 100%; overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ── TOPBAR ── */
.topbar {
  height: 56px;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--topbar-border);
  box-shadow: var(--topbar-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-icon-grad1), var(--brand-icon-grad2));
  box-shadow: var(--brand-icon-shadow);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-name { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.brand-sub  { font-size: 11px; color: var(--text3); margin-left: 3px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.theme-switch-label {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.theme-select {
  font-size: 11px;
  color: var(--text);
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 7px;
  padding: 4px 8px;
  outline: none;
  font-family: 'Inter', sans-serif;
}
.theme-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.live-chip {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--green);
  background: var(--gd);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--live-chip-border);
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.source-chip {
  display: flex; align-items: center;
  font-size: 11px; color: var(--blue);
  background: var(--source-chip-bg);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--source-chip-border);
}

.health-indicator {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text3);
  cursor: pointer;
  transition: background 0.3s;
}
.health-indicator.ok  { background: var(--green); box-shadow: 0 0 6px rgba(52,211,153,0.5); }
.health-indicator.err { background: var(--red); box-shadow: 0 0 6px rgba(248,113,113,0.5); }

/* ── LAYOUT ── */
.layout {
  --left-panel-width: 248px;
  --right-panel-width: 470px;
  --resizer-size: 8px;
  display: grid;
  grid-template-columns:
    var(--left-panel-width)
    var(--resizer-size)
    minmax(320px, 1fr)
    var(--resizer-size)
    var(--right-panel-width);
  height: calc(100vh - 56px);
  margin-top: 56px;
  overflow: hidden;
}

.panel-resizer {
  position: relative;
  background: var(--resizer-bg);
  cursor: col-resize;
  user-select: none;
  touch-action: none;
}
.panel-resizer::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--border2);
  transition: background 0.15s, box-shadow 0.15s;
}
.panel-resizer:hover::before,
.panel-resizer.dragging::before,
.layout.resizing .panel-resizer::before {
  background: var(--primary);
  box-shadow: 0 0 12px rgba(13,148,136,0.5);
}
.layout.resizing,
.layout.resizing * {
  cursor: col-resize !important;
}

/* ── SIDEBAR ── */
.sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.sidebar-section { display: flex; flex-direction: column; gap: 6px; }
.s-label {
  font-size: 11px; font-weight: 600;
  color: var(--text2);
  letter-spacing: 0.01em;
  display: flex; align-items: center; justify-content: space-between;
}
.s-hint { font-size: 11px; color: var(--text3); line-height: 1.5; margin-top: 2px; }

.ctrl-input {
  width: 100%; padding: 9px 12px;
  font-size: 13px; font-family: 'Inter', sans-serif;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ctrl-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
  background: var(--bg2);
}
.ctrl-input::placeholder { color: var(--text3); }

.ctrl-select {
  width: 100%; padding: 9px 12px;
  font-size: 13px; font-family: 'Inter', sans-serif;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  color: var(--text);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ctrl-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.ctrl-select option { background: var(--bg2); color: var(--text); }

/* ── AUTOCOMPLETE ── */
.ac-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 3px);
  left: 0; right: 0;
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  z-index: 200;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.ac-item {
  padding: 8px 11px;
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.ac-active {
  background: var(--bg3);
  color: var(--text);
}
.ac-item b { color: var(--primary); font-weight: 600; }

/* API status in sidebar */
.api-status-section { gap: 8px; }
.api-status-list { display: flex; flex-direction: column; gap: 5px; }
.api-source-row {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px;
}
.api-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.api-dot.on  { background: var(--green); }
.api-dot.off { background: var(--text3); }
.api-label { color: var(--text2); flex: 1; }
.api-action {
  font-size: 9px; color: var(--amber);
  cursor: pointer; padding: 1px 5px;
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 10px;
}

.search-btn {
  width: 100%; padding: 12px;
  font-size: 13px; font-weight: 600; font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--btn-primary-grad1), var(--btn-primary-grad2));
  color: #fff;
  border: none; border-radius: var(--radius);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: var(--btn-primary-shadow);
  margin-top: 6px;
  letter-spacing: -0.01em;
}
.search-btn:hover { opacity: 0.9; box-shadow: var(--btn-primary-hover-shadow); transform: translateY(-1px); }
.search-btn:active { transform: translateY(0); }
.search-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }
.search-btn.stop-mode { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 2px 16px rgba(239,68,68,0.3); }
.search-btn.stop-mode:hover { box-shadow: 0 4px 24px rgba(239,68,68,0.45); }

.sidebar-footer { margin-top: auto; }
.footer-note {
  font-size: 11px; color: var(--text3);
  line-height: 1.65;
  padding: 12px;
  background: var(--bg3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ── MID PANEL ── */
.mid {
  background: var(--bg);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mid-top {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  background: var(--bg2);
}
.mid-count { font-size: 12px; color: var(--text3); }
.mid-count b { color: var(--text); font-weight: 600; }
.sort-tabs { display: flex; gap: 3px; }
.sort-tab {
  font-size: 11.5px; padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  background: transparent; color: var(--text3);
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: all 0.14s;
  font-weight: 500;
}
.sort-tab:hover { color: var(--text2); background: var(--bg3); }
.sort-tab.active { background: var(--pgd); color: var(--primary); border-color: rgba(13,148,136,0.25); }

.job-scroll {
  overflow-y: auto;
  padding: 12px;
  flex: 1;
  display: flex; flex-direction: column; gap: 7px;
}

/* Empty state */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 56px 28px; text-align: center; flex: 1;
}
.empty-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.empty-title { font-size: 15px; font-weight: 600; color: var(--text2); }
.empty-sub   { font-size: 12.5px; color: var(--text3); line-height: 1.65; max-width: 270px; }

/* Searching animation */
.searching-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 48px 24px; flex: 1;
}
.search-spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--border2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.search-progress {
  font-size: 12px; color: var(--text3);
  text-align: center; line-height: 1.8;
}
.search-progress b { color: var(--primary); font-weight: 500; display: block; margin-bottom: 4px; font-size: 13px; }

/* Job card */
.job-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 14px 13px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  gap: 11px; align-items: flex-start;
}
.job-card:hover {
  border-color: var(--primary);
  background: var(--card);
  box-shadow: 0 2px 14px rgba(13,148,136,0.10), 0 0 0 0 transparent;
  transform: translateY(-1px);
}
.job-card.selected {
  border-color: var(--primary);
  background: var(--pgd);
  box-shadow: 0 0 0 2px rgba(13,148,136,0.18), 0 4px 18px rgba(13,148,136,0.1);
}
.jc-left { flex: 1; min-width: 0; }
.jc-title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 3px; line-height: 1.35; }
.jc-co    { font-size: 12px; color: var(--text2); margin-bottom: 8px; font-weight: 500; }
.jc-tags  { display: flex; flex-wrap: wrap; gap: 4px; }

.tag { font-size: 10.5px; padding: 2px 8px; border-radius: 20px; font-weight: 500; }
.t-loc  { background: var(--bg3); color: var(--text3); border: 1px solid var(--border); }
.t-src  { background: rgba(2,132,199,0.08);  color: var(--blue); border: 1px solid rgba(2,132,199,0.18); }
.t-sal  { background: rgba(5,150,105,0.08);  color: var(--green); border: 1px solid rgba(5,150,105,0.2); }
.t-time { background: rgba(217,119,6,0.08);  color: var(--amber); border: 1px solid rgba(217,119,6,0.18); }
.t-type { background: rgba(124,58,237,0.08); color: var(--purple); border: 1px solid rgba(124,58,237,0.18); }

.score-pill { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 46px; flex-shrink: 0; }
.score-num  { font-size: 19px; font-weight: 700; color: var(--text3); line-height: 1; font-family: 'DM Sans', sans-serif; }
.score-lbl  { font-size: 9.5px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.score-pill.hi .score-num { color: var(--green); }
.score-pill.hi .score-lbl { color: var(--green2); }
.score-pill.md .score-num { color: var(--amber); }
.score-pill.md .score-lbl { color: var(--amber); }
.score-pill.lo .score-num { color: var(--red); }
.score-pill.lo .score-lbl { color: var(--red); }

/* Stat bar */
.stat-bar {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 6px; padding: 10px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg2);
}
.stat { background: var(--bg3); border-radius: 10px; padding: 8px 10px; border: 1px solid var(--border); }
.stat-v { font-size: 18px; font-weight: 700; color: var(--primary); font-family: 'DM Sans', sans-serif; }
.stat-l { font-size: 10.5px; color: var(--text3); margin-top: 1px; font-weight: 500; }

/* ── RIGHT PANEL ── */
.right-panel {
  border-left: 1px solid var(--border);
  background: var(--bg2);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.rp-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 14px; padding: 40px; text-align: center;
}

/* ── TABS ── */
.rp-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg2);
  padding: 0 4px;
}
.rp-tab {
  flex: 1; padding: 12px 6px;
  font-size: 11.5px; font-weight: 500;
  color: var(--text3); cursor: pointer;
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.rp-tab:hover { color: var(--text2); }
.rp-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.rp-tab.locked { opacity: 0.35; cursor: not-allowed; }

.rp-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }

/* ── EDITOR SPLIT LAYOUT ── */
.rp-body:has(.editor-layout) {
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.editor-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.editor-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: rgba(13,148,136,0.08);
  border-bottom: 1px solid rgba(13,148,136,0.18);
  flex-shrink: 0;
  gap: 8px;
}
.editor-status-left {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--text2);
  overflow: hidden; flex: 1;
}
.editor-status-left b { color: var(--primary); }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
  box-shadow: 0 0 5px rgba(13,148,136,0.6);
}
.status-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-reset-btn {
  font-size: 10px; color: var(--text3);
  background: transparent; border: 1px solid var(--border);
  border-radius: 5px; padding: 2px 8px;
  cursor: pointer; flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  transition: all 0.12s;
}
.status-reset-btn:hover { color: var(--text2); border-color: var(--border2); }
.status-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.status-fs-btn {
  font-size: 10px;
  color: var(--blue);
  background: rgba(96,165,250,0.10);
  border: 1px solid rgba(96,165,250,0.25);
  border-radius: 5px;
  padding: 2px 8px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  transition: all 0.12s;
}
.status-fs-btn:hover { background: rgba(96,165,250,0.16); color: #9CC6FF; }

/* Page-fit badge */
.page-fit-badge {
  font-size: 10px; font-weight: 500;
  padding: 2px 8px; border-radius: 10px;
  white-space: nowrap;
}
.page-fit-badge.fit-good { background: rgba(52,211,153,0.12); color: var(--green); border: 1px solid rgba(52,211,153,0.2); }
.page-fit-badge.fit-warn { background: rgba(251,191,36,0.12); color: var(--amber); border: 1px solid rgba(251,191,36,0.2); }
.page-fit-badge.fit-bad  { background: rgba(248,113,113,0.12); color: var(--red); border: 1px solid rgba(248,113,113,0.2); }
.page-fit-badge.fit-none { background: var(--bg4); color: var(--text3); border: 1px solid var(--border); }

.ats-live-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.ats-live-badge.ats-live-good { background: rgba(52,211,153,0.12); color: var(--green); border: 1px solid rgba(52,211,153,0.2); }
.ats-live-badge.ats-live-mid { background: rgba(251,191,36,0.12); color: var(--amber); border: 1px solid rgba(251,191,36,0.2); }
.ats-live-badge.ats-live-low { background: rgba(248,113,113,0.12); color: var(--red); border: 1px solid rgba(248,113,113,0.2); }
.ats-live-badge.ats-live-pending { background: rgba(96,165,250,0.10); color: var(--blue); border: 1px solid rgba(96,165,250,0.2); }
.ats-live-badge.ats-live-none { background: var(--bg4); color: var(--text3); border: 1px solid var(--border); }

/* Mode toggle */
.mode-toggle {
  display: flex;
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: 6px;
  overflow: hidden;
}
.mode-toggle-btn {
  padding: 3px 10px;
  font-size: 10px; font-weight: 500;
  font-family: 'Inter', sans-serif;
  background: transparent;
  color: var(--text3);
  border: none;
  cursor: pointer;
  transition: all 0.12s;
}
.mode-toggle-btn.mtb-active {
  background: var(--primary);
  color: #fff;
}

.editor-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.editor-fill {
  flex: 1 !important;
  min-height: 0 !important;
  max-height: none !important;
  resize: none !important;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
}
.editor-toolbar {
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}

.editor-bottom {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Chat in editor-bottom */
.editor-bottom .chat-panel {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid var(--border);
}
.editor-bottom .chat-panel-header { padding: 7px 12px; font-size: 10px; }
.editor-bottom .chat-history { max-height: 100px; }
.editor-bottom .chat-input-area { padding: 7px 10px; gap: 4px; }

.chat-input-row { display: flex; gap: 6px; align-items: flex-end; }
.chat-inline-input {
  flex: 1; padding: 6px 10px;
  font-size: 11px; font-family: 'Inter', sans-serif;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  background: var(--bg); color: var(--text);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 34px;
  max-height: 140px;
  line-height: 1.45;
  resize: vertical;
}
.chat-inline-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }
.chat-inline-input::placeholder { color: var(--text3); }

.action-bar { padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.action-ats { padding: 8px !important; font-size: 12px !important; }
.action-dl  { padding: 7px !important; font-size: 11px !important; }

/* ── RESUME LIVE PREVIEW ── */
.resume-preview-wrap {
  flex: 1;
  overflow-y: auto;
  background: var(--preview-wrap-bg);
  padding: 24px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}
.preview-fs-fab {
  position: sticky;
  top: 10px;
  margin-left: auto;
  margin-right: 0;
  z-index: 5;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  color: var(--blue);
  background: rgba(9,9,15,0.78);
  border: 1px solid rgba(96,165,250,0.35);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.preview-fs-fab:hover { background: rgba(9,9,15,0.9); color: #9CC6FF; }

.resume-preview-wrap:fullscreen,
.resume-preview-wrap.is-fullscreen {
  background: #0B0C1A;
  padding: 30px 20px;
}

.resume-preview-wrap:fullscreen .resume-page,
.resume-preview-wrap.is-fullscreen .resume-page {
  max-width: 920px;
  width: min(920px, 100%);
  min-height: calc(100vh - 64px);
}

.resume-preview-wrap:fullscreen .preview-fs-fab,
.resume-preview-wrap.is-fullscreen .preview-fs-fab {
  position: fixed;
  top: 14px;
  right: 14px;
}
.resume-page {
  width: 100%;
  max-width: 680px;
  background: var(--preview-page-bg);
  border-radius: 3px;
  padding: 44px 52px;
  box-shadow: var(--preview-page-shadow);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--preview-page-text);
  word-wrap: break-word;
  box-sizing: border-box;
}
.rv-name {
  font-size: 21px;
  font-weight: 700;
  color: var(--preview-name);
  margin-bottom: 2px;
  font-family: 'DM Sans', Georgia, serif;
  letter-spacing: -0.01em;
}
.rv-contact {
  font-size: 9.5px;
  color: var(--preview-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--preview-accent);
  font-family: 'Inter', sans-serif;
}
.rv-section-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--preview-accent);
  border-bottom: 1px solid var(--preview-section-border);
  padding-bottom: 3px;
  margin-top: 14px;
  margin-bottom: 7px;
  font-family: 'Inter', sans-serif;
}
.rv-role-date {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--preview-name);
  margin-bottom: 1px;
}
.rv-company {
  font-size: 10px;
  color: var(--preview-company);
  margin-bottom: 3px;
  font-style: italic;
}
.rv-bullet {
  font-size: 10.5px;
  color: var(--preview-page-text);
  margin-bottom: 2px;
  padding-left: 14px;
  position: relative;
  line-height: 1.55;
}
.rv-bullet::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--preview-bullet);
  font-size: 9px;
  top: 1px;
}
.rv-plain {
  font-size: 10.5px;
  color: var(--preview-page-text);
  margin-bottom: 2px;
  line-height: 1.55;
}
.rv-spacer { height: 5px; }

/* ── JOB DETAIL ── */
.job-detail-header { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.jd-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; line-height: 1.4; }
.jd-co    { font-size: 12px; color: var(--text2); margin-bottom: 8px; }
.jd-tags  { display: flex; flex-wrap: wrap; gap: 4px; }

.jd-content {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px;
  font-size: 11px; color: var(--text2); line-height: 1.8;
  max-height: 280px; overflow-y: auto;
  white-space: pre-wrap;
}
.jd-content h4 { font-size: 11px; font-weight: 600; color: var(--text); margin: 10px 0 5px; text-transform: uppercase; letter-spacing: 0.05em; }
.jd-content h4:first-child { margin-top: 0; }
.jd-content ul  { padding-left: 16px; }
.jd-content li  { margin-bottom: 3px; }
.jd-loading { text-align: center; padding: 20px; color: var(--text3); font-size: 12px; }

/* ── BUTTONS ── */
.btn-primary {
  width: 100%; padding: 11px;
  font-size: 12.5px; font-weight: 600; font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--btn-primary-grad1), var(--btn-primary-grad2));
  color: #fff;
  border: none; border-radius: var(--radius);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: opacity 0.15s, box-shadow 0.15s, transform 0.15s;
  box-shadow: var(--btn-primary-shadow);
  letter-spacing: -0.01em;
}
.btn-primary:hover { opacity: 0.9; box-shadow: var(--btn-primary-hover-shadow); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }

.btn-secondary {
  width: 100%; padding: 10px;
  font-size: 12.5px; font-family: 'Inter', sans-serif; font-weight: 500;
  background: transparent; color: var(--primary);
  border: 1.5px solid rgba(13,148,136,0.35); border-radius: var(--radius);
  cursor: pointer; transition: all 0.14s;
}
.btn-secondary:hover { background: var(--pgd); border-color: var(--primary); }

.btn-ghost {
  width: 100%; padding: 9px;
  font-size: 12px; font-family: 'Inter', sans-serif;
  background: transparent; color: var(--text3);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all 0.12s;
}
.btn-ghost:hover { color: var(--text2); border-color: var(--border2); }

.download-row { display: flex; gap: 4px; }
.download-row .btn-ghost { padding: 7px 4px; font-size: 10px; }

.divider-text {
  text-align: center; font-size: 11px; color: var(--text3);
  display: flex; align-items: center; gap: 10px;
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── RESUME PICK (idle state) ── */
.resume-pick-header { padding-bottom: 4px; }
.rph-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 5px; line-height: 1.4; }
.rph-sub { font-size: 11px; color: var(--text3); line-height: 1.6; }

.resume-action-btn {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  cursor: pointer; text-align: left;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.resume-action-btn:hover { border-color: var(--primary); background: rgba(13,148,136,0.05); }
.resume-action-btn:hover .rab-title { color: var(--primary); }

.upload-btn .rab-icon { color: var(--blue); }
.generate-btn .rab-icon { color: var(--purple); }
.generate-btn:hover { border-color: var(--purple); background: rgba(192,132,252,0.05); }
.generate-btn:hover .rab-title { color: var(--purple); }

.rab-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rab-text { display: flex; flex-direction: column; gap: 3px; }
.rab-title { font-size: 13px; font-weight: 500; color: var(--text); transition: color 0.15s; }
.rab-desc  { font-size: 11px; color: var(--text3); line-height: 1.4; }

/* Generate form */
.gen-textarea {
  width: 100%; padding: 11px;
  font-size: 11px; line-height: 1.7; font-family: 'Inter', sans-serif;
  background: var(--bg3); color: var(--text);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  outline: none; resize: vertical;
  min-height: 180px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gen-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }
.gen-textarea::placeholder { color: var(--text3); }

/* Processing state */
.proc-box {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.proc-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.proc-sub   { font-size: 11px; color: var(--text3); margin-bottom: 16px; line-height: 1.6; }
.dots { display: flex; gap: 5px; justify-content: center; }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  animation: bop 1.2s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: .18s; }
.dot:nth-child(3) { animation-delay: .36s; }
@keyframes bop { 0%,80%,100%{transform:scale(0.6);opacity:0.4} 40%{transform:scale(1);opacity:1} }

/* Success box */
.ok-box {
  background: rgba(13,148,136,0.06);
  border: 1px solid rgba(13,148,136,0.22);
  border-radius: var(--radius); padding: 11px;
  flex-shrink: 0;
}
.ok-title { font-size: 12px; font-weight: 500; color: var(--primary); margin-bottom: 3px; }
.ok-desc  { font-size: 11px; color: var(--text3); line-height: 1.5; }

/* ── EDITOR (raw edit mode) ── */
.editor-toolbar {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 9px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  flex-wrap: wrap;
}
.tb-btn {
  padding: 3px 8px; font-size: 11px; font-family: 'Inter', sans-serif;
  background: transparent; color: var(--text2);
  border: 1px solid var(--border2); border-radius: 5px;
  cursor: pointer; transition: all 0.12s;
}
.tb-btn:hover { background: var(--bg4); color: var(--text); }
.tb-ai { background: var(--pgd); color: var(--primary); border-color: rgba(13,148,136,0.3); }
.tb-ai:hover { background: rgba(13,148,136,0.18); }
.tb-sep { width: 1px; height: 14px; background: var(--border2); flex-shrink: 0; }

.editor-area {
  width: 100%;
  min-height: 240px; max-height: 380px;
  padding: 11px; font-size: 11px; line-height: 1.75;
  font-family: 'Inter', sans-serif;
  background: var(--bg3); color: var(--text);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  outline: none; resize: vertical;
  transition: border-color 0.15s;
}
.editor-area:focus { border-color: var(--primary); }

/* ── OPEN-ENDED CHAT PANEL ── */
.chat-panel {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  gap: 0; overflow: hidden;
}
.chat-panel-header {
  padding: 9px 12px;
  font-size: 11px; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border);
  background: var(--bg4);
}
.chat-history {
  max-height: 180px;
  overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 0;
}
.chat-msg {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.chat-msg.user { background: var(--bg); }
.chat-msg.ai   { background: var(--bg3); }
.chat-msg-label {
  font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.chat-msg.user .chat-msg-label { color: var(--blue); }
.chat-msg.ai   .chat-msg-label { color: var(--primary); }
.chat-msg-text { color: var(--text2); line-height: 1.5; }

.chat-input-area {
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--border);
}
.chat-status { font-size: 10px; min-height: 14px; padding: 0 12px 8px; }
.chat-status.working { color: var(--amber); }
.chat-status.success { color: var(--green); }
.chat-status.error   { color: var(--red); }

.chat-send-btn {
  padding: 5px 14px;
  font-size: 11px; font-weight: 600; font-family: 'Inter', sans-serif;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius);
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: opacity 0.15s;
}
.chat-send-btn:hover { opacity: 0.85; }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── ATS SCORE TAB ── */
.ats-box {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px;
}
.ats-header { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 14px; }
.ats-big { font-size: 44px; font-weight: 600; color: var(--green); line-height: 1; font-family: 'DM Sans', sans-serif; }
.ats-denom { font-size: 16px; color: var(--text3); margin-bottom: 5px; }
.ats-right { flex: 1; }
.ats-verdict {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  background: var(--gd); color: var(--green);
  margin-bottom: 5px;
}
.ats-verdict.strong { background: rgba(96,165,250,0.12); color: var(--blue); }
.ats-verdict.good   { background: rgba(251,191,36,0.12);  color: var(--amber); }
.ats-verdict.weak   { background: rgba(248,113,113,0.10); color: var(--red); }
.ats-tip { font-size: 11px; color: var(--text3); line-height: 1.5; }
.ats-bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ab-label { display: flex; justify-content: space-between; font-size: 10px; color: var(--text3); margin-bottom: 3px; }
.ab-label span:last-child { color: var(--text2); font-weight: 500; }
.ab-track { height: 4px; background: var(--bg4); border-radius: 2px; overflow: hidden; }
.ab-fill  { height: 100%; border-radius: 2px; background: var(--green); transition: width 0.8s ease; }
.ab-fill.mid { background: var(--amber); }
.ab-fill.low { background: var(--red); }
.kw-section { border-top: 1px solid var(--border); padding-top: 12px; }
.kw-label   { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.kw-chips   { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.kw-chip    { font-size: 10px; padding: 2px 7px; border-radius: 10px; font-weight: 500; }
.kw-match   { background: rgba(52,211,153,0.10);  color: var(--green); }
.kw-miss    { background: rgba(248,113,113,0.10); color: var(--red); }

.ats-assist-box {
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.28);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 10px;
}
.ats-assist-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
}
.ats-assist-sub {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.55;
}
.ats-assist-actions {
  display: flex;
  gap: 6px;
}
.ats-assist-actions button {
  flex: 1;
}
.ats-extra-input {
  width: 100%;
  min-height: 82px;
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.55;
  font-family: 'Inter', sans-serif;
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  outline: none;
  resize: vertical;
}
.ats-extra-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.ats-missing-wrap {
  border-top: 1px solid rgba(251,191,36,0.22);
  padding-top: 8px;
}

/* ── PASTE JD BOX ── */
.paste-jd-box {
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(251,191,36,0.05);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.paste-jd-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(251,191,36,0.10);
  display: flex; align-items: center; justify-content: center;
}
.paste-jd-title { font-size: 13px; font-weight: 500; color: var(--amber); }
.paste-jd-sub   { font-size: 11px; color: var(--text3); line-height: 1.7; }
.paste-jd-sub b { color: var(--text2); }
.paste-jd-open { border-color: rgba(251,191,36,0.3) !important; color: var(--amber) !important; }
.paste-jd-open:hover { border-color: var(--amber) !important; }
.paste-jd-textarea {
  width: 100%; min-height: 140px;
  padding: 10px 11px;
  font-size: 11px; line-height: 1.7; font-family: 'Inter', sans-serif;
  background: var(--bg3); color: var(--text);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  outline: none; resize: vertical;
  transition: border-color 0.15s;
}
.paste-jd-textarea:focus { border-color: var(--primary); }
.paste-jd-textarea::placeholder { color: var(--text3); }
.paste-jd-optional { margin-top: 8px; }
.paste-jd-toggle {
  font-size: 11px; padding: 5px 10px;
  color: var(--text3); border-color: var(--border);
}
.paste-jd-toggle:hover { color: var(--text2); border-color: var(--border2); }
#optional-paste-box { margin-top: 8px; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 10px 16px;
  font-size: 12px; color: var(--text);
  transform: translateY(60px); opacity: 0;
  transition: all 0.25s; z-index: 999;
  max-width: 300px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(52,211,153,0.4); color: var(--green); }
.toast.error   { border-color: rgba(248,113,113,0.4); color: var(--red); }

/* ── USAGE PANEL ── */
.usage-panel {
  position: fixed; top: 58px; right: 16px;
  width: 340px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 14px;
  z-index: 300;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(13,148,136,0.1);
  display: flex; flex-direction: column; gap: 12px;
}
.usage-title {
  font-size: 12px; font-weight: 600; color: var(--text);
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.usage-note { font-size: 10px; color: var(--text3); }
.usage-section { display: flex; flex-direction: column; gap: 6px; }
.usage-section-title {
  font-size: 10px; font-weight: 600; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.07em;
}
.usage-row { display: flex; align-items: center; gap: 8px; }
.usage-label { font-size: 11px; color: var(--text2); width: 110px; flex-shrink: 0; }
.usage-bar-wrap { flex: 1; height: 5px; background: var(--bg4); border-radius: 3px; overflow: hidden; }
.usage-bar { height: 100%; border-radius: 3px; transition: width 0.4s ease; min-width: 2px; }
.usage-nums { font-size: 11px; color: var(--text2); white-space: nowrap; }
.usage-period { color: var(--text3); }
.usage-sub { font-size: 10px; color: var(--text3); padding-left: 118px; margin-top: -3px; }
.usage-stat-row { display: flex; gap: 8px; }
.usage-stat {
  flex: 1; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 6px; text-align: center;
}
.usage-stat-num { font-size: 18px; font-weight: 600; color: var(--text); font-family: 'DM Sans', sans-serif; }
.usage-stat-label { font-size: 9px; color: var(--text3); margin-top: 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 1300px) {
  .layout {
    --left-panel-width: 224px;
    --right-panel-width: 428px;
  }
}
@media (max-width: 1100px) {
  .layout {
    --left-panel-width: 200px;
    --right-panel-width: 380px;
  }
  .brand-sub { display: none; }
}
@media (max-width: 900px) {
  .layout {
    --left-panel-width: 180px;
    --right-panel-width: 320px;
    --resizer-size: 6px;
    grid-template-columns:
      var(--left-panel-width)
      var(--resizer-size)
      minmax(240px, 1fr)
      var(--resizer-size)
      var(--right-panel-width);
  }
}

/* ── AUTH OVERLAY ── */
#auth-overlay {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: stretch;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

/* Auth error (keep for js compatibility) */
.auth-error {
  background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3);
  color: #e05252; border-radius: 8px; padding: 8px 12px;
  font-size: 12.5px; margin-bottom: 14px; display: none;
}

/* ── JP LOGIN FULL SCREEN ── */
.jp-outer {
  display: flex; flex: 1; overflow: hidden;
}
.jp-wrap {
  display: flex; flex: 1;
}

/* Left teal panel */
.jp-left {
  flex: 1;
  background: linear-gradient(160deg, #134e4a 0%, #0d9488 55%, #14b8a6 100%);
  padding: 56px 52px 44px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; position: relative; overflow: hidden;
}
.jp-left-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 80% 20%, rgba(94,234,212,0.18) 0%, transparent 60%);
}
.jp-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.jp-logo-icon {
  width: 36px; height: 36px; background: rgba(255,255,255,0.18);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.jp-logo-icon svg { width: 20px; height: 20px; }
.jp-logo-text { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.jp-headline {
  font-size: 26px; font-weight: 700; line-height: 1.22;
  letter-spacing: -0.5px; margin-bottom: 14px;
}
.jp-headline span { color: #ccfbf1; }
.jp-sub { font-size: 13.5px; color: rgba(255,255,255,0.72); line-height: 1.55; margin-bottom: 28px; }
.jp-features { display: flex; flex-direction: column; gap: 16px; }
.jp-feat { display: flex; align-items: flex-start; gap: 13px; }
.jp-feat-icon {
  width: 34px; height: 34px; min-width: 34px;
  background: rgba(255,255,255,0.12); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.jp-feat-icon svg { width: 17px; height: 17px; }
.jp-feat-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.jp-feat-desc  { font-size: 12px; color: rgba(255,255,255,0.62); }
.jp-illus { margin-top: 24px; }
.jp-road { width: 100%; border-radius: 8px; display: block; }

/* Right white form panel */
.jp-right {
  flex: 1;
  background: #fff;
  padding: 56px 72px 44px;
  display: flex; flex-direction: column; justify-content: center;
  overflow-y: auto;
}
.jp-topnav {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 7px; font-size: 13px; color: #6b7280; margin-bottom: 32px;
}
.jp-topnav a { color: #0d9488; font-weight: 500; text-decoration: none; }
.jp-topnav a:hover { text-decoration: underline; }
.jp-welcome-icon {
  width: 44px; height: 44px; background: linear-gradient(135deg, #0d9488, #14b8a6);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.jp-welcome-icon svg { width: 22px; height: 22px; }
.jp-welcome-title { font-size: 22px; font-weight: 700; color: #111827; margin-bottom: 5px; letter-spacing: -0.3px; }
.jp-welcome-sub   { font-size: 13.5px; color: #6b7280; margin-bottom: 24px; }
.jp-label { font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 6px; }
.jp-input-wrap {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  padding: 0 14px; background: #f9fafb;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 16px;
}
.jp-input-wrap:focus-within {
  border-color: #0d9488; box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
  background: #fff;
}
.jp-input-wrap svg { width: 16px; height: 16px; flex-shrink: 0; }
.jp-input-wrap input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: #111827; padding: 13px 0;
  font-family: 'Inter', sans-serif;
}
.jp-input-wrap input::placeholder { color: #9ca3af; }
.jp-btn-primary {
  width: 100%; padding: 13px; font-size: 14px; font-weight: 600;
  border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.15s, box-shadow 0.15s, transform 0.15s; margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(13,148,136,0.22);
}
.jp-btn-primary:hover { opacity: 0.92; box-shadow: 0 4px 20px rgba(13,148,136,0.36); transform: translateY(-1px); }
.jp-btn-primary:active { transform: translateY(0); }
.jp-btn-primary svg  { width: 16px; height: 16px; }
.jp-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 0 12px; color: #9ca3af; font-size: 12px;
}
.jp-divider::before, .jp-divider::after {
  content: ""; flex: 1; height: 1px; background: #e5e7eb;
}
.jp-btn-google {
  width: 100%; padding: 12px; font-size: 14px; font-weight: 500;
  border: 1.5px solid #e5e7eb; border-radius: 10px; cursor: pointer;
  background: #fff; color: #374151;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 16px; font-family: 'Inter', sans-serif;
}
.jp-btn-google:hover {
  background: #f9fafb; border-color: #d1d5db;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.jp-terms {
  font-size: 11.5px; color: #9ca3af; text-align: center; line-height: 1.6;
}
.jp-terms a { color: #6b7280; text-decoration: underline; }

/* Footer — sits inside right panel at bottom */
.jp-footer {
  position: fixed; bottom: 16px; left: 0; right: 0;
  font-size: 12px; color: #9ca3af; text-align: center;
  pointer-events: none;
}
.jp-footer span { color: #6b7280; font-weight: 500; }

/* Responsive: stack on small screens */
@media (max-width: 680px) {
  .jp-left { display: none; }
  .jp-right { padding: 36px 28px; }
}

/* ── TAILORING REPORT PANEL ── */
.tailor-report {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  flex-shrink: 0;
}
.tailor-report-tabs {
  display: flex; gap: 2px; padding: 8px 12px 0;
  border-bottom: 1px solid var(--border);
}
.tr-tab {
  font-size: 11px; font-weight: 500; padding: 5px 12px;
  border: none; border-radius: 6px 6px 0 0; cursor: pointer;
  background: transparent; color: var(--text3);
  transition: all 0.15s;
}
.tr-tab:hover { color: var(--text); background: var(--bg3); }
.tr-tab-active { background: var(--bg3); color: var(--primary); }
.tr-panel {
  font-size: 11.5px; color: var(--text2); line-height: 1.6;
  padding: 12px 14px; max-height: 200px; overflow-y: auto;
  white-space: pre-wrap; font-family: 'Inter', sans-serif;
}

/* topbar user + logout */
.topbar-user { font-size: 11px; color: var(--text3); }
.logout-btn {
  font-size: 11px; padding: 4px 10px;
  border: 1px solid var(--border2); border-radius: 20px;
  background: transparent; color: var(--text3); cursor: pointer;
  transition: all 0.15s;
}
.logout-btn:hover { border-color: var(--red); color: var(--red); }

/* Editor status bar — History control (Sign-out is the topbar button) */
.status-history-btn {
  font-size: 11px; font-weight: 500;
  padding: 4px 10px;
  border: 1px solid var(--border2); border-radius: 6px;
  background: transparent; color: var(--text2); cursor: pointer;
  transition: all 0.15s;
  margin-left: 6px;
}
.status-history-btn:hover { border-color: var(--primary); color: var(--primary); }

/* In-app confirm modal (replaces native confirm()) */
.app-confirm-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.45);
  display: none; align-items: center; justify-content: center;
  z-index: 9999;
}
.app-confirm-card {
  background: var(--bg2, #fff); color: var(--text, #111);
  border: 1px solid var(--border, #e5e7eb); border-radius: 12px;
  padding: 22px 22px 16px;
  max-width: 380px; width: calc(100% - 32px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  font-family: inherit;
}
.app-confirm-msg { font-size: 14px; line-height: 1.45; margin-bottom: 18px; }
.app-confirm-actions { display: flex; gap: 8px; justify-content: flex-end; }
.app-confirm-actions button {
  font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: 6px; cursor: pointer;
  transition: all 0.15s;
}
.app-confirm-cancel {
  background: transparent; border: 1px solid var(--border2, #e5e7eb);
  color: var(--text2, #475569);
}
.app-confirm-cancel:hover { border-color: var(--text2, #475569); }
.app-confirm-ok {
  background: var(--primary, #0f766e); border: 1px solid var(--primary, #0f766e);
  color: #fff;
}
.app-confirm-ok:hover { filter: brightness(1.08); }

/* Session history dropdown panel inside resume editor */
.session-history-panel {
  margin: 8px 14px 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg2);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  max-height: 260px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.session-history-panel .sh-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.session-history-panel .sh-title {
  font-size: 12px; font-weight: 600; color: var(--text);
  letter-spacing: 0.2px;
}
.session-history-panel .sh-actions { display: flex; gap: 6px; }
.session-history-panel .sh-clear-btn,
.session-history-panel .sh-close-btn {
  font-size: 11px; padding: 3px 9px;
  border: 1px solid var(--border2); border-radius: 5px;
  background: transparent; color: var(--text3); cursor: pointer;
}
.session-history-panel .sh-clear-btn:hover { color: var(--red);     border-color: var(--red); }
.session-history-panel .sh-close-btn:hover { color: var(--primary); border-color: var(--primary); }

.session-history-panel .sh-body {
  overflow-y: auto;
  padding: 6px 4px;
  font-family: 'Inter', sans-serif;
}
.session-history-panel .sh-empty {
  padding: 16px; text-align: center;
  font-size: 12px; color: var(--text3);
}
.session-history-panel .sh-item {
  display: grid;
  grid-template-columns: 70px 80px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 5px 12px;
  font-size: 11.5px; line-height: 1.5;
  border-bottom: 1px dashed var(--border);
}
.session-history-panel .sh-item:last-child { border-bottom: none; }
.session-history-panel .sh-time { color: var(--text3); font-variant-numeric: tabular-nums; }
.session-history-panel .sh-type {
  text-transform: uppercase; font-size: 10px; font-weight: 600;
  color: var(--primary); letter-spacing: 0.4px;
}
.session-history-panel .sh-text { color: var(--text2); word-break: break-word; }
.session-history-panel .sh-upload   .sh-type { color: #6366f1; }
.session-history-panel .sh-generate .sh-type { color: #8b5cf6; }
.session-history-panel .sh-tailor   .sh-type { color: #0d9488; }
.session-history-panel .sh-ats      .sh-type { color: #f59e0b; }
.session-history-panel .sh-chat     .sh-type { color: #0ea5e9; }
.session-history-panel .sh-download .sh-type { color: #22c55e; }

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE — Modern Redesign
   ═══════════════════════════════════════════════════════════════ */

/* Light theme token override (replaces old data-theme="light-pro") */
:root[data-theme="light"],
body[data-theme="light"],
html[data-theme="light"] {
  --bg:       #f8fafc;
  --bg2:      #ffffff;
  --bg3:      #f1f5f9;
  --bg4:      #e2e8f0;
  --border:   #e2e8f0;
  --border2:  #cbd5e1;
  --primary:  #0d9488;
  --primary2: #0f766e;
  --pgd:      rgba(13,148,136,0.10);
  --green:    #059669;
  --green2:   #047857;
  --gd:       rgba(5,150,105,0.08);
  --blue:     #0284c7;
  --amber:    #d97706;
  --red:      #dc2626;
  --purple:   #7c3aed;
  --text:     #0f172a;
  --text2:    #334155;
  --text3:    #94a3b8;
  --card:     #ffffff;
  --card2:    #f8fafc;
  --topbar-bg: rgba(255,255,255,0.96);
  --topbar-border: rgba(13,148,136,0.15);
  --topbar-shadow: 0 1px 0 #e2e8f0, 0 2px 16px rgba(15,23,42,0.06);
  --brand-icon-grad1: #14b8a6;
  --brand-icon-grad2: #0d9488;
  --resizer-bg: linear-gradient(180deg, transparent, rgba(13,148,136,0.07), transparent);
  --focus-ring: rgba(13,148,136,0.18);
  --btn-primary-grad1: #14b8a6;
  --btn-primary-grad2: #0d9488;
  --btn-primary-shadow: 0 2px 12px rgba(13,148,136,0.22);
  --btn-primary-hover-shadow: 0 4px 20px rgba(13,148,136,0.32);
  --preview-wrap-bg: #e2e8f0;
  --preview-page-bg: #ffffff;
  --preview-page-shadow: 0 8px 28px rgba(15,23,42,0.10);
  --preview-page-text: #1e252d;
  --preview-name: #0f172a;
  --preview-muted: #5d6c7b;
  --preview-accent: #0d9488;
  --preview-section-border: #e2e8f0;
  --preview-company: #5c6f82;
  --preview-bullet: #0d9488;
  --live-chip-border: rgba(5,150,105,0.2);
  --source-chip-bg: rgba(2,132,199,0.07);
  --source-chip-border: rgba(2,132,199,0.18);
}

/* Dark theme */
:root[data-theme="dark"],
body[data-theme="dark"],
html[data-theme="dark"] {
  --bg:       #0f1117;
  --bg2:      #14181f;
  --bg3:      #1a1f28;
  --bg4:      #222934;
  --border:   #2a3340;
  --border2:  #36424f;
  --primary:  #14b8a6;
  --primary2: #0d9488;
  --pgd:      rgba(20,184,166,0.14);
  --green:    #34d399;
  --green2:   #10b981;
  --gd:       rgba(52,211,153,0.10);
  --blue:     #60a5fa;
  --amber:    #fbbf24;
  --red:      #f87171;
  --purple:   #a78bfa;
  --text:     #f1f5f9;
  --text2:    #94a3b8;
  --text3:    #64748b;
  --card:     #14181f;
  --card2:    #1a1f28;
  --topbar-bg: rgba(15,17,23,0.92);
  --topbar-border: rgba(20,184,166,0.18);
  --topbar-shadow: 0 1px 0 rgba(20,184,166,0.1), 0 2px 20px rgba(0,0,0,0.3);
  --brand-icon-grad1: #14b8a6;
  --brand-icon-grad2: #0d9488;
  --resizer-bg: linear-gradient(180deg, transparent, rgba(20,184,166,0.05), transparent);
  --focus-ring: rgba(20,184,166,0.2);
  --btn-primary-grad1: #14b8a6;
  --btn-primary-grad2: #0d9488;
  --btn-primary-shadow: 0 2px 16px rgba(20,184,166,0.28);
  --btn-primary-hover-shadow: 0 4px 22px rgba(20,184,166,0.4);
  --preview-wrap-bg: #1a1f28;
  --preview-page-bg: #fbfcfe;
  --preview-page-shadow: 0 8px 32px rgba(0,0,0,0.36);
  --preview-page-text: #1e252d;
  --preview-name: #11161b;
  --preview-muted: #576270;
  --preview-accent: #0d9488;
  --preview-section-border: #dfe5ec;
  --preview-company: #5f7286;
  --preview-bullet: #0d9488;
  --live-chip-border: rgba(52,211,153,0.22);
  --source-chip-bg: rgba(96,165,250,0.10);
  --source-chip-border: rgba(96,165,250,0.22);
}

/* ── Landing root ─────────────────────────────────────────────── */
.landing-root {
  height: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f172a 100%);
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  overflow-y: auto;
}

/* ── Demo banner ──────────────────────────────────────────────── */
.demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 20px;
  background: linear-gradient(90deg, rgba(245,158,11,0.18), rgba(239,68,68,0.14));
  border-bottom: 1px solid rgba(245,158,11,0.35);
  font-size: 12.5px;
  color: #fbbf24;
  flex-shrink: 0;
  flex-wrap: wrap;
  height: 38px;
  box-sizing: border-box;
}
.demo-banner strong { color: #fde68a; }
.demo-banner-sign-up {
  background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.4);
  color: #fbbf24;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.demo-banner-sign-up:hover { background: rgba(245,158,11,0.35); }

/* Shift topbar + layout down when demo banner is visible */
body.demo-mode .topbar { top: 38px; }
body.demo-mode .layout { margin-top: 94px; height: calc(100vh - 94px); }

/* ── Nav ──────────────────────────────────────────────────────── */
.ln-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}
.ln-brand { display: flex; align-items: center; gap: 10px; }
.ln-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(20,184,166,0.3), 0 4px 12px rgba(20,184,166,0.2);
}
.ln-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.3px;
}
.ln-nav-actions { display: flex; gap: 10px; align-items: center; }
.ln-btn-ghost {
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.ln-btn-ghost:hover { border-color: rgba(255,255,255,0.3); color: #f1f5f9; }
.ln-btn-primary {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  box-shadow: 0 2px 12px rgba(20,184,166,0.3);
}
.ln-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(20,184,166,0.4); }

/* ── Hero ─────────────────────────────────────────────────────── */
.ln-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px 60px;
}
.ln-hero-content { text-align: center; margin-bottom: 60px; }
.ln-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(20,184,166,0.12);
  border: 1px solid rgba(20,184,166,0.25);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #5eead4;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.ln-headline {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #f8fafc;
  margin-bottom: 20px;
}
.ln-headline-accent {
  background: linear-gradient(135deg, #14b8a6, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ln-subheadline {
  font-size: 17px;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.ln-hero-cta { display: flex; gap: 14px; justify-content: center; align-items: center; }
.ln-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(20,184,166,0.35);
}
.ln-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(20,184,166,0.45); }
.ln-cta-ghost {
  font-size: 15px;
  font-weight: 500;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 0;
  transition: color 0.2s;
  font-family: inherit;
}
.ln-cta-ghost:hover { color: #f1f5f9; }
.ln-cta-demo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: #fbbf24;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px 20px;
  transition: all 0.2s;
  font-family: inherit;
}
.ln-cta-demo:hover { background: rgba(245,158,11,0.22); border-color: rgba(245,158,11,0.55); }

/* Live demo link button */
.ln-cta-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #99f6e4;
  background: rgba(20,184,166,0.14);
  border: 1px solid rgba(20,184,166,0.4);
  border-radius: 8px;
  padding: 10px 20px;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}
.ln-cta-live:hover {
  background: rgba(20,184,166,0.26);
  border-color: rgba(20,184,166,0.7);
  color: #ccfbf1;
  transform: translateY(-1px);
}

/* Coming-soon pill */
.ln-cta-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(148,163,184,0.10);
  border: 1px dashed rgba(148,163,184,0.45);
  border-radius: 8px;
  padding: 9px 16px;
  text-decoration: none;
  cursor: default;
  font-family: inherit;
}
.ln-cta-soon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251,191,36,0.25);
  animation: lnSoonPulse 1.8s ease-in-out infinite;
}
@keyframes lnSoonPulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.45; }
}

/* ── Feature cards ─────────────────────────────────────────────── */
.ln-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .ln-features { grid-template-columns: 1fr; }
  .ln-headline { font-size: 36px; }
  .ln-hero { padding: 40px 24px 40px; }
  .ln-nav { padding: 16px 24px; }
}
.ln-feat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.25s;
}
.ln-feat-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-3px);
}
.ln-feat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.ln-feat-icon--blue { background: rgba(96,165,250,0.15); color: #60a5fa; }
.ln-feat-icon--teal { background: rgba(20,184,166,0.15); color: #2dd4bf; }
.ln-feat-icon--purple { background: rgba(167,139,250,0.15); color: #a78bfa; }
.ln-feat-title { font-size: 15px; font-weight: 600; color: #f1f5f9; margin-bottom: 8px; }
.ln-feat-desc  { font-size: 13px; color: #94a3b8; line-height: 1.6; }

/* ── Auth overlay ─────────────────────────────────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-modal {
  display: flex;
  width: 100%;
  max-width: 820px;
  min-height: 520px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}
.auth-left {
  flex: 0 0 320px;
  background: linear-gradient(160deg, #134e4a, #0f172a);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.auth-left-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.auth-left-headline {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: #f8fafc;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}
.auth-left-headline span {
  background: linear-gradient(135deg, #14b8a6, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-left-perks { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.auth-left-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #94a3b8;
}
.auth-left-perks li svg { flex-shrink: 0; color: #14b8a6; }
.auth-right {
  flex: 1;
  background: #0f172a;
  padding: 40px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.auth-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}
.auth-close:hover { color: #f1f5f9; }
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid #1e293b;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  margin-bottom: -1px;
}
.auth-tab.active { color: #14b8a6; border-bottom-color: #14b8a6; }
.auth-error {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #f87171;
  margin-bottom: 16px;
}
.auth-field { margin-bottom: 16px; }
.auth-label { display: block; font-size: 12px; font-weight: 500; color: #94a3b8; margin-bottom: 6px; }
.auth-input {
  width: 100%;
  padding: 10px 14px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
  outline: none;
}
.auth-input:focus { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,0.12); }
.auth-input::placeholder { color: #475569; }
.auth-submit-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
  margin-bottom: 20px;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(20,184,166,0.25);
}
.auth-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(20,184,166,0.35); }
.auth-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #475569;
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: #1e293b; }
.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  margin-bottom: 20px;
}
.auth-google-btn:hover { background: #273449; border-color: #475569; }
.auth-demo-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  font-size: 11px;
  color: #475569;
}
.auth-demo-divider::before,
.auth-demo-divider::after { content: ''; flex: 1; height: 1px; background: #1e293b; }
.auth-demo-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 8px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  margin-bottom: 16px;
}
.auth-demo-btn:hover { background: rgba(245,158,11,0.18); border-color: rgba(245,158,11,0.45); }
.auth-terms { font-size: 11px; color: #475569; margin-top: auto; text-align: center; }
.auth-terms a { color: #14b8a6; text-decoration: none; }
.auth-terms a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .auth-left { display: none; }
  .auth-modal { max-width: 420px; }
}

/* ── Sidebar inner scroll ─────────────────────────────────────── */
.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 20px 16px;
  gap: 0;
}

/* ── Backward-compat aliases for old theme names ───────────────── */
:root[data-theme="light-pro"],
body[data-theme="light-pro"],
html[data-theme="light-pro"] {
  --bg:       #f8fafc;
  --bg2:      #ffffff;
  --bg3:      #f1f5f9;
  --bg4:      #e2e8f0;
  --border:   #e2e8f0;
  --border2:  #cbd5e1;
  --primary:  #0d9488;
  --primary2: #0f766e;
  --pgd:      rgba(13,148,136,0.10);
  --green:    #059669;
  --green2:   #047857;
  --gd:       rgba(5,150,105,0.08);
  --blue:     #0284c7;
  --amber:    #d97706;
  --red:      #dc2626;
  --purple:   #7c3aed;
  --text:     #0f172a;
  --text2:    #334155;
  --text3:    #94a3b8;
  --card:     #ffffff;
  --card2:    #f8fafc;
  --topbar-bg: rgba(255,255,255,0.96);
  --topbar-border: rgba(13,148,136,0.15);
  --topbar-shadow: 0 1px 0 #e2e8f0, 0 2px 16px rgba(15,23,42,0.06);
  --brand-icon-grad1: #14b8a6;
  --brand-icon-grad2: #0d9488;
  --resizer-bg: linear-gradient(180deg, transparent, rgba(13,148,136,0.07), transparent);
  --focus-ring: rgba(13,148,136,0.18);
  --btn-primary-grad1: #14b8a6;
  --btn-primary-grad2: #0d9488;
  --btn-primary-shadow: 0 2px 12px rgba(13,148,136,0.22);
  --btn-primary-hover-shadow: 0 4px 20px rgba(13,148,136,0.32);
  --preview-wrap-bg: #e2e8f0;
  --preview-page-bg: #ffffff;
  --preview-page-shadow: 0 8px 28px rgba(15,23,42,0.10);
  --preview-page-text: #1e252d;
  --preview-name: #0f172a;
  --preview-muted: #5d6c7b;
  --preview-accent: #0d9488;
  --preview-section-border: #e2e8f0;
  --preview-company: #5c6f82;
  --preview-bullet: #0d9488;
  --live-chip-border: rgba(5,150,105,0.2);
  --source-chip-bg: rgba(2,132,199,0.07);
  --source-chip-border: rgba(2,132,199,0.18);
}

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE — ADDITIONAL SECTIONS
   ═══════════════════════════════════════════════════════════════ */

/* Hero note */
.ln-hero-note {
  margin-top: 16px;
  font-size: 12px;
  color: #64748b;
  letter-spacing: 0.2px;
}

/* ── Stats strip ─────────────────────────────────────────────── */
.ln-stats-section {
  background: rgba(20,184,166,0.05);
  border-top: 1px solid rgba(20,184,166,0.12);
  border-bottom: 1px solid rgba(20,184,166,0.12);
  padding: 32px 48px;
}
.ln-stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.ln-stat-item {
  flex: 1 1 160px;
  text-align: center;
  padding: 8px 24px;
}
.ln-stat-number {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #14b8a6, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 4px;
}
.ln-stat-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 500;
}
.ln-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .ln-stats-section { padding: 24px 20px; }
  .ln-stat-divider { display: none; }
  .ln-stat-item { flex: 1 1 120px; }
}

/* ── Section shared ──────────────────────────────────────────── */
.ln-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px;
}
.ln-section-label {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.2);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #5eead4;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.ln-section-headline {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #f8fafc;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .ln-section-inner { padding: 48px 24px; }
  .ln-section-headline { font-size: 28px; }
}

/* ── How it works ────────────────────────────────────────────── */
.ln-how-section {
  background: rgba(0,0,0,0.2);
}
.ln-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.ln-step {
  flex: 1;
  padding: 32px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
}
.ln-step-number {
  font-size: 11px;
  font-weight: 700;
  color: #14b8a6;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ln-step-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.ln-step-title {
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 10px;
}
.ln-step-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.65;
}
.ln-step-connector {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  padding-top: 56px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .ln-steps { flex-direction: column; gap: 16px; }
  .ln-step-connector { display: none; }
}

/* ── Extra features grid ─────────────────────────────────────── */
.ln-extra-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ln-extra-feat {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  transition: all 0.2s;
}
.ln-extra-feat:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(20,184,166,0.2);
  transform: translateY(-2px);
}
.ln-extra-feat-icon {
  flex-shrink: 0; width: 38px; height: 38px;
  border-radius: 10px; background: rgba(20,184,166,0.12); color: #2dd4bf;
  display: flex; align-items: center; justify-content: center;
}
.ln-extra-feat-title { font-size: 14px; font-weight: 600; color: #f1f5f9; margin-bottom: 5px; }
.ln-extra-feat-desc  { font-size: 12px; color: #94a3b8; line-height: 1.55; }
@media (max-width: 900px) { .ln-extra-features { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .ln-extra-features { grid-template-columns: 1fr; } }

/* ── Job sources strip ───────────────────────────────────────── */
.ln-sources-section {
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ln-sources-section .ln-section-inner { padding: 48px; text-align: center; }
.ln-sources-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ln-source-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px; font-size: 13px; font-weight: 500; color: #cbd5e1; transition: all 0.2s;
}
.ln-source-badge svg { color: #14b8a6; }
.ln-source-badge:hover { background: rgba(20,184,166,0.1); border-color: rgba(20,184,166,0.3); color: #f1f5f9; }

/* ── Testimonials ────────────────────────────────────────────── */
.ln-testimonials { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.ln-testimonial {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 28px 24px; transition: all 0.25s;
}
.ln-testimonial:hover { background: rgba(255,255,255,0.07); border-color: rgba(20,184,166,0.2); transform: translateY(-3px); }
.ln-testimonial-stars { color: #fbbf24; font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.ln-testimonial-text { font-size: 14px; color: #cbd5e1; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.ln-testimonial-author { display: flex; align-items: center; gap: 12px; }
.ln-testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.ln-testimonial-name { font-size: 13px; font-weight: 600; color: #f1f5f9; }
.ln-testimonial-role { font-size: 11px; color: #64748b; margin-top: 2px; }
@media (max-width: 900px) { .ln-testimonials { grid-template-columns: 1fr; } }

/* ── Final CTA ───────────────────────────────────────────────── */
.ln-final-cta-section {
  background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(56,189,248,0.08));
  border-top: 1px solid rgba(20,184,166,0.15);
  border-bottom: 1px solid rgba(20,184,166,0.15);
}
.ln-final-cta-inner { max-width: 700px; margin: 0 auto; padding: 80px 48px; text-align: center; }
.ln-final-cta-headline { font-size: 40px; font-weight: 800; letter-spacing: -1px; color: #f8fafc; margin-bottom: 16px; line-height: 1.15; }
.ln-final-cta-sub { font-size: 16px; color: #94a3b8; margin-bottom: 32px; line-height: 1.6; }
@media (max-width: 600px) { .ln-final-cta-inner { padding: 48px 24px; } .ln-final-cta-headline { font-size: 28px; } }

/* ── Footer ──────────────────────────────────────────────────── */
.ln-footer { background: rgba(0,0,0,0.3); border-top: 1px solid rgba(255,255,255,0.06); padding: 28px 48px; }
.ln-footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.ln-footer-copy { font-size: 12px; color: #475569; flex: 1; text-align: center; }
.ln-footer-links { display: flex; gap: 20px; }
.ln-footer-links a { font-size: 12px; color: #64748b; text-decoration: none; transition: color 0.2s; cursor: pointer; }
.ln-footer-links a:hover { color: #14b8a6; }
@media (max-width: 600px) { .ln-footer { padding: 24px 20px; } .ln-footer-inner { flex-direction: column; text-align: center; } }

/* ═══════════════════════════════════════════════════════════════
   AUTH MODAL — PREMIUM UPGRADES
   ═══════════════════════════════════════════════════════════════ */

.auth-overlay { animation: authFadeIn 0.2s ease; }
@keyframes authFadeIn { from { opacity: 0; } to { opacity: 1; } }

.auth-modal {
  animation: authSlideUp 0.25s ease;
  box-shadow: 0 32px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.07), 0 0 80px rgba(20,184,166,0.06) !important;
}
@keyframes authSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Premium left panel */
.auth-left {
  background: linear-gradient(160deg, #0d3330 0%, #134e4a 40%, #0c1a2e 100%) !important;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(20,184,166,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute; bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.auth-left-sub { font-size: 13px; color: #64748b; margin-bottom: 24px; line-height: 1.5; }
.auth-left-social-proof {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.auth-sp-avatars { display: flex; }
.auth-sp-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff;
  border: 2px solid #0f172a; margin-left: -6px;
}
.auth-sp-avatars .auth-sp-avatar:first-child { margin-left: 0; }
.auth-sp-text { font-size: 11px; color: #64748b; }
.auth-sp-text strong { color: #94a3b8; }

/* Right panel */
.auth-right { background: #0c1118 !important; }
.auth-right-header { margin-bottom: 22px; }
.auth-right-title { font-size: 20px; font-weight: 700; color: #f1f5f9; letter-spacing: -0.4px; margin-bottom: 4px; }
.auth-right-sub { font-size: 13px; color: #64748b; }

/* Close button */
.auth-close {
  width: 30px !important; height: 30px !important;
  display: flex !important; align-items: center; justify-content: center;
  border-radius: 8px !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  transition: all 0.15s !important; font-size: 0 !important;
}
.auth-close:hover { background: rgba(255,255,255,0.1) !important; color: #f1f5f9 !important; }

/* Input with icon */
.auth-input-wrap { position: relative; }
.auth-input-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #475569; pointer-events: none;
}
.auth-input-wrap .auth-input { padding-left: 38px !important; }

/* Submit button */
.auth-submit-btn {
  display: flex !important; align-items: center; justify-content: center; gap: 8px;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 20px rgba(20,184,166,0.3), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}
.auth-submit-btn:hover:not(:disabled) {
  box-shadow: 0 6px 28px rgba(20,184,166,0.45), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

/* Tabs */
.auth-tabs {
  padding: 4px; background: rgba(255,255,255,0.04); border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07) !important;
  gap: 4px !important; margin-bottom: 24px !important;
}
.auth-tab { border-radius: 7px !important; transition: all 0.18s !important; }
.auth-tab.active { background: rgba(20,184,166,0.15) !important; color: #2dd4bf !important; border-bottom-color: transparent !important; }
.auth-tab:hover:not(.active) { background: rgba(255,255,255,0.05); color: #94a3b8 !important; }

/* Inputs */
.auth-input { background: rgba(255,255,255,0.05) !important; border: 1px solid rgba(255,255,255,0.1) !important; transition: all 0.18s !important; }
.auth-input:focus { background: rgba(20,184,166,0.06) !important; border-color: #14b8a6 !important; box-shadow: 0 0 0 3px rgba(20,184,166,0.1) !important; outline: none !important; }

/* Google button container */
.auth-google-container {
  width: 100%; display: flex; justify-content: center;
  margin-bottom: 0; min-height: 44px;
  border-radius: 8px; overflow: hidden;
}
.auth-google-container > div, .auth-google-container iframe { width: 100% !important; }

/* Divider */
.auth-divider { color: #334155 !important; font-size: 11px !important; margin: 16px 0 !important; }
.auth-divider::before, .auth-divider::after { background: rgba(255,255,255,0.07) !important; }

/* ── Topbar resume chip ─────────────────────────────────────── */
.topbar-resume-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  background: var(--card, rgba(20,184,166,0.10));
  border: 1px solid rgba(20,184,166,0.35);
  color: var(--text, #e6f1ff);
  font-size: 12px;
  font-weight: 500;
  max-width: 280px;
  white-space: nowrap;
}
.topbar-resume-chip .trc-icon { font-size: 14px; opacity: 0.9; }
.topbar-resume-chip .trc-name {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.topbar-resume-chip .trc-replace,
.topbar-resume-chip .trc-clear {
  background: transparent;
  border: 1px solid rgba(20,184,166,0.4);
  color: inherit;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  cursor: pointer;
  line-height: 1;
  transition: background-color .15s ease;
}
.topbar-resume-chip .trc-clear { padding: 2px 7px; font-size: 13px; }
.topbar-resume-chip .trc-replace:hover,
.topbar-resume-chip .trc-clear:hover {
  background: rgba(20,184,166,0.18);
}

/* ── Welcome modal: drag-and-drop affordance ────────────────── */
.welcome-modal.drop-active {
  outline: 2px dashed #14b8a6;
  outline-offset: -8px;
  background: rgba(20,184,166,0.06);
}

/* ── Search button: pulse when ready to scrape ──────────────── */
@keyframes jp-scrape-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20,184,166,0.0); }
  50%      { box-shadow: 0 0 0 8px rgba(20,184,166,0.45); }
}
#search-btn.scrape-ready {
  animation: jp-scrape-pulse 1.4s ease-in-out 2;
}