/* Final ownership for Checker alignment, capture states and Hub pagination geometry. */

/* Checker analysis: a single centered shield frame with a Liquid orbit. */
body.kb-surface-checker .kb-checker-analysis-loading {
    place-items: center !important;
}
body.kb-surface-checker .kb-checker-analysis-card {
    justify-items: center !important;
    text-align: center !important;
}
body.kb-surface-checker .kb-checker-analysis-card .kb-checker-analysis-spinner {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 92px !important;
    height: 92px !important;
    min-width: 92px !important;
    min-height: 92px !important;
    margin-inline: auto !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(255,255,255,.05) 0, rgba(255,255,255,.014) 44%, transparent 70%) !important;
    filter: drop-shadow(0 14px 28px rgba(0,0,0,.24)) !important;
    overflow: visible !important;
}
body.kb-surface-checker .kb-checker-analysis-mark {
    position: relative !important;
    z-index: 2 !important;
    display: grid !important;
    place-items: center !important;
    width: 58px !important;
    height: 58px !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 0 26px rgba(255,255,255,.045) !important;
    color: #f0f0f3 !important;
}
body.kb-surface-checker .kb-checker-analysis-mark::before {
    content: "" !important;
    position: absolute !important;
    inset: 7px !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
}
body.kb-surface-checker .kb-checker-analysis-mark::after {
    content: "" !important;
    position: absolute !important;
    z-index: -1 !important;
    inset: -17px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(255,255,255,.1), transparent 67%) !important;
    filter: blur(7px) !important;
    pointer-events: none !important;
}
body.kb-surface-checker .kb-checker-analysis-mark svg {
    width: 29px !important;
    height: 29px !important;
    filter: drop-shadow(0 0 7px rgba(255,255,255,.18)) !important;
}
body.kb-surface-checker .kb-checker-analysis-orbit {
    position: absolute !important;
    inset: -2px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: conic-gradient(from 15deg, transparent 0 46%, rgba(255,255,255,.07) 56%, rgba(255,255,255,.95) 71%, rgba(255,255,255,.2) 82%, transparent 94%) !important;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)) !important;
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)) !important;
    filter: drop-shadow(0 0 9px rgba(255,255,255,.25)) !important;
    animation: kbRuntimeLiquidOrbit 1.35s linear infinite !important;
}
body.kb-surface-checker .kb-checker-analysis-spinner::before,
body.kb-surface-checker .kb-checker-analysis-spinner::after {
    content: "" !important;
    position: absolute !important;
    border: 1px solid rgba(255,255,255,.055) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
}
body.kb-surface-checker .kb-checker-analysis-spinner::before { inset: 9px !important; }
body.kb-surface-checker .kb-checker-analysis-spinner::after { inset: 18px !important; opacity: .72 !important; }
@keyframes kbRuntimeLiquidOrbit { to { transform: rotate(360deg); } }
html[data-kb-theme="light"] body.kb-surface-checker .kb-checker-analysis-mark {
    border-color: rgba(25,25,31,.18) !important;
    color: #202126 !important;
    box-shadow: inset 0 0 0 1px rgba(25,25,31,.025), 0 0 22px rgba(52,58,78,.04) !important;
}
html[data-kb-theme="light"] body.kb-surface-checker .kb-checker-analysis-orbit {
    background: conic-gradient(from 15deg, transparent 0 46%, rgba(30,31,38,.07) 56%, rgba(30,31,38,.78) 71%, rgba(30,31,38,.16) 82%, transparent 94%) !important;
    filter: drop-shadow(0 0 7px rgba(35,39,54,.13)) !important;
}

/* Pure failures: remove holographic leftovers and optically center icon, heading and copy. */
body.kb-surface-checker .kb-checker-result-layer.kb-checker-pure-error {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 26px !important;
    width: 100% !important;
    min-height: calc(100dvh - 112px) !important;
    margin: 0 !important;
    padding: max(74px, env(safe-area-inset-top, 0px)) 0 max(126px, calc(env(safe-area-inset-bottom, 0px) + 102px)) !important;
}
body.kb-surface-checker .kb-checker-result-layer.kb-checker-pure-error > * {
    width: min(100%, 660px) !important;
    margin-inline: auto !important;
}
body.kb-surface-checker .kb-checker-error-result {
    width: min(100%, 620px) !important;
    margin: 0 auto !important;
    border: 0 !important;
    border-radius: 30px !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}
body.kb-surface-checker .kb-checker-error-result::before,
body.kb-surface-checker .kb-checker-error-result::after,
body.kb-surface-checker .kb-checker-error-result > .animated-bg-glow {
    content: none !important;
    display: none !important;
}
body.kb-surface-checker .kb-checker-error-panel {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 28px 26px !important;
    border: 0 !important;
    border-radius: 28px !important;
    background: linear-gradient(145deg, rgba(248,113,113,.13), rgba(248,113,113,.035) 62%), rgba(31,28,33,.97) !important;
    box-shadow: inset 0 0 0 1px rgba(248,113,113,.2), inset 0 1px 0 rgba(255,255,255,.07), 0 22px 52px rgba(0,0,0,.3) !important;
    -webkit-backdrop-filter: blur(24px) saturate(135%) !important;
    backdrop-filter: blur(24px) saturate(135%) !important;
}
body.kb-surface-checker .kb-checker-error-row,
body.kb-surface-checker .kb-checker-error-panel > .flex {
    display: grid !important;
    grid-template-columns: 58px minmax(0,1fr) !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
}
body.kb-surface-checker .kb-checker-error-row > *,
body.kb-surface-checker .kb-checker-error-panel > .flex > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.kb-surface-checker .kb-checker-error-panel > .flex > div:last-child {
    display: grid !important;
    align-content: center !important;
    min-width: 0 !important;
    width: 100% !important;
    text-align: left !important;
}
body.kb-surface-checker .kb-checker-error-panel h3 {
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1.18 !important;
    text-align: left !important;
}
body.kb-surface-checker .kb-checker-error-panel p {
    max-width: 500px !important;
    margin: 7px 0 0 !important;
    color: #d9b1b5 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
}
body.kb-surface-checker .kb-checker-error-panel .flex-shrink-0 {
    display: grid !important;
    place-items: center !important;
    width: 58px !important;
    height: 58px !important;
    margin: 0 !important;
    border: 1px solid rgba(248,113,113,.24) !important;
    background: rgba(248,113,113,.1) !important;
    box-shadow: 0 0 26px rgba(248,113,113,.09) !important;
}
html[data-kb-theme="light"] body.kb-surface-checker .kb-checker-error-panel {
    background: linear-gradient(145deg, #fff, rgba(255,240,242,.96)) !important;
    box-shadow: inset 0 0 0 1px rgba(185,45,57,.18), inset 0 1px 0 #fff, 0 20px 46px rgba(62,42,48,.13) !important;
}
html[data-kb-theme="light"] body.kb-surface-checker .kb-checker-error-panel p { color: #7d4249 !important; }

/* Cloudflare owns a fixed-size inner wrapper; center every level rather than only the outer slot. */
body.kb-surface-checker .kb-checker-human-content,
body.kb-surface-checker .kb-checker-human-content > div:not(.kb-checker-human-status),
body.kb-surface-checker .kb-checker-human-widget,
body.kb-surface-checker #turnstile-widget.kb-turnstile-centered {
    justify-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}
body.kb-surface-checker .kb-checker-human-widget,
body.kb-surface-checker #turnstile-widget.kb-turnstile-centered {
    box-sizing: border-box !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    overflow: visible !important;
}
body.kb-surface-checker .kb-turnstile-centered-child,
body.kb-surface-checker .kb-checker-human-widget > div,
body.kb-surface-checker .kb-checker-human-widget iframe,
body.kb-surface-checker .kb-turnstile-centered-frame {
    display: block !important;
    justify-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
}

/* Hub: remove measured-height clipping and keep one centered terminal control. */
body.kb-surface-hub #keybox-list .kb-hub-list-viewport {
    height: auto !important;
    min-height: 300px !important;
    overflow: visible !important;
    transition: none !important;
}
body.kb-surface-hub #keybox-list .kb-hub-content-wrapper {
    min-height: 0 !important;
    overflow: visible !important;
}
body.kb-surface-hub #keybox-list .kb-keybox-pagination.kb-keybox-pagination-slot { display: block !important; }
body.kb-surface-hub #keybox-list .kb-keybox-pagination,
body.kb-surface-hub #keybox-list .kb-hub-pagination {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    min-height: 88px !important;
    padding: 32px 0 12px !important;
    overflow: visible !important;
}
body.kb-surface-hub #keybox-list .kb-keybox-pagination > .kb-keybox-pagination-slot,
body.kb-surface-hub #keybox-list .kb-hub-pagination-slot {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-rows: 52px !important;
    place-items: center !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    overflow: visible !important;
}
body.kb-surface-hub #keybox-list .kb-keybox-pagination-slot > button.kb-load-more,
body.kb-surface-hub #keybox-list .kb-keybox-pagination-slot > p.kb-list-end-state {
    grid-area: 1 / 1 !important;
    align-self: center !important;
    justify-self: center !important;
    margin: 0 !important;
}
body.kb-surface-hub #keybox-list button.kb-load-more {
    position: relative !important;
    width: auto !important;
    min-width: 188px !important;
    height: 46px !important;
    min-height: 46px !important;
    overflow: hidden !important;
}
body.kb-surface-hub #keybox-list .kb-load-more-state.kb-load-more,
body.kb-surface-hub #keybox-list .kb-load-more-copy.kb-load-more {
    grid-column: auto !important;
    grid-row: auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
}
body.kb-surface-hub #keybox-list button.kb-load-more[aria-busy="false"] > .kb-load-more-state:first-child {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
body.kb-surface-hub #keybox-list button.kb-load-more[aria-busy="false"] > .kb-load-more-state:last-child {
    opacity: 0 !important;
    transform: translateY(-12px) !important;
    pointer-events: none !important;
}
body.kb-surface-hub #keybox-list button.kb-load-more[aria-busy="true"] > .kb-load-more-state:first-child {
    opacity: 0 !important;
    transform: translateY(12px) !important;
    pointer-events: none !important;
}
body.kb-surface-hub #keybox-list button.kb-load-more[aria-busy="true"] > .kb-load-more-state:last-child {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
body.kb-surface-hub #keybox-list p.kb-list-end-state {
    width: max-content !important;
    max-width: calc(100vw - 40px) !important;
    min-height: 40px !important;
    padding: 10px 16px !important;
    white-space: nowrap !important;
    text-align: center !important;
}

@media (max-width: 560px) {
    body.kb-surface-checker .kb-checker-result-layer.kb-checker-pure-error {
        min-height: calc(100dvh - 96px) !important;
        gap: 22px !important;
        padding: max(56px, env(safe-area-inset-top, 0px)) 0 max(128px, calc(env(safe-area-inset-bottom, 0px) + 104px)) !important;
    }
    body.kb-surface-checker .kb-checker-error-panel { padding: 25px 20px !important; border-radius: 26px !important; }
    body.kb-surface-checker .kb-checker-error-row,
    body.kb-surface-checker .kb-checker-error-panel > .flex {
        grid-template-columns: minmax(0,1fr) !important;
        justify-items: center !important;
        gap: 13px !important;
        text-align: center !important;
    }
    body.kb-surface-checker .kb-checker-error-panel > .flex > div:last-child {
        justify-items: center !important;
        text-align: center !important;
    }
    body.kb-surface-checker .kb-checker-error-panel h3,
    body.kb-surface-checker .kb-checker-error-panel p { text-align: center !important; }
    body.kb-surface-checker .kb-checker-error-panel p { margin-inline: auto !important; font-size: 14px !important; }
    body.kb-surface-hub #keybox-list .kb-keybox-pagination,
    body.kb-surface-hub #keybox-list .kb-hub-pagination { min-height: 82px !important; padding-top: 28px !important; }
}

@media (prefers-reduced-motion: reduce) {
    body.kb-surface-checker .kb-checker-analysis-orbit { animation: none !important; transform: rotate(28deg) !important; }
}
