.navbar-brand img {
  max-width:200px;
}
html[data-bs-theme="light"] .navbar-brand img {
  margin-top:22px;
  max-width:175px;
  height: auto;
}

html.smr-dashboard[data-bs-theme="light"] .navbar-brand img {
  width: 140px;
  max-width: 175px;
  height: 38px;
  margin-left: 20px;
}

/* ------------------------------
   LIGHT THEME TOKENS
---------------------------------*/
html[data-bs-theme="light"] .bg-black {
  background-color: transparent !important;
}
html[data-bs-theme="light"] {
  /* Core palette */
  --bs-body-bg: #f6f7fb;
  --bs-body-bg-rgb: 246,247,251;
  --bs-body-color: #101318;
  --bs-body-color-rgb: 16,19,24;

  --bs-secondary-color: #4a5568;
  --bs-secondary-bg: #ffffff;
  --bs-tertiary-bg: #f0f2f7;

  --bs-border-color: #d8deea;

  /* Brand accents */
  --bs-primary: rgb(255, 42, 105);
  --bs-primary-rgb: 255,42,105;

  --bs-link-color: rgb(255, 42, 105);
  --bs-link-hover-color: rgba(255, 42, 105, 0.75);

  /* Components */
  --bs-card-bg: rgba(255, 42, 105, 0.06);
  --bs-card-border-color: #d8deea;
  --bs-card-color: var(--bs-body-color);

  --bs-navbar-color: #2a3340;
  --bs-navbar-hover-color: #101318;
  --bs-navbar-brand-color: #101318;

  --bs-dropdown-bg: #ffffff;
  --bs-dropdown-border-color: #d8deea;
  --bs-dropdown-link-color: var(--bs-body-color);
  --bs-dropdown-link-hover-bg: #f3f5fa;

  --bs-offcanvas-bg: #ffffff;
  --bs-offcanvas-color: var(--bs-body-color);

  --bs-list-group-bg: #ffffff;
  --bs-list-group-color: var(--bs-body-color);
  --bs-list-group-border-color: #d8deea;

  --bs-table-color: var(--bs-body-color);
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(0,0,0,0.03);
  --bs-table-hover-bg: rgba(0,0,0,0.05);
  --bs-table-border-color: #d8deea;

  --bs-input-bg: #ffffff;
  --bs-input-border-color: #cfd7e6;
  --bs-input-color: var(--bs-body-color);
  --bs-input-placeholder-color: #7a8798;
  --bs-input-focus-border-color: rgba(255, 42, 105, 0.6);
  --bs-focus-ring-color: rgba(255, 42, 105, 0.2);

  --bs-tooltip-bg: #101318;
  --bs-tooltip-color: #ffffff;

  --bs-modal-bg: #ffffff;
  --bs-modal-border-color: #d8deea;
}

/* ------------------------------
   DARK THEME TOKENS (your current scheme)
   (kept here so the toggle swaps both ways)
---------------------------------*/
html[data-bs-theme="dark"] {
  --bs-body-bg: #0f1115;
  --bs-body-bg-rgb: 15,17,21;
  --bs-body-color: #fff;
  --bs-body-color-rgb: 214,217,223;

  --bs-secondary-color: #a8b0bd;
  --bs-secondary-bg: #161a22;
  --bs-tertiary-bg: #12161d;

  --bs-border-color: #263042;

  --bs-primary: rgb(255, 42, 105);
  --bs-primary-rgb: 255,42,105;

  --bs-link-color: rgb(255, 42, 105);
  --bs-link-hover-color: #a9ccff;

  --bs-card-bg: rgba(255, 42, 105, 0.1);
  --bs-card-border-color: #2a3244;
  --bs-card-color: var(--bs-body-color);

  --bs-navbar-color: #cfd5df;
  --bs-navbar-hover-color: #ffffff;
  --bs-navbar-brand-color: #e5eaf1;

  --bs-dropdown-bg: #11161f;
  --bs-dropdown-border-color: #2a3244;
  --bs-dropdown-link-color: var(--bs-body-color);
  --bs-dropdown-link-hover-bg: #1a2230;

  --bs-offcanvas-bg: #0f131b;
  --bs-offcanvas-color: var(--bs-body-color);

  --bs-list-group-bg: #11151d;
  --bs-list-group-color: var(--bs-body-color);
  --bs-list-group-border-color: #2a3244;

  --bs-table-color: var(--bs-body-color);
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255,255,255,0.05);
  --bs-table-hover-bg: rgba(255,255,255,0.08);
  --bs-table-border-color: #2a3244;

  --bs-input-bg: #0f141c;
  --bs-input-border-color: #2a3244;
  --bs-input-color: var(--bs-body-color);
  --bs-input-placeholder-color: #8a93a3;
  --bs-input-focus-border-color: rgba(255, 42, 105, 0.65);
  --bs-focus-ring-color: rgba(255, 42, 105, .25);

  --bs-tooltip-bg: #10141b;
  --bs-tooltip-color: #e1e5ec;

  --bs-modal-bg: #10141b;
  --bs-modal-border-color: #2a3244;
}

/* ------------------------------
   MAIN DASHBOARD (admin layout) — black / white brand
---------------------------------*/
html.smr-dashboard[data-bs-theme="light"] {
  --bs-body-bg: #ffffff;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-tertiary-bg: #f6f7fb;

  --bs-primary: #000000;
  --bs-primary-rgb: 0, 0, 0;

  --bs-link-color: #000000;
  --bs-link-hover-color: rgba(0, 0, 0, 0.75);

  --bs-card-bg: rgba(0, 0, 0, 0.04);

  --bs-input-focus-border-color: rgba(0, 0, 0, 0.6);
  --bs-focus-ring-color: rgba(0, 0, 0, 0.2);
}

html.smr-dashboard[data-bs-theme="light"] body {
  background-color: #ffffff;
}

html.smr-dashboard[data-bs-theme="dark"] {
  --bs-primary: #ffffff;
  --bs-primary-rgb: 255, 255, 255;

  --bs-link-color: #ffffff;
  --bs-link-hover-color: rgba(255, 255, 255, 0.75);

  --bs-card-bg: rgba(255, 255, 255, 0.06);
  --bs-card-color: #ffffff;

  --bs-input-focus-border-color: rgba(255, 255, 255, 0.65);
  --bs-focus-ring-color: rgba(255, 255, 255, 0.25);
}

html.smr-dashboard main {
  background-image: none;
  background-color: var(--bs-body-bg);
}

/* ------------------------------
   Component overrides (theme-agnostic)
---------------------------------*/

/* Buttons */
html .btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: rgba(var(--bs-primary-rgb), 0.85);
  --bs-btn-hover-border-color: rgba(var(--bs-primary-rgb), 0.85);
  --bs-btn-active-bg: rgb(var(--bs-primary-rgb));
  --bs-btn-active-border-color: rgb(var(--bs-primary-rgb));
  --bs-btn-disabled-bg: rgba(var(--bs-primary-rgb), 0.35);
  --bs-btn-disabled-border-color: rgba(var(--bs-primary-rgb), 0.35);
}

html.smr-dashboard[data-bs-theme="light"] .btn-primary {
  --bs-btn-color: #ffffff;
}

html.smr-dashboard[data-bs-theme="dark"] .btn-primary {
  --bs-btn-color: #101318;
}

html.smr-dashboard[data-bs-theme="dark"] .btn-outline-primary {
  --bs-btn-hover-color: #101318;
  --bs-btn-active-color: #101318;
}

html .btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-disabled-color: var(--bs-primary);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--bs-primary);
  --bs-gradient: none;
}

html .btn-outline-secondary,
html .btn-secondary {
  --bs-btn-color: var(--bs-body-color);
  --bs-btn-bg: var(--bs-tertiary-bg);
  --bs-btn-border-color: var(--bs-border-color);
  --bs-btn-hover-color: var(--bs-body-color);
  --bs-btn-hover-bg: var(--bs-secondary-bg);
  --bs-btn-hover-border-color: var(--bs-border-color);
}

/* Navbar */
html .navbar { box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
html[data-bs-theme="dark"] .navbar { box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
html .navbar .nav-link.active { color: var(--bs-body-color); }

/* Burger nav icon uses brand color in light mode */
html[data-bs-theme="light"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(255, 42, 105)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
html.smr-dashboard[data-bs-theme="light"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(0, 0, 0)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Sidebar list-group */
html .list-group-item {
  background-color: var(--bs-list-group-bg);
  color: var(--bs-list-group-color);
  border-color: var(--bs-list-group-border-color);
}
html .list-group-item:hover {
  background-color: rgba(0,0,0,0.03);
}
html[data-bs-theme="dark"] .list-group-item:hover {
  background-color: #17202e;
}
html .list-group-item.active {
  background-color: rgba(var(--bs-primary-rgb), 0.12);
  border-color: rgba(var(--bs-primary-rgb), 0.35);
  color: var(--bs-body-color);
}

/* Cards */
html .card {
  background-color: var(--bs-card-bg);
  border-color: var(--bs-card-border-color);
  color: var(--bs-card-color);
}
html .card-header {
  background-color: var(--bs-tertiary-bg);
  border-bottom-color: var(--bs-card-border-color);
}

/* Tables */
html .table > :not(caption) > * > * {
  box-shadow: inset 0 0 0 9999px transparent;
  color: var(--bs-body-color);
}
html .table thead th {
  background: var(--bs-tertiary-bg);
  border-bottom-color: var(--bs-table-border-color);
}

/* Forms */
html .form-control,
html .form-select {
  background-color: var(--bs-input-bg);
  color: var(--bs-input-color);
  border-color: var(--bs-input-border-color);
}
html .form-control::placeholder { color: var(--bs-input-placeholder-color); }
html .form-control:focus,
html .form-select:focus {
  border-color: var(--bs-input-focus-border-color);
  box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color);
}

/* Dropdowns */
html .dropdown-menu {
  background-color: var(--bs-dropdown-bg);
  border-color: var(--bs-dropdown-border-color);
}
html .dropdown-item:hover,
html .dropdown-item:focus {
  background-color: var(--bs-dropdown-link-hover-bg);
}

/* Status badges */
html .badge.bg-success { background-color: #18b66f !important; }
html .badge.bg-danger  { background-color: #ff5f74 !important; }
html .badge.bg-secondary { background-color: #6b7a92 !important; }

/* Offcanvas / modal */
html .offcanvas,
html .modal-content {
  background-color: var(--bs-offcanvas-bg);
  color: var(--bs-offcanvas-color);
  border-color: var(--bs-border-color);
}

/* Links */
html a { color: var(--bs-link-color); }
html a:hover { color: var(--bs-link-hover-color); }

/* Table striping/hover */
html .table-striped > tbody > tr:nth-of-type(odd) > * { background-color: var(--bs-table-striped-bg); }
html .table-hover > tbody > tr:hover > * { background-color: var(--bs-table-hover-bg); }

/* Your custom event UI */
.event-card {
  border: 1px solid rgba(var(--bs-primary-rgb), 0.5) !important;
  border-radius: 8px 8px 0px 8px;
}
.event-card .event-actions {
  position: absolute;
  bottom: -36px;
  right: -1px;
  background-color: rgba(var(--bs-primary-rgb), 0.5);
  border-radius: 0px 0px 6px 6px;
  padding: 2px;
}
.event-card-open-button {
  position: absolute;
  top: 0px;
  right: 5px;
  font-size: 24px;
}

/* Fullscreen modal helpers */
.modal-fullscreen {
  width: 100vw !important;
  max-width: 100vw !important;
}
#mapLegend { margin-top: 6px; font-size: .8rem; color: #666; }
#statChartWrap { height: min(70vh, 560px); }
.modal-fullscreen #statChartWrap { height: calc(100vh - 180px); }
#statChart, #statMap { width: 100% !important; height: 100% !important; display: block; }
.collapse-caret { transition: transform .2s ease; }

/* ---------------------------------------------------------------------------
   Sales CRM layout (full-bleed under navbar)
--------------------------------------------------------------------------- */
.crm-layout-wrap {
  margin: -1rem -1rem -1rem -1rem;
  min-height: calc(100vh - 56px);
  display: flex;
}
/* Sales CRM standalone layout (no admin sidebar): full width under top bar */
.crm-layout-wrap--standalone {
  margin: 0;
  width: 100%;
}
.crm-nav {
  width: 12rem;
  flex-shrink: 0;
  transition: width 0.2s ease;
  overflow: hidden;
  background: var(--bs-secondary-bg);
  border-right: 1px solid var(--bs-border-color);
  display: flex;
  flex-direction: column;
}
.crm-nav.crm-nav-collapsed { width: 3.25rem !important; }
.crm-nav.crm-nav-collapsed .crm-nav-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  position: absolute;
}
.crm-nav .crm-nav-text {
  display: inline-block;
  transition: opacity 0.2s, width 0.2s;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.crm-nav .list-group-item { white-space: nowrap; border: none; border-radius: 0; }
.crm-nav .list-group-item:hover { background: var(--bs-tertiary-bg); }
.crm-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid var(--bs-border-color);
  flex-shrink: 0;
  min-height: 2.5rem;
}
.crm-nav-header-title { display: flex; align-items: center; overflow: hidden; min-width: 0; }
.crm-nav-toggle-btn {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--bs-body-color);
  border-radius: 4px;
}
.crm-nav-toggle-btn:hover { background: var(--bs-tertiary-bg); }
.crm-nav .crm-nav-links { flex: 1; overflow-y: auto; min-height: 0; }

/* Constrain width so pipeline horizontal scroll is contained (flex child min-width: 0). */
.crm-content-wrap {
  position: relative;
  min-width: 0;
  overflow-x: hidden;
}

/* Deal show: stage bar (inline in flow) */
.deal-stage-bar-wrap {
  display: flex;
  align-items: stretch;
  gap: 0 8px;
  margin-bottom: 1rem;
}

.deal-stage-bar-head {
  flex-shrink: 0;
  gap: 0 0.5rem;
}

.deal-stage-bar-title {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

/* Deal stepper: simple horizontal steps + connector lines (no pseudo-element arrows) */
.deal-stepper {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.deal-stepper-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 32px;
  padding: 0 2rem 0 0.75rem;
  background: #e9ecef;
  color: #495057;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1;
  border: 1px solid #2d3748;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
button.deal-stepper-step {
  width: auto;
  cursor: pointer;
  font-family: inherit;
}

.deal-stepper-step:hover {
  color: #101318;
}

.deal-stepper-step-label {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Connector line between steps */
.deal-stepper-connector {
  flex: 0 0 12px;
  height: 2px;
  background: #dee2e6;
  border-radius: 1px;
}

.deal-stepper-connector-done {
  background: #ff2d6d;
}

/* Completed stage */
.deal-stepper-step-done {
  background: #ff2d6d !important;
  color: #fff !important;
  border-color: #ff2d6d;
}

.deal-stepper-step-done:hover {
  color: #fff !important;
}

/* Current pipeline stage: faded pink with dark text */
.deal-stepper-step-current {
  background: #ffd3e0 !important;
  color: #101318 !important;
  border-color: #ff2d6d;
}

.deal-stepper-step-current:hover {
  color: #101318 !important;
}

/* Currently viewed tab/link: solid pink line above step */
.deal-stepper-step-viewed {
  overflow: visible;
}

.deal-stepper-step-viewed::before {
  content: "";
  position: absolute;
  left: 10%;
  width: 80%;
  bottom: -6px;
  height: 3px;
  background: #ff2d6d;
  border-radius: 999px;
  pointer-events: none;
}

.deal-stepper-step-icon {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
}

.deal-stepper-step-icon-done {
  color: #fff;
}

.deal-stepper-step-icon-current {
  color: #ff2d6d;
}

/* Deal page: detailed vs clean (toggle via .deal-view-detailed / .deal-view-clean on .deal-page) */
.deal-view-clean .deal-detail-only {
  display: none !important;
}
.deal-view-detailed .deal-clean-only {
  display: none !important;
}
.deal-stage-bar-head .deal-view-toggle .btn {
  min-width: 4.5rem;
}

.deal-discovery-service-area-map {
  min-height: 200px;
  z-index: 0;
}

/* Sales CRM cards: allow headers to wrap on small screens so buttons don’t overflow */

/* ---------------------------------------------------------------------------
   Sales CRM – Pipeline Kanban
--------------------------------------------------------------------------- */
.pipeline-scroll-container {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 220px);
  overflow-x: hidden;
}
.pipeline-scroll-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.pipeline-board {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  min-height: calc(100vh - 220px);
  width: max-content;
  min-width: 100%;
}
.pipeline-column {
  min-width: 280px;
  max-width: 280px;
  background: var(--bs-secondary-bg);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--bs-primary);
}
.pipeline-column-header {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--bs-border-color);
}
.pipeline-column-title { font-weight: 600; font-size: 1rem; }
.pipeline-column-count { font-size: 0.8rem; color: var(--bs-secondary); }
.pipeline-cards { flex: 1; min-height: 80px; }
.pipeline-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
  cursor: grab;
}
.pipeline-card:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.pipeline-card:active { cursor: grabbing; }
.pipeline-card.dragging { opacity: 0.6; }
.pipeline-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.pipeline-card-title a { color: inherit; text-decoration: none; }
.pipeline-card-title a:hover { text-decoration: underline; }
.pipeline-card-meta { font-size: 0.8rem; color: var(--bs-secondary); }
.pipeline-card-value { font-size: 0.85rem; font-weight: 500; margin-top: 0.25rem; }
.pipeline-column.stage-lead { border-top-color: #6c757d; }
.pipeline-column.stage-contacted { border-top-color: #0dcaf0; }
.pipeline-column.stage-discovery { border-top-color: #0d6efd; }
.pipeline-column.stage-proposal_ready { border-top-color: #198754; }
.pipeline-column.stage-agreement_needed { border-top-color: #20c997; }
.pipeline-column.stage-agreement_sent { border-top-color: #fd7e14; }
.pipeline-column.stage-agreement_signed { border-top-color: #e83e8c; }
.pipeline-column.stage-in_onboarding { border-top-color: #6f42c1; }
.pipeline-column.stage-onboarding_complete { border-top-color: #198754; }
.pipeline-column.stage-won { border-top-color: #198754; }
.pipeline-column.stage-lost { border-top-color: #dc3545; }

/* ---------------------------------------------------------------------------
   Onboarding Kanban (scroll containment: same as pipeline)
--------------------------------------------------------------------------- */
.onboarding-kanban-scroll-container {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 220px);
  overflow-x: hidden;
}
.onboarding-kanban-scroll-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.kanban-board {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  min-height: calc(100vh - 240px);
  width: max-content;
  min-width: 100%;
}
.kanban-column {
  min-width: 320px;
  max-width: 320px;
  background: var(--bs-secondary-bg);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.kanban-column-header {
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bs-border-color);
  margin-bottom: 1rem;
}
.kanban-column-title { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.25rem; }
.kanban-column-count { font-size: 0.875rem; color: var(--bs-secondary); }
.kanban-tasks, .kanban-tenants {
  flex: 1;
  min-height: 100px;
  max-height: calc(100vh - 360px);
  overflow-y: auto;
  overflow-x: hidden;
}
.kanban-task, .kanban-tenant-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  cursor: grab;
  transition: all 0.2s;
  position: relative;
}
.kanban-task:hover, .kanban-tenant-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.kanban-task.dragging, .kanban-tenant-card.dragging { opacity: 0.5; cursor: grabbing; }
.kanban-task-header, .kanban-tenant-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 0.5rem; }
.kanban-task-title, .kanban-tenant-name { font-weight: 500; font-size: 0.95rem; margin: 0; flex: 1; }
.kanban-task-priority { font-size: 0.75rem; padding: 0.125rem 0.375rem; border-radius: 4px; margin-left: 0.5rem; }
.priority-low { background: #e7f3ff; color: #0066cc; }
.priority-normal { background: #f0f0f0; color: #666; }
.priority-high { background: #fff3cd; color: #856404; }
.priority-urgent { background: #f8d7da; color: #721c24; }
.kanban-task-meta, .kanban-tenant-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--bs-secondary); margin-top: 0.5rem; }
.kanban-task-assignee { display: flex; align-items: center; gap: 0.25rem; }
.kanban-task-due { margin-left: auto; }
.kanban-task-due.overdue { color: var(--bs-danger); font-weight: 500; }
.kanban-task-actions { position: absolute; top: 0.5rem; right: 0.5rem; opacity: 0; transition: opacity 0.2s; }
.kanban-task:hover .kanban-task-actions { opacity: 1; }
.kanban-task-badges { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.5rem; }
.kanban-status-badge { font-size: 0.75rem; padding: 0.125rem 0.5rem; border-radius: 12px; }
.status-to_do { background: #0d6efd; color: white; }
.status-in_progress { background: #ffc107; color: #000; }
.status-blocked { background: #dc3545; color: white; }
.status-review { background: #6f42c1; color: white; }
.status-done { background: #198754; color: white; }
.kanban-tenant-progress { margin-top: 0.5rem; }
.sortable-ghost { opacity: 0.4; }
.sortable-drag { opacity: 0.8; }
.task-modal .modal-dialog { max-width: 700px; }
.comment-item { border-left: 3px solid var(--bs-border-color); padding-left: 1rem; margin-bottom: 1rem; }
.comment-item.pinned { border-left-color: var(--bs-warning); background: rgba(255, 193, 7, 0.1); }
.attachment-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; background: var(--bs-secondary-bg); border-radius: 4px; margin-bottom: 0.5rem; }

/* Ads overview metric cards + picker */
.metric-card-draggable { cursor: grab; }
.metric-card-draggable:active { cursor: grabbing; }
.metric-card-dragging { opacity: 0.6; }
.metric-card-drag-over { outline: 2px dashed var(--bs-primary); outline-offset: 2px; }

/* Ads overview bucket/funnel cards */
.bucket-card-draggable { cursor: grab; }
.bucket-card-draggable:active { cursor: grabbing; }
.bucket-card-dragging { opacity: 0.6; }
.bucket-card-drag-over { outline: 2px dashed var(--bs-primary); outline-offset: 2px; }
.metric-picker-nav-item {
  padding: 0.5rem 0.75rem;
  color: #495057;
  text-decoration: none;
  border-radius: 0.25rem;
  margin-bottom: 0.25rem;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.metric-picker-nav-item:hover {
  background-color: #f8f9fa;
  color: #212529;
}
.metric-picker-nav-item.active {
  background-color: var(--bs-primary);
  color: white;
  font-weight: 500;
}
.metric-picker-body { min-height: 400px; }
.metric-picker-nav { width: 200px; border-right: 1px solid #dee2e6; }
.metric-picker-content { overflow-y: auto; max-height: 500px; }
.metricsNoteItem:empty { display: none; }

/* Ads overview: compare switch – brand primary, taller to align with filter inputs */
.ads-overview-compare-switch.form-switch .form-check-input {
  width: 2.75em;
  height: 1.5em;
  min-height: 1.5em;
  background-size: 1.25em 1.25em;
  background-color: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
}
.ads-overview-compare-switch.form-switch .form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}
.ads-overview-compare-switch.form-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Admin tenants: active switch – compact, brand colours, table cell alignment */
.tenant-active-switch {
  --switch-height: 1.25rem;
  --switch-width: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  min-height: 0;
}
.tenant-active-switch .form-check-input {
  font-size: 0.875rem;
  height: var(--switch-height);
  width: var(--switch-width);
  min-width: var(--switch-width);
  flex-shrink: 0;
  margin: 0;
  border-radius: calc(var(--switch-height) / 2);
  border: 1px solid var(--bs-border-color);
  background-color: var(--bs-secondary-bg, #e9ecef);
  cursor: pointer;
  vertical-align: middle;
}
.tenant-active-switch .form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}
.tenant-active-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb, 255, 42, 105), 0.25);
}
.tenant-active-switch .form-check-label {
  line-height: 1;
  margin-left: 0;
  cursor: pointer;
  margin-bottom: 0;
}
.tenant-active-switch .form-check-label .badge {
  font-size: 0.7rem;
  font-weight: 500;
}

/* ------------------------------
   Discovery deck (Sales CRM) – fluid carousel + peek; --discovery-index set by JS
   Deck is full viewport (#EBEBEB); slides are 74vw with adjacent-slide preview on sides
---------------------------------*/
.discovery-deck {
  z-index: 9998;
  --discovery-slide-width: 74vw;
  --discovery-peek-left: 13vw;
  --discovery-index: 0;
  --discovery-slide-gap: 10px;
  background-color: #EBEBEB;
}
/* Edge-to-edge shell for fixed deck (carousel viewport + peek unchanged) */
html:has(#discoveryDeck),
html:has(#discoveryDeck) body,
html:has(#proposalDeck),
html:has(#proposalDeck) body,
html:has(#onboardingDeck),
html:has(#onboardingDeck) body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}
.discovery-viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  min-height: min(48vh, 50vw);
  aspect-ratio: 1440 / 660;
}
.discovery-viewport::before,
.discovery-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--discovery-peek-left);
  pointer-events: none;
  /* Above the track so side previews are dimmed; below prev/next (z-index 10) and progress (5) */
  z-index: 4;
  background: rgba(235, 235, 235, 0.92);
}
.discovery-viewport::before { left: 0; }
.discovery-viewport::after {
  left: auto;
  right: 0;
  width: 12vw;
}
/* Proposal deck: track width matches slide count (same stride as discovery transform). */
.proposal-deck .discovery-track {
  width: calc(16 * var(--discovery-slide-width));
}

/* Onboarding deck: 15 slides. */
.onboarding-deck .discovery-track {
  width: calc(15 * var(--discovery-slide-width));
}

/* Onboarding slide: Capacity planning */
.onboarding-capacity-planning-form {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.onboarding-capacity-planning-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

.onboarding-capacity-planning-label {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: #111827;
}

.onboarding-capacity-planning-input {
  max-width: 460px;
}

.onboarding-capacity-planning-calc {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 1.25rem;
}

.onboarding-capacity-planning-calc-btn {
  min-width: 210px;
  padding: 0.9rem 1.75rem;
  border: none;
  border-radius: 0.75rem;
  color: #fff;
  background: linear-gradient(180deg, #ff588a 0%, #ee204f 100%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  font-weight: 700;
}

.onboarding-capacity-planning-calc-btn:hover,
.onboarding-capacity-planning-calc-btn:focus {
  color: #fff;
  background: linear-gradient(180deg, #ff6a98 0%, #f02858 100%);
  outline: none;
}

.onboarding-capacity-planning-row--bottom {
  margin-bottom: 0;
}

.discovery-slide.discovery-slide--form .onboarding-capacity-planning-input[readonly] {
  background-color: #fff;
}

@media (max-width: 767.98px) {
  .onboarding-capacity-planning-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .onboarding-capacity-planning-input {
    max-width: none;
  }
}

/* Onboarding slide: Payment details */
.onboarding-slide-payment .onboarding-payment-form-inner {
  max-width: min(100%, 52rem) !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.onboarding-payment-slide-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
}
.onboarding-payment-slide-title__icon {
  font-size: 0.9em;
  line-height: 1;
}
.onboarding-payment-form {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.onboarding-payment-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.1rem;
}
.onboarding-payment-label {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: #111827;
}
.onboarding-payment-label--inline {
  margin-bottom: 0.35rem;
}
.onboarding-payment-input {
  max-width: 460px;
  border-radius: 0.5rem;
}
.onboarding-payment-row--split .onboarding-payment-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr);
  gap: 1.25rem;
  max-width: 460px;
  align-items: end;
}
.onboarding-payment-split__field--cvc {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.onboarding-payment-input-wrap {
  position: relative;
}
.onboarding-payment-input-wrap .onboarding-payment-input {
  max-width: none;
  width: 100%;
  padding-right: 2.5rem;
}
.onboarding-payment-input-wrap__icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #374151;
  font-size: 1.1rem;
}
.onboarding-payment-input--cvc {
  max-width: none;
  width: 100%;
}
.onboarding-payment-submit {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.onboarding-payment-submit-btn {
  min-width: 220px;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 0.75rem;
  color: #fff;
  background: linear-gradient(180deg, #ff588a 0%, #ee204f 100%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  font-weight: 700;
  font-size: 1.125rem;
}
.onboarding-payment-submit-btn:hover,
.onboarding-payment-submit-btn:focus {
  color: #fff;
  background: linear-gradient(180deg, #ff6a98 0%, #f02858 100%);
  outline: none;
}
.onboarding-payment-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.onboarding-payment-slide-note {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.onboarding-payment-alert,
.onboarding-payment-config-alert {
  max-width: 760px;
  margin: 0 auto 1rem;
}
.onboarding-payment-saved-summary {
  max-width: 760px;
  margin: 0 auto 1.25rem;
}
.onboarding-payment-saved-summary__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-weight: 600;
  color: #166534;
}
.onboarding-payment-stripe-card {
  max-width: 460px;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
}
.onboarding-payment-stripe-card--disabled {
  background: #f3f4f6;
  pointer-events: none;
}
@media (max-width: 767.98px) {
  .onboarding-payment-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .onboarding-payment-input,
  .onboarding-payment-row--split .onboarding-payment-split {
    max-width: none;
  }
  .onboarding-payment-row--split .onboarding-payment-split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.onboarding-slide-team {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
.onboarding-team-slide-inner {
  width: 100%;
  max-width: min(96%, 52rem);
  margin: 0 auto;
}
.onboarding-team-slide-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}
.onboarding-team-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.onboarding-team-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.35fr) 2.5rem;
  gap: 0.65rem;
  align-items: center;
}
.onboarding-team-row__add,
.onboarding-team-row__remove {
  align-self: center;
  justify-self: center;
}
.onboarding-team-row__add {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  background: linear-gradient(180deg, #ff588a 0%, #ee204f 100%);
}
.onboarding-team-row__add.is-slot-hidden,
.onboarding-team-row__remove.is-slot-hidden {
  visibility: hidden;
  pointer-events: none;
}
.onboarding-team-row__add:hover,
.onboarding-team-row__add:focus {
  color: #fff;
  background: linear-gradient(180deg, #ff6a98 0%, #f02858 100%);
}
.onboarding-team-row__name,
.onboarding-team-row__title,
.onboarding-team-row__email {
  min-width: 0;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
}
.onboarding-team-row__remove {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}
.onboarding-team-row__remove:hover,
.onboarding-team-row__remove:focus {
  color: #6b7280;
  text-decoration: none;
}
@media (max-width: 767.98px) {
  .onboarding-team-row {
    grid-template-columns: 2.5rem 1fr auto;
    grid-template-areas:
      "add name remove"
      ". title ."
      ". email .";
  }
  .onboarding-team-row__add { grid-area: add; }
  .onboarding-team-row__name { grid-area: name; }
  .onboarding-team-row__title { grid-area: title; }
  .onboarding-team-row__email { grid-area: email; }
  .onboarding-team-row__remove { grid-area: remove; }
}
.onboarding-slide-valuation {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
.onboarding-valuation-slide-inner {
  width: 100%;
  max-width: min(96%, 52rem);
  margin: 0 auto;
}
.onboarding-valuation-slide-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}
.onboarding-valuation-table {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.onboarding-valuation-colhead {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1.15fr) minmax(0, 1fr) 2.5rem;
  gap: 0.65rem;
  align-items: end;
  padding-bottom: 0.15rem;
}
.onboarding-valuation-colhead__spacer {
  display: block;
}
.onboarding-valuation-colhead__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.2;
}
.onboarding-valuation-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.onboarding-valuation-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1.15fr) minmax(0, 1fr) 2.5rem;
  gap: 0.65rem;
  align-items: center;
}
.onboarding-valuation-row__add,
.onboarding-valuation-row__remove {
  align-self: center;
  justify-self: center;
}
.onboarding-valuation-row__add {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  background: linear-gradient(180deg, #ff588a 0%, #ee204f 100%);
}
.onboarding-valuation-row__add.is-slot-hidden,
.onboarding-valuation-row__remove.is-slot-hidden {
  visibility: hidden;
  pointer-events: none;
}
.onboarding-valuation-row__add:hover,
.onboarding-valuation-row__add:focus {
  color: #fff;
  background: linear-gradient(180deg, #ff6a98 0%, #f02858 100%);
}
.onboarding-valuation-row__make-group,
.onboarding-valuation-row__modifier-group {
  min-width: 0;
  width: 100%;
}
.onboarding-valuation-row__make,
.onboarding-valuation-row__modifier,
.onboarding-valuation-row__prefix-select {
  height: calc(1.5em + 0.75rem + 2px);
}
.onboarding-valuation-row__prefix-select {
  flex: 0 0 auto;
  padding-left: 0.55rem;
  padding-right: 1.35rem;
  text-align: left;
  font-weight: 500;
  color: var(--bs-body-color);
  background-color: var(--bs-tertiary-bg);
  border-color: var(--bs-border-color);
  background-position: right 0.4rem center;
  background-size: 10px 8px;
  cursor: pointer;
}
.onboarding-valuation-row__make-group .onboarding-valuation-row__vehicle-type {
  width: 4.85rem;
  min-width: 4.85rem;
  max-width: 4.85rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.onboarding-valuation-row__make-group .onboarding-valuation-row__make {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.onboarding-valuation-row__modifier-group .onboarding-valuation-row__unit {
  width: 3.35rem;
  min-width: 3.35rem;
  max-width: 3.35rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.onboarding-valuation-row__modifier-group .onboarding-valuation-row__modifier {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.onboarding-valuation-row__modifier-wrap {
  min-width: 0;
}
.onboarding-valuation-row__remove {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}
.onboarding-valuation-row__remove:hover,
.onboarding-valuation-row__remove:focus {
  color: #6b7280;
  text-decoration: none;
}
@media (max-width: 767.98px) {
  .onboarding-valuation-colhead {
    grid-template-columns: 2.5rem 1fr auto;
    grid-template-areas:
      ". make ."
      ". modifier .";
    row-gap: 0.2rem;
  }
  .onboarding-valuation-colhead__label--make { grid-area: make; }
  .onboarding-valuation-colhead__label--modifier { grid-area: modifier; }
  .onboarding-valuation-row {
    grid-template-columns: 2.5rem 1fr auto;
    grid-template-areas:
      "add make remove"
      ". modifier .";
  }
  .onboarding-valuation-row__add { grid-area: add; }
  .onboarding-valuation-row__make-group { grid-area: make; }
  .onboarding-valuation-row__modifier-wrap { grid-area: modifier; }
  .onboarding-valuation-row__remove { grid-area: remove; }
}

/* Proposal slide 8: Customer experience (Figma 2296:1865, 2296:1871) */
.proposal-slide-customer-xp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(0.65rem, 2vw, 1.25rem) clamp(0.5rem, 1.5vw, 1rem);
  overflow: auto;
}
.proposal-customer-xp-inner {
  width: 100%;
  max-width: min(98%, 52rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.15rem);
}
.proposal-customer-xp-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.proposal-customer-xp-media {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.proposal-customer-xp-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(42vh, 22rem);
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Proposal slide 15: Next steps (Figma 2296:1644, 2296:1676) */
.proposal-slide-next-steps {
  min-height: 100%;
}
.proposal-next-steps-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}
.proposal-next-steps-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 9.5vw, 5.1875rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  left: clamp(4%, 6vw, 10%);
  bottom: clamp(8%, 12vh, 18%);
  right: auto;
  top: auto;
  max-width: min(92%, 28rem);
  z-index: 2;
}

/* Proposal closing slide: large centered wordmark */
.proposal-slide-logo-outro {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 100%;
  overflow: hidden;
}
.proposal-logo-outro-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #b8d9f2;
  z-index: 2;
}
.proposal-logo-outro-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-sizing: border-box;
}
.proposal-logo-outro-img {
  width: min(88%, 28rem);
  max-width: 100%;
  height: auto;
  display: block;
  transform: skewX(-5deg);
  transform-origin: center center;
}

/* Proposal slides 12–14: Case Study placeholders */
.proposal-slide-case-study {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(1rem, 2.5vw, 1.75rem) clamp(0.75rem, 2vw, 1.25rem);
  overflow: auto;
}
.proposal-case-study-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* Case study slide 1: San Leandro (truck hero bg + testimonial / stats — Figma 2769:1169, 2769:1202, 2769:1171–1174, 2769:1206–1207) */
.proposal-slide-case-study--san-leandro {
  --proposal-case-study-accent: #ff2a69;
  /* Title + body align at --sl-inset-x from slide edge; symmetric padding on right for stats (Figma). */
  --sl-inset-x: clamp(2.85rem, 7.25vw, 6rem);
  /* Dedicated column width for the opening quote; header uses same offset so label/rule align with body copy. */
  --sl-quote-hang: clamp(1.35rem, 3.4vw, 2.5rem);
  --sl-story-gap: clamp(0.2rem, 0.75vw, 0.5rem);
  background-color: #000;
  color: #fff;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-bg {
  position: absolute;
  inset: 0;
  background-color: #000;
  background-image: url("/images/proposal/case-study/san-leandro-truck-bg.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 60% center;
  z-index: 0;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: none;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-left: 0;
  margin-right: auto;
  --sl-inner-pad-x: calc((var(--sl-inset-x) + var(--sl-quote-hang)) * 0.5);
  padding-top: clamp(2.35rem, 5.25vw, 4.25rem);
  padding-right: 40px;
  padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
  padding-left: 30px;
  box-sizing: border-box;
}
/* Align SAN LEANDRO + rule with story body (same inset as second column of .proposal-case-study-col--story). */
.proposal-slide-case-study--san-leandro .proposal-case-study-header {
  margin-left: 0;
  margin-bottom: clamp(0.3rem, 1vw, 1.55rem);
  padding-left: calc(var(--sl-quote-hang) + var(--sl-story-gap));
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-dealer-title-img {
  display: block;
  width: 250px;
  height: auto;
  aspect-ratio: 238 / 53;
  object-fit: contain;
  object-position: left center;
  margin: 35px 0 0;
  padding: 0;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
}
/* Quote in column 1, testimonial + attribution in column 2 — aligns with Figma (2769:1172–1174). */
.proposal-slide-case-study--san-leandro .proposal-case-study-col--story {
  display: grid;
  grid-template-columns: var(--sl-quote-hang) minmax(0, 1fr);
  column-gap: var(--sl-story-gap);
  align-items: start;
  margin-left: 0;
  min-width: 0;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-story-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-quote-mark {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  margin: 0;
  padding: 0;
  line-height: 0;
  user-select: none;
  pointer-events: none;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-quote-mark-svg {
  display: block;
  height: 32px;
  width: auto;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-quote {
  border: 0;
  padding: 0;
  margin: 0;
  display: block;
  min-width: 0;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-quote-body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: clamp(0.74rem, 1.28vw, 1.04rem);
  font-weight: 400;
  line-height: 1.55;
  color: #fff;
  padding: 0;
  margin: 0;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-quote-body p + p {
  margin-top: 0.7rem;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-attribution {
  margin-top: clamp(0.9rem, 2vw, 1.35rem);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: clamp(0.7rem, 1.14vw, 0.9rem);
  color: #fff;
  padding: 0;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-attribution-name {
  font-style: italic;
  font-weight: 400;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-attribution-role {
  margin-top: 0.2rem;
  font-weight: 400;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-col--stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  justify-content: center;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-stat-value {
  line-height: 1;
}
.proposal-slide-case-study--san-leandro .proposal-case-study-stat-num {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 75px;
  letter-spacing: -0.02em;
  color: #FC0039;
  padding-inline: clamp(0.1rem, 0.4vw, 0.3rem);
}
.proposal-slide-case-study--san-leandro .proposal-case-study-stat-caption {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin-top: clamp(0.35rem, 1vw, 0.55rem);
  max-width: none;
  margin-left: auto;
}
@media (max-width: 720px) {
  .proposal-slide-case-study--san-leandro .proposal-case-study-bg {
    background-position: 60% center;
  }
  .proposal-slide-case-study--san-leandro {
    --sl-inset-x: clamp(1.25rem, 4.25vw, 2.25rem);
    --sl-quote-hang: clamp(1.1rem, 5vw, 2rem);
  }
  .proposal-slide-case-study--san-leandro .proposal-case-study-header {
    padding-left: calc(var(--sl-quote-hang) + var(--sl-story-gap));
  }
  .proposal-slide-case-study--san-leandro .proposal-case-study-quote-mark {
    line-height: 0;
  }
  .proposal-slide-case-study--san-leandro .proposal-case-study-columns {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .proposal-slide-case-study--san-leandro .proposal-case-study-col--stats {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
  }
  .proposal-slide-case-study--san-leandro .proposal-case-study-stat-caption {
    margin-left: 0;
  }
}

/* Case study slide 2: Basil Cars (Figma 3050:2) */
.proposal-slide-case-study--basil-cars {
  --proposal-case-study-blue: #2588e6;
  background: #000;
  color: #fff;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
}
.proposal-slide-case-study--basil-cars .proposal-case-study-inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  width: 100%;
  min-height: 0;
  padding: clamp(3.9rem, 7.25vw, 6rem) clamp(2.35rem, 5vw, 4.75rem) clamp(2.25rem, 5vw, 4.25rem);
  box-sizing: border-box;
}
.proposal-slide-case-study--basil-cars .proposal-case-study-basil-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  min-height: 0;
}
.proposal-slide-case-study--basil-cars .proposal-case-study-basil-vehicle {
  position: absolute;
  inset: 0;
  background-color: #000;
  background-image: url("/images/proposal/case-study/basil-cars-truck-bg.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 60% center;
  z-index: 0;
}
.proposal-slide-case-study--basil-cars .proposal-case-study-col--story {
  max-width: min(40vw, 34rem);
  min-width: 0;
}
.proposal-slide-case-study--basil-cars .proposal-case-study-header {
  width: fit-content;
  margin: 0 0 clamp(1.25rem, 3vw, 2.15rem) clamp(4rem, 9vw, 4.9rem);
}
.proposal-slide-case-study--basil-cars .proposal-case-study-story-row {
  display: grid;
  grid-template-columns: clamp(2.1rem, 4.2vw, 3.35rem) minmax(0, 1fr);
  gap: clamp(0.6rem, 1.25vw, 1.05rem);
  align-items: start;
}
.proposal-slide-case-study--basil-cars .proposal-case-study-quote-mark {
  justify-self: end;
  line-height: 0;
  padding-top: 0.1rem;
}
.proposal-slide-case-study--basil-cars .proposal-case-study-quote-mark-svg {
  display: block;
  width: clamp(1.75rem, 3.5vw, 2.6rem);
  height: auto;
}
.proposal-slide-case-study--basil-cars .proposal-case-study-quote,
.proposal-slide-case-study--basil-cars .proposal-case-study-story-main {
  min-width: 0;
}
.proposal-slide-case-study--basil-cars .proposal-case-study-quote-body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: clamp(0.82rem, 1.18vw, 1.08rem);
  font-weight: 400;
  line-height: 1.45;
  color: #fff;
}
.proposal-slide-case-study--basil-cars .proposal-case-study-quote-body p + p {
  margin-top: clamp(1rem, 2.35vw, 1.65rem);
}
.proposal-slide-case-study--basil-cars .proposal-case-study-attribution {
  margin-top: clamp(1.1rem, 2.6vw, 2.1rem);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: clamp(0.82rem, 1.25vw, 1.05rem);
  color: #fff;
}
.proposal-slide-case-study--basil-cars .proposal-case-study-attribution-name {
  font-style: italic;
}
.proposal-slide-case-study--basil-cars .proposal-case-study-attribution-role {
  margin-top: 0.15rem;
}
.proposal-slide-case-study--basil-cars .proposal-case-study-col--stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  justify-content: center;
  min-width: 0;
}
.proposal-slide-case-study--basil-cars .proposal-case-study-stat-value {
  line-height: 1;
}
.proposal-slide-case-study--basil-cars .proposal-case-study-stat-num {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 75px;
  letter-spacing: -0.02em;
  color: var(--proposal-case-study-blue);
  padding-inline: clamp(0.1rem, 0.4vw, 0.3rem);
}
.proposal-slide-case-study--basil-cars .proposal-case-study-stat-caption {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin-top: clamp(0.35rem, 1vw, 0.55rem);
  max-width: none;
  margin-left: auto;
}
@media (max-width: 900px) {
  .proposal-slide-case-study--basil-cars .proposal-case-study-basil-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .proposal-slide-case-study--basil-cars .proposal-case-study-col--story {
    max-width: 100%;
  }
  .proposal-slide-case-study--basil-cars .proposal-case-study-basil-vehicle {
    opacity: 0.35;
    background-position: 72% 48%;
    background-size: min(76vw, 31rem) auto;
  }
  .proposal-slide-case-study--basil-cars .proposal-case-study-col--stats {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    text-align: left;
    gap: 1.25rem 2rem;
  }
  .proposal-slide-case-study--basil-cars .proposal-case-study-stat-caption {
    margin-left: 0;
  }
}
@media (max-width: 600px) {
  .proposal-slide-case-study--basil-cars .proposal-case-study-inner {
    padding: 3.75rem 1.25rem 2rem;
  }
  .proposal-slide-case-study--basil-cars .proposal-case-study-header {
    margin-left: clamp(2.7rem, 12vw, 4rem);
  }
  .proposal-slide-case-study--basil-cars .proposal-case-study-story-row {
    grid-template-columns: 2rem minmax(0, 1fr);
  }
}

/* Proposal full deck (#proposalDeck): main slide titles match discovery form-slide title size & top rhythm */
#proposalDeck .proposal-trusted-title,
#proposalDeck .proposal-diff-title,
#proposalDeck .proposal-feedback-title,
#proposalDeck .proposal-expect-title,
#proposalDeck .proposal-customer-xp-title,
#proposalDeck .proposal-comparison-title,
#proposalDeck .proposal-roi-title,
#proposalDeck .proposal-forecast-title,
#proposalDeck .discovery-slide--recap .discovery-slide-form-header > .discovery-form-acquisition-title {
  font-size: clamp(1.6rem, 3.2vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: normal;
  margin-top: -15px;
  margin-bottom: 1.5rem !important;
  color: #101318;
}

#discoveryDeck .discovery-slide--recap .discovery-slide-form-header > .discovery-form-acquisition-title {
  font-size: clamp(1.6rem, 3.2vw, 2.75rem);
  line-height: 1.05;
  margin-top: -15px;
}
#proposalDeck .proposal-comparison-title {
  margin-bottom: 1.25rem !important;
}
#proposalDeck .proposal-roi-title {
  margin-bottom: clamp(1.35rem, 4vw, 2.35rem) !important;
}
#proposalDeck .proposal-trusted-inner,
#proposalDeck .proposal-diff-inner,
#proposalDeck .proposal-feedback-inner,
#proposalDeck .proposal-expect-inner,
#proposalDeck .proposal-customer-xp-inner,
#proposalDeck .proposal-comparison-inner,
#proposalDeck .proposal-roi-inner,
#proposalDeck .proposal-forecast-inner {
  padding-top: 20px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
}

/* Proposal deck (#proposalDeck): same vertical rhythm as discovery form slides — top band + main block centered, nudged up */
#proposalDeck .discovery-slide.proposal-slide-trusted,
#proposalDeck .discovery-slide.proposal-slide-diff,
#proposalDeck .discovery-slide.proposal-slide-dealer-feedback,
#proposalDeck .discovery-slide.proposal-slide-expect,
#proposalDeck .discovery-slide.proposal-slide-customer-xp,
#proposalDeck .discovery-slide.proposal-slide-comparison,
#proposalDeck .discovery-slide.proposal-slide-roi,
#proposalDeck .discovery-slide.proposal-slide-forecast {
  justify-content: flex-start;
  align-items: center;
  min-height: 100%;
  box-sizing: border-box;
  padding-top: clamp(2.75rem, 5.5vw, 4.75rem);
  padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
}
#proposalDeck .discovery-slide.proposal-slide-case-study {
  justify-content: center;
  align-items: center;
  min-height: 100%;
  box-sizing: border-box;
  padding-top: clamp(2.75rem, 5.5vw, 4.75rem);
  padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
}
#proposalDeck .discovery-slide.proposal-slide-case-study--san-leandro {
  padding-top: 0;
  padding-bottom: 0;
  justify-content: flex-start;
  align-items: stretch;
  /* Figma frame margins inside deck viewport (2769:1169, 2769:1202). */
  --sl-inset-x: clamp(3rem, 8.5vw, 6.75rem);
  --sl-quote-hang: clamp(1.5rem, 3.6vw, 2.75rem);
}
#proposalDeck .proposal-trusted-title,
#proposalDeck .proposal-diff-title,
#proposalDeck .proposal-feedback-title,
#proposalDeck .proposal-expect-title,
#proposalDeck .proposal-customer-xp-title,
#proposalDeck .proposal-comparison-title,
#proposalDeck .proposal-roi-title,
#proposalDeck .proposal-forecast-title {
  flex-shrink: 0;
}
#proposalDeck .proposal-trusted-grid {
  flex: 1 1 auto;
  min-height: 0;
  align-content: center;
  margin-top: -4.25rem;
}
#proposalDeck .proposal-diff-table-wrap,
#proposalDeck .proposal-expect-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: -4.25rem;
}
#proposalDeck .proposal-feedback-stats {
  flex: 1 1 auto;
  min-height: 0;
  justify-content: center;
  margin-top: -4.25rem;
}
#proposalDeck .proposal-customer-xp-media {
  flex: 1 1 auto;
  min-height: 0;
  justify-content: center;
  margin-top: -4.25rem;
}
/* Comparison: don’t flex-grow the column grid — keeps the three foot cells tight under the cards. */
#proposalDeck .proposal-comparison-columns {
  flex: 0 1 auto;
  min-height: 0;
  align-content: start;
  margin-top: 0.75rem;
}
#proposalDeck .proposal-comparison-foot {
  flex-shrink: 0;
  margin-top: 0;
}
#proposalDeck .proposal-comparison-inner {
  gap: clamp(1.25rem, 2.4vw, 1.75rem);
}
#proposalDeck .proposal-roi-layout {
  flex: 1 1 auto;
  min-height: 0;
  justify-content: center;
  align-items: center;
  margin-top: -4.25rem;
}
#proposalDeck .proposal-roi-inner--x-hero {
  flex: 1 1 auto;
  min-height: 0;
  justify-content: center;
  align-items: center;
  margin-top: -4.25rem;
  width: 100%;
  max-width: min(96%, 56rem);
}
#proposalDeck .proposal-slide-roi--x-hero .proposal-roi-title--x-hero {
  color: transparent !important;
  background-image: linear-gradient(180deg, #ff588a 0%, #ff3d72 42%, #ee204f 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
#proposalDeck .proposal-forecast-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: -4.25rem;
}

/* Discovery + proposal decks: shared “book meeting” calendar (grid weekdays + 7-col dates; split layout). */
.discovery-deck .discovery-slide-form-inner--book-proposal {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.discovery-deck .discovery-appointment-form {
  width: 100%;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.discovery-deck .discovery-appointment-form.discovery-appointment-form--split {
  max-width: none;
  width: 100%;
}
.discovery-deck .discovery-appointment-layout {
  width: 100%;
  align-items: flex-start;
}
.discovery-deck .discovery-appointment-email-primary-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.discovery-deck .discovery-appointment-email-primary-row .form-control {
  flex: 1 1 auto;
  min-width: 0;
}
.discovery-deck .discovery-appointment-email-primary-row .discovery-appointment-invite-add {
  align-self: center;
  flex-shrink: 0;
}
.discovery-deck .discovery-appointment-layout__cal .discovery-appointment-calendar {
  max-width: none;
  width: 100%;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  border-radius: 12px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}
.discovery-deck .discovery-appointment-layout__aside {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
}
.discovery-deck .discovery-appointment-layout__aside .discovery-appointment-calendar__time {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
.discovery-deck .discovery-appointment-layout__aside .discovery-appointment-calendar__time .form-label {
  text-align: left;
}
.discovery-deck .discovery-appointment-layout__aside .discovery-appointment-calendar__time .form-control {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
.discovery-deck .discovery-appointment-layout__aside .form-control {
  border-radius: 10px;
  border: 1px solid #1f2937;
}
.discovery-deck .discovery-appointment-layout__aside .discovery-appointment-invite-add {
  border-radius: 999px;
  border: 1px solid #9ca3af;
  color: #4b5563;
  background: #fff;
}
.discovery-deck .discovery-appointment-invite-add {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.discovery-deck .discovery-appointment-calendar {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto 1.25rem;
  border: 1px solid #e2e4e9;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.discovery-deck .discovery-appointment-calendar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(180deg, #ff588a 0%, #ee204f 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.discovery-deck .discovery-appointment-calendar__nav button {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  line-height: 1;
  font-size: 1.25rem;
  cursor: pointer;
}
.discovery-deck .discovery-appointment-calendar__nav button:hover {
  background: rgba(255, 255, 255, 0.35);
}
.discovery-deck .discovery-appointment-calendar__nav button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.discovery-deck .discovery-appointment-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  padding: 0.4rem 0.35rem 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.discovery-deck .discovery-appointment-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 0.35rem 0.35rem 0.65rem;
}
.discovery-deck .discovery-appointment-calendar__grid button {
  aspect-ratio: 1;
  max-height: 2.5rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: #101318;
  cursor: pointer;
  padding: 0;
}
.discovery-deck .discovery-appointment-calendar__grid button:hover:not(:disabled):not(.is-empty) {
  background: #fff5f8;
  border-color: #ffc2d6;
}
.discovery-deck .discovery-appointment-calendar__grid button.is-empty {
  cursor: default;
  visibility: hidden;
}
.discovery-deck .discovery-appointment-calendar__grid button.is-muted {
  color: #c4c8d0;
  cursor: not-allowed;
}
.discovery-deck .discovery-appointment-calendar__grid button.is-selected {
  background: linear-gradient(180deg, #ff588a 0%, #ee204f 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(238, 32, 79, 0.35);
}
.discovery-deck .discovery-appointment-calendar__time {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto 1rem;
  text-align: center;
}
.discovery-deck .discovery-appointment-calendar__time .form-label {
  display: block;
  text-align: center;
}
.discovery-deck .discovery-appointment-calendar__time .form-control {
  max-width: 14rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.discovery-deck .discovery-appointment-submit {
  background: linear-gradient(180deg, #ff588a 0%, #ee204f 100%) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(238, 32, 79, 0.35);
}
.discovery-deck .discovery-appointment-submit:hover,
.discovery-deck .discovery-appointment-submit:focus {
  color: #fff !important;
  filter: brightness(1.06);
}
.discovery-deck .discovery-appointment-book-wrap {
  width: min(100%, 55rem);
  margin-left: auto;
  margin-right: auto;
}

/* Proposal slide 3: Trusted by (Figma SMR-Discovery ~2420 / 2415) */
.proposal-slide-trusted {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.smr-slide-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  z-index: 60;
  pointer-events: none;
}
.smr-slide-chrome > * {
  pointer-events: auto;
}
.smr-slide-chrome-logo {
  display: block;
  max-height: 26px !important;
  max-width: 120px !important;
}
/* Carousel peek shows neighbor slides; hide their chrome so only the active slide has Exit/logo */
#discoveryDeck .discovery-slide:not(.active) .smr-slide-chrome,
#proposalDeck .discovery-slide:not(.active) .smr-slide-chrome,
#onboardingDeck .discovery-slide:not(.active) .smr-slide-chrome {
  visibility: hidden;
  pointer-events: none;
}
.proposal-trusted-inner {
  width: 100%;
  max-width: min(92%, 56rem);
  margin: 0 auto;
}
.proposal-trusted-title {
  font-size: clamp(2rem, 4.8vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.75rem, 4vw, 3rem) !important;
}
.proposal-trusted-grid {
  display: grid;
  /* 3 / 2 / 1 layout (all centered):
     Use a 6-col grid so we can span 2 (row of 3), 3 (row of 2), 6 (row of 1). */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.25rem) clamp(0.75rem, 2vw, 1.75rem);
  align-items: center;
  justify-items: center;
}
.proposal-trusted-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(3.5rem, 12vw, 5.5rem);
  padding: 0.5rem 0.35rem;
  grid-column: span 2;
}
.proposal-trusted-cell--full {
  grid-column: 1 / -1;
}
.proposal-trusted-logo--last-row {
  max-width: min(100%, 26rem);
}

/* Make rows: 3 items, then 2 items, then 1 item (last).
   This assumes 6 trusted-by items in DOM order. */
.proposal-trusted-grid > .proposal-trusted-cell:nth-child(4),
.proposal-trusted-grid > .proposal-trusted-cell:nth-child(5) {
  grid-column: span 3;
}
.proposal-trusted-grid > .proposal-trusted-cell:last-child {
  grid-column: 1 / -1;
}
.proposal-trusted-logo {
  max-width: 100%;
  max-height: clamp(2.5rem, 9vw, 4.25rem);
  width: auto;
  height: auto;
  object-fit: contain;
}
.proposal-trusted-cell--text {
  padding: 0.5rem 0.75rem;
}
.proposal-trusted-dealer-name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: clamp(1.125rem, 2.8vw, 1.6875rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #000;
  text-align: center;
}
@media (max-width: 720px) {
  .proposal-trusted-grid {
    /* Keep it simple on small screens: 2 columns, then full-width last row. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proposal-trusted-cell {
    grid-column: auto;
  }
  .proposal-trusted-grid > .proposal-trusted-cell:nth-child(4),
  .proposal-trusted-grid > .proposal-trusted-cell:nth-child(5) {
    grid-column: auto;
  }
  .proposal-trusted-grid > .proposal-trusted-cell:last-child {
    grid-column: 1 / -1;
  }
}

/* Proposal slide 4: Key differentiators (Figma 2296:671) */
.proposal-slide-diff {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(1rem, 2.5vw, 1.75rem) clamp(0.75rem, 2vw, 1.25rem);
  overflow: auto;
}
.proposal-diff-inner {
  width: 100%;
  max-width: min(96%, 58rem);
  margin: 0 auto;
}
.proposal-diff-title {
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem) !important;
}
.proposal-diff-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.proposal-diff-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.proposal-diff-th {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: clamp(0.9375rem, 2vw, 1.5rem);
  line-height: 1.25;
  color: #161616;
  text-align: center;
  vertical-align: bottom;
  padding: 0.35rem 0.4rem 0.85rem;
  /* border-bottom: 1px solid #e8e8ea; */
}
.proposal-diff-th--feature {
  width: 36%;
  border-bottom-color: transparent;
}
.proposal-diff-th--brand {
  width: 18%;
}
.proposal-diff-th--col {
  width: 23%;
}
.proposal-diff-logo {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(1.75rem, 4.5vw, 2.75rem);
}
.proposal-diff-feature {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: clamp(0.8125rem, 1.85vw, 1.5rem);
  line-height: 1.3;
  color: #161616;
  text-align: left;
  vertical-align: middle;
  padding: 0.65rem 0.5rem 0.65rem 0;
  /* border-bottom: 1px solid #ececee; */
}
.proposal-diff-cell {
  text-align: center;
  vertical-align: middle;
  padding: 0.5rem 0.35rem;
  /* border-bottom: 1px solid #ececee; */
}
.proposal-diff-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
}
.proposal-diff-icon--check {
  background-color: #b2e68d;
  position: relative;
}
.proposal-diff-icon--check::after {
  content: "";
  display: block;
  width: 7px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
  margin-left: 1px;
}
.proposal-diff-icon--cross {
  background-color: #d1d5db;
  position: relative;
}
.proposal-diff-icon--cross::before,
.proposal-diff-icon--cross::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2.5px;
  background: #fff;
  border-radius: 1px;
}
.proposal-diff-icon--cross::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.proposal-diff-icon--cross::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
@media (max-width: 520px) {
  .proposal-diff-th--feature {
    width: 40%;
  }
  .proposal-diff-th--brand,
  .proposal-diff-th--col {
    width: 20%;
  }
  .proposal-diff-icon {
    width: 28px;
    height: 28px;
  }
  .proposal-diff-icon--check::after {
    width: 6px;
    height: 10px;
    border-width: 0 2px 2px 0;
  }
  .proposal-diff-icon--cross::before,
  .proposal-diff-icon--cross::after {
    width: 11px;
  }
}

/* Proposal slide 5: Dealer feedback (Figma 2296:1867, 1873, 1875, 1877) */
.proposal-slide-dealer-feedback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2.5vw, 1.75rem) clamp(0.75rem, 2vw, 1.25rem);
  overflow: auto;
}
.proposal-feedback-inner {
  width: 100%;
  max-width: min(96%, 62rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.proposal-feedback-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem) !important;
  width: 100%;
}
.proposal-feedback-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.proposal-feedback-stat {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-weight: 700;
  color: #000;
  line-height: 1.05;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  text-align: center;
  column-gap: clamp(0.35rem, 1.1vw, 0.75rem);
  row-gap: 0.25em;
  max-width: 100%;
}
.proposal-feedback-lead {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 0;
}
.proposal-feedback-stat--gross .proposal-feedback-lead {
  column-gap: clamp(0.15rem, 0.45vw, 0.45rem);
}
.proposal-feedback-desc {
  font-size: clamp(1rem, 2.1vw, 2.0625rem);
  line-height: 1.2;
  font-weight: 700;
}
.proposal-feedback-num--99 {
  font-size: clamp(3.25rem, 10.5vw, 5.8125rem);
  letter-spacing: -0.03em;
}
.proposal-feedback-pct--large {
  font-size: clamp(2.25rem, 7.5vw, 4.375rem);
  letter-spacing: -0.02em;
}
.proposal-feedback-plus {
  font-size: clamp(1.85rem, 5vw, 3.5rem);
  line-height: 1;
}
.proposal-feedback-money {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  letter-spacing: -0.02em;
}
.proposal-feedback-to {
  font-size: clamp(1rem, 2.1vw, 2.0625rem);
  font-weight: 700;
}
.proposal-feedback-gt {
  font-size: clamp(1.85rem, 5vw, 3.5rem);
  line-height: 1;
}
.proposal-feedback-mid {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  letter-spacing: -0.03em;
}
.proposal-feedback-pct--mid {
  font-size: clamp(2.1rem, 5.5vw, 3.5625rem);
  letter-spacing: -0.02em;
}

/* Proposal slide 6: What you can expect - mileage buckets table (Figma ~2296:871, 2296:835,880–909,872–885) */
.proposal-slide-expect {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(1rem, 2.5vw, 1.75rem) clamp(0.75rem, 2vw, 1.25rem);
  overflow: auto;
}
.proposal-expect-inner {
  width: 100%;
  max-width: min(98%, 64rem);
  margin: 0 auto;
}
.proposal-expect-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem) !important;
}
.proposal-expect-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.proposal-expect-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
.proposal-expect-th {
  background-color: #4f4f4f;
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.8125rem, 1.65vw, 1.3125rem);
  line-height: 1.25;
  text-align: center;
  vertical-align: middle;
  padding: 0.55rem 0.35rem;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}
.proposal-expect-th:last-child {
  border-right: none;
}
.proposal-expect-rowhead {
  background-color: inherit;
  font-weight: 700;
  font-size: clamp(0.8125rem, 1.65vw, 1.3125rem);
  line-height: 1.3;
  color: #161616;
  text-align: left;
  vertical-align: middle;
  padding: 0.5rem 0.4rem 0.5rem 0.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.proposal-expect-cell {
  font-weight: 400;
  font-size: clamp(0.8125rem, 1.65vw, 1.3125rem);
  line-height: 1.3;
  color: #161616;
  text-align: center;
  vertical-align: middle;
  padding: 0.5rem 0.3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.proposal-expect-table tbody tr:nth-child(odd) {
  background-color: rgba(187, 187, 187, 0.18);
}
.proposal-expect-table tbody tr:nth-child(even) {
  background-color: #fff;
}
@media (max-width: 520px) {
  .proposal-expect-th:first-child,
  .proposal-expect-rowhead {
    width: 22%;
  }
}

/* Proposal slide 9: Acquisition forecast (dynamic data; dummy from ProposalController) */
.proposal-slide-forecast {
  --proposal-forecast-accent: rgb(255, 42, 105);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(1rem, 2.5vw, 1.75rem) clamp(0.5rem, 1.5vw, 1rem);
  overflow: auto;
}
.proposal-forecast-inner {
  width: 100%;
  max-width: min(98%, 58rem);
  margin: 0 auto;
}
.proposal-forecast-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1rem, 2.2vw, 1.5rem) !important;
}
.proposal-forecast-note {
  margin-bottom: clamp(0.75rem, 1.8vw, 1.15rem) !important;
}
.proposal-forecast-scenario {
  margin-top: 0;
  margin-bottom: clamp(1rem, 2.2vw, 1.65rem);
}
/* Only "Cautious" / "Aggressive" at the ends of the slider - no per-scenario text labels */
.proposal-forecast-slider-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 2.5vw, 1.35rem);
  width: 100%;
  max-width: min(100%, 40rem);
  margin-left: auto;
  margin-right: auto;
}
.proposal-forecast-bookend {
  flex: 0 0 auto;
  font-size: clamp(0.8125rem, 1.5vw, 1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c5c5c;
  text-align: center;
  white-space: nowrap;
}
.proposal-forecast-slider-outer {
  flex: 1 1 auto;
  width: 100%;
  max-width: 22rem;
  min-width: 7rem;
  margin: 0;
  padding: 0 0.25rem;
}
/* Brand-colored thumb; narrower track than full slide (override Bootstrap .form-range) */
.proposal-slide-forecast input.proposal-forecast-scenario-range.form-range {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  display: block;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  height: 1.5rem;
  background: transparent;
}
.proposal-slide-forecast input.proposal-forecast-scenario-range:focus {
  outline: none;
}
.proposal-slide-forecast input.proposal-forecast-scenario-range:focus-visible {
  outline: 2px solid var(--proposal-forecast-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.proposal-slide-forecast input.proposal-forecast-scenario-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: var(--proposal-forecast-track-bg, rgba(22, 22, 22, 0.12));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-radius: 3px;
}
.proposal-slide-forecast input.proposal-forecast-scenario-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  /* Bootstrap .form-range uses blue; force deck accent */
  background: var(--proposal-forecast-accent) !important;
  background-color: var(--proposal-forecast-accent) !important;
  border: 2px solid #fff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}
.proposal-slide-forecast input.proposal-forecast-scenario-range::-moz-range-track {
  width: 100%;
  height: 6px;
  background: var(--proposal-forecast-track-bg, rgba(22, 22, 22, 0.12));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-radius: 3px;
  border: none;
}
.proposal-slide-forecast input.proposal-forecast-scenario-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--proposal-forecast-accent) !important;
  background-color: var(--proposal-forecast-accent) !important;
  border: 2px solid #fff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}
.proposal-forecast-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin-top: clamp(0.35rem, 1vw, 0.65rem);
}
.proposal-forecast-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  border: none;
  table-layout: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
.proposal-forecast-table th,
.proposal-forecast-table td {
  border: none;
  background: transparent;
}
.proposal-forecast-th {
  font-weight: 700;
  font-size: clamp(0.625rem, 1.15vw, 0.75rem);
  line-height: 1.2;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: #161616;
  text-align: center;
  vertical-align: bottom;
  padding: 0.35rem 0.3rem 0.45rem;
}
.proposal-forecast-th--corner {
  width: 26%;
  padding-left: 0;
}
.proposal-forecast-th--target {
  color: var(--proposal-forecast-accent);
}
.proposal-forecast-rowhead {
  font-weight: 400;
  font-size: clamp(0.75rem, 1.35vw, 0.95rem);
  line-height: 1.35;
  color: #161616;
  text-align: left;
  vertical-align: middle;
  padding: 0.5rem 0.5rem 0.5rem 0;
}
.proposal-forecast-td {
  font-weight: 400;
  font-size: clamp(0.75rem, 1.35vw, 0.95rem);
  line-height: 1.35;
  color: #161616;
  text-align: center;
  vertical-align: middle;
  padding: 0.5rem 0.35rem;
}
.proposal-forecast-td--target {
  font-weight: 400;
  color: var(--proposal-forecast-accent);
}
.proposal-forecast-tr--emphasis .proposal-forecast-rowhead,
.proposal-forecast-tr--emphasis .proposal-forecast-td {
  font-weight: 700;
  font-size: clamp(0.875rem, 1.6vw, 1.0625rem);
}
.proposal-forecast-tr--emphasis .proposal-forecast-td--target {
  color: var(--proposal-forecast-accent);
}
@media (max-width: 520px) {
  .proposal-forecast-th--corner {
    width: 32%;
  }
}

/* Proposal slide 10: Comparison (Figma 2320:25, 2320:50–53) */
.proposal-slide-comparison {
  --proposal-comparison-red: #fc0039;
  --proposal-comparison-green: #aee88a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(0.5rem, 1.5vw, 1rem);
  overflow: auto;
}
.proposal-comparison-inner {
  width: 100%;
  max-width: min(98%, 56rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}
.proposal-comparison-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.proposal-comparison-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.65rem, 2vw, 1.25rem);
  align-items: stretch;
}
.proposal-comparison-card {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: #000;
  text-align: left;
  min-width: 0;
}
.proposal-comparison-card-title {
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem !important;
}
.proposal-comparison-list {
  font-size: clamp(0.75rem, 1.25vw, 1.1rem);
  font-weight: 400;
  line-height: 1.35;
}
.proposal-comparison-list li + li {
  margin-top: 0.45rem;
}
.proposal-comparison-list li {
  white-space: nowrap;
}
.proposal-comparison-list li:last-child {
  margin-bottom: 0.55rem;
}
.proposal-comparison-trade {
  font-size: clamp(0.75rem, 1.25vw, 1.1rem);
  font-weight: 400;
  line-height: 1.35;
  margin-top: 0.65rem !important;
}
.proposal-comparison-outcome,
.proposal-comparison-total {
  font-size: clamp(0.75rem, 1.25vw, 1.1rem);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0.65rem !important;
}
.proposal-comparison-outcome-label,
.proposal-comparison-total-label {
  color: #000;
}
.proposal-comparison-outcome-value--negative {
  color: var(--proposal-comparison-red);
}
.proposal-comparison-total-value {
  color: var(--proposal-comparison-green);
}
.proposal-comparison-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: clamp(0.5rem, 1.5vw, 0.85rem) 0;
  margin-top: clamp(0.15rem, 0.5vw, 0.35rem);
  position: absolute;
  bottom: 24px;
  width: 100%;
  left: 0;
}
.proposal-comparison-foot-cell {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: #000;
  text-align: center;
  padding: 0.35rem clamp(0.4rem, 1.2vw, 0.75rem);
  border-right: 1px solid rgba(0, 0, 0, 0.35);
}
.proposal-comparison-foot-cell:last-child {
  border-right: none;
}
.proposal-comparison-foot-strong {
  font-weight: 600;
}
@media (max-width: 640px) {
  .proposal-comparison-columns {
    grid-template-columns: 1fr;
  }
  .proposal-comparison-foot {
    grid-template-columns: 1fr;
  }
  .proposal-comparison-foot-cell {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding-bottom: 0.65rem;
  }
  .proposal-comparison-foot-cell:last-child {
    border-bottom: none;
    padding-bottom: 0.35rem;
  }
}

/* Proposal slide 11: ROI — month-6 multiples (forecast); black slide + brand gradient type */
.proposal-slide-roi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(88vh, 48rem);
  padding: clamp(0.65rem, 2vw, 1.25rem) clamp(0.5rem, 1.5vw, 1rem);
  overflow: auto;
}
.proposal-slide-roi--x-hero {
  background: #0a0a0a !important;
  color: #f9fafb;
}
.proposal-roi-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: min(98%, 58rem);
  margin: 0 auto;
}
.proposal-roi-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.35rem, 4vw, 2.35rem) !important;
}
.proposal-roi-x-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 5vw, 3.5rem);
  width: 100%;
  max-width: min(100%, 52rem);
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}
.proposal-roi-x-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  flex: 1 1 12rem;
  min-width: min(100%, 14rem);
  text-align: left;
}
.proposal-roi-x-row {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: clamp(0.65rem, 2vw, 1.25rem);
  flex-wrap: wrap;
}
.proposal-roi-x-channel {
  font-size: clamp(0.8rem, 1.9vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(249, 250, 251, 0.72);
}
.proposal-roi-x-left .proposal-roi-x-mult {
  text-align: left;
}
.proposal-roi-x-mult {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-size: clamp(1.85rem, 5.2vw, 3rem);
  min-width: 3.25ch;
}
.proposal-roi-x-gradient-text {
  color: transparent;
  background-image: linear-gradient(180deg, #ff588a 0%, #ff3d72 40%, #ee204f 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.proposal-roi-x-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1.2vw, 0.65rem);
  flex: 1 1 10rem;
  min-width: min(100%, 12rem);
}
.proposal-roi-x-overall-label {
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}
.proposal-roi-x-mult--overall {
  font-size: clamp(7.25rem, 22vw, 12.5rem);
  text-align: center;
  min-width: unset;
}
@media (max-width: 520px) {
  .proposal-roi-x-layout {
    flex-direction: column;
    align-items: stretch;
  }
  .proposal-roi-x-left {
    text-align: left;
  }
  .proposal-roi-x-row {
    justify-content: flex-start;
  }
  .proposal-roi-x-left .proposal-roi-x-mult {
    text-align: left;
  }
  .proposal-roi-x-mult--overall {
    font-size: clamp(5rem, 18vw, 8rem);
  }
}
.proposal-roi-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.85rem, 2.5vw, 1.75rem);
  width: 100%;
  max-width: min(100%, 52rem);
  margin-left: auto;
  margin-right: auto;
}
.proposal-roi-channel-mount {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  min-width: 0;
}
.proposal-roi-panel {
  width: 100%;
  padding: clamp(0.65rem, 1.8vw, 1rem) clamp(0.5rem, 1.5vw, 0.85rem) clamp(0.75rem, 2vw, 1.1rem);
  border-radius: 8px;
  box-sizing: border-box;
}
.proposal-roi-panel--chart {
  flex: 1 1 0;
  min-width: 0;
  max-width: min(100%, 36rem);
  margin-left: auto;
  margin-right: 0;
  background: #f7f7f8;
  border: none;
  box-shadow: none;
  border-radius: 10px;
  padding: clamp(0.65rem, 1.6vw, 0.95rem) clamp(0.55rem, 1.4vw, 0.85rem);
}
.proposal-roi-compare-root {
  width: 100%;
}
.proposal-roi-chart {
  --proposal-roi-plot-h: clamp(11.5rem, 28vw, 15.5rem);
  --proposal-roi-col-gap: 0.1rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.proposal-roi-channel-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.95rem;
  padding: 0;
  position: relative;
  z-index: 3;
}
.proposal-roi-channel-btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #f5f5f5;
  color: #1a1a1a;
  font-size: clamp(0.72rem, 1.65vw, 0.95rem);
  font-weight: 600;
  line-height: 1.2;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  min-width: 9.25rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.proposal-roi-channel-btn:hover {
  background: #eceff1;
}
.proposal-roi-channel-btn:focus-visible {
  outline: 2px solid #ee204f;
  outline-offset: 2px;
}
.proposal-roi-channel-btn--active {
  background: linear-gradient(180deg, #ff588a 0%, #ee204f 100%);
  border-color: #c41845;
  color: #fff;
  box-shadow: 0 0.12rem 0.35rem rgba(238, 32, 79, 0.28);
}
.proposal-roi-chart-main {
  min-width: 0;
}
.proposal-roi-grid-wrap {
  min-width: 0;
}
.proposal-roi-plot-area {
  position: relative;
  min-height: 0;
  border: none;
  padding: 0;
  box-sizing: border-box;
}
.proposal-roi-plot-stack {
  position: relative;
  min-height: var(--proposal-roi-plot-h);
  width: 100%;
}
.proposal-roi-plot-stack--solo {
  grid-column: unset;
}
.proposal-roi-plot-stack-inner {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--proposal-roi-col-gap);
  align-items: stretch;
  min-height: var(--proposal-roi-plot-h);
  position: relative;
  z-index: 2;
}
.proposal-roi-plot-band {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  min-height: var(--proposal-roi-plot-h);
  height: 100%;
}
.proposal-roi-cpa-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}
.proposal-roi-compare-track {
  width: 100%;
  max-width: 3.65rem;
  height: var(--proposal-roi-plot-h);
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.045);
  border: none;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
}
.proposal-roi-compare-track-inner {
  position: absolute;
  inset: 4px;
  border-radius: 0.28rem;
  overflow: hidden;
}
.proposal-roi-compare-fill {
  position: absolute;
  left: 0;
  right: 0;
  box-sizing: border-box;
  transition: height 0.35s ease, bottom 0.35s ease, background 0.25s ease;
  border-radius: 0.24rem;
}
.proposal-roi-m6-fill--pos {
  background: linear-gradient(180deg, #ff7a9e 0%, #ff588a 35%, #ee204f 72%, #c41845 100%);
}
.proposal-roi-m6-fill--neg {
  background: linear-gradient(180deg, #c75f7a 0%, #9a2140 100%);
}
.proposal-roi-compare-fill--empty {
  height: 0.35rem;
  min-height: 0.35rem;
  bottom: 0 !important;
  background: #cfd8dc;
}
.proposal-roi-chart-fallback {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 640px) {
  .proposal-slide-roi {
    min-height: 0;
  }
  .proposal-roi-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .proposal-roi-channel-mount {
    align-self: flex-start;
  }
  .proposal-roi-channel-stack {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.55rem;
  }
  .proposal-roi-panel--chart {
    max-width: 100%;
    margin-left: 0;
  }
  .proposal-roi-plot-stack-inner {
    --proposal-roi-col-gap: 0.08rem;
  }
  .proposal-roi-compare-track {
    max-width: 2.85rem;
  }
}

.discovery-track {
  display: flex;
  width: calc(24 * var(--discovery-slide-width));
  min-height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  transform: translateX(
  calc(
    var(--discovery-peek-left) -
    var(--discovery-index) * (var(--discovery-slide-width) + var(--discovery-slide-gap) + var(--discovery-slide-gap))
  )
);
  background-color: #EBEBEB;
}
.discovery-slide {
  width: var(--discovery-slide-width);
  flex: 0 0 var(--discovery-slide-width);
  min-height: 100%;
  overflow: hidden;
  margin:  var(--discovery-slide-gap);
}
.discovery-slide.rounded { border-radius: 0.375rem; }

/* Form slides: title band lower on the slide; main content vertically centered below */
.discovery-slide.discovery-slide--form {
  position: relative; /* containing block for .smr-slide-chrome (absolute) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
  box-sizing: border-box;
  padding-top: clamp(2.75rem, 5.5vw, 4.75rem);
  padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
  overflow: auto;
}
.discovery-slide.discovery-slide--form .discovery-slide-form-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  min-height: 0;
}
.discovery-slide.discovery-slide--form .discovery-slide-form-header {
  flex-shrink: 0;
  width: 100%;
  padding-top: 20px;
}
.discovery-slide.discovery-slide--form .discovery-slide-form-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: 0;
  width: 100%;
  /* Nudge the vertically centered block upward under the title band + chrome */
  margin-top: -4.25rem;
}
/* Priority slide: three wide pills (same grid width as acquisition / other pill slides) */
.discovery-form-priority-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}
.discovery-slide.discovery-slide--form .discovery-slide-form-body--map {
  justify-content: flex-start;
  margin-top: 0;
  padding-top: clamp(0.75rem, 2vw, 1.25rem);
}
.discovery-slide.discovery-slide--form .discovery-slide-form-body--map .discovery-area-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

/* Recap slide (before book proposal): inner body scrolls; ZIP list has its own scroll */
.discovery-slide.discovery-slide--form.discovery-slide--recap {
  overflow: hidden;
}
.discovery-slide--recap .discovery-slide-form-header > .discovery-form-acquisition-title {
  margin-top: -15px;
  font-size: clamp(1.6rem, 3.2vw, 2.75rem);
  line-height: 1.05;
}
.discovery-slide.discovery-slide--form .discovery-slide-form-inner--book-proposal {
  max-width: min(100%, 70rem);
}
/* Make an appointment: center the two-column block; sit a bit higher under the title */
.discovery-slide.discovery-slide--form[data-slide="23"] .discovery-slide-form-header {
  padding-top: 10px;
}
.discovery-slide.discovery-slide--form[data-slide="23"] .discovery-slide-form-body--appointment {
  align-items: center;
  margin-top: -1.25rem;
  padding-top: 0;
}
.discovery-slide.discovery-slide--form .discovery-slide-form-inner--recap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-width: min(100%, 58rem) !important;
  width: 100%;
}
.discovery-slide.discovery-slide--form .discovery-slide-form-inner--recap .discovery-slide-form-header {
  flex-shrink: 0;
}
.discovery-slide.discovery-slide--form .discovery-slide-form-body--recap {
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 0;
  padding-top: 0.35rem;
  /* Use 0% flex-basis so this region shrinks inside the slide and overflow-y scrolls (flex: 1 1 auto keeps content-height). */
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
/* Recap body: Figma SMR-Discovery node 2728-490 — two columns, pink checkmarks, flat sections */
.discovery-recap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
  padding-bottom: 0.5rem;
}
@media (max-width: 640px) {
  .discovery-recap-grid {
    grid-template-columns: 1fr;
  }
}
.discovery-recap-col {
  min-width: 0;
}
.discovery-recap-block {
  margin-bottom: clamp(1.15rem, 2.2vw, 1.65rem);
}
.discovery-recap-block:last-child {
  margin-bottom: 0;
}
.discovery-recap-block__title {
  margin: 0 0 0.55rem;
  font-size: clamp(0.9375rem, 1.45vw, 1.0625rem);
  font-weight: 800;
  color: #000;
  text-align: left;
  line-height: 1.25;
}
.discovery-recap-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.4rem;
  font-size: clamp(0.875rem, 1.35vw, 0.9375rem);
}
.discovery-recap-check-row:last-child {
  margin-bottom: 0;
}
.discovery-recap-check-row--tight {
  margin-bottom: 0.25rem;
}
.discovery-recap-check {
  flex-shrink: 0;
  width: 14px;
  height: 11px;
  margin-top: 0.22em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.discovery-slide--recap .discovery-recap-check {
  display: none;
}
.discovery-slide--recap .discovery-recap-check-row {
  gap: 0.45rem;
  margin-bottom: 0;
}
.discovery-recap-check svg {
  display: block;
}
.discovery-recap-check-row__label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 400;
  color: #000;
  line-height: 1.35;
}
.discovery-recap-check-row__value {
  flex-shrink: 0;
  font-weight: 400;
  color: #6b7280;
  text-align: right;
  max-width: 48%;
  line-height: 1.35;
}
.discovery-recap-metric-row {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0;
  font-size: clamp(0.875rem, 1.35vw, 0.9375rem);
}
.discovery-recap-metric-row:last-child {
  margin-bottom: 0;
}
.discovery-recap-metric-row__label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 400;
  color: #000;
  line-height: 1.35;
}
.discovery-recap-metric-row__value {
  flex-shrink: 0;
  font-weight: 400;
  color: #000;
  text-align: left;
  white-space: nowrap;
}
.discovery-recap-muted {
  font-size: 0.9rem;
  font-weight: 400;
  color: #9aa1ad;
}
.discovery-recap-area {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  max-width: 100%;
}
.discovery-recap-area__main {
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
}
/* Live recap: small read-only map of drawn polygons (replaces ZIP list) */
.discovery-recap-map {
  width: 100%;
  height: 8rem;
  min-height: 8rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  background: #eef0f3;
  z-index: 0;
}
.discovery-recap-map.leaflet-container {
  font: inherit;
}
.discovery-recap-zips-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.85rem;
  flex: 1 1 9rem;
  min-width: 0;
  max-width: 100%;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: #6b7280;
  max-height: min(36vh, 14rem);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.discovery-recap-zips-col {
  min-width: 0;
  word-break: break-word;
}
.discovery-slide.discovery-slide--form .discovery-slide-form-inner > h2,
.discovery-slide.discovery-slide--form .discovery-slide-form-header > h2,
.discovery-slide.discovery-slide--form h2.discovery-area-title {
  margin-top: 0 !important;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.1;
}
.discovery-slide.discovery-slide--form .discovery-slide-form-inner--wide {
  max-width: min(100%, 52rem);
}

/* Slide 0 hero (Figma Page 1): title centered, cars at left/right edges – fluid % */
.discovery-slide-hero {
  padding: 0;
}
.discovery-slide-hero .discovery-hero-title {
  width: 58%;
  max-width: 100%;
  font-size: clamp(2.5rem, 7.2vw, 6.5rem);
  line-height: 0.99;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", sans-serif;
}
.discovery-slide-hero .discovery-hero-center .discovery-hero-title {
  margin-left: auto;
  margin-right: auto;
}
.discovery-slide-hero .discovery-hero-center {
  width: 70%;
  max-width: 100%;
}
.discovery-slide-hero .discovery-hero-subtitle {
  margin-top: clamp(0.65rem, 1.4vw, 1.15rem);
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 600;
  line-height: 1.2;
}
.discovery-slide-hero .discovery-hero-car {
  top: 17.5%;
  width: 20.8%;
  height: auto;
  aspect-ratio: 293 / 471;
}
.discovery-slide-hero .discovery-hero-car--left { left: 0; }
.discovery-slide-hero .discovery-hero-car--right { right: 0; top: 17%; }

/* Slide 2 (Figma Page 2): 1000+ testimonial – fluid % layout */
.discovery-slide-p2 {
  padding: 0;
  background: #101332 !important;
  color: #fff;
}
.discovery-slide-p2 .discovery-p2-logo {
  left: 13%;
  top: 14%;
  width: 29.6%;
  height: auto;
  max-height: 10%;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}
.discovery-slide-p2 .discovery-p2-quote {
  left: 13%;
  top: 32.5%;
  width: 29%;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  line-height: 1.35;
  font-weight: 300;
}
.discovery-slide-p2 .discovery-p2-quote img{
  left: -66px;
  top: -20px;
  width: 45px;
}
.discovery-slide-p2 .discovery-p2-attribution {
  left: 13%;
  top: 76%;
  width: 15%;
  font-size: clamp(0.85rem, 1.2vw, 1.125rem);
}
.discovery-slide-p2 .discovery-p2-robot {
  left: 44.4%;
  top: 21%;
  width: 18.3%;
  height: 71.5%;
}
.discovery-slide-p2 .discovery-p2-stat {
  right: 11%;
  top: 41%;
  width: 23%;
}
.discovery-slide-p2 .discovery-p2-stat-number {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  color: #30deff;
}
.discovery-slide-p2 .discovery-p2-stat-plus {
  font-size: 0.55em;
  vertical-align: 0.1em;
}
.discovery-slide-p2 .discovery-p2-stat-label {
  font-size: clamp(0.9rem, 1.4vw, 1.45rem);
  font-weight: 500;
  margin-top: 0.25rem;
}
.discovery-slide-p2 .discovery-p2-decor {
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
.discovery-slide-p2 .discovery-p2-decor img {
  filter: brightness(0) invert(1);
}
.discovery-slide-p2 .discovery-p2-decor--1 {
  top: 5%;
  right: 32%;
  width: 13%;
  height: auto;
}
.discovery-slide-p2 .discovery-p2-decor--2 {
  bottom: 7%;
  left: 43%;
  width: 13%;
  height: auto;
}
.discovery-slide-p2 .discovery-p2-logo,
.discovery-slide-p2 .discovery-p2-quote,
.discovery-slide-p2 .discovery-p2-attribution,
.discovery-slide-p2 .discovery-p2-robot,
.discovery-slide-p2 .discovery-p2-stat { z-index: 1; }

/* Slide 3 (Figma Page 3): Bob Ruth / 25 units – fluid % layout */
.discovery-slide-p3 {
  padding: 0;
  background: #005a9c !important;
  color: #fff;
}
.discovery-slide-p3 .discovery-p3-heading {
  left: 14.9%;
  top: 14.6%;
  width: 15.1%;
  font-size: clamp(0.9rem, 2vw, 1.7rem);
  line-height: 1;
  letter-spacing: 0.02em;
}
.discovery-slide-p3 .discovery-p3-ford-logo {
  left: 14.9%;
  top: 21%;
  width: 15.1%;
  height: 12.4%;
  object-position: left center;
}
.discovery-slide-p3 .discovery-p3-quote {
  left: 14.9%;
  top: 46.3%;
  width: 25.9%;
  font-size: clamp(0.9rem, 1.5vw, 1.25rem);
  line-height: 1.35;
  font-weight: 500;
}
.discovery-slide-p3 .discovery-p3-attribution {
  left: 14.9%;
  top: 59.7%;
  width: 15%;
  font-size: clamp(0.85rem, 1.2vw, 1.125rem);
}
.discovery-slide-p3 .discovery-p3-attribution span.fw-bold { font-size: 1.1em; }
.discovery-slide-p3 .discovery-p3-stat {
  right: 16.5%;
  top: 24%;
  width: 22%;
}
.discovery-slide-p3 .discovery-p3-stat-number {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
}
.discovery-slide-p3 .discovery-p3-stat-label {
  font-size: clamp(0.9rem, 1.4vw, 1.45rem);
  font-weight: 500;
  margin-top: 0.25rem;
}
.discovery-slide-p3 .discovery-p3-truck {
  left: 49%;
  top: 36%;
  width: 41%;
  height: 72%;
  transform: rotate(-3.85deg);
  object-position: right center;
}
.discovery-slide-p3 .discovery-p3-watermark {
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}
.discovery-slide-p3 .discovery-p3-watermark img {
  filter: brightness(0) invert(1);
}
.discovery-slide-p3 .discovery-p3-watermark--1 {
  top: 16%;
  left: 40%;
  width: 22%;
  height: 12%;
}
.discovery-slide-p3 .discovery-p3-watermark--2 {
  bottom: 17%;
  left: 39%;
  width: 18%;
  height: 10%;
}
.discovery-slide-p3 .discovery-p3-watermark--3 {
  top: 15%;
  right: 8%;
  width: 10%;
  height: 8%;
}
.discovery-slide-p3 .discovery-p3-heading,
.discovery-slide-p3 .discovery-p3-ford-logo,
.discovery-slide-p3 .discovery-p3-quote,
.discovery-slide-p3 .discovery-p3-attribution,
.discovery-slide-p3 .discovery-p3-stat,
.discovery-slide-p3 .discovery-p3-truck { z-index: 1; }

/* Slide 4 (Figma Page 4): CPA – full-bleed image + overlay labels */
.discovery-slide-p4 {
  padding: 0;
  background: #1a1a1a;
}
.discovery-slide-p4 .discovery-p4-placeholder {
  z-index: 0;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}
.discovery-slide-p4 .discovery-p4-bg {
  z-index: 1;
}
.discovery-slide-p4 video.discovery-p4-bg {
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .discovery-slide-p4 video.discovery-p4-bg {
    opacity: 0;
  }
}
.discovery-slide-p4 .discovery-p4-title {
  left: 50%;
  top: 5.8%;
  transform: translateX(-50%);
  font-size: 40px;
  line-height: 1.1;
  z-index: 2;
}
.discovery-slide-p4 .discovery-p4-label {
  font-size: clamp(0.65rem, 0.9vw, 1rem);
  line-height: 1.2;
  z-index: 2;
}
.discovery-slide-p4 .discovery-p4-label span.fw-normal {
  font-size: 1.4em;
  font-weight: 400;
}
.discovery-slide-p4 .discovery-p4-label[data-pos="fees"] { left: 50%; top: 21%; }
.discovery-slide-p4 .discovery-p4-label[data-pos="transportation"] { left: 57%; top: 30%; }
.discovery-slide-p4 .discovery-p4-label[data-pos="floorplan"] { left: 61%; top: 50%; }
.discovery-slide-p4 .discovery-p4-label[data-pos="recon"] { left: 40%; top: 59%; }
.discovery-slide-p4 .discovery-p4-label[data-pos="time-receive"] { left: 53.2%; top: 64%; }
.discovery-slide-p4 .discovery-p4-label[data-pos="time-turn"] { left: 57.8%; top: 74.5%; }
.discovery-slide-p4 .discovery-p4-label[data-pos="gross-margin"] { left: 43%; top: 79.9%; }
.discovery-slide-p4 .discovery-p4-label[data-pos="trade"] { left: 54.8%; top: 88%; }

/* Volume proposal iceberg: auction + D2C cost cards side by side */
.discovery-slide-p4--volume .discovery-p4-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}
.discovery-slide-p4--volume .discovery-p4-volume-layout {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.85rem, 2vw, 1.35rem);
  width: min(52rem, 92vw);
}
.discovery-slide-p4--volume .discovery-p4-volume-card {
  flex: 1 1 0;
  min-width: 0;
  padding: clamp(1rem, 2.2vw, 1.35rem) clamp(1.1rem, 2.5vw, 1.5rem);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}
.discovery-slide-p4--volume .discovery-p4-volume-card__heading {
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #161616;
  padding-bottom: 0.55rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(22, 22, 22, 0.1);
}
.discovery-slide-p4--volume .discovery-p4-volume-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
}
.discovery-slide-p4--volume .discovery-p4-volume-metric:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.discovery-slide-p4--volume .discovery-p4-volume-metric__label {
  flex: 1 1 auto;
  font-size: clamp(0.6875rem, 1.1vw, 0.8125rem);
  line-height: 1.3;
  color: #5c6573;
}
.discovery-slide-p4--volume .discovery-p4-volume-metric__value {
  flex: 0 0 auto;
  font-size: clamp(0.875rem, 1.45vw, 1.0625rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #161616;
  text-align: right;
  white-space: nowrap;
}
.discovery-slide-p4--volume .discovery-p4-volume-metric--auction-total .discovery-p4-volume-metric__label,
.discovery-slide-p4--volume .discovery-p4-volume-metric--auction-total .discovery-p4-volume-metric__value {
  font-weight: 700;
  color: #fc0039;
}
.discovery-slide-p4--volume .discovery-p4-volume-metric--d2c-total .discovery-p4-volume-metric__label,
.discovery-slide-p4--volume .discovery-p4-volume-metric--d2c-total .discovery-p4-volume-metric__value {
  font-weight: 700;
  color: #2e7d32;
}
@media (max-width: 720px) {
  .discovery-slide-p4--volume .discovery-p4-volume-layout {
    flex-direction: column;
    top: 56%;
    width: min(22rem, 90vw);
    max-height: 72%;
    overflow-y: auto;
  }
}

/* Discovery: We only win when you win — full-bleed photo, headline on left half */
.discovery-slide-we-only-win {
  padding: 0;
  background: #1a1a1a;
}
.discovery-slide-we-only-win .discovery-we-only-win-placeholder {
  z-index: 0;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}
.discovery-slide-we-only-win .discovery-we-only-win-bg {
  z-index: 1;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.discovery-slide-we-only-win .discovery-we-only-win-copy {
  z-index: 2;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: clamp(3.5rem, 10vw, 6rem) clamp(1.5rem, 4vw, 3rem);
  box-sizing: border-box;
  background: linear-gradient(
    90deg,
    rgba(16, 19, 24, 0.72) 0%,
    rgba(16, 19, 24, 0.42) 55%,
    transparent 100%
  );
}
.discovery-slide-we-only-win .discovery-we-only-win-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: left;
  max-width: 18ch;
}
@media (max-width: 640px) {
  .discovery-slide-we-only-win .discovery-we-only-win-copy {
    width: 100%;
    align-items: flex-end;
    padding-bottom: clamp(2rem, 8vw, 3rem);
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(16, 19, 24, 0.55) 45%,
      rgba(16, 19, 24, 0.82) 100%
    );
  }
}

/* Proposal: website preview */
.proposal-slide-website {
  padding: 0;
}
.proposal-website-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
}
.proposal-slide-website .proposal-website-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}
.proposal-slide-website .proposal-website-frame {
  position: relative;
  width: min(920px, 100%);
  padding: clamp(0.65rem, 1.5vw, 1rem);
  background: linear-gradient(180deg, #f8f9fb 0%, #eef1f5 100%);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(16, 19, 24, 0.1);
}
.proposal-slide-website .proposal-website-img {
  display: block;
  width: 100%;
  max-height: min(58vh, 520px);
  object-fit: contain;
  border-radius: 10px;
}

/* Proposal: volume pricing slide */
.proposal-slide-volume-pricing {
  padding: 0;
}
.proposal-volume-pricing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.proposal-volume-pricing-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
}
.proposal-volume-pricing-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.5vw, 1rem);
  width: min(720px, 100%);
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}
@media (max-width: 640px) {
  .proposal-volume-pricing-toggle {
    grid-template-columns: 1fr;
  }
}
.proposal-volume-pricing-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0.85rem 1rem;
  margin: 0;
  cursor: pointer;
  text-align: center;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 600;
  line-height: 1.25;
  color: #101318;
  background: #fff;
  border: 1px solid #c8ccd4;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.proposal-volume-pricing-option:hover {
  border-color: #a8b0bd;
  background: #fafafa;
}
.proposal-volume-pricing-option.is-active {
  background: linear-gradient(180deg, #ff588a 0%, #ee204f 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(238, 32, 79, 0.28);
}
.proposal-volume-pricing-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.proposal-volume-pricing-option small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.85;
}
.proposal-volume-pricing-tier-panel {
  width: min(420px, 100%);
  transition: opacity 0.2s ease;
}
.proposal-volume-pricing-tier-panel.is-dimmed {
  opacity: 0.45;
}
.proposal-volume-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
.proposal-volume-pricing-table th,
.proposal-volume-pricing-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #e8ebf0;
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
}
.proposal-volume-pricing-table th {
  font-weight: 700;
  text-transform: lowercase;
  color: #161616;
}
.proposal-volume-pricing-table td:last-child,
.proposal-volume-pricing-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Proposal: Figma-style volume pricing summary slide */
.proposal-slide-volume-pricing-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vh, 2.25rem);
  padding: clamp(3.75rem, 8vh, 5.25rem) clamp(2rem, 8vw, 8.75rem) clamp(2.25rem, 6vh, 4rem);
  box-sizing: border-box;
}
.proposal-volume-pricing-summary-title {
  position: relative;
  width: min(58rem, 100%);
  color: #060606;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  z-index: 1;
  flex: 0 0 auto;
  margin: -40px 0 40px;
}

.proposal-volume-pricing-summary-inner {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(18rem, 1.1fr) minmax(19rem, 1.1fr);
  align-items: start;
  justify-content: center;
  column-gap: clamp(1.5rem, 3.2vw, 3rem);
  width: min(73rem, 100%);
  min-height: 0;
  padding: 0;
}
.proposal-volume-pricing-summary-panel {
  min-width: 0;
}
.proposal-volume-pricing-summary-panel--terms {
  display: grid;
  gap: clamp(2.2rem, 7vh, 3.75rem);
}
.proposal-volume-pricing-summary-heading {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.1;
  font-weight: 800;
  color: #060606;
  letter-spacing: 0;
}
.proposal-volume-pricing-summary-step {
  flex: 0 0 auto;
  display: inline-flex;
  width: 1.0625rem;
  height: 1.0625rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f42455;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1;
}
.proposal-volume-pricing-summary-includes {
  display: grid;
  gap: clamp(0.65rem, 1.4vh, 0.9rem);
  margin-top: clamp(0.85rem, 2vh, 1.25rem);
}
.proposal-volume-pricing-summary-include-title {
  font-size: clamp(0.88rem, 1.35vw, 1.05rem);
  line-height: 1.15;
  font-weight: 700;
  color: #080808;
}
.proposal-volume-pricing-summary-include-detail {
  margin-top: 0.1rem;
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  line-height: 1.2;
  color: #333;
}
.proposal-volume-pricing-summary-one-time,
.proposal-volume-pricing-summary-media-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: #050505;
  font-size: clamp(0.88rem, 1.25vw, 1rem);
  line-height: 1.2;
  font-weight: 700;
}
.proposal-volume-pricing-summary-one-time {
  margin-top: clamp(1.55rem, 4.5vh, 2.25rem);
}
.proposal-volume-pricing-summary-table {
  width: min(21rem, 100%);
  margin-top: 0.65rem;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 0.375rem;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
.proposal-volume-pricing-summary-table td {
  padding: clamp(0.45rem, 1.2vh, 0.625rem) 0.7rem;
  border: 1px solid #cfcfcf;
  font-size: clamp(0.88rem, 1.25vw, 1rem);
  line-height: 1.15;
  color: #070707;
}
.proposal-volume-pricing-summary-table tr:first-child td {
  background: #f7cbd6;
}
.proposal-volume-pricing-summary-table td:first-child {
  font-weight: 500;
}
.proposal-volume-pricing-summary-table td:last-child {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.proposal-volume-pricing-summary-kicker {
  margin-top: 0.65rem;
  color: #f42455;
  font-size: clamp(0.72rem, 1.05vw, 0.85rem);
  line-height: 1.2;
}
.proposal-volume-pricing-summary-note {
  margin-top: 0.75rem;
  color: #9a9a9a;
  font-size: clamp(0.72rem, 1.05vw, 0.85rem);
  line-height: 1.25;
}
.proposal-volume-pricing-summary-media {
  margin-top: clamp(1.4rem, 4vh, 2rem);
}
.proposal-volume-pricing-summary-media-row {
  margin-top: 0.6rem;
  padding-left: 1.65rem;
}
.proposal-volume-pricing-summary-guarantee p {
  max-width: 20rem;
  margin-top: 0.65rem;
  padding-left: 2rem;
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  line-height: 1.35;
  color: #121212;
}
.proposal-volume-pricing-summary-payoff-card {
  width: min(20.75rem, 100%);
  margin-top: 0.85rem;
  padding: clamp(0.85rem, 1.7vw, 1.125rem) clamp(0.75rem, 1.7vw, 0.875rem);
  border-radius: 0.375rem;
  background: #f41f52;
  color: #fff;
}
.proposal-volume-pricing-summary-payoff-title {
  font-size: clamp(0.9rem, 1.45vw, 1.08rem);
  line-height: 1.25;
  font-weight: 800;
}
.proposal-volume-pricing-summary-payoff-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.95rem;
}
.proposal-volume-pricing-summary-payoff-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.proposal-volume-pricing-summary-payoff-list dt,
.proposal-volume-pricing-summary-payoff-list dd {
  margin: 0;
  font-size: clamp(0.72rem, 1.05vw, 0.84rem);
  line-height: 1.15;
}
.proposal-volume-pricing-summary-payoff-list dt {
  font-weight: 500;
}
.proposal-volume-pricing-summary-payoff-list dd {
  flex-shrink: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.proposal-volume-pricing-summary-payoff-total {
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.75);
}
.proposal-volume-pricing-summary-payoff-total dt,
.proposal-volume-pricing-summary-payoff-total dd {
  font-weight: 800;
}
@media (max-width: 980px) {
  .proposal-slide-volume-pricing-summary {
    gap: clamp(1rem, 3vh, 1.5rem);
    padding: clamp(3.25rem, 6vh, 4.5rem) clamp(1.25rem, 5vw, 3rem) clamp(1.5rem, 4vh, 2rem);
  }
  .proposal-volume-pricing-summary-inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 1.5rem;
  }
  .proposal-volume-pricing-summary-panel--terms {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}
@media (max-width: 640px) {
  .proposal-volume-pricing-summary-inner,
  .proposal-volume-pricing-summary-panel--terms {
    grid-template-columns: 1fr;
  }
}

/* Volume proposal forecast: single centered phase column */
.proposal-slide-forecast--volume .proposal-forecast-title {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
}
.proposal-forecast-volume-phase-carousel {
  margin-top: clamp(0.25rem, 1vw, 0.75rem);
}
.proposal-forecast-volume-phase-layout {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  max-width: min(34rem, 96vw);
  margin-inline: auto;
}
.proposal-forecast-phase-arrow {
  flex-shrink: 0;
  align-self: center;
  width: 2.5rem;
  height: 66%;
  min-height: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
}
.proposal-forecast-phase-arrow:disabled {
  opacity: 0.35;
}
.proposal-forecast-volume-phase-heading {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #161616;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 0.5rem;
}
.proposal-forecast-table-wrap--volume-phase {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-x: visible;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(26rem, 84vw);
}
.proposal-forecast-table-wrap--volume-phase .proposal-forecast-table--volume-phase {
  width: 100%;
  min-width: 0;
  margin-inline: auto;
}
.proposal-forecast-table-wrap--volume-phase .proposal-forecast-tr--volume-deck-hidden {
  display: none;
}
.proposal-forecast-table-wrap--volume-phase .proposal-forecast-rowhead {
  width: 46%;
  font-size: clamp(0.8125rem, 1.25vw, 1rem);
  padding: 0.5rem 0.65rem 0.5rem 0;
  text-align: right;
  color: #5c6573;
  line-height: 1.3;
}
.proposal-forecast-table-wrap--volume-phase .proposal-forecast-td {
  width: 54%;
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  font-weight: 600;
  padding: 0.5rem 0 0.5rem 0.65rem;
  text-align: left;
  font-variant-numeric: tabular-nums;
  color: #161616;
  line-height: 1.3;
}
.proposal-forecast-table-wrap--volume-phase .proposal-forecast-td--target,
.proposal-forecast-table-wrap--volume-phase .proposal-forecast-th--target {
  color: var(--proposal-forecast-accent, rgb(255, 42, 105));
}
.proposal-forecast-table-wrap--volume-phase .proposal-forecast-tr--emphasis .proposal-forecast-rowhead,
.proposal-forecast-table-wrap--volume-phase .proposal-forecast-tr--emphasis .proposal-forecast-td {
  font-weight: 700;
}
.proposal-forecast-table-wrap--volume-phase .proposal-forecast-tr--accent .proposal-forecast-rowhead,
.proposal-forecast-table-wrap--volume-phase .proposal-forecast-tr--accent .proposal-forecast-td {
  color: var(--proposal-forecast-accent, rgb(255, 42, 105));
  font-weight: 700;
}
.proposal-slide-forecast--volume .proposal-forecast-tr--accent .proposal-forecast-rowhead,
.proposal-slide-forecast--volume .proposal-forecast-tr--accent .proposal-forecast-td {
  color: var(--proposal-forecast-accent, rgb(255, 42, 105));
  font-weight: 700;
}

/* Slide Chip Perry (Figma Page 5, 1440×693): left copy + quote art, right portrait */
.discovery-slide-chip {
  padding: 0;
}
.discovery-slide-chip .discovery-chip-inner {
  position: relative;
  width: 100%;
  min-height: 100%;
  aspect-ratio: 1440 / 693;
}
.discovery-slide-chip .discovery-chip-quote-icon {
  position: absolute;
  left: 14%;
  top: 29%;
  width: clamp(3rem, 5.97vw, 5.375rem);
  height: auto;
  transform: rotate(180deg);
  z-index: 1;
}
.discovery-slide-chip .discovery-chip-quote {
  position: absolute;
  left: 24.65%;
  top: 34.6%;
  width: 33.85%;
  max-width: 34rem;
  padding: 0;
  border: 0;
  z-index: 1;
}
.discovery-slide-chip .discovery-chip-quote-text {
  margin: 0;
  font-weight: 500;
  font-size: clamp(0.95rem, 2.6vw, 1.1875rem);
  line-height: 1.58;
  color: #000;
}
.discovery-slide-chip .discovery-chip-name {
  position: absolute;
  left: 24.65%;
  top: 67.8%;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 3.8vw, 1.6875rem);
  line-height: 1.05;
  color: #000;
  z-index: 1;
}
.discovery-slide-chip .discovery-chip-role {
  position: absolute;
  left: 24.65%;
  top: 73.2%;
  font-weight: 700;
  font-size: clamp(0.8rem, 2.1vw, 0.9375rem);
  line-height: 1.15;
  color: #000;
  z-index: 1;
}
.discovery-slide-chip .discovery-chip-photo {
  position: absolute;
  left: 56.4%;
  bottom: 0;
  width: 30.85%;
  z-index: 1;
  line-height: 0;
}
.discovery-slide-chip .discovery-chip-photo-img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0;
  object-fit: contain;
  object-position: bottom center;
}

/* Slide 6 (Figma Page 6): Exclusive leads – full-bleed bg + centered title */
.discovery-slide-p6 {
  padding: 0;
  background: #11142c;
}
.discovery-slide-p6 .discovery-p6-placeholder {
  z-index: 0;
  background: #11142c;
}
.discovery-slide-p6 .discovery-p6-bg {
  z-index: 1;
  object-position: center top;
}
.discovery-slide-p6 .discovery-p6-title {
  left: 50%;
  top: 48.4%;
  transform: translate(-50%, -50%);
  width: 58%;
  max-width: 100%;
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 1;
  z-index: 2;
}

/* Slide 7: More of the vehicles you want – white bg, truck anchored right */
.discovery-slide-p7 {
  padding: 0;
  background: #fff !important;
}
.discovery-slide-p7 .discovery-p7-placeholder {
  z-index: 0;
  background: #fff;
}
.discovery-slide-p7 .discovery-p7-truck {
  z-index: 1;
  right: 0;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  pointer-events: none;
}
.discovery-slide-p7 .discovery-p7-title {
  left: 6%;
  padding-left: clamp(0.25rem, 1.2vw, 0.75rem);
  top: 48.4%;
  transform: translateY(-50%);
  width: 66%;
  max-width: 100%;
  font-size: clamp(1.5rem, 3.1vw, 2.9rem);
  line-height: 1.1;
  color: #101318 !important;
  z-index: 2;
}

/* Slide: Building your - white bg, billboard image right */
.discovery-slide-building {
  padding: 0;
  background: #fff !important;
}
.discovery-slide-building .discovery-building-placeholder {
  z-index: 0;
  background: #fff;
}
.discovery-slide-building .discovery-building-img {
  z-index: 1;
  right: 10%;
  bottom: 0;
  top: auto;
  width: 80%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}
.discovery-slide-building .discovery-building-title {
  right: 55%;
  top: 49%;
  transform: translateY(-50%);
  font-size: clamp(1.75rem, 3.6vw, 3.15rem);
  line-height: 1.1;
  color: #101318 !important;
  z-index: 2;
}

/* Slide 9: Predictable scalability (Figma Page 10) - full-bleed video bg, title overlay */
.discovery-slide-predictable {
  padding: 0;
  background: #fff !important;
}
.discovery-slide-predictable .discovery-predictable-placeholder {
  z-index: 0;
  background: #fff;
}
.discovery-slide-predictable .discovery-predictable-video {
  z-index: 1;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.discovery-slide-predictable .discovery-predictable-title {
  left: 16%;
  top: 48.4%;
  transform: translateY(-50%);
  width: 56%;
  max-width: 817px;
  font-size: clamp(1.85rem, 3.75vw, 3.35rem);
  line-height: 1.1;
  color: #101318 !important;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .discovery-slide-predictable .discovery-predictable-video {
    opacity: 0;
  }
}

/* Slide 8 (Figma Page 8): Only the areas you want – full-bleed bg, white text */
.discovery-slide-p8 {
  padding: 0;
  background: #1a1a2e !important;
}
.discovery-slide-p8 .discovery-p8-placeholder {
  z-index: 0;
  background: #1a1a2e;
}
.discovery-slide-p8 .discovery-p8-bg {
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.discovery-slide-p8 .discovery-p8-title {
  left: 50%;
  top: 48.4%;
  transform: translate(-50%, -50%);
  width: 75%;
  max-width: 100%;
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 1.1;
  color: #fff !important;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* Valuation slide — background-image URL in discovery/show.blade.php @push('styles') */
.discovery-slide-valuation {
  padding: 0;
  background-color: #1a1a1a;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Slide 10: First contact within 30 seconds - full-bleed bg (Figma image 1), white title left */
.discovery-slide-first-contact {
  padding: 0;
  background: #1a1a2e !important;
}
.discovery-slide-first-contact .discovery-first-contact-placeholder {
  z-index: 0;
  background: #1a1a2e;
}
.discovery-slide-first-contact .discovery-first-contact-bg {
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.discovery-slide-first-contact .discovery-first-contact-title {
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 48%;
  text-align: left;
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 1.12;
  color: #fff !important;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Slide 11: The sellmyride® car buying system - Figma Page 12 (37:2017), % from 1440×693 */
.discovery-slide-car-buying {
  padding: 0;
  background: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.discovery-car-buying-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1440 / 693;
  flex-shrink: 0;
}
.discovery-car-buying-abs {
  position: absolute;
  box-sizing: border-box;
}
.discovery-car-buying-title {
  left: 21.597%;
  top: 14.285%;
  width: 56.736%;
  font-size: 36px;
  line-height: 1.15;
  color: #101318;
  z-index: 30;
}
.discovery-car-buying-bar {
  left: 12.847%;
  top: 50.072%;
  width: 74.653%;
  height: 1.443%;
  background: #7d7d7d;
  z-index: 1;
}
.discovery-car-buying-img {
  max-width: none;
  pointer-events: none;
  object-fit: contain;
  z-index: 4;
}
.discovery-car-buying-img--tablet {
  left: 8.403%;
  top: 39.683%;
  width: 16.458%;
  height: 20.779%;
}
.discovery-car-buying-img--phone {
  left: 29.028%;
  top: 39.683%;
  width: 3.194%;
  height: 19.913%;
  object-fit: cover;
  object-position: center top;
}
.discovery-car-buying-img--ellipse-87 {
  left: 39.583%;
  top: 35.209%;
  width: 14.861%;
  height: 30.882%;
  z-index: 2;
}
.discovery-car-buying-img--ellipse-88-top {
  left: 42.014%;
  top: 32.756%;
  width: 10.139%;
  height: 10.678%;
  z-index: 3;
}
.discovery-car-buying-img--ellipse-88-bottom {
  left: 42.014%;
  top: 60.173%;
  width: 10.139%;
  height: 10.678%;
  z-index: 3;
}
.discovery-car-buying-img--ellipse-35 {
  left: 43.75%;
  top: 43.434%;
  width: 6.389%;
  height: 13.276%;
  z-index: 4;
}
.discovery-car-buying-img--meta {
  left: 42.986%;
  top: 34.632%;
  width: 7.986%;
  height: 6.638%;
  z-index: 5;
}
.discovery-car-buying-img--google {
  left: 42.778%;
  top: 44.299%;
  width: 8.333%;
  height: 17.316%;
  object-fit: cover;
  object-position: center center;
  z-index: 6;
}
.discovery-car-buying-img--funnel-tablet {
  left: 56.597%;
  top: 41.991%;
  width: 12.847%;
  height: 16.16%;
  z-index: 7;
}
.discovery-car-buying-img--funnel-main {
  left: 59.792%;
  top: 37.518%;
  width: 6.458%;
  height: 13.42%;
  z-index: 8;
}
.discovery-car-buying-img--funnel-dot {
  width: 1.736%;
  height: 3.608%;
  object-fit: contain;
  z-index: 9;
}
.discovery-car-buying-img--funnel-dot-1 {
  left: 60.903%;
  top: 36.075%;
}
.discovery-car-buying-img--funnel-dot-2 {
  left: 63.681%;
  top: 32.468%;
}
.discovery-car-buying-img--funnel-dot-3 {
  left: 60.903%;
  top: 30.563%;
}
.discovery-car-buying-img--client {
  left: 71.042%;
  top: 35.641%;
  width: 6.25%;
  height: 15.873%;
  z-index: 7;
}
.discovery-car-buying-img--truck {
  left: 79.181%;
  top: 40.115%;
  width: 14.444%;
  height: 18.036%;
  z-index: 7;
}
.discovery-car-buying-label {
  font-size: clamp(0.65rem, 1.6vw, 1.4375rem);
  font-weight: 500;
  line-height: 1.25;
  color: #101318;
  z-index: 25;
  box-sizing: border-box;
}
.discovery-car-buying-label--1 {
  left: 11.458%;
  top: 63.348%;
  width: 10.694%;
}
.discovery-car-buying-label--2 {
  left: 22.847%;
  top: 63.348%;
  width: 15.139%;
}
.discovery-car-buying-label--3 {
  left: 40.486%;
  top: 63.348%;
  width: 13.333%;
}
.discovery-car-buying-label--4 {
  left: 57.431%;
  top: 63.348%;
  width: 10.417%;
}
.discovery-car-buying-label--5 {
  left: 68.889%;
  top: 63.348%;
  width: 10.417%;
}
.discovery-car-buying-label--6 {
  left: 81.597%;
  top: 63.348%;
  width: 10.417%;
}

/* Slide 12: The price of admission - full-bleed bg, same footprint as other discovery slides */
.discovery-slide-price-admission {
  padding: 0;
  background: #fff !important;
}
.discovery-slide-price-admission .discovery-price-admission-placeholder {
  z-index: 0;
  background: #fff;
}
.discovery-slide-price-admission .discovery-price-admission-bg {
  z-index: 1;
  object-position: center;
  pointer-events: none;
}
.discovery-slide-price-admission .discovery-price-admission-title {
  left: 50%;
  top: 24.675%;
  transform: translateX(-50%);
  width: 67.917%;
  max-width: calc(100% - 1.5rem);
  font-size: clamp(1.75rem, 4.65vw, 4.1875rem);
  line-height: 1.05;
  color: #000 !important;
  z-index: 2;
  box-sizing: border-box;
}
.discovery-slide-price-admission .discovery-price-admission-line {
  left: 50%;
  top: 45.31%;
  transform: translateX(-50%);
  width: 56.736%;
  max-width: calc(100% - 1.5rem);
  font-size: clamp(1rem, 2.1vw, 1.8125rem);
  font-weight: 500;
  line-height: 1.2;
  color: #161616 !important;
  z-index: 2;
  box-sizing: border-box;
}

.discovery-slide-price-admission .discovery-price-admission-subline {
  left: 50.31%;
  top: 51.31%;
  transform: translateX(-50%);
  width: 56.736%;
  max-width: calc(100% - 1.5rem);
  font-size: clamp(1rem, 2.1vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.2;
  color: #161616 !important;
  z-index: 2;
  box-sizing: border-box;
}

.discovery-slide--dark { background: #11142b !important; color: #fff; }
.discovery-slide--blue { background: #005a9c !important; color: #fff; }
/* Dark slide: viewport chrome uses light styling */

.discovery-deck[data-theme="dark"] .discovery-viewport .btn-outline-dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

.discovery-option.btn.active {
  background: var(--bs-danger);
  border-color: var(--bs-danger);
  color: #fff;
}

/* Pill-form slides (Acquisition, Vehicles to avoid, CRM, Your team) - 3-col grid, pink gradient selected */
.discovery-slide.discovery-slide--form.discovery-slide-form-pills .discovery-slide-form-inner {
  max-width: min(100%, 58rem);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.discovery-slide-form-pills .discovery-form-acquisition-title {
  text-align: center;
  color: #101318;
}
.discovery-slide-form-pills .discovery-form-acquisition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 2.4vw, 2.125rem);
  width: 100%;
}
.discovery-slide-form-pills .discovery-slide-form-body--avoid {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.discovery-slide-form-pills .discovery-form-acquisition-grid--avoid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: min(100%, 58rem);
  margin-left: auto;
  margin-right: auto;
  gap: clamp(0.75rem, 2.4vw, 2.125rem);
}
.discovery-slide-form-pills .discovery-form-acquisition-grid--avoid > .discovery-option.discovery-form-pill {
  flex: 0 0 auto;
  width: min(18rem, calc((100% - clamp(0.75rem, 2.4vw, 2.125rem) * 2) / 3));
}
.discovery-slide-form-pills .discovery-avoid-tradein-row {
  display: flex;
  justify-content: center;
  margin-top: clamp(3.75rem, 9vh, 6.5rem);
}
.discovery-slide-form-pills .discovery-avoid-tradein-row > .discovery-option.discovery-form-pill {
  width: min(100%, 18rem);
}
.discovery-crm-question {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  color: #000;
}
/* CRM slide: question + same wide Yes/No pills as other decks, one row */
.discovery-slide-form-body .discovery-crm-one-line {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.75rem, 2.4vw, 2.125rem);
  width: 100%;
  max-width: min(100%, 58rem);
  margin-left: auto;
  margin-right: auto;
  margin-top: 2.25rem;
}
.discovery-crm-one-line .discovery-crm-question {
  flex: 0 1 auto;
  min-width: 0;
  margin-bottom: 0 !important;
  text-align: left;
  white-space: nowrap;
}
.discovery-crm-one-line .discovery-form-acquisition-grid.discovery-crm-yes-no-grid {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(0.75rem, 2.4vw, 2.125rem);
}
.discovery-crm-one-line .discovery-crm-yes-no-grid > .discovery-option.discovery-form-pill {
  width: 100%;
  max-width: none;
}
.discovery-slide-form-pills .discovery-form-acquisition-other-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
  grid-column: 2;
}
/* Fourth pill in a 3-column grid: center under top row */
.discovery-slide-form-pills .discovery-form-pill--grid-solo-bottom {
  grid-column: 2;
}
.discovery-slide-form-pills .discovery-option.discovery-form-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.5rem 0.75rem;
  margin: 0;
  cursor: pointer;
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  hyphens: auto;
  color: #101318;
  background: #fff;
  border: 1px solid #c8ccd4;
  border-radius: 8px;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.discovery-slide-form-pills .discovery-option.discovery-form-pill:focus-visible {
  outline: 2px solid #ee204f;
  outline-offset: 2px;
}
.discovery-slide-form-pills .discovery-option.discovery-form-pill:hover {
  background: #fafafa;
  color: #101318;
  border-color: #a8b0bd;
}
.discovery-slide-form-pills .discovery-option.discovery-form-pill.active {
  background: linear-gradient(180deg, #ff588a 0%, #ee204f 100%);
  border-color: transparent;
  color: #fff !important;
  font-weight: 700;
}
.discovery-slide-form-pills .discovery-option.discovery-form-pill.active::before {
  content: none;
  display: none;
}
.discovery-slide-form-pills .discovery-form-acquisition-other-wrap {
  width: 100%;
}
.discovery-slide-form-pills .discovery-form-acquisition-other {
  width: 100%;
  max-width: none;
  min-height: 50px;
  border: 1px solid #c8ccd4;
  border-radius: 8px;
  font-size: 1.0625rem;
  padding: 0.625rem 0.875rem;
}
.discovery-slide-form-pills .discovery-form-acquisition-other::placeholder {
  color: #a0a0a0;
}
.discovery-acq-count-editor {
  position: absolute;
  z-index: 5;
  padding: 0.75rem 0.75rem;
  border: 1px solid rgba(238, 32, 79, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}
.discovery-acq-count-editor__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #101318;
  text-align: center;
  margin-bottom: 0.55rem;
}
.discovery-acq-count-editor__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.discovery-acq-count-editor__input {
  min-height: 44px;
  font-size: 1rem;
  border: 1px solid rgba(238, 32, 79, 0.35) !important;
}
.discovery-acq-count-editor__input:focus {
  border-color: rgba(238, 32, 79, 0.75) !important;
  box-shadow: 0 0 0 0.2rem rgba(238, 32, 79, 0.18) !important;
}
.discovery-acq-count-editor__btn {
  min-height: 44px;
  padding-left: 1rem;
  padding-right: 1rem;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff588a 0%, #ee204f 100%);
  transition: filter 0.15s ease, transform 0.12s ease;
}
.discovery-acq-count-editor__btn:hover {
  filter: brightness(0.98);
}
.discovery-acq-count-editor__btn:active {
  transform: translateY(1px);
}
.discovery-slide-form-body--acq-strategy {
  position: relative;
}
@media (max-width: 640px) {
  .discovery-slide-form-pills .discovery-form-acquisition-grid {
    grid-template-columns: 1fr;
  }
  /* CRM Yes/No: stay two columns inline on small screens */
  .discovery-slide-form-pills .discovery-form-acquisition-grid.discovery-crm-yes-no-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .discovery-slide-form-pills .discovery-form-acquisition-other-stack {
    grid-column: auto;
  }
  .discovery-slide-form-pills .discovery-form-pill--grid-solo-bottom {
    grid-column: auto;
  }
}

/* Slide 14: Current performance metrics - use most of the slide (override default form 36rem cap) */
.discovery-slide.discovery-slide--form.discovery-slide-form-metrics .discovery-slide-form-inner--metrics {
  width: 100%;
  max-width: min(100%, 58rem);
  margin-left: auto;
  margin-right: auto;
}
.discovery-slide-form-metrics .discovery-form-metrics-title {
  color: #000;
}
.discovery-slide-form-metrics .discovery-metric-row:not(:last-child) {
  margin-bottom: 30px;
}
.discovery-metric-row {
  --slider-progress: 0;
  display: grid;
  grid-template-columns: minmax(9.5rem, 28%) 1fr;
  grid-template-areas:
    "corner corner"
    "label track";
  column-gap: 1rem;
  row-gap: 0.35rem;
  align-items: start;
}
.discovery-metric-row--with-inline-select {
  grid-template-columns: minmax(9.5rem, 28%) 1fr auto;
  grid-template-areas:
    "corner corner corner"
    "label track select";
}
.discovery-inline-select-wrap {
  grid-area: select;
  align-self: center;
  padding-top: 1.1rem; /* align with the bar row rather than tick labels */
  /* Keep slider track widths aligned between slides. */
  width: 92px;
  min-width: 92px;
  max-width: 92px;
  box-sizing: border-box;
}
/* Performance metrics: reserve third column width so sliders match profit slide (no select UI) */
.discovery-inline-select-wrap.discovery-inline-select-wrap--empty {
  pointer-events: none;
}
@media (max-width: 640px) {
  .discovery-inline-select-wrap--empty {
    display: none;
  }
}
.discovery-inline-select {
  width: 92px;
}
.discovery-metric-corner {
  grid-area: corner;
}
/* Tick labels live inside .discovery-metric-track-block so % width matches the dots + range (Figma 2059 / 2416). */
.discovery-metric-tick-labels {
  position: relative;
  min-height: 1rem;
  margin-bottom: 0.2rem;
  padding: 0;
  font-size: clamp(0.5625rem, 1.35vw, 0.6875rem);
  font-weight: 500;
  color: #000;
  line-height: 1.15;
}
.discovery-metric-tick-text {
  position: absolute;
  top: 0;
  /* Same horizontal math as thumbs: inset half-thumb from inner edges (width = 100% here). */
  left: calc(
    var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * var(--tick-index) / var(--metric-max, 1)
  );
  transform: translateX(-50%);
  text-align: center;
  max-width: min(100%, 5.5rem);
  white-space: nowrap;
}
/* Single stop: center label (metric-max is 0; avoid invalid calc division). */
.discovery-metric-row[data-metric-count="1"] .discovery-metric-tick-text {
  left: 50%;
  transform: translateX(-50%);
}
.discovery-slide-form-metrics .discovery-metric-label {
  grid-area: label;
  align-self: center;
  font-size: clamp(0.875rem, 1.15vw, 0.9375rem);
  font-weight: 400;
  color: #000;
}
.discovery-metric-track-block {
  grid-area: track;
  position: relative;
}
/* Row above the bar: circles sit between value labels and track (not overlaid on the thumb). */
.discovery-metric-notch-row {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--metric-notch-size, 20px);
  margin-bottom: 0;
  pointer-events: none;
}
.discovery-metric-dots {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: var(--metric-notch-size, 20px);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
.discovery-metric-dot {
  position: absolute;
  top: 50%;
  left: calc(
    var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * var(--tick-index) / var(--metric-max, 1)
  );
  /* Larger than 9px track; fill matches track (2059:30 / ellipse nodes) */
  width: var(--metric-notch-size, 20px);
  height: var(--metric-notch-size, 20px);
  border-radius: 50%;
  background: rgba(226, 226, 226, 1);
  box-shadow: none;
  transform: translate(-50%, -50%);
}
.discovery-metric-row[data-metric-count="1"] .discovery-metric-dot {
  left: 50%;
  transform: translate(-50%, -50%);
}
.discovery-slide-form-metrics .discovery-metric-range {
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1;
  -webkit-appearance: none;
  appearance: none;
}
.discovery-slide-form-metrics .discovery-metric-range:focus {
  outline: none;
}
/* Full-width red→green gradient; grey mask on the right reveals more as --slider-progress increases. */
.discovery-slide-form-metrics .discovery-metric-range::-webkit-slider-runnable-track {
  height: 9px;
  border-radius: 8px;
  background:
    linear-gradient(
      to right,
      transparent 0,
      transparent calc(var(--slider-progress, 0) * 100%),
      #e2e2e2 calc(var(--slider-progress, 0) * 100%),
      #e2e2e2 100%
    ),
    linear-gradient(
      to right,
      #e53935 0%,
      #fb8c00 14.5%,
      #fdd835 29.7%,
      #9ccc65 46.2%,
      #43a047 66%,
      #63ef3f 100%
    );
}
.discovery-slide-form-metrics .discovery-metric-range::-moz-range-track {
  height: 9px;
  border-radius: 8px;
  border: none;
  background:
    linear-gradient(
      to right,
      transparent 0,
      transparent calc(var(--slider-progress, 0) * 100%),
      #e2e2e2 calc(var(--slider-progress, 0) * 100%),
      #e2e2e2 100%
    ),
    linear-gradient(
      to right,
      #e53935 0%,
      #fb8c00 14.5%,
      #fdd835 29.7%,
      #9ccc65 46.2%,
      #43a047 66%,
      #63ef3f 100%
    );
}
/* Lead conversion rate: keep first 25% solid red (more punitive low CVR). */
.discovery-slide-form-metrics .discovery-metric-row--gradient-conv .discovery-metric-range::-webkit-slider-runnable-track {
  height: 9px;
  border-radius: 8px;
  /* Match the exact dot/thumb positioning math so the gradient aligns to tick markers. */
  --conv-pos-0: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 0 / var(--metric-max, 1));
  --conv-pos-1: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 1 / var(--metric-max, 1));
  --conv-pos-2: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 2 / var(--metric-max, 1));
  --conv-pos-3: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 3 / var(--metric-max, 1));
  --conv-pos-4: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 4 / var(--metric-max, 1));
  --conv-pos-5: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 5 / var(--metric-max, 1));
  --conv-pos-6: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 6 / var(--metric-max, 1));
  --conv-pos-7: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 7 / var(--metric-max, 1));
  --conv-pos-8: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 8 / var(--metric-max, 1));
  --conv-pos-9: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 9 / var(--metric-max, 1));
  --conv-pos-10: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 10 / var(--metric-max, 1));
  /* Full gradient with grey mask after current value (matches other metric sliders). */
  background:
    linear-gradient(
      to right,
      transparent 0,
      transparent calc(var(--slider-progress, 0) * 100%),
      #e2e2e2 calc(var(--slider-progress, 0) * 100%),
      #e2e2e2 100%
    ),
    linear-gradient(
      to right,
      /* Colors come from JS (same as marker dots) */
      var(--conv-color-0, #e53935) 0,
      var(--conv-color-1, #e53935) var(--conv-pos-1),
      var(--conv-color-2, #e53935) var(--conv-pos-2),
      var(--conv-color-3, #fb8c00) var(--conv-pos-3),
      var(--conv-color-4, #fb8c00) var(--conv-pos-4),
      var(--conv-color-5, #fdd835) var(--conv-pos-5),
      var(--conv-color-6, #fdd835) var(--conv-pos-6),
      var(--conv-color-7, #43a047) var(--conv-pos-7),
      var(--conv-color-8, #9ccc65) var(--conv-pos-8),
      var(--conv-color-9, #43a047) var(--conv-pos-9),
      var(--conv-color-10, #63ef3f) var(--conv-pos-10),
      var(--conv-color-10, #63ef3f) 100%
    );
}
.discovery-slide-form-metrics .discovery-metric-row--gradient-conv .discovery-metric-range::-moz-range-track {
  height: 9px;
  border-radius: 8px;
  border: none;
  /* Match the exact dot/thumb positioning math so the gradient aligns to tick markers. */
  --conv-pos-0: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 0 / var(--metric-max, 1));
  --conv-pos-1: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 1 / var(--metric-max, 1));
  --conv-pos-2: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 2 / var(--metric-max, 1));
  --conv-pos-3: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 3 / var(--metric-max, 1));
  --conv-pos-4: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 4 / var(--metric-max, 1));
  --conv-pos-5: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 5 / var(--metric-max, 1));
  --conv-pos-6: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 6 / var(--metric-max, 1));
  --conv-pos-7: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 7 / var(--metric-max, 1));
  --conv-pos-8: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 8 / var(--metric-max, 1));
  --conv-pos-9: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 9 / var(--metric-max, 1));
  --conv-pos-10: calc(var(--thumb-inset, 13px) + (100% - var(--thumb-size, 26px)) * 10 / var(--metric-max, 1));
  /* Full gradient with grey mask after current value (matches other metric sliders). */
  background:
    linear-gradient(
      to right,
      transparent 0,
      transparent calc(var(--slider-progress, 0) * 100%),
      #e2e2e2 calc(var(--slider-progress, 0) * 100%),
      #e2e2e2 100%
    ),
    linear-gradient(
      to right,
      /* Colors come from JS (same as marker dots) */
      var(--conv-color-0, #e53935) 0,
      var(--conv-color-1, #e53935) var(--conv-pos-1),
      var(--conv-color-2, #e53935) var(--conv-pos-2),
      var(--conv-color-3, #fb8c00) var(--conv-pos-3),
      var(--conv-color-4, #fb8c00) var(--conv-pos-4),
      var(--conv-color-5, #fdd835) var(--conv-pos-5),
      var(--conv-color-6, #fdd835) var(--conv-pos-6),
      var(--conv-color-7, #43a047) var(--conv-pos-7),
      var(--conv-color-8, #9ccc65) var(--conv-pos-8),
      var(--conv-color-9, #43a047) var(--conv-pos-9),
      var(--conv-color-10, #63ef3f) var(--conv-pos-10),
      var(--conv-color-10, #63ef3f) 100%
    );
}
/* Cost per acquisition: bright green (left) → #43a047 at 33% → red (right). */
.discovery-slide-form-metrics .discovery-metric-row--gradient-inverted .discovery-metric-range::-webkit-slider-runnable-track {
  height: 9px;
  border-radius: 8px;
  background:
    linear-gradient(
      to right,
      transparent 0,
      transparent calc(var(--slider-progress, 0) * 100%),
      #e2e2e2 calc(var(--slider-progress, 0) * 100%),
      #e2e2e2 100%
    ),
    linear-gradient(
      to right,
      #1b5e20 0%,
      #2e7d32 20%,
      #9ccc65 35%,
      #e53935 50%,
      #b71c1c 100%
    );
}
.discovery-slide-form-metrics .discovery-metric-row--gradient-inverted .discovery-metric-range::-moz-range-track {
  height: 9px;
  border-radius: 8px;
  border: none;
  background:
    linear-gradient(
      to right,
      transparent 0,
      transparent calc(var(--slider-progress, 0) * 100%),
      #e2e2e2 calc(var(--slider-progress, 0) * 100%),
      #e2e2e2 100%
    ),
    linear-gradient(
      to right,
      #1b5e20 0%,
      #2e7d32 20%,
      #9ccc65 35%,
      #e53935 50%,
      #b71c1c 100%
    );
}
/* Miles radius: solid dark green track + thumb (no red→green semantics). */
.discovery-slide-form-metrics .discovery-metric-row--gradient-miles .discovery-metric-range::-webkit-slider-runnable-track {
  height: 9px;
  border-radius: 8px;
  background:
    linear-gradient(
      to right,
      transparent 0,
      transparent calc(var(--slider-progress, 0) * 100%),
      #e2e2e2 calc(var(--slider-progress, 0) * 100%),
      #e2e2e2 100%
    ),
    linear-gradient(to right, #1b5e20 0%, #2e7d32 55%, #1b5e20 100%);
}
.discovery-slide-form-metrics .discovery-metric-row--gradient-miles .discovery-metric-range::-moz-range-track {
  height: 9px;
  border-radius: 8px;
  border: none;
  background:
    linear-gradient(
      to right,
      transparent 0,
      transparent calc(var(--slider-progress, 0) * 100%),
      #e2e2e2 calc(var(--slider-progress, 0) * 100%),
      #e2e2e2 100%
    ),
    linear-gradient(to right, #1b5e20 0%, #2e7d32 55%, #1b5e20 100%);
}
.discovery-slide-form-metrics .discovery-metric-range::-moz-range-progress {
  background: transparent;
}
.discovery-slide-form-metrics .discovery-metric-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -8.5px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #ff007a;
  box-shadow: 0 2px 6px rgba(255, 0, 122, 0.35);
  cursor: grab;
}
.discovery-slide-form-metrics .discovery-metric-range:active::-webkit-slider-thumb {
  cursor: grabbing;
}
.discovery-slide-form-metrics .discovery-metric-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #ff007a;
  box-shadow: 0 2px 6px rgba(255, 0, 122, 0.35);
  cursor: grab;
}
.discovery-slide-form-metrics .discovery-metric-range:active::-moz-range-thumb {
  cursor: grabbing;
}
.discovery-slide-form-metrics .discovery-metric-range:focus-visible::-webkit-slider-thumb {
  outline: 2px solid rgba(255, 0, 122, 0.45);
  outline-offset: 3px;
}
.discovery-slide-form-metrics .discovery-metric-range:focus-visible::-moz-range-thumb {
  outline: 2px solid rgba(255, 0, 122, 0.45);
  outline-offset: 3px;
}
.discovery-slide-form-metrics .discovery-metric-row--gradient-miles .discovery-metric-range::-webkit-slider-thumb {
  background: #1b5e20;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(27, 94, 32, 0.35);
}
.discovery-slide-form-metrics .discovery-metric-row--gradient-miles .discovery-metric-range::-moz-range-thumb {
  background: #1b5e20;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(27, 94, 32, 0.35);
}
.discovery-slide-form-metrics .discovery-metric-row--gradient-miles .discovery-metric-range:focus-visible::-webkit-slider-thumb {
  outline: 2px solid rgba(27, 94, 32, 0.45);
}
.discovery-slide-form-metrics .discovery-metric-row--gradient-miles .discovery-metric-range:focus-visible::-moz-range-thumb {
  outline: 2px solid rgba(27, 94, 32, 0.45);
}
@media (max-width: 640px) {
  .discovery-metric-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "track";
  }
  .discovery-metric-row--with-inline-select {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "track"
      "select";
  }
  .discovery-inline-select-wrap {
    padding-top: 0;
  }
  .discovery-inline-select {
    width: 100%;
  }
  .discovery-metric-corner {
    display: none;
  }
  .discovery-metric-label {
    align-self: start;
  }
}

/* Inertia non-Inertia response overlay: @inertiajs/core inlines calc(100vw - 100px) + margin:auto - full viewport */
dialog#inertia-error-dialog {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-sizing: border-box;
  inset: 0;
}

/* Dark-mode readability guardrails for hard-coded light-theme utility combos. */
html[data-bs-theme="dark"] .text-dark {
  color: var(--bs-body-color) !important;
}
html[data-bs-theme="dark"] .bg-light.text-dark,
html[data-bs-theme="dark"] .badge.bg-light.text-dark {
  color: var(--bs-body-color) !important;
  background-color: #1a2230 !important;
  border-color: var(--bs-border-color) !important;
}

/* Synced from resources/css/app.css */

/* Shared utility classes replacing inline Blade styles */
.smr-cursor-pointer { cursor: pointer; }
.smr-toast-z { z-index: 9999; }
.smr-min-vh-100 { min-height: 100vh; }
.smr-max-w-240 { max-width: 240px; }
.smr-guest-auth-hero {
  min-height: 100vh;
  background: url("https://blog.whillet.com/wp-content/uploads/2024/12/Automotive-FinTech.jpg");
  background-size: cover;
}
.smr-w-50 { width: 50px; }
.smr-w-120 { width: 120px; }
.smr-w-140 { width: 140px; }
.smr-w-160 { width: 160px; }
.smr-w-180 { width: 180px; }
.smr-w-200 { width: 200px; }
.smr-w-220 { width: 220px; }
.smr-max-w-400 { max-width: 400px; }
.smr-max-w-560 { max-width: 560px; }
.smr-max-w-640 { max-width: 640px; }
.smr-fs-07 { font-size: 0.7rem; }
.smr-fs-075 { font-size: 0.75rem; }
.smr-h-8 { height: 8px; }
.smr-z-10 { z-index: 10; }
.smr-inline-1081200a { max-width: 12rem; }
.smr-inline-74437d31 { width: 10rem; }
.smr-inline-a84a35f4 { display: none; max-height: 200px; overflow-y: auto; z-index: 1000; }

@media (min-width: 992px) {
  .sidebar-sticky { position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
}

.nav-link.active { background: rgba(13,110,253,.1); font-weight: 600; }

/* Auto-migrated static inline styles */
.smr-inline-00f66917 { height: 4px; }
.smr-inline-14175304 { width: 140px; }
.smr-inline-14fa8787 { font-size: 1.25rem; }
.smr-inline-154932e3 { z-index: 5; }
.smr-inline-159efaac { height: 1.25rem; width: 80px; }
.smr-inline-1d8db72a { width: 5%; }
.smr-inline-224b51a7 { display: none; }
.smr-inline-22884f35 { min-height:340px; }
.smr-inline-232f0328 { border-color: rgba(0,0,0,.075); }
.smr-inline-256fb66b { height: 450px; width: 95%; }
.smr-inline-2895d3db { font-family: sans-serif; line-height: 1.5; color: #333; max-width: 600px; margin: 0 auto; padding: 20px; }
.smr-inline-336fd709 { max-width: 28rem; }
.smr-inline-358621e0 { height: 6px; }
.smr-inline-3db97814 { max-height: 300px; overflow-y: auto; }
.smr-inline-4558598c { width: 10rem; }
.smr-inline-45b4d846 { min-height: 400px; }
.smr-inline-4925c11b { display: inline-block; padding: 10px 20px; background: #0d6efd; color: #fff; text-decoration: none; border-radius: 5px; }
.smr-inline-4f5f61b5 { white-space: pre-wrap; }
.smr-inline-4fba17f9 { min-width: 200px; max-width: 320px; }
.smr-inline-56858f59 { height: 1.5rem; }
.smr-inline-5afc7337 { font-size: 3rem; }
.smr-inline-5c2dc9e8 { width: 200px; }
.smr-inline-623a351f { display: none; max-height: 200px; overflow-y: auto; z-index: 1000; }
.smr-inline-64311b81 { color: #666; font-size: 0.875rem; }
.smr-inline-70742b52 { cursor: grab; }
.smr-inline-738aa7e4 { width: auto; max-width: 220px; }
.smr-inline-75342211 { width: 160px; }
.smr-inline-77459f86 { height: 24px; }
.smr-inline-7b693434 { max-width: 520px; }
.smr-inline-7c76ff03 { width:200px; }
.smr-inline-83eed16a { max-width: 280px; }
.smr-inline-84cea379 { height: 20px; }
.smr-inline-871e537d { height: 30px; }
.smr-inline-889c1b6b { height: 1.25rem; }
.smr-inline-8c501f25 { max-height: 200px; overflow: auto; }
.smr-inline-90f0e6a9 { width: 14.28%; }
.smr-inline-92952633 { max-width: 12rem; }
.smr-inline-93b8ea5b { display:none; }
.smr-inline-a06603ef { min-width: 200px; }
.smr-inline-a2106e3c { min-height: 280px; }
.smr-inline-ade699b7 { display:none; width: 100%; height: 420px; }
.smr-inline-ae1f13b3 { width: 50px; }
.smr-inline-b0a22a96 { max-width: 24rem; }
.smr-inline-b15addac { width: 120px; }
.smr-inline-b85c81de { min-height: 100px; vertical-align: top; }
.smr-inline-c25159cb { width: 150px; }
.smr-inline-c4455b2f { z-index: 1025; }
.smr-inline-c4c12b2d { width:220px; }
.smr-inline-cbdc2131 { border:0; }
.smr-inline-d214d44d { width: 200px; border-right: 1px solid #dee2e6; }
.smr-inline-d9839b39 { max-height: 300px; overflow: auto; }
.smr-inline-e3d221c5 { width: 100px; }
.smr-inline-e7992da2 { font-size: 0.85rem; }
.smr-inline-eb9eb8ea { height: 400px; }
.smr-inline-ebc95c16 { overflow-y: auto; max-height: 500px; }
.smr-inline-efbf4ad8 { opacity: 0; transition: opacity 0.2s; }
.smr-inline-f70f7fc2 { max-width: 220px; }
.smr-inline-f8a24bc5 { height: 1.5rem; z-index: 10; }

/* Migrated from Blade <style> blocks */

/* Source: resources/views/welcome.blade.php */
body {
                font-family: 'Nunito', sans-serif;
            }

/* Source: resources/views/admin/ads/overview/partials/_health_scores.blade.php */
/* Dark mode: tinted backgrounds and readable text for health score rows */
  [data-bs-theme="dark"] .health-scores-panel .health-score-row {
    background: hsl(var(--health-hue), 35%, 18%) !important;
    border-left-color: hsl(var(--health-hue), 50%, 45%) !important;
  }
  [data-bs-theme="dark"] .health-scores-panel .health-score-row .health-score-value {
    color: hsl(var(--health-hue), 70%, 78%) !important;
  }

/* Source: resources/views/admin/ads/overview/partials/_micro_charts.blade.php */
.micro-chart-card-draggable { cursor: grab; }
.micro-chart-card-draggable:active { cursor: grabbing; }
.micro-chart-card-dragging { opacity: 0.6; }
.micro-chart-card-drag-over { outline: 2px dashed var(--bs-primary); outline-offset: 2px; }
.micro-chart-picker-nav-item {
  padding: 0.5rem 0.75rem;
  color: #495057;
  text-decoration: none;
  border-radius: 0.25rem;
  margin-bottom: 0.25rem;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.micro-chart-picker-nav-item:hover {
  background-color: #f8f9fa;
  color: #212529;
}
.micro-chart-picker-nav-item.active {
  background-color: var(--bs-primary);
  color: white;
  font-weight: 500;
}


/* Source: resources/views/admin/feedback/roadmap.blade.php */
.feedback-roadmap {
  --timeline-height: 2.5rem;
  --row-height: 2.25rem;
  --label-col-width: 220px;
  --month-width: 200px;
}
.feedback-roadmap .timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.feedback-roadmap .timeline-header {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--bs-border-color);
  min-height: var(--timeline-height);
  min-width: min-content;
}
.feedback-roadmap .timeline-header .label-col {
  width: var(--label-col-width);
  min-width: var(--label-col-width);
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bs-body-bg);
  border-right: 1px solid var(--bs-border-color-translucent);
}
.feedback-roadmap .timeline-header .months {
  display: flex;
  flex-shrink: 0;
}
.feedback-roadmap .timeline-header .month-cell {
  width: var(--month-width);
  min-width: var(--month-width);
  flex-shrink: 0;
  padding: 0.25rem 0.35rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
  border-left: 1px solid var(--bs-border-color-translucent);
}
.feedback-roadmap .timeline-body {
  min-width: min-content;
}
.feedback-roadmap .roadmap-row {
  display: flex;
  align-items: center;
  min-height: var(--row-height);
  border-bottom: 1px solid var(--bs-border-color-translucent);
  min-width: min-content;
}
.feedback-roadmap .roadmap-row:hover {
  background: var(--bs-tertiary-bg);
}
.feedback-roadmap .roadmap-row .label-col {
  width: var(--label-col-width);
  min-width: var(--label-col-width);
  flex-shrink: 0;
  padding: 0.35rem 0.5rem;
  position: sticky;
  left: 0;
  z-index: 1;
  background: inherit;
  border-right: 1px solid var(--bs-border-color-translucent);
}
.feedback-roadmap .roadmap-row:hover .label-col {
  background: var(--bs-tertiary-bg);
}
.feedback-roadmap .roadmap-row .label-col a {
  text-decoration: none;
  font-size: 0.9rem;
}
.feedback-roadmap .roadmap-row .timeline-col {
  flex-shrink: 0;
  position: relative;
  height: var(--row-height);
}
.feedback-roadmap .roadmap-row .bar-wrap {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 70%;
  left: 0;
  right: 0;
}
.feedback-roadmap .roadmap-row .bar {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  padding: 0 0.35rem;
  line-height: 1.8;
  box-sizing: border-box;
  min-width: 2em;
  color: #fff;
}
.feedback-roadmap .roadmap-row .bar.bar-status-open {
  background: rgba(var(--bs-secondary-rgb, 108, 117, 125), 0.85);
}
.feedback-roadmap .roadmap-row .bar.bar-status-in_progress {
  background: rgba(var(--bs-primary-rgb), 0.85);
}
.feedback-roadmap .roadmap-row .bar.bar-status-planned {
  background: rgba(var(--bs-info-rgb), 0.85);
}
.feedback-roadmap .roadmap-row .bar.bar-status-done {
  background: rgba(var(--bs-success-rgb), 0.85);
}
.feedback-roadmap .roadmap-row .bar.bar-status-wont_fix {
  background: rgba(var(--bs-dark-rgb, 33, 37, 41), 0.85);
}
.feedback-roadmap .roadmap-row .bar.bar-status-duplicate {
  background: rgba(var(--bs-warning-rgb), 0.9);
  color: #212529;
}
.feedback-roadmap .roadmap-row .bar.ongoing {
  border-style: dashed;
  border-width: 2px;
  border-color: inherit;
}
.feedback-roadmap .roadmap-unscheduled {
  padding: 1rem;
  background: var(--bs-secondary-bg);
  border-radius: var(--bs-border-radius);
  font-size: 0.9rem;
}

/* Source: resources/views/admin/feedback/projects/roadmap.blade.php */
.feedback-roadmap {
  --timeline-height: 2.5rem;
  --row-height: 2.25rem;
  --label-col-width: 220px;
  --month-width: 200px;
}
.feedback-roadmap .timeline-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.feedback-roadmap .timeline-header { display: flex; align-items: stretch; border-bottom: 1px solid var(--bs-border-color); min-height: var(--timeline-height); min-width: min-content; }
.feedback-roadmap .timeline-header .label-col { width: var(--label-col-width); min-width: var(--label-col-width); flex-shrink: 0; padding: 0.25rem 0.5rem; font-weight: 600; font-size: 0.8rem; position: sticky; left: 0; z-index: 2; background: var(--bs-body-bg); border-right: 1px solid var(--bs-border-color-translucent); }
.feedback-roadmap .timeline-header .months { display: flex; flex-shrink: 0; }
.feedback-roadmap .timeline-header .month-cell { width: var(--month-width); min-width: var(--month-width); flex-shrink: 0; padding: 0.25rem 0.35rem; text-align: center; font-size: 0.75rem; color: var(--bs-secondary-color); border-left: 1px solid var(--bs-border-color-translucent); }
.feedback-roadmap .timeline-body { min-width: min-content; }
.feedback-roadmap .roadmap-row { display: flex; align-items: center; min-height: var(--row-height); border-bottom: 1px solid var(--bs-border-color-translucent); min-width: min-content; }
.feedback-roadmap .roadmap-row:hover { background: var(--bs-tertiary-bg); }
.feedback-roadmap .roadmap-row .label-col { width: var(--label-col-width); min-width: var(--label-col-width); flex-shrink: 0; padding: 0.35rem 0.5rem; position: sticky; left: 0; z-index: 1; background: inherit; border-right: 1px solid var(--bs-border-color-translucent); }
.feedback-roadmap .roadmap-row:hover .label-col { background: var(--bs-tertiary-bg); }
.feedback-roadmap .roadmap-row .label-col a { text-decoration: none; font-size: 0.9rem; }
.feedback-roadmap .roadmap-row .timeline-col { flex-shrink: 0; position: relative; height: var(--row-height); }
.feedback-roadmap .roadmap-row .bar-wrap { position: absolute; top: 50%; transform: translateY(-50%); height: 70%; left: 0; right: 0; }
.feedback-roadmap .roadmap-row .bar { position: absolute; top: 0; height: 100%; border-radius: 4px; font-size: 0.7rem; white-space: nowrap; padding: 0 0.35rem; line-height: 1.8; box-sizing: border-box; min-width: 2em; color: #fff; }
.feedback-roadmap .roadmap-row .bar.bar-status-open { background: rgba(var(--bs-secondary-rgb, 108, 117, 125), 0.85); }
.feedback-roadmap .roadmap-row .bar.bar-status-in_progress { background: rgba(var(--bs-primary-rgb), 0.85); }
.feedback-roadmap .roadmap-row .bar.bar-status-planned { background: rgba(var(--bs-info-rgb), 0.85); }
.feedback-roadmap .roadmap-row .bar.bar-status-done { background: rgba(var(--bs-success-rgb), 0.85); }
.feedback-roadmap .roadmap-row .bar.bar-status-wont_fix { background: rgba(var(--bs-dark-rgb, 33, 37, 41), 0.85); }
.feedback-roadmap .roadmap-row .bar.bar-status-duplicate { background: rgba(var(--bs-warning-rgb), 0.9); color: #212529; }
.feedback-roadmap .roadmap-row .bar.ongoing { border-style: dashed; border-width: 2px; border-color: inherit; }
.feedback-roadmap .project-group-header { font-weight: 600; background: var(--bs-secondary-bg); padding: 0.35rem 0.5rem; position: sticky; left: 0; border-bottom: 1px solid var(--bs-border-color); min-width: min-content; display: flex; align-items: center; }
.feedback-roadmap .project-group-header .label-col { width: var(--label-col-width); min-width: var(--label-col-width); flex-shrink: 0; border-right: 1px solid var(--bs-border-color-translucent); }
.feedback-roadmap .project-group-header .timeline-col { flex-shrink: 0; border-left: 1px solid var(--bs-border-color-translucent); }
.feedback-roadmap .roadmap-unscheduled { padding: 1rem; background: var(--bs-secondary-bg); border-radius: var(--bs-border-radius); font-size: 0.9rem; }

/* Source: resources/views/admin/tenant-events/index.blade.php */
.tenant-events .card { border-radius: 14px; }
.tenant-events .event-card { border-radius: 14px; }
.tenant-events .event-meta { font-size: .78rem; }
.tenant-events .event-title { font-size: .95rem; font-weight: 600; }
.tenant-events .event-message { font-size: .85rem; }
.tenant-events .event-actions .btn { padding: .2rem .45rem; }
.tenant-events .chip { font-size: .72rem; padding: .15rem .45rem; border-radius: 999px; }
.tenant-events .icon-btn { border: 1px solid rgba(0,0,0,.08); background: #fff; }
.tenant-events .icon-btn:hover { background: rgba(0,0,0,.03); }
.tenant-events .comments-panel { background: rgba(0,0,0,.02); border-radius: 12px; }

/* Source: resources/views/admin/sales-pipeline/kanban.blade.php */
.pipeline-board { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; min-height: calc(100vh - 180px); }
.pipeline-column { min-width: 280px; max-width: 280px; background: var(--bs-secondary-bg); border-radius: 8px; padding: 0.75rem; display: flex; flex-direction: column; border-top: 4px solid var(--bs-primary); }
.pipeline-column-header { padding-bottom: 0.75rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--bs-border-color); }
.pipeline-column-title { font-weight: 600; font-size: 1rem; }
.pipeline-column-count { font-size: 0.8rem; color: var(--bs-secondary); }
.pipeline-cards { flex: 1; min-height: 80px; }
.pipeline-card {
    background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 6px;
    padding: 0.75rem; margin-bottom: 0.5rem; transition: all 0.2s;
}
.pipeline-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.pipeline-card-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.pipeline-card-title a { color: inherit; text-decoration: none; }
.pipeline-card-title a:hover { text-decoration: underline; }
.pipeline-card-meta { font-size: 0.8rem; color: var(--bs-secondary); }
.pipeline-card-value { font-size: 0.85rem; font-weight: 500; margin-top: 0.25rem; }
.stage-lead { border-top-color: #6c757d; }
.stage-contacted { border-top-color: #0dcaf0; }
.stage-discovery { border-top-color: #0d6efd; }
.stage-proposal_ready { border-top-color: #198754; }
.stage-in_onboarding { border-top-color: #6f42c1; }
.stage-won { border-top-color: #198754; }
.stage-lost { border-top-color: #dc3545; }

/* Source: resources/views/admin/onboarding/partials/_tenant_card.blade.php */
.kanban-tenant-card:hover .kanban-tenant-actions {
    opacity: 1;
}
.kanban-tenant-card {
    cursor: default;
}
.kanban-tenant-header {
    cursor: grab;
}
.kanban-tenant-header:active {
    cursor: grabbing;
}

/* Source: resources/views/dealer/lead-show.blade.php */
.collapse-icon {
  transition: transform 0.3s ease;
}
[aria-expanded="false"] .collapse-icon {
  transform: rotate(-90deg);
}
[aria-expanded="true"] .collapse-icon {
  transform: rotate(0deg);
}
.timeline {
  position: relative;
  padding-left: 0;
}

.timeline-item {
  position: relative;
}

.timeline-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px currentColor;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 12px;
  width: 2px;
  height: calc(100% + 8px);
  background: #dee2e6;
}

/* Source: resources/views/forecasting/forecasts.blade.php */
.forecasts-sliders input[type="range"].form-range { accent-color: var(--bs-primary); }

/* Source: resources/views/forecasting/projections.blade.php */
.projections-sliders input[type="range"].form-range { accent-color: var(--bs-primary); }


/* Source: resources/views/partials/sidebar.blade.php */
.sidebar-nav .sidebar-category + .sidebar-category { border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-nav .sidebar-toggle { font-weight: 600; }
.sidebar-nav .sidebar-toggle[aria-expanded="false"] .sidebar-chevron { transform: rotate(-90deg); }
.sidebar-nav .sidebar-chevron { transition: transform 0.2s; font-size: 0.75rem; }
.sidebar-nav .collapse .list-group-item { font-size: 0.9rem; }

/* CRM deal dock (Sales CRM deal show). Synced from resources/css/app.css */
.deal-show-page-wrap--dock .crm-deal-swap-root {
  padding-bottom: 5.5rem;
}

.crm-deal-dock {
  --crm-dock-surface: rgba(255, 255, 255, 0.86);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1035;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--crm-dock-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--bs-border-color);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

html[data-bs-theme="dark"] .crm-deal-dock {
  --crm-dock-surface: rgba(26, 32, 44, 0.9);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.crm-deal-dock-track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: min(720px, calc(100vw - 6rem));
  scroll-behavior: smooth;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.crm-deal-dock-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0;
}

.crm-deal-dock-item {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
}

.crm-deal-dock-item-initials {
  pointer-events: none;
}

.crm-deal-dock-nav {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crm-deal-dock-flip-overlay {
  position: fixed;
  z-index: 1040;
  pointer-events: none;
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .crm-deal-dock-track-wrap {
    scroll-behavior: auto;
  }

  .crm-deal-dock-flip-overlay {
    transition: none !important;
  }
}

/* ------------------------------
   Apex chat (admin /insights/apex/chat)
---------------------------------*/
.apex-chat-app {
  --apex-chat-nav-offset: 72px;
  /* Match fixed composer height so last messages stay visible above it */
  --apex-chat-composer-clearance: 104px;
  height: calc(100vh - var(--apex-chat-nav-offset));
  max-height: calc(100vh - var(--apex-chat-nav-offset));
  min-height: 320px;
  overflow: hidden;
}

@supports (height: 100dvh) {
  .apex-chat-app {
    height: calc(100dvh - var(--apex-chat-nav-offset));
    max-height: calc(100dvh - var(--apex-chat-nav-offset));
  }
}

html[data-bs-theme="light"] .apex-chat-surface {
  background-color: #ffffff;
}

html[data-bs-theme="dark"] .apex-chat-surface {
  background-color: #000000;
}

.apex-chat-main {
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.apex-chat-app #apexChatScroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  /* Do not use Bootstrap py-* here: it sets padding-bottom !important and breaks footer clearance */
  padding-top: calc(0.75rem + max(0px, env(safe-area-inset-top, 0px))) !important;
  padding-bottom: calc(var(--apex-chat-composer-clearance) + 0.5rem + env(safe-area-inset-bottom, 0px)) !important;
}

.apex-chat-composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  min-height: var(--apex-chat-composer-clearance);
  z-index: 1080;
  box-sizing: border-box;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  isolation: isolate;
}

html[data-bs-theme="light"] .apex-chat-composer {
  background-color: #ffffff !important;
}

html[data-bs-theme="dark"] .apex-chat-composer {
  background-color: #000000 !important;
}

.apex-chat-topbar {
  min-height: 48px;
}

/*
 * PWA chat (installed): fixed header + Apex bar. The OS keyboard is not in the layout
 * viewport on many WebKit builds — JS sets --apex-vv-offset-top / --apex-vv-bottom-gap from
 * visualViewport so chrome tracks the visible region (see standalone.blade.php).
 */
html.apex-standalone.apex-pwa-standalone {
  --apex-fixed-brand-header-h: calc(env(safe-area-inset-top, 0px) + var(--apex-standalone-brand-below-safe));
  /* py-2 + min-height 48 ≈ 56px; tune if topbar wraps */
  --apex-fixed-chat-topbar-h: 56px;
  --apex-fixed-top-stack-h: calc(var(--apex-fixed-brand-header-h) + var(--apex-fixed-chat-topbar-h));
}

html.apex-standalone.apex-pwa-standalone .apex-standalone-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1096;
  transform: translate3d(0, var(--apex-vv-offset-top, 0px), 0);
  backface-visibility: hidden;
}

html.apex-standalone.apex-pwa-standalone .apex-chat-topbar {
  position: fixed;
  top: var(--apex-fixed-brand-header-h);
  right: 0;
  left: 0;
  z-index: 1095;
  border-bottom: 1px solid var(--bs-border-color-translucent, rgba(255, 255, 255, 0.08));
  transform: translate3d(0, var(--apex-vv-offset-top, 0px), 0);
  backface-visibility: hidden;
}

html.apex-standalone.apex-pwa-standalone .apex-standalone-body > main {
  box-sizing: border-box;
  padding-top: var(--apex-fixed-top-stack-h);
}

/* Safe area already covered by fixed brand bar; avoid double top inset in thread */
html.apex-standalone.apex-pwa-standalone .apex-chat-app #apexChatScroll {
  padding-top: 0.75rem !important;
}

.apex-chat-turn {
  scroll-margin-bottom: var(--apex-chat-composer-clearance, 104px);
}

.apex-chat-bubble--assistant {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.25rem 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  text-align: left;
  white-space: pre-wrap;
}

.apex-chat-bubble--assistant.apex-chat-md {
  white-space: normal;
}

.apex-chat-md {
  line-height: 1.45;
}

.apex-chat-md > :first-child {
  margin-top: 0;
}

.apex-chat-md > :last-child {
  margin-bottom: 0;
}

.apex-chat-md p {
  margin-bottom: 0.5rem;
}

.apex-chat-md ul,
.apex-chat-md ol {
  margin: 0.35rem 0 0.5rem 1.25rem;
  padding-left: 0.25rem;
}

.apex-chat-md li {
  margin-bottom: 0.2rem;
}

.apex-chat-md strong {
  font-weight: 600;
}

.apex-chat-md a {
  word-break: break-word;
  color: var(--bs-link-color);
}

.apex-chat-md pre {
  overflow-x: auto;
  max-width: 100%;
  padding: 0.5rem 0.65rem;
  margin: 0.5rem 0;
  border-radius: 0.35rem;
  font-size: 0.875em;
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
}

.apex-chat-md code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background: var(--bs-secondary-bg);
}

.apex-chat-md pre code {
  padding: 0;
  background: transparent;
  border: 0;
}

.apex-chat-md h1,
.apex-chat-md h2,
.apex-chat-md h3,
.apex-chat-md h4 {
  margin: 1rem 0 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.apex-chat-md h1 { font-size: 1.25rem; }
.apex-chat-md h2 { font-size: 1.125rem; }
.apex-chat-md h3 { font-size: 1.05rem; }
.apex-chat-md h4 { font-size: 1rem; }

.apex-chat-md hr {
  margin: 0.75rem 0;
  border: 0;
  border-top: 1px solid var(--bs-border-color);
  opacity: 0.65;
}

.apex-chat-md blockquote {
  margin: 0.5rem 0;
  padding: 0.35rem 0 0.35rem 0.85rem;
  border-left: 3px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
}

.apex-chat-md .apex-chat-table-wrap {
  overflow-x: auto;
  margin: 0.65rem 0 0.85rem;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.4rem;
  background: var(--bs-body-bg);
}

.apex-chat-md table.apex-chat-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.4;
}

.apex-chat-md table.apex-chat-table th,
.apex-chat-md table.apex-chat-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--bs-border-color);
  vertical-align: middle;
}

.apex-chat-md table.apex-chat-table thead th {
  font-weight: 600;
  text-align: left;
  background: var(--bs-secondary-bg);
  border-bottom-width: 2px;
  white-space: nowrap;
}

.apex-chat-md table.apex-chat-table tbody tr:last-child td {
  border-bottom: 0;
}

.apex-chat-md table.apex-chat-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--bs-secondary-bg) 45%, transparent);
}

.apex-chat-md table.apex-chat-table th:not(:first-child),
.apex-chat-md table.apex-chat-table td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.apex-chat-md table.apex-chat-table th:first-child,
.apex-chat-md table.apex-chat-table td:first-child {
  text-align: left;
  white-space: normal;
  min-width: 6rem;
}

.apex-chat-bubble--user {
  max-width: min(92%, 36rem);
  text-align: left;
}

.apex-chat-pending-attachments,
.apex-chat-user-attachments {
  max-width: 100%;
}

.apex-chat-pending-attachment {
  background: rgba(var(--bs-body-color-rgb), 0.08);
  border: 1px solid rgba(var(--bs-body-color-rgb), 0.12);
}

.apex-chat-pending-attachment-thumb,
.apex-chat-attachment-thumb-img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  display: block;
}

.apex-chat-attachment-thumb {
  border: 1px solid rgba(255, 255, 255, 0.35);
  max-width: 8rem;
}

.apex-chat-attachment-chip {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  max-width: 12rem;
}

.apex-chat-bubble-text + .apex-chat-user-attachments {
  margin-top: 0.5rem;
}

.apex-chat-embed-stack {
  max-width: 100%;
}

.apex-chat-forecast-card .apex-chat-forecast-iframe-shell {
  max-width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.apex-chat-forecast-iframe {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  display: block;
  min-height: 12rem;
  height: 100%;
  max-height: none;
}

@media (min-width: 768px) {
  .apex-chat-forecast-iframe {
    min-height: 14rem;
  }
}

html.apex-standalone.apex-pwa-standalone .apex-chat-forecast-iframe {
  min-height: 12rem;
}

.apex-chat-thinking-inner {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.apex-chat-thinking-label {
  transition: opacity 0.16s ease;
}

.apex-chat-thinking-label.is-fading {
  opacity: 0.35;
}

.apex-chat-burger-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  width: 1.5rem;
}

.apex-chat-burger-line {
  display: block;
  height: 2px;
  width: 1.35rem;
  border-radius: 1px;
  background: currentColor;
}

.apex-chat-burger-line--short {
  width: 0.95rem;
}

.apex-chat-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.apex-chat-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.apex-chat-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1110;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.apex-chat-drawer.is-open {
  transform: translateX(0);
}

body.apex-chat-drawer-open {
  overflow: hidden;
}

[data-bs-theme="dark"] .apex-chat-drawer {
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
}

html.apex-standalone.apex-pwa-standalone .apex-chat-drawer {
  top: var(--apex-fixed-top-stack-h);
  transform: translate3d(0, var(--apex-vv-offset-top, 0px), 0) translateX(-100%);
}

html.apex-standalone.apex-pwa-standalone .apex-chat-drawer.is-open {
  transform: translate3d(0, var(--apex-vv-offset-top, 0px), 0) translateX(0);
}

html.apex-standalone.apex-pwa-standalone .apex-chat-composer {
  bottom: var(--apex-vv-bottom-gap, 0px);
}

.apex-chat-session-row {
  display: flex;
  align-items: stretch;
}

.apex-chat-session-row .apex-chat-session-link {
  flex: 1 1 auto;
  min-width: 0;
}

.apex-chat-session-row .apex-chat-session-delete {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-right: 0.75rem;
}

.apex-chat-session-row .apex-chat-session-delete .btn {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.apex-chat-session-row .apex-chat-session-delete .btn:hover,
.apex-chat-session-row .apex-chat-session-delete .btn:focus-visible {
  color: var(--bs-danger);
}

/* Apex standalone / PWA layout (no admin navbar) */
html.apex-standalone {
  /*
   * Tight brand strip below the notch — must match --apex-fixed-brand-header-h (PWA) or a band
   * appears between this row and the Apex bar.
   */
  --apex-standalone-brand-pad-top: 4px;
  --apex-standalone-brand-pad-bottom: 4px;
  /* Logo 32px + compact theme control; keep in sync with .apex-standalone-header min-height math */
  --apex-standalone-brand-below-safe: 48px;
}

/* Flat surfaces: pure white / pure black (no grey body-bg split vs chat strip) */
html.apex-standalone[data-bs-theme="light"] {
  --bs-body-bg: #ffffff;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-secondary-bg: #ffffff;
  --bs-tertiary-bg: #ffffff;
}

html.apex-standalone[data-bs-theme="dark"] {
  --bs-body-bg: #000000;
  --bs-body-bg-rgb: 0, 0, 0;
  --bs-secondary-bg: #000000;
  --bs-tertiary-bg: #000000;
}

html.apex-standalone,
html.apex-standalone body.apex-standalone-body {
  height: 100%;
  margin: 0;
}

/* Solid surfaces only — no global main background images */
html.apex-standalone main {
  background-image: none !important;
  background-color: var(--bs-body-bg) !important;
  background-size: auto !important;
}

html.apex-standalone[data-bs-theme="light"] body.apex-standalone-body,
html.apex-standalone[data-bs-theme="light"] main,
html.apex-standalone[data-bs-theme="light"] #apexStandaloneRoot,
html.apex-standalone[data-bs-theme="light"] #apexChatShell,
html.apex-standalone[data-bs-theme="light"] .apex-chat-app,
html.apex-standalone[data-bs-theme="light"] .apex-chat-main {
  background-color: #ffffff !important;
}

html.apex-standalone[data-bs-theme="dark"] body.apex-standalone-body,
html.apex-standalone[data-bs-theme="dark"] main,
html.apex-standalone[data-bs-theme="dark"] #apexStandaloneRoot,
html.apex-standalone[data-bs-theme="dark"] #apexChatShell,
html.apex-standalone[data-bs-theme="dark"] .apex-chat-app,
html.apex-standalone[data-bs-theme="dark"] .apex-chat-main {
  background-color: #000000 !important;
}

html.apex-standalone[data-bs-theme="light"] .apex-chat-composer textarea.form-control,
html.apex-standalone[data-bs-theme="light"] .apex-chat-composer .form-control {
  background-color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

html.apex-standalone[data-bs-theme="dark"] .apex-chat-composer textarea.form-control,
html.apex-standalone[data-bs-theme="dark"] .apex-chat-composer .form-control {
  background-color: #000000 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.apex-standalone-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 0.5rem;
  box-sizing: border-box;
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--apex-standalone-brand-pad-top));
  padding-bottom: var(--apex-standalone-brand-pad-bottom);
  min-height: calc(env(safe-area-inset-top, 0px) + var(--apex-standalone-brand-below-safe));
  background: var(--bs-body-bg);
}

.apex-standalone-header-favicon-link {
  line-height: 0;
}

.apex-standalone-header-favicon {
  display: block;
  /* Square mark: never taller than the brand row content area (below safe-area padding) */
  --apex-favicon-box: min(32px, calc(var(--apex-standalone-brand-below-safe, 48px) - var(--apex-standalone-brand-pad-top, 4px) - var(--apex-standalone-brand-pad-bottom, 4px) - 8px));
  width: var(--apex-favicon-box);
  height: var(--apex-favicon-box);
  object-fit: contain;
  border-radius: 0.35rem;
}

.apex-standalone-header-wordmark {
  justify-self: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  line-height: 1.1;
}

/* Keep the header row short so favicon + wordmark + lightbulb sit just under the status bar and above the Apex bar */
.apex-standalone-header #apexStandaloneThemeToggle {
  padding: 0.25rem !important;
}

.apex-standalone-header #apexStandaloneThemeToggle .bi {
  font-size: 1.15rem !important;
}

html.apex-standalone #apexStandaloneRoot,
html.apex-standalone #apexChatShell {
  flex: 1 1 0%;
  min-height: 0;
}

/* Fill space below the Apex standalone brand header; avoid 100vh here or content clips past the flex main. */
html.apex-standalone .apex-chat-app {
  --apex-chat-nav-offset: 0px;
  flex: 1 1 0%;
  min-height: 0;
  height: auto;
  max-height: none;
}

/* Apex standalone: install gate (browser tab) */
.apex-install-shell {
  min-height: calc(100vh - env(safe-area-inset-top, 0px) - var(--apex-standalone-brand-below-safe));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@supports (height: 100dvh) {
  .apex-install-shell {
    min-height: calc(100dvh - env(safe-area-inset-top, 0px) - var(--apex-standalone-brand-below-safe));
  }
}

/* ------------------------------
   Apex chat widget (global dashboard)
---------------------------------*/
.apex-chat-widget {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  /* Above Bootstrap modals (~1055) and CRM dialogs (10000). */
  z-index: 10050;
  width: 3.25rem;
  height: 3.25rem;
}

.apex-chat-widget-launcher {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.apex-chat-widget-panel {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100vw - 2.5rem));
  height: min(520px, calc(100dvh - 5rem));
  max-height: calc(100dvh - 5rem);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bs-body-bg, #000);
  border: 1px solid var(--bs-border-color-translucent, rgba(255, 255, 255, 0.12));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(calc(100% + 1.5rem)) scale(0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, visibility 0.24s ease;
}

.apex-chat-widget--open .apex-chat-widget-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.apex-chat-widget--open .apex-chat-widget-launcher {
  transform: scale(0.85);
  opacity: 0;
  pointer-events: none;
}

.apex-chat-widget-bar {
  background: var(--bs-body-bg, #000);
  border-bottom: 1px solid var(--bs-border-color-translucent, rgba(255, 255, 255, 0.1));
}

.apex-chat-widget-bar-icon {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--bs-primary);
  color: #fff;
  font-size: 0.85rem;
}

.apex-chat-widget-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.apex-chat-app--embedded {
  --apex-chat-nav-offset: 0px;
  --apex-chat-composer-clearance: 88px;
  height: 100%;
  max-height: 100%;
  min-height: 0;
}

.apex-chat-app--widget .apex-chat-topbar {
  display: none !important;
}

.apex-chat-app--widget .apex-chat-drawer {
  max-width: 88%;
}

.apex-chat-app--embedded .apex-chat-composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 2;
  min-height: auto;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}

.apex-chat-app--widget .apex-chat-composer {
  border-top: 1px solid var(--bs-border-color-translucent, rgba(255, 255, 255, 0.08));
  background: var(--bs-body-bg, #000) !important;
}

.apex-chat-app--widget #apexChatScroll {
  padding-top: 0.5rem !important;
  padding-bottom: calc(var(--apex-chat-composer-clearance) + 0.25rem) !important;
}

.apex-chat-app--embedded .apex-chat-drawer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.apex-chat-app--embedded .apex-chat-drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 11;
  max-width: 100%;
}

.apex-chat-app--embedded.apex-chat-drawer-open {
  overflow: hidden;
}

.apex-chat-widget-preference--compact .form-check-label {
  font-size: 0.8125rem;
}

@media (max-width: 575.98px) {
  .apex-chat-widget-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 0.75rem;
    height: min(78dvh, calc(100dvh - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
  }
}
