input[type="checkbox"] {
    display: inline-grid;
    flex: 0 0 1.1rem;
    place-content: center;
    width: 1.1rem;
    min-width: 1.1rem;
    height: 1.1rem;
    min-height: 1.1rem;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(224, 205, 226, .42);
    border-radius: .3rem;
    color: #241b27;
    background: linear-gradient(145deg, #241c2b, #16111d);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .22);
    vertical-align: middle;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

input[type="checkbox"]:hover:not(:disabled) {
    border-color: #e9c67f;
    background: linear-gradient(145deg, #3b2a47, #2a2035);
}

input[type="checkbox"]:checked {
    border-color: #e9c67f;
    color: #241b27;
    background-color: #e5c47e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23241b27' d='m6.4 11.2-3.1-3.1 1.1-1.1 2 2 4.6-4.6 1.1 1.1z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: .72rem .72rem;
    box-shadow: 0 2px 8px rgba(217, 182, 111, .18);
}

input[type="checkbox"]:indeterminate {
    border-color: #e9c67f;
    background-color: #d9b66f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23241b27' d='M3 7h10v2H3z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: .7rem .7rem;
}

input[type="checkbox"]:checked:hover:not(:disabled) {
    border-color: #f3d99d;
    background-color: #f0d28f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23241b27' d='m6.4 11.2-3.1-3.1 1.1-1.1 2 2 4.6-4.6 1.1 1.1z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: .72rem .72rem;
    box-shadow: 0 2px 10px rgba(233, 198, 127, .32);
}

input[type="checkbox"]:active:not(:disabled) {
    transform: scale(.94);
}

input[type="checkbox"]:focus {
    outline: 0;
}

input[type="checkbox"]:focus-visible {
    border-color: #f1d28c;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(233, 198, 127, .24);
}

input[type="checkbox"]:disabled {
    border-color: rgba(224, 205, 226, .18);
    color: #473a4b;
    background: #211b26;
    box-shadow: none;
    cursor: not-allowed;
    opacity: .65;
}

.studio-toggle-row > input[type="checkbox"] {
    position: relative;
    display: block;
    flex: 0 0 2.65rem;
    width: 2.65rem;
    min-width: 2.65rem;
    height: 1.5rem;
    min-height: 1.5rem;
    border: 1px solid rgba(224, 205, 226, .28);
    border-radius: 999px;
    background: #17121d;
    background-image: radial-gradient(circle, #c7b9ca 0 .43rem, transparent .45rem);
    background-position: .2rem center;
    background-repeat: no-repeat;
    background-size: .86rem .86rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3);
}

.studio-toggle-row > input[type="checkbox"]:checked {
    border-color: #d9b66f;
    background: #6d5736;
    background-image: radial-gradient(circle, #f8e7c2 0 .43rem, transparent .45rem);
    background-position: 1.42rem center;
}

.studio-toggle-row > input[type="checkbox"]:hover:not(:disabled) {
    border-color: #e9c67f;
    background-color: #282132;
    background-image: radial-gradient(circle, #e8d6b1 0 .43rem, transparent .45rem);
    background-position: .2rem center;
}

.studio-toggle-row > input[type="checkbox"]:checked:hover:not(:disabled) {
    border-color: #f1d28c;
    background-color: #80683f;
    background-image: radial-gradient(circle, #fff0ca 0 .43rem, transparent .45rem);
    background-position: 1.42rem center;
}

@media (prefers-reduced-motion: reduce) {
    input[type="checkbox"],
    .studio-toggle-row > input[type="checkbox"] {
        transition: none;
    }
}
