.daa-tool-page {
    width: 100%;
    min-width: 0;
}

.daa-tool-page__header {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.daa-tool-page__header h1 {
    margin: 2px 0 8px;
}

.daa-tool-page__notice {
    margin-bottom: 16px;
}

.daa-tool-page__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
}

.daa-tool-page__actions .xp-button {
    text-decoration: none;
}

.daa-tool-direct-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 1px solid #83a9e6;
    border-radius: 12px;
    background: linear-gradient(145deg, #fafdff, #e8f2ff);
    box-shadow: 0 14px 30px rgba(22, 69, 132, .14);
}

.daa-tool-direct-launch strong {
    color: #174f9d;
    font-size: 1.12rem;
}

.daa-tool-direct-launch p {
    margin: 5px 0 0;
    color: #536a87;
}

.daa-tool-direct-launch .xp-button {
    flex: 0 0 auto;
    text-decoration: none;
}

.daa-tool-frame-shell {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #83a9e6;
    border-radius: 12px;
    background: #08111f;
    box-shadow: 0 18px 42px rgba(22, 69, 132, .18);
}

.daa-tool-fullscreen-exit {
    position: absolute;
    z-index: 5;
    top: 12px;
    right: 12px;
    display: none;
}

.daa-tool-frame-shell:fullscreen,
.daa-tool-frame-shell.is-pseudo-fullscreen {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
    background: #08111f;
}

.daa-tool-frame-shell:fullscreen .daa-tool-frame,
.daa-tool-frame-shell.is-pseudo-fullscreen .daa-tool-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.daa-tool-frame-shell:fullscreen .daa-tool-fullscreen-exit,
.daa-tool-frame-shell.is-pseudo-fullscreen .daa-tool-fullscreen-exit {
    display: inline-flex;
}

.daa-tool-frame-shell.is-pseudo-fullscreen {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
}

html.has-daa-tool-fullscreen,
html.has-daa-tool-fullscreen body {
    overflow: hidden !important;
}

.daa-tool-frame {
    display: block;
    width: 100%;
    height: min(860px, calc(100vh - 230px));
    min-height: 560px;
    border: 0;
    background: #0a0f18;
}

@media (max-width: 720px) {
    .daa-tool-page__header {
        align-items: stretch;
        flex-direction: column;
    }

    .daa-tool-direct-launch {
        align-items: stretch;
        flex-direction: column;
    }

    .daa-tool-frame {
        min-height: 520px;
        height: calc(100vh - 190px);
    }
}
