/**
 * Partner iframe cards — contract from public-partner-embed-prototype.html
 * (.embed-card--pm | .embed-card--extended). Not PublicCard.
 */
html[data-embed-surface="partner"],
.pe-embed-host {
  --surface: #24242f;
  --surface2: #2d2d3a;
  --line: rgba(255, 255, 255, 0.095);
  --text: #f1f3f9;
  --muted: #a2a7b6;
  --faint: #727889;
  --yes: #22c55e;
  --no: #fb7185;
  --violet: #818cf8;
  --violet2: #6366f1;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
html[data-embed-surface="partner"] body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  overflow: hidden;
}
.pe-embed-host {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.embed-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: auto;
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  container-name: embed-card;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 22%), var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}
.embed-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 0%, rgba(129, 140, 248, .12), transparent 12rem);
}
.embed-brand,
.embed-body,
.embed-foot,
.embed-disclaimer { position: relative; z-index: 1; }
.embed-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(99, 102, 241, .08);
}
.embed-brand strong {
  color: #e6e8ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.embed-brand span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}
.embed-body {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--embed-gap, 5px);
  padding: 8px 10px 6px;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.embed-body > * {
  min-width: 0;
  max-width: 100%;
}
.embed-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 4px;
  min-width: 0;
  width: 100%;
}
.embed-head > div:last-child {
  min-width: 0;
}
.embed-thumb {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(129, 140, 248, .34);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  color: #dfe3ff;
  background: radial-gradient(circle at 70% 15%, rgba(255, 255, 255, .28), transparent 34%), linear-gradient(135deg, #31314a, #1d1d29);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, .1);
}
.embed-event {
  margin: 0 0 3px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.embed-selected-leg {
  display: grid;
  gap: 2px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}
.embed-selected-k {
  color: var(--faint);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.embed-selected-v {
  color: #eef1ff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.embed-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 2px;
  width: 100%;
}
.embed-stat {
  min-width: 0;
  min-height: 36px;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}
.embed-stat span {
  display: block;
  margin-bottom: 3px;
  color: var(--faint);
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
}
.embed-stat strong {
  display: block;
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}
.embed-signal {
  padding: 6px 7px;
  border: 1px solid rgba(129, 140, 248, .22);
  border-radius: 8px;
  background: rgba(99, 102, 241, .1);
}
.embed-signal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.embed-kicker {
  color: var(--faint);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.embed-pick {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
}
.side-yes { color: #062b17; background: linear-gradient(135deg, #22c55e, #86efac); }
.side-no { color: #fff1f2; background: linear-gradient(135deg, #e11d48, #fb7185); }
.embed-on {
  margin: 0 0 5px;
  color: #f0f3ff;
  font-size: 9px;
  font-weight: 800;
}
.embed-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}
.embed-metrics > div {
  min-width: 0;
  min-height: 30px;
  padding: 4px 5px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 7px;
  background: rgba(255, 255, 255, .045);
}
.embed-metrics span {
  display: block;
  margin-bottom: 1px;
  color: var(--faint);
  font-size: 6px;
  font-weight: 900;
  text-transform: uppercase;
}
.embed-metrics strong {
  display: block;
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}
.edge-up { color: var(--yes) !important; }
.embed-analysis {
  margin-top: 6px;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 8px;
  color: rgba(242, 244, 255, .82);
  background: rgba(255, 255, 255, .03);
  font-size: 9px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.embed-payout {
  margin-top: 5px;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 7px;
  background: rgba(255, 255, 255, .045);
  font-size: 8px;
}
.embed-payout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
}
.embed-payout-head strong {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 58%;
  color: #ebfef2;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.embed-payout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}
.embed-payout-grid > div {
  min-width: 0;
  min-height: 28px;
  padding: 4px 5px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 6px;
  background: rgba(255, 255, 255, .045);
}
.embed-payout-grid span {
  display: block;
  margin-bottom: 2px;
  color: var(--faint);
  font-size: 6px;
  font-weight: 900;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.embed-payout-grid strong {
  display: block;
  color: #eef1ff;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.embed-payout-grid strong.payout-up { color: var(--yes); }
/* Actions — parity with public-card.css .market-card--pm .actions / .small-btn */
.embed-foot {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  box-sizing: border-box;
}
.embed-cta,
.embed-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  min-height: 36px;
  height: auto;
  padding: 0 10px;
  border-radius: 10px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.embed-cta {
  grid-column: 1 / -1;
  order: 1;
  border: 1px solid transparent;
  color: #fff;
  background: linear-gradient(135deg, #6966f7, #6366f1);
  box-shadow: 0 6px 18px rgba(99, 102, 241, .24);
}
.embed-cta:hover {
  filter: brightness(1.06);
}
.embed-cta-ghost {
  order: 2;
  grid-column: auto;
  border: 1px solid var(--line);
  color: #dfe2ef;
  background: rgba(22, 22, 31, .58);
}
.embed-cta-ghost:hover:not(:disabled):not([aria-disabled="true"]) {
  color: #fff;
  border-color: rgba(129, 140, 248, .36);
  background: rgba(99, 102, 241, .11);
}
.embed-cta-ghost:disabled,
.embed-cta-ghost[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
}
.embed-card--pm .embed-foot,
.embed-card--extended .embed-foot {
  grid-template-columns: 1fr 1fr;
}
.embed-disclaimer {
  flex-shrink: 0;
  margin: 0;
  padding: 5px 9px 7px;
  color: var(--faint);
  font-size: 7px;
  line-height: 1.35;
  border-top: 1px solid rgba(255, 255, 255, .05);
}
/* Size: mini */
.embed-card[data-size="mini"] .embed-event { font-size: 9px; -webkit-line-clamp: 1; line-clamp: 1; }
.embed-card[data-size="mini"] .embed-analysis,
.embed-card[data-size="mini"] .embed-payout:not(.embed-pm-payout) { display: none; }
.embed-card[data-mode="teaser"] .embed-analysis,
.embed-card[data-mode="teaser"] .embed-payout:not(.embed-pm-payout) { display: none; }
.embed-card[data-size="mini"] .embed-foot { grid-template-columns: 1fr; }
.embed-card[data-size="mini"] .embed-cta-ghost { display: none; }
.embed-card[data-size="mini"] .embed-payout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Mode: teaser */
.embed-card[data-mode="teaser"] .embed-cta-ghost { display: none; }
.embed-card[data-mode="teaser"] .embed-foot { grid-template-columns: 1fr; }
.embed-card[data-mode="teaser"] .embed-cta { grid-column: 1 / -1; }
.proto-variant-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}
.proto-variant-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  max-width: 52ch;
}
.proto-variant-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 18, 27, .5);
}
.proto-variant-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.proto-variant-toggle button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #6966f7, #6366f1);
  box-shadow: 0 4px 14px rgba(99, 102, 241, .28);
}
/* Medium: feed-aligned shell */
.embed-card--pm .embed-body { gap: 5px; padding: 8px 10px 6px; }
.embed-card--pm .embed-stats .embed-stat { min-height: 40px; padding: 5px 6px; }
.embed-card--pm .embed-stats .embed-stat span { font-size: 6px; margin-bottom: 2px; }
.embed-card--pm .embed-stats .embed-stat strong { font-size: 9px; }
.embed-card--pm .embed-trade-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  margin: 2px 0 4px;
  padding-top: 9px;
  position: relative;
  width: 100%;
  overflow: visible;
}
.embed-card--pm .embed-pm-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  border: none;
  cursor: default;
  overflow: visible;
}
.embed-card--pm .embed-pm-label {
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.embed-card--pm .embed-pm-price {
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.embed-card--pm .embed-pm-btn--yes { color: #fff; background: #2d9f6f; }
.embed-card--pm .embed-pm-btn--no {
  color: #f4f6fb;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .12);
}
.embed-card--pm .embed-body {
  display: flex;
  flex-direction: column;
}
.embed-card--pm .embed-pm-btn {
  position: relative;
}
.embed-card--pm .embed-pm-btn.is-alt {
  opacity: .52;
  filter: saturate(.75);
}
.embed-card--pm .embed-pm-btn.is-recommended {
  opacity: 1;
  filter: none;
  z-index: 1;
}
.embed-card--pm .embed-pm-btn--yes.is-recommended {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .65);
}
.embed-card--pm .embed-pm-btn--no.is-recommended {
  color: #fff1f2;
  background: linear-gradient(135deg, #e11d48, #fb7185);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
}
.embed-card--pm .embed-pm-pick-badge {
  position: absolute;
  top: 0;
  left: 50%;
  right: auto;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #6966f7, #6366f1);
  box-shadow: 0 2px 8px rgba(99, 102, 241, .45);
  white-space: nowrap;
  pointer-events: none;
}
.embed-card--pm .embed-pm-note {
  margin: 0;
  color: var(--faint);
  font-size: 7px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.embed-card--pm .embed-pm-payout {
  flex: 0 0 auto;
  width: 100%;
  margin-top: 4px;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}
.embed-card--pm .embed-signal,
.embed-card--pm .embed-analysis,
.embed-card--pm .embed-payout:not(.embed-pm-payout) { display: none; }
.embed-card[data-mode="teaser"] .embed-pm-payout { display: none; }
.embed-card--extended .embed-signal.is-rec-yes { border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .1); }
.embed-card--extended .embed-signal.is-rec-no { border-color: rgba(251, 113, 133, .42); background: rgba(225, 29, 72, .1); }
.embed-card--extended .embed-signal-top .embed-pick { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.embed-card[data-density="micro"] {
  --embed-gap: 3px;
}
.embed-card[data-density="micro"] .embed-brand { padding: 5px 8px; }
.embed-card[data-density="micro"] .embed-body { padding: 6px 8px 4px; }
.embed-card[data-density="micro"] .embed-head {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
  margin-bottom: 0;
}
.embed-card[data-density="micro"] .embed-thumb { width: 28px; height: 28px; font-size: 8px; border-radius: 8px; }
.embed-card[data-density="micro"] .embed-selected-leg { padding: 4px 6px; }
.embed-card[data-density="micro"] .embed-stats { display: none; }
.embed-card[data-density="micro"] .embed-pm-note { display: none; }
.embed-card[data-density="micro"] .embed-disclaimer { display: none; }
.embed-card[data-density="micro"] .embed-foot { padding: 8px; gap: 6px; }
.embed-card[data-density="micro"] .embed-cta,
.embed-card[data-density="micro"] .embed-cta-ghost {
  min-height: 32px;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 9px;
}
.embed-card[data-density="micro"] .embed-cta { min-height: 32px; }
.embed-card[data-density="micro"] .embed-pm-payout { display: none; }
.embed-card[data-density="micro"] .embed-analysis { display: none; }
.embed-card[data-density="micro"] .embed-payout:not(.embed-pm-payout) { display: none; }
.embed-card[data-density="short"] {
  --embed-gap: 4px;
}
.embed-card[data-density="short"] .embed-stats .embed-stat { min-height: 30px; padding: 4px 5px; }
.embed-card[data-density="short"] .embed-stats .embed-stat:nth-child(3) { display: none; }
.embed-card[data-density="short"] .embed-pm-note { display: none; }
.embed-card[data-density="short"] .embed-analysis { -webkit-line-clamp: 1; line-clamp: 1; }
.embed-card[data-density="short"][data-mode="teaser"] .embed-pm-payout,
.embed-card[data-density="short"][data-mode="teaser"] .embed-payout:not(.embed-pm-payout) { display: none; }
.embed-card[data-density="short"] .embed-disclaimer {
  padding: 4px 8px 5px;
  font-size: 6px;
  line-height: 1.25;
}
.embed-card[data-density="medium"] .embed-analysis { -webkit-line-clamp: 2; line-clamp: 2; }
.embed-card[data-placement="sidebar-rail"] .embed-payout-grid,
.embed-card[data-placement="sidebar-rail"] .embed-pm-payout .embed-payout-grid { display: none; }
.embed-card[data-placement="sidebar-rail"] .embed-payout-head { margin-bottom: 0; }
.embed-card--pm[data-size="mini"] .embed-pm-note { display: none; }
.embed-card--pm[data-size="mini"] .embed-stats .embed-stat:last-child { display: none; }
.embed-card--pm[data-size="mini"] .embed-pm-btn { min-height: 34px; padding: 0 10px; }
.embed-card--pm[data-size="mini"] .embed-pm-label,
.embed-card--pm[data-size="mini"] .embed-pm-price { font-size: 12px; }
.embed-card--extended .embed-body { gap: 6px; }
.embed-card--extended .embed-foot .embed-cta { grid-column: 1 / -1; }
.embed-card--extended[data-mode="teaser"] .embed-cta { grid-column: 1 / -1; }
.embed-card[data-size="mini"] .embed-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.embed-card[data-size="mini"] .embed-stats .embed-stat:last-child { display: none; }
.embed-card[data-frame-h="250"] .embed-body { gap: 4px; }
.embed-card[data-frame-h="250"] .embed-stat { min-height: 28px; padding: 3px 5px; }
.embed-card[data-frame-h="250"] .embed-stat span { font-size: 7px; }
.embed-card[data-frame-h="250"] .embed-stat strong { font-size: 9px; }
.embed-card--pm[data-frame-h="250"] .embed-pm-btn { min-height: 30px; }
.embed-card--pm[data-frame-h="250"] .embed-pm-note { display: none; }
.embed-card[data-frame-h="250"] .embed-disclaimer { font-size: 7px; line-height: 1.25; }
.embed-card[data-placement="square-250"] .embed-stats,
.embed-card[data-placement="square-250"] .embed-pm-note { display: none; }
.embed-card[data-placement="square-250"] .embed-selected-k { display: none; }
.embed-card[data-placement="square-250"] .embed-brand span { display: none; }
.embed-card[data-placement="skyscraper-narrow"] .embed-head {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.embed-card[data-placement="skyscraper-narrow"] .embed-stats { grid-template-columns: 1fr; }
.embed-card[data-placement="skyscraper-narrow"] .embed-stats .embed-stat:nth-child(3) { display: none; }
.embed-card[data-placement="skyscraper-narrow"] .embed-trade-row { grid-template-columns: 1fr; }
.embed-card[data-placement="skyscraper-narrow"] .embed-pm-note,
.embed-card[data-placement="skyscraper-narrow"] .embed-brand span,
.embed-card[data-placement="skyscraper-narrow"] .embed-cta-ghost { display: none; }
.embed-card[data-placement="sidebar-rail"] .embed-foot { flex-shrink: 0; }

@container embed-card (max-width: 320px) {
  .embed-card--pm .embed-foot,
  .embed-card--extended .embed-foot {
    grid-template-columns: 1fr;
  }
  .embed-card--pm .embed-cta-ghost,
  .embed-card--extended .embed-cta-ghost {
    display: none;
  }
}
