dialog {
    display: flex;
    flex-direction: column;

    background-color: black;
    color: white;
    font-family: monospace;
    border: none;
    justify-content: center;
    align-items: center;

    overflow: scroll;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.customizer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 8px;
}
.customizer.hidden {
    display: none;
}

.preview-container {
    width: 100%;
    max-width: 500px;
    max-height: 500px;
    position: relative;
}

.preview-img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.row {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
}

.handle {
    position: absolute;
    left: 0; right: 0;
    top: 0;
    height: 1px;
    background-color: teal;

    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.handle.bottom {
    top: 100%;
}

.grab {
    background-color: teal;
    margin-left: 4px;
    color: white;
    font-size: 0.75em;
    border-radius: 2px;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    cursor: grab;
}
.grab:hover {
    background-color: white;
    color: teal;
}

.error {
    color: rgb(231, 79, 79);
    padding: 4px;
}

span:has(title) {
    user-select: none;
    cursor: pointer;
}

.candy {
    color: black;
    text-shadow:
        1px 1px 0 cyan,
        -1px -1px 0 magenta;
}