:root {
    --playground-primary: #2563eb;
    --playground-primary-hover: #1d4ed8;
    --playground-primary-soft: #eff6ff;
    --playground-primary-rgb: 37 99 235;
    --playground-text: #172033;
    --playground-text-muted: #596579;
    --playground-surface: #ffffff;
    --playground-surface-subtle: #f7f9fc;
    --playground-border: #dbe2ea;
    --playground-border-strong: #aab6c5;
    --playground-chrome: #172554;
    --playground-code-surface: #101827;
    --playground-code-text: #d9e2ec;
    --playground-status-success: #166534;
    --playground-status-error: #9f1239;
    --playground-status-error-soft: #fff1f2;
    --playground-content-max: 90rem;
    --playground-touch-target: 2.75rem;
    --playground-radius-sm: 0.375rem;
    --playground-radius-md: 0.625rem;
    --playground-radius-lg: 0.875rem;
    --playground-radius-pill: 999px;
    --playground-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06);
    --playground-shadow-md: 0 12px 30px rgb(15 23 42 / 0.1);
    --playground-font-title: clamp(1.75rem, 2.5vw, 2.35rem);
    --playground-font-label: 0.75rem;
    --playground-font-code: 0.85rem;
    --playground-space-xs: 0.25rem;
    --playground-space-sm: 0.5rem;
    --playground-space-md: 1rem;
    --playground-space-lg: 1.5rem;
    --playground-space-xl: 2rem;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: var(--playground-primary-hover);
}

.btn-primary {
    color: #fff;
    background-color: var(--playground-primary);
    border-color: var(--playground-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
    background-color: var(--playground-primary-hover);
    border-color: var(--playground-primary-hover);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgb(var(--playground-primary-rgb) / 0.18);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--playground-status-success);
}

.invalid {
    outline: 1px solid var(--playground-status-error);
}

.validation-message {
    color: var(--playground-status-error);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.form-control.templates-dropdown,
.form-control.templates-dropdown:focus {
    background-color: var(--playground-primary-soft);
}

.operation-duration-status {
    display: inline-flex;
    justify-content: flex-start;
    min-width: 0;
    text-align: left;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.operation-duration-status-active {
    color: var(--playground-primary-hover);
    font-size: var(--playground-font-title);
    font-weight: 700;
}

.operation-duration-status-last {
    font-weight: 400;
}

.playground-section-label {
    --bs-card-cap-bg: #f5f6f7;
}

body.benchmark-embedded .sidebar,
body.benchmark-embedded main > .top-row {
    display: none;
}

body.benchmark-embedded .page {
    display: block;
}

body.benchmark-embedded article.content {
    padding: 0.75rem !important;
}

/* Playground experience */

.playground-form {
    max-width: var(--playground-content-max);
    padding-bottom: var(--playground-space-xl);
    width: 100%;
}

.playground-page-content {
    max-width: var(--playground-content-max);
    min-width: 0;
    width: 100%;
}

.playground-page-content .row > *,
.playground-page-content .d-flex > * {
    min-width: 0;
}

.playground-form > .card,
.playground-form .playground-result-card {
    background: var(--playground-surface);
    border-color: var(--playground-border);
    border-radius: var(--playground-radius-lg);
    box-shadow: var(--playground-shadow-sm);
    overflow: visible;
}

.playground-page-content .card:has(> button.card-header[aria-expanded]) {
    border-color: var(--playground-border-strong);
}

.playground-form > .card > .card-header,
.playground-page-content .playground-section-label {
    align-items: center;
    background: var(--playground-surface-subtle);
    border-radius: var(--playground-radius-lg) var(--playground-radius-lg) 0 0;
    color: var(--playground-text);
    display: flex;
    gap: var(--playground-space-sm);
    justify-content: space-between;
    min-height: var(--playground-touch-target);
    padding: 0.75rem var(--playground-space-md);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.playground-page-content button.playground-section-label:hover {
    background: #eef2f7;
}

.playground-page-content button.playground-section-label[aria-expanded="true"] {
    background: var(--playground-primary-soft);
    color: var(--playground-primary-hover);
}

.playground-section-title {
    align-items: center;
    display: inline-flex;
    min-width: 0;
}

.playground-section-chevron {
    color: var(--playground-text-muted);
    flex: 0 0 auto;
    font-size: 1rem;
    transition: transform 0.18s ease-out;
}

.playground-section-chevron-expanded {
    color: var(--playground-primary);
    transform: rotate(180deg);
}

.playground-section-label > .float-end {
    align-items: center;
    color: var(--playground-text-muted);
    display: inline-flex;
    flex: 0 0 1.5rem;
    font-size: 0;
    height: 1.5rem;
    justify-content: center;
    width: 1.5rem;
}

.playground-section-label > .float-end::before {
    border-bottom: 1px solid currentColor;
    border-right: 1px solid currentColor;
    content: "";
    height: 0.45rem;
    transform: rotate(45deg) translate(-0.1rem, -0.1rem);
    transition: transform 0.18s ease-out;
    width: 0.45rem;
}

.playground-section-label[aria-expanded="true"] > .float-end {
    color: var(--playground-primary);
}

.playground-section-label[aria-expanded="true"] > .float-end::before {
    transform: rotate(225deg) translate(-0.1rem, -0.1rem);
}

.playground-form button.playground-section-label:focus-visible,
.playground-form .form-control:focus,
.playground-form .form-select:focus,
.playground-form .btn:focus-visible {
    border-color: var(--playground-primary);
    box-shadow: 0 0 0 0.2rem rgb(37 99 235 / 0.18);
    outline: 0;
}

.playground-form .card-body {
    padding: var(--playground-space-lg);
}

.playground-model-settings-heading {
    color: var(--playground-primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 var(--playground-space-md);
}

.playground-model-settings > .playground-model-settings-heading:not(:first-child) {
    border-top: 1px solid var(--playground-border);
    margin-top: var(--playground-space-xs);
    padding-top: var(--playground-space-lg);
}

.playground-model-settings-intro {
    color: var(--playground-text-muted);
    font-size: 1rem;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.playground-model-settings-connection-grid {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: var(--playground-space-md);
}

.playground-model-settings-connection-grid + .playground-model-settings-connection-grid {
    margin-top: var(--playground-space-md);
}

.playground-model-settings-connection-grid > * {
    flex: 1 1 10rem !important;
    max-width: none;
    min-width: 0;
    padding-inline: 0;
    width: auto !important;
}

.playground-model-settings-connection-grid > .playground-model-settings-connection-wide {
    flex-basis: 20rem !important;
    flex-grow: 2 !important;
}

.playground-model-settings-connection-grid > .col-12 {
    flex-basis: 100% !important;
}

.playground-model-settings-connection-grid .form-floating {
    margin-bottom: 0 !important;
}

.playground-form .form-control,
.playground-form .form-select {
    border-color: var(--playground-border-strong);
    border-radius: var(--playground-radius-md);
    min-height: 3.25rem;
}

.playground-form .playground-required-missing,
.playground-form .playground-required-missing:focus {
    border-color: var(--playground-status-error) !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--playground-status-error) 14%, transparent) !important;
    outline: 0;
}

.playground-guidance-bubble {
    --playground-guidance-background: #172554;
    animation: playground-guidance-bubble-in 0.18s ease-out;
    background: var(--playground-guidance-background);
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: var(--playground-radius-md);
    box-shadow: 0 0.75rem 1.75rem rgb(15 23 42 / 0.24);
    color: #fff;
    display: block;
    font-size: var(--playground-font-label);
    font-weight: 650;
    line-height: 1.4;
    margin-top: var(--playground-space-sm);
    max-width: min(24rem, 100%);
    padding: 0.625rem 0.75rem;
    pointer-events: none;
    position: relative;
    text-align: left;
    width: fit-content;
    z-index: 60;
}

.playground-guidance-bubble::before {
    background: var(--playground-guidance-background);
    border-left: 1px solid rgb(255 255 255 / 0.18);
    border-top: 1px solid rgb(255 255 255 / 0.18);
    content: "";
    height: 0.65rem;
    left: 1rem;
    position: absolute;
    top: -0.36rem;
    transform: rotate(45deg);
    width: 0.65rem;
}

.playground-required-guidance {
    --playground-guidance-background: #7f1d3a;
    margin-bottom: var(--playground-space-sm);
}

.playground-auto-save-guidance-anchor {
    overflow: visible;
    position: relative;
}

.playground-auto-save-guidance {
    --playground-guidance-background: #1d4ed8;
    margin-top: 0;
    max-width: min(22rem, calc(100vw - 2rem));
    position: absolute;
    right: 0;
    top: calc(100% + var(--playground-space-sm));
    width: max-content;
}

.playground-auto-save-guidance::before {
    left: auto;
    right: 1rem;
}

@keyframes playground-guidance-bubble-in {
    from {
        opacity: 0;
        transform: translateY(-0.25rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.playground-form .form-label {
    color: var(--playground-text);
    font-weight: 650;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.playground-form textarea.form-control {
    line-height: 1.5;
    min-height: 8rem;
    resize: vertical;
}

.playground-form textarea.playground-system-prompt {
    height: auto;
    min-height: 0;
}

.playground-form .form-check:not(.form-switch) {
    align-items: center;
    display: flex;
    gap: var(--playground-space-sm);
    min-height: var(--playground-touch-target);
}

.playground-form .form-check:not(.form-switch) .form-check-input {
    flex: 0 0 auto;
    height: 1.2rem;
    margin: 0;
    width: 1.2rem;
}

.playground-form .form-check-label {
    cursor: pointer;
}

.playground-form .btn:not(.btn-sm) {
    min-height: var(--playground-touch-target);
}

.playground-icon-button.playground-icon-button {
    align-items: center;
    display: inline-flex;
    flex: 0 0 var(--playground-touch-target);
    height: var(--playground-touch-target);
    justify-content: center;
    min-height: var(--playground-touch-target);
    min-width: var(--playground-touch-target);
    padding: 0;
    width: var(--playground-touch-target);
}

.playground-icon-button .rzi.rzi {
    font-size: 1rem;
    line-height: 1;
}

.playground-contextual-row {
    height: 0;
    margin-block: 0 !important;
    min-height: 0 !important;
    opacity: 0;
    padding-inline: var(--playground-space-sm);
    pointer-events: none;
    position: relative;
    top: calc(var(--playground-space-sm) + 0.875rem);
    transition: opacity 0.15s ease;
    width: 100%;
    z-index: 5;
}

.playground-contextual-row .playground-icon-button.playground-icon-button {
    flex-basis: 1.75rem;
    height: 1.75rem;
    min-height: 1.75rem;
    min-width: 1.75rem;
    width: 1.75rem;
}

.playground-contextual-row:has([role="status"]:not(:empty)),
.playground-contextual-row:has([role="alert"]:not(:empty)),
.playground-contextual-row:hover,
.playground-contextual-row:focus-within,
.playground-contextual-row:has(~ textarea:hover),
.playground-contextual-row:has(~ textarea:focus),
.playground-contextual-row:has(~ pre:hover),
.playground-contextual-row:has(~ pre:focus-within),
.playground-contextual-row:has(~ .form-floating:hover),
.playground-contextual-row:has(~ .form-floating:focus-within),
.playground-contextual-row:has(~ .playground-code-block:hover),
.playground-contextual-row:has(~ .playground-code-block:focus-within) {
    opacity: 1;
    pointer-events: auto;
}

.playground-form .input-group > .btn {
    min-width: var(--playground-touch-target);
}

.playground-form .table-responsive {
    border: 1px solid var(--playground-border);
    border-radius: var(--playground-radius-md);
}

.playground-form .alert {
    border-radius: var(--playground-radius-md);
}

.playground-form .progress {
    border-radius: var(--playground-radius-pill);
    min-height: 0.65rem;
}

.playground-workflow-switcher {
    background: var(--playground-surface-subtle);
    border: 1px solid var(--playground-border);
    border-radius: var(--playground-radius-lg);
    margin-bottom: var(--playground-space-md);
    padding: var(--playground-space-lg);
}

.playground-workflow-switcher-label {
    color: var(--playground-text-muted);
    display: block;
    float: none;
    font-size: var(--playground-font-label);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: var(--playground-space-sm);
    padding: 0;
    text-transform: uppercase;
    width: auto;
}

.playground-segmented-control {
    display: grid;
    gap: var(--playground-space-xs);
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
}

.playground-segmented-control input {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.playground-segmented-control label {
    align-items: center;
    background: var(--playground-surface);
    border: 1px solid var(--playground-border);
    border-radius: var(--playground-radius-md);
    cursor: pointer;
    display: flex;
    font-weight: 600;
    justify-content: center;
    min-height: var(--playground-touch-target);
    padding: var(--playground-space-sm) var(--playground-space-md);
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.playground-segmented-control input:checked + label {
    background: var(--playground-primary-soft);
    border-color: var(--playground-primary);
    color: var(--playground-primary-hover);
}

.playground-segmented-control input:focus-visible + label {
    box-shadow: 0 0 0 0.2rem rgb(37 99 235 / 0.18);
}

.playground-source-zone {
    background: var(--playground-surface-subtle);
    border: 1px solid var(--playground-border);
    border-radius: var(--playground-radius-lg);
    margin-bottom: var(--playground-space-md);
    padding: var(--playground-space-lg);
}

.playground-source-zone h2,
.playground-results-heading {
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    margin-bottom: var(--playground-space-md);
}

.playground-upload-zone {
    align-items: center;
    background: var(--playground-surface);
    border: 1px dashed var(--playground-border-strong);
    border-radius: var(--playground-radius-lg);
    display: flex;
    flex-direction: column;
    gap: var(--playground-space-sm);
    justify-content: center;
    min-height: 8rem;
    padding: var(--playground-space-lg);
    text-align: center;
}

.playground-inline-status {
    align-items: center;
    color: var(--playground-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: var(--playground-space-sm);
    min-height: var(--playground-touch-target);
}

.playground-result-grid {
    display: grid;
    gap: var(--playground-space-md);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.playground-result-card {
    min-width: 0;
}

.playground-result-card > .rz-card {
    border-color: var(--playground-border);
    border-radius: var(--playground-radius-lg);
    box-shadow: var(--playground-shadow-sm);
    height: 100%;
}

.playground-page-content .rz-card,
.playground-page-content .rz-fileupload {
    max-width: 100%;
}

.playground-page-content .rz-fileupload {
    overflow: hidden;
}

.playground-page-content .rz-fileupload-choose,
.playground-page-content .rz-button {
    min-height: var(--playground-touch-target);
}

.playground-page-content a {
    overflow-wrap: anywhere;
}

.playground-form img,
.playground-form video {
    max-width: 100%;
}

.playground-form pre {
    max-width: 100%;
    overflow: auto;
}

.estimated-cost-display {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    gap: 0.1rem;
}

.estimated-cost-summary {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--playground-space-sm);
}

.estimated-cost-display small {
    font-size: 0.72rem;
}

.form-control.templates-dropdown,
.form-control.templates-dropdown:focus {
    max-width: 32rem;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .playground-form .col-lg-2,
    .playground-form .col-lg-3 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .playground-form .col-lg-4,
    .playground-form .col-lg-5,
    .playground-form .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (min-width: 1400px) {
    .playground-form .col-lg-2 {
        flex: 0 0 auto;
        width: 25%;
    }
}

@media (min-width: 992px) {
    .playground-model-settings-connection-grid {
        flex-wrap: nowrap;
    }

    .playground-model-settings-connection-grid:has(> .col-12) {
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    :root {
        --playground-space-lg: 1rem;
        --playground-space-xl: 1.5rem;
    }

    input,
    select,
    textarea,
    .rz-textbox,
    .rz-dropdown,
    .rz-numeric,
    .rz-textarea {
        font-size: 16px;
    }

    .playground-form .card-body {
        padding: var(--playground-space-md);
    }

    .playground-form .form-floating {
        margin-bottom: 0.75rem !important;
    }

    .playground-model-settings-connection-grid > *,
    .playground-model-settings-connection-grid > .playground-model-settings-connection-wide {
        flex-basis: 100% !important;
    }

    .playground-segmented-control {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
    }

    .playground-source-zone {
        padding: var(--playground-space-md);
    }

    .playground-page-content {
        overflow-x: clip;
    }

    .playground-result-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .playground-auto-save-guidance {
        left: 0;
        max-width: min(20rem, calc(100vw - 3rem));
        right: auto;
    }

    .playground-auto-save-guidance::before {
        left: 1rem;
        right: auto;
    }
}

/* Unified playground workspace */

.playground-unified-shell {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: calc(100dvh - 2.2rem);
    max-width: var(--playground-content-max);
    min-height: 32rem;
    overflow: hidden;
    width: 100%;
}

.playground-unified-shell > .playground-page-content {
    min-height: 0;
}

.playground-unified-form {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100%;
    max-height: 100%;
    padding-bottom: 0;
}

.playground-unified-form > .playground-scroll-region {
    grid-row: 1;
}

.playground-unified-form > .playground-composer-dock {
    grid-row: 2;
}

.playground-scroll-region {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 var(--playground-space-sm) var(--playground-space-lg) 0;
    scrollbar-gutter: stable;
}

.playground-composer-dock {
    background: var(--playground-surface);
    border: 1px solid var(--playground-border);
    border-radius: var(--playground-radius-lg);
    bottom: 0;
    box-shadow: 0 -0.5rem 1.75rem rgb(15 23 42 / 0.08);
    display: grid;
    gap: 0.125rem;
    grid-template-rows: minmax(0, 1fr) auto;
    max-height: min(58dvh, 32rem);
    padding: var(--playground-space-md) var(--playground-space-md) var(--playground-space-xs);
    position: sticky;
    z-index: 40;
}

.playground-composer-dock:not(:has(.playground-composer-fields)) {
    grid-template-rows: auto;
}

.playground-composer-fields {
    align-items: start;
    display: grid;
    gap: var(--playground-space-md);
    grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr);
    min-height: 0;
    overflow-y: auto;
}

.playground-composer-fields:not(:has(.playground-composer-uploads)) {
    grid-template-columns: minmax(0, 1fr);
}

.playground-composer-primary,
.playground-composer-uploads {
    min-width: 0;
}

.playground-composer-primary .form-floating {
    margin-bottom: 0 !important;
}

.playground-composer-dock textarea.playground-composer-textarea {
    height: 6rem;
    max-height: 14rem;
    min-height: 6rem;
}

.playground-composer-dock .playground-action-bar {
    border: 0;
    border-radius: 0;
    border-top: 1px solid var(--playground-border);
    bottom: auto;
    box-shadow: none;
    margin: 0;
    padding: var(--playground-space-sm) 0 0;
    position: static;
}

.playground-tools-label.playground-section-label {
    border: 1px solid var(--playground-border);
    border-radius: var(--playground-radius-md);
    flex: 0 0 auto;
    font-size: var(--playground-font-label);
    font-weight: 700;
    min-height: var(--playground-touch-target);
    padding: var(--playground-space-sm) var(--playground-space-md);
}

.playground-prompt-contextual-toolbar {
    align-items: center;
    display: flex;
    gap: var(--playground-space-sm);
    justify-content: flex-end;
}

.playground-prompt-contextual-toolbar .prompt-input-toolbar {
    display: contents;
    height: auto;
    margin: 0;
    min-height: 0;
    opacity: 1;
    padding: 0;
    pointer-events: auto;
    position: static;
    top: auto;
    width: auto;
}

.playground-toolbar-upload.rz-fileupload {
    background: transparent;
    border: 0;
    display: inline-flex;
    flex: 0 0 1.75rem;
    height: 1.75rem;
    min-height: 1.75rem;
    overflow: visible;
    padding: 0;
    width: 1.75rem;
}

.playground-toolbar-upload .rz-fileupload-buttonbar {
    background: transparent;
    padding: 0;
}

.playground-toolbar-upload .rz-fileupload-choose.rz-button {
    align-items: center;
    background: transparent;
    border: 1px solid var(--playground-text-muted);
    border-radius: var(--playground-radius-sm);
    color: var(--playground-text-muted);
    display: inline-flex;
    height: 1.75rem;
    justify-content: center;
    min-height: 1.75rem;
    min-width: 1.75rem;
    padding: 0;
    width: 1.75rem;
}

.playground-toolbar-upload .rz-fileupload-choose.rz-button:hover,
.playground-toolbar-upload .rz-fileupload-choose.rz-button:focus-visible {
    background: var(--playground-text-muted);
    color: #fff;
}

.playground-toolbar-upload .rz-fileupload-choose .rzi {
    font-size: 1rem;
    line-height: 1;
}

.playground-toolbar-upload .rz-button-text,
.playground-toolbar-upload .rz-fileupload-content {
    display: none;
}

.playground-upload-status {
    align-items: center;
    display: flex;
    gap: var(--playground-space-sm);
    margin-top: var(--playground-space-sm);
    min-width: 0;
}

.playground-upload-status .rz-progressbar {
    flex: 1 1 auto;
    margin: 0 !important;
    min-width: 4rem;
}

.playground-composer-uploads > .rz-card {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.playground-composer-upload-list {
    max-height: 7rem;
    overflow-y: auto;
}

.playground-uploaded-item-card {
    height: 2.8125rem;
    max-width: 18.75rem;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.playground-uploaded-item-content {
    align-items: center;
    height: 100%;
    min-width: 0;
    padding-left: var(--playground-space-sm);
}

.playground-uploaded-thumbnail {
    border-radius: var(--playground-radius-sm);
    flex: 0 0 2rem;
    height: 2rem;
    object-fit: cover;
    width: 2rem;
}

.playground-uploaded-item-metadata {
    flex: 1 1 auto;
    min-width: 0;
}

.playground-uploaded-file-name {
    font-size: var(--playground-font-label);
    font-weight: 700;
    line-height: 1rem;
    max-height: 1.15rem;
    overflow: auto;
    overflow-wrap: anywhere;
    scrollbar-width: thin;
}

.playground-uploaded-file-size {
    color: var(--playground-text-muted);
    font-size: var(--playground-font-label);
    line-height: 0.75rem;
}

@media (max-width: 991.98px) {
    .playground-composer-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .playground-unified-shell {
        height: calc(100dvh - 5.7rem);
        min-height: 26rem;
    }

    .playground-composer-dock {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-inline: calc(-1 * var(--playground-space-sm));
        max-height: 65dvh;
        padding-bottom: max(var(--playground-space-xs), env(safe-area-inset-bottom));
    }

    .playground-composer-dock textarea.playground-composer-textarea {
        height: 5rem;
        min-height: 5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .playground-guidance-bubble {
        animation: none;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
