/* IPMYP Campaign Studio — isolated, responsive native creatives. No custom HTML/CSS. */
.ipmyp-ad{--ipmyp-ad-bg:#eef4ff;--ipmyp-ad-text:#162c62;--ipmyp-ad-button:#2456d8;--ipmyp-ad-overlay:.54;--ipmyp-ad-image-position:center center;position:relative;isolation:isolate;overflow:hidden;box-sizing:border-box;min-width:0;width:100%;max-width:100%;margin:16px auto;padding:22px;border:1px solid rgba(82,112,164,.19);border-radius:19px;background-color:var(--ipmyp-ad-bg);color:var(--ipmyp-ad-text);font-family:inherit;font-size:14px;line-height:1.7;box-shadow:0 7px 25px rgba(15,23,42,.045)}
.ipmyp-ad *,.ipmyp-ad *:before,.ipmyp-ad *:after{box-sizing:border-box}
.ipmyp-ad--preset-ocean{background-image:linear-gradient(115deg,rgba(56,189,248,.24),transparent 68%)}
.ipmyp-ad--preset-midnight{background-image:linear-gradient(115deg,rgba(67,117,245,.24),transparent 72%);border-color:rgba(150,191,255,.25)}
.ipmyp-ad--preset-forest{background-image:linear-gradient(115deg,rgba(34,197,94,.15),transparent 68%)}
.ipmyp-ad--preset-sunset{background-image:linear-gradient(115deg,rgba(251,146,60,.20),transparent 68%)}
.ipmyp-ad--preset-lavender{background-image:linear-gradient(115deg,rgba(168,85,247,.15),transparent 68%)}
.ipmyp-ad--preset-slate{background-image:linear-gradient(115deg,rgba(148,163,184,.16),transparent 68%)}
.ipmyp-ad--preset-amber{background-image:linear-gradient(115deg,rgba(245,158,11,.17),transparent 68%)}
.ipmyp-ad--preset-royal{background-image:linear-gradient(115deg,rgba(167,139,250,.23),transparent 68%);border-color:rgba(207,185,255,.23)}
.ipmyp-ad--preset-ice{background-image:linear-gradient(115deg,rgba(34,211,238,.17),transparent 68%)}
.ipmyp-ad-identify,.ipmyp-ad-content{position:relative;z-index:2}.ipmyp-ad-identify{display:inline-flex;align-items:center;margin-bottom:12px;padding:2px 9px;border:1px solid currentColor;border-radius:6px;color:inherit;opacity:.9;font-size:11px;font-weight:650;line-height:1.5}
.ipmyp-ad-content{display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:0}
.ipmyp-ad-copy{flex:1 1 300px;min-width:0}.ipmyp-ad-title{display:block;font-size:clamp(17px,2vw,22px);font-weight:800;line-height:1.48;color:inherit;overflow-wrap:anywhere}.ipmyp-ad-copy p{margin:6px 0 0;font-size:13px;line-height:1.85;color:inherit;opacity:.95;overflow-wrap:anywhere}.ipmyp-ad-badge{display:inline-flex;padding:3px 10px;margin-bottom:6px;background:rgba(255,255,255,.18);border:1px solid currentColor;border-radius:999px;font-size:11px;font-weight:700;color:inherit}
.ipmyp-ad-visual{flex:0 1 29%;max-width:280px;min-width:0;display:flex;align-items:center;justify-content:center}.ipmyp-ad-image{display:block;width:100%;height:auto;max-height:190px;object-fit:contain;border-radius:11px}
.ipmyp-ad-background{position:absolute;z-index:0;inset:0;overflow:hidden;pointer-events:none}.ipmyp-ad-background-image{display:block!important;position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:var(--ipmyp-ad-image-position)!important;border-radius:0!important}
.ipmyp-ad--media-background:before{content:"";display:block;position:absolute;inset:0;z-index:1;pointer-events:none;background:rgba(4,18,42,var(--ipmyp-ad-overlay))}.ipmyp-ad--media-background{background-image:none!important;text-shadow:0 1px 2px rgba(0,0,0,.13)}
.ipmyp-ad--media-background .ipmyp-ad-badge{background:rgba(0,0,0,.26);border-color:rgba(255,255,255,.65)}
.ipmyp-ad-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;flex:0 0 auto;padding:10px 19px;border-radius:11px;background:var(--ipmyp-ad-button);border:2px solid transparent;color:#fff!important;text-decoration:none!important;white-space:normal;font-size:13px;font-weight:750;line-height:1.5;text-align:center;overflow-wrap:anywhere;box-shadow:0 5px 17px rgba(0,0,0,.08);transition:filter .15s}
.ipmyp-ad-action:hover{filter:brightness(.91);color:#fff!important}.ipmyp-ad-action:focus-visible{outline:3px solid currentColor;outline-offset:3px}.ipmyp-ad--button-outline .ipmyp-ad-action{background:transparent;border-color:currentColor;color:inherit!important;box-shadow:none}
.ipmyp-ad--image .ipmyp-ad-visual{flex:1 1 auto;max-width:none}.ipmyp-ad--image .ipmyp-ad-image{max-height:210px;object-fit:contain}.ipmyp-ad--image .ipmyp-ad-content{align-items:center}.ipmyp-ad--image.ipmyp-ad--media-background{min-height:210px}
.ipmyp-ad--compact{padding:14px 19px}.ipmyp-ad--compact .ipmyp-ad-content{gap:12px}.ipmyp-ad--compact .ipmyp-ad-title{font-size:17px}.ipmyp-ad--compact .ipmyp-ad-identify{margin-bottom:5px}.ipmyp-ad--hero{min-height:200px;padding:30px}.ipmyp-ad--hero .ipmyp-ad-title{font-size:clamp(20px,2.5vw,29px)}
.ipmyp-ad-slot{min-width:0}.ipmyp-ad-slot--lookup-top,.ipmyp-ad-slot--viewer-top{margin:0 0 16px}.ipmyp-ad-slot--lookup-bottom,.ipmyp-ad-slot--viewer-bottom{margin:16px 0 0}.ipmyp-ad-slot .ipmyp-ad{margin:0}.ipmyp-saas-main>.ipmyp-ad-slot{width:100%}
@media(max-width:680px){.ipmyp-ad{padding:16px;border-radius:16px}.ipmyp-ad-content{flex-direction:column;align-items:stretch;gap:12px}.ipmyp-ad-visual{max-width:100%;width:100%;flex:0 0 auto}.ipmyp-ad-copy{flex:0 1 auto}.ipmyp-ad-image{max-height:160px}.ipmyp-ad-action{width:100%}.ipmyp-ad-title{font-size:18px}.ipmyp-ad--image .ipmyp-ad-content{align-items:stretch}.ipmyp-ad--media-background .ipmyp-ad-content{justify-content:flex-end}.ipmyp-ad--hero{padding:22px;min-height:180px}.ipmyp-ad--compact{padding:13px}}
@media(prefers-reduced-motion:reduce){.ipmyp-ad-action{transition:none}}
/* A dark image scrim uses white foreground text even for light-card palettes. */
.ipmyp-ad.ipmyp-ad--media-background{color:#fff}
.ipmyp-ad--media-background .ipmyp-ad-action:focus-visible{outline-color:#fff}
/* R132: curated visual compositions. Existing 'classic' stays backwards compatible. */
.ipmyp-ad--preset-ink{background-image:radial-gradient(circle at 15% 5%,rgba(96,165,250,.17),transparent 42%)}
.ipmyp-ad--preset-cobalt{background-image:linear-gradient(115deg,rgba(147,197,253,.17),transparent 70%)}
.ipmyp-ad--preset-teal{background-image:radial-gradient(circle at 100% 0,rgba(13,148,136,.17),transparent 57%)}
.ipmyp-ad--preset-blush{background-image:linear-gradient(125deg,rgba(244,114,182,.15),transparent 65%)}
.ipmyp-ad--preset-porcelain{background-image:linear-gradient(135deg,rgba(148,163,184,.06),transparent 72%)}
.ipmyp-ad--preset-aurora{background-image:radial-gradient(ellipse at 6% 30%,rgba(20,184,166,.27),transparent 48%),radial-gradient(ellipse at 90% 0%,rgba(79,70,229,.18),transparent 55%)}
.ipmyp-ad--preset-terminal{background-image:linear-gradient(135deg,rgba(16,185,129,.14),transparent 70%)}
.ipmyp-ad--preset-steel{background-image:linear-gradient(135deg,rgba(71,85,105,.13),transparent 72%)}
.ipmyp-ad--preset-orchid{background-image:radial-gradient(circle at 92% 0%,rgba(192,132,252,.17),transparent 57%)}
.ipmyp-ad--preset-photo_night,.ipmyp-ad--preset-photo_wide,.ipmyp-ad--preset-photo_soft{background-image:linear-gradient(120deg,rgba(50,86,156,.19),transparent 70%)}
.ipmyp-ad--layout-split .ipmyp-ad-visual{flex:0 0 36%;max-width:340px}
.ipmyp-ad--layout-split .ipmyp-ad-image{height:165px;object-fit:cover}
.ipmyp-ad--layout-centered .ipmyp-ad-content{flex-direction:column;text-align:center;align-items:center;gap:12px}
.ipmyp-ad--layout-centered .ipmyp-ad-visual{max-width:340px;flex:0 0 auto;width:min(100%,340px)}
.ipmyp-ad--layout-centered .ipmyp-ad-copy{flex:0 1 auto}
.ipmyp-ad--layout-centered .ipmyp-ad-action{min-width:150px}
.ipmyp-ad--layout-editorial{padding:26px 30px}
.ipmyp-ad--layout-editorial .ipmyp-ad-content{gap:28px}
.ipmyp-ad--layout-editorial .ipmyp-ad-copy{max-width:690px}
.ipmyp-ad--layout-editorial .ipmyp-ad-title{font-weight:850;letter-spacing:-.015em;font-size:clamp(20px,2.45vw,28px)}
.ipmyp-ad--layout-editorial .ipmyp-ad-badge{font-weight:760}
.ipmyp-ad--layout-banner{padding:16px 22px}
.ipmyp-ad--layout-banner .ipmyp-ad-identify{margin-bottom:5px}
.ipmyp-ad--layout-banner .ipmyp-ad-content{gap:14px}
.ipmyp-ad--layout-banner .ipmyp-ad-title{font-size:clamp(16px,1.8vw,21px)}
.ipmyp-ad--layout-banner .ipmyp-ad-copy p{margin-top:2px}
.ipmyp-ad--layout-poster{min-height:245px;padding:30px}
.ipmyp-ad--layout-poster .ipmyp-ad-content{min-height:160px;align-items:flex-end}
.ipmyp-ad--layout-poster .ipmyp-ad-title{font-size:clamp(23px,2.6vw,32px);line-height:1.35}
.ipmyp-ad--layout-minimal{padding:17px 20px;border-radius:14px;box-shadow:none}
.ipmyp-ad--layout-minimal .ipmyp-ad-content{gap:14px}
.ipmyp-ad--layout-minimal .ipmyp-ad-title{font-size:16px}
.ipmyp-ad--layout-minimal .ipmyp-ad-identify{margin-bottom:6px}
/* Explicit image background takes precedence over preset decoration, including third-party theme rules. */
.ipmyp-ad.ipmyp-ad--media-background{position:relative;isolation:isolate;background-image:none!important;min-height:160px}
.ipmyp-ad.ipmyp-ad--media-background .ipmyp-ad-background{display:block;position:absolute;inset:0;z-index:0;opacity:1;overflow:hidden}
.ipmyp-ad.ipmyp-ad--media-background .ipmyp-ad-background img.ipmyp-ad-background-image{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-width:100%!important;min-height:100%!important;position:absolute;inset:0;object-fit:cover!important;object-position:var(--ipmyp-ad-image-position,center center)!important;filter:none!important}
.ipmyp-ad.ipmyp-ad--media-background::before{z-index:1}
.ipmyp-ad.ipmyp-ad--media-background .ipmyp-ad-identify,.ipmyp-ad.ipmyp-ad--media-background .ipmyp-ad-content{position:relative;z-index:2}
.ipmyp-ad--media-background .ipmyp-ad-title,.ipmyp-ad--media-background .ipmyp-ad-copy p{color:#fff!important}
.ipmyp-ad--media-background .ipmyp-ad-action{position:relative}
@media(max-width:680px){
 .ipmyp-ad--layout-split .ipmyp-ad-visual{flex:0 0 auto;max-width:100%;width:100%}
 .ipmyp-ad--layout-split .ipmyp-ad-image{height:145px}
 .ipmyp-ad--layout-centered .ipmyp-ad-copy{flex:0 0 auto}
 .ipmyp-ad--layout-editorial,.ipmyp-ad--layout-poster{padding:20px}
 .ipmyp-ad--layout-editorial .ipmyp-ad-content,.ipmyp-ad--layout-banner .ipmyp-ad-content{gap:12px}
 .ipmyp-ad--layout-poster{min-height:240px}
 .ipmyp-ad--layout-poster .ipmyp-ad-content{min-height:175px;justify-content:flex-end;align-items:stretch}
 .ipmyp-ad--layout-poster .ipmyp-ad-title{font-size:23px}
 .ipmyp-ad--layout-banner{padding:15px}
 .ipmyp-ad--layout-minimal{padding:15px}
}
@media(max-width:360px){.ipmyp-ad--layout-poster{padding:16px}.ipmyp-ad--layout-editorial{padding:16px}}

/* Campaign Studio 7.0 — component-based editorial compositions, no remote resources. */
.ipmyp-ad{--ipmyp-ad-radius:20px;--ipmyp-ad-gap:24px;border-radius:var(--ipmyp-ad-radius);transition:box-shadow .18s ease}
.ipmyp-ad .ipmyp-ad-content{gap:var(--ipmyp-ad-gap)}
.ipmyp-ad .ipmyp-ad-visual img{max-width:100%}
.ipmyp-ad--preset-nordic{background-image:radial-gradient(circle at 10% 0%,rgba(43,146,128,.13),transparent 52%)}
.ipmyp-ad--preset-electric{background-image:radial-gradient(circle at 75% 0%,rgba(67,97,241,.35),transparent 56%)}
.ipmyp-ad--preset-meadow{background-image:linear-gradient(110deg,rgba(89,197,97,.13),transparent 67%)}
.ipmyp-ad--preset-obsidian{background-image:radial-gradient(circle at 50% 130%,rgba(148,163,184,.21),transparent 67%)}
.ipmyp-ad--preset-copper{background-image:linear-gradient(125deg,rgba(219,113,50,.16),transparent 70%)}
.ipmyp-ad--preset-mint{background-image:linear-gradient(110deg,rgba(16,185,129,.13),transparent 70%)}
.ipmyp-ad--preset-skyline{background-image:radial-gradient(circle at 90% 10%,rgba(56,137,245,.17),transparent 65%)}
.ipmyp-ad--preset-platinum{background-image:linear-gradient(120deg,rgba(124,137,155,.11),transparent 72%)}
.ipmyp-ad--preset-nebula{background-image:radial-gradient(circle at 20% 20%,rgba(168,85,247,.19),transparent 55%)}
.ipmyp-ad--preset-rosewood{background-image:linear-gradient(125deg,rgba(212,117,125,.17),transparent 65%)}
.ipmyp-ad--preset-deepsea{background-image:radial-gradient(circle at 90% 15%,rgba(56,189,248,.23),transparent 65%)}
.ipmyp-ad--preset-citrus{background-image:linear-gradient(120deg,rgba(249,183,49,.14),transparent 67%)}
/* The layout is independent of palette. Each has a distinct content hierarchy. */
.ipmyp-ad--layout-magazine{--ipmyp-ad-gap:28px;padding:28px 32px}
.ipmyp-ad--layout-magazine .ipmyp-ad-visual{order:2;flex:0 0 40%;max-width:420px}
.ipmyp-ad--layout-magazine .ipmyp-ad-visual img{min-height:160px;max-height:245px;object-fit:cover;border-radius:15px}
.ipmyp-ad--layout-magazine .ipmyp-ad-title{font-size:clamp(22px,2.6vw,32px);line-height:1.3;letter-spacing:-.025em}
.ipmyp-ad--layout-magazine .ipmyp-ad-copy{order:1}
.ipmyp-ad--layout-magazine .ipmyp-ad-action{order:3;align-self:flex-end}
.ipmyp-ad--layout-spotlight{--ipmyp-ad-gap:17px;min-height:212px;padding:30px 34px}
.ipmyp-ad--layout-spotlight .ipmyp-ad-content{align-items:flex-end}
.ipmyp-ad--layout-spotlight .ipmyp-ad-copy{flex:1 1 auto;max-width:700px}
.ipmyp-ad--layout-spotlight .ipmyp-ad-title{font-size:clamp(24px,3.1vw,38px);line-height:1.3;font-weight:850;letter-spacing:-.03em}
.ipmyp-ad--layout-spotlight .ipmyp-ad-visual{max-width:200px}
.ipmyp-ad--layout-spotlight .ipmyp-ad-badge{background:rgba(255,255,255,.14);padding:5px 14px}
.ipmyp-ad--layout-product{padding:22px}
.ipmyp-ad--layout-product .ipmyp-ad-content{display:grid;grid-template-columns:minmax(120px,.85fr) minmax(0,1.6fr) auto;align-items:center}
.ipmyp-ad--layout-product .ipmyp-ad-visual{grid-column:1;grid-row:1;width:100%;max-width:300px;padding:7px;background:rgba(255,255,255,.15);border:1px solid rgba(115,130,160,.2);border-radius:16px}
.ipmyp-ad--layout-product .ipmyp-ad-visual img{height:145px;object-fit:contain}
.ipmyp-ad--layout-product .ipmyp-ad-copy{grid-column:2;grid-row:1;min-width:0}
.ipmyp-ad--layout-product .ipmyp-ad-action{grid-column:3;grid-row:1}
.ipmyp-ad--layout-feature{padding:27px 30px;border-inline-start:5px solid var(--ipmyp-ad-button)}
.ipmyp-ad--layout-feature .ipmyp-ad-content{display:grid;grid-template-columns:minmax(0,1fr) auto;row-gap:15px}
.ipmyp-ad--layout-feature .ipmyp-ad-visual{grid-column:2;grid-row:1;max-width:220px;justify-self:end}
.ipmyp-ad--layout-feature .ipmyp-ad-copy{grid-column:1;grid-row:1}
.ipmyp-ad--layout-feature .ipmyp-ad-title{font-size:clamp(21px,2.4vw,27px)}
.ipmyp-ad--layout-feature .ipmyp-ad-action{grid-column:1 / -1;justify-self:start}
.ipmyp-ad--layout-ribbon{padding:15px 23px;border-radius:14px;box-shadow:none;border-inline-start:4px solid var(--ipmyp-ad-button)}
.ipmyp-ad--layout-ribbon .ipmyp-ad-identify{margin:0 0 5px;font-size:10px}
.ipmyp-ad--layout-ribbon .ipmyp-ad-content{gap:12px}
.ipmyp-ad--layout-ribbon .ipmyp-ad-title{font-size:clamp(17px,1.8vw,21px)}
.ipmyp-ad--layout-ribbon .ipmyp-ad-visual{flex:0 0 17%;max-width:160px}
.ipmyp-ad--layout-ribbon .ipmyp-ad-copy p{margin:0}
.ipmyp-ad--layout-ticker{padding:12px 18px;border-radius:12px;box-shadow:none}
.ipmyp-ad--layout-ticker .ipmyp-ad-identify{margin:0 0 6px;padding:1px 7px;font-size:10px}
.ipmyp-ad--layout-ticker .ipmyp-ad-content{gap:10px}
.ipmyp-ad--layout-ticker .ipmyp-ad-title{font-size:16px}
.ipmyp-ad--layout-ticker .ipmyp-ad-copy p{display:none}
.ipmyp-ad--layout-ticker .ipmyp-ad-visual{max-width:85px;flex:0 0 85px}
.ipmyp-ad--layout-ticker .ipmyp-ad-action{min-height:44px;padding:8px 12px}
.ipmyp-ad--layout-mosaic{padding:22px}
.ipmyp-ad--layout-mosaic .ipmyp-ad-content{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:14px 25px;align-items:center}
.ipmyp-ad--layout-mosaic .ipmyp-ad-visual{grid-column:1;grid-row:1 / 3;width:100%;max-width:unset}
.ipmyp-ad--layout-mosaic .ipmyp-ad-visual img{width:100%;height:195px;max-height:195px;object-fit:cover;border-radius:14px}
.ipmyp-ad--layout-mosaic .ipmyp-ad-copy{grid-column:2;grid-row:1}
.ipmyp-ad--layout-mosaic .ipmyp-ad-action{grid-column:2;grid-row:2;justify-self:start}
.ipmyp-ad--layout-mosaic .ipmyp-ad-title{font-size:clamp(18px,2.3vw,26px)}
/* Background creative is always full bleed, even when an image-led grid is chosen. */
.ipmyp-ad.ipmyp-ad--media-background .ipmyp-ad-visual{display:none!important}
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-product .ipmyp-ad-content,
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-mosaic .ipmyp-ad-content{display:flex;align-items:center;justify-content:space-between}
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-product .ipmyp-ad-copy,
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-mosaic .ipmyp-ad-copy,
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-product .ipmyp-ad-action,
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-mosaic .ipmyp-ad-action{grid-column:auto;grid-row:auto}
.ipmyp-ad-slot--after-result{margin:18px 0 2px;position:relative;min-width:0;clear:both}
.ipmyp-ad-slot--after-result .ipmyp-ad{margin:0}
.ipmyp-ad-slot--after-result:focus-within{z-index:1}
@media(max-width:800px){
 .ipmyp-ad--layout-product .ipmyp-ad-content{grid-template-columns:minmax(110px,1fr) minmax(0,1.5fr)}
 .ipmyp-ad--layout-product .ipmyp-ad-action{grid-column:2;grid-row:2;justify-self:start}
 .ipmyp-ad--layout-product .ipmyp-ad-visual{grid-row:1 / 3}
 .ipmyp-ad--layout-mosaic .ipmyp-ad-content{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
 .ipmyp-ad--layout-magazine,.ipmyp-ad--layout-spotlight,.ipmyp-ad--layout-feature{padding:20px}
 .ipmyp-ad--layout-magazine .ipmyp-ad-content,.ipmyp-ad--layout-spotlight .ipmyp-ad-content{display:flex;flex-direction:column;align-items:stretch;gap:12px}
 .ipmyp-ad--layout-magazine .ipmyp-ad-visual{order:0;width:100%;max-width:none;flex:0 0 auto}
 .ipmyp-ad--layout-magazine .ipmyp-ad-copy{order:1}
 .ipmyp-ad--layout-magazine .ipmyp-ad-action{order:2;align-self:stretch}
 .ipmyp-ad--layout-spotlight .ipmyp-ad-title{font-size:clamp(22px,6vw,30px)}
 .ipmyp-ad--layout-product .ipmyp-ad-content,.ipmyp-ad--layout-mosaic .ipmyp-ad-content,.ipmyp-ad--layout-feature .ipmyp-ad-content{display:flex;flex-direction:column;align-items:stretch;gap:12px}
 .ipmyp-ad--layout-product .ipmyp-ad-visual,.ipmyp-ad--layout-mosaic .ipmyp-ad-visual,.ipmyp-ad--layout-feature .ipmyp-ad-visual{max-width:100%;width:100%;flex:0 0 auto}
 .ipmyp-ad--layout-feature .ipmyp-ad-action,.ipmyp-ad--layout-mosaic .ipmyp-ad-action{align-self:stretch}
 .ipmyp-ad--layout-ribbon .ipmyp-ad-visual{max-width:100%;flex:0 0 auto}
 .ipmyp-ad--layout-ticker .ipmyp-ad-visual{display:none}
 .ipmyp-ad--layout-mosaic .ipmyp-ad-visual img{height:170px}
 .ipmyp-ad--layout-spotlight,.ipmyp-ad--layout-feature{min-height:0}
 .ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-product .ipmyp-ad-content,
 .ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-mosaic .ipmyp-ad-content{flex-direction:column;align-items:stretch}
}
@media(prefers-reduced-motion:reduce){.ipmyp-ad{transition:none}}

/* R134: layout is a first-class composition, including background/none media.
 * Parent card is the size query container: tool columns are not viewport widths.
 * Layouts share one DOM contract in editor and frontend. */
.ipmyp-ad{container-type:inline-size}
.ipmyp-ad.ipmyp-ad--layout-classic .ipmyp-ad-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between}
.ipmyp-ad.ipmyp-ad--layout-split .ipmyp-ad-content{display:grid;grid-template-columns:minmax(0, .85fr) minmax(0,1.25fr);gap:12px 22px;align-items:center}
.ipmyp-ad.ipmyp-ad--layout-split .ipmyp-ad-visual{grid-column:1;grid-row:1 / 3;width:100%;max-width:100%}
.ipmyp-ad.ipmyp-ad--layout-split .ipmyp-ad-copy{grid-column:2;grid-row:1}
.ipmyp-ad.ipmyp-ad--layout-split .ipmyp-ad-action{grid-column:2;grid-row:2;justify-self:start}
.ipmyp-ad.ipmyp-ad--layout-centered .ipmyp-ad-content{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px}
.ipmyp-ad.ipmyp-ad--layout-centered .ipmyp-ad-copy{flex:0 1 auto}
.ipmyp-ad.ipmyp-ad--layout-editorial .ipmyp-ad-content{display:flex;flex-direction:column;align-items:flex-start;text-align:start;gap:14px}
.ipmyp-ad.ipmyp-ad--layout-editorial .ipmyp-ad-title{max-width:22ch;font-size:clamp(24px,3vw,34px)}
.ipmyp-ad.ipmyp-ad--layout-banner .ipmyp-ad-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:14px}
.ipmyp-ad.ipmyp-ad--layout-banner .ipmyp-ad-copy{flex:1 1 auto}
.ipmyp-ad.ipmyp-ad--layout-poster .ipmyp-ad-content{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;min-height:185px;gap:15px}
.ipmyp-ad.ipmyp-ad--layout-poster .ipmyp-ad-copy{flex:0 1 auto}
.ipmyp-ad.ipmyp-ad--layout-poster .ipmyp-ad-title{font-size:clamp(26px,3.1vw,40px)}
.ipmyp-ad.ipmyp-ad--layout-minimal .ipmyp-ad-content{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:18px}
.ipmyp-ad.ipmyp-ad--layout-minimal .ipmyp-ad-copy p,.ipmyp-ad.ipmyp-ad--layout-minimal .ipmyp-ad-badge{display:none}
.ipmyp-ad.ipmyp-ad--layout-magazine .ipmyp-ad-content{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px 26px;align-items:center}
.ipmyp-ad.ipmyp-ad--layout-magazine .ipmyp-ad-copy{grid-column:1;grid-row:1;max-width:none}
.ipmyp-ad.ipmyp-ad--layout-magazine .ipmyp-ad-visual{grid-column:2;grid-row:1 / 3;width:100%;max-width:100%}
.ipmyp-ad.ipmyp-ad--layout-magazine .ipmyp-ad-action{grid-column:1;grid-row:2;justify-self:start}
.ipmyp-ad.ipmyp-ad--layout-spotlight .ipmyp-ad-content{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px;min-height:185px}
.ipmyp-ad.ipmyp-ad--layout-spotlight .ipmyp-ad-title{font-size:clamp(26px,3.2vw,42px);max-width:25ch;margin-inline:auto}
.ipmyp-ad.ipmyp-ad--layout-spotlight .ipmyp-ad-copy{flex:0 1 auto;max-width:740px}
.ipmyp-ad.ipmyp-ad--layout-product .ipmyp-ad-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:14px 22px;align-items:center}
.ipmyp-ad.ipmyp-ad--layout-product .ipmyp-ad-visual{grid-column:1;grid-row:1/3;max-width:100%;width:100%}
.ipmyp-ad.ipmyp-ad--layout-product .ipmyp-ad-copy{grid-column:2;grid-row:1}
.ipmyp-ad.ipmyp-ad--layout-product .ipmyp-ad-action{grid-column:2;grid-row:2;justify-self:start}
.ipmyp-ad.ipmyp-ad--layout-feature .ipmyp-ad-content{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
.ipmyp-ad.ipmyp-ad--layout-feature .ipmyp-ad-copy{grid-column:1;grid-row:1}
.ipmyp-ad.ipmyp-ad--layout-feature .ipmyp-ad-visual{grid-column:2;grid-row:1;width:100%;max-width:220px}
.ipmyp-ad.ipmyp-ad--layout-feature .ipmyp-ad-action{grid-column:1/-1;grid-row:2;justify-self:start}
.ipmyp-ad.ipmyp-ad--layout-ribbon .ipmyp-ad-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px}
.ipmyp-ad.ipmyp-ad--layout-ribbon .ipmyp-ad-copy{flex:1 1 auto}
.ipmyp-ad.ipmyp-ad--layout-ribbon .ipmyp-ad-action{margin-inline-start:auto}
.ipmyp-ad.ipmyp-ad--layout-ticker .ipmyp-ad-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
.ipmyp-ad.ipmyp-ad--layout-ticker .ipmyp-ad-copy{flex:1 1 auto}
.ipmyp-ad.ipmyp-ad--layout-mosaic .ipmyp-ad-content{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px;align-items:center}
.ipmyp-ad.ipmyp-ad--layout-mosaic .ipmyp-ad-visual{grid-column:1;grid-row:1 / 3;width:100%;max-width:100%}
.ipmyp-ad.ipmyp-ad--layout-mosaic .ipmyp-ad-copy{grid-column:2;grid-row:1}
.ipmyp-ad.ipmyp-ad--layout-mosaic .ipmyp-ad-action{grid-column:2;grid-row:2;justify-self:start}
/* Background mode has no side visual. It still receives genuine layout geometry. */
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-split .ipmyp-ad-content,
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-product .ipmyp-ad-content,
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-mosaic .ipmyp-ad-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.65fr);gap:14px}
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-split .ipmyp-ad-copy,
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-product .ipmyp-ad-copy,
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-mosaic .ipmyp-ad-copy{grid-column:1;grid-row:1}
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-split .ipmyp-ad-action,
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-product .ipmyp-ad-action,
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-mosaic .ipmyp-ad-action{grid-column:2;grid-row:1;justify-self:end}
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-product .ipmyp-ad-copy{padding:15px 18px;border:1px solid rgba(255,255,255,.35);border-radius:14px;background:rgba(0,0,0,.16)}
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-mosaic .ipmyp-ad-copy{padding:19px;border-inline-start:3px solid var(--ipmyp-ad-button);background:rgba(0,0,0,.15)}
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-magazine .ipmyp-ad-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.65fr)}
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-magazine .ipmyp-ad-copy{grid-column:2;grid-row:1;max-width:none}
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-magazine .ipmyp-ad-action{grid-column:2;grid-row:2;justify-self:start}
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-feature .ipmyp-ad-content{display:flex;flex-direction:column;align-items:flex-start}
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-feature .ipmyp-ad-copy{padding-inline-start:20px;border-inline-start:3px solid currentColor}
/* Side-media layout only: picture presence must never be assumed for text-only creatives. */
.ipmyp-ad.ipmyp-ad--media-none.ipmyp-ad--layout-split .ipmyp-ad-content,
.ipmyp-ad.ipmyp-ad--media-none.ipmyp-ad--layout-product .ipmyp-ad-content,
.ipmyp-ad.ipmyp-ad--media-none.ipmyp-ad--layout-mosaic .ipmyp-ad-content{grid-template-columns:minmax(0,1fr) auto}
.ipmyp-ad.ipmyp-ad--media-none.ipmyp-ad--layout-split .ipmyp-ad-copy,
.ipmyp-ad.ipmyp-ad--media-none.ipmyp-ad--layout-product .ipmyp-ad-copy,
.ipmyp-ad.ipmyp-ad--media-none.ipmyp-ad--layout-mosaic .ipmyp-ad-copy{grid-column:1;grid-row:1}
.ipmyp-ad.ipmyp-ad--media-none.ipmyp-ad--layout-split .ipmyp-ad-action,
.ipmyp-ad.ipmyp-ad--media-none.ipmyp-ad--layout-product .ipmyp-ad-action,
.ipmyp-ad.ipmyp-ad--media-none.ipmyp-ad--layout-mosaic .ipmyp-ad-action{grid-column:2;grid-row:1;justify-self:end}
/* A narrow sidebar, mobile tool or editor preview uses the *card* width. */
@container (max-width:550px){
  .ipmyp-ad .ipmyp-ad-content{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:center!important;text-align:start;gap:12px}
  .ipmyp-ad .ipmyp-ad-copy,.ipmyp-ad .ipmyp-ad-action,.ipmyp-ad .ipmyp-ad-visual{order:initial!important;grid-column:auto!important;grid-row:auto!important;justify-self:stretch!important;align-self:stretch!important;max-width:100%!important;flex:0 1 auto!important}
  .ipmyp-ad .ipmyp-ad-action{width:100%}
  .ipmyp-ad .ipmyp-ad-visual{width:100%}
  .ipmyp-ad.ipmyp-ad--layout-centered .ipmyp-ad-content,.ipmyp-ad.ipmyp-ad--layout-spotlight .ipmyp-ad-content{text-align:center;align-items:center!important}
  .ipmyp-ad.ipmyp-ad--layout-centered .ipmyp-ad-action,.ipmyp-ad.ipmyp-ad--layout-spotlight .ipmyp-ad-action{width:auto;min-width:min(100%,180px)}
  .ipmyp-ad.ipmyp-ad--layout-editorial .ipmyp-ad-title{font-size:24px}
  .ipmyp-ad.ipmyp-ad--layout-banner .ipmyp-ad-content,.ipmyp-ad.ipmyp-ad--layout-ribbon .ipmyp-ad-content,.ipmyp-ad.ipmyp-ad--layout-ticker .ipmyp-ad-content{flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important}
  .ipmyp-ad.ipmyp-ad--layout-banner .ipmyp-ad-copy,.ipmyp-ad.ipmyp-ad--layout-ribbon .ipmyp-ad-copy,.ipmyp-ad.ipmyp-ad--layout-ticker .ipmyp-ad-copy{flex:1 1 150px!important}
  .ipmyp-ad.ipmyp-ad--layout-banner .ipmyp-ad-action,.ipmyp-ad.ipmyp-ad--layout-ribbon .ipmyp-ad-action,.ipmyp-ad.ipmyp-ad--layout-ticker .ipmyp-ad-action{flex:0 1 auto!important;width:auto}
  .ipmyp-ad.ipmyp-ad--layout-poster .ipmyp-ad-content{min-height:160px!important;justify-content:flex-end!important}
  .ipmyp-ad.ipmyp-ad--layout-magazine .ipmyp-ad-content{text-align:start}
  .ipmyp-ad.ipmyp-ad--layout-product .ipmyp-ad-copy{padding:12px;border:1px solid currentColor;border-radius:12px}
  .ipmyp-ad.ipmyp-ad--layout-mosaic .ipmyp-ad-copy{padding-inline-start:12px;border-inline-start:3px solid currentColor}
  .ipmyp-ad.ipmyp-ad--layout-feature .ipmyp-ad-copy{padding-inline-start:14px;border-inline-start:3px solid currentColor}
  .ipmyp-ad.ipmyp-ad--layout-minimal .ipmyp-ad-content{flex-direction:row!important;flex-wrap:wrap!important}
}

/* Campaign Studio 8.0 — four distinct new layouts, media-aware and scoped. */
.ipmyp-ad.ipmyp-ad--layout-stack .ipmyp-ad-content{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:15px;min-height:190px}
.ipmyp-ad.ipmyp-ad--layout-stack .ipmyp-ad-visual{width:100%;max-width:100%;max-height:230px;overflow:hidden;border-radius:15px}
.ipmyp-ad.ipmyp-ad--layout-stack .ipmyp-ad-visual img{width:100%;max-height:230px;object-fit:cover}
.ipmyp-ad.ipmyp-ad--layout-stack .ipmyp-ad-copy{max-width:68ch}
.ipmyp-ad.ipmyp-ad--layout-stack .ipmyp-ad-title{font-size:clamp(24px,2.5vw,34px);line-height:1.3}
.ipmyp-ad.ipmyp-ad--layout-overlap .ipmyp-ad-content{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:center;gap:6px 18px}
.ipmyp-ad.ipmyp-ad--layout-overlap .ipmyp-ad-visual{grid-column:2;grid-row:1 / 3;width:100%;max-width:none;transform:translateY(7px);border-radius:18px;overflow:hidden}
.ipmyp-ad.ipmyp-ad--layout-overlap .ipmyp-ad-copy{grid-column:1;grid-row:1;z-index:2;padding:18px 0}
.ipmyp-ad.ipmyp-ad--layout-overlap .ipmyp-ad-action{grid-column:1;grid-row:2;justify-self:start}
.ipmyp-ad.ipmyp-ad--layout-rail .ipmyp-ad-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,.27fr);gap:15px;align-items:center}
.ipmyp-ad.ipmyp-ad--layout-rail .ipmyp-ad-copy{grid-column:1;grid-row:1;max-width:100%}
.ipmyp-ad.ipmyp-ad--layout-rail .ipmyp-ad-visual{grid-column:1;grid-row:2;width:100%;max-width:100%;max-height:240px}
.ipmyp-ad.ipmyp-ad--layout-rail .ipmyp-ad-action{grid-column:2;grid-row:1 / 3;justify-self:stretch;text-align:center;min-height:58px}
.ipmyp-ad.ipmyp-ad--layout-signature .ipmyp-ad-content{display:flex;flex-direction:column;align-items:center;text-align:center;gap:15px;min-height:205px;justify-content:center}
.ipmyp-ad.ipmyp-ad--layout-signature .ipmyp-ad-title{font-size:clamp(27px,3vw,43px);line-height:1.24;max-width:24ch;margin-inline:auto}
.ipmyp-ad.ipmyp-ad--layout-signature .ipmyp-ad-copy{max-width:680px}
.ipmyp-ad.ipmyp-ad--layout-signature .ipmyp-ad-visual{width:min(100%,600px);max-width:600px;max-height:250px;overflow:hidden;border-radius:19px}
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-overlap .ipmyp-ad-content{grid-template-columns:1fr 1fr}
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-overlap .ipmyp-ad-copy{grid-column:2;grid-row:1;padding:20px;border-radius:15px;background:rgba(0,0,0,.18)}
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-overlap .ipmyp-ad-action{grid-column:2;grid-row:2}
.ipmyp-ad.ipmyp-ad--media-none.ipmyp-ad--layout-overlap .ipmyp-ad-content{grid-template-columns:minmax(0,1fr) auto}
.ipmyp-ad.ipmyp-ad--media-none.ipmyp-ad--layout-overlap .ipmyp-ad-copy{grid-column:1;grid-row:1}
.ipmyp-ad.ipmyp-ad--media-none.ipmyp-ad--layout-overlap .ipmyp-ad-action{grid-column:2;grid-row:1}
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-rail .ipmyp-ad-content{grid-template-columns:minmax(0,1fr) minmax(170px,.33fr)}
.ipmyp-ad.ipmyp-ad--media-background.ipmyp-ad--layout-rail .ipmyp-ad-action{grid-row:1;grid-column:2}
.ipmyp-ad.ipmyp-ad--media-none.ipmyp-ad--layout-rail .ipmyp-ad-visual{display:none}
.ipmyp-ad.ipmyp-ad--layout-stack .ipmyp-ad-visual img,.ipmyp-ad.ipmyp-ad--layout-signature .ipmyp-ad-visual img{max-width:100%;height:100%;object-fit:cover}
.ipmyp-ad-mount:empty{display:block;min-height:1px}
.ipmyp-ad-mount:not(:empty){margin-block:12px}
.ipmyp-ad-mount>.ipmyp-ad{margin-block:0}
@container(max-width:560px){
 .ipmyp-ad.ipmyp-ad--layout-overlap .ipmyp-ad-content,.ipmyp-ad.ipmyp-ad--layout-rail .ipmyp-ad-content{display:flex;flex-direction:column;align-items:stretch;gap:12px}
 .ipmyp-ad.ipmyp-ad--layout-overlap .ipmyp-ad-visual,.ipmyp-ad.ipmyp-ad--layout-rail .ipmyp-ad-visual{transform:none;max-height:185px}
 .ipmyp-ad.ipmyp-ad--layout-overlap .ipmyp-ad-action,.ipmyp-ad.ipmyp-ad--layout-rail .ipmyp-ad-action{width:100%;align-self:stretch}
 .ipmyp-ad.ipmyp-ad--layout-stack .ipmyp-ad-title,.ipmyp-ad.ipmyp-ad--layout-signature .ipmyp-ad-title{font-size:clamp(21px,6vw,29px)}
}
@media(prefers-reduced-motion:reduce){.ipmyp-ad,.ipmyp-ad *{animation:none!important;transition:none!important}}

/* R136 — Campaign Creative System v2: bounded editorial styling shared by live and preview. */
.ipmyp-ad{
 --ipmyp-ad-title-scale:1;--ipmyp-ad-radius:18px;--ipmyp-ad-layout-title:21px;
 padding:clamp(16px,2.6cqw,28px);border-radius:var(--ipmyp-ad-radius);
 box-shadow:0 9px 28px rgba(21,40,68,.065);line-height:1.65;
}
.ipmyp-ad .ipmyp-ad-title{font-size:calc(var(--ipmyp-ad-layout-title) * var(--ipmyp-ad-title-scale))!important;letter-spacing:-.025em;line-height:1.35;font-weight:800}
.ipmyp-ad .ipmyp-ad-copy p{font-size:13.5px;line-height:1.75;opacity:.92}
.ipmyp-ad .ipmyp-ad-identify{font-weight:700;letter-spacing:.015em;border-color:color-mix(in srgb,currentColor 32%,transparent);border-radius:7px;opacity:.8}
.ipmyp-ad .ipmyp-ad-content{gap:clamp(12px,2.4cqw,26px)}
.ipmyp-ad .ipmyp-ad-badge{border-color:color-mix(in srgb,currentColor 28%,transparent);background:color-mix(in srgb,currentColor 8%,transparent)}
.ipmyp-ad .ipmyp-ad-action{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease;box-shadow:0 5px 14px rgba(15,23,42,.13);min-width:0}
.ipmyp-ad .ipmyp-ad-action:hover{transform:translateY(-1px);filter:brightness(.94)}
.ipmyp-ad--shape-pill .ipmyp-ad-action{border-radius:999px}
.ipmyp-ad--shape-square .ipmyp-ad-action{border-radius:5px}
.ipmyp-ad--shape-rounded .ipmyp-ad-action{border-radius:12px}
.ipmyp-ad.ipmyp-ad--border-none{border-color:transparent;box-shadow:none}
.ipmyp-ad.ipmyp-ad--border-strong{border:2px solid color-mix(in srgb,var(--ipmyp-ad-text) 30%,transparent);box-shadow:0 9px 25px rgba(15,23,42,.055)}
.ipmyp-ad.ipmyp-ad--border-glass{border:1px solid color-mix(in srgb,#fff 65%,var(--ipmyp-ad-text));box-shadow:0 12px 30px rgba(15,23,42,.09),inset 0 1px rgba(255,255,255,.2)}
.ipmyp-ad--align-start .ipmyp-ad-copy{text-align:start}
.ipmyp-ad--align-center .ipmyp-ad-copy{text-align:center}
.ipmyp-ad--align-end .ipmyp-ad-copy{text-align:end}
.ipmyp-ad--fit-cover .ipmyp-ad-visual .ipmyp-ad-image{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover!important}
.ipmyp-ad--fit-contain .ipmyp-ad-visual .ipmyp-ad-image{object-fit:contain!important}
.ipmyp-ad.ipmyp-ad--layout-banner{--ipmyp-ad-layout-title:19px}
.ipmyp-ad.ipmyp-ad--layout-minimal,.ipmyp-ad.ipmyp-ad--layout-ticker{--ipmyp-ad-layout-title:17px}
.ipmyp-ad.ipmyp-ad--layout-editorial,.ipmyp-ad.ipmyp-ad--layout-magazine{--ipmyp-ad-layout-title:27px}
.ipmyp-ad.ipmyp-ad--layout-poster,.ipmyp-ad.ipmyp-ad--layout-spotlight{--ipmyp-ad-layout-title:30px}
.ipmyp-ad.ipmyp-ad--layout-signature{--ipmyp-ad-layout-title:35px}
.ipmyp-ad.ipmyp-ad--layout-stack{--ipmyp-ad-layout-title:28px}
.ipmyp-ad.ipmyp-ad--layout-overlap{--ipmyp-ad-layout-title:25px}
.ipmyp-ad.ipmyp-ad--layout-rail{--ipmyp-ad-layout-title:24px}
.ipmyp-ad.ipmyp-ad--layout-product,.ipmyp-ad.ipmyp-ad--layout-feature{--ipmyp-ad-layout-title:23px}
/* Professional preset finishes: restrained visual motifs rather than flat blocks. */
.ipmyp-ad:is(.ipmyp-ad--preset-clean,.ipmyp-ad--preset-porcelain,.ipmyp-ad--preset-linen,.ipmyp-ad--preset-platinum,.ipmyp-ad--preset-slate,.ipmyp-ad--preset-steel,.ipmyp-ad--preset-sandstone,.ipmyp-ad--preset-glacier):not(.ipmyp-ad--media-background){
 background-image:linear-gradient(145deg,color-mix(in srgb,#fff 22%,transparent),transparent 78%),radial-gradient(circle at 0 0,color-mix(in srgb,var(--ipmyp-ad-button) 9%,transparent),transparent 60%);
}
.ipmyp-ad:is(.ipmyp-ad--preset-ocean,.ipmyp-ad--preset-ice,.ipmyp-ad--preset-cobalt,.ipmyp-ad--preset-skyline,.ipmyp-ad--preset-indigo_pro,.ipmyp-ad--preset-electric,.ipmyp-ad--preset-royal,.ipmyp-ad--preset-orchid,.ipmyp-ad--preset-lavender):not(.ipmyp-ad--media-background){
 background-image:radial-gradient(ellipse at 94% -15%,color-mix(in srgb,#fff 20%,transparent),transparent 55%),linear-gradient(115deg,color-mix(in srgb,var(--ipmyp-ad-button) 12%,transparent),transparent 70%);
}
.ipmyp-ad:is(.ipmyp-ad--preset-midnight,.ipmyp-ad--preset-ink,.ipmyp-ad--preset-aurora,.ipmyp-ad--preset-obsidian,.ipmyp-ad--preset-deepsea,.ipmyp-ad--preset-nebula,.ipmyp-ad--preset-graphite,.ipmyp-ad--preset-violet_ink,.ipmyp-ad--preset-terminal):not(.ipmyp-ad--media-background){
 background-image:radial-gradient(circle at 0 8%,color-mix(in srgb,var(--ipmyp-ad-button) 29%,transparent),transparent 48%),linear-gradient(155deg,color-mix(in srgb,#fff 5%,transparent),transparent 75%);
}
.ipmyp-ad:is(.ipmyp-ad--preset-forest,.ipmyp-ad--preset-teal,.ipmyp-ad--preset-meadow,.ipmyp-ad--preset-mint,.ipmyp-ad--preset-sage,.ipmyp-ad--preset-nordic,.ipmyp-ad--preset-coral_pro,.ipmyp-ad--preset-blush,.ipmyp-ad--preset-rosewood):not(.ipmyp-ad--media-background){
 background-image:radial-gradient(ellipse at 100% 95%,color-mix(in srgb,var(--ipmyp-ad-button) 13%,transparent),transparent 56%),linear-gradient(125deg,color-mix(in srgb,#fff 14%,transparent),transparent 75%);
}
.ipmyp-ad:is(.ipmyp-ad--preset-sunset,.ipmyp-ad--preset-copper,.ipmyp-ad--preset-amber,.ipmyp-ad--preset-citrus,.ipmyp-ad--preset-photo_gold):not(.ipmyp-ad--media-background){
 background-image:radial-gradient(ellipse at 5% 0,color-mix(in srgb,var(--ipmyp-ad-button) 16%,transparent),transparent 60%),linear-gradient(160deg,color-mix(in srgb,#fff 8%,transparent),transparent 80%);
}
.ipmyp-ad:is(.ipmyp-ad--preset-photo_night,.ipmyp-ad--preset-photo_wide,.ipmyp-ad--preset-photo_soft,.ipmyp-ad--preset-photo_slate,.ipmyp-ad--preset-photo_pulse,.ipmyp-ad--preset-photo_editorial):not(.ipmyp-ad--media-background){
 background-image:linear-gradient(120deg,color-mix(in srgb,var(--ipmyp-ad-button) 13%,transparent),transparent 68%);
}
/* Never allow decorative treatment to cover a photograph or reduce legibility. */
.ipmyp-ad.ipmyp-ad--media-background{background-image:none!important}
.ipmyp-ad--media-background .ipmyp-ad-identify{background:rgba(0,0,0,.18);border-color:rgba(255,255,255,.45)}
@container(max-width:550px){
 .ipmyp-ad{padding:15px}
 .ipmyp-ad .ipmyp-ad-title{font-size:calc(min(var(--ipmyp-ad-layout-title),25px) * var(--ipmyp-ad-title-scale))!important}
 .ipmyp-ad .ipmyp-ad-content{gap:12px}
 .ipmyp-ad .ipmyp-ad-action{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.ipmyp-ad .ipmyp-ad-action{transition:none}.ipmyp-ad .ipmyp-ad-action:hover{transform:none}}

/* R137: readable CTA labels on arbitrary approved button colors. */
.ipmyp-ad:not(.ipmyp-ad--button-outline) .ipmyp-ad-action,
.ipmyp-ad:not(.ipmyp-ad--button-outline) .ipmyp-ad-action:hover{color:var(--ipmyp-ad-action-text,#ffffff)!important}

/* R138: discreet but explicit disclosure, compact ad slots; no creative clipping. */
.ipmyp-ad .ipmyp-ad-identify{font-size:9px;line-height:1.35;letter-spacing:.055em;font-weight:750;padding:2px 5px;border-radius:4px;margin-bottom:6px;min-height:0}
.ipmyp-ad-slot .ipmyp-ad:not(.ipmyp-ad--hero):not(.ipmyp-ad--layout-poster){padding:clamp(12px,1.5vw,18px);box-shadow:0 3px 13px rgba(15,23,42,.035)}
.ipmyp-ad-slot .ipmyp-ad:not(.ipmyp-ad--hero) .ipmyp-ad-content{gap:clamp(9px,1.4vw,17px)}
.ipmyp-ad-slot .ipmyp-ad:not(.ipmyp-ad--hero) .ipmyp-ad-action{padding:8px 13px;min-height:40px;font-size:12px}

/* R154: unified, compact and consistently disclosed sponsored placements.
 * Last-layer rules cover every creative preset and all 18 layout choices. */
.ipmyp-ad-mount:empty{display:none!important}
.ipmyp-ad-slot[hidden],.ipmyp-ad-slot:has(>.ipmyp-ad-mount:empty){display:none!important}
.ipmyp-ad-slot{margin-block:12px!important;min-width:0;clear:both}
.ipmyp-ad-slot--after-result{margin-block:12px 0!important}
.ipmyp-ad-slot>.ipmyp-ad-mount>.ipmyp-ad{margin:0!important}
.ipmyp-ad:not(.ipmyp-ad--media-background){margin-block:12px}
.ipmyp-ad{min-width:0;max-width:100%;padding:clamp(11px,1.6cqw,18px)!important;min-height:0!important;line-height:1.55;box-shadow:0 3px 14px rgba(15,23,42,.045);}
.ipmyp-ad .ipmyp-ad-identify{display:inline-flex;align-items:center;justify-content:center;
 font-size:9px!important;font-weight:700!important;letter-spacing:.07em!important;line-height:1.15!important;
 padding:2px 5px!important;margin:0 0 7px!important;border-radius:4px!important;
 min-height:0!important;opacity:.8}
.ipmyp-ad .ipmyp-ad-content{min-height:0!important;gap:clamp(9px,1.4cqw,16px)!important}
.ipmyp-ad .ipmyp-ad-copy{min-width:0}
.ipmyp-ad .ipmyp-ad-copy p{font-size:12px;line-height:1.6;margin-top:4px}
.ipmyp-ad .ipmyp-ad-title{font-size:calc(clamp(16px,2cqw,22px) * var(--ipmyp-ad-title-scale,1))!important;line-height:1.4}
.ipmyp-ad .ipmyp-ad-badge{margin-bottom:5px;padding:2px 7px;font-size:10px}
.ipmyp-ad .ipmyp-ad-image{max-height:130px}
.ipmyp-ad .ipmyp-ad-action{min-height:36px;min-width:0;max-width:100%;padding:7px 12px;font-size:12px;line-height:1.35;box-shadow:0 2px 9px rgba(15,23,42,.08)}
.ipmyp-ad--layout-poster .ipmyp-ad-content,.ipmyp-ad--layout-spotlight .ipmyp-ad-content{min-height:0!important}
.ipmyp-ad--layout-mosaic .ipmyp-ad-visual img{max-height:145px;height:auto}
.ipmyp-ad.ipmyp-ad--media-background{min-height:96px!important}
.ipmyp-ad--layout-banner,.ipmyp-ad--layout-ribbon,.ipmyp-ad--layout-ticker,.ipmyp-ad--layout-minimal{box-shadow:none}
@container(max-width:550px){
 .ipmyp-ad{padding:12px!important}
 .ipmyp-ad .ipmyp-ad-content,.ipmyp-ad.ipmyp-ad--layout-classic .ipmyp-ad-content,
 .ipmyp-ad.ipmyp-ad--layout-banner .ipmyp-ad-content,
 .ipmyp-ad.ipmyp-ad--layout-minimal .ipmyp-ad-content{
   display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important}
 .ipmyp-ad .ipmyp-ad-visual{flex:0 0 auto!important;width:100%;max-width:100%}
 .ipmyp-ad .ipmyp-ad-copy{flex:0 1 auto!important;max-width:100%!important}
 .ipmyp-ad .ipmyp-ad-image{max-height:82px}
 .ipmyp-ad .ipmyp-ad-action{width:100%;align-self:stretch}
 .ipmyp-ad .ipmyp-ad-title{font-size:calc(16px * var(--ipmyp-ad-title-scale,1))!important}
 .ipmyp-ad.ipmyp-ad--media-background{min-height:96px!important}
}
@media(prefers-reduced-motion:reduce){.ipmyp-ad .ipmyp-ad-action{transition:none!important;transform:none!important}}

/* Keep white overlay text legible even when an author selects a low overlay value. */
.ipmyp-ad.ipmyp-ad--media-background:before{background:rgba(4,18,42,max(.42,var(--ipmyp-ad-overlay,.54)))}
.ipmyp-ad-mount>.ipmyp-ad{margin-block:12px!important}
.ipmyp-ad-slot>.ipmyp-ad-mount>.ipmyp-ad{margin:0!important}
