.tsheva-ad{box-sizing:border-box;width:100%;max-width:100%;margin:14px 0;border:1px solid rgba(15,23,42,.10);border-radius:18px;background:linear-gradient(135deg,#ffffff,#f8fafc);box-shadow:0 10px 30px rgba(15,23,42,.08);overflow:hidden;font-family:inherit;direction:inherit}.tsheva-ad--public{display:flex;align-items:center;gap:16px;padding:14px}.tsheva-ad__media{width:130px;min-width:130px;aspect-ratio:4/3;border-radius:14px;overflow:hidden;background:#eef2f7}.tsheva-ad__media img{width:100%;height:100%;object-fit:cover;display:block}.tsheva-ad__content{display:flex;flex-direction:column;gap:8px;min-width:0}.tsheva-ad__title{font-size:16px;line-height:1.5;color:#111827}.tsheva-ad__text{margin:0;color:#4b5563;font-size:14px;line-height:1.7}.tsheva-ad__button{display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;padding:9px 14px;border-radius:999px;background:#111827;color:#fff;text-decoration:none;font-weight:700;font-size:13px}.tsheva-ad--fallback{padding:16px;text-align:center;color:#475569;background:repeating-linear-gradient(135deg,#fff,#fff 12px,#f8fafc 12px,#f8fafc 24px)}.tsheva-ad__body{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap}@media(max-width:640px){.tsheva-ad--public{align-items:stretch;flex-direction:column}.tsheva-ad__media{width:100%;min-width:0;aspect-ratio:16/7}.tsheva-ad__button{width:100%}}
.tsheva-ads-auto{width:100%;max-width:1180px;margin:10px auto;padding:0 12px;box-sizing:border-box}.tsheva-ads-auto--sidebar{max-width:360px;margin-inline-start:auto;margin-inline-end:0}.tsheva-ads-auto--bottom{margin-top:22px}.preview-box{padding:12px;border:1px dashed rgba(15,23,42,.18);border-radius:18px;background:#f8fafc}

/* Phase 13 production rendering */
.tsheva-ad--production{position:relative;overflow:hidden}
.tsheva-ad__tracker{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.tsheva-ads-auto{margin:14px 0}
.tsheva-ads-auto--sidebar{max-width:360px}
/* Phase 15 optimized ads */
.tsheva-ad-phase15{position:relative;display:flex;gap:14px;align-items:center;padding:14px;border:1px solid rgba(15,23,42,.1);border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.07);overflow:hidden}.tsheva-ad-phase15>img:not([width="1"]){width:140px;min-width:140px;aspect-ratio:4/3;object-fit:cover;border-radius:14px;background:#eef2f7}.tsheva-ad-body{display:flex;flex-direction:column;gap:8px}.tsheva-ad-body b{font-size:16px;color:#111827}.tsheva-ad-body p{margin:0;color:#475569;line-height:1.7}.tsheva-ad-body a{display:inline-flex;width:max-content;align-items:center;justify-content:center;background:#111827;color:#fff;text-decoration:none;border-radius:999px;padding:9px 14px;font-weight:800}@media(max-width:640px){.tsheva-ad-phase15{flex-direction:column;align-items:stretch}.tsheva-ad-phase15>img:not([width="1"]){width:100%;min-width:0;aspect-ratio:16/8}.tsheva-ad-body a{width:100%}}

/* Phase 17 UI polish for public ad containers */
.tsheva-ad,.tsheva-ads-box{box-sizing:border-box;max-width:100%}.tsheva-ad img,.tsheva-ads-box img{max-width:100%;height:auto;border-radius:14px}.tsheva-ad-placeholder{border:1px dashed rgba(148,163,184,.55);background:linear-gradient(135deg,#f8fafc,#eef2ff);border-radius:18px;padding:18px;color:#64748b;text-align:center}

/* Phase 18 Smart Targeting & Rotation - NO COLOR OVERRIDE
   Important: this block intentionally inherits Phase 17 colors/design tokens. */
.tsheva-ad-phase18{position:relative;display:flex;gap:14px;align-items:center;direction:rtl;overflow:hidden;max-width:100%}
.tsheva-ad-phase18>img:not([width="1"]){width:118px;height:92px;object-fit:cover;border-radius:14px;flex:0 0 auto}
.tsheva-ad-phase18 .tsheva-ad-body{display:flex;flex-direction:column;gap:7px;min-width:0}
.tsheva-ad-phase18 b{font-size:17px;line-height:1.45}
.tsheva-ad-phase18 p{margin:0;font-size:14px;line-height:1.7}
.tsheva-ad-phase18 a{display:inline-flex;width:max-content;max-width:100%;text-decoration:none;border-radius:999px;padding:8px 14px;font-weight:800;font-size:13px}
@media(max-width:640px){.tsheva-ad-phase18{flex-direction:column;align-items:stretch}.tsheva-ad-phase18>img:not([width="1"]){width:100%;height:160px}}


/* Phase 10: Home auto infeed layouts */
.tsheva-ad--home-infeed{grid-column:1/-1;margin:8px 0 14px}
.tsheva-ad--layout-card.tsheva-ad--home-infeed{grid-column:auto;margin:0;align-self:stretch;display:flex;flex-direction:column;padding:0;background:#fff}
.tsheva-ad--layout-card .tsheva-ad__media{width:100%;min-width:0;aspect-ratio:4/5;border-radius:18px 18px 0 0}
.tsheva-ad--layout-card .tsheva-ad__content{padding:12px;gap:7px}
.tsheva-ad--layout-card .tsheva-ad__button{width:100%}
.tsheva-ad--layout-horizontal.tsheva-ad--home-infeed{display:flex;align-items:center;gap:14px;padding:14px}
@media(max-width:640px){.tsheva-ad--layout-horizontal.tsheva-ad--home-infeed{flex-direction:column;align-items:stretch}.tsheva-ad--layout-horizontal.tsheva-ad--home-infeed .tsheva-ad__media{width:100%;min-width:0;aspect-ratio:16/7}}


/* Phase 10 safe no-include auto infeed slots */
.tsheva-auto-infeed-slot{min-width:0;direction:inherit}
.tsheva-auto-infeed-slot--horizontal{grid-column:1 / -1;width:100%}
.tsheva-auto-infeed-slot--card{width:100%}
.tsheva-auto-infeed-slot .tsheva-ad{margin:10px 0}
.tsheva-auto-infeed-slot--card .tsheva-ad{height:100%;margin:0}

/* Phase 27: Global public placements */
.tsheva-global-ad-slot{box-sizing:border-box;width:100%;max-width:1180px;margin:12px auto;padding:0 12px;direction:inherit}
.tsheva-global-ad-slot--header{margin-top:10px;margin-bottom:14px}
.tsheva-global-ad-slot--footer{margin-top:22px;margin-bottom:18px}
.tsheva-global-ad-slot--floating{position:fixed;left:16px;right:16px;bottom:16px;z-index:9990;max-width:520px;margin:0 auto;padding:0;pointer-events:auto}
.tsheva-global-ad-slot:empty{display:none}
@media(max-width:640px){.tsheva-global-ad-slot{padding:0 10px}.tsheva-global-ad-slot--floating{left:10px;right:10px;bottom:10px}}
