/* ============================================================
   EasyCV Fixy — Design System
   Deep Blue + Coral palette (WCAG AA compliant)
   ============================================================ */

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

/* --- Tokens --- */
:root {
  /* ===== UPDATED PALETTE (Deep Blue + Coral) ===== */
  /* Old primary (teal) #0d5c5c → New primary (deep blue) #003049 */
  /* Old accent (orange) #ea7c2a → New accent (coral) #FF9A86 */

  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-alt: #f5f5f4;
  --surface-warm: #fdf8f3;
  --surface-teal: #f0f7f7; /* Keep for reference */

  --ink: #1c1917;
  --ink-soft: #44403c;
  --ink-muted: #78716c;
  --ink-faint: #a8a29e;

  /* PRIMARY: Deep Blue #003049 */
  --primary: #003049;
  --primary-hover: #052a38;
  --primary-soft: #E6F1FB;
  --primary-soft-2: #B8D4E8;

  /* ACCENT: Coral #FF9A86 */
  --accent-warm: #FF9A86;
  --accent-warm-soft: #FFF9F7;
  /* Coral text for buttons/badges on light backgrounds */
  --coral-text: #2D1F1C;

  --positive: #4d7c0f;
  --positive-soft: #ecfccb;

  --caution: #b45309;
  --caution-soft: #fef3c7;
  --caution-medium: #fde68a;

  --danger: #991b1b;
  --danger-soft: #fef2f2;

  --border: #e7e5e4;
  --border-strong: #d6d3d1;

  --nav-h: 56px;
  --radius: 12px;
  --radius-lg: 16px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }
body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

/* --- Utility --- */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
}
.nav-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.nav-name { font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-link { color: var(--ink-muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 0.15s; }
.nav-link:hover { color: var(--ink); }
.nav-cta {
  background: var(--primary); color: #FFFFFF;
  padding: 8px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all 0.15s;
}
.nav-cta:hover { background: var(--primary-hover); }
/* Download buttons in nav (results state) */
.nav-dl { display: flex; gap: 8px; }
.nav-dl-btn {
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--ink-soft); padding: 6px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit;
  transition: all 0.15s; text-decoration: none;
}
.nav-dl-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   PAGES — viewport-fitted containers
   ============================================================ */
.page {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex; flex-direction: column;
}
.page-fit {
  /* Exactly fills viewport below nav — no scroll */
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}
.page-scroll {
  /* Fills viewport minimum but allows scroll */
  min-height: calc(100vh - var(--nav-h));
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing {
  display: flex; flex-direction: column;
  height: calc(100vh - var(--nav-h));
  padding: 0 32px;
  max-width: 1280px; margin: 0 auto; width: 100%;
}
.landing-main {
  flex: 1;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 48px; align-items: center;
}
.landing-left { max-width: 560px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--primary);
  background: var(--primary-soft); padding: 6px 12px; border-radius: 20px;
  margin-bottom: 20px;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.hero-title {
  font-size: clamp(36px, 4.5vw, 52px); line-height: 1.06; font-weight: 700;
  letter-spacing: -0.03em; color: var(--ink); margin-bottom: 16px;
}
.hero-title em {
  font-style: normal; color: var(--primary); position: relative; display: inline-block;
}
.hero-title em::after {
  content: ''; position: absolute; left: -2px; right: -2px; bottom: 3px;
  height: 10px; background: #FFE8E0; z-index: -1; border-radius: 2px;
}
.hero-sub {
  font-size: 17px; line-height: 1.55; color: var(--ink-muted);
  margin-bottom: 24px; max-width: 480px;
}
.trust {
  display: flex; gap: 20px; font-size: 13px; color: var(--ink-muted); margin-top: 20px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 6px; }
.trust-check { color: var(--positive); font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-weight: 600; transition: all 0.15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: #FFFFFF;
  padding: 13px 26px; font-size: 15px;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-primary:disabled {
  background: var(--surface-alt); color: var(--ink-faint); cursor: not-allowed; transform: none;
}
.btn-ghost {
  background: transparent; color: var(--ink-soft);
  padding: 13px 0; font-size: 15px;
}
.btn-ghost:hover { color: var(--primary); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-warm {
  background: var(--accent-warm); color: var(--coral-text);
  font-weight: 600;
}
.btn-warm:hover { background: #E08673; }
.btn-outline {
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--border-strong);
  padding: 9px 18px; font-size: 14px;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Preview panel */
.preview-wrap { position: relative; }
.preview {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: 0 8px 30px rgba(0,48,73,0.07), 0 1px 3px rgba(0,0,0,0.04);
  transform: rotate(-0.5deg); position: relative; z-index: 2;
}
.preview-sticker {
  position: absolute; top: -10px; right: 14px; z-index: 3;
  background: var(--accent-warm); color: var(--coral-text);
  padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
  transform: rotate(-5deg); box-shadow: 0 4px 12px rgba(255, 154, 134, 0.25);
}
.preview-header { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.preview-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.preview-tag { font-size: 10px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.score-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.score-big { font-size: 38px; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; line-height: 1; }
.score-max { font-size: 16px; font-weight: 500; color: var(--ink-faint); }
.score-label { font-size: 12px; color: var(--ink-muted); margin-bottom: 10px; }
.score-bar { height: 5px; background: var(--surface-alt); border-radius: 3px; margin-bottom: 14px; overflow: hidden; }
.score-bar-fill { height: 100%; background: var(--accent-warm); border-radius: 3px; width: 64%; }
.pvw-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.pvw-stat { background: var(--surface-alt); padding: 8px 10px; border-radius: 8px; }
.pvw-stat-label { font-size: 10px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 2px; }
.pvw-stat-value { font-size: 14px; font-weight: 600; color: var(--ink); }
.pvw-section-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 8px; }
.pvw-item { padding: 7px 0; border-top: 1px solid var(--border); font-size: 12px; display: flex; gap: 8px; }
.pvw-item:first-child { border-top: none; padding-top: 0; }
.pvw-bullet { width: 16px; height: 16px; border-radius: 5px; background: var(--primary-soft); color: var(--primary); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pvw-text { color: var(--ink-soft); line-height: 1.45; }
.pvw-text strong { color: var(--ink); font-weight: 600; }

/* Landing bottom bar — mode selection */
.landing-bottom {
  display: none !important; /* HIDDEN: Remove mode selection cards */
}
.mode-btn {
  flex: 1; display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.mode-btn:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(0,48,73,0.1); transform: translateY(-1px); }
.mode-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.mode-icon-jm { background: var(--primary-soft); color: var(--primary); }
.mode-icon-cp { background: var(--accent-warm-soft); color: var(--accent-warm); }
.mode-info { flex: 1; }
.mode-name { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.mode-desc { font-size: 13px; color: var(--ink-muted); line-height: 1.4; }
.mode-arrow { color: var(--ink-faint); font-size: 18px; }

/* ============================================================
   APP PAGE (upload / loading / results)
   ============================================================ */
.app-page {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* --- Upload state --- */
.upload-container {
  max-width: 680px; margin: 0 auto; padding: 40px 24px;
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--nav-h));
}
.upload-header { margin-bottom: 24px; }
.upload-title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 6px; }
.upload-sub { font-size: 16px; color: var(--ink-muted); }

/* Mode selector */
.mode-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface-alt); border-radius: 10px; padding: 3px; gap: 3px;
  margin-bottom: 24px;
}
.mode-tab {
  padding: 10px 14px; border-radius: 8px; border: none;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink-muted); background: transparent;
  cursor: pointer; transition: all 0.18s; text-align: center;
}
.mode-tab:hover { color: var(--ink-soft); }
.mode-tab.active {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 3px rgba(28,25,23,0.08);
}

/* Privacy strip */
.privacy-strip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 20px; font-size: 13px; color: var(--ink-muted);
}

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--border-strong); border-radius: var(--radius);
  padding: 36px 20px; text-align: center;
  background: var(--surface-alt); cursor: pointer;
  transition: all 0.15s; margin-bottom: 16px;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary); background: var(--primary-soft);
}
.drop-zone-icon { font-size: 28px; color: var(--ink-muted); margin-bottom: 8px; }
.drop-zone:hover .drop-zone-icon, .drop-zone.dragover .drop-zone-icon { color: var(--primary); }
.drop-zone-text { font-size: 15px; color: var(--ink-soft); font-weight: 500; }
.drop-zone-text strong { color: var(--primary); }
.drop-zone-sub { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
.drop-zone input[type="file"] { display: none; }

/* File accepted */
.file-accepted {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; background: var(--positive-soft); border: 1px solid #c8ddb5;
  border-radius: 10px; margin-bottom: 16px;
}
.file-icon { font-size: 20px; color: var(--positive); }
.file-info { flex: 1; }
.file-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.file-meta { font-size: 12px; color: var(--ink-muted); }
.file-remove {
  background: transparent; border: none; color: var(--ink-muted);
  cursor: pointer; font-size: 13px; font-family: inherit; font-weight: 500;
  padding: 4px 8px; border-radius: 6px; transition: all 0.15s;
}
.file-remove:hover { color: var(--danger); background: white; }

/* Doc error */
.doc-error {
  background: var(--caution-soft); border: 1px solid var(--caution-medium);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 16px;
  display: flex; gap: 12px;
}
.doc-error-icon { font-size: 18px; color: var(--caution); flex-shrink: 0; }
.doc-error-title { font-weight: 600; color: #7c2d12; font-size: 14px; margin-bottom: 3px; }
.doc-error-text { font-size: 13px; color: #92400e; line-height: 1.6; }
.doc-error-text a { color: #92400e; font-weight: 600; }

/* Form elements */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.form-label-opt { font-weight: 400; color: var(--ink-faint); font-size: 13px; }
.form-input, .form-textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); font-family: inherit; font-size: 15px;
  color: var(--ink); transition: all 0.15s; line-height: 1.5;
}
.form-textarea { min-height: 160px; resize: vertical; }
.form-input:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-faint); }
.form-hint { font-size: 13px; color: var(--ink-muted); margin-top: 5px; }
.form-hint-warm { color: var(--accent-warm); }
.char-count { font-size: 12px; color: var(--ink-faint); text-align: right; margin-top: 4px; font-variant-numeric: tabular-nums; }
.char-count.ok { color: var(--positive); }

/* Upload action bar */
.upload-action {
  margin-top: auto; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.upload-action-hint { font-size: 13px; color: var(--ink-muted); }

/* ============================================================
   LOADING STATE
   ============================================================ */
.loading-container {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: calc(100vh - var(--nav-h));
  padding: 32px; text-align: center;
}
.orb-wrap { margin-bottom: 28px; }
.orb { position: relative; width: 88px; height: 88px; }
.orb-circle {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--primary); opacity: 0.1;
  animation: orb-pulse 2s ease-in-out infinite;
}
.orb-circle.d1 { animation-delay: 0.4s; }
.orb-circle.d2 { animation-delay: 0.8s; }
.orb-core {
  position: absolute; inset: 26px; border-radius: 50%;
  background: var(--primary); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.orb-spinner { animation: orb-spin 3s linear infinite; display: block; }
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.3); opacity: 0.25; }
}
@keyframes orb-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.loading-title { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 8px; }
.loading-sub { font-size: 15px; color: var(--ink-muted); margin-bottom: 32px; }

/* Progress phases */
.phases {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 24px; margin-bottom: 24px; text-align: left;
  width: 100%; max-width: 480px;
}
.phase { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--border); }
.phase:first-child { border-top: none; }
.phase-icon {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.phase.complete .phase-icon { background: var(--positive); color: #FFFFFF; }
.phase.active .phase-icon { background: var(--primary-soft); color: var(--primary); position: relative; }
.phase.active .phase-icon::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--primary); border-top-color: transparent;
  animation: orb-spin 1s linear infinite;
}
.phase.pending .phase-icon { background: var(--surface-alt); color: var(--ink-faint); }
.phase-text { font-size: 14px; color: var(--ink-muted); font-weight: 500; }
.phase.complete .phase-text { color: var(--ink); }
.phase.active .phase-text { color: var(--ink); font-weight: 600; }

/* Tip card */
.tip {
  background: var(--accent-warm-soft); border: 1px solid #fde4c4;
  border-radius: var(--radius); padding: 16px 20px; text-align: left;
  width: 100%; max-width: 480px;
}
.tip-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #C85A42; margin-bottom: 5px; }
.tip-text { font-size: 13px; color: #7c2d12; line-height: 1.6; }
.tip-text strong { color: #5c1d0c; }

/* ============================================================
   RESULTS PAGE
   ============================================================ */
.results-container {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
}

/* Dashboard strip — always at top */
.results-hero {
  padding: 28px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.results-breadcrumb { font-size: 13px; color: var(--ink-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { background: var(--primary-soft); color: var(--primary); padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.results-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }
.results-sub { font-size: 15px; color: var(--ink-muted); margin-bottom: 20px; }

/* Metric cards */
.metrics { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 12px; }
.metric { border-radius: var(--radius); padding: 16px 18px; }
.metric.m-primary { background: var(--primary); color: #FFFFFF; position: relative; overflow: hidden; }
.metric.m-primary::before { content: ''; position: absolute; top: -40%; right: -20%; width: 200px; height: 200px; background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%); }
.metric.m-default { background: var(--surface-alt); border: 1px solid var(--border); }
.metric-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.metric.m-primary .metric-label { color: rgba(255,255,255,0.7); }
.metric.m-default .metric-label { color: var(--ink-muted); }
.metric-val { display: flex; align-items: baseline; gap: 5px; margin-bottom: 4px; }
.metric-num { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.metric.m-primary .metric-num { color: #FFFFFF; font-size: 40px; }
.metric.m-default .metric-num { color: var(--ink); }
.metric-suffix { font-size: 14px; font-weight: 500; }
.metric.m-primary .metric-suffix { color: rgba(255,255,255,0.5); }
.metric.m-default .metric-suffix { color: var(--ink-faint); }
.metric-sub { font-size: 12px; line-height: 1.4; }
.metric.m-primary .metric-sub { color: rgba(255,255,255,0.85); }
.metric.m-default .metric-sub { color: var(--ink-muted); }

/* Result tabs */
.result-tabs {
  display: flex; flex-wrap: nowrap; gap: 2px; border-bottom: 1px solid var(--border);
  padding: 0; margin-bottom: 28px; overflow-x: auto;
  scrollbar-width: thin;
}
.result-tab {
  padding: 10px 12px; border: none; background: transparent;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink-muted); cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: all 0.15s;
  margin-bottom: -1px; flex-shrink: 0;
}
.result-tab:hover { color: var(--ink-soft); }
.result-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.result-tab-badge {
  font-size: 11px; background: var(--surface-alt); color: var(--ink-muted);
  padding: 1px 7px; border-radius: 10px; margin-left: 6px; font-weight: 600;
}
.result-tab.active .result-tab-badge { background: var(--primary-soft); color: var(--primary); }

/* Tab content panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- Section elements (reused across tabs) --- */
.sec-head { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sec-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--primary); margin-bottom: 5px;
  display: flex; align-items: center; gap: 8px;
}
.sec-label::before { content: ''; width: 3px; height: 14px; background: var(--accent-warm); border-radius: 2px; }
.sec-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }

/* Exec summary */
.exec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); border-left: 3px solid var(--primary); }

/* Action items */
.action-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; display: flex; gap: 12px; }
.action-num { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-warm); color: var(--coral-text); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.action-body { flex: 1; }
.action-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; line-height: 1.4; }
.action-meta { font-size: 13px; color: var(--ink-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.impact-pill { padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.impact-high { background: #fde8e7; color: #991b1b; }
.impact-medium { background: var(--caution-soft); color: #78350f; }
.impact-low { background: var(--positive-soft); color: #3f5a0b; }

/* Keyword tags */
.kw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kw-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.kw-col-head { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.kw-col-sub { font-size: 12px; color: var(--ink-muted); margin-bottom: 10px; }
.kw-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.kw-tag { padding: 4px 10px; border-radius: 16px; font-size: 13px; font-weight: 500; }
.kw-tag.missing { background: var(--caution-soft); color: #78350f; border: 1px solid var(--caution-medium); }
.kw-tag.present { background: var(--positive-soft); color: #3f5a0b; border: 1px solid #c8ddb5; }

/* Section feedback */
.secfb-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
.secfb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.secfb-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.status-pill { padding: 3px 9px; border-radius: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.status-critical { background: #fde8e7; color: var(--danger); }
.status-needswork { background: var(--caution-soft); color: #78350f; }
.status-good { background: var(--positive-soft); color: #3f5a0b; }
.secfb-issues { list-style: none; padding: 0; margin: 0 0 8px 0; }
.secfb-issues li { padding: 4px 0; font-size: 14px; color: var(--ink-soft); padding-left: 14px; position: relative; }
.secfb-issues li::before { content: '•'; position: absolute; left: 0; color: var(--ink-faint); }
.secfb-fix { font-size: 14px; color: var(--ink-soft); padding: 10px 12px; background: var(--surface-alt); border-radius: 8px; line-height: 1.5; }
.secfb-fix strong { color: var(--ink); }

/* Bullet rewrite cards */
.bullet-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 14px; }
.bullet-num { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 12px; }
.bullet-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin-bottom: 12px; }
.bullet-col { padding: 14px 16px; border-radius: 10px; font-size: 14px; line-height: 1.6; }
.bullet-col.before { background: var(--surface-alt); border: 1px solid var(--border); color: var(--ink-muted); font-style: italic; }
.bullet-col.after { background: var(--primary-soft); border: 1px solid var(--primary-soft-2); color: var(--ink); font-weight: 500; }
.bullet-col-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; font-style: normal; }
.bullet-col.before .bullet-col-label { color: var(--ink-muted); }
.bullet-col.after .bullet-col-label { color: var(--primary); }
.bullet-arrow { display: flex; align-items: center; color: var(--primary); font-size: 18px; font-weight: 700; }
.bullet-reason { font-size: 13px; color: var(--ink-muted); padding-top: 10px; border-top: 1px solid var(--border); line-height: 1.5; }
.bullet-reason strong { color: var(--ink-soft); }

/* ATS panel */
.ats { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; }
.ats-verdict-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ats-badge { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.ats-badge.good { background: var(--positive-soft); color: #3f5a0b; }
.ats-badge.partial { background: var(--caution-soft); color: #78350f; }
.ats-badge.bad { background: #fde8e7; color: var(--danger); }
.ats-note { font-size: 13px; color: var(--ink-muted); }
.ats-summary { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.6; }
.ats-issue { padding: 10px 0; border-top: 1px solid var(--border); }
.ats-issue-title { font-weight: 600; color: var(--ink); margin-bottom: 3px; font-size: 14px; }
.ats-issue-text { font-size: 13px; color: var(--ink-muted); line-height: 1.5; margin-bottom: 3px; }
.ats-issue-fix { font-size: 13px; color: var(--ink-soft); }
.ats-issue-fix strong { color: var(--primary); font-weight: 600; }
.ats-positives { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.ats-positives-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--positive); margin-bottom: 6px; }
.ats-positives ul { list-style: none; padding: 0; }
.ats-positives li { padding: 3px 0; font-size: 13px; color: var(--ink-soft); }
.ats-positives li::before { content: '✓ '; color: var(--positive); font-weight: 700; }

.ats-checklist { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; }
.ats-checklist-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 6px; }
.ats-checklist ul { list-style: none; padding: 0; margin: 0; }
.ats-checklist li { position: relative; padding: 4px 0 4px 26px; font-size: 13px; color: var(--ink-soft); }
.ats-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--positive);
  color: #ffffff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* Skill gaps (RP mode) */
.gap-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
.gap-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.gap-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.gap-field { font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; line-height: 1.5; }
.gap-field strong { color: var(--ink); font-weight: 600; }

/* Strengths (RP mode) */
.strength-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
.strength-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.strength-evidence { font-size: 13px; color: var(--ink-muted); font-style: italic; padding: 8px 12px; border-left: 3px solid var(--positive); background: var(--positive-soft); border-radius: 0 6px 6px 0; margin-bottom: 8px; }
.strength-relevance { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* Roadmap (RP mode) */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.roadmap-month { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.roadmap-head { margin-bottom: 8px; }
.roadmap-num { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; }
.roadmap-theme { font-size: 15px; font-weight: 700; color: var(--ink); }
.roadmap-goals { list-style: none; padding: 0; }
.roadmap-goals li { font-size: 13px; color: var(--ink-soft); padding: 3px 0; padding-left: 16px; position: relative; line-height: 1.5; }
.roadmap-goals li::before { content: '→'; position: absolute; left: 0; color: var(--primary); }

/* Honest assessment (RP mode) */
.honest { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.honest-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin-bottom: 14px; }
.honest-label { font-size: 13px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.honest-value { font-size: 14px; color: var(--ink); }
.honest-encouragement { font-size: 14px; color: var(--ink-soft); font-style: italic; padding-top: 14px; border-top: 1px solid var(--border); line-height: 1.6; }

/* Mismatch alert (JM mode, score < 40) */
.mismatch { background: var(--danger-soft); border-left: 4px solid var(--danger); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px; }
.mismatch-title { font-size: 16px; font-weight: 700; color: var(--danger); margin-bottom: 10px; }
.mismatch-row { font-size: 14px; color: var(--ink-soft); margin-bottom: 5px; }
.mismatch-row strong { color: var(--ink); }

/* Re-check card (JM Overview — upload revised CV for a skim-reader pass) */
.recheck-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; margin-top: 20px; }
.recheck-card-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.recheck-card-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 14px; }

.recheck-status { margin-top: 12px; font-size: 14px; }
.recheck-status.loading { color: var(--ink-muted); }
.recheck-status.error { color: var(--danger); }

.recheck-score-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; margin-bottom: 10px; flex-wrap: wrap; }
.recheck-score { display: flex; align-items: baseline; gap: 8px; }
.recheck-score-num { font-size: 28px; font-weight: 800; color: var(--ink); }
.recheck-score-max { font-size: 14px; color: var(--ink-muted); }
.recheck-delta { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.recheck-delta.up { color: #3f5a0b; background: var(--positive-soft); }
.recheck-delta.down { color: var(--danger); background: var(--danger-soft); }

.recheck-justification { font-size: 13px; color: var(--ink-muted); margin-bottom: 12px; }
.recheck-improvement { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 14px; }

.recheck-skipped { margin-bottom: 14px; }
.recheck-skipped-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--caution); margin-bottom: 6px; }
.recheck-skipped ul { list-style: none; padding: 0; margin: 0; }
.recheck-skipped li { padding: 3px 0; font-size: 13px; color: var(--ink-soft); }
.recheck-skipped li::before { content: '— '; color: var(--ink-faint); }

.recheck-redflags { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.recheck-redflags-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--danger); margin-bottom: 6px; }
.recheck-redflags ul { list-style: none; padding: 0; margin: 0; }
.recheck-redflags li { padding: 3px 0; font-size: 13px; color: var(--ink-soft); }
.recheck-redflags li::before { content: '⚠ '; color: var(--danger); }

/* Keywords to add (RP mode) */
.kw-add-item { padding: 8px 0; font-size: 14px; color: var(--ink-soft); border-bottom: 1px solid var(--border); }
.kw-add-item:last-child { border-bottom: none; }
.kw-add-item strong { color: var(--ink); }

/* Downloads card */
.downloads-card {
  background: linear-gradient(135deg, var(--primary) 0%, #052a38 50%, var(--primary-hover) 100%);
  color: #FFFFFF; border-radius: var(--radius-lg); padding: 28px;
  margin: 32px 0 20px;
}
.downloads-title { font-size: 20px; font-weight: 700; margin-bottom: 5px; }
.downloads-sub { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 16px; }
.dl-grid { display: flex; gap: 10px; }
.dl-btn {
  flex: 1; background: #FFFFFF; color: var(--ink); padding: 12px 18px;
  border-radius: 10px; font-weight: 600; font-size: 14px;
  text-decoration: none; text-align: center; transition: transform 0.15s;
  cursor: pointer; border: none; font-family: inherit;
}
.dl-btn:hover { transform: translateY(-2px); }
.dl-btn-sub { font-size: 11px; color: var(--ink-muted); font-weight: 500; display: block; margin-top: 2px; }

/* Feedback CTA */
.feedback-card {
  background: var(--accent-warm-soft); border: 1px solid #fde4c4;
  border-radius: var(--radius-lg); padding: 24px; text-align: center; margin-bottom: 20px;
}
.feedback-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.feedback-sub { font-size: 14px; color: var(--ink-muted); margin-bottom: 12px; }

/* Footer */
.app-footer {
  text-align: center; padding: 24px; font-size: 13px; color: var(--ink-muted);
  border-top: 1px solid var(--border); margin-top: 32px;
}
.app-footer a { color: var(--primary); text-decoration: none; font-weight: 500; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .landing-main { grid-template-columns: 1fr; gap: 32px; }
  .landing-bottom { flex-direction: column; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric.m-primary { grid-column: 1 / -1; }
  .kw-grid { grid-template-columns: 1fr; }
  .bullet-pair { grid-template-columns: 1fr; }
  .bullet-arrow { display: none; }
  .roadmap { grid-template-columns: 1fr; }
  .nav { padding: 0 16px; }
  .landing { padding: 0 16px; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 32px; }
  .metrics { grid-template-columns: 1fr; }
  .metric.m-primary { grid-column: auto; }
  .upload-container { padding: 24px 16px; }
  .result-tabs { gap: 0; }
  .result-tab { padding: 8px 12px; font-size: 13px; }
}

/* ============================================================
   Bonus Information (Career Report) — additions

   Reuses --primary, --accent-warm, --border, --ink*, --surface*,
   --radius* tokens, and follows the same visual language as
   .metric, .bullet-card, .gap-item, .status-pill, .form-input
   already defined above.
   ============================================================ */

/* --- Stat cards row — mirrors .metrics/.metric (m-default variant) --- */
.cr-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0 8px;
}
.cr-stat-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.cr-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.cr-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cr-stat-sub {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 4px;
  line-height: 1.3;
}

.cr-summary-line {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 16px 0 8px;
}
.cr-summary-line strong { color: var(--ink); }

/* --- Section titles — reuses .sec-label pattern at a smaller scale --- */
.cr-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* --- Job cards — same shape language as .bullet-card / .gap-item --- */
.cr-job-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cr-job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.cr-job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.cr-job-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

/* Badges — same construction as .status-pill / .ats-badge */
.cr-badge {
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.cr-badge-verified { background: var(--positive-soft); color: #3f5a0b; }
.cr-badge-unconfirmed { background: var(--caution-soft); color: #78350f; }

.cr-job-meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
.cr-job-why {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 8px 0;
}
.cr-job-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.cr-job-link:hover { color: var(--primary-hover); }

.cr-verification-note {
  font-size: 12px;
  color: #78350f;
  background: var(--caution-soft);
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 8px;
}

/* --- Long-form text sections — reuses .exec's card treatment --- */
.cr-text-section { margin-bottom: 4px; }
.cr-markdown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.cr-markdown p {
  margin-bottom: 12px;
}
.cr-markdown p:last-child {
  margin-bottom: 0;
}
.cr-markdown strong {
  color: var(--ink);
  font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .cr-stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cr-stat-grid { grid-template-columns: 1fr; }
  .cr-job-head { flex-direction: column; align-items: flex-start; }
}

/* --- List cards: Top Skills / Skills to Develop / Career Paths --- */
.cr-list-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Top Skills & Career Paths — numbered badge cards */
.cr-skill-card, .cr-path-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cr-list-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cr-list-num-positive {
  background: var(--positive-soft);
  color: #3f5a0b;
}
.cr-list-num-primary {
  background: var(--primary-soft);
  color: var(--primary);
}
.cr-list-body { flex: 1; }
.cr-list-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.cr-list-detail {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 4px;
}
.cr-list-detail-muted {
  color: var(--ink-muted);
  margin-top: 6px;
}

/* Skills to Develop — caution-toned card with priority pill */
.cr-devskill-card {
  background: var(--caution-soft);
  border: 1px solid var(--caution-medium);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.cr-devskill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.cr-devskill-card .cr-list-detail { color: #78350f; }
.cr-devskill-card .cr-list-detail-muted { color: #92400e; }

/* --- Salary breakdown table --- */
.cr-salary-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 4px;
}
.cr-salary-table tr:nth-child(even) { background: var(--surface-alt); }
.cr-salary-label, .cr-salary-value {
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.cr-salary-table tr:last-child .cr-salary-label,
.cr-salary-table tr:last-child .cr-salary-value {
  border-bottom: none;
}
.cr-salary-label { color: var(--ink-soft); }
.cr-salary-value { color: var(--ink); font-weight: 600; text-align: right; }

/* --- Missing information checklist --- */
.cr-missing-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}
.cr-missing-item {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 8px 12px;
  background: var(--surface-alt);
  border-radius: 8px;
  padding-left: 36px;
  position: relative;
}
.cr-missing-item::before {
  content: '+';
  position: absolute;
  left: 8px;
  top: 8px;
  width: 18px;
  height: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

/* --- Citation markers + sources list --- */
.cr-cite a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.cr-cite a:hover { text-decoration: underline; }
.cr-sources-list {
  font-size: 12px;
  color: var(--ink-muted);
  padding-left: 20px;
  line-height: 1.8;
}
.cr-sources-list a {
  color: var(--primary);
  text-decoration: none;
}
.cr-sources-list a:hover { text-decoration: underline; }

/* --- Career path cards: chain + focus-area bullets --- */
.cr-path-chain {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 6px 0;
}
.cr-path-framing {
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 4px;
}
.cr-focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.cr-focus-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 3px 10px;
}
.cr-path-salary {
  font-size: 13px;
  color: var(--ink);
  margin-top: 8px;
}
.cr-path-salary strong { color: var(--primary); }

/* ============================================================
   Career Report — redesign additions (skills table, negotiation,
   copyable search strings)
   ============================================================ */

/* In-demand skills comparison table */
.cr-skills-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
  background: var(--surface);
}
.cr-skills-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  background: var(--surface-alt);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.cr-skills-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.cr-skills-table tr:last-child td { border-bottom: none; }
.cr-demand-cell {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* Negotiation — two headline figures side by side */
.cr-neg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

/* Copyable search strings */
.cr-query-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}
.cr-search-string {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  overflow-x: auto;
  white-space: nowrap;
}
.cr-copy-btn {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--primary-soft-2);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.cr-copy-btn:hover { background: var(--primary); color: #fff; }

@media (max-width: 640px) {
  .cr-neg-grid { grid-template-columns: 1fr; }
  .cr-skills-table th:nth-child(2), .cr-skills-table td:nth-child(2) { display: none; }
}

/* ============================================================
   Interview Prep tab (Job Match)
   ============================================================ */
.ip-note {
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--primary-soft);
  border: 1px solid var(--primary-soft-2);
  border-radius: var(--radius);
  padding: 14px 18px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.ip-sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin: -6px 0 10px;
}
.ip-angle {
  background: var(--surface-alt);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  margin-top: 8px;
}
.impact-pill.ip-general {
  background: var(--surface-alt);
  color: var(--ink-muted);
}
