.playground-mask-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.85);
}
.playground-mask-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #e5e7eb;
}
.playground-mask-toolbar button {
    padding: 4px 10px;
    border: 1px solid #4b5563;
    border-radius: 5px;
    background: #1f2937;
    color: #e5e7eb;
    cursor: pointer;
}
.playground-mask-toolbar button.is-primary {
    background: #0e7490;
    border-color: #0dcaf0;
}
.playground-mask-toolbar button:disabled {
    opacity: 0.5;
    cursor: default;
}
.playground-prompt-textarea:focus {
    border-color: #0dcaf0 !important;
    box-shadow: 0 0 0 2px rgba(13, 202, 240, 0.45) !important;
    outline: none;
}
.playground-mask-close {
    padding: 0 8px;
    font-size: 18px;
    line-height: 22px;
    border: 1px solid #4b5563;
    border-radius: 5px;
    background: #1f2937;
    color: #e5e7eb;
    cursor: pointer;
}
.playground-mask-message {
    color: #fca5a5;
}
.playground-mask-stage {
    position: relative;
    display: inline-block;
    line-height: 0;
}
.playground-mask-stage img {
    display: block;
    max-width: 88vw;
    max-height: 74vh;
}
.playground-mask-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
}
.playground-inspector-video-history button {
    cursor: pointer;
}
.playground-video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
}
.playground-video-lightbox video {
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 6px;
    background: #000;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
}
.playground-video-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 6px;
    color: #d1d5db;
    background: rgba(31, 41, 55, 0.8);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.playground-builder-node[data-expand-click="1"] .playground-builder-image img,
.playground-builder-node[data-expand-click="1"] .playground-builder-result-preview img {
    cursor: pointer;
}
.playground-expand-image-btn {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
    background: rgba(107, 114, 128, 0.35);
    color: #d1d5db;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.playground-expand-image-btn:hover {
    background: rgba(96, 165, 250, 0.5);
    color: #fff;
}
.playground-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}
.playground-image-lightbox img {
    cursor: pointer;
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.playground-image-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    line-height: 1;
    color: #d1d5db;
    background: rgba(31, 41, 55, 0.8);
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}
.playground-image-lightbox-close:hover {
    background: #374151;
    color: #fff;
}

.playground-result-variant-selectable {
    cursor: pointer;
}
.playground-result-variant-selectable:hover {
    border-color: #6b7280 !important;
}
.playground-result-variant-selected {
    border-color: #0dcaf0 !important;
    box-shadow: 0 0 0 1px #0dcaf0;
}
.playground-result-variant-expand {
    position: absolute;
    top: 4px;
    right: 28px;
    z-index: 2;
    display: grid;
    width: 20px;
    height: 20px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    color: #fff;
    background: rgba(17, 24, 39, 0.82);
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}
.playground-inspector-image-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.playground-inspector-image-expand {
    top: 6px;
    right: 6px;
}
.playground-result-variant-expand:hover {
    border-color: #0dcaf0;
    background: #164e63;
}
.playground-result-variant-hide {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    display: grid;
    width: 20px;
    height: 20px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #fff;
    background: rgba(17, 24, 39, 0.82);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}
.playground-result-variant-hide:hover {
    border-color: #ef4444;
    background: #991b1b;
}
.playground-variant-switcher {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 88vw;
    padding: 7px 10px;
    overflow-x: auto;
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.88);
    transform: translateX(-50%);
}
.playground-variant-switcher-thumb {
    flex: 0 0 auto;
    width: var(--variant-thumb-size, 72px);
    height: var(--variant-thumb-size, 72px);
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 5px;
    background: #111827;
    cursor: pointer;
}
.playground-variant-switcher-thumb.is-active {
    border-color: #0dcaf0;
}
.playground-variant-switcher-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.playground-variant-switcher-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid #6b7280;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
    transform: translateY(-50%);
}
.playground-image-lightbox.has-variant-switcher img,
.playground-video-lightbox.has-variant-switcher video,
.playground-model3d-lightbox.has-variant-switcher model-viewer {
    max-height: calc(88vh - 105px);
}
