/* ==========================================================
   Okoone CRM — Warm Observatory
   Aesthetic: dark, warm amber accents, editorial serif touches
   Font: Outfit (body) + Fraunces (accents)
   ========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,700;1,9..144,400&family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --surface-3: #262626;
  --border: #2e2e2e;
  --border-light: #3a3a3a;
  --text: #e5e5e5;
  --text-secondary: #a3a3a3;
  --muted: #6b6b6b;
  --accent: #f59e0b;
  --accent-light: #fcd34d;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --success: #34d399;
  --success-dim: rgba(52, 211, 153, 0.12);
  --error: #f87171;
  --error-dim: rgba(248, 113, 113, 0.12);
  --info: #60a5fa;
  --info-dim: rgba(96, 165, 250, 0.12);
  --maybe: #c084fc;
  --maybe-dim: rgba(192, 132, 252, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --font: "Outfit", sans-serif;
  --font-accent: "Fraunces", serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 15px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-light);
}

/* --- Shell ------------------------------------------------- */
.shell {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 100vh;
}

/* --- Sidebar ----------------------------------------------- */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-logo {
  padding: 0 1.2rem 2rem;
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.sidebar-nav {
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.93rem;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.sidebar-nav a.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-left-color: var(--accent);
}

.sidebar-nav .nav-icon {
  font-size: 1.2rem;
  width: 1.4rem;
  text-align: center;
}

.sidebar-nav .nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
}

.sidebar-bottom {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

.sidebar-bottom a {
  color: var(--muted);
  font-size: 0.8rem;
}

/* --- Main -------------------------------------------------- */
.main-content {
  padding: 2rem 2.5rem;
  max-width: none;
}

/* --- Page header ------------------------------------------- */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.page-header .page-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 600px;
}

/* --- Stats row --------------------------------------------- */
.stats-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-box {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color var(--transition);
}

.stat-box:hover {
  border-color: var(--border-light);
}

.stat-box .stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-accent);
  line-height: 1.1;
}

.stat-box .stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

.stat-box.accent .stat-num {
  color: var(--accent);
}
.stat-box.success .stat-num {
  color: var(--success);
}
.stat-box.info .stat-num {
  color: var(--info);
}
.stat-box.error .stat-num {
  color: var(--error);
}

/* --- Prospect card (review mode) — legacy, overridden below */
.review-card.slide-out-left {
  transform: translateX(-120%) rotate(-5deg);
  opacity: 0;
}

.review-card.slide-out-right {
  transform: translateX(120%) rotate(5deg);
  opacity: 0;
}

/* --- Review actions ---------------------------------------- */
.review-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  max-width: none;
  margin: 0 0 2rem;
}

.review-btn {
  flex: 1;
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 2px solid;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.review-btn:active {
  transform: scale(0.96);
}

.review-btn.reject {
  background: var(--error-dim);
  border-color: rgba(248, 113, 113, 0.3);
  color: var(--error);
}
.review-btn.reject:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: var(--error);
}

.review-btn.maybe {
  background: var(--maybe-dim);
  border-color: rgba(192, 132, 252, 0.3);
  color: var(--maybe);
}
.review-btn.maybe:hover {
  background: rgba(192, 132, 252, 0.2);
  border-color: var(--maybe);
}

.review-btn.qualify {
  background: var(--success-dim);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--success);
}
.review-btn.qualify:hover {
  background: rgba(52, 211, 153, 0.2);
  border-color: var(--success);
}

.review-btn .btn-icon {
  font-size: 1.3rem;
}
.review-btn .btn-hint {
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.7;
  display: block;
}

/* --- Toast ------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
}

.toast {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  animation:
    toast-in 0.3s ease-out,
    toast-out 0.3s 2.7s ease-in forwards;
  box-shadow: var(--shadow);
  max-width: 380px;
}

.toast.success {
  background: var(--success);
  color: #000;
}
.toast.error {
  background: var(--error);
  color: #000;
}
.toast.info {
  background: var(--info);
  color: #000;
}
.toast.warning {
  background: var(--accent);
  color: #000;
}

@keyframes toast-in {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes toast-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* --- Section card ------------------------------------------ */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-card h2 {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.section-card .section-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* --- Form elements ----------------------------------------- */
input,
textarea,
select {
  font-family: var(--font);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

button,
.btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

button:hover,
.btn:hover {
  border-color: var(--border-light);
  background: var(--surface-3);
}

button:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-2);
}

/* --- Table ------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tr:hover td {
  color: var(--text);
}

/* --- Pills / badges ---------------------------------------- */
.pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pill-success {
  background: var(--success-dim);
  color: var(--success);
}
.pill-error {
  background: var(--error-dim);
  color: var(--error);
}
.pill-info {
  background: var(--info-dim);
  color: var(--info);
}
.pill-warning {
  background: var(--accent-dim);
  color: var(--accent);
}
.pill-muted {
  background: var(--surface-3);
  color: var(--muted);
}
.pill-maybe {
  background: var(--maybe-dim);
  color: var(--maybe);
}

/* --- Grid layouts ------------------------------------------ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .review-actions {
    flex-direction: column;
  }
}

/* --- Chat panel -------------------------------------------- */
.chat-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-messages {
  max-height: 350px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

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

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.chat-msg-assistant .chat-avatar {
  background: var(--accent-dim);
  color: var(--accent);
}
.chat-msg-user .chat-avatar {
  background: var(--success-dim);
  color: var(--success);
}

.chat-bubble {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 80%;
}

.chat-msg-assistant .chat-bubble {
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.chat-msg-user .chat-bubble {
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.chat-input-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.chat-input-form input {
  flex: 1;
  margin: 0;
}
.chat-input-form button {
  flex-shrink: 0;
}

/* --- Acquaintance list ------------------------------------- */
.acq-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.acq-item:last-child {
  border-bottom: none;
}

/* --- Progress / loop indicator ----------------------------- */
.loop-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.loop-indicator .loop-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* --- Empty state ------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--muted);
}

.empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.empty-state p {
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto;
}

/* --- htmx loading ------------------------------------------ */
.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator {
  display: inline;
}
.htmx-request.htmx-indicator {
  display: inline;
}

/* --- Program editor ---------------------------------------- */
.program-editor textarea {
  font-family: "Outfit", monospace;
  font-size: 0.88rem;
  min-height: 400px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  line-height: 1.7;
}

/* --- Keyboard hints ---------------------------------------- */
.kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font);
  color: var(--muted);
  background: var(--surface-2);
}

/* --- Recent decisions -------------------------------------- */
.decision-list {
  max-width: 700px;
  margin: 0 auto;
}

.decision-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.decision-item .decision-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.decision-item .decision-dot.qualified {
  background: var(--success);
}
.decision-item .decision-dot.rejected {
  background: var(--error);
}
.decision-item .decision-dot.maybe {
  background: var(--maybe);
}

/* --- Scrollbar --------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* --- Login ------------------------------------------------- */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  max-width: 380px;
  width: 100%;
  text-align: center;
}

.login-box h1 {
  font-family: var(--font-accent);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.login-box .login-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.login-box .login-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ==========================================================
   PIPELINE REDESIGN — Review Card & Table
   ========================================================== */

/* --- Section helpers --------------------------------------- */
.section-hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin: -0.5rem 0 1.25rem;
  max-width: 600px;
}

.section-title-inline {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.section-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-card-title {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

/* --- Review card redesign ---------------------------------- */
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
  max-width: none;
  margin: 0 0 1.5rem;
  position: relative;
  transition:
    transform 0.3s,
    opacity 0.3s,
    box-shadow 0.3s;
}

.review-card--glow {
  border-color: rgba(52, 211, 153, 0.25);
  box-shadow:
    var(--shadow),
    0 0 40px rgba(52, 211, 153, 0.08),
    0 0 80px rgba(52, 211, 153, 0.04);
}

/* Header */
.rc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.rc-identity {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}

.rc-identity-text {
  min-width: 0;
}

.rc-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.rc-headline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.rc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.rc-meta-item {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.rc-meta-icon {
  font-size: 0.7rem;
  color: var(--accent);
}

/* Score badge */
.rc-score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.rc-score-badge.high {
  background: var(--success-dim);
  border: 2px solid rgba(52, 211, 153, 0.3);
}
.rc-score-badge.mid {
  background: var(--accent-dim);
  border: 2px solid rgba(245, 158, 11, 0.3);
}
.rc-score-badge.low {
  background: var(--error-dim);
  border: 2px solid rgba(248, 113, 113, 0.3);
}

.rc-score-num {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.rc-score-badge.high .rc-score-num {
  color: var(--success);
}
.rc-score-badge.mid .rc-score-num {
  color: var(--accent);
}
.rc-score-badge.low .rc-score-num {
  color: var(--error);
}

.rc-score-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.1rem;
}

/* Tags */
.rc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.rc-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: var(--surface-3);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* Two-column body */
.rc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 700px) {
  .rc-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.rc-section {
  margin-bottom: 1.25rem;
}

.rc-section:last-child {
  margin-bottom: 0;
}

.rc-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rc-section-icon {
  color: var(--accent);
  font-size: 0.8rem;
}

/* Experience timeline */
.rc-timeline {
  position: relative;
  padding-left: 1.25rem;
}

.rc-timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border-light);
}

.rc-timeline-item {
  position: relative;
  padding-bottom: 0.75rem;
  display: flex;
  gap: 0;
}

.rc-timeline-item:last-child {
  padding-bottom: 0;
}

.rc-timeline-dot {
  position: absolute;
  left: -1.25rem;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  z-index: 1;
}

.rc-timeline-content {
  flex: 1;
}

.rc-timeline-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.rc-timeline-company {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.rc-timeline-duration {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

/* Education */
.rc-edu-item {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.rc-edu-item:last-child {
  border-bottom: none;
}

.rc-edu-school {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.rc-edu-degree {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* About */
.rc-about {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Score bars -------------------------------------------- */
.score-bar-container {
  margin-bottom: 0.75rem;
}

.score-bar-container:last-child {
  margin-bottom: 0;
}

.score-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
}

.score-bar-name {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.score-bar-pct {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-accent);
}

.score-bar-pct.high {
  color: var(--success);
}
.score-bar-pct.mid {
  color: var(--accent);
}
.score-bar-pct.low {
  color: var(--error);
}

.score-bar-track {
  width: 100%;
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-bar-fill.high {
  background: var(--success);
}
.score-bar-fill.mid {
  background: var(--accent);
}
.score-bar-fill.low {
  background: var(--error);
}

/* --- Pro/Con summary --------------------------------------- */
.rc-pros-cons {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rc-pro,
.rc-con {
  font-size: 0.82rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.4;
}

.rc-pro {
  background: var(--success-dim);
  color: var(--success);
}

.rc-con {
  background: var(--error-dim);
  color: var(--error);
}

.rc-pro-icon,
.rc-con-icon {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* --- LinkedIn link footer ---------------------------------- */
.rc-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.rc-linkedin-link {
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  transition: color var(--transition);
}

.rc-linkedin-link:hover {
  color: var(--accent-light);
}

.rc-linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #0a66c2;
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  font-style: normal;
}

/* --- Badge score (table) ----------------------------------- */
.badge-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 22px;
  padding: 0 0.4rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-score.high {
  background: var(--success-dim);
  color: var(--success);
}

.badge-score.mid {
  background: var(--accent-dim);
  color: var(--accent);
}

.badge-score.low {
  background: var(--error-dim);
  color: var(--error);
}

/* --- Prospect table redesign ------------------------------- */
.table-wrap {
  overflow-x: auto;
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
}

.prospect-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.prospect-table thead th {
  text-align: left;
  padding: 0.45rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.prospect-table tbody td {
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
  font-size: 0.85rem;
}

/* Zebra stripes */
.prospect-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

/* Hover highlight */
.prospect-row {
  cursor: pointer;
  transition: background var(--transition);
}

.prospect-row:hover td {
  background: var(--surface-2);
  color: var(--text);
}

.td-name {
  font-weight: 600;
  color: var(--text) !important;
  white-space: nowrap;
}

.td-headline {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
}

.td-company {
  white-space: nowrap;
  color: var(--text-secondary);
}

.td-location {
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--muted);
}

.th-rank,
.td-rank {
  width: 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

/* --- Pagination -------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.page-info {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
