/* Additions on top of the Modernize theme. */

/* The theme reserves calc(100vh - 175px) for the nav, but the brand logo, the
   nav's own top margin and the profile box need 190px between them, so the
   profile box overflows the viewport. Lay the column out with flex instead of a
   fixed height so the box is pinned at any viewport height. */

html[data-layout="vertical"] .left-sidebar > div {
  display: flex;
  flex-direction: column;
  height: 100%;
}

html[data-layout="vertical"] .left-sidebar .scroll-sidebar {
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
}

html[data-layout="vertical"] .left-sidebar .sidebar-ad {
  flex-shrink: 0;
}

/* Entrance animation is applied by stagger() in ui.js, never by a bare
   selector — a static opacity:0 rule leaves content permanently invisible
   whenever a view forgets to trigger the reveal. */

.demo-anim {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .42s ease, transform .42s ease;
}

.demo-anim-x {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .4s ease, transform .4s ease;
}

.demo-in {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------- generic ---------- */

.demo-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin-bottom: 6px;
}

.demo-full {
  min-height: calc(100vh - 220px);
}

.demo-cta {
  padding-inline: 22px;
}

.demo-cta-xl {
  padding-inline: 38px;
  padding-block: 14px;
  font-size: 18px;
}

.demo-panel-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
  color: var(--bs-secondary-color);
  margin-bottom: 16px;
}

.demo-kv {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--bs-border-color);
  font-size: 14px;
}

.demo-kv:last-child {
  border-bottom: 0;
}

.demo-kv > span {
  color: var(--bs-secondary-color);
  min-width: 118px;
  flex-shrink: 0;
}

.demo-kv > strong {
  font-weight: 600;
  text-align: right;
  margin-left: auto;
}

.demo-quote {
  border-left: 3px solid var(--bs-primary);
  padding: 12px 16px;
  background: var(--bs-primary-bg-subtle);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  font-style: italic;
}

.demo-quote-sm {
  font-size: 14px;
  padding: 8px 12px;
}

/* ---------- dashboard ---------- */

.demo-spark-wrap {
  height: 96px;
}

.demo-bell {
  position: relative;
  display: inline-flex;
  line-height: 1;
}

.demo-bell-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  font-size: 9px;
  line-height: 1;
  padding: 3px 5px;
  min-width: 15px;
}

.demo-spark {
  width: 100%;
  height: 96px;
  display: block;
}


/* ---------- act I industries ---------- */

.demo-tile {
  width: 100%;
  height: 100%;
  min-height: 132px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .42s ease;
}

.demo-tile:hover {
  transform: translateY(-3px);
  border-color: var(--bs-primary);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.demo-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.demo-tile-label {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
}

.demo-tile-count {
  font-size: 12px;
  color: var(--bs-secondary-color);
  margin-top: auto;
}

/* ---------- act I criteria ---------- */

.demo-bar-row {
  display: grid;
  grid-template-columns: 1fr 132px 92px;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
}

.demo-bar-head {
  opacity: 1;
  transform: none;
  font-weight: 600;
}

.demo-bar-label {
  color: var(--bs-secondary-color);
}

.demo-bar-head .demo-bar-label {
  color: var(--bs-body-color);
}

.demo-bar-track {
  height: 12px;
  background: var(--bs-secondary-bg);
  border-radius: 6px;
  overflow: hidden;
}

.demo-bar-fill {
  height: 100%;
  width: var(--w);
  background: var(--bs-primary);
  border-radius: 6px;
  transform-origin: left;
  animation: demo-grow .7s cubic-bezier(.2, .8, .2, 1) both;
}

.demo-bar-base {
  background: var(--bs-secondary-color);
  opacity: .5;
}

@keyframes demo-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.demo-bar-value {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.demo-progress {
  width: 220px;
}

.demo-progress-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--bs-secondary-bg);
  overflow: hidden;
  position: relative;
}

.demo-progress.is-running .demo-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bs-primary);
  transform-origin: left;
  animation: demo-grow 3.2s linear both;
}

.demo-progress-label {
  font-size: 12px;
  color: var(--bs-secondary-color);
}

/* ---------- act I grid & record ---------- */

.demo-grid {
  max-height: 62vh;
  overflow-y: auto;
}

.demo-grid tbody tr {
  cursor: pointer;
}

.demo-facts,
.demo-sig-group {
  display: block;
}

.demo-fact {
  padding: 10px 0;
  border-bottom: 1px dashed var(--bs-border-color);
}

.demo-fact:last-child {
  border-bottom: 0;
}

.demo-fact-label {
  font-size: 12px;
  color: var(--bs-secondary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-fact-field {
  font-size: 10px;
  background: var(--bs-secondary-bg);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}

.demo-fact-value {
  font-weight: 600;
  font-size: 15px;
  margin-top: 2px;
}

.demo-fact-source {
  font-size: 12px;
  color: var(--bs-secondary-color);
  margin-top: 2px;
}

.demo-why {
  background: var(--bs-primary-bg-subtle);
  border-radius: 10px;
  padding: 16px;
}

.demo-why-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bs-primary);
  margin-bottom: 6px;
}

.demo-sig-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--bs-border-color);
}

.demo-sig-group:last-child {
  border-bottom: 0;
}

.demo-sig-heading {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin-bottom: 10px;
}

.demo-metric {
  background: var(--bs-secondary-bg);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.demo-metric strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.demo-metric span {
  font-size: 11px;
  color: var(--bs-secondary-color);
}

/* ---------- act II ---------- */

.demo-film-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #000;
  border: 1px solid var(--bs-border-color);
  object-fit: contain;
}

.demo-beats {
  list-style: none;
  padding: 0;
  margin: 0;
}

.demo-beats li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px dashed var(--bs-border-color);
  font-size: 14px;
}

.demo-beats li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bs-primary);
}

.demo-score-row,
.demo-obj-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--bs-border-color);
  font-size: 14px;
}

.demo-score-row:last-child,
.demo-obj-row:last-child {
  border-bottom: 0;
}

.demo-obj-index {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bs-secondary-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.demo-cert {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bs-success-bg-subtle);
  border-radius: 12px;
  padding: 16px;
  margin-top: 18px;
}

.demo-cert i {
  font-size: 30px;
  color: var(--bs-success);
}

.demo-cert-state {
  font-weight: 800;
  font-size: 18px;
  color: var(--bs-success);
}

.demo-cert-note {
  font-size: 12px;
  color: var(--bs-secondary-color);
}

/* ---------- act III talk track ---------- */

/* ---------- act III dialer ---------- */

.demo-dialer-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.demo-dialer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bs-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.demo-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bs-success);
}

.demo-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bs-success);
  animation: demo-blink 1.4s ease-in-out infinite;
}

@keyframes demo-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

.demo-dial-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bs-secondary-bg);
  border-radius: 12px;
  padding: 14px 18px;
}

.demo-dial-num {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.demo-dial-meta {
  font-size: 12px;
  color: var(--bs-secondary-color);
}

.demo-dial-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.demo-dial-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bs-body-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color);
  padding: 0;
  transition: background .15s ease, color .15s ease;
}

.demo-dial-btn:hover:not(:disabled) {
  background: var(--bs-secondary-bg);
  color: var(--bs-body-color);
}

.demo-dial-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.demo-dial-btn.is-on {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.demo-dial-end {
  background: var(--bs-danger);
  border-color: var(--bs-danger);
  color: #fff;
}

.demo-dial-end:hover:not(:disabled) {
  background: var(--bs-danger);
  border-color: var(--bs-danger);
  color: #fff;
  filter: brightness(1.1);
}

.demo-keypad {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  background: var(--bs-secondary-bg);
  max-width: 240px;
}

.demo-keypad-readout {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  min-height: 28px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bs-border-color);
  word-break: break-all;
}

.demo-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.demo-keypad-key {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  font-size: 16px;
  font-weight: 700;
  color: var(--bs-body-color);
}

.demo-keypad-key:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.demo-disps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-disp {
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
}

.demo-disp-success {
  border-color: var(--bs-success);
  background: var(--bs-success-bg-subtle);
  color: var(--bs-success);
  font-weight: 700;
}

/* ---------- act III intelligence ---------- */

.demo-conf {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--bs-secondary-color);
}

.demo-conf-track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--bs-secondary-bg);
  overflow: hidden;
}

.demo-conf-fill {
  height: 100%;
  width: var(--w);
  background: var(--bs-success);
  transform-origin: left;
  animation: demo-grow .8s cubic-bezier(.2, .8, .2, 1) both;
}

.demo-extract-row:last-child {
  border-bottom: 0;
}

/* ---------- act III missed opportunity ---------- */

.demo-call-card,
.demo-task-card,

.demo-obj-extract {
  margin-bottom: 14px;
}

.demo-counter-missed,
.demo-counter-claim {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13px;
}

.demo-counter-missed {
  background: var(--bs-warning-bg-subtle);
}

.demo-counter-claim {
  background: var(--bs-primary-bg-subtle);
}

.demo-counter-tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin-bottom: 5px;
}

.demo-counter-source {
  font-size: 12px;
}

/* ---------- act III omnichannel ---------- */

/* ---------- act IV ---------- */

.demo-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bs-success-bg-subtle);
  color: var(--bs-success);
  border: 1px solid var(--bs-success);
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 800;
  font-size: 15px;
}

.demo-stamp i {
  font-size: 20px;
}

.demo-qa-row {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--bs-border-color);
}

.demo-qa-row:last-child {
  border-bottom: 0;
}

.demo-qa-row i {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.demo-qa-evidence {
  font-size: 12px;
  color: var(--bs-secondary-color);
  margin-top: 3px;
}

.demo-notify {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-left: 4px solid var(--bs-primary);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 560px;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.demo-notify.is-in {
  opacity: 1;
  transform: none;
}

.demo-notify i {
  font-size: 24px;
  color: var(--bs-primary);
}

.demo-hl:last-child {
  border-bottom: 0;
}

@media (max-width: 1199.98px) {
  .demo-stage[data-stage="pushback"],
  .demo-stage[data-stage="judgement"],
  .demo-stage[data-stage="save"] {
    grid-column: auto;
  }
}

/* ---------- sidebar profile ---------- */

.left-sidebar .sidebar-ad {
  padding: 12px !important;
}

.left-sidebar .user-avatar {
  flex: 0 0 40px;
  aspect-ratio: 1;
  font-size: 16px;
}

.left-sidebar .john-title {
  min-width: 0;
}

.left-sidebar .john-title h6,
.left-sidebar .john-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
}

/* ---------- territory selection ---------- */

.demo-picker {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-picker-card {
  width: 100%;
  max-width: 520px;
  margin: 0;
}

.demo-terr-select {
  min-width: 300px;
}

.demo-stat {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.demo-market .demo-eyebrow {
  margin-bottom: 2px;
}

/* ---------- criteria editing ---------- */

/* ---------- list assignment ---------- */

.demo-assign {
  margin-bottom: 20px;
}

.demo-assign-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bs-secondary-bg);
  border-radius: 10px;
  padding: 14px 18px;
}

.demo-assign-panel {
  border: 1px solid var(--bs-border-color);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  padding: 16px 18px;
  margin: -6px 6px 0;
}

.demo-modal-icon {
  font-size: 26px;
  flex-shrink: 0;
}

/* ---------- certification breadcrumb ---------- */

.demo-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.demo-steps-center {
  justify-content: center;
}

.demo-steps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.demo-steps-row .demo-steps {
  flex: 1;
  min-width: 0;
}

.demo-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  font-size: 13px;
  font-weight: 500;
  color: var(--bs-body-color);
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

a.demo-step:hover {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.demo-step-n {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  background: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.demo-step-done {
  border-color: var(--bs-success);
  background: var(--bs-success-bg-subtle);
}

.demo-step-done .demo-step-n {
  background: var(--bs-success);
  color: #fff;
}

.demo-step-current {
  border-color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
  font-weight: 700;
}

.demo-step-current .demo-step-n {
  background: var(--bs-primary);
  color: #fff;
}

.demo-step-future {
  color: var(--bs-secondary-color);
}

.demo-step-sep {
  color: var(--bs-secondary-color);
  font-size: 13px;
}

/* ---------- criteria cards ---------- */

.demo-crit-grid {
  display: grid;
  gap: 12px;
}

.demo-crit-scroll {
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 6px;
}

.demo-build-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.demo-crit-card {
  margin-bottom: 0;
  border: 1px solid var(--bs-border-color);
}

.demo-crit-card .card-header {
  background: var(--bs-secondary-bg);
  padding: 10px 16px;
  font-size: 14px;
}

.demo-crit-card .card-body {
  padding: 14px 16px;
}

.demo-crit-card.is-editing {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px var(--bs-primary-bg-subtle);
}

.demo-crit-actions {
  display: inline-flex;
  gap: 14px;
  align-items: center;
}

.demo-crit-icon {
  font-size: 17px;
  cursor: pointer;
  color: var(--bs-secondary-color);
  transition: color .15s ease;
}

.demo-crit-icon:hover {
  color: var(--bs-primary);
}

.demo-crit-icon.text-danger:hover {
  color: var(--bs-danger) !important;
}

.demo-no-items {
  color: var(--bs-secondary-color);
  font-size: 13px;
}

.demo-chipset {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-chipset-edit {
  min-height: 32px;
}

.demo-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.demo-token-edit {
  background: var(--bs-secondary-bg);
  color: var(--bs-body-color);
}

.demo-token-x {
  cursor: pointer;
  font-size: 13px;
  color: var(--bs-danger);
}

.demo-range {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.demo-range-bound {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.demo-range-bound strong {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.demo-range-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--bs-secondary-color);
}

.demo-range-connector {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--bs-secondary-color);
}

.demo-range-connector span {
  width: 14px;
  height: 1px;
  background: var(--bs-border-color);
}

.demo-range-unit {
  margin-left: auto;
  font-size: 12px;
  color: var(--bs-secondary-color);
}

.demo-choice-value {
  font-weight: 600;
  font-size: 15px;
}

/* ---------- training ---------- */

.demo-intro-action {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.demo-intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--bs-border-color);
  font-size: 12px;
  color: var(--bs-secondary-color);
}

.demo-intro-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-intro-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--bs-border-color);
  font-size: 14px;
}

.demo-intro-step:last-child {
  border-bottom: 0;
}

.demo-intro-step-n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bs-secondary-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- ask anything chat ---------- */

.demo-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-chat-log {
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  background: var(--bs-secondary-bg);
  padding: 16px;
  height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-chat-compact .demo-chat-log {
  height: 260px;
}

.demo-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
}

.demo-msg-bot {
  align-self: flex-start;
}

.demo-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.demo-msg-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--bs-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.demo-msg-body {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.6;
}

.demo-msg-user .demo-msg-body {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.demo-msg-audio {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--bs-border-color);
}

.demo-msg-play {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 0;
  border-radius: 50%;
  background: var(--bs-primary);
  color: #fff;
}

.demo-msg-audio-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--bs-secondary-color);
  font-weight: 700;
}

.demo-chat-pins {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.demo-chat-pins-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  color: var(--bs-secondary-color);
  margin-right: 2px;
}

.demo-pin {
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  transition: all .15s ease;
}

.demo-pin:hover:not(:disabled) {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.demo-pin:disabled {
  opacity: .45;
}

.demo-chat-compose {
  position: relative;
}

.demo-chat-input {
  resize: none;
  padding-right: 58px;
}

.demo-chat-send {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 38px;
  height: 38px;
  padding: 0;
}

/* ---------- talk track flow ---------- */

.demo-tt-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-tt-scroll {
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-tt-compact .demo-tt-scroll {
  max-height: 48vh;
}

.demo-tt-node {
  border: 1px solid var(--bs-border-color);
  border-left: 4px solid var(--bs-primary);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--bs-body-bg);
}

.demo-tt-node.is-past {
  opacity: .62;
}

.demo-tt-pushback {
  border-left-color: var(--bs-warning);
}

.demo-tt-close {
  border-left-color: var(--bs-success);
}

.demo-tt-recap {
  border-left-color: var(--bs-secondary-color);
}

.demo-tt-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin-bottom: 6px;
}

.demo-tt-text {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.demo-tt-ph {
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
  border-radius: 4px;
  padding: 0 5px;
  font-weight: 700;
}

.demo-tt-prompt {
  font-size: 13px;
  color: var(--bs-secondary-color);
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bs-secondary-bg);
  border-radius: 8px;
}

.demo-tt-answers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.demo-tt-answer {
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  min-height: 56px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  background: var(--bs-secondary-bg);
  color: var(--bs-body-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}

.demo-tt-answer:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

.demo-tt-answer:disabled {
  cursor: default;
  box-shadow: none;
}

.demo-tt-answer.is-objection::after {
  content: '\26A0';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bs-warning);
  opacity: .8;
}

.demo-tt-answer.is-schedule::after {
  content: '\1F4C5';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .8;
}

.demo-tt-answer.is-selected {
  background: var(--bs-success-bg-subtle);
  color: var(--bs-success-text-emphasis);
  box-shadow: inset 0 0 0 2px var(--bs-success);
}

.demo-tt-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--bs-border-color);
  padding-top: 14px;
}

.demo-tt-portals {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-tt-portal {
  border: 1px solid var(--bs-warning);
  background: var(--bs-warning-bg-subtle);
  color: var(--bs-warning-text-emphasis);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
}

.demo-tt-portal:hover {
  background: var(--bs-warning);
  color: #fff;
}

.demo-tt-outcome {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bs-success-bg-subtle);
  border-radius: 10px;
  padding: 14px 18px;
}

.demo-tt-outcome i {
  font-size: 26px;
  color: var(--bs-success);
}

.demo-tt-outcome-state {
  font-weight: 800;
  color: var(--bs-success);
}

.demo-tt-outcome-note {
  font-size: 12px;
  color: var(--bs-secondary-color);
}

.demo-tt-caller {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
}

/* ---------- talk track sidebar panels ---------- */

.demo-tt-panels {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-tt-panel {
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bs-body-bg);
}

.demo-tt-panel-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bs-secondary-bg);
  border: 0;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
}

.demo-tt-panel-head i {
  transition: transform .2s ease;
}

.demo-tt-panel.is-collapsed .demo-tt-panel-head i {
  transform: rotate(-90deg);
}

.demo-tt-panel-body {
  padding: 14px 16px;
  font-size: 13px;
}

.demo-tt-panel.is-collapsed .demo-tt-panel-body {
  display: none;
}

.demo-tt-detail + .demo-tt-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--bs-border-color);
}

.demo-tt-detail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bs-secondary-color);
}

.demo-tt-detail-value {
  margin-top: 2px;
  line-height: 1.5;
}

.demo-tt-panel-body h6 {
  font-size: 12px;
  font-weight: 700;
  margin: 12px 0 4px;
}

.demo-tt-panel-body h6:first-child {
  margin-top: 0;
}

.demo-tt-panel-body p {
  margin-bottom: 0;
  color: var(--bs-secondary-color);
  line-height: 1.55;
}

/* ---------- dialer queue ---------- */

.demo-queue {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 62vh;
  overflow-y: auto;
}

.demo-queue-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  width: 100%;
}

.demo-queue-row:hover {
  background: var(--bs-secondary-bg);
}

.demo-queue-row.is-active {
  background: var(--bs-primary-bg-subtle);
  border-color: var(--bs-primary);
}

.demo-queue-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.demo-queue-row.is-active .demo-queue-avatar {
  background: var(--bs-primary);
  color: #fff;
}

.demo-queue-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.demo-queue-name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-queue-co {
  font-size: 11px;
  color: var(--bs-secondary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-queue-status {
  margin-left: auto;
  font-size: 10px;
  color: var(--bs-secondary-color);
  white-space: nowrap;
}

.demo-queue-status.is-live {
  color: var(--bs-success);
  font-weight: 700;
}

.demo-queue-status.is-dialing {
  color: var(--bs-primary);
  font-weight: 700;
  animation: demo-blink 1.1s ease-in-out infinite;
}

.demo-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.demo-disp.is-chosen {
  box-shadow: inset 0 0 0 2px var(--bs-primary);
}

/* ---------- role play ---------- */

.demo-rp-stage {
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
  background: var(--bs-secondary-bg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.demo-rp-avatar {
  position: relative;
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-rp-face {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3f5b91 0%, #22304f 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  overflow: hidden;
}

.demo-rp-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-rp-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--bs-primary);
  opacity: 0;
}

.demo-rp-avatar.is-live .demo-rp-ring {
  animation: demo-rp-pulse 1.8s ease-out infinite;
}

@keyframes demo-rp-pulse {
  0% { transform: scale(.85); opacity: .7; }
  100% { transform: scale(1.15); opacity: 0; }
}

.demo-rp-name {
  font-weight: 700;
  font-size: 17px;
  text-align: center;
}

.demo-rp-role {
  font-size: 12px;
  color: var(--bs-secondary-color);
  text-align: center;
}

.demo-rp-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--bs-secondary-color);
}

.demo-rp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bs-secondary-color);
}

.demo-rp-status.is-live .demo-rp-dot {
  background: var(--bs-success);
  animation: demo-blink 1.4s ease-in-out infinite;
}

.demo-rp-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.demo-rp-obj-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.demo-rp-obj {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.demo-cert-next {
  font-size: 12px;
  color: var(--bs-success);
  font-weight: 600;
  margin-top: 6px;
}

/* ---------- role play ---------- */

.demo-rp-locked {
  opacity: .4;
  pointer-events: none;
}

.demo-rp-hint {
  font-size: 12px;
  color: var(--bs-secondary-color);
  background: var(--bs-secondary-bg);
  border-radius: 8px;
  padding: 10px 12px;
}

/* ---------- certification ---------- */

.demo-congrats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bs-success-bg-subtle);
  border: 1px solid var(--bs-success);
  border-radius: 14px;
  padding: 22px 26px;
}

.demo-congrats-badge {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  background: var(--bs-success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.demo-congrats h4 {
  color: var(--bs-success-text-emphasis);
}

.demo-congrats p {
  font-size: 14px;
  color: var(--bs-body-color);
  max-width: 640px;
}

.demo-congrats-score {
  margin-left: auto;
  text-align: center;
}

.demo-congrats-score span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bs-secondary-color);
  font-weight: 700;
}

.demo-congrats-score strong {
  font-size: 30px;
  color: var(--bs-success);
}

/* ---------- pushback recovery ---------- */

.demo-rec-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 68vh;
  overflow-y: auto;
}

.demo-rec-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  background: var(--bs-body-bg);
  padding: 12px 14px;
  transition: border-color .15s ease, background .15s ease;
}

.demo-rec-row:hover {
  border-color: var(--bs-primary);
}

.demo-rec-row.is-active {
  border-color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
}

.demo-rec-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-rec-name {
  font-weight: 700;
  font-size: 14px;
}

.demo-rec-top .badge {
  margin-left: auto;
  font-size: 9px;
}

.demo-rec-co {
  font-size: 12px;
  color: var(--bs-secondary-color);
}

.demo-rec-obj {
  font-size: 11px;
  color: var(--bs-warning-text-emphasis);
  font-weight: 600;
}

.demo-rec-meta {
  font-size: 11px;
  color: var(--bs-secondary-color);
}

.demo-callback {
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--bs-secondary-bg);
}

.demo-callback-idle,
.demo-callback-live,
.demo-callback-done {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-callback-done i {
  font-size: 26px;
  color: var(--bs-secondary-color);
}

.demo-callback-done.is-won i {
  color: var(--bs-success);
}

/* ---------- meeting brief email preview ---------- */

/* ---------- meeting brief flyout ---------- */

.demo-flyout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1049;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(1.5px);
  opacity: 0;
  transition: opacity .28s ease;
}

.demo-flyout-backdrop.is-open {
  opacity: 1;
}

.demo-flyout {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  width: min(960px, 96vw);
  display: flex;
  flex-direction: column;
  background: var(--bs-body-bg);
  border-left: 1px solid var(--bs-border-color);
  box-shadow: -18px 0 48px rgba(15, 23, 42, .2);
  transform: translateX(100%);
  transition: transform .28s ease;
}

.demo-flyout.is-open {
  transform: translateX(0);
}

.demo-flyout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 18px;
  background: var(--bs-body-bg);
  border-bottom: 1px solid var(--bs-border-color);
  flex-shrink: 0;
}

.demo-flyout-identity {
  min-width: 0;
}

.demo-flyout-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.demo-flyout-company {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--bs-secondary-color);
}

.demo-flyout-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 7px;
}

.demo-flyout-close {
  width: 32px;
  height: 32px;
  margin-left: 3px;
  padding: 9px;
  background-color: var(--bs-secondary-bg);
  border-radius: 50%;
  opacity: .65;
}

.demo-flyout-close:hover {
  opacity: .9;
}

.demo-flyout-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.mail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
  color: var(--bs-secondary-color);
  margin-bottom: 12px;
}

.mail-meta span {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 10px;
  margin-right: 6px;
}

.mail-canvas {
  background: #f7f8fa;
  padding: 28px 12px;
  border-radius: 12px;
  border: 1px solid var(--bs-border-color);
}

.mail-shell {
  width: 640px;
  max-width: 100%;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
}

.mail-card {
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-top: 4px solid #ef3f2a;
  color: #1f2937;
}

.mail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid #dfe3e8;
}

.mail-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mail-eyebrow {
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #697586;
  font-weight: bold;
  white-space: nowrap;
}

.mail-date {
  font-size: 11px;
  color: #697586;
  white-space: nowrap;
}

.mail-hero {
  padding: 20px 20px 8px;
}

.mail-contact-name {
  font-family: 'Arial Narrow', Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 29px;
  font-weight: bold;
  color: #1f2937;
}

.mail-company {
  font-size: 15px;
  line-height: 21px;
  font-weight: bold;
  color: #2f3947;
  padding-top: 6px;
}

.mail-company-meta {
  font-size: 12px;
  line-height: 18px;
  color: #697586;
  padding-top: 2px;
}

.mail-facts-wrap {
  padding: 10px 20px 18px;
}

.mail-facts {
  width: 100%;
  border-collapse: collapse;
  background-color: #f1f3f5;
  border-left: 4px solid #ef3f2a;
}

.mail-facts td {
  width: 50%;
  vertical-align: top;
  padding: 11px 13px 9px;
  border-right: 1px solid #e0ddd8;
}

.mail-facts td:last-child {
  border-right: 0;
}

.mail-facts-row2 {
  border-top: 1px solid #e0ddd8;
  padding: 9px 13px 11px !important;
}

.mail-fact {
  font-size: 13px;
  line-height: 18px;
  font-weight: bold;
  color: #2f3947;
  padding-top: 2px;
  word-break: break-word;
}

.mail-muted {
  font-size: 11px;
  line-height: 15px;
  color: #697586;
  padding-top: 2px;
}

.mail-tag {
  display: inline-block;
  background-color: #ef3f2a;
  color: #ffffff;
  font-size: 8px;
  line-height: 12px;
  letter-spacing: .7px;
  text-transform: uppercase;
  padding: 1px 5px;
  vertical-align: 1px;
}

.mail-pill {
  display: inline-block;
  background-color: #2f7d4f;
  color: #ffffff;
  font-size: 9px;
  line-height: 13px;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 9px;
  margin-top: 4px;
}

.mail-section {
  padding: 0 20px 17px;
}

.mail-section-label {
  border-top: 1px solid #e5e8ec;
  padding-top: 12px;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #697586;
  font-weight: bold;
  margin-bottom: 4px;
}

.mail-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mail-highlight {
  display: flex;
  gap: 10px;
  padding-top: 7px;
  font-size: 13px;
  line-height: 20px;
  color: #2f3947;
}

.mail-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-top: 8px;
  background-color: #ef3f2a;
  border-radius: 50%;
}

.mail-highlight-detail {
  color: #697586;
}

.mail-props {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #2f3947;
}

.mail-props td {
  padding: 5px 0;
  vertical-align: top;
}

.mail-props td.mail-eyebrow {
  width: 108px;
  padding-right: 12px;
  padding-top: 8px;
}

.mail-note {
  margin-top: 10px;
  background: #fdf4e3;
  border-left: 3px solid #d9a441;
  padding: 9px 12px;
  font-size: 12px;
  color: #6b5216;
}

.mail-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid #e5e8ec;
  font-size: 11px;
  line-height: 16px;
  color: #697586;
}

/* ---------- click hints ---------- */

.demo-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bs-primary-bg-subtle);
  border: 1px dashed var(--bs-primary);
  color: var(--bs-primary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.demo-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.demo-hint-arrow {
  font-size: 16px;
  animation: demo-nudge 1.5s ease-in-out infinite;
}

.demo-hint.is-ready {
  background: rgba(239, 63, 42, .1);
  border-color: #ef3f2a;
  border-style: solid;
  color: #ef3f2a;
}

@keyframes demo-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

.demo-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--bs-border-color);
}

.demo-tabs-row .nav {
  border-bottom: 0;
  margin-bottom: -1px;
}

/* ---------- AI trainer ---------- */

.demo-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef3f2a, #ff7a5c);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 8px;
}

.demo-ai-badge i {
  font-size: 11px;
}

.demo-rp-ai {
  margin-top: 4px;
  font-size: 11px;
  font-style: italic;
  color: var(--bs-secondary-color);
}

/* ---------- talk track: skip to an ending ---------- */

.demo-tt-jumps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
  margin-top: 10px;
  border-top: 1px dashed var(--bs-border-color);
}

.demo-tt-jumps-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  white-space: nowrap;
}

.demo-tt-jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-tt-jump {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  color: var(--bs-secondary-color);
  font-size: 12px;
  font-weight: 600;
}

.demo-tt-jump:hover {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.demo-tt-jump.is-goal {
  border-color: #ef3f2a;
  color: #ef3f2a;
  background: rgba(239, 63, 42, .07);
}

.demo-tt-jump.is-goal:hover {
  background: #ef3f2a;
  color: #fff;
}

/* ---------- meeting brief: property + survey ---------- */

.mail-survey {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin-top: 4px;
}

.mail-survey-value {
  font-size: 13px;
  font-weight: 700;
  color: #2f3947;
  padding-top: 2px;
}

.mail-building {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.mail-building img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dfe3e8;
  border-radius: 4px;
}

.mail-building-caption {
  margin-top: 5px;
  font-size: 11px;
  color: #697586;
}

.mail-dir-buttons {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.mail-dir-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #dfe3e8;
  border-radius: 4px;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  color: #2f3947;
}



/* ---------- contact record: brand treatment ---------- */

.demo-contact-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 14px;
  background: linear-gradient(120deg, #2b2f3a 0%, #3a2028 55%, #ef3f2a 175%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.demo-contact-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 63, 42, .38), transparent 68%);
  pointer-events: none;
}

.demo-contact-id {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.demo-contact-avatar {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ef3f2a, #ff8566);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 8px 22px rgba(239, 63, 42, .42);
}

.demo-contact-name h4 {
  color: #fff;
}

.demo-contact-name p {
  color: rgba(255, 255, 255, .72);
}

.demo-eyebrow-brand {
  color: #ff8566;
  margin-bottom: 3px;
}

.demo-contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.demo-tag-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.demo-tag-brand i {
  font-size: 12px;
  color: #ff8566;
}

.demo-contact-actions {
  position: relative;
  z-index: 1;
}

.demo-contact-hero .btn-outline-secondary {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.demo-contact-hero .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.demo-contact-hero .btn-outline-danger {
  border-color: rgba(255, 138, 116, .75);
  color: #ffb3a2;
}

.demo-contact-hero .btn-outline-danger:hover {
  background: #ef3f2a;
  border-color: #ef3f2a;
  color: #fff;
}

/* Brand-accent the record panels so the page is not a wall of gray. */

.demo-contact-grid .demo-panel {
  border-top: 3px solid #ef3f2a;
}

.demo-contact-grid .demo-panel-title {
  color: #ef3f2a;
}

.demo-property {
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
}

.demo-property img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.demo-property figcaption {
  display: grid;
  gap: 4px;
  padding: 14px;
  font-size: 13px;
}

.demo-property small {
  color: var(--bs-secondary-color);
}

.demo-site-address {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  height: 100%;
  padding: 24px;
  background: var(--bs-tertiary-bg);
  text-align: center;
}

.demo-site-address > i {
  font-size: 36px;
  color: var(--bs-primary);
}

.demo-contact-grid .demo-metric {
  border-bottom: 2px solid rgba(239, 63, 42, .3);
}

.demo-contact-grid .demo-metric strong {
  color: #ef3f2a;
}

.demo-contact-grid .demo-fact-value {
  color: var(--bs-emphasis-color);
}

.demo-contact-grid .demo-fact-field {
  background: rgba(239, 63, 42, .1);
  color: #ef3f2a;
}

/* ---------- nav progress ---------- */

.demo-nav-progress {
  margin-left: auto;
  margin-right: 14px;
  font-size: 10px;
  font-weight: 700;
  color: var(--bs-secondary-color);
  background: var(--bs-secondary-bg);
  border-radius: 999px;
  padding: 1px 8px;
}

.nav-small-cap {
  display: flex;
  align-items: center;
}

.demo-nav-check {
  color: var(--bs-success);
}

.demo-nav-done .sidebar-link {
  color: var(--bs-secondary-color);
}

.demo-nav-done-tag {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bs-success);
  background: var(--bs-success-bg-subtle);
  border-radius: 999px;
  padding: 1px 7px;
}

/* ---------- train: collateral ---------- */

.demo-coll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.demo-coll-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.demo-coll-card:hover,
.demo-coll-card.is-open {
  transform: translateY(-2px);
  border-color: #ef3f2a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.demo-coll-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(239, 63, 42, .1);
  color: #ef3f2a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.demo-coll-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-coll-title {
  font-weight: 700;
  font-size: 15px;
}

.demo-coll-desc {
  font-size: 12px;
  color: var(--bs-secondary-color);
  line-height: 1.45;
}

.demo-coll-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin-top: 4px;
}

.demo-coll-chev {
  margin-left: auto;
  align-self: center;
  color: var(--bs-secondary-color);
  flex-shrink: 0;
}

.demo-assures {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.demo-assure {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
}

.demo-assure i {
  color: var(--bs-success);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- flyout tabs + detail panes ---------- */

.demo-flyout-tabs {
  flex-shrink: 0;
  gap: 4px;
  padding: 0 18px;
  border-bottom: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
}

.demo-flyout-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bs-secondary-color);
  background: transparent;
}

.demo-flyout-tabs .nav-link.active {
  color: #ef3f2a;
  border-bottom-color: #ef3f2a;
}

.demo-flyout-sm {
  width: min(620px, 96vw);
}

.demo-brief-headers {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  background: var(--bs-secondary-bg);
}

.demo-detail-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  padding: 16px;
  background: var(--bs-body-bg);
  margin-bottom: 14px;
}

.demo-detail-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin-bottom: 4px;
}

.demo-detail-desc {
  font-size: 12px;
  color: var(--bs-secondary-color);
  margin-bottom: 12px;
}

.demo-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
}

.demo-detail-item {
  min-width: 0;
}

.demo-detail-wide {
  grid-column: 1 / -1;
}

.demo-detail-item dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.demo-detail-item dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.demo-delivery-events {
  list-style: none;
  padding: 0;
  margin: 0;
}

.demo-delivery-events li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--bs-border-color);
}

.demo-delivery-events li:last-child {
  border-bottom: 0;
}

.demo-delivery-marker {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bs-success);
  margin-top: 6px;
  flex-shrink: 0;
}

.demo-delivery-events strong {
  display: block;
  font-size: 13px;
  text-transform: capitalize;
}

.demo-delivery-events span:not(.demo-delivery-marker) {
  font-size: 12px;
  color: var(--bs-secondary-color);
}

/* ---------- opportunities kanban ---------- */

.demo-kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(252px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  align-items: start;
}

.demo-kanban-col {
  background: var(--bs-secondary-bg);
  border-radius: 14px;
  padding: 12px;
  min-height: 220px;
}

.demo-kanban-head {
  padding: 4px 4px 12px;
  border-bottom: 2px solid var(--bs-border-color);
  margin-bottom: 12px;
}

.demo-kanban-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.demo-kanban-count {
  margin-left: auto;
  font-size: 11px;
  background: var(--bs-body-bg);
  border-radius: 999px;
  padding: 1px 9px;
}

.demo-kanban-sum {
  font-size: 12px;
  font-weight: 700;
  color: var(--bs-secondary-color);
  margin-top: 3px;
}

.demo-kanban-desc {
  font-size: 11px;
  color: var(--bs-secondary-color);
  margin-top: 2px;
  line-height: 1.4;
}

.demo-kanban-info { border-bottom-color: var(--bs-info); }
.demo-kanban-primary { border-bottom-color: var(--bs-primary); }
.demo-kanban-warning { border-bottom-color: var(--bs-warning); }
.demo-kanban-secondary { border-bottom-color: var(--bs-secondary); }
.demo-kanban-success { border-bottom-color: var(--bs-success); }

.demo-kanban-drop {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  border-radius: 10px;
  transition: background .15s ease, box-shadow .15s ease;
}

.demo-kanban-drop.is-over {
  background: rgba(239, 63, 42, .07);
  box-shadow: inset 0 0 0 2px #ef3f2a;
}

.demo-opp-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 11px;
  padding: 12px;
  cursor: grab;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.demo-opp-card:hover {
  transform: translateY(-2px);
  border-color: #ef3f2a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.demo-opp-card.is-dragging {
  opacity: .45;
  cursor: grabbing;
}

.demo-opp-landed {
  animation: demo-land .5s ease;
}

@keyframes demo-land {
  0% { box-shadow: 0 0 0 3px rgba(239, 63, 42, .5); }
  100% { box-shadow: none; }
}

.demo-opp-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.demo-opp-co {
  font-size: 12px;
  font-weight: 700;
  color: var(--bs-secondary-color);
  line-height: 1.3;
}

.demo-opp-outcome {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 999px;
  padding: 2px 8px;
}

.demo-opp-outcome.is-won {
  background: var(--bs-success-bg-subtle);
  color: var(--bs-success);
}

.demo-opp-outcome.is-lost {
  background: var(--bs-danger-bg-subtle);
  color: var(--bs-danger);
}

.demo-opp-value {
  font-size: 20px;
  font-weight: 700;
  margin: 6px 0 10px;
}

.demo-opp-who {
  display: flex;
  align-items: center;
  gap: 9px;
}

.demo-opp-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef3f2a, #ff8566);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.demo-opp-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.demo-opp-title {
  display: block;
  font-size: 11px;
  color: var(--bs-secondary-color);
}

.demo-opp-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--bs-border-color);
  font-size: 11px;
  color: var(--bs-secondary-color);
}

.demo-ai-line {
  display: block;
  margin-bottom: 7px;
}

.demo-ai-line .demo-ai-badge {
  margin-left: 0;
}

/* ---------- training mode ---------- */

.demo-train-switch {
  padding-left: 2.6em;
}

.demo-train-switch .form-check-input {
  margin-left: -2.6em;
  width: 2.1em;
  height: 1.1em;
  cursor: pointer;
}

.demo-train-switch .form-check-input:checked {
  background-color: #ef3f2a;
  border-color: #ef3f2a;
}

.demo-train-switch .form-check-label {
  cursor: pointer;
  line-height: 1.3;
}

.demo-train-strip {
  position: sticky;
  top: 0;
  /* The topbar is position:fixed with z-index:9, which makes it a stacking
     context — its dropdown's own z-index does not escape it. Stay under 9 so
     the profile popover renders above this strip. */
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(239, 63, 42, .1), rgba(239, 63, 42, .03) 45%, transparent);
  border: 1px solid rgba(239, 63, 42, .3);
  border-left: 4px solid #ef3f2a;
  backdrop-filter: blur(6px);
}

.demo-train-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef3f2a, #ff7a5c);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.demo-train-where {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  padding-right: 12px;
  border-right: 1px solid var(--bs-border-color);
}

.demo-train-say {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 500;
}

.demo-train-note {
  flex-shrink: 0;
  max-width: 260px;
  font-size: 11px;
  color: var(--bs-secondary-color);
  font-style: italic;
}

.demo-train-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.demo-train-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--bs-secondary-color);
  min-width: 38px;
  text-align: center;
}

.demo-train-btn {
  width: 40px;
  height: 40px;
  font-size: 21px;
  border-radius: 9px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  color: var(--bs-secondary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.demo-train-btn:hover:not(:disabled) {
  border-color: #ef3f2a;
  color: #ef3f2a;
}

.demo-train-btn.is-next:not(:disabled) {
  background: #ef3f2a;
  border-color: #ef3f2a;
  color: #fff;
}

.demo-train-btn:disabled {
  opacity: .4;
}

@media (max-width: 991.98px) {
  .demo-train-strip {
    flex-wrap: wrap;
  }

  .demo-train-note {
    display: none;
  }
}

.demo-train-spot {
  position: fixed;
  z-index: 1075;
  border-radius: 10px;
  border: 2px solid #ef3f2a;
  box-shadow: 0 0 0 4px rgba(239, 63, 42, .22), 0 0 0 9999px rgba(15, 23, 42, .06);
  pointer-events: none;
  animation: demo-train-pulse 1.8s ease-in-out infinite;
}

@keyframes demo-train-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(239, 63, 42, .22), 0 0 0 9999px rgba(15, 23, 42, .06); }
  50% { box-shadow: 0 0 0 8px rgba(239, 63, 42, .12), 0 0 0 9999px rgba(15, 23, 42, .06); }
}

.demo-train-arrow {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1076;
  pointer-events: none;
  overflow: visible;
}

.demo-train-arrow-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: demo-train-draw .55s ease-out forwards, demo-train-breathe 2.4s ease-in-out .55s infinite;
  filter: drop-shadow(0 2px 4px rgba(239, 63, 42, .35));
}

@keyframes demo-train-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes demo-train-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

.demo-train-callout {
  position: fixed;
  z-index: 1077;
  padding: 9px 18px;
  border-radius: 999px;
  background: #ef3f2a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(239, 63, 42, .45);
  pointer-events: none;
  animation: demo-train-pop .35s ease-out both;
}

@keyframes demo-train-pop {
  from { transform: scale(.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- channels: post-call follow-up ---------- */

.demo-ch-stats {
  display: flex;
  gap: 10px;
}

.demo-ch-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 11px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
}

.demo-ch-stat-n {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
}

.demo-ch-stat-l {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.demo-ch-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 66vh;
  overflow-y: auto;
}

.demo-ch-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
}

.demo-ch-row:hover {
  background: var(--bs-secondary-bg);
}

.demo-ch-row.is-active {
  background: rgba(239, 63, 42, .07);
  border-color: #ef3f2a;
}

.demo-ch-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-ch-row-name {
  font-weight: 700;
  font-size: 14px;
}

.demo-ch-row-top .badge {
  margin-left: auto;
  font-size: 9px;
}

.demo-ch-row-co {
  font-size: 12px;
  color: var(--bs-secondary-color);
}

.demo-ch-row-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--bs-secondary-color);
}

.demo-ch-row-icons {
  margin-left: auto;
  display: flex;
  gap: 7px;
  font-size: 13px;
  color: var(--bs-secondary-color);
}

.demo-ch-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bs-border-color);
}

.demo-ch-avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef3f2a, #ff8566);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.demo-ch-callmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 0 16px;
  font-size: 12px;
  color: var(--bs-secondary-color);
}

.demo-heard {
  padding: 14px 16px;
  border-radius: 11px;
  background: var(--bs-secondary-bg);
  border-left: 3px solid #ef3f2a;
}

.demo-heard-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 7px 18px;
}

.demo-heard-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.demo-heard-item i {
  color: #ef3f2a;
  font-size: 13px;
  margin-top: 3px;
  flex-shrink: 0;
}

.demo-ch-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: #ef3f2a;
  color: #fff;
  font-size: 10px;
}

.demo-act-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-act-card {
  border: 1px solid var(--bs-border-color);
  border-left: 4px solid var(--bs-secondary-color);
  border-radius: 11px;
  padding: 14px 16px;
  background: var(--bs-body-bg);
}

.demo-act-linkedin { border-left-color: #0a66c2; }
.demo-act-email { border-left-color: #ef3f2a; }
.demo-act-mail { border-left-color: #b8860b; }
.demo-act-none { border-left-color: var(--bs-secondary-color); }

.demo-act-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.demo-act-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--bs-secondary-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.demo-act-linkedin .demo-act-icon { color: #0a66c2; }
.demo-act-email .demo-act-icon { color: #ef3f2a; }
.demo-act-mail .demo-act-icon { color: #b8860b; }

.demo-act-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.demo-act-channel {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.demo-act-kind {
  font-size: 14px;
  font-weight: 700;
}

.demo-act-meta {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.demo-act-timing {
  font-size: 11px;
  color: var(--bs-secondary-color);
}

.demo-act-subject {
  display: flex;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 9px;
  border-radius: 7px;
  background: var(--bs-secondary-bg);
  font-size: 13px;
  font-weight: 600;
}

.demo-act-subject span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  flex-shrink: 0;
  padding-top: 2px;
}

.demo-act-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
}

.demo-act-note {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--bs-border-color);
  font-size: 11.5px;
  font-style: italic;
  color: var(--bs-secondary-color);
}

/* ---------- dialer: follow the talk track ---------- */

/* Plain text, not a pill: the tabs row is space-between, so margin-right:auto
   is what keeps this beside the Talk track tab instead of centred between the
   tabs and the hint. */
.demo-track-cue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #1a73e8;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  animation: demo-cue-in .3s ease-out both;
}

.demo-track-cue:hover {
  color: #0b4fa8;
  text-decoration: underline;
}

.demo-track-cue-arrow {
  font-size: 17px;
  animation: demo-cue-point 1.2s ease-in-out infinite;
}

@keyframes demo-cue-in {
  from { opacity: 0; transform: translateX(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes demo-cue-point {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}

/* Fixed "Demo Environment" bar above the sidebar and topbar. The theme pins
   both of those to the top of the viewport, so they are offset by the bar's
   height only while the signed-in chrome is on screen. */

:root {
  --demo-env-bar-h: 28px;
}

.demo-env-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--demo-env-bar-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: repeating-linear-gradient(-45deg, #f7b731 0 14px, #f0a500 14px 28px);
  color: #1f1300;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  user-select: none;
}

.demo-env-bar i {
  font-size: 15px;
}

body.demo-env .left-sidebar {
  top: var(--demo-env-bar-h);
  height: calc(100% - var(--demo-env-bar-h));
}

body.demo-env .topbar {
  top: var(--demo-env-bar-h);
}

body.demo-env .body-wrapper {
  padding-top: calc(100px + var(--demo-env-bar-h));
}

/* ---------- sidebar: pinned resources group ---------- */

.left-sidebar .demo-nav-resources {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--bs-border-color);
}

.left-sidebar .demo-nav-resources ul {
  list-style: none;
  margin: 0;
  padding: 0 24px;
}

.left-sidebar .demo-nav-resources .nav-small-cap {
  margin-top: 8px;
}

/* ---------- criteria: paired "or" alternatives + guarantee ---------- */

.demo-crit-or {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
  vertical-align: middle;
}

.demo-guarantee h4 {
  color: var(--bs-success);
}

/* ---------- training: AI trainer session player ---------- */

.demo-cvi {
  position: relative;
  width: 80%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0c1219;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  color: #fff;
}

.demo-cvi-note {
  width: 80%;
}

.demo-cvi-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .5s ease;
}

.demo-cvi[data-state="idle"] .demo-cvi-video,
.demo-cvi[data-state="connecting"] .demo-cvi-video {
  filter: brightness(.55) saturate(.8);
}

.demo-cvi-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.demo-cvi-tag,
.demo-cvi-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(12, 18, 25, .72);
  backdrop-filter: blur(6px);
}

.demo-cvi-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a97a6;
}

.demo-cvi[data-state="connecting"] .demo-cvi-status::before {
  background: #f5b400;
  animation: demo-cvi-pulse 1s ease-in-out infinite;
}

.demo-cvi[data-state="live"] .demo-cvi-status,
.demo-cvi[data-state="listening"] .demo-cvi-status {
  text-transform: uppercase;
}

.demo-cvi[data-state="live"] .demo-cvi-status::before,
.demo-cvi[data-state="listening"] .demo-cvi-status::before {
  background: #ef3f2a;
  animation: demo-cvi-pulse 1.4s ease-in-out infinite;
}

@keyframes demo-cvi-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.75); }
}

.demo-cvi-listen {
  position: absolute;
  left: 50%;
  bottom: 76px;
  transform: translate(-50%, 6px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(12, 18, 25, .78);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}

.demo-cvi[data-state="listening"] .demo-cvi-listen {
  opacity: 1;
  transform: translate(-50%, 0);
}

.demo-cvi-dots i {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 3px;
  border-radius: 50%;
  background: #fff;
  animation: demo-cvi-dot 1.2s ease-in-out infinite;
}

.demo-cvi-dots i:nth-child(2) { animation-delay: .2s; }
.demo-cvi-dots i:nth-child(3) { animation-delay: .4s; }

@keyframes demo-cvi-dot {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.demo-cvi-self {
  position: absolute;
  right: 12px;
  bottom: 68px;
  width: 96px;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  background: #1a2430;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.demo-cvi-self-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #5d87ff;
  font-weight: 700;
  font-size: 14px;
}

.demo-cvi-self-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b5c0cc;
}

.demo-cvi-level {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.demo-cvi-level i {
  width: 3px;
  height: 3px;
  border-radius: 2px;
  background: #4cd97b;
  opacity: .35;
}

.demo-cvi[data-state="listening"] .demo-cvi-level i {
  opacity: 1;
  animation: demo-cvi-level 1s ease-in-out infinite;
}

.demo-cvi[data-state="listening"] .demo-cvi-level i:nth-child(2) { animation-delay: .15s; }
.demo-cvi[data-state="listening"] .demo-cvi-level i:nth-child(3) { animation-delay: .3s; }
.demo-cvi[data-state="listening"] .demo-cvi-level i:nth-child(4) { animation-delay: .45s; }
.demo-cvi[data-state="listening"] .demo-cvi-level i:nth-child(5) { animation-delay: .6s; }

@keyframes demo-cvi-level {
  0%, 100% { height: 3px; }
  50% { height: 14px; }
}

.demo-cvi-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
}

.demo-cvi-ctl {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  font-size: 18px;
  backdrop-filter: blur(6px);
}

.demo-cvi-ctl.is-off {
  background: rgba(239, 63, 42, .35);
  text-decoration: line-through;
}

.demo-cvi-end {
  background: #ef3f2a;
}

.demo-cvi-start {
  border-radius: 999px;
  padding: 9px 18px;
}

.demo-cvi-timer {
  min-width: 46px;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  color: #dfe6ee;
}

.demo-cvi[data-state="idle"] .demo-cvi-end,
.demo-cvi[data-state="idle"] .demo-cvi-timer,
.demo-cvi[data-state="connecting"] .demo-cvi-end,
.demo-cvi[data-state="connecting"] .demo-cvi-timer,
.demo-cvi[data-state="live"] .demo-cvi-start,
.demo-cvi[data-state="listening"] .demo-cvi-start {
  display: none;
}

.demo-cvi[data-state="connecting"] .demo-cvi-start {
  pointer-events: none;
  opacity: .7;
}

/* ---------- omni channel: direct mail notecard ---------- */

.demo-mail {
  margin-bottom: 18px;
  padding: 14px 16px 12px;
  border: 1px solid var(--bs-border-color);
  border-left: 4px solid #b8860b;
  border-radius: 12px;
  background: var(--bs-body-bg);
}

.demo-mail .demo-act-icon {
  color: #b8860b;
}

.demo-mail-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  aspect-ratio: 7 / 5;
  margin: 12px 0 10px;
  padding: 22px 150px 22px 34px;
  border-radius: 6px;
  color: #1c1c1c;
  background: #fffdf8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 14px 32px rgba(0, 0, 0, .18);
  font-family: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;
  font-size: clamp(15px, 1.55vw, 22px);
  line-height: 1.32;
}

.demo-mail-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: -6px 0 12px -116px;
  padding-left: 116px;
  font-family: var(--bs-font-sans-serif);
  font-weight: 800;
  font-size: clamp(14px, 1.3vw, 19px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1d3a6b;
}

.demo-mail-mark {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 8px;
  background: #1d3a6b;
  color: #fff;
  font-size: .95em;
  letter-spacing: 0;
}

.demo-mail-text p {
  margin: 0 0 .7em;
}

.demo-mail-sign {
  margin-top: .3em;
}

.demo-mail-qr {
  position: absolute;
  right: 26px;
  bottom: 24px;
  width: 104px;
  padding: 6px;
  border: 3px solid #1d3a6b;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.demo-mail-scan {
  display: block;
  margin: -6px -6px 6px;
  padding: 3px 0;
  border-radius: 6px 6px 0 0;
  background: #1d3a6b;
  color: #fff;
  font-family: var(--bs-font-sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.demo-mail-qr svg {
  display: block;
  width: 100%;
  fill: #111;
}

@media (max-width: 991.98px) {
  .demo-mail-card {
    padding-right: 34px;
    aspect-ratio: auto;
  }

  .demo-mail-qr {
    position: static;
    margin: 6px 0 0 auto;
  }
}

.demo-fivestar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.demo-fivestar-stars {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 3px;
  color: #f5a623;
}

.demo-fivestar-score {
  text-align: right;
}

.demo-fivestar-score strong {
  font-size: 30px;
  line-height: 1.1;
}

.demo-fivestar-score span {
  font-size: 15px;
  color: var(--bs-secondary-color);
  margin-left: 3px;
}

.demo-fivestar-meta {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bs-border-color);
}

.demo-fivestar-weighted-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.demo-fivestar-weighted {
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bs-tertiary-bg);
}

.demo-fivestar-weighted-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.demo-fivestar-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 22px;
}

.demo-fivestar-group {
  break-inside: avoid;
  margin-bottom: 10px;
}

.demo-fivestar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--bs-border-color);
  font-size: 13px;
}

.demo-fivestar-item:last-child {
  border-bottom: 0;
}

.demo-fivestar-item.is-muted {
  opacity: .7;
}

.demo-fivestar-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .demo-fivestar-weighted-grid,
  .demo-fivestar-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- analysis: embedded report ---------- */

.demo-analysis-frame {
  display: block;
  width: 100%;
  aspect-ratio: 600 / 373.5;
  border: 0;
}

.left-sidebar .demo-nav-external {
  margin-left: auto;
  font-size: 14px;
  opacity: 0.7;
}
