.ra-content.ra-content-fluid {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.ra-tool-run-page .ra-page-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: calc(100vh - 6.2rem);
    height: calc(100dvh - 6.2rem);
}

.ra-tool-run-page .ra-page-heading {
    margin: 0;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.8rem;
    background: color-mix(in srgb, var(--bg-primary) 86%, transparent);
}

.ra-tool-run-page .ra-tool-run-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    margin-top: 0.7rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.85rem;
    overflow: hidden;
    background: var(--bg-primary);
}

.ra-tool-run-frame-wrap {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

.ra-tool-run-frame-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background: var(--bg-primary);
}

.ra-tool-run-loading {
    z-index: 10;
    background: color-mix(in srgb, var(--bg-secondary) 78%, transparent);
    backdrop-filter: blur(3px);
}

.ra-tool-run-spinner {
    width: 3rem;
    height: 3rem;
}

.ra-tool-run-config-overlay {
    z-index: 20;
    background: color-mix(in srgb, var(--bg-overlay) 22%, transparent);
    backdrop-filter: blur(6px);
}

.ra-tool-run-config-card {
    width: min(90%, 620px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.ra-tool-run-config-body {
    background: color-mix(in srgb, var(--bg-primary) 85%, transparent);
}

@media (max-width: 768px) {
    .ra-tool-run-page .ra-page-main {
        height: calc(100vh - 5.4rem);
        height: calc(100dvh - 5.4rem);
    }

    .ra-tool-run-page .ra-page-heading {
        padding: 0.55rem 0.7rem;
    }

    .ra-tool-run-config-card {
        width: calc(100% - 1rem);
    }
}
