.wm-editor {
    min-width: 0;
    font-size: 14px;
}
.wm-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}
.wm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.wm-help {
    color: #666;
    line-height: 1.55;
    margin: 8px 0 12px;
    font-size: 13px;
}
.wm-list {
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 3px;
}
.wm-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    min-height: 48px;
    border: 1px solid #e4d4d4;
    border-radius: 12px;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}
.wm-option:has(input:checked) {
    border-color: var(--color-primary, #9b2226);
    background: #fff8f8;
}
.wm-option:focus-within {
    outline: 2px solid var(--color-primary, #9b2226);
    outline-offset: 1px;
}
.wm-option input {
    flex-shrink: 0;
    accent-color: var(--color-primary, #9b2226);
}
.wm-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.wm-upload,
.wm-autoplay {
    margin-top: 16px;
}
.wm-upload-label {
    display: block;
    position: relative;
    width: fit-content;
    max-width: 100%;
    font-weight: 600;
    cursor: pointer;
}
.wm-file-button {
    display: block;
    width: fit-content;
    padding: 9px 14px;
    margin-top: 8px;
    border: 1px solid #b9a5a5;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
}
.wm-file {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.wm-upload-label:focus-within .wm-file-button {
    outline: 2px solid var(--color-primary, #9b2226);
    outline-offset: 2px;
}
.wm-upload-label:has(input:disabled) {
    opacity: 0.6;
}
.wm-preview {
    width: 100%;
    height: 42px;
    margin-top: 12px;
}
.wm-preview[hidden] {
    display: none;
}
.wm-switch {
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    min-height: 44px;
    font-weight: 600;
}
.wm-switch input {
    appearance: none;
    width: 38px;
    height: 22px;
    border-radius: 16px;
    background: #888;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background 0.15s;
}
.wm-switch input::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
}
.wm-switch input:checked {
    background: var(--color-primary, #9b2226);
}
.wm-switch input:checked::after {
    left: 19px;
}
.wm-switch input:focus-visible {
    outline: 2px solid #222;
    outline-offset: 3px;
}
.wm-status {
    font-size: 13px;
    overflow-wrap: anywhere;
}
.wm-error {
    color: #a20d19;
    font-size: 13px;
    margin-top: 8px;
}
@media (prefers-reduced-motion: reduce) {
    .wm-switch input {
        transition: none;
    }
}
