.mus-field {
    margin-bottom: 18px;
}

.mus-switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 72px;
    padding: 14px;
    border: 1px solid var(--exn-line, #dbe3ef);
    border-radius: 8px;
    background: var(--exn-surface, #ffffff);
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.mus-switch-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.mus-switch-card.is-disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.mus-switch-card.has-error {
    border-color: #be123c;
}

.mus-switch-card__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.mus-switch-card__title {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--exn-ink, #0f172a);
    line-height: 1.3;
}

.mus-switch-card__desc {
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--exn-muted, #64748b);
    line-height: 1.45;
}

.mus-switch {
    position: relative;
    flex: 0 0 auto;
}

.mus-switch__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mus-switch__track {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color 0.15s ease;
}

.mus-switch__thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
    transition: transform 0.15s ease;
}

.mus-switch__input:checked + .mus-switch__track {
    background: var(--exn-primary, #2563eb);
}

.mus-switch__input:checked + .mus-switch__track .mus-switch__thumb {
    transform: translateX(20px);
}

.mus-switch-card:has(.mus-switch__input:checked) {
    border-color: rgba(37, 99, 235, 0.36);
    background: rgba(37, 99, 235, 0.04);
}

.mus-switch-card:has(.mus-switch__input:checked) .mus-switch-card__title {
    color: var(--exn-primary, #2563eb);
}

.mus-switch-card:has(.mus-switch__input:focus-visible) {
    border-color: var(--exn-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.invalid-feedback.d-block {
    margin-top: 6px;
    font-size: 0.75rem;
}

[data-bs-theme="dark"] .mus-switch-card {
    background: #111c2f;
    border-color: #314158;
    box-shadow: none;
}

[data-bs-theme="dark"] .mus-switch-card:hover {
    border-color: #4b6384;
}

[data-bs-theme="dark"] .mus-switch-card__title {
    color: #f8fafc;
}

[data-bs-theme="dark"] .mus-switch-card__desc {
    color: #a7b4c7;
}

[data-bs-theme="dark"] .mus-switch__track {
    background: #4b5563;
}

[data-bs-theme="dark"] .mus-switch-card:has(.mus-switch__input:checked) {
    background: rgba(37, 99, 235, 0.12);
    border-color: #60a5fa;
}
