/* Content zones (neutral class names — avoid ad-blocker cosmetic filters) */
.dfz-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 1rem 0;
}

.dfz-mark {
    display: flex;
    justify-content: center;
    margin: 0 0 .35rem;
    padding: 0;
    text-align: center;
    line-height: 0;
    background: none;
}

.dfz-mark-img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    vertical-align: top;
    animation: dfz-mark-flash 1.1s ease-in-out infinite;
}

@keyframes dfz-mark-flash {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .45;
        transform: scale(.97);
    }
}

.dfz {
    margin: 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.dfz-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.dfz-u {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.dfz-img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: var(--radius-sm, 8px);
}

.dfz-lk {
    display: inline-block;
    max-width: 100%;
    text-decoration: none;
}

.dfz-tx,
.dfz-tx-lk {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.25rem;
    background: var(--color-bg, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-sm, 8px);
    text-decoration: none;
    color: var(--color-text, inherit);
    text-align: left;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dfz-tx-title {
    display: block;
    margin-bottom: .35rem;
    color: var(--color-text, inherit);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dfz-tx-body {
    margin: 0;
    font-size: .9375rem;
    color: var(--color-text-muted, #64748b);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dfz-tx-html {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.25rem;
    background: var(--color-bg, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-sm, 8px);
    color: var(--color-text, #18181b);
    text-align: left;
    font-size: .9375rem;
    line-height: 1.5;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: auto;
}

.dfz-vid-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 640px;
    margin: 0 auto;
    border-radius: var(--radius-sm, 8px);
}

.dfz-vid-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.dfz-vid {
    max-width: 100%;
    border-radius: var(--radius-sm, 8px);
}

.dfz-raw {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 90px;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dfz-raw img,
.dfz-raw video,
.dfz-raw iframe,
.dfz-raw ins {
    max-width: 100%;
}

.dfz-raw-isolated {
    min-height: 0;
    line-height: 0;
}

.dfz-script-frame {
    border: 0;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    background: transparent;
}

.dfz-u + .dfz-u {
    margin-top: .75rem;
}

.dfz-pop-tx {
    padding-top: .25rem;
}

.dfz-pop-tx .dfz-tx-title {
    display: block;
    margin-bottom: .5rem;
    font-size: 1.125rem;
}

.result-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.dfz-bar-h {
    background: var(--color-bg, #f8fafc);
    border-bottom: 1px solid var(--color-border, #e2e8f0);
    padding: .5rem 0;
}

.dfz-bar-f {
    background: var(--color-bg, #f8fafc);
    border-top: 1px solid var(--color-border, #e2e8f0);
    padding: .75rem 0;
}

.dfz-bar-h .dfz-wrap,
.dfz-bar-f .dfz-wrap {
    margin: 0;
}

.dfz-bar-h .dfz[data-dfp="hdr"],
.dfz-bar-f .dfz[data-dfp="ftr"] {
    padding: .75rem 0;
}

.hero-main .dfz-wrap {
    text-align: left;
}

.hero-main .dfz .dfz-u {
    display: block;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 991px) {
    .hero-side-slot {
        display: none;
    }
}

@media (min-width: 992px) {
    .result-layout.has-side-slot {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 2rem;
        align-items: stretch;
    }
}

.result-side-slot {
    position: relative;
    align-self: stretch;
    min-height: 100%;
}

.result-side-inner {
    position: sticky;
    top: calc(var(--header-height, 112px) + 1rem);
    z-index: 20;
    max-height: calc(100vh - var(--header-height, 112px) - 2rem);
    overflow: auto;
}

.result-side-slot .dfz,
.result-main .dfz {
    text-align: left;
}

.result-side-slot .dfz .dfz-u {
    display: block;
    width: 100%;
    max-width: 100%;
}

.hero-side-slot .dfz-wrap .dfz {
    background: var(--color-bg, #f8fafc);
    border: 1px dashed var(--color-border, #e2e8f0);
    border-radius: var(--radius-sm, 8px);
    padding: 1rem;
    min-height: 280px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
}

.hero-side-slot .dfz-wrap .dfz-mark {
    margin-bottom: .45rem;
}

.hero-side-slot .dfz-u,
.result-side-slot .dfz-u,
.hero-main .dfz-u,
.result-main .dfz-u,
.dfz-bar-h .dfz-u,
.dfz-bar-f .dfz-u {
    width: 100%;
    max-width: 100%;
}

.hero-side-slot .dfz-tx,
.hero-side-slot .dfz-tx-lk,
.hero-side-slot .dfz-tx-html {
    background: var(--color-surface, #fff);
}

.cz-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.cz-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cz-modal {
    background: var(--color-surface, #fff);
    color: var(--color-text, #18181b);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .25);
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--color-border, #e4e4e7);
}

@media (min-width: 768px) {
    .cz-modal.has-side-slot {
        grid-template-columns: 1fr 280px;
    }
}

.cz-modal-main {
    padding: 1.5rem;
}

.cz-modal-main h3 {
    color: var(--color-text, #18181b);
    margin-bottom: .5rem;
    font-size: 1.25rem;
}

.cz-modal-main p {
    color: var(--color-text-muted, #71717a);
    margin: 0;
}

.cz-modal-side {
    background: var(--color-bg, #f4f4f5);
    border-top: 1px solid var(--color-border, #e4e4e7);
    padding: 1rem;
    color: var(--color-text, #18181b);
    min-width: 0;
    overflow: hidden;
}

.cz-modal-side .dfz,
.cz-modal-side .dfz-u {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .cz-modal-side {
        border-top: 0;
        border-left: 1px solid var(--color-border, #e4e4e7);
    }
}

.cz-modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-bg, #f4f4f5);
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    color: var(--color-text, #18181b);
}

.cz-modal-close:hover {
    background: var(--color-border, #e4e4e7);
}

.cz-modal-wrap {
    position: relative;
}

.cz-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.cz-modal-main .btn-secondary {
    background: var(--color-bg, #f4f4f5);
    color: var(--color-text, #18181b);
    border: 2px solid var(--color-border, #e4e4e7);
}

.cz-modal-main .btn-secondary:hover {
    background: var(--color-surface, #fff);
    border-color: var(--color-primary, #2563eb);
}

.cz-modal-countdown {
    font-size: .875rem;
    color: var(--color-text-muted, #71717a);
    margin-top: .5rem;
}

.cz-layer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .65);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.cz-layer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cz-layer {
    background: var(--color-surface, #fff);
    color: var(--color-text, #18181b);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
    border: 1px solid var(--color-border, #e4e4e7);
}

.cz-layer-body,
.cz-layer-body p,
.cz-layer-body h1,
.cz-layer-body h2,
.cz-layer-body h3,
.cz-layer-body h4,
.cz-layer-body li,
.cz-layer-body span {
    color: var(--color-text, #18181b);
}

.cz-layer-body a {
    color: var(--color-primary, #2563eb);
}

.cz-layer-close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--color-bg, #f4f4f5);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 1;
    color: var(--color-text, #18181b);
}

.cz-layer-close:hover {
    background: var(--color-border, #e4e4e7);
}

.cz-layer-overlay-iframe {
    padding: 1.25rem;
}

.cz-layer-iframe-dialog {
    max-width: min(96vw, 820px);
    padding: 0;
    overflow: hidden;
}

.cz-layer-iframe-dialog .cz-label {
    position: absolute;
    top: .5rem;
    left: .75rem;
    z-index: 2;
    margin: 0;
    font-size: .625rem;
    opacity: .85;
}

.cz-layer-iframe-dialog .cz-layer-close {
    z-index: 3;
}

.cz-layer-iframe-wrap {
    width: 100%;
    line-height: 0;
    background: #fff;
}

.cz-layer-iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    background: #fff;
}

.cz-layer-text .dfz-tx-title {
    display: block;
    margin-bottom: .5rem;
    font-size: 1.125rem;
}

.cz-label {
    display: block;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-muted, #94a3b8);
    margin-bottom: .35rem;
}

.cz-map-assign-table select {
    width: 100%;
    max-width: 420px;
}

.cz-code-textarea {
    width: 100%;
    max-width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .8125rem;
    line-height: 1.45;
}

.cz-map-form {
    margin-bottom: 1rem;
}
