process-window {
    background-color: white;

    position: absolute;

    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    opacity: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    pointer-events: all;

    header:first-child {
        display: flex;
        justify-content: space-between;
        align-items: stretch;
        height: fit-content;

        img {
            width: 28px;
            padding: 3px;
        }
        h2 {
            font-size: 0.85em;
            font-weight: normal;
            margin-right: auto;
        }
        section:first-child {
            /* Title/Icon section */
            display: flex;
            align-items: center;
            pointer-events: none;
        }
        section:last-child {
            /* Action buttons section */
            display: flex;
            button {
                width: 32px;
                height: -webkit-fill-available;
                height: -moz-available;          /* WebKit-based browsers will ignore this. */
                height: fill-available;
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }
    }

    header:is(.header_hidden) {
        position: absolute;
        right: 0;
        width: calc(100% - 45px);
        section:first-child {
            display: none;
        }
        section:last-child {
            height: 28px;
            margin-left: auto;
        }
    }

    iframe {
        pointer-events: all;
        /* background-color: grey; */

        width: 100%;
        height: 100%;
    }
}

.maximized {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: calc(100% - var(--taskbar-height)) !important;
}