:root {
    --jb-accent: #2563eb;
    --jb-overlay: #0f172a;
    --jb-overlay-opacity: .82;
}

html.jb-locked,
html.jb-locked body {
    overflow: hidden !important;
}

#jb-canary-box {
    position: absolute !important;
    left: -10000px !important;
    top: -10000px !important;
    width: 10px !important;
    height: 10px !important;
    pointer-events: none !important;
}

.jb-shade {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    background: var(--jb-overlay);
    opacity: var(--jb-overlay-opacity);
    backdrop-filter: blur(4px);
}

.jb-shade.jb-full {
    backdrop-filter: none;
}

.jb-panel {
    position: fixed;
    z-index: 2147483601;
    inset: 50% auto auto 50%;
    width: min(92vw, 560px);
    transform: translate(-50%, -50%);
    background: #fff;
    color: #0f172a;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .32);
}

.jb-panel.jb-full {
    width: min(92vw, 760px);
}

.jb-panel.jb-notice {
    inset: auto 22px 22px auto;
    width: min(92vw, 460px);
    transform: none;
}

.jb-panel.jb-notice .jb-panel-inner {
    padding: 24px;
}

.jb-panel.jb-notice h2 {
    font-size: 26px;
}

.jb-panel-inner {
    padding: clamp(26px, 5vw, 48px);
}

.jb-kicker,
.jb-rv-label {
    display: inline-flex;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: var(--jb-accent);
}

.jb-panel h2 {
    margin: 12px 0 4px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
}

.jb-panel h3 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 600;
    color: #475569;
}

.jb-panel p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #475569;
}

.jb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.jb-button,
.jb-rv-cta {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 11px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.jb-primary,
.jb-rv-cta {
    background: var(--jb-accent);
    color: #fff;
}

.jb-secondary {
    background: #fff;
    border-color: #cbd5e1;
    color: #0f172a;
}

.jb-button:focus-visible,
.jb-rv-cta:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--jb-accent) 35%, transparent);
    outline-offset: 2px;
}

.jb-rv-slot {
    width: 100%;
}

.jb-rv-card {
    box-sizing: border-box;
    width: min(100%, 760px);
    margin: 18px auto;
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, .08);
}

.jb-rv-card[hidden] { display: none !important; }

.jb-rv-card > img {
    width: 140px;
    max-height: 110px;
    object-fit: cover;
    border-radius: 10px;
}

.jb-rv-label {
    grid-column: 1 / -1;
}

.jb-rv-copy strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.jb-rv-copy p {
    margin: 0 0 12px;
    color: #475569;
    line-height: 1.5;
}

.jb-global-recovery {
    position: fixed;
    z-index: 2147483599;
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
    max-width: 920px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .jb-panel { border-radius: 16px; }
    .jb-actions { flex-direction: column; }
    .jb-button { width: 100%; }
    .jb-rv-card { grid-template-columns: 1fr; }
    .jb-rv-card > img { width: 100%; max-height: 180px; }
}

#jb-dynamic-baits {
    position: absolute !important;
    left: -10000px !important;
    top: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: visible !important;
    pointer-events: none !important;
}

#jb-dynamic-baits > * {
    position: absolute !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
}

.jb-test-status {
    position: fixed;
    z-index: 2147483646;
    top: 18px;
    right: 18px;
    max-width: min(420px, calc(100vw - 36px));
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 10px 35px rgba(15, 23, 42, .22);
    font: 600 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jb-test-detected { border-left: 4px solid #dc2626; }
.jb-test-clear { border-left: 4px solid #16a34a; }
