.game-builds-manager__code {
    background: var(--mud-palette-background-gray);
    border: 1px solid var(--mud-palette-lines-default);
    overflow-x: auto;
}

.game-builds-manager__pre {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.game-builds-manager__ua {
    max-width: 24rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Wider panel for upload form fields (dropzone styles reuse story-image-picker__*). */
.game-build-upload-panel {
    width: min(520px, 100%);
    max-height: min(90vh, 640px);
    overflow-y: auto;
}

/* Dark-theme dropzone hover/active — story-layouts.css uses light fallbacks. */
.story-image-picker .story-image-picker__dropzone:hover,
.story-image-picker .story-image-picker__dropzone:focus-visible {
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface));
}

.story-image-picker .story-image-picker__dropzone--active {
    background: color-mix(in srgb, var(--mud-palette-primary) 14%, var(--mud-palette-surface));
}

.game-builds-manager__dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1400;
    width: min(42rem, calc(100vw - 2rem));
    max-height: calc(100vh - 4rem);
    overflow: auto;
}

.game-build-package-detail-panel {
    width: min(720px, 100%);
    max-height: min(92vh, 800px);
    overflow-y: auto;
}
