.tr-am-ad {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: var(--tr-am-min-height, 120px);
    margin: 30px 0;
    padding: 14px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    background: #fbfcfe;
    border-top: 1px solid #e6e9f0;
    border-bottom: 1px solid #e6e9f0;
    overflow: hidden;
    clear: both;
}
.tr-tool-grid > .tr-am-ad {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}
.tr-am-ad__label {
    display: block;
    margin: 0 0 8px;
    color: #7a8494;
    font: 500 10px/1.2 Inter, system-ui, sans-serif;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}
.tr-am-ad__body {
    box-sizing: border-box;
    width: 100%;
    min-width: 120px;
    display: block;
}
.tr-am-ad__body > ins.adsbygoogle {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 120px;
}
.tr-am-ad__placeholder {
    width: min(100%, 820px);
    min-height: 86px;
    margin-inline: auto;
    border: 1px dashed #aeb7c7;
    border-radius: 10px;
    background: repeating-linear-gradient(135deg, #f7f8fb, #f7f8fb 10px, #f0f2f7 10px, #f0f2f7 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #667085;
    font-family: Inter, system-ui, sans-serif;
}
.tr-am-ad__placeholder strong { color: #344054; font-size: 13px; }
.tr-am-ad__placeholder span { font-size: 11px; }

/* Google documents data-ad-status="unfilled" as the supported signal for hiding
   unfilled in-page ads. The wrapper class also removes the reserved blank row. */
.tr-am-ad ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.tr-am-ad.tr-am-ad--collapsed {
    display: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
.tr-am-debug-active .tr-am-ad.tr-am-ad--debug.tr-am-ad--collapsed {
    display: flex !important;
    min-height: 58px !important;
    margin: 16px 0 !important;
    padding: 10px !important;
    border: 1px dashed #e11d48 !important;
    background: #fff1f2;
}
.tr-am-ad__debug {
    display: none;
    margin: 8px auto 0;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font: 600 11px/1.35 Inter, system-ui, sans-serif;
    text-align: center;
}
.tr-am-debug-active .tr-am-ad__debug { display: inline-flex; align-self: center; }
.tr-am-ad--filled .tr-am-ad__debug { background: #166534; }
.tr-am-ad--unfilled .tr-am-ad__debug,
.tr-am-ad--no-response .tr-am-ad__debug,
.tr-am-ad--error .tr-am-ad__debug { background: #9f1239; }

.tr-am-preview-notice {
    position: fixed;
    z-index: 99999;
    right: 16px;
    bottom: 16px;
    max-width: 340px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    box-shadow: 0 12px 30px rgba(17,24,39,.2);
    font: 500 12px/1.4 Inter, system-ui, sans-serif;
}
@media (max-width: 680px) {
    .tr-am-ad {
        min-height: var(--tr-am-min-height-mobile, 110px);
        margin: 22px 0;
        padding-left: 6px;
        padding-right: 6px;
    }
    .tr-am-ad__placeholder { min-height: 78px; border-radius: 8px; }
    .tr-am-preview-notice { left: 10px; right: 10px; bottom: 10px; max-width: none; }
}
