
/* LAITNO PREMIUM INTERACTION CONTROLS V63.87 */

:root {
    --lx87-ring:#397bc0;
    --lx87-ring-soft:rgba(57,123,192,.16);
    --lx87-control-edge:#b8cce1;
    --lx87-hover-shadow:0 6px 18px rgba(30,95,174,.11);
    --lx87-press-shadow:inset 0 2px 5px rgba(17,45,79,.14);
}

:root[data-theme-resolved="dark"] {
    --lx87-ring:#93c5fd;
    --lx87-ring-soft:rgba(147,197,253,.17);
    --lx87-control-edge:#627b9a;
    --lx87-hover-shadow:0 6px 18px rgba(0,0,0,.24);
    --lx87-press-shadow:inset 0 2px 5px rgba(0,0,0,.22);
}

/* Keyboard focus, without changing layout. */

html :is(
    .home-hero-cta,
    .home-action-card,
    .profile-sync-button-v228,
    .group-create-dialog button,
    .fpa-dialog button,
    .social-modal-actions button
):focus-visible {
    outline:2px solid var(--lx87-ring);
    outline-offset:3px;
}

/* Search container only; existing RTL input rules stay intact. */

html .search-pro-box:focus-within {
    border-color:var(--lx87-ring);
    box-shadow:0 0 0 3px var(--lx87-ring-soft);
}

/* Neutral form controls inside the verified dialogs. */

html :is(.group-create-dialog,.fpa-dialog)
:is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]),
    select,
    textarea
):not(:disabled):focus {
    border-color:var(--lx87-ring);
    box-shadow:0 0 0 3px var(--lx87-ring-soft);
}

/* Pressed feedback; existing scale animations are preserved. */

html :is(
    .home-hero-cta,
    .home-action-card,
    .profile-sync-button-v228,
    .group-create-dialog .group-create-actions .btn,
    .fpa-dialog .fpa-done,
    .social-modal-actions button
):not(:disabled):not([aria-disabled="true"]):active {
    box-shadow:var(--lx87-press-shadow);
}

/* Hover is restricted to devices with a real pointing device. */

@media (hover:hover) and (pointer:fine) {
    html :is(
        .home-hero-cta,
        .home-action-card,
        .profile-sync-button-v228,
        .group-create-dialog .group-create-actions .btn,
        .fpa-dialog .fpa-done
    ):not(:disabled):not([aria-disabled="true"]):hover:not(:active) {
        box-shadow:var(--lx87-hover-shadow);
    }
}

/* Do not dim disabled controls further or alter their behavior. */

html :is(
    .home-hero-cta,
    .profile-sync-button-v228,
    .group-create-dialog button,
    .fpa-dialog button,
    .social-modal-actions button
):is(:disabled,[aria-disabled="true"]) {
    cursor:not-allowed;
}

/* No extra movement for reduced-motion users. */

@media (prefers-reduced-motion:reduce) {
    html :is(
        .home-hero-cta,
        .home-action-card,
        .profile-sync-button-v228,
        .group-create-dialog button,
        .fpa-dialog button,
        .social-modal-actions button
    ) {
        transition-duration:0s!important;
    }
}
