/* ValenceCRM — lime-on-charcoal theme from the Valence mark, over Bootstrap 5. */

:root {
  --vc-bg-page: #f4f6f1;
  --vc-bg-surface: #ffffff;
  --vc-ink: #111213;
  --vc-ink-secondary: #5f6758;
  --vc-line: #e3e7dc;
  --vc-primary: #4a7a12;
  --vc-primary-soft: #eef6d4;
  --vc-accent: #bdff40;
  --vc-accent-hover: #a8e838;
  --vc-success: #1f8a5b;
  --vc-success-soft: #e8f7ef;
  --vc-warning: #b7791f;
  --vc-warning-soft: #fff4df;
  --vc-danger: #c23b3b;
  --vc-danger-soft: #fdecec;
  --vc-info: #4a7a12;

  --vc-space-1: 8px;
  --vc-space-2: 16px;
  --vc-space-3: 24px;
  --vc-space-4: 32px;

  --vc-radius-control: 7px;
  --vc-radius-card: 9px;
  --vc-radius-pill: 999px;

  --vc-sidebar-w: 220px;
  --vc-content-max: 1320px;
  --vc-shell-max: calc(var(--vc-content-max) + var(--vc-sidebar-w));
  --vc-sidebar-bg: #111213;
  --vc-sidebar-bg-hover: #1c1d1e;
  --vc-sidebar-ink: #f4f5f2;
  --vc-sidebar-ink-muted: #9aa19a;
  --vc-sidebar-active-bg: rgba(189, 255, 64, 0.14);
  --vc-sidebar-active-ink: #bdff40;
  --vc-sidebar-border: #2a2b2c;

  --vc-font: "IBM Plex Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --vc-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --vc-shadow-soft: 0 1px 0 rgba(17, 18, 19, 0.05);
}

body.vc-app {
  background: var(--vc-bg-page);
  color: var(--vc-ink);
  font-family: var(--vc-font);
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.vc-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: var(--vc-accent);
  color: var(--vc-ink);
  padding: var(--vc-space-1) var(--vc-space-2);
  border-radius: 0 0 8px 0;
}
.vc-skip-link:focus {
  left: 0;
}

.vc-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.vc-sidebar {
  width: var(--vc-sidebar-w);
  background: var(--vc-sidebar-bg);
  color: var(--vc-sidebar-ink);
  border-right: 1px solid var(--vc-sidebar-border);
  flex-shrink: 0;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vc-sidebar-desktop {
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  box-sizing: border-box;
}
.vc-sidebar-desktop nav[aria-label="Primary"] {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.vc-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--vc-sidebar-ink);
  text-decoration: none;
  padding: 2px 8px 18px;
  letter-spacing: -0.03em;
}
.vc-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #0b0b0b;
  flex-shrink: 0;
  display: block;
}
.vc-brand-text {
  white-space: nowrap;
}
.vc-brand-crm {
  color: var(--vc-accent);
  font-weight: 700;
}

.vc-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--vc-sidebar-ink-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}
.vc-nav-link i {
  font-size: 0.95rem;
  opacity: 0.85;
  width: 1.1rem;
  text-align: center;
}
.vc-nav-link:hover {
  background: var(--vc-sidebar-bg-hover);
  color: var(--vc-sidebar-ink);
}
.vc-nav-link[aria-current="page"] {
  background: var(--vc-sidebar-active-bg);
  color: var(--vc-sidebar-active-ink);
  font-weight: 600;
}
.vc-nav-link[aria-current="page"] i {
  opacity: 1;
  color: var(--vc-sidebar-active-ink);
}

.vc-sidebar-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 16px;
  border-top: 1px solid var(--vc-sidebar-border);
  color: var(--vc-sidebar-ink-muted);
  font-size: 0.82rem;
}

.vc-main {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: var(--vc-content-max);
  padding: 22px 28px 40px;
}

.vc-topbar {
  display: none;
  align-items: center;
  gap: var(--vc-space-2);
  background: var(--vc-sidebar-bg);
  color: var(--vc-sidebar-ink);
  border-bottom: 1px solid var(--vc-sidebar-border);
  padding: 10px 14px;
}
.vc-topbar .btn-outline-light {
  --bs-btn-color: var(--vc-sidebar-ink);
  --bs-btn-border-color: #3a3b3c;
  --bs-btn-hover-bg: var(--vc-sidebar-bg-hover);
  --bs-btn-hover-border-color: #3a3b3c;
  --bs-btn-hover-color: var(--vc-sidebar-ink);
  --bs-btn-active-bg: var(--vc-sidebar-bg-hover);
  --bs-btn-active-border-color: #3a3b3c;
  --bs-btn-active-color: var(--vc-sidebar-ink);
}

.vc-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0 0 22px;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--vc-line);
  background: var(--vc-bg-page);
  position: sticky;
  top: 0;
  z-index: 20;
}
.vc-page-header-copy {
  min-width: 0;
  flex: 1 1 220px;
}
.vc-page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.vc-page-eyebrow {
  margin: 0 0 2px;
  color: var(--vc-ink-secondary);
  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vc-page-title {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
  color: var(--vc-ink);
}
.vc-page-subtitle {
  margin: 4px 0 0;
  color: var(--vc-ink-secondary);
  font-size: 0.84rem;
  line-height: 1.4;
  max-width: 40rem;
}

#messages .alert-danger {
  background: var(--vc-danger-soft);
  border-color: color-mix(in srgb, var(--vc-danger) 35%, white);
  color: #8a2222;
}

/* Surfaces */
.vc-card {
  background: var(--vc-bg-surface);
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius-card);
  padding: 16px 18px;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--vc-shadow-soft);
}
a.vc-card:hover {
  border-color: #c9cce0;
  background: #fcfcfd;
}
.vc-card--due {
  border-left: 2px solid var(--vc-warning);
}
.vc-card--stale {
  border-left: 2px solid #9ca3af;
}
.vc-meta {
  color: var(--vc-ink-secondary);
  font-size: 0.8rem;
}

/* KPI strip — flat, dense */
.vc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
@media (min-width: 992px) {
  .vc-kpi-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.vc-kpi {
  background: var(--vc-bg-surface);
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius-card);
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 68px;
  box-shadow: var(--vc-shadow-soft);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.vc-kpi:hover {
  border-color: #c9cce0;
  background: #fcfcfd;
}
.vc-kpi-number {
  font-family: var(--vc-font-mono);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--vc-ink);
}
.vc-kpi-label {
  color: var(--vc-ink-secondary);
  font-size: 0.74rem;
  font-weight: 500;
  margin-top: 2px;
}
.vc-kpi--blue .vc-kpi-number {
  color: var(--vc-primary);
}
.vc-kpi--green .vc-kpi-number {
  color: var(--vc-success);
}
.vc-kpi--orange .vc-kpi-number {
  color: var(--vc-warning);
}
.vc-card--accent {
  border-top: 2px solid var(--vc-primary);
}
.vc-card--muted {
  background: color-mix(in srgb, var(--vc-bg-page) 55%, white);
  box-shadow: none;
}
.vc-record-header {
  display: inline-block;
  max-width: min(28rem, 100%);
  min-width: 16rem;
  margin-bottom: 12px;
  vertical-align: top;
}
.vc-record-header--wide {
  display: block;
  max-width: 100%;
  min-width: 0;
}
.vc-record-header .vc-card {
  margin-bottom: 0;
}

/* Opportunity header: title left, stage control right */
.vc-opp-header-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin-bottom: 0;
  overflow: visible;
}
.vc-opp-header-title {
  flex: 1 1 200px;
  min-width: 0;
}
.vc-stage-control {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0 0;
  overflow: visible;
}
.vc-stage-badge-wrap {
  display: inline-flex;
  align-items: stretch;
  border-radius: var(--vc-radius-pill);
  border: 1px solid var(--vc-line);
  background: var(--vc-bg-surface);
  box-shadow: var(--vc-shadow-soft);
}
.vc-stage-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border-radius: var(--vc-radius-pill);
}
.vc-stage-badge--new,
.vc-stage-badge--prospect,
.vc-stage-badge--discovery,
.vc-stage-badge--qualified,
.vc-stage-badge--problem_validated {
  background: var(--vc-primary-soft);
  color: var(--vc-primary);
}
.vc-stage-badge--solution_shaped,
.vc-stage-badge--proposal,
.vc-stage-badge--negotiation,
.vc-stage-badge--decision {
  background: #eef6d4;
  color: #3d6b0a;
}
.vc-stage-badge--won,
.vc-stage-badge--active {
  background: var(--vc-success-soft);
  color: var(--vc-success);
}
.vc-stage-badge--lost,
.vc-stage-badge--unqualified,
.vc-stage-badge--churned {
  background: #f0f1f4;
  color: var(--vc-ink-secondary);
}

.vc-stage-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
.vc-stage-rail-sep {
  color: #9aa1ad;
  font-size: 0.75rem;
}
.vc-stage-step {
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--vc-ink-secondary);
}
.vc-stage-step--done {
  color: var(--vc-ink);
}
.vc-stage-step--current {
  font-weight: 650;
}
.vc-stage-step--upcoming,
.vc-stage-step--lost_exit {
  color: #9aa1ad;
}
.vc-stage-moves {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vc-opp-header-meta {
  flex: 1 1 100%;
}

@media (max-width: 767px) {
  .vc-stage-control {
    flex-basis: 100%;
    border-left: 0;
    border-top: 1px solid var(--vc-line);
    padding: 14px 0 0;
  }
}
.vc-related-opps {
  display: grid;
  gap: 8px;
}
.vc-related-opps > .vc-card {
  margin-bottom: 0;
}
.vc-card--accent > .vc-next-action {
  margin-bottom: 0;
}
.vc-deal-progress .form-label {
  font-size: 0.8rem;
}

.vc-money {
  font-family: var(--vc-font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--vc-ink);
  white-space: nowrap;
}
.vc-work-queue {
  margin: 0;
}
.vc-work-item {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--vc-line);
}
.vc-work-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.vc-kind-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  margin-top: 1px;
  flex-shrink: 0;
  border-radius: var(--vc-radius-pill);
  font-family: var(--vc-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.vc-kind-mark--lead {
  background: var(--vc-accent);
  color: #111213;
}
.vc-kind-mark--opportunity {
  background: var(--vc-success);
  color: #fff;
}
.vc-stage-bars {
  margin: 0;
}
.vc-stage-bar {
  padding: 8px 0;
}
.vc-stage-bar + .vc-stage-bar {
  border-top: 1px solid var(--vc-line);
}
.vc-bar {
  height: 6px;
  margin-top: 7px;
  border-radius: 999px;
  background: #eef0f4;
  overflow: hidden;
}
.vc-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8bc926 0%, var(--vc-accent) 100%);
  min-width: 0;
}

.vc-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (min-width: 992px) {
  .vc-overview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.vc-lead-pie-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.vc-lead-pie-chart {
  flex-shrink: 0;
  width: 148px;
  height: 148px;
}
.vc-lead-pie-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.vc-lead-pie-track {
  fill: none;
  stroke: #eef0f4;
  stroke-width: 5.5;
}
.vc-lead-pie-segment {
  fill: none;
  stroke-width: 5.5;
  stroke-linecap: butt;
}
.vc-lead-pie-svg-total {
  font-family: var(--vc-font-mono);
  font-size: 5.5px;
  font-weight: 600;
  fill: var(--vc-ink);
}
.vc-lead-pie-svg-label {
  font-family: var(--vc-font);
  font-size: 2.6px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--vc-ink-secondary);
}
.vc-lead-pie-legend {
  flex: 1 1 180px;
  min-width: 0;
  display: grid;
  gap: 6px;
}
.vc-lead-pie-legend-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--vc-line);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: #fafbfc;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.vc-lead-pie-legend-link:hover {
  border-color: #c9cce0;
  background: #fff;
}
.vc-lead-pie-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 17, 21, 0.06);
}
.vc-lead-pie-legend-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--vc-ink);
}
.vc-lead-pie-legend-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-align: right;
}
.vc-lead-pie-legend-count {
  font-family: var(--vc-font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--vc-ink);
}
.vc-lead-pie-legend-pct {
  font-size: 0.75rem;
  color: var(--vc-ink-secondary);
  min-width: 2rem;
}

.vc-active-deals,
.vc-active-leads {
  margin-bottom: 0;
}
.vc-overview-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (min-width: 992px) {
  .vc-overview-actions-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.vc-my-action-list {
  margin: 0;
}
.vc-my-action-list-head,
.vc-my-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
  gap: 12px 16px;
  align-items: start;
}
.vc-my-action-list-head {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--vc-line);
  color: var(--vc-ink-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.vc-my-action-row {
  padding: 12px 0;
  border-top: 1px solid var(--vc-line);
}
.vc-my-action-list-head + .vc-my-action-row {
  border-top: 0;
  padding-top: 10px;
}
.vc-my-action-row--due {
  background: linear-gradient(90deg, rgba(183, 121, 31, 0.06) 0%, transparent 42%);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 8px;
}
.vc-my-action-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.vc-my-action-due {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
@media (max-width: 767px) {
  .vc-my-action-list-head {
    display: none;
  }
  .vc-my-action-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 0;
  }
}
.vc-deal-list {
  margin: 0;
}
.vc-deal-list-head,
.vc-deal-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr) auto;
  gap: 12px 16px;
  align-items: start;
}
.vc-deal-list-head {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--vc-line);
  color: var(--vc-ink-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.vc-deal-list-head-value {
  text-align: right;
}
.vc-deal-row {
  padding: 12px 0;
  border-top: 1px solid var(--vc-line);
}
.vc-deal-row:first-of-type {
  border-top: 0;
}
.vc-deal-list-head + .vc-deal-row {
  border-top: 0;
  padding-top: 10px;
}
.vc-deal-row--due {
  background: linear-gradient(90deg, rgba(183, 121, 31, 0.06) 0%, transparent 42%);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 8px;
}
.vc-deal-title {
  display: block;
  color: var(--vc-ink);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.vc-deal-title:hover {
  color: var(--vc-primary);
}
.vc-deal-stage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.vc-deal-value {
  text-align: right;
  padding-top: 2px;
  white-space: nowrap;
}

.vc-action-list {
  margin: 0;
}
.vc-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--vc-line);
}
.vc-action-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.vc-action-row--closed {
  opacity: 0.72;
}
.vc-action-title {
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--vc-ink);
}
.vc-action-create .form-label {
  font-size: 0.78rem;
}
.vc-action-create .mb-3:last-child {
  margin-bottom: 0 !important;
}
.vc-action-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.vc-action-edit-form {
  display: contents;
}
.vc-action-edit-form > input[type="hidden"] {
  display: none;
}
.vc-action-status .form-select,
.vc-action-assignee .form-select {
  width: 100%;
}
@media (max-width: 767px) {
  .vc-action-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .vc-action-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .vc-deal-list-head {
    display: none;
  }
  .vc-deal-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "primary value"
      "stage stage";
    gap: 6px 12px;
    padding: 14px 0;
  }
  .vc-deal-primary { grid-area: primary; }
  .vc-deal-stage { grid-area: stage; }
  .vc-deal-value { grid-area: value; align-self: start; }
}

/* Status chips — quiet */
.vc-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: var(--vc-radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #f0f1f4;
  color: #374151;
}
.vc-chip--new,
.vc-chip--prospect,
.vc-chip--discovery,
.vc-chip--qualified,
.vc-chip--problem_validated {
  background: var(--vc-primary-soft);
  color: var(--vc-primary);
}
.vc-chip--solution_shaped,
.vc-chip--proposal,
.vc-chip--decision {
  background: #eef6d4;
  color: #3d6b0a;
}
.vc-chip--in_progress {
  background: var(--vc-warning-soft);
  color: var(--vc-warning);
}
.vc-chip--closed {
  background: #f0f1f4;
  color: var(--vc-ink-secondary);
}
.vc-chip--won,
.vc-chip--active {
  background: var(--vc-success-soft);
  color: var(--vc-success);
}
.vc-chip--due {
  background: var(--vc-warning-soft);
  color: var(--vc-warning);
}
.vc-chip--today {
  background: var(--vc-primary-soft);
  color: var(--vc-primary);
}
.vc-chip--stale,
.vc-chip--unqualified,
.vc-chip--lost,
.vc-chip--churned {
  background: #f0f1f4;
  color: var(--vc-ink-secondary);
}

/* Controls */
.btn,
.form-control,
.form-select,
.dropdown-menu,
.modal-content {
  border-radius: var(--vc-radius-control);
}
.btn {
  min-height: 34px;
  padding: 0.35rem 0.85rem;
  font-weight: 550;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}
.btn-sm {
  min-height: 30px;
  font-size: 0.78rem;
}
.form-control,
.form-select {
  min-height: 36px;
  font-size: 0.9rem;
  border-color: var(--vc-line);
  background-color: #fff;
}
.form-control:focus,
.form-select:focus {
  border-color: #9cbc4a;
  box-shadow: 0 0 0 3px rgba(189, 255, 64, 0.28);
}
.btn-primary {
  --bs-btn-color: #111213;
  --bs-btn-bg: var(--vc-accent);
  --bs-btn-border-color: var(--vc-accent);
  --bs-btn-hover-color: #111213;
  --bs-btn-hover-bg: var(--vc-accent-hover);
  --bs-btn-hover-border-color: var(--vc-accent-hover);
  --bs-btn-active-color: #111213;
  --bs-btn-active-bg: #96d12e;
  --bs-btn-active-border-color: #96d12e;
}
.btn-outline-primary {
  --bs-btn-color: var(--vc-primary);
  --bs-btn-border-color: #c5d69a;
  --bs-btn-hover-bg: var(--vc-primary-soft);
  --bs-btn-hover-border-color: #b3c878;
  --bs-btn-hover-color: var(--vc-primary);
  --bs-btn-active-bg: var(--vc-primary-soft);
  --bs-btn-active-border-color: var(--vc-primary);
  --bs-btn-active-color: var(--vc-primary);
}
.btn-outline-secondary {
  --bs-btn-color: #374151;
  --bs-btn-border-color: var(--vc-line);
  --bs-btn-hover-bg: #f0f1f4;
  --bs-btn-hover-border-color: #d5d8de;
  --bs-btn-hover-color: var(--vc-ink);
}
.btn-pill {
  border-radius: var(--vc-radius-control);
}
.vc-scope-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

a:focus-visible,
button:focus-visible,
.vc-nav-link:focus-visible {
  outline: 2px solid rgba(189, 255, 64, 0.85);
  outline-offset: 1px;
  box-shadow: none;
}

.vc-empty {
  text-align: left;
  padding: 20px 4px;
  color: var(--vc-ink-secondary);
  font-size: 0.9rem;
}

.vc-activity {
  border-bottom: 1px solid var(--vc-line);
  padding: 10px 0;
}
.vc-activity--new {
  background: var(--vc-primary-soft);
}

/* Pipeline — thin deal rows */
.vc-pipeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}
@media (max-width: 767px) {
  .vc-pipeline {
    grid-auto-flow: row;
    grid-auto-columns: unset;
  }
}
.vc-pipeline-col {
  background: transparent;
  min-width: 0;
}
.vc-pipeline-col-title {
  font-weight: 650;
  font-size: 0.8rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--vc-ink);
}
.vc-pipeline-card {
  display: block;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.vc-pipeline-card:hover {
  border-color: #c9cce0;
  background: #fcfcfd;
  color: inherit;
}
.vc-pipeline-card-title {
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  color: var(--vc-primary);
  transition: color 0.12s ease;
}
.vc-pipeline-card:hover .vc-pipeline-card-title {
  color: #4545c0;
}
.vc-pipeline-card-lead {
  color: var(--vc-ink-secondary);
  font-size: 0.74rem;
  margin-top: 2px;
}
.vc-pipeline-card-meta {
  color: var(--vc-ink-secondary);
  font-size: 0.74rem;
}
.vc-pipeline-card-meta .vc-chip {
  margin-top: 4px;
  font-size: 0.68rem;
  padding: 1px 6px;
}

/* Help */
.vc-help-intro {
  max-width: 720px;
  color: var(--vc-ink-secondary);
  margin-bottom: var(--vc-space-3);
  font-size: 0.95rem;
  line-height: 1.55;
}
.vc-help-section-title {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: var(--vc-space-2);
}
.vc-help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: var(--vc-space-4);
}
@media (min-width: 768px) {
  .vc-help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .vc-help-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.vc-help-tile {
  background: var(--vc-bg-surface);
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius-card);
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vc-help-tile-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.vc-help-tile-icon--lead { background: var(--vc-primary-soft); color: var(--vc-primary); }
.vc-help-tile-icon--contact { background: #f0f1f4; color: var(--vc-ink); }
.vc-help-tile-icon--opportunity { background: var(--vc-warning-soft); color: var(--vc-warning); }
.vc-help-tile-icon--activity { background: var(--vc-success-soft); color: var(--vc-success); }
.vc-help-tile-icon--customer { background: #f0f1f4; color: var(--vc-ink); }
.vc-help-tile-icon--industry { background: var(--vc-primary-soft); color: var(--vc-primary); }
.vc-help-tile h2 {
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0;
}
.vc-help-tile p {
  margin: 0;
  color: var(--vc-ink-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
}
.vc-help-tile-relates {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--vc-line);
  font-size: 0.75rem;
  color: var(--vc-ink-secondary);
}
.vc-help-tile-relates strong {
  color: var(--vc-ink);
  font-weight: 600;
}
.vc-help-lifecycle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: var(--vc-space-4);
}
@media (min-width: 768px) {
  .vc-help-lifecycle {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .vc-help-lifecycle {
    grid-template-columns: repeat(3, 1fr);
  }
}
.vc-help-lifecycle-item {
  background: var(--vc-bg-surface);
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius-card);
  padding: 14px;
}
.vc-help-lifecycle-item h3 {
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0 0 6px;
}
.vc-help-lifecycle-item p {
  margin: 0;
  color: var(--vc-ink-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}
.vc-help-flow {
  background: var(--vc-bg-surface);
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius-card);
  padding: var(--vc-space-3);
  margin-bottom: var(--vc-space-4);
  overflow-x: auto;
}
.vc-help-flow-track {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.vc-help-flow-node {
  background: var(--vc-bg-page);
  border: 1px solid var(--vc-line);
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}
.vc-help-flow-arrow {
  color: var(--vc-primary);
  font-weight: 700;
}
.vc-help-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: help-step;
}
.vc-help-step {
  counter-increment: help-step;
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--vc-line);
}
.vc-help-step:last-child {
  border-bottom: none;
}
.vc-help-step::before {
  content: counter(help-step);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--vc-primary-soft);
  color: var(--vc-primary);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vc-help-step-body h3 {
  font-size: 0.92rem;
  font-weight: 650;
  margin: 0 0 4px;
}
.vc-help-step-body p {
  margin: 0;
  color: var(--vc-ink-secondary);
  font-size: 0.85rem;
}
.vc-help-step-body a {
  font-weight: 500;
}

/* Field help */
.vc-field-label-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0.3rem;
}
.vc-field-label-row .form-label,
.vc-field-label-row .form-check-label {
  margin-bottom: 0;
  font-size: 0.8rem;
  font-weight: 550;
  color: #374151;
}
th .vc-field-label-row,
dt .vc-field-label-row,
span.vc-field-label-row {
  margin-bottom: 0;
}
button.vc-field-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--vc-radius-control);
  background: transparent;
  color: var(--vc-ink-secondary);
  cursor: help;
}
button.vc-field-help .vc-field-help-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid #c4c7ce;
  border-radius: var(--vc-radius-pill);
  font-size: 0.55rem;
  font-weight: 600;
  font-family: var(--vc-font);
}
button.vc-field-help:hover .vc-field-help-mark,
button.vc-field-help:focus-visible .vc-field-help-mark {
  border-color: var(--vc-primary);
  color: var(--vc-primary);
  background: var(--vc-primary-soft);
}
.vc-tooltip .tooltip-inner {
  max-width: 280px;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 8px 10px;
}

/* Toolbars / tables / records */
.vc-toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}
.vc-data-table {
  display: none;
  overflow-x: auto;
  background: var(--vc-bg-surface);
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius-card);
  box-shadow: var(--vc-shadow-soft);
}
.vc-data-table .table {
  margin-bottom: 0;
  font-size: 0.85rem;
}
.vc-data-table .table thead th {
  background: #fafbfc;
  color: var(--vc-ink-secondary);
  font-size: 0.72rem;
  font-weight: 550;
  text-transform: none;
  letter-spacing: 0;
  border-bottom-color: var(--vc-line);
  white-space: nowrap;
}
.vc-data-table .table > :not(caption) > * > * {
  padding: 10px 12px;
  border-color: var(--vc-line);
  vertical-align: middle;
}
.vc-data-table .table tbody tr:hover {
  background: #fafbfc;
}
.vc-data-table a {
  color: var(--vc-ink);
  font-weight: 600;
  text-decoration: none;
}
.vc-data-table a:hover {
  color: var(--vc-primary);
}

.vc-mobile-list,
.vc-mobile-only {
  display: block;
}
.vc-desktop-only {
  display: none;
}

.vc-lead-header-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  padding: 0 4px 4px;
}
.vc-qualify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.vc-qualify-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.vc-qualify-mark {
  width: 1.25rem;
  color: var(--vc-ink-secondary);
}
.vc-qualify-item.is-complete .vc-qualify-mark {
  color: var(--vc-primary);
}
.vc-problem-signal + .vc-problem-signal {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--vc-line);
}

.vc-record-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.vc-property-rail,
.vc-next-action {
  background: var(--vc-bg-surface);
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius-card);
  padding: 14px 16px;
  box-shadow: var(--vc-shadow-soft);
}
.vc-next-action {
  border-left: 2px solid var(--vc-primary);
}
.vc-next-action--overdue {
  border-left-color: var(--vc-warning);
  background: color-mix(in srgb, var(--vc-warning-soft) 70%, white);
}
.vc-next-action--scheduled {
  border-left-color: var(--vc-primary);
}
.vc-next-action--missing {
  border-left-color: var(--vc-line);
}

.vc-timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
}
.vc-timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 4px;
  width: 1px;
  background: var(--vc-line);
  content: "";
}
.vc-timeline > * {
  position: relative;
  padding-bottom: 12px;
}
.vc-timeline > *::before {
  position: absolute;
  top: 7px;
  left: -17px;
  width: 7px;
  height: 7px;
  border-radius: var(--vc-radius-pill);
  background: var(--vc-primary);
  content: "";
}

.vc-stage-tabs,
.vc-activity-filters {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0 0 10px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}
.vc-activity-filters .btn {
  border-radius: 999px;
  font-weight: 550;
}

.htmx-request {
  pointer-events: none;
  opacity: 0.65;
}

.modal-header,
.modal-footer {
  border-color: var(--vc-line);
}
.modal-title {
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

@media (max-width: 767px) {
  .vc-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .vc-toolbar > * {
    width: 100%;
  }
  .vc-record-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 768px) {
  .vc-data-table,
  .vc-desktop-only {
    display: block;
  }
  .vc-deal-list-head {
    display: grid;
  }
  .vc-mobile-list,
  .vc-mobile-only {
    display: none;
  }
  .vc-record-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    align-items: start;
  }
  .vc-lead-header-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .vc-sidebar-desktop {
    display: none;
  }
  .vc-topbar {
    display: flex;
  }
  .vc-main {
    padding: 16px;
    margin-inline: auto;
  }
  .offcanvas.vc-sidebar {
    border-right: 1px solid var(--vc-sidebar-border);
  }
  .offcanvas.vc-sidebar .offcanvas-body {
    min-height: 0;
    flex: 1 1 auto;
  }
  .offcanvas.vc-sidebar nav[aria-label="Primary"] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
  .offcanvas.vc-sidebar .btn-close {
    filter: invert(1) grayscale(1);
  }
}

@media (min-width: 1540px) {
  .vc-shell {
    max-width: var(--vc-shell-max);
    margin-inline: auto;
  }
}

body.vc-auth-page {
  min-height: 100vh;
  background: #111213;
  font-family: var(--vc-font);
}
.vc-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.vc-auth-card {
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.vc-auth-card .vc-brand {
  margin-bottom: 18px;
  padding: 0;
  color: var(--vc-ink);
}

