/* ═══════════════ dashboard replica (from dashboard-client / dashboard-admin) ═══════════════ */

.db-shell {
  display: flex; height: 584px; background: #fff;
  font-family: var(--font); font-size: 13px; color: #1c1c1c; text-align: left;
}

/* ── icons (masked SVG, colored via currentColor) ── */
.dbi {
  width: 16px; height: 16px; display: inline-block; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.dbi.sm { width: 14px; height: 14px; }
.dbi-home   { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10.5 12 3l9 7.5V21h-6v-6h-6v6H3z'/></svg>"); }
.dbi-chat   { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>"); }
.dbi-users  { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/><circle cx='9' cy='7' r='4'/><path d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/></svg>"); }
.dbi-chart  { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M18 20V10M12 20V4M6 20v-6'/></svg>"); }
.dbi-gear   { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09a1.65 1.65 0 0 0-1-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09a1.65 1.65 0 0 0 1.51-1 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33h0a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51h0a1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82v0a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/></svg>"); }
.dbi-mail   { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='m22 7-10 6L2 7'/></svg>"); }
.dbi-phone  { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/></svg>"); }
.dbi-pin    { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 0 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>"); }
.dbi-device { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='3' width='20' height='14' rx='2'/><path d='M8 21h8M12 17v4'/></svg>"); }
.dbi-clock  { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 6v6l4 2'/></svg>"); }
.dbi-page   { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><path d='M14 2v6h6'/></svg>"); }

/* ── sidebar ── */
.db-side {
  width: 188px; flex: 0 0 188px; background: #f1f1f1; border-right: 1px solid #e5e5e5;
  display: flex; flex-direction: column; padding: 0 8px 10px;
}
.db-brand {
  height: 52px; display: flex; align-items: center; gap: 9px; padding: 0 6px;
  border-bottom: 1px solid rgba(28, 28, 28, 0.1); margin-bottom: 8px;
}
.db-brand img { width: 26px; height: 26px; border-radius: 7px; }
.db-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.db-brand strong { font-size: 12.5px; font-weight: 600; letter-spacing: -0.02em; }
.db-brand small { font-size: 9.5px; color: #828282; }
.db-nav {
  height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 10px;
  border-radius: 8px; font-size: 12.5px; color: #6b6f76; margin-bottom: 2px;
  cursor: default;
}
.db-nav .dbi { width: 15px; height: 15px; }
.db-nav.active { background: #1772e8; color: #fff; font-weight: 500; }
.db-side-foot {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  padding: 10px 6px 0; border-top: 1px solid rgba(28, 28, 28, 0.1);
}
.db-online { width: 8px; height: 8px; border-radius: 50%; background: #00c16e; flex: 0 0 8px; }
.db-side-foot span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.db-side-foot strong { font-size: 11.5px; font-weight: 600; }
.db-side-foot small { font-size: 9.5px; color: #828282; }

/* ── main area ── */
.db-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.db-main.db-cols { flex-direction: row; }
.db-main.pad { padding: 18px 20px; overflow: hidden; }
.db-main.pad.wide { padding: 18px 26px; }

.db-colhead {
  height: 48px; flex: 0 0 48px; display: flex; align-items: center; gap: 9px;
  padding: 0 12px; border-bottom: 1px solid #e5e5e5;
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
}
.db-chip {
  width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center;
  background: rgba(23, 114, 232, 0.1); border: 1.4px solid #1772e8; color: #1772e8;
  flex: 0 0 auto;
}
.db-chip.lg { width: 34px; height: 34px; border-radius: 9px; }
.db-dh-name { display: flex; flex-direction: column; line-height: 1.25; }
.db-dh-name small { font-size: 10px; font-weight: 400; color: #828282; }

/* conversation / lead list */
.db-list {
  width: 236px; flex: 0 0 236px; border-right: 1px solid #e5e5e5;
  display: flex; flex-direction: column;
}
.db-convcards { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.db-conv {
  position: relative; border: 1px solid #e5e5e5; border-radius: 8px; padding: 10px 11px;
  display: flex; flex-direction: column; gap: 3px; background: #fff;
}
.db-conv.sel { background: rgba(23, 114, 232, 0.12); border-color: transparent; }
.db-conv strong { font-size: 12px; font-weight: 600; letter-spacing: -0.01em; padding-right: 40px; }
.db-conv small {
  font-size: 11px; color: #828282;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.db-conv time { position: absolute; top: 10px; right: 11px; font-size: 9.5px; font-weight: 500; color: #828282; }
.db-unread { position: absolute; top: 14px; left: 11px; width: 7px; height: 7px; border-radius: 50%; background: #1772e8; }
.db-conv:has(.db-unread) strong { padding-left: 13px; }

/* transcript */
.db-detail { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.db-msgs { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.db-msgs.dim { opacity: 0.92; }
.db-divider {
  display: flex; align-items: center; gap: 10px; color: #828282;
}
.db-divider::before, .db-divider::after { content: ""; flex: 1; height: 1px; background: #e5e5e5; }
.db-divider span {
  font-size: 10px; font-weight: 500; background: #f1f1f1; padding: 3px 9px; border-radius: 5px;
  white-space: nowrap;
}
.db-divider.green span { background: #d1fae5; color: #065f46; }
.db-row { display: flex; gap: 9px; max-width: 88%; }
.db-row.ai { flex-direction: row-reverse; align-self: flex-end; text-align: right; }
.db-row.ai .db-bubble { text-align: left; }
.db-ava {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 30px;
}
.db-ava.u { background: #f1f1f1; }
.db-ava.a { background: #1772e8; border: 1px solid #125be3; }
.db-ava.op { background: #10b981; color: #fff; font-size: 10px; font-weight: 700; }
.db-mname { font-size: 11.5px; font-weight: 600; margin-bottom: 3px; }
.db-mname small { font-size: 9.5px; font-weight: 400; color: #828282; margin-left: 4px; }
.db-bubble {
  display: inline-block; border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.45;
}
.db-bubble.u { background: rgba(23, 114, 232, 0.1); }
.db-bubble.a { border: 1px solid #e5e5e5; background: #fff; }

.db-livepill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  background: #10b981; color: #fff; font-size: 10.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.db-livepill i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: db-pulse 1.4s infinite; }
@keyframes db-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* status chips pop in place (state change), they don't rise like content */
.db-livepill[data-beat], .db-badge[data-beat] { transform: scale(0.82); }
.db-livepill[data-beat].on, .db-badge[data-beat].on { transform: none; }

.db-profilebtn {
  margin-left: auto; font-size: 11px; font-weight: 500; padding: 5px 12px;
  border-radius: 7px; border: 1px solid #e5e5e5; color: #828282;
}
.db-profilebtn.on { background: #e8f1fd; border-color: #1772e8; color: #1772e8; }

.db-opinput {
  flex: 0 0 auto; border-top: 1px solid #e5e5e5; background: #f7f8fa;
  padding: 10px 12px; display: flex; align-items: center; gap: 10px;
}
.db-opinput > span:first-child {
  flex: 1; background: #fff; border: 1px solid #e5e5e5; border-radius: 8px;
  padding: 9px 12px; font-size: 12px; color: #9aa0a8;
}
.db-sendbtn {
  width: 34px; height: 34px; border-radius: 8px; background: #1772e8;
  display: grid; place-items: center;
}

/* takeover modal */
.db-modal-backdrop {
  position: absolute; inset: 36px 0 0 0; z-index: 10;
  background: rgba(0, 0, 0, 0.62); display: grid; place-items: center;
}
.db-modal-backdrop[data-beat] { transform: none; }
.db-modal {
  width: 330px; background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.94); transition: transform 0.45s var(--ease);
}
.db-modal-backdrop.on .db-modal { transform: scale(1); }
.db-modal-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.db-modal-sub { font-size: 12px; color: #828282; margin: 4px 0 12px; }
.db-modal-summary {
  background: rgba(23, 114, 232, 0.05); border: 1px solid rgba(23, 114, 232, 0.2);
  border-radius: 8px; padding: 10px; font-size: 11.5px; line-height: 1.5; color: #4b5563;
  margin-bottom: 14px;
}
.db-modal-btns { display: flex; gap: 10px; margin-bottom: 14px; }
.db-modal-btns span {
  flex: 1; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.db-accept { background: #10b981; color: #fff; }
.db-accept:hover { background: #059669; }
.db-decline { border: 1px solid #ef4444; color: #ef4444; background: #fff; }
.db-modal-bar { height: 6px; background: #f1f1f1; border-radius: 999px; overflow: hidden; }
.db-modal-bar i {
  display: block; height: 100%; width: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #1772e8, #125be3);
}
.db-modal-backdrop.on .db-modal-bar i { animation: db-shrink 9s linear forwards; }
@keyframes db-shrink { from { width: 100%; } to { width: 6%; } }

/* leads detail */
.db-detail.pad .db-leadbody { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.db-h6 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #828282; }
.db-contact {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid #e5e5e5; border-radius: 8px; padding: 10px 12px;
}
.db-contact .db-chip { width: 32px; height: 32px; border-radius: 8px; border-width: 0; }
.db-contact span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.db-contact small { font-size: 10px; color: #828282; }
.db-contact strong { font-size: 12.5px; font-weight: 600; color: #1772e8; }
.db-context {
  border: 1px solid #e5e5e5; background: #f7f8fa; border-radius: 8px;
  padding: 12px; font-size: 12px; line-height: 1.55; color: #4b5563;
}
.db-viewconv {
  align-self: flex-start; font-size: 12px; font-weight: 600; color: #1772e8;
  border: 1px solid #1772e8; background: rgba(23, 114, 232, 0.05);
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
}

/* visitor profile panel */
.db-profile {
  width: 252px; flex: 0 0 252px; border-left: 1px solid #e5e5e5; background: #fbfcfd;
  padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.db-profile[data-beat] { transform: translateX(30px); }
.db-profile[data-beat].on { transform: none; }
.db-pf-head {
  display: grid; grid-template-columns: 38px 1fr; gap: 4px 10px; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid #e5e5e5;
}
.db-pf-ava {
  width: 38px; height: 38px; border-radius: 10px; background: #e8f1fd; color: #1772e8;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; grid-row: span 2;
}
.db-pf-head strong { font-size: 13px; letter-spacing: -0.01em; }
.db-pf-head small { font-size: 10.5px; color: #828282; display: block; }
.db-pf-head span:nth-child(2) { line-height: 1.3; }
.db-badge {
  grid-column: 2; justify-self: start;
  font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-top: 2px;
}
.db-badge.q { background: #d1fae5; color: #065f46; }
.db-pf-row { display: flex; gap: 10px; align-items: flex-start; color: #828282; }
.db-pf-row .dbi { margin-top: 2px; }
.db-pf-row span { display: flex; flex-direction: column; line-height: 1.35; }
.db-pf-row small { font-size: 10px; }
.db-pf-row strong { font-size: 12px; color: #1c1c1c; font-weight: 600; }
.db-pf-conv {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid #e5e5e5; border-radius: 8px; padding: 8px 11px; background: #fff;
}
.db-pf-conv strong { font-size: 11.5px; font-weight: 500; }
.db-pf-conv time { font-size: 10px; color: #828282; }

/* overview / analytics */
.db-pagetitle { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 14px; }
.db-pagetitle small { display: block; font-size: 12px; font-weight: 400; color: #828282; margin-top: 3px; }
.db-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.db-kpi {
  border: 1px solid #e5e5e5; border-radius: 10px; padding: 11px 13px; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  display: flex; flex-direction: column; gap: 2px;
}
.db-kpi small { font-size: 11px; font-weight: 500; color: #828282; }
.db-kpi strong { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.db-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.db-chart {
  border: 1px solid #e5e5e5; border-radius: 10px; padding: 12px 14px; background: #fff;
}
.db-chart .db-h6 { margin-bottom: 10px; }
.db-line { width: 100%; height: 120px; display: block; }
.db-line .grid line { stroke: #eceef1; stroke-dasharray: 3 3; }
.db-line .area { fill: rgba(23, 114, 232, 0.09); opacity: 0; transition: opacity 0.8s ease 0.6s; }
.db-line .draw {
  fill: none; stroke: #1772e8; stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.on .db-line .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s ease-out 0.1s; }
.on .db-line .area { opacity: 1; }
.db-bars { display: flex; align-items: flex-end; gap: 7px; height: 120px; }
.db-bars i {
  flex: 1; background: #10b981; border-radius: 4px 4px 0 0;
  height: calc(var(--v) * 100%); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.7s var(--ease);
}
.on .db-bars i { transform: scaleY(1); }
.on .db-bars i:nth-child(2)  { transition-delay: 0.05s; }
.on .db-bars i:nth-child(3)  { transition-delay: 0.1s; }
.on .db-bars i:nth-child(4)  { transition-delay: 0.15s; }
.on .db-bars i:nth-child(5)  { transition-delay: 0.2s; }
.on .db-bars i:nth-child(6)  { transition-delay: 0.25s; }
.on .db-bars i:nth-child(7)  { transition-delay: 0.3s; }
.on .db-bars i:nth-child(8)  { transition-delay: 0.35s; }
.on .db-bars i:nth-child(9)  { transition-delay: 0.4s; }
.on .db-bars i:nth-child(10) { transition-delay: 0.45s; }

/* tables (missed opportunities, catalog sync) */
.db-card { border: 1px solid #e5e5e5; border-radius: 12px; background: #fff; overflow: hidden; }
.db-tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid #e5e5e5; }
.db-tabs span {
  font-size: 12px; font-weight: 500; color: #828282; padding: 7px 12px;
  border-radius: 8px 8px 0 0;
}
.db-tabs span.on { color: #1772e8; border-bottom: 2px solid #1772e8; font-weight: 600; }
.db-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.db-table th {
  text-align: left; font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: #828282; padding: 10px 14px; border-bottom: 1px solid #e5e5e5;
}
.db-table td { padding: 11px 14px; border-bottom: 1px solid #f1f1f1; }
.db-table tr.hl td { background: rgba(23, 114, 232, 0.05); }
.db-table td:first-child { font-weight: 500; }
.db-table.sync { border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden; margin: 8px 0 12px; font-size: 12px; }
.db-table.sync td { position: relative; }

.pill {
  display: inline-block; font-size: 10.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.pill.green { background: #dcfce7; color: #166534; }
.pill.amber { background: #fef3c7; color: #92400e; }
.pill.blue  { background: #dbeafe; color: #1e40af; }
.pill.over { position: absolute; left: 14px; top: 50%; margin-top: -10px; }

/* catalog sync banner */
.db-syncbanner {
  border: 1px solid #fcd34d; background: #fffbeb; border-radius: 10px;
  padding: 13px 15px; margin-bottom: 14px;
}
.db-sb-title { font-size: 13px; font-weight: 700; color: #92400e; }
.db-sb-stats { font-size: 12px; color: #92400e; margin: 5px 0 3px; }
.db-sb-stats strong { color: #78350f; }
.db-sb-note { font-size: 11px; color: #a16207; margin-bottom: 10px; }
.db-sb-btns { display: flex; gap: 8px; }
.db-confirm {
  background: #1772e8; color: #fff; font-size: 12px; font-weight: 600;
  padding: 7px 14px; border-radius: 7px; cursor: pointer;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.db-confirm.on { box-shadow: 0 0 0 4px rgba(23, 114, 232, 0.25); transform: translateY(-1px); }
.db-dismiss {
  border: 1px solid #e5e5e5; background: #fff; color: #4b5563; font-size: 12px; font-weight: 500;
  padding: 7px 14px; border-radius: 7px; cursor: pointer;
}
.db-syncopts { display: flex; flex-wrap: wrap; gap: 7px; }
.db-syncopts .opt {
  font-size: 11px; font-weight: 500; padding: 5px 11px; border-radius: 999px;
  border: 1px solid #e5e5e5; color: #828282; background: #fff;
}
.db-syncopts .opt.on { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.db-syncopts .opt em { font-style: normal; opacity: 0.75; }

/* missed-opps drawer */
.db-drawer {
  position: absolute; top: 36px; right: 0; bottom: 0; width: 296px; z-index: 8;
  background: #fff; border-left: 1px solid #e5e5e5;
  box-shadow: -24px 0 48px rgba(9, 36, 71, 0.14);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 9px;
  text-align: left; font-size: 13px;
}
.db-drawer[data-beat] { transform: translateX(60px); }
.db-drawer[data-beat].on { transform: none; }
.db-drawer-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.db-drawer-sub { font-size: 11px; color: #828282; margin-bottom: 6px; }
.db-query {
  background: #f7f8fa; border: 1px solid #eef0f3; border-radius: 8px;
  padding: 9px 11px; font-size: 11.5px; line-height: 1.45; color: #374151;
}
.db-query span { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 600; color: #1772e8; }
.db-ghost { font-size: 11.5px; font-weight: 600; color: #828282; padding: 6px 2px; }

/* ── email mock ── */
.email {
  width: 560px; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(9, 36, 71, 0.2), 0 8px 26px rgba(9, 36, 71, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.07); text-align: left;
  font-family: var(--font);
}
.email-head { padding: 16px 20px; border-bottom: 1px solid #eceef1; background: #fafbfc; }
.email-from { font-size: 12px; color: #4b5563; }
.email-subj { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; margin: 5px 0 3px; }
.email-meta { font-size: 11px; color: #9aa0a8; }
.email-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.email-banner {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(125deg, #092447 0%, #1772e8 100%);
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  border-radius: 10px; padding: 14px 16px;
}
.email-banner img { height: 20px; width: auto; }
.email-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.email-stat {
  border: 1px solid #e5e5e5; border-radius: 10px; padding: 12px;
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
}
.email-stat strong { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.email-stat small { font-size: 10.5px; color: #828282; }
.email-block { border: 1px solid #e5e5e5; border-radius: 10px; padding: 13px 15px; }
.email-block .db-h6 { margin-bottom: 8px; }
.email-li { font-size: 12.5px; color: #374151; padding: 3px 0; }
.email-block.tip { background: #f0f7ff; border-color: #cfe3fb; font-size: 12.5px; line-height: 1.55; color: #1e3a5f; }

/* ── store → widget flow mock ── */
.flow {
  width: 560px; display: flex; flex-direction: column; gap: 12px;
  text-align: left; font-family: var(--font);
}
.flow-card {
  background: #fff; border: 1px solid rgba(0, 0, 0, 0.07); border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 24px 60px rgba(9, 36, 71, 0.14), 0 6px 18px rgba(9, 36, 71, 0.08);
}
.flow-head {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: #828282; display: flex; align-items: center; gap: 7px; margin-bottom: 12px;
}
.flow-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.flow-dot.woo { background: #7f54b3; }
.flow-dot.chat { background: #1772e8; }
.woo-row { display: flex; align-items: center; gap: 11px; }
.woo-row .w-thumb { width: 40px; height: 40px; flex: 0 0 40px; }
.woo-name { display: flex; flex-direction: column; line-height: 1.35; flex: 1; min-width: 0; }
.woo-name strong { font-size: 14px; letter-spacing: -0.01em; }
.woo-name small { font-size: 11.5px; color: #828282; }
.flow-link { display: flex; align-items: center; gap: 9px; padding: 0 8px; }
.flow-arrow { font-size: 16px; color: #1772e8; font-weight: 700; }
.flow-label { font-size: 12.5px; font-weight: 500; color: #4b5563; }
.flow-card.chat { display: flex; flex-direction: column; gap: 10px; }
.flow-card.chat .flow-head { margin-bottom: 2px; }
.flow-card.chat .w-msg.user { align-self: flex-end; }

/* ── missed-sales mock ── */
.money {
  width: 620px; background: #fff; border-radius: 18px; padding: 26px 30px;
  box-shadow: 0 40px 90px rgba(9, 36, 71, 0.18), 0 8px 26px rgba(9, 36, 71, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06); text-align: left; font-family: var(--font);
  display: flex; flex-direction: column; gap: 16px;
}
.money-kicker {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: #828282;
}
.money-line { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: #1c1c1c; line-height: 1.4; }
.money-line strong { font-weight: 800; }
.money-line.sub { font-size: 15px; font-weight: 500; color: #4b5563; margin-top: 2px; }
.money-value {
  margin-top: 12px; font-size: 40px; font-weight: 800; letter-spacing: -0.03em;
  color: #dc2626; font-variant-numeric: tabular-nums;
}
.money-value small { font-size: 14px; font-weight: 600; color: #828282; letter-spacing: 0; margin-left: 8px; }
.money-rows { display: flex; flex-direction: column; gap: 8px; }
.money-row {
  display: flex; align-items: baseline; gap: 10px;
  border: 1px solid #eef0f3; background: #fcfdfe; border-radius: 10px;
  padding: 10px 14px; font-size: 13px;
}
.money-row span { font-weight: 600; }
.money-row small { color: #828282; font-size: 12px; }
.money-row em { margin-left: auto; font-style: normal; font-weight: 700; color: #1c1c1c; }
.money-foot {
  font-size: 12.5px; color: #1e3a5f; background: #f0f7ff; border: 1px solid #cfe3fb;
  border-radius: 10px; padding: 11px 14px; line-height: 1.5;
}

/* ── onboarding mock ── */
.onb {
  width: 620px; background: #fff; border-radius: 18px; padding: 26px 30px;
  box-shadow: 0 40px 90px rgba(9, 36, 71, 0.18), 0 8px 26px rgba(9, 36, 71, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06); text-align: left;
}
.onb-title { font-size: 19px; font-weight: 750; letter-spacing: -0.02em; }
.onb-sub { font-size: 12.5px; color: #828282; margin: 4px 0 18px; }
.onb-steps { display: flex; flex-direction: column; gap: 9px; }
.onb-step {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid #eef0f3; border-radius: 11px; padding: 11px 14px; background: #fcfdfe;
}
.onb-step.live { border-color: rgba(23, 114, 232, 0.4); background: #f4f9ff; }
.onb-check {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px;
  background: #d1fae5; color: #059669; font-size: 13px; font-weight: 800;
  display: grid; place-items: center;
}
.onb-check.live { background: #e8f1fd; }
.onb-step span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.onb-step strong { font-size: 13.5px; letter-spacing: -0.01em; }
.onb-step small { font-size: 11.5px; color: #828282; }
.onb-done {
  margin-top: 14px; border-radius: 11px; padding: 13px 16px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5); border: 1px solid #a7f3d0;
  font-size: 13.5px; color: #065f46;
}
