.floating-helper {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

.floating-helper>* {
    pointer-events: auto;
}

.floating-helper-panel {
    width: 280px;
    max-width: calc(100vw - 48px);
    background: rgba(255, 255, 255, 0.96);
    color: #1f2933;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    padding: 18px;
    line-height: 1.55;
    font-size: 14px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.floating-helper-panel h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.floating-helper-panel p {
    margin: 0 0 8px;
}

.floating-helper-panel ul {
    margin: 0 0 10px 18px;
    padding: 0;
}

.floating-helper-panel li {
    margin-bottom: 6px;
}

.floating-helper-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.floating-helper-link:hover,
.floating-helper-link:focus {
    text-decoration: underline;
}

.floating-helper-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    padding: 0;
    pointer-events: auto;
}

.floating-helper-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.4);
    outline-offset: 3px;
}

.floating-helper-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.26);
}

.floating-helper-button img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.floating-helper--open .floating-helper-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-helper--open {
    pointer-events: auto;
}

@media (prefers-color-scheme: dark) {
    .floating-helper-panel {
        background: rgba(15, 23, 42, 0.96);
        color: #e2e8f0;
        box-shadow: 0 12px 30px rgba(2, 6, 23, 0.6);
    }

    .floating-helper-panel h3 {
        color: #f1f5f9;
    }

    .floating-helper-link {
        color: #60a5fa;
    }

    .floating-helper-button {
        background: var(--color-border);
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.7);
    }

    .floating-helper-button:hover {
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.85);
    }
}

@media (max-width: 640px) {
    .floating-helper {
        right: 16px;
        bottom: 16px;
        gap: 10px;
    }

    .floating-helper-panel {
        width: 240px;
    }

    .floating-helper-button {
        width: 52px;
        height: 52px;
    }
}