.contextual-docs-helper {
    --helper-ink: #f8fafc;
    --helper-copy: #cbd5e1;
    --helper-muted: #94a3b8;
    --helper-panel: #071522;
    --helper-panel-deep: #020a12;
    --helper-cyan: #67e8f9;
    --helper-gold: #facc15;
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    color: var(--helper-ink);
    font-family: "Manrope", "Avenir Next", sans-serif;
}

.contextual-docs-helper *,
.contextual-docs-helper *::before,
.contextual-docs-helper *::after {
    box-sizing: border-box;
}

.contextual-docs-helper__launcher {
    position: relative;
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: .72rem;
    padding: .58rem .72rem .58rem .58rem;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, .55);
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(250, 204, 21, .22), transparent 42%),
        linear-gradient(135deg, #0c4a6e, #071522 62%, #132238);
    box-shadow: 0 18px 52px rgba(2, 6, 23, .58), 0 0 0 1px rgba(255, 255, 255, .05) inset;
    cursor: pointer;
    isolation: isolate;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.contextual-docs-helper__launcher::after {
    position: absolute;
    inset: -80% auto -80% -38%;
    z-index: -1;
    width: 42%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    content: "";
    transform: rotate(18deg);
    animation: helper-sheen 8s ease-in-out infinite;
}

.contextual-docs-helper__launcher:hover,
.contextual-docs-helper__launcher:focus-visible,
.contextual-docs-helper.is-open .contextual-docs-helper__launcher {
    border-color: var(--helper-gold);
    box-shadow: 0 22px 58px rgba(2, 6, 23, .68), 0 0 30px rgba(103, 232, 249, .14);
    transform: translateY(-2px);
}

.contextual-docs-helper__launcher:focus-visible,
.contextual-docs-helper__panel button:focus-visible,
.contextual-docs-helper__panel a:focus-visible,
.contextual-docs-helper__panel input:focus-visible {
    outline: 3px solid var(--helper-gold);
    outline-offset: 3px;
}

.contextual-docs-helper__spark {
    display: grid;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    place-items: center;
    border-radius: 15px;
    color: #082f49;
    background: linear-gradient(135deg, #fef08a, var(--helper-gold) 45%, var(--helper-cyan));
    box-shadow: 0 8px 24px rgba(250, 204, 21, .24);
    font-size: 1.05rem;
}

.contextual-docs-helper__launcher-copy {
    min-width: 0;
    text-align: left;
}

.contextual-docs-helper__launcher-copy small,
.contextual-docs-helper__launcher-copy strong {
    display: block;
    color: #fff;
}

.contextual-docs-helper__launcher-copy small {
    color: #bae6fd;
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contextual-docs-helper__launcher-copy strong {
    margin-top: .05rem;
    font-size: .95rem;
    font-weight: 900;
}

.contextual-docs-helper__shortcut {
    padding: .28rem .42rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    color: #e2e8f0;
    background: rgba(2, 6, 23, .48);
    font-size: .61rem;
    font-weight: 850;
    letter-spacing: .03em;
}

.contextual-docs-helper__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + .8rem);
    display: flex;
    width: min(430px, calc(100vw - 2rem));
    max-height: min(730px, calc(100vh - 7rem));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, .34);
    border-radius: 25px;
    color: var(--helper-ink);
    background:
        radial-gradient(circle at 92% 0, rgba(14, 165, 233, .2), transparent 15rem),
        radial-gradient(circle at 0 35%, rgba(250, 204, 21, .09), transparent 14rem),
        linear-gradient(155deg, #0b2032, var(--helper-panel) 52%, var(--helper-panel-deep));
    box-shadow: 0 30px 90px rgba(2, 6, 23, .82), 0 0 0 1px rgba(255, 255, 255, .04) inset;
    animation: helper-arrive .22s ease-out both;
}

.contextual-docs-helper__panel[hidden] {
    display: none !important;
}

.contextual-docs-helper__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem .78rem;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.contextual-docs-helper__header span {
    color: var(--helper-cyan);
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.contextual-docs-helper__header h2 {
    margin: .18rem 0 0;
    color: #fff;
    font-size: 1.26rem;
    font-weight: 950;
    line-height: 1.2;
}

.contextual-docs-helper__header button {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 11px;
    color: #f8fafc;
    background: rgba(15, 23, 42, .78);
    cursor: pointer;
}

.contextual-docs-helper__header button:hover {
    border-color: #f87171;
    color: #fff;
    background: #7f1d1d;
}

.contextual-docs-helper__current {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .78rem;
    margin: .85rem 1rem .2rem;
    padding: .85rem;
    border: 1px solid rgba(250, 204, 21, .38);
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(135deg, rgba(250, 204, 21, .15), rgba(14, 165, 233, .11));
    text-decoration: none;
}

.contextual-docs-helper__current:hover {
    border-color: var(--helper-gold);
    color: #fff;
    background: linear-gradient(135deg, rgba(250, 204, 21, .23), rgba(14, 165, 233, .18));
}

.contextual-docs-helper__current-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    color: #082f49;
    background: var(--helper-gold);
}

.contextual-docs-helper__current small,
.contextual-docs-helper__current strong,
.contextual-docs-helper__current em {
    display: block;
}

.contextual-docs-helper__current small {
    color: #fde68a;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.contextual-docs-helper__current strong {
    margin-top: .08rem;
    color: #fff;
    font-size: .91rem;
    font-weight: 900;
}

.contextual-docs-helper__current em {
    display: -webkit-box;
    margin-top: .18rem;
    overflow: hidden;
    color: #cbd5e1;
    font-size: .72rem;
    font-style: normal;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.contextual-docs-helper__search {
    padding: .65rem 1rem .5rem;
}

.contextual-docs-helper__search label {
    display: block;
    margin-bottom: .38rem;
    color: #dbeafe;
    font-size: .72rem;
    font-weight: 850;
}

.contextual-docs-helper__search > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    min-height: 43px;
    padding: 0 .72rem;
    border: 1px solid rgba(148, 163, 184, .34);
    border-radius: 13px;
    color: #7dd3fc;
    background: #030d18;
}

.contextual-docs-helper__search > div:focus-within {
    border-color: var(--helper-cyan);
    box-shadow: 0 0 0 3px rgba(103, 232, 249, .12);
}

.contextual-docs-helper__search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font: inherit;
    font-size: .84rem;
}

.contextual-docs-helper__search input::placeholder {
    color: #8292a8;
    opacity: 1;
}

.contextual-docs-helper__search input::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}

.contextual-docs-helper__search button {
    border: 0;
    color: #dbeafe;
    background: transparent;
    cursor: pointer;
}

.contextual-docs-helper__search p {
    margin: .35rem 0 0;
    color: #94a3b8;
    font-size: .66rem;
}

.contextual-docs-helper__results {
    display: flex;
    min-height: 92px;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .4rem;
    padding: .35rem 1rem .75rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #0ea5e9 #071522;
    scrollbar-width: thin;
}

.contextual-docs-helper__results > a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .66rem;
    padding: .66rem .72rem;
    border: 1px solid rgba(148, 163, 184, .15);
    border-radius: 14px;
    color: #fff;
    background: rgba(15, 23, 42, .62);
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.contextual-docs-helper__results > a:hover {
    border-color: rgba(103, 232, 249, .68);
    color: #fff;
    background: rgba(12, 74, 110, .5);
    transform: translateX(-2px);
}

.contextual-docs-helper__results > a[data-current="true"] {
    border-color: rgba(250, 204, 21, .38);
    background: rgba(113, 63, 18, .23);
}

.contextual-docs-helper__results > a > span:first-child {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    color: var(--helper-cyan);
    background: rgba(14, 165, 233, .13);
}

.contextual-docs-helper__results strong,
.contextual-docs-helper__results small {
    display: block;
}

.contextual-docs-helper__results strong {
    color: #fff;
    font-size: .8rem;
    font-weight: 900;
}

.contextual-docs-helper__results small {
    display: -webkit-box;
    margin-top: .12rem;
    overflow: hidden;
    color: #aebcd0;
    font-size: .68rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.contextual-docs-helper__results > a > i {
    color: #94a3b8;
    font-size: .7rem;
}

.contextual-docs-helper__empty {
    display: grid;
    min-height: 110px;
    place-items: center;
    align-content: center;
    gap: .2rem;
    padding: 1rem;
    border: 1px dashed rgba(148, 163, 184, .28);
    border-radius: 14px;
    color: #cbd5e1;
    text-align: center;
}

.contextual-docs-helper__empty[hidden] {
    display: none !important;
}

.contextual-docs-helper__empty i {
    color: var(--helper-cyan);
    font-size: 1.25rem;
}

.contextual-docs-helper__empty strong { color: #fff; }
.contextual-docs-helper__empty span { color: #94a3b8; font-size: .72rem; }

.contextual-docs-helper__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .7rem 1rem;
    border-top: 1px solid rgba(148, 163, 184, .16);
    color: #94a3b8;
    background: rgba(2, 6, 23, .55);
    font-size: .66rem;
}

.contextual-docs-helper__footer a {
    color: var(--helper-cyan);
    font-weight: 850;
    text-decoration: none;
}

.contextual-docs-helper__footer a:hover { color: #fff; }

@keyframes helper-arrive {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes helper-sheen {
    0%, 76%, 100% { transform: translateX(-180%) rotate(18deg); }
    88% { transform: translateX(520%) rotate(18deg); }
}

@media (max-width: 575.98px) {
    .contextual-docs-helper {
        right: .7rem;
        bottom: .7rem;
    }

    .contextual-docs-helper__launcher {
        min-height: 54px;
        padding: .35rem;
        border-radius: 17px;
    }

    .contextual-docs-helper__spark {
        width: 45px;
        height: 45px;
    }

    .contextual-docs-helper__launcher-copy,
    .contextual-docs-helper__shortcut {
        display: none;
    }

    .contextual-docs-helper__panel {
        position: fixed;
        right: .65rem;
        bottom: 4.75rem;
        left: .65rem;
        width: auto;
        max-height: calc(100dvh - 5.5rem);
        border-radius: 21px;
    }

    .contextual-docs-helper__current {
        margin-right: .75rem;
        margin-left: .75rem;
    }

    .contextual-docs-helper__search,
    .contextual-docs-helper__results {
        padding-right: .75rem;
        padding-left: .75rem;
    }

    .contextual-docs-helper__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contextual-docs-helper__panel,
    .contextual-docs-helper__launcher::after {
        animation: none;
    }

    .contextual-docs-helper__launcher,
    .contextual-docs-helper__results > a {
        transition: none;
    }
}
