/* Contours clavier contrastés, indépendants du thème rétro. */
body button:focus-visible,
body a:focus-visible,
body input:focus-visible,
body textarea:focus-visible,
body [tabindex]:focus-visible {
    outline: 2px solid #000080;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #ffffff;
}

body .window:focus-visible {
    outline-offset: 4px;
}

/* Les fenêtres restent cadrées sur mobile, même après un déplacement sur bureau. */
@media (max-width: 640px) {
    .window {
        box-sizing: border-box;
        top: 8px !important;
        left: 8px !important;
        transform: none;
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 64px);
    }
    .window__body {
        min-height: 0;
        overflow: auto;
        overflow-wrap: anywhere;
    }
    .form__row {
        flex-direction: column;
    }
    .window__bar {
        min-height: 44px;
        height: auto;
        cursor: default;
    }
    .ctl--close {
        min-width: 36px;
        min-height: 36px;
    }
    .files__list {
        overflow-x: auto;
    }
}
