/* THE PHONE'S KEYBOARD OVER THE SHEET (brief KB, 2026-11-27; view/js/vk_kb.js says when: html.vkKb). Linked after the phone's own sheets. Phones only.
   While the keyboard is up the sheet stands on it and the foot steps aside: the radar, the keys, the bar and its glass, so the sheet has the room. */
@media (max-width: 1125px){
    /* the rising window is placed from --vkS-dock and --vkS-clear (view/css/vk_phone_ui.css): on the keyboard's top (what it covers of the page; 0 when the page itself shrank) */
    html.vkKb{ --vkS-dock: var(--vkKb-lift, 0px); --vkS-clear: 8px; }
    html[data-sheet="modal"] .modal .modal-dialog{ transition: bottom .28s cubic-bezier(.2, .7, .25, 1) !important; }
    /* its own ground: the bar's glass, which is its ground at rest, steps aside */
    html.vkKb[data-sheet="modal"] .modal .modal-dialog,
    html.vkKb[data-sheet="search"] .vkSheet-in,
    html.vkKb[data-sheet="bell"] body header .secondline .vkBellPanel{
        background: linear-gradient(180deg, rgba(112, 132, 166, .16), rgba(112, 132, 166, 0) 42%), var(--vk-surface, #1e1e24) !important;
        border: 1px solid var(--vk-line, rgba(215, 232, 255, .22)) !important; border-radius: 18px !important; box-shadow: 0 -10px 30px rgba(0, 0, 0, .45) !important;
    }
    html.vkKb[data-sheet="search"] .vkSheet-in{ padding: 14px 0; }          /* at rest it keeps 79 px for the keys under it */

    /* the foot steps aside (translate, not transform: the radar is centred with a transform of its own) */
    html.vkKb body.vkLanding .sidebarblock,
    html.vkKb body.vkLanding header .vkBellWrap,
    html.vkKb body.vkLanding header .vkL-menu,
    html.vkKb body.vkLanding header .vkL-findOpen,
    html.vkKb body.vkPhonePerson .sidebarblock,
    html.vkKb body.vkPhonePerson header .vkBellWrap,
    html.vkKb body.vkPhonePerson header .editers_laptop,
    html.vkKb body.vkPhonePerson .barfootmovil{ opacity: 0 !important; visibility: hidden !important; translate: 0 48px; pointer-events: none !important; }
    html.vkKb body.vkLanding.vkLanding::after,
    html.vkKb body.vkLanding div#topupl::after,
    html.vkKb body.vkLanding .vkPf-f::before, html.vkKb body.vkLanding .vkPf-f::after,
    html.vkKb body.vkLanding #loadmenuCats::before, html.vkKb body.vkLanding #loadmenuCats::after,
    html.vkKb body.vkPhonePerson.vkPhonePerson::after,
    html.vkKb body.vkPhonePerson div#topupl::after,
    html.vkKb body.vkPhonePerson .vkPf-f::before, html.vkKb body.vkPhonePerson .vkPf-f::after,
    html.vkKb body.vkPhonePerson #loadmenuCats::before, html.vkKb body.vkPhonePerson #loadmenuCats::after,
    html.vkKb:has(body.vkPhonePerson)::after, html.vkKb:has(body.vkLanding)::after{ opacity: 0 !important; }          /* (the grab handle: the sheet has its own box now) */
    /* the frame's sides run to the foot: they end above a bar that is not there (view/css/vk_phone_ui.css, vk_person_phone.css) */
    html.vkKb[data-theme="dark"] body.vkLanding #vkL::before, html.vkKb[data-theme="dark"] body.vkLanding #vkLMain::before,
    html.vkKb[data-theme="dark"] body.vkPhonePerson .vkPf-l::before, html.vkKb[data-theme="dark"] body.vkPhonePerson .vkPf-r::before{ height: auto !important; bottom: 0 !important; }
    /* the drawer ends on the keyboard too: its search, «Contacto», «Soporte» (0 when the page itself shrank) */
    html.vkKb body.vkLanding .vkTree, html.vkKb body.vkPhonePerson .vkTree{ bottom: var(--vkKb-lift, 0px) !important; }
    /* a comment on a picture, in a file's detail (view/js/vk_notes.js sets it beside its pin): just above the keyboard */
    html.vkKb .vkNotePop{ top: auto !important; bottom: calc(var(--vkKb-lift, 0px) + 8px) !important; left: 8px !important; right: 8px !important; width: auto !important; }
    /* a person's chat window (view/css/vk_talk.css): it stands on the keyboard, as tall as the room there is */
    html.vkKb:has(body.vkPhonePerson:not(.OvYH)) .vkTalk{ bottom: calc(var(--vkKb-lift, 0px) + 8px) !important; }
    html.vkKb:has(body.vkPhonePerson) .vkTalk-win:not(.is-min){ height: min(calc(var(--vkKb-h, 100vh) - 16px), 560px) !important; }
    /* the way out and back, drawn only while it moves */
    html.vkKb-move body .sidebarblock,
    html.vkKb-move body header .vkBellWrap,
    html.vkKb-move body header .vkL-menu,
    html.vkKb-move body header .vkL-findOpen,
    html.vkKb-move body header .editers_laptop,
    html.vkKb-move body .barfootmovil{ transition: opacity .2s ease, translate .28s cubic-bezier(.2, .7, .25, 1), visibility 0s linear !important; }
    html.vkKb-move body::after,
    html.vkKb-move body div#topupl::after,
    html.vkKb-move body .vkPf-f::before, html.vkKb-move body .vkPf-f::after,
    html.vkKb-move body #loadmenuCats::before, html.vkKb-move body #loadmenuCats::after{ transition: opacity .2s ease !important; }
}
@media (max-width: 1125px) and (prefers-reduced-motion: reduce){
    html[data-sheet="modal"] .modal .modal-dialog, html.vkKb-move body *, html.vkKb-move body *::before, html.vkKb-move body *::after{ transition: none !important; }
}
