#customCastModal .custom-cast-field-label {
    display: block;
    margin-bottom: 6px;
    color: var(--modal-label-text);
    font-size: var(--modal-label-size);
    font-weight: var(--modal-label-weight);
    line-height: 1.4;
}

#customCastModal .custom-cast-gender-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

#customCastModal .custom-cast-gender-options label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

#customCastModal .custom-cast-gender-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

#customCastModal .custom-cast-gender-options span,
#customCastModal .custom-cast-description-presets button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #e8e5eb;
    border-radius: 8px;
    background: #fff;
    color: var(--text-secondary);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

#customCastModal .custom-cast-gender-options input:checked + span,
#customCastModal .custom-cast-description-presets button[aria-pressed="true"] {
    background: #eef0f3;
    color: var(--text-primary);
    border-color: #d1d5db;
    font-weight: 500;
}

#customCastModal .custom-cast-gender-options input:focus-visible + span,
#customCastModal .custom-cast-description-presets button:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

#customCastModal .custom-cast-description-presets {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    margin: 6px 0 10px;
    padding: 2px;
    scrollbar-width: none;
}

#customCastModal .custom-cast-description-presets::-webkit-scrollbar {
    display: none;
}

#customCastModal .custom-cast-description-presets button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 5px 10px;
    border: 1px solid #d5d5d5;
    border-radius: 999px;
    font-size: 11px;
    white-space: nowrap;
}

#customCastModal .custom-cast-description-presets button[aria-pressed="true"] {
    background: #eee;
    color: #333;
}

#customCastModal .custom-cast-image-presets {
    display: flex;
    justify-content: safe center;
    gap: 4px;
    width: 100%;
    overflow-x: auto;
    padding: 4px 0;
    margin-top: 8px;
}

#customCastModal .custom-cast-image-presets button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    cursor: pointer;
}

#customCastModal .custom-cast-image-presets img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

#customCastModal .custom-cast-image-presets button[aria-pressed="true"] {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

#customCastModal .custom-cast-image-presets button:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
}

#customCastModal .custom-cast-image-add {
    display: grid;
    place-items: center;
    color: var(--text-secondary);
    font: inherit;
    font-size: 26px;
    line-height: 1;
}
