
/* FILEHUB SHARED ACCESSIBILITY */

/* Clear keyboard navigation */
:where(a,button,input,select,textarea):focus-visible {
    outline:3px solid #2563eb;
    outline-offset:3px;
}

/* Readable form controls */
:where(input,select,textarea) {
    font-size:16px;
}

:where(input,textarea)::placeholder {
    opacity:1;
}

/* Prevent long links and filenames breaking layouts */
:where(.success-box,.fh-wallet-panel,.fh-wallet-dialog) {
    min-width:0;
    max-width:100%;
    overflow-wrap:anywhere;
}

/* Comfortable primary controls */
:where(.auth-submit,.fh-wallet-cta,.copy-btn) {
    min-height:44px;
    line-height:1.4;
}

/* Mobile */
@media(max-width:768px){

    html,body {
        max-width:100%;
    }

    :where(input,select,textarea){
        font-size:16px !important;
        max-width:100%;
        min-width:0;
    }

    :where(img,video){
        max-width:100%;
        height:auto;
    }

    :where(dialog,.fh-wallet-panel,.fh-wallet-dialog){
        max-width:calc(100vw - 24px);
    }

    :where(.success-box,.auth-modal,.auth-card){
        min-width:0;
        max-width:100%;
    }

    :where(.success-box a){
        overflow-wrap:anywhere;
    }

    :where(.auth-submit,.fh-wallet-cta,.copy-btn){
        min-height:48px;
    }

}

/* Respect reduced-motion preferences */
@media(prefers-reduced-motion:reduce){
    *,*::before,*::after {
        scroll-behavior:auto !important;
        animation-duration:0.01ms !important;
        transition-duration:0.01ms !important;
    }
}
