.bp-embed {
  color-scheme: dark;
  isolation: isolate;
  --bpe-violet: #8b5cf6;
  --bpe-indigo: #6366f1;
  --bpe-text: #e2e8f0;
  --bpe-muted: #94a3b8;
  --bpe-dim: #64748b;
  box-sizing: border-box;
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  background: #08090d !important;
  color: var(--bpe-text) !important;
  border-radius: 20px;
  padding: 6px;
  margin: 2rem auto 2.25rem;
  border: 1px solid rgba(255, 255, 255, .08);
  max-width: 640px;
  text-align: left;
}
.bp-embed *,
.bp-embed *::before,
.bp-embed *::after { box-sizing: border-box; }
.bp-embed button,
.bp-embed input,
.bp-embed a,
.bp-embed p,
.bp-embed h3,
.bp-embed h4,
.bp-embed h5,
.bp-embed li {
  font-family: inherit;
  color: inherit;
}
.bp-embed button { appearance: none; -webkit-appearance: none; }
.bp-embed .hidden { display: none !important; }
.bp-embed-card {
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  overflow: hidden;
}
.bp-embed-tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(2, 6, 23, .55);
  border-radius: 12px;
  margin: 6px 6px 0;
}
.bp-embed-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.bp-embed-tab.active {
  background: rgba(99, 102, 241, .2);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, .4);
}
.bp-embed-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0;
}
.bp-embed-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, .7);
  background: transparent;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.bp-embed-pill.active {
  background: rgba(99, 102, 241, .2);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, .5);
}
.bp-embed-target {
  align-items: center;
}
.bp-embed-target-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  width: 100%;
}
.bp-embed .bp-choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-embed .bp-choice-chip {
  appearance: none;
  -webkit-appearance: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, .7);
  background: rgba(2, 6, 23, .55);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.bp-embed .bp-choice-chip.active {
  background: rgba(99, 102, 241, .2);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, .5);
}
.bp-embed-body { padding: 16px 16px 20px; }
.bp-embed-drop {
  border: 2px dashed rgba(100, 116, 139, .35);
  border-radius: 16px;
  background: rgba(2, 6, 23, .4);
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.bp-embed-drop:hover,
.bp-embed-drop.drag-over {
  border-color: rgba(99, 102, 241, .6);
  background: rgba(99, 102, 241, .05);
}
.bp-embed-drop.locked {
  opacity: .5;
  pointer-events: none;
}
.bp-embed-cloud {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: #64748b;
}
.bp-embed-drop-title {
  margin: 0 0 4px;
  font-size: .875rem;
  font-weight: 600;
  color: #cbd5e1;
}
.bp-embed-drop-title span { color: #a78bfa; }
.bp-embed-drop-sub {
  margin: 0 0 16px;
  font-size: .75rem;
  color: #64748b;
}
.bp-embed-free {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .22);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
}
.bp-embed-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}
.bp-embed-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #475569;
}
.bp-embed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bp-embed-thumb button {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  cursor: pointer;
}
.bp-embed-thumb span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 9px;
  color: #fff;
  background: rgba(0, 0, 0, .6);
  padding: 1px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bp-embed-analyze {
  display: none;
  margin: 16px auto 0;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  background: #334155;
  color: #fff;
  font-size: .875rem;
  font-weight: 800;
  cursor: not-allowed;
  opacity: .45;
  align-items: center;
  gap: 8px;
}
.bp-embed-analyze.show { display: inline-flex; }
.bp-embed-analyze.ready {
  background: linear-gradient(to right, #7c3aed, #4f46e5);
  opacity: 1;
  cursor: pointer;
}
.bp-embed-msg {
  margin: 8px 0 0;
  font-size: .75rem;
  color: #fb7185;
}
.bp-embed-msg.info { color: #94a3b8; }
.bp-embed-results {
  margin-top: 8px;
  padding: 20px 16px 24px;
}
.bp-embed-result-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
@media (min-width: 640px) {
  .bp-embed-result-top { flex-direction: row; align-items: flex-start; }
}
.bp-embed-result-photo {
  width: 144px;
  height: 144px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, .3);
  background: #0f172a;
  flex-shrink: 0;
}
.bp-embed-result-photo.empty { display: none; }
.bp-embed-result-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.bp-embed-result-file {
  margin: 0 0 10px;
  font-size: .75rem;
  color: #64748b;
}
.bp-embed-score-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.bp-embed-score {
  font-size: 1.875rem;
  font-weight: 800;
  background: linear-gradient(to right, #a78bfa, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bp-embed-score-den { font-size: .875rem; color: #64748b; }
.bp-embed-conf {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #1e293b;
  font-size: .75rem;
  color: #cbd5e1;
}
.bp-embed-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #1e293b;
  overflow: hidden;
}
.bp-embed-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(to right, #8b5cf6, #6366f1);
}
.bp-embed-goal {
  margin: 8px 0 0;
  font-size: .75rem;
  color: #64748b;
}
.bp-embed-reason {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, .6);
  border: 1px solid rgba(51, 65, 85, .4);
}
.bp-embed-reason h4 {
  margin: 0 0 8px;
  font-size: .875rem;
  font-weight: 700;
  color: #cbd5e1;
}
.bp-embed-reason p {
  margin: 0;
  font-size: .875rem;
  color: #94a3b8;
  line-height: 1.6;
}
.bp-embed-paywall {
  position: relative;
  margin-bottom: 20px;
  padding: 24px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, .08), rgba(99, 102, 241, .08));
  border: 1px solid rgba(139, 92, 246, .18);
  text-align: center;
  overflow: hidden;
}
.bp-embed-paywall h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}
.bp-embed-paywall > p {
  margin: 0 0 14px;
  font-size: .75rem;
  color: #94a3b8;
}
.bp-embed-paywall ul {
  display: inline-block;
  text-align: left;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.bp-embed-paywall li {
  margin: 0 0 6px;
  font-size: .75rem;
  color: #cbd5e1;
}
.bp-embed-paywall li span { color: #a78bfa; font-weight: 800; margin-right: 6px; }
.bp-embed-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  background: linear-gradient(to right, #7c3aed, #4f46e5);
  color: #fff !important;
  font-size: .875rem;
  font-weight: 800;
  text-decoration: none;
}
.bp-embed-note {
  margin: 12px 0 0;
  font-size: 10px;
  color: #64748b;
}
.bp-embed-metrics { margin-bottom: 20px; }
.bp-embed-metrics h4,
.bp-embed-per h4 {
  margin: 0 0 12px;
  font-size: .875rem;
  font-weight: 700;
  color: #cbd5e1;
}
.bp-embed-criteria {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .bp-embed-criteria { grid-template-columns: 1fr 1fr; }
}
.bp-embed-crit {
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, .6);
  border: 1px solid rgba(255, 255, 255, .06);
}
.bp-embed-crit-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: .75rem;
}
.bp-embed-crit-row span:first-child { color: #cbd5e1; font-weight: 600; }
.bp-embed-crit-row span:last-child { font-weight: 800; }
.bp-embed-crit-bar {
  height: 6px;
  border-radius: 999px;
  background: #1e293b;
  overflow: hidden;
}
.bp-embed-crit-bar > span { display: block; height: 100%; border-radius: 999px; }
.bp-embed-per { margin-bottom: 20px; }
.bp-embed-pcard {
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, .6);
  border: 1px solid rgba(255, 255, 255, .06);
}
.bp-embed-pcard h5 {
  margin: 0 0 8px;
  font-size: .75rem;
  font-weight: 700;
  color: #c4b5fd;
}
.bp-embed-pcard p {
  margin: 0 0 8px;
  font-size: .75rem;
  color: #94a3b8;
}
.bp-embed-improve {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(245, 158, 11, .05);
  border: 1px solid rgba(245, 158, 11, .12);
}
.bp-embed-improve h4 {
  margin: 0 0 8px;
  font-size: .875rem;
  font-weight: 700;
  color: #fcd34d;
}
.bp-embed-improve p {
  margin: 0;
  font-size: .875rem;
  color: #94a3b8;
  line-height: 1.55;
}
.bp-embed .bp-offer,
.bp-embed .bp-lead,
.bp-embed .bp-preview-block {
  background: rgba(15, 23, 42, .85);
}
.bp-embed-reset-wrap { text-align: center; }
.bp-embed-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(to right, #7c3aed, #4f46e5);
  color: #fff;
  font-size: .875rem;
  font-weight: 800;
  cursor: pointer;
}
