.wdyuh-banners,
.wdyuh-banner-admin,
.wdyuh-banner-access {
    --wdyuh-admin-ink: #111827;
    --wdyuh-admin-muted: #64748b;
    --wdyuh-admin-line: #dbe3ec;
    --wdyuh-admin-panel: #ffffff;
    --wdyuh-admin-accent: #c2410c;
    box-sizing: border-box;
}

.wdyuh-banners *,
.wdyuh-banner-admin *,
.wdyuh-banner-access * { box-sizing: border-box; }

.wdyuh-banners { position: relative; width: 100%; margin: 0 auto 2rem; }
.wdyuh-banners__viewport { overflow: hidden; border-radius: 18px; }
.wdyuh-banners__track { position: relative; }

.wdyuh-banners--slider .wdyuh-banner { display: none; }
.wdyuh-banners--slider .wdyuh-banner.is-active { display: flex; animation: wdyuh-banner-in .35s ease-out; }
.wdyuh-banners--cards .wdyuh-banners__track { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.wdyuh-banners--cards .wdyuh-banner { min-height: 360px; }
.wdyuh-banners--stack .wdyuh-banners__track { display: grid; gap: 1rem; }

.wdyuh-banner {
    position: relative;
    isolation: isolate;
    min-height: clamp(360px, 46vw, 610px);
    overflow: hidden;
    background-color: var(--wdyuh-banner-bg);
    background-position: center;
    background-size: cover;
    color: var(--wdyuh-banner-text);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

.wdyuh-banner--image_left,
.wdyuh-banner--image_right { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 420px; }
.wdyuh-banner--image_right .wdyuh-banner__media { order: 2; }
.wdyuh-banner__media { position: relative; min-height: 300px; }
.wdyuh-banner__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wdyuh-banner__shade { position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, var(--wdyuh-banner-overlay)); }
.wdyuh-banner--image_left .wdyuh-banner__shade,
.wdyuh-banner--image_right .wdyuh-banner__shade,
.wdyuh-banner--text_only .wdyuh-banner__shade { background: transparent; }
.wdyuh-banner__content { align-self: center; width: min(100%, 780px); padding: clamp(2rem, 7vw, 5.5rem); }
.wdyuh-banner--align-center .wdyuh-banner__content { margin-inline: auto; text-align: center; }
.wdyuh-banner--align-right .wdyuh-banner__content { margin-left: auto; text-align: right; }
.wdyuh-banner__eyebrow { margin-bottom: .7rem; font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; opacity: .88; }
.wdyuh-banner__title { color: inherit; margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 4.75rem); line-height: .98; letter-spacing: -.045em; }
.wdyuh-banner__body { max-width: 62ch; font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.55; }
.wdyuh-banner--align-center .wdyuh-banner__body { margin-inline: auto; }
.wdyuh-banner--align-right .wdyuh-banner__body { margin-left: auto; }
.wdyuh-banner__body p:last-child { margin-bottom: 0; }
.wdyuh-banner__button { display: inline-flex; align-items: center; justify-content: center; margin-top: 1.4rem; padding: .9rem 1.3rem; border-radius: 999px; background: var(--wdyuh-banner-button); color: var(--wdyuh-banner-button-text) !important; font-weight: 800; text-decoration: none !important; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); transition: transform .15s ease, box-shadow .15s ease; }
.wdyuh-banner__button:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(0, 0, 0, .28); }
.wdyuh-banners__arrow { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #111827; font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 8px 22px rgba(15,23,42,.22); }
.wdyuh-banners__arrow--previous { left: 1rem; }
.wdyuh-banners__arrow--next { right: 1rem; }
.wdyuh-banners__dots { position: absolute; z-index: 5; left: 50%; bottom: 1rem; display: flex; gap: .5rem; transform: translateX(-50%); }
.wdyuh-banners__dot { width: 10px; height: 10px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.wdyuh-banners__dot.is-active { background: #fff; }

.wdyuh-banner-admin { width: min(1240px, 100%); margin: 2rem auto; color: var(--wdyuh-admin-ink); font-family: inherit; }
.wdyuh-banner-admin__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; padding: 2rem; border-radius: 20px; background: linear-gradient(135deg, #111827, #312e81); color: #fff; }
.wdyuh-banner-admin__header h1 { color: inherit; margin: .25rem 0 .5rem; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.04em; }
.wdyuh-banner-admin__header p { margin: 0; max-width: 720px; color: rgba(255,255,255,.82); }
.wdyuh-banner-admin__kicker { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .17em; color: #fdba74; }
.wdyuh-banner-admin__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.wdyuh-banner-admin__stats > div { display: grid; gap: .25rem; padding: 1.2rem; border: 1px solid var(--wdyuh-admin-line); border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.06); }
.wdyuh-banner-admin__stats strong { font-size: 1.9rem; }
.wdyuh-banner-admin__stats span { color: var(--wdyuh-admin-muted); font-size: .9rem; }
.wdyuh-admin-panel { margin-bottom: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--wdyuh-admin-line); border-radius: 18px; background: var(--wdyuh-admin-panel); box-shadow: 0 12px 30px rgba(15,23,42,.06); }
.wdyuh-admin-panel__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.wdyuh-admin-panel h2 { margin: 0 0 .35rem; color: var(--wdyuh-admin-ink); }
.wdyuh-admin-panel p { margin-top: 0; color: var(--wdyuh-admin-muted); }
.wdyuh-admin-panel--help pre { overflow: auto; padding: 1rem; border-radius: 10px; background: #0f172a; color: #e2e8f0; }
.wdyuh-admin-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .75rem 1.1rem; border: 0; border-radius: 10px; background: var(--wdyuh-admin-accent); color: #fff !important; font: inherit; font-weight: 800; text-decoration: none !important; cursor: pointer; }
.wdyuh-admin-button--secondary { border: 1px solid currentColor; background: transparent; color: inherit !important; }
.wdyuh-banner-admin__header .wdyuh-admin-button--secondary { color: #fff !important; }
.wdyuh-admin-form { display: grid; gap: 1.1rem; }
.wdyuh-admin-form label { display: grid; gap: .45rem; color: #334155; font-size: .88rem; font-weight: 750; }
.wdyuh-admin-form input:not([type="checkbox"]):not([type="color"]),
.wdyuh-admin-form select,
.wdyuh-admin-form textarea { width: 100%; min-height: 45px; padding: .75rem .85rem; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: #111827; font: inherit; font-weight: 400; }
.wdyuh-admin-form textarea { min-height: 130px; resize: vertical; }
.wdyuh-admin-form input[type="color"] { width: 100%; min-height: 45px; padding: 3px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; }
.wdyuh-admin-form small { color: var(--wdyuh-admin-muted); font-weight: 400; }
.wdyuh-form-grid { display: grid; gap: 1rem; }
.wdyuh-form-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wdyuh-form-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wdyuh-form-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wdyuh-checkbox-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.wdyuh-admin-form .wdyuh-check { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.wdyuh-form-actions { display: flex; align-items: flex-end; gap: .75rem; }
.wdyuh-current-image { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 12px; background: #f8fafc; }
.wdyuh-current-image img { width: 160px; height: 90px; object-fit: cover; border-radius: 8px; }
.wdyuh-table-wrap { overflow-x: auto; }
.wdyuh-admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.wdyuh-admin-table th { padding: .8rem; border-bottom: 2px solid #cbd5e1; color: #475569; text-align: left; white-space: nowrap; }
.wdyuh-admin-table td { padding: .9rem .8rem; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.wdyuh-banner-row-title { display: flex; align-items: center; gap: .75rem; min-width: 220px; }
.wdyuh-banner-row-title img { width: 70px; height: 48px; object-fit: cover; border-radius: 6px; background: #e2e8f0; }
.wdyuh-banner-row-title span { display: block; max-width: 240px; margin-top: .2rem; color: var(--wdyuh-admin-muted); font-size: .82rem; }
.wdyuh-status { display: inline-flex; padding: .3rem .55rem; border-radius: 999px; background: #e2e8f0; font-size: .76rem; font-weight: 800; }
.wdyuh-status--active { background: #dcfce7; color: #166534; }
.wdyuh-status--draft { background: #fef3c7; color: #92400e; }
.wdyuh-status--paused { background: #dbeafe; color: #1d4ed8; }
.wdyuh-status--archived { background: #e5e7eb; color: #4b5563; }
.wdyuh-actions { min-width: 150px; }
.wdyuh-actions form { display: inline; }
.wdyuh-actions a,
.wdyuh-actions button { margin: 0 .45rem .35rem 0; padding: 0; border: 0; background: none; color: #9a3412; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.wdyuh-notice { margin-bottom: 1rem; padding: 1rem 1.2rem; border-radius: 10px; font-weight: 700; }
.wdyuh-notice--success { background: #dcfce7; color: #166534; }
.wdyuh-notice--error { background: #fee2e2; color: #991b1b; }
.wdyuh-empty-state { padding: 2rem; border: 1px dashed #94a3b8; border-radius: 12px; color: #475569; text-align: center; }
.wdyuh-banner-access { max-width: 640px; margin: 3rem auto; padding: 2rem; border: 1px solid #dbe3ec; border-radius: 16px; background: #fff; text-align: center; }

@keyframes wdyuh-banner-in { from { opacity: 0; transform: scale(.995); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 900px) {
    .wdyuh-banner-admin__stats { grid-template-columns: repeat(2, 1fr); }
    .wdyuh-form-grid--four,
    .wdyuh-form-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wdyuh-banner--image_left,
    .wdyuh-banner--image_right { grid-template-columns: 1fr; }
    .wdyuh-banner--image_right .wdyuh-banner__media { order: 0; }
}

@media (max-width: 640px) {
    .wdyuh-banner-admin__header { align-items: flex-start; flex-direction: column; }
    .wdyuh-banner-admin__stats,
    .wdyuh-form-grid--two,
    .wdyuh-form-grid--four,
    .wdyuh-form-grid--five { grid-template-columns: 1fr; }
    .wdyuh-banner { min-height: 420px; }
    .wdyuh-banner__content { padding: 2rem 1.5rem 4rem; }
    .wdyuh-banners__arrow { top: auto; bottom: .6rem; transform: none; width: 40px; height: 40px; }
    .wdyuh-banners__dots { bottom: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
    .wdyuh-banners--slider .wdyuh-banner.is-active { animation: none; }
    .wdyuh-banner__button { transition: none; }
}

.wdyuh-banner-diagnostic {
    box-sizing: border-box;
    margin: 1rem auto;
    max-width: 1200px;
    padding: 1rem 1.25rem;
    border: 2px solid #d97706;
    border-radius: 8px;
    background: #fffbeb;
    color: #451a03;
    font-family: system-ui, sans-serif;
}

.wdyuh-banner-diagnostic p {
    margin: .45rem 0 0;
}

.wdyuh-connection-check pre {
    overflow: auto;
    padding: .9rem;
    background: #111827;
    color: #fff;
    border-radius: 6px;
}
