.tiv-site-ad { box-sizing: border-box; margin: 18px auto; text-align: center; color: #b8c6da; font: 12px/1.4 system-ui, sans-serif; }
.tiv-site-ad[hidden] { display: none !important; }
.tiv-site-ad-label { display: block; margin: 0 0 6px; font-size: 10px; letter-spacing: .08em; }
.tiv-site-top { width: min(calc(var(--tiv-unit-width, 728px) + 24px), calc(100% - 24px)); padding: 10px 0 12px; margin: 24px auto; border: 1px solid #71809633; border-radius: 12px; background: #101a2f; }
.tiv-site-ad > iframe { display: block; margin: 0 auto; border: 0; max-width: 100%; }
.tiv-site-bottom { box-sizing: border-box; width: min(1180px, calc(100% - 16px)); margin: 28px auto; }
.tiv-site-rectangle { width: 300px; max-width: 100%; }
.tiv-site-native { width: 100%; padding: 16px 0; border-top: 1px solid #71809633; color: #dce7fa; }
.tiv-site-rail { position: fixed; right: 18px; top: max(82px, calc((100vh - var(--tiv-ad-height, 600px)) / 2)); width: 160px; margin: 0; z-index: 5; }
body.tiv-has-ad-rail { margin-right: 196px; }
.tiv-compact-ads #tivSiteAdsTop { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; width: 100%; padding: 3px 0; background: #0b1220; z-index: 40; }
body.tiv-compact-ads { height: calc(100vh - var(--tiv-bottom-ad-height)); min-height: 0; }
body.tiv-compact-ads #appView, body.tiv-compact-ads #authView, body.tiv-compact-ads #workspaceBoot { height: calc(100vh - var(--tiv-bottom-ad-height)); min-height: 0; }
body.tiv-compact-ads #authView { overflow-y: auto; }
@media (max-width: 1439px) { .tiv-site-rail { display: none !important; } body.tiv-has-ad-rail { margin-right: 0; } }

@media (max-width: 600px) { .tiv-site-top { width: 100%; border: 0; border-radius: 0; background: transparent; padding: 8px 0; margin: 18px auto; } }

/* Empty/loading slots never show a floating Advertisement label or frame. */
.tiv-site-ad:not(.tiv-ad-ready) > .tiv-site-ad-label { visibility: hidden; }
.tiv-site-top:not(.tiv-ad-ready), .tiv-site-native:not(.tiv-ad-ready) { background: transparent; border-color: transparent; }
