.distractor-picker {
    width: min(560px, calc(100vw - 32px));
    max-height: min(80vh, 760px);
    box-sizing: border-box;
    overflow-y: auto;
    border: 1px solid #c9c9da;
    border-radius: 12px;
    padding: 22px;
    background: #fff;
    color: #24243a;
    box-shadow: 0 18px 48px rgba(20, 20, 50, 0.25);
}

.distractor-picker::backdrop {
    background: rgba(20, 20, 40, 0.55);
}

.distractor-picker__header,
.distractor-picker__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.distractor-picker__header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.distractor-picker__close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.7rem;
    cursor: pointer;
}

.distractor-picker__status {
    min-height: 1.4em;
    margin: 16px 0;
}

.distractor-picker__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
}

.distractor-picker__option {
    padding: 11px 12px;
    border: 1px solid #a7a7bf;
    border-radius: 7px;
    background: #f8f8fd;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.distractor-picker__option[aria-pressed="true"] {
    border-color: #4e4cc8;
    background: #e8e7ff;
    box-shadow: inset 0 0 0 1px #4e4cc8;
}

.distractor-picker__option:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.distractor-picker__count {
    margin: 16px 0;
    font-weight: 600;
}

.distractor-picker__actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.distractor-picker__actions button {
    padding: 9px 15px;
    cursor: pointer;
}

.distractor-picker__confirm {
    border: 1px solid #4e4cc8;
    border-radius: 5px;
    background: #4e4cc8;
    color: #fff;
}

.distractor-picker__confirm:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

[data-distractor-feedback] {
    display: block;
    margin-top: 8px;
}

[data-distractor-generate]:disabled {
    opacity: 0.7;
    cursor: progress;
}

.distractor-generator-tools {
    margin: 2px 0 16px;
}

.distractor-generator-tools button {
    padding: 9px 14px;
    font-size: 14px;
}

.distractor-generator-tools [data-distractor-feedback] {
    font-size: 13px;
}
