/**
 * Design / Desktop UI thumbnails — feature-specific desktop app layouts.
 * Scoped under .bdu-page; 16:9 frames. No shared ui-mockups JS.
 */

.bdu-page .bdu-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: linear-gradient(165deg, #f4f2fa 0%, #ebe7f5 50%, #e2ddf0 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 40px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Lead search: same visual language as design/css/ui-mockups (Revised Feature / #7B61FF) */
.bdu-page .bdu-screen--search-ref {
  background: #f7f7f7;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 40px rgba(0, 0, 0, 0.06);
}

/* Same canvas as ui-mockups revised-feature (#F7F7F7) for other feature frames */
.bdu-page .bdu-screen--flat {
  background: #f7f7f7;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 40px rgba(0, 0, 0, 0.06);
}

.bdu-page .bdu-screen--flat .bdu-work,
.bdu-page .bdu-screen--flat .bdu-work--fill {
  background: #f7f7f7;
}

.bdu-page .bdu-chrome {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bdu-page .bdu-dots {
  display: flex;
  gap: 5px;
}
.bdu-page .bdu-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e5e7eb;
}
.bdu-page .bdu-dots span:nth-child(1) { background: #ff5f57; }
.bdu-page .bdu-dots span:nth-child(2) { background: #febc2e; }
.bdu-page .bdu-dots span:nth-child(3) { background: #28c840; }

.bdu-page .bdu-chrome-title {
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.02em;
}

/* ----- Shared app shell ----- */
.bdu-page .bdu-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bdu-page .bdu-body:has(> .bdu-cp-app) {
  padding: 8px 10px 10px;
}

.bdu-page .bdu-body--split {
  flex-direction: row;
  padding: 0;
  overflow: hidden;
}

.bdu-page .bdu-side {
  width: 48px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #2d2640 0%, #1f1a2e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 6px;
}

.bdu-page .bdu-side-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #7b61ff, #b8a9ff);
  margin-bottom: 4px;
}

.bdu-page .bdu-side-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.bdu-page .bdu-side-ico.on {
  background: rgba(123, 97, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(123, 97, 255, 0.5);
}

.bdu-page .bdu-work {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(250, 248, 255, 0.9) 100%);
}

.bdu-page .bdu-work--fill {
  flex: 1;
  min-height: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(250, 248, 255, 0.9) 100%);
}

.bdu-page .bdu-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.bdu-page .bdu-topbar h3 {
  margin: 0;
  font-size: clamp(11px, 1.45vw, 13px);
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.bdu-page .bdu-pill {
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ede9f5;
  color: #5b21b6;
}

.bdu-page .bdu-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.bdu-page .bdu-chip {
  font-size: 9px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #4b5563;
}

.bdu-page .bdu-chip.accent {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #5b21b6;
}

/* ========== Find leads: filters + canonical ui-mockups search list ========== */
.bdu-page .bdu-ref-search-body {
  padding: 12px 14px 14px;
  gap: 12px;
  overflow: hidden;
}

.bdu-page .bdu-ref-search-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.bdu-page .bdu-ref-search-title {
  margin: 0;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.bdu-page .bdu-ref-search-sub {
  margin: 5px 0 0;
  font-size: clamp(10px, 1.25vw, 13px);
  line-height: 1.45;
  color: #666;
  max-width: 48ch;
}

.bdu-page .bdu-ref-results-pill {
  flex-shrink: 0;
  font-size: clamp(10px, 1.15vw, 12px);
  font-weight: 600;
  color: #5a4ab5;
  background: #e8e3ff;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(123, 97, 255, 0.15);
}

.bdu-page .bdu-ref-search-cols {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(152px, 0.36fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.bdu-page .bdu-ref-filters {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.bdu-page .bdu-ref-filters-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.bdu-page .bdu-ref-filters-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 700;
  color: #1a1a1a;
}

.bdu-page .bdu-ref-filters-ico {
  width: 16px;
  height: 16px;
  color: #7b61ff;
}

.bdu-page .bdu-ref-clear-link {
  border: 0;
  background: none;
  padding: 0;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 600;
  color: #7b61ff;
  cursor: default;
}

.bdu-page .bdu-ref-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bdu-page .bdu-ref-label {
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
}

.bdu-page .bdu-ref-input {
  min-height: 34px;
  padding: 6px 11px;
  border: none;
  border-radius: 12px;
  background: #f5f5f5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.bdu-page .bdu-ref-input--placeholder {
  font-size: clamp(10px, 1.1vw, 12px);
  color: #999;
  align-items: center;
}

.bdu-page .bdu-ref-tag {
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 600;
  color: #333;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bdu-page .bdu-ref-tag-x {
  color: #999;
  font-weight: 500;
  font-size: 12px;
}

.bdu-page .bdu-ref-seg {
  display: flex;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
}

.bdu-page .bdu-ref-seg-btn {
  flex: 1;
  text-align: center;
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 600;
  color: #666;
  padding: 8px 6px;
  border-right: 1px solid #e5e5e5;
  cursor: default;
}
.bdu-page .bdu-ref-seg-btn:last-child { border-right: 0; }
.bdu-page .bdu-ref-seg-btn.on {
  background: #ede9fe;
  color: #5a4ab5;
  box-shadow: inset 0 0 0 1px rgba(123, 97, 255, 0.35);
}

.bdu-page .bdu-ref-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  padding: 3px 0;
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 600;
  color: #7b61ff;
  cursor: default;
  align-self: flex-start;
}

.bdu-page .bdu-ref-clear-all {
  margin-top: auto;
  width: 100%;
  padding: 10px 12px;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 600;
  color: #333;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  cursor: default;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Embed: same markup/classes as ui-mockups.html Find leads */
.bdu-page .bdu-ref-results-mock {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.bdu-page .bdu-ref-mockup-search.mockup-search-wrap {
  max-width: none !important;
  width: 100% !important;
  flex: 1;
  min-height: 0;
  padding: clamp(10px, 1.5vw, 18px) !important;
  gap: clamp(10px, 1.4vw, 16px) !important;
}

.bdu-page .bdu-ref-mockup-search .mockup-search-main {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 16px);
}

.bdu-page .bdu-ref-mockup-search .mockup-search-results {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bdu-page .bdu-ref-col-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(92px, 0.42fr) minmax(80px, 0.36fr);
  align-items: center;
  gap: 8px;
  padding: 0 clamp(11px, 1.4vw, 16px) 6px;
  margin-top: -2px;
  font-size: clamp(9px, 1vw, 11px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  font-weight: 700;
}

.bdu-page .bdu-ref-col-head .bdu-ref-col-head-left {
  padding-left: 0;
}

.bdu-page .bdu-ref-mockup-search .mockup-search-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.bdu-page .bdu-ref-mockup-search .mockup-search-btn {
  animation: none !important;
  width: clamp(30px, 4.5vw, 36px) !important;
  height: clamp(30px, 4.5vw, 36px) !important;
  border-radius: 10px !important;
}
.bdu-page .bdu-ref-mockup-search .mockup-search-btn svg {
  width: clamp(16px, 2.2vw, 20px) !important;
  height: clamp(16px, 2.2vw, 20px) !important;
}

.bdu-page .bdu-ref-mockup-search .mockup-search-list-item {
  margin-bottom: clamp(5px, 0.9vw, 8px);
}
.bdu-page .bdu-ref-mockup-search .mockup-search-list-item:last-child {
  margin-bottom: 0;
}

.bdu-page .bdu-ref-mockup-search .mockup-search-list-name {
  font-size: clamp(11px, 1.35vw, 14px);
}

.bdu-page .bdu-ref-mockup-search .mockup-search-list-title {
  font-size: clamp(10px, 1.2vw, 13px);
}

.bdu-page .bdu-ref-mockup-search .mockup-search-count {
  display: none;
}

.bdu-page .bdu-ref-mockup-search .mockup-search-bar {
  padding: clamp(9px, 1.2vw, 12px) clamp(11px, 1.4vw, 16px);
}

.bdu-page .bdu-ref-mockup-search .mockup-search-bar input {
  font-size: clamp(11px, 1.35vw, 14px);
}

.bdu-page .bdu-ref-mockup-search .mockup-search-avatar {
  width: clamp(28px, 3.6vw, 32px) !important;
  height: clamp(28px, 3.6vw, 32px) !important;
}

.bdu-page .bdu-ref-mockup-search .mockup-search-list-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(92px, 0.42fr) minmax(80px, 0.36fr);
  align-items: center;
  gap: 8px;
}

.bdu-page .bdu-ref-lead-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bdu-page .bdu-ref-mockup-search .mockup-search-list-text {
  min-width: 0;
}

.bdu-page .bdu-ref-mockup-search .mockup-search-list-item {
  padding: clamp(10px, 1.3vw, 14px) clamp(11px, 1.4vw, 16px);
}

.bdu-page .bdu-ref-mockup-search .mockup-search-list-bar {
  min-height: clamp(36px, 5vw, 44px);
}

.bdu-page .bdu-ref-mockup-search .mockup-search-list-bar {
  display: none;
}

.bdu-page .bdu-ref-location {
  font-size: clamp(9px, 1.05vw, 11px);
  color: #6b7280;
  white-space: nowrap;
}

.bdu-page .bdu-ref-actions {
  justify-self: start;
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 700;
  color: #5b21b6;
  background: #ede9f5;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  padding: 4px 8px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Find leads mockup: flat rendering (no shadows) */
.bdu-page .bdu-screen--search-ref,
.bdu-page .bdu-ref-results-pill,
.bdu-page .bdu-ref-filters,
.bdu-page .bdu-ref-tag,
.bdu-page .bdu-ref-clear-all,
.bdu-page .bdu-ref-mockup-search.mockup-search-wrap,
.bdu-page .bdu-ref-mockup-search .mockup-search-list-item,
.bdu-page .bdu-ref-actions {
  box-shadow: none !important;
}

.bdu-page .bdu-ref-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.25;
}

.bdu-page .bdu-ref-premium-pill {
  flex-shrink: 0;
  font-size: clamp(9px, 1vw, 10px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a4ab5;
  background: #e8e3ff;
  border: 1px solid #c4b5fd;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1.2;
}

/* ========== Auto-pilot ========== */
.bdu-page .bdu-ap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bdu-page .bdu-ap-title {
  font-size: clamp(11px, 1.55vw, 14px);
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}
.bdu-page .bdu-ap-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(8px, 1vw, 10px);
  font-weight: 600;
  color: #166534;
  background: #dcfce7;
  padding: 5px 10px;
  border-radius: 999px;
}
.bdu-page .bdu-ap-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: bdu-pulse 1.5s ease-in-out infinite;
}
@keyframes bdu-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.bdu-page .bdu-ap-grid2 {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bdu-page .bdu-ap-queue {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.bdu-page .bdu-ap-queue h4 {
  margin: 0 0 2px;
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}
.bdu-page .bdu-ap-qbar {
  width: 4px;
  align-self: stretch;
  min-height: 36px;
  border-radius: 2px;
  background: #7b61ff;
  flex-shrink: 0;
}
.bdu-page .bdu-ap-qitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 8px;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #eee;
  font-size: clamp(9px, 1.1vw, 11px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.bdu-page .bdu-ap-qitem strong {
  display: block;
  color: #111827;
  font-weight: 600;
}
.bdu-page .bdu-ap-qitem > div > span {
  color: #9ca3af;
  font-size: clamp(8px, 0.95vw, 10px);
}
.bdu-page .bdu-ap-qtime {
  margin-left: auto;
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 600;
  color: #7b61ff;
  background: #ede9f5;
  padding: 3px 8px;
  border-radius: 6px;
}

.bdu-page .bdu-ap-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.bdu-page .bdu-ap-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.bdu-page .bdu-ap-mcard {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 10px 8px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.bdu-page .bdu-ap-mcard .lbl {
  font-size: clamp(8px, 0.95vw, 10px);
  color: #6b7280;
  font-weight: 500;
}
.bdu-page .bdu-ap-mcard .num {
  font-size: clamp(14px, 2.2vw, 18px);
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin-top: 2px;
}
.bdu-page .bdu-ap-maya-card {
  flex: 1;
  background: linear-gradient(135deg, #ede9f5 0%, #fff 100%);
  border-radius: 12px;
  border: 1px solid #e9e0ff;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 0;
  box-shadow: 0 4px 20px rgba(123, 97, 255, 0.08);
}
.bdu-page .bdu-ap-maya-av {
  width: clamp(32px, 4vw, 40px);
  height: clamp(32px, 4vw, 40px);
  border-radius: 10px;
  background: linear-gradient(135deg, #7b61ff, #a78bfa);
  color: #fff;
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bdu-page .bdu-ap-maya-card p {
  margin: 0;
  font-size: clamp(9px, 1.05vw, 11px);
  line-height: 1.45;
  color: #4b5563;
}
.bdu-page .bdu-ap-maya-card strong {
  color: #111827;
  font-size: clamp(10px, 1.1vw, 12px);
}

/* ========== Co-pilot ========== */
.bdu-page .bdu-cp-app {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr 0.95fr;
  gap: 10px;
}

.bdu-page .bdu-cp-threads {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.bdu-page .bdu-cp-threads-h {
  padding: 10px 12px;
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 700;
  color: #6b7280;
  border-bottom: 1px solid #f3f4f6;
}
.bdu-page .bdu-cp-titem {
  padding: 10px 12px;
  border-bottom: 1px solid #f9fafb;
  font-size: clamp(9px, 1.05vw, 11px);
}
.bdu-page .bdu-cp-titem.on {
  background: #f5f3ff;
  border-left: 3px solid #7b61ff;
}
.bdu-page .bdu-cp-titem .nm {
  font-weight: 600;
  color: #111827;
}
.bdu-page .bdu-cp-titem .snip {
  color: #9ca3af;
  font-size: clamp(8px, 0.95vw, 10px);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bdu-page .bdu-cp-conv {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.bdu-page .bdu-cp-conv-h {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bdu-page .bdu-cp-conv-h .mini {
  width: clamp(24px, 3vw, 28px);
  height: clamp(24px, 3vw, 28px);
  border-radius: 50%;
  background: linear-gradient(135deg, #93c5fd, #3b82f6);
}
.bdu-page .bdu-cp-conv-h .who {
  font-size: clamp(10px, 1.15vw, 12px);
  font-weight: 700;
  color: #111827;
}
.bdu-page .bdu-cp-conv-h .role {
  font-size: clamp(8px, 0.95vw, 10px);
  color: #9ca3af;
}
.bdu-page .bdu-cp-stream {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}
.bdu-page .bdu-cp-bubble {
  max-width: 88%;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: clamp(9px, 1.05vw, 11px);
  line-height: 1.45;
  color: #374151;
}
.bdu-page .bdu-cp-bubble.them {
  background: #f3f4f6;
  align-self: flex-start;
}
.bdu-page .bdu-cp-bubble.us {
  background: linear-gradient(135deg, #ede9f5, #e9d5ff);
  color: #4c1d95;
  align-self: flex-end;
}

.bdu-page .bdu-cp-maya {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.bdu-page .bdu-cp-maya-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 700;
  color: #7b61ff;
}
.bdu-page .bdu-cp-maya-h svg {
  width: 14px;
  height: 14px;
}
.bdu-page .bdu-cp-select {
  font-size: clamp(8px, 0.95vw, 10px);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  color: #4b5563;
  font-weight: 600;
}
.bdu-page .bdu-cp-tones {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.bdu-page .bdu-cp-tone {
  font-size: clamp(7px, 0.85vw, 9px);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #6b7280;
}
.bdu-page .bdu-cp-tone.on {
  background: #ede9f5;
  color: #5b21b6;
}
.bdu-page .bdu-cp-draft {
  flex: 1;
  min-height: 52px;
  font-size: clamp(9px, 1.05vw, 11px);
  line-height: 1.45;
  color: #374151;
  padding: 10px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px dashed #d1d5db;
}
.bdu-page .bdu-cp-btns {
  display: flex;
  gap: 6px;
}
.bdu-page .bdu-cp-btn {
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  border: none;
  cursor: default;
}
.bdu-page .bdu-cp-btn.pri {
  background: #7b61ff;
  color: #fff;
}
.bdu-page .bdu-cp-btn.sec {
  background: #f3f4f6;
  color: #374151;
}

/* ========== CRM ========== */
.bdu-page .bdu-crm-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 600;
  color: #92400e;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.12);
}
.bdu-page .bdu-crm-board {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.bdu-page .bdu-crm-col {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.bdu-page .bdu-crm-col h4 {
  margin: 0;
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bdu-page .bdu-crm-count {
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 700;
  color: #d1d5db;
}
.bdu-page .bdu-crm-card {
  background: #fafafa;
  border-radius: 10px;
  padding: 8px;
  border: 1px solid #eee;
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 600;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.bdu-page .bdu-crm-card span {
  display: block;
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 500;
  color: #9ca3af;
  margin-top: 3px;
}
.bdu-page .bdu-crm-card .fu {
  display: inline-block;
  margin-top: 5px;
  font-size: clamp(7px, 0.8vw, 8px);
  font-weight: 700;
  text-transform: uppercase;
  color: #b45309;
  background: #fef3c7;
  padding: 3px 6px;
  border-radius: 4px;
}

/* ========== Unified inbox ========== */
.bdu-page .bdu-inbox-bar-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bdu-page .bdu-inbox-acc {
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.bdu-page .bdu-inbox-acc.on {
  border-color: #7b61ff;
  background: #ede9f5;
  color: #5b21b6;
}

.bdu-page .bdu-inbox {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 0.95fr 1.35fr 0.75fr;
  gap: 10px;
}

.bdu-page .bdu-inbox-list {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.bdu-page .bdu-inbox-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: clamp(9px, 1.05vw, 11px);
}
.bdu-page .bdu-inbox-item.active {
  background: #f5f3ff;
}
.bdu-page .bdu-inbox-item .row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.bdu-page .bdu-inbox-item .row1 strong {
  font-weight: 700;
  color: #111827;
}
.bdu-page .bdu-inbox-item .acct {
  font-size: clamp(7px, 0.85vw, 9px);
  font-weight: 700;
  color: #7b61ff;
  background: #ede9f5;
  padding: 2px 6px;
  border-radius: 4px;
}
.bdu-page .bdu-inbox-item .prev {
  font-size: clamp(8px, 0.95vw, 10px);
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bdu-page .bdu-inbox-thread {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.bdu-page .bdu-inbox-thread .hdr {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: clamp(10px, 1.15vw, 12px);
  font-weight: 700;
  color: #111827;
}
.bdu-page .bdu-inbox-msgs {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bdu-page .bdu-inbox-msgs .msg {
  font-size: clamp(9px, 1.05vw, 11px);
  line-height: 1.45;
  padding: 9px 11px;
  border-radius: 12px;
  max-width: 90%;
}
.bdu-page .bdu-inbox-msgs .msg.in {
  background: #f3f4f6;
  align-self: flex-start;
  color: #374151;
}
.bdu-page .bdu-inbox-msgs .msg.out {
  background: #ede9f5;
  align-self: flex-end;
  color: #4c1d95;
}
.bdu-page .bdu-inbox-compose {
  padding: 10px 12px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  gap: 8px;
  align-items: center;
}
.bdu-page .bdu-inbox-compose .field {
  flex: 1;
  height: clamp(30px, 4vw, 34px);
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
}
.bdu-page .bdu-inbox-compose .sched {
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 700;
  color: #5b21b6;
  white-space: nowrap;
}

.bdu-page .bdu-inbox-side {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 10px;
  font-size: clamp(8px, 0.95vw, 10px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.bdu-page .bdu-inbox-side h5 {
  margin: 0;
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 800;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.05em;
}
.bdu-page .bdu-inbox-side .slot {
  padding: 8px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px dashed #e5e7eb;
  color: #6b7280;
  font-weight: 600;
  text-align: center;
}

/* ========== Multiple senders ========== */
.bdu-page .bdu-ms-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.bdu-page .bdu-ms-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.bdu-page .bdu-ms-card .av {
  width: clamp(30px, 3.8vw, 36px);
  height: clamp(30px, 3.8vw, 36px);
  border-radius: 50%;
  border: 2px solid #f3f4f6;
}
.bdu-page .bdu-ms-card:nth-child(1) .av {
  background: linear-gradient(135deg, #ddd6fe, #a78bfa);
}
.bdu-page .bdu-ms-card:nth-child(2) .av {
  background: linear-gradient(135deg, #bfdbfe, #60a5fa);
}
.bdu-page .bdu-ms-card:nth-child(3) .av {
  background: linear-gradient(135deg, #bbf7d0, #4ade80);
}
.bdu-page .bdu-ms-card:nth-child(4) .av {
  background: linear-gradient(135deg, #fecaca, #f87171);
}
.bdu-page .bdu-ms-card .nm {
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 700;
  color: #111827;
}
.bdu-page .bdu-ms-card .lim {
  font-size: clamp(7px, 0.85vw, 9px);
  color: #9ca3af;
}
.bdu-page .bdu-ms-bar-wrap {
  width: 100%;
  height: 4px;
  background: #f3f4f6;
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.bdu-page .bdu-ms-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #7b61ff, #a78bfa);
}
.bdu-page .bdu-ms-card:nth-child(1) .bdu-ms-bar-fill { width: 72%; }
.bdu-page .bdu-ms-card:nth-child(2) .bdu-ms-bar-fill { width: 55%; }
.bdu-page .bdu-ms-card:nth-child(3) .bdu-ms-bar-fill { width: 88%; }
.bdu-page .bdu-ms-card:nth-child(4) .bdu-ms-bar-fill { width: 40%; }

.bdu-page .bdu-ms-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.bdu-page .bdu-ms-foot .lbl {
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 700;
  color: #111827;
}
.bdu-page .bdu-ms-foot .sub {
  font-size: clamp(8px, 0.95vw, 10px);
  color: #6b7280;
}
.bdu-page .bdu-ms-foot .badge {
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 5px 10px;
  border-radius: 999px;
}

.bdu-page .bdu-ms-viz {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  height: 52px;
  padding: 0 4px;
}
.bdu-page .bdu-ms-vbar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #c4b5fd, #7b61ff);
  opacity: 0.85;
  max-width: 14px;
  margin: 0 auto;
}
.bdu-page .bdu-ms-vbar:nth-child(1) { height: 40%; }
.bdu-page .bdu-ms-vbar:nth-child(2) { height: 65%; }
.bdu-page .bdu-ms-vbar:nth-child(3) { height: 50%; }
.bdu-page .bdu-ms-vbar:nth-child(4) { height: 78%; }
.bdu-page .bdu-ms-vbar:nth-child(5) { height: 58%; }
.bdu-page .bdu-ms-vbar:nth-child(6) { height: 70%; }
.bdu-page .bdu-ms-vbar:nth-child(7) { height: 45%; }

/* ========== Integrations ========== */
.bdu-page .bdu-int-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 8px;
}
.bdu-page .bdu-int-list {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.bdu-page .bdu-int-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fafafa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.bdu-page .bdu-int-ico {
  width: clamp(30px, 3.8vw, 36px);
  height: clamp(30px, 3.8vw, 36px);
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 800;
  color: #374151;
  flex-shrink: 0;
}
.bdu-page .bdu-int-ico.flow {
  background: linear-gradient(135deg, #7b61ff, #9f8fff);
  color: #fff;
  border: 0;
}
.bdu-page .bdu-int-meta {
  flex: 1;
  min-width: 0;
}
.bdu-page .bdu-int-meta strong {
  display: block;
  font-size: clamp(10px, 1.15vw, 12px);
  color: #111827;
}
.bdu-page .bdu-int-meta span {
  font-size: clamp(8px, 0.95vw, 10px);
  color: #9ca3af;
}
.bdu-page .bdu-int-toggle {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #7b61ff;
  flex-shrink: 0;
  position: relative;
}
.bdu-page .bdu-int-toggle::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  right: 2px;
}
.bdu-page .bdu-int-toggle.off {
  background: #e5e7eb;
}
.bdu-page .bdu-int-toggle.off::after {
  right: auto;
  left: 2px;
}

.bdu-page .bdu-int-webhook {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.bdu-page .bdu-int-webhook h5 {
  margin: 0;
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 800;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.05em;
}
.bdu-page .bdu-int-url {
  font-size: clamp(8px, 0.9vw, 10px);
  font-family: ui-monospace, monospace;
  padding: 10px;
  background: #1f2937;
  color: #a7f3d0;
  border-radius: 8px;
  word-break: break-all;
}
.bdu-page .bdu-int-log {
  flex: 1;
  min-height: 0;
  font-size: clamp(7px, 0.8vw, 9px);
  font-family: ui-monospace, monospace;
  color: #6b7280;
  line-height: 1.5;
  padding: 8px;
  background: #f9fafb;
  border-radius: 8px;
  overflow: hidden;
}

/* ========== Analytics ========== */
.bdu-page .bdu-an-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex-shrink: 0;
}
.bdu-page .bdu-an-kpi {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 10px 10px 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.bdu-page .bdu-an-kpi .k {
  font-size: clamp(7px, 0.85vw, 9px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}
.bdu-page .bdu-an-kpi .v {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 800;
  color: #111827;
  margin-top: 2px;
}
.bdu-page .bdu-an-kpi .d {
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 700;
  color: #16a34a;
  margin-top: 2px;
}

.bdu-page .bdu-an-mid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bdu-page .bdu-an-funnel {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.bdu-page .bdu-an-funnel .step {
  text-align: center;
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 700;
  color: #fff;
  border-radius: 6px;
  padding: 6px 0;
}
.bdu-page .bdu-an-funnel .step:nth-child(1) {
  width: 88%;
  background: linear-gradient(90deg, #a78bfa, #7b61ff);
}
.bdu-page .bdu-an-funnel .step:nth-child(2) {
  width: 68%;
  background: linear-gradient(90deg, #8b5cf6, #6d28d9);
}
.bdu-page .bdu-an-funnel .step:nth-child(3) {
  width: 48%;
  background: linear-gradient(90deg, #7c3aed, #5b21b6);
}
.bdu-page .bdu-an-funnel .step:nth-child(4) {
  width: 30%;
  background: linear-gradient(90deg, #5b21b6, #4c1d95);
}
.bdu-page .bdu-an-funnel-cap {
  font-size: clamp(8px, 0.95vw, 10px);
  color: #6b7280;
  margin-top: 4px;
  text-align: center;
}

.bdu-page .bdu-an-chartbox {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.bdu-page .bdu-an-chartbox h5 {
  margin: 0 0 6px;
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 800;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.05em;
}
.bdu-page .bdu-an-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  padding: 0 2px;
  min-height: 70px;
}
.bdu-page .bdu-an-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  height: 100%;
}
.bdu-page .bdu-an-col .bar {
  width: 100%;
  max-width: 22px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #7b61ff, #ddd6fe);
}
.bdu-page .bdu-an-col:nth-child(1) .bar { height: 40px; }
.bdu-page .bdu-an-col:nth-child(2) .bar { height: 58px; }
.bdu-page .bdu-an-col:nth-child(3) .bar { height: 46px; }
.bdu-page .bdu-an-col:nth-child(4) .bar { height: 72px; }
.bdu-page .bdu-an-col:nth-child(5) .bar { height: 52px; }
.bdu-page .bdu-an-col:nth-child(6) .bar { height: 64px; }
.bdu-page .bdu-an-col .lbl {
  font-size: clamp(7px, 0.85vw, 9px);
  color: #9ca3af;
  font-weight: 600;
}

.bdu-page .bdu-an-table {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  font-size: clamp(8px, 0.95vw, 10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.bdu-page .bdu-an-trh {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 0.5fr 0.5fr;
  gap: 6px;
  padding: 8px 12px;
  background: #f9fafb;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
}
.bdu-page .bdu-an-tr {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 0.5fr 0.5fr;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid #f3f4f6;
  color: #374151;
  font-weight: 600;
}
.bdu-page .bdu-an-tr span.ok {
  color: #16a34a;
}
