.set-editor {
    max-width: 68rem;
}

.set-editor h1 {
    color: #2d2420;
}

.reset-dialog {
    width: min(26rem, calc(100% - 2rem));
    padding: 1.5rem;
    border: 1px solid #e7ded5;
    border-radius: .75rem;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
}

html:has(.flashcard-options:modal) {
    overflow: hidden;
}

.flashcard-options {
    width: min(36rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    overscroll-behavior-y: contain;
}

.reset-dialog::backdrop,
.flashcard-options::backdrop {
    background: rgb(45 36 32 / 50%);
}

.artwork-card {
    background: var(--bs-white);
    border: 1px solid #e7ded5;
    border-radius: 1rem;
    box-shadow: 0 3px 12px rgb(54 36 22 / 5%);
}

.artwork-card-text {
    white-space: pre-wrap;
}

.artwork-card-fields {
    display: grid;
    column-gap: 2rem;
}

.artwork-card-identity {
    border-bottom: 1px solid #e7ded5;
}

.set-editor .form-label {
    font-weight: 500;
}

.artwork-card-section + .artwork-card-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e7ded5;
}

.artwork-section-title {
    display: block;
    margin-bottom: .75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d2420;
}

.location-suggestions {
    position: absolute;
    z-index: 2;
    inset-inline: 0;
    max-height: 14rem;
    overflow-y: auto;
    margin: .25rem 0 0;
    padding: .25rem;
    list-style: none;
    background: var(--bs-white);
    border: 1px solid #e7ded5;
    border-radius: .5rem;
    box-shadow: 0 4px 12px rgb(54 36 22 / 12%);
}

.location-suggestions li {
    padding: .5rem .75rem;
    border-radius: .25rem;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.location-suggestions li:hover,
.location-suggestions [aria-selected="true"] {
    background: #f3eee8;
}

[data-location][aria-invalid="true"] {
    border-color: var(--bs-danger);
}

[data-location][aria-invalid="true"]:focus {
    box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
}

[data-location-status]:not(:empty) {
    margin-top: .25rem;
}

.artwork-card textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.artwork-image-preview {
    background: #f3eee8;
    border: 1px solid #e7ded5;
    border-radius: .5rem;
    padding: .5rem;
}

.artwork-image-preview img {
    display: block;
    width: 100%;
    max-height: 17rem;
    object-fit: contain;
}

.artwork-image-error:not(:empty) {
    margin-top: .5rem;
}

@media (min-width: 768px) {
    .artwork-card-fields {
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    }

    .artwork-card-identity {
        border-bottom: 0;
        border-bottom-left-radius: 1rem;
    }
}
