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

:root {
  /* GLVE Design System */
  --glve-navy:        #0A1729;
  --glve-blue:        #3385D1;
  --glve-blue-soft:   #EBF4FD;
  --glve-blue-border: rgba(51, 133, 209, 0.22);
  --glve-border:      rgba(51, 133, 209, 0.18);
  --glve-text-primary:#0A1729;
  --glve-text-muted:  rgba(10, 23, 41, 0.55);
  --glve-bg-soft:     #F4F9FF;

  /* Mapped legacy vars */
  --bg:        #ffffff;
  --surface:   #ffffff;
  --surface2:  #EBF4FD;
  --border:    rgba(51, 133, 209, 0.18);
  --accent:    #0A1729;
  --accent-dim:#EBF4FD;
  --green:     #2f9e44;
  --yellow:    #D4AF77;
  --red:       #c92a2a;
  --text:      #0A1729;
  --muted:     rgba(10, 23, 41, 0.55);
  --radius:    8px;
}

body {
  background: #ffffff;
  color: var(--glve-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.app { display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: #ffffff;
  border-bottom: 1px solid rgba(51,133,209,0.12);
}
.topbar .logo { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; color: var(--glve-navy); }
.topbar .tagline { color: var(--glve-text-muted); font-size: 12px; font-weight: 400; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 24px;
  background: #ffffff;
  border-bottom: 1px solid rgba(51,133,209,0.12);
  font-size: 12px;
  color: var(--glve-text-muted);
  height: 40px;
}
.breadcrumb .step {
  cursor: default;
  padding: 3px 10px;
  border-radius: 20px;
  transition: all 0.15s;
  white-space: nowrap;
  font-size: 12px;
}
.breadcrumb .step.done {
  color: var(--glve-text-muted);
  cursor: pointer;
}
.breadcrumb .step.done:hover {
  background: var(--glve-blue-soft);
  color: var(--glve-navy);
}
.breadcrumb .step.active {
  color: #fff;
  font-weight: 600;
  background: var(--glve-navy);
}
.breadcrumb .step.future {
  color: var(--glve-text-muted);
  opacity: 0.35;
}
.breadcrumb .sep { color: rgba(10,23,41,0.15); margin: 0 1px; font-size: 10px; }

.main { display: flex; flex: 1; overflow: hidden; }

.sidebar {
  width: 200px;
  background: #ffffff;
  border-right: 1px solid rgba(51,133,209,0.12);
  padding: 20px 16px;
  flex-shrink: 0;
  overflow-y: auto;
}
.sidebar h3 {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(10,23,41,0.35);
  margin-bottom: 10px;
  font-weight: 600;
}

.content { flex: 1; padding: 24px 32px; overflow-y: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.97); }

/* Blue — generate / analyse */
.btn-primary {
  background: var(--glve-blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(51,133,209,0.35);
}
.btn-primary:hover {
  background: #2870b8;
  box-shadow: 0 4px 18px rgba(51,133,209,0.45);
  transform: translateY(-1px);
}

/* Green — forward progress / next actions */
.btn-success {
  background: #2B9348;
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(43,147,72,0.3);
}
.btn-success:hover {
  background: #237a3c;
  box-shadow: 0 4px 18px rgba(43,147,72,0.4);
  transform: translateY(-1px);
}

/* Purple — export / secondary */
.btn-purple {
  background: #6457f9;
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(100,87,249,0.3);
}
.btn-purple:hover {
  background: #5346e0;
  box-shadow: 0 4px 18px rgba(100,87,249,0.4);
  transform: translateY(-1px);
}

/* Ghost — quiet secondary */
.btn-ghost {
  background: #ffffff;
  color: var(--glve-text-muted);
  border: 1px solid rgba(10,23,41,0.12);
  font-weight: 500;
}
.btn-ghost:hover { background: var(--glve-blue-soft); color: var(--glve-navy); border-color: rgba(51,133,209,0.25); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ── Search screen full-page layout ───────────────────────── */
.main-search {
  display: block;
  flex: 1;
  overflow-y: auto;
}

/* ── Lead Search screen ────────────────────────────────────── */
.ls-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px 72px;
}

/* GLVE wordmark — minimal label above headline */
.ls-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--glve-text-muted);
  margin-bottom: 44px;
  text-transform: uppercase;
}
.ls-wordmark-tag {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #C84B11;
  text-transform: none;
  border-left: 1px solid rgba(200,75,17,0.25);
  padding-left: 10px;
}

.ls-header { margin-bottom: 36px; }

.ls-title {
  font-size: 36px;
  font-weight: 600;
  color: var(--glve-text-primary);
  line-height: 1.2;
  max-width: 520px;
  letter-spacing: -0.02em;
}
.ls-desc {
  font-size: 15px;
  color: var(--glve-text-muted);
  margin-top: 8px;
  max-width: 520px;
  font-weight: 400;
  line-height: 1.6;
}

/* Field groups with labels */
.ls-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.ls-field-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(10,23,41,0.4);
}

/* Search input — no button beside it */
.ls-search-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}
.ls-input-wrap { position: relative; width: 100%; }
.ls-autocomplete-wrap { position: relative; }
.ls-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(51,133,209,0.25);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10,23,41,0.1);
  z-index: 100;
  overflow: hidden;
}
.ls-suggestion {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--glve-text-primary);
  cursor: pointer;
  border-bottom: 1px solid rgba(51,133,209,0.08);
  transition: background 0.1s;
}
.ls-suggestion:last-child { border-bottom: none; }
.ls-suggestion:hover { background: var(--glve-blue-soft); color: var(--glve-blue); }
.ls-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--glve-text-muted);
  pointer-events: none;
  line-height: 1;
}
.ls-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--glve-border);
  border-radius: 14px;
  padding: 14px 16px 14px 42px;
  font-size: 14px;
  color: var(--glve-text-primary);
  outline: none;
  transition: border-color 0.2s ease;
  font-family: inherit;
}
.ls-input:focus { border-color: var(--glve-navy); }
.ls-input::placeholder { color: var(--glve-text-muted); }

/* Filter chips */
.ls-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 0;
}
.ls-chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--glve-border);
  background: #ffffff;
  color: var(--glve-text-muted);
  transition: all 0.2s ease;
  user-select: none;
}
.ls-chip:hover { border-color: var(--glve-blue); color: var(--glve-text-primary); }
.ls-chip.active {
  background: var(--glve-blue-soft);
  border-color: var(--glve-blue);
  color: var(--glve-navy);
  box-shadow: 0 2px 8px rgba(51, 133, 209, 0.15);
}
/* Override old color-coded active states */
.ls-chip-hot.active, .ls-chip-warm.active, .ls-chip-cold.active {
  background: var(--glve-blue-soft);
  border-color: var(--glve-blue);
  color: var(--glve-navy);
  box-shadow: 0 2px 8px rgba(51, 133, 209, 0.15);
}

/* CTA button */
.ls-cta-wrap { margin-top: 40px; }
.ls-cta {
  width: 100%;
  background: var(--glve-navy);
  color: #ffffff;
  border-radius: 16px;
  padding: 20px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(10, 23, 41, 0.25);
  font-family: inherit;
  letter-spacing: 0.01em;
}
.ls-cta:hover {
  background: #C84B11;
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(200, 75, 17, 0.55);
}
.ls-cta:active { transform: translateY(0); }

/* Footer */
.global-footer {
  text-align: center;
  padding: 12px;
  font-size: 11px;
  color: rgba(10,23,41,0.3);
  letter-spacing: 0.06em;
  font-weight: 400;
}
.ls-footer {
  margin-top: 48px;
  font-size: 11px;
  color: rgba(10,23,41,0.3);
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* API key input */
.ls-api-wrap {
  margin-top: 12px;
}
.ls-api-input {
  width: 100%;
  font-size: 11px;
  padding: 9px 12px;
  border: 1px dashed rgba(51,133,209,0.3);
  border-radius: 8px;
  background: transparent;
  color: var(--glve-text-muted);
  outline: none;
  font-family: monospace;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, background 0.2s;
}
.ls-api-input:focus {
  border-color: var(--glve-blue);
  border-style: solid;
  background: var(--glve-blue-soft);
}
.ls-api-input::placeholder { color: rgba(10,23,41,0.3); }

/* Results meta */
.ls-results-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; margin-top: 32px; }
.btn-csv {
  display: inline-flex; align-items: center;
  background: none;
  border: 1px solid var(--glve-blue-border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--glve-blue);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.btn-csv:hover { background: var(--glve-blue-soft); border-color: var(--glve-blue); }
.ls-result-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--glve-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Empty state */
.ls-empty {
  text-align: center;
  padding: 64px 0;
  color: var(--glve-text-muted);
}
.ls-empty-icon { font-size: 32px; margin-bottom: 14px; opacity: 0.3; }
.ls-empty-title { font-size: 15px; font-weight: 600; color: var(--glve-text-primary); margin-bottom: 6px; }
.ls-empty-desc { font-size: 13px; color: var(--glve-text-muted); }

/* Card base */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(51,133,209,0.2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}
.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}

/* ── Lead cards ─────────────────────────────────────────── */
.lead-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-card {
  cursor: pointer;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(51,133,209,0.2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  user-select: none;
  overflow: hidden;
}
.lead-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10,23,41,0.08);
  border-color: var(--glve-blue);
}
.lead-card.selected {
  border-color: var(--glve-navy);
  box-shadow: 0 0 0 2px rgba(10,23,41,0.06);
}
.lead-card.selected .lc-body {
  background: var(--glve-blue-soft);
}

/* ── 3-column body ───────────────────────────────────────── */
.lc-body {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  gap: 0;
}

/* Left: avatar + name + title */
.lc-left {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 210px;
  flex-shrink: 0;
  padding-right: 22px;
  border-right: 1px solid var(--glve-border);
}
.lc-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glve-blue-soft);
  color: var(--glve-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}
.lc-person-info {
  min-width: 0;
}
.lc-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.lc-title-text {
  font-size: 11.5px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Middle: company + meta */
.lc-middle {
  flex: 1;
  min-width: 0;
  padding: 0 22px;
  border-right: 1px solid var(--glve-border);
}
.lc-company-name {
  font-size: 16px;
  font-weight: 800;
  color: #060d1f;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-company-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.lc-industry {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 5px;
}
.lc-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
}
.lc-location {
  font-size: 12px;
  color: #9ca3af;
}

/* Right: badge + score + bar */
.lc-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-left: 22px;
  width: 130px;
  flex-shrink: 0;
}
.lc-score-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.lc-score-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b0b7c3;
  margin-top: -2px;
}
.lc-score-bar-wrap { width: 90px; }
.lc-score-bar {
  width: 100%;
  height: 4px;
  background: rgba(10,23,41,0.08);
  border-radius: 99px;
  overflow: hidden;
}
.lc-score-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--glve-blue);
  opacity: 0.85;
}

/* Signal strip */
.lc-signal {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 22px;
  background: #fffdf5;
  border-top: 1px solid #f5f0e0;
}
.lc-signal-icon {
  font-size: 12px;
  flex-shrink: 0;
  line-height: 1.6;
}
.lc-signal-text {
  font-size: 12px;
  font-weight: 600;
  color: #78350f;
  line-height: 1.6;
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.badge-hot  { background: #C84B11; color: #ffffff; border: 1px solid #C84B11; }
.badge-warm { background: #3385D1; color: #ffffff; border: 1px solid #3385D1; }
.badge-cold { background: #6457f9; color: #ffffff; border: 1px solid #6457f9; }

/* Section header */
.section-title { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.section-desc { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.section-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }

/* Insight card — overview rows */
.row-list {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid rgba(51,133,209,0.2);
}

.row-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glve-border);
}
.row-item:last-child { border-bottom: none; }
.row-item:hover { background: var(--glve-bg-soft); }

.row-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9ca3af;
  font-weight: 700;
}
.row-value {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  line-height: 1.6;
}
.row-value.accent { color: var(--accent); font-weight: 600; }
.row-value.red { color: var(--red); font-weight: 600; }
.row-value.green { color: var(--green); font-weight: 600; }
.row-value.yellow { color: var(--yellow); font-weight: 600; }

/* Summary — prominent first row */
.summary-block {
  background: #ffffff;
  border-bottom: 1px solid rgba(51,133,209,0.12) !important;
  padding: 20px 20px 22px;
}
.summary-text {
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  line-height: 1.75;
  margin: 0;
  margin-top: 6px;
}

/* Signal/insight rows */
.signal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.signal-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  line-height: 1.6;
  transition: border-color 0.15s ease;
}
.signal-row:hover {
  border-color: rgba(10,23,41,0.1);
}

.signal-row.insight {
  background: var(--glve-blue-soft);
  border-color: rgba(51,133,209,0.2);
}
.signal-row.pain {
  background: #fff5f5;
  border-color: #fecaca;
}

.signal-icon {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1.6;
}
.signal-row.insight .signal-icon { color: var(--glve-navy); }
.signal-row.pain .signal-icon { color: var(--red); }

.signal-text {
  font-size: 13.5px;
  font-weight: 500;
  color: #111827;
  line-height: 1.6;
}

/* Overview two-column grid */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.overview-grid .summary-block {
  grid-column: 1 / -1;
}
/* Left column items get a right border */
.overview-grid .row-item:nth-child(even) {
  border-right: 1px solid rgba(51,133,209,0.12);
}
/* Second-to-last item is in the last row — remove its bottom border */
.overview-grid .row-item:nth-last-child(2) {
  border-bottom: none;
}

/* Tech tags */
.tech-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tech-tag {
  padding: 2px 8px;
  background: var(--glve-blue-soft);
  border: 1px solid rgba(51,133,209,0.2);
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  color: var(--glve-navy);
}

/* Executive Insight */
.executive-insight {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--glve-blue-soft);
  border: 1px solid rgba(51,133,209,0.25);
}
.ei-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--glve-navy);
}
.ei-text {
  font-size: 14.5px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.7;
  margin: 0;
}

/* Stats inline */
.stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.stat-cell {
  flex: 1;
  padding: 14px 18px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid rgba(51,133,209,0.2);
}
.stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.stat-value { font-size: 18px; font-weight: 700; }
.stat-change { font-size: 11px; margin-top: 2px; }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

/* Sequence */
.sequence-list { display: flex; flex-direction: column; gap: 12px; }

.sequence-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid rgba(51,133,209,0.2);
  transition: border-color 0.15s ease;
}
.sequence-item:hover {
  border-color: var(--glve-blue);
}

.seq-step {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.seq-meta { min-width: 80px; flex-shrink: 0; }
.seq-day { font-size: 11px; color: var(--muted); font-weight: 600; }
.seq-body { flex: 1; }
.seq-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.seq-preview {
  font-size: 12px;
  color: var(--muted);
  background: var(--surface2);
  border-radius: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  white-space: pre-wrap;
  line-height: 1.6;
  font-family: inherit;
  margin-top: 6px;
}

.seq-channel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.seq-channel.email { background: var(--glve-blue-soft); color: var(--glve-navy); }
.seq-channel.linkedin { background: #e6f4ea; color: var(--green); }
.seq-channel.call { background: #fff8e6; color: var(--yellow); }

/* Action list */
.action-list { display: flex; flex-direction: column; gap: 10px; }

.action-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid rgba(51,133,209,0.2);
  transition: border-color 0.15s ease;
}
.action-item:hover {
  border-color: var(--glve-blue);
}
.action-item.done { opacity: 0.45; }
.action-item.done .action-title { text-decoration: line-through; }

.action-checkbox {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.12s;
}
.action-checkbox.checked { background: var(--accent); border-color: var(--accent); }

.action-body { flex: 1; }
.action-title { font-weight: 500; font-size: 13px; margin-bottom: 2px; }
.action-desc { font-size: 12px; color: var(--muted); }
.action-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.priority-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.priority-high { background: var(--red); }
.priority-med { background: var(--yellow); }
.priority-low { background: var(--green); }
.action-due { font-size: 11px; color: var(--muted); }

/* Sidebar */
.sidebar-stat { padding: 10px 0; border-bottom: 1px solid rgba(51,133,209,0.12); }
.sidebar-stat:last-child { border-bottom: none; }
.sidebar-stat .s-label { font-size: 11px; color: rgba(10,23,41,0.4); font-weight: 400; }
.sidebar-stat .s-val { font-size: 18px; font-weight: 600; margin-top: 2px; }

/* Empty / loading */
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-state .icon { font-size: 32px; margin-bottom: 10px; }
.empty-state h3 { font-size: 14px; color: var(--text); margin-bottom: 4px; }

.loading { display: flex; align-items: center; gap: 8px; color: var(--muted); padding: 20px 0; font-size: 13px; }
.spinner {
  width: 15px; height: 15px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.refresh-exhausted { font-size: 12px; color: var(--glve-text-muted); font-style: italic; }

.divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 28px;
}
.section-label:first-of-type { margin-top: 0; }

/* Progress bar */
.progress-wrap {
  margin-bottom: 20px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.progress-label { font-size: 13px; font-weight: 600; color: var(--text); }
.progress-count { font-size: 12px; color: var(--muted); }
.progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.progress-fill.complete { background: var(--green); }

.success-bar {
  padding: 12px 16px;
  border: 1px solid #b2f2bb;
  border-radius: var(--radius);
  background: #f0fdf4;
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
  margin-top: 16px;
}
