/**
 * Voice-KI Modal — kompaktes, tab-basiertes Layout (Dashboard)
 */

.voice-ai-modal.settings-modal-content {
    max-width: 880px;
    width: min(880px, calc(100vw - 2rem));
}

.voice-ai-modal .settings-modal-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.voice-ai-modal__header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
}

.voice-ai-modal__multibot-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
    line-height: 1;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.92), rgba(63, 81, 181, 0.92));
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.voice-ai-modal__multibot-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.voice-ai-modal__info {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.78rem;
    line-height: 1.45;
}

.voice-ai-modal__body {
    padding: 1.15rem 1.35rem 1.35rem !important;
}

.voice-ai-modal__lead {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.62);
}

.voice-ai-modal__legal {
    margin: 0 0 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(254, 231, 92, 0.22);
    background: rgba(254, 231, 92, 0.05);
    overflow: hidden;
}

.voice-ai-modal__legal summary {
    cursor: pointer;
    list-style: none;
    padding: 0.55rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 248, 220, 0.95);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    user-select: none;
}

.voice-ai-modal__legal summary::-webkit-details-marker {
    display: none;
}

.voice-ai-modal__legal summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    margin-left: auto;
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.voice-ai-modal__legal[open] summary::after {
    transform: rotate(180deg);
}

.voice-ai-modal__legal-body {
    padding: 0 0.75rem 0.65rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    border-top: 1px solid rgba(254, 231, 92, 0.12);
}

.voice-ai-modal__legal-body a {
    color: #7289da;
    font-weight: 500;
}

.voice-ai-modal__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.voice-ai-modal__tab {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.58);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.voice-ai-modal__tab:hover {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(88, 101, 242, 0.35);
    background: rgba(88, 101, 242, 0.08);
}

.voice-ai-modal__tab:focus-visible {
    outline: 2px solid rgba(114, 137, 218, 0.95);
    outline-offset: 2px;
}

.voice-ai-modal__tab--active {
    color: #fff;
    border-color: rgba(88, 101, 242, 0.55);
    background: rgba(88, 101, 242, 0.22);
}

.voice-ai-modal__panels {
    min-height: 220px;
}

.voice-ai-modal__panel {
    animation: voice-ai-modal-fade 0.18s ease;
}

@keyframes voice-ai-modal-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.voice-ai-modal__section-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 0.35rem;
}

.voice-ai-modal__grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 560px) {
    .voice-ai-modal__grid2 {
        grid-template-columns: 1fr;
    }
}

.voice-ai-modal__pair-char {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 620px) {
    .voice-ai-modal__pair-char {
        grid-template-columns: 1fr;
    }
}

.voice-ai-modal__input,
.voice-ai-modal__textarea,
.voice-ai-modal__select {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 9px;
    padding: 8px 11px;
    font-family: inherit;
    font-size: 0.84rem;
}

/** Aufgeklappter System-Dropdown: nicht weiß/grau falsch gefärbt */
.voice-ai-modal__select {
    color-scheme: dark;
}

.voice-ai-modal__select option,
.voice-ai-modal__select optgroup {
    background-color: #1e1f22;
    color: #f2f3f5;
}

.voice-ai-modal__textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.45;
}

.voice-ai-modal__hint {
    margin: 0.28rem 0 0;
    font-size: 0.72rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.45);
}

.voice-ai-modal__row {
    margin-bottom: 0.85rem;
}

.voice-ai-modal__row:last-child {
    margin-bottom: 0;
}

.voice-ai-modal__toggle-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.voice-ai-modal__toggle-row:last-of-type {
    border-bottom: none;
}

.voice-ai-modal__toggle-text {
    flex: 1;
    min-width: 0;
}

.voice-ai-modal__toggle-text strong {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.15rem;
}

.voice-ai-modal__toggle-text span {
    font-size: 0.74rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.52);
}

.voice-ai-modal__channel-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.voice-ai-modal__channel-row .mod-panel-select--compact {
    flex: 1;
    min-width: 0;
}

.voice-ai-modal__status {
    margin-top: 0.65rem;
}

.voice-ai-modal .settings-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.85rem;
    margin-top: 0.25rem;
}

/* =========================================================================
 *  Kompaktere Variante (Overrides) — Modal soll weniger Platz brauchen
 * ========================================================================= */
.voice-ai-modal__body {
    padding: 0.95rem 1.1rem 1.1rem !important;
}

.voice-ai-modal__lead {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
}

.voice-ai-modal__legal {
    margin: 0 0 0.6rem;
}

.voice-ai-modal__tabs {
    margin-bottom: 0.55rem;
    padding-bottom: 0.5rem;
    gap: 4px;
}

.voice-ai-modal__tab {
    padding: 0.32rem 0.6rem;
    font-size: 0.75rem;
}

.voice-ai-modal__panels {
    min-height: 180px;
}

.voice-ai-modal__row {
    margin-bottom: 0.6rem;
}

.voice-ai-modal__toggle-row {
    padding: 0.45rem 0;
    gap: 10px;
}

.voice-ai-modal__section-label {
    margin-bottom: 0.25rem;
    font-size: 0.66rem;
}

.voice-ai-modal__hint {
    margin-top: 0.2rem;
    font-size: 0.7rem;
}

.voice-ai-modal__divider {
    margin: 0.7rem 0 !important;
}

.voice-ai-modal__input,
.voice-ai-modal__textarea,
.voice-ai-modal__select {
    padding: 6px 10px;
    font-size: 0.82rem;
}

.voice-ai-modal__textarea {
    min-height: 60px;
}

.voice-ai-modal__toggle-text strong {
    font-size: 0.82rem;
    margin-bottom: 0.1rem;
}

.voice-ai-modal__toggle-text span {
    font-size: 0.72rem;
    line-height: 1.4;
}

/* =========================================================================
 *  Rollen-Chip-UI (CSV-Inputs durch Chips + Picker ersetzt)
 * ========================================================================= */
.voice-ai-role-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
    padding: 4px 0 6px;
}

.voice-ai-role-empty {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.voice-ai-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 9px;
    background: rgba(88, 101, 242, 0.18);
    border: 1px solid rgba(88, 101, 242, 0.45);
    border-radius: 999px;
    font-size: 0.78rem;
    color: #e8eaed;
    line-height: 1;
    max-width: 100%;
}

.voice-ai-role-chip__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 9px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.voice-ai-role-chip__name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 220px;
}

.voice-ai-role-chip__remove {
    appearance: none;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0 4px;
    font-size: 1.05rem;
    line-height: 1;
    border-radius: 6px;
}

.voice-ai-role-chip__remove:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.voice-ai-role-add-btn {
    appearance: none;
    border: 1px dashed rgba(88, 101, 242, 0.55);
    background: rgba(88, 101, 242, 0.07);
    color: #c9cdfb;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.voice-ai-role-add-btn:hover {
    background: rgba(88, 101, 242, 0.18);
    color: #fff;
    border-color: rgba(88, 101, 242, 0.85);
}

/* =========================================================================
 *  Generischer Rollen-Picker-Modal (für die Chip-UI)
 * ========================================================================= */
.voice-ai-role-picker {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.voice-ai-role-picker.active {
    opacity: 1;
}

.voice-ai-role-picker__content {
    width: min(440px, calc(100vw - 2rem));
    max-height: 78vh;
    background: #1e1f22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.voice-ai-role-picker__body {
    padding: 0.85rem 1rem 1rem !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.voice-ai-role-picker__search {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    padding: 7px 10px;
    font-family: inherit;
    font-size: 0.82rem;
}

.voice-ai-role-picker__list {
    overflow-y: auto;
    max-height: 50vh;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 4px;
}

.voice-ai-role-picker__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #e8eaed;
    font-size: 0.84rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.voice-ai-role-picker__item:hover {
    background: rgba(88, 101, 242, 0.16);
    border-color: rgba(88, 101, 242, 0.5);
}

.voice-ai-role-picker__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex: 0 0 11px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.voice-ai-role-picker__name {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.voice-ai-role-picker__plus {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.voice-ai-role-picker__empty {
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
    font-size: 0.82rem;
    margin: 0;
    padding: 0.4rem 0.2rem;
}

/* --- KI Reminder: Hero + Server-Wizard (Dashboard) --- */
.aire-server-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    background: linear-gradient(
        125deg,
        rgba(88, 101, 242, 0.28) 0%,
        rgba(35, 38, 48, 0.72) 42%,
        rgba(240, 193, 98, 0.1) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    margin-bottom: 0.75rem;
}

.aire-server-hero__text {
    flex: 1;
    min-width: 200px;
}

.aire-server-hero__title {
    margin: 0 0 0.25rem;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.aire-server-hero__lead {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
}

.aire-wizard-cta {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0e0f12;
    cursor: pointer;
    background: linear-gradient(135deg, #f5f0ff 0%, #a5b4fc 40%, #6ee7b7 100%);
    box-shadow:
        0 4px 18px rgba(129, 140, 248, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition:
        transform 0.14s ease,
        box-shadow 0.14s ease;
}

.aire-wizard-cta:hover {
    transform: translateY(-1px);
    box-shadow:
        0 8px 26px rgba(129, 140, 248, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.aire-wizard-cta:active {
    transform: translateY(0);
}

.aire-wizard-cta .aire-wizard-cta__glow {
    pointer-events: none;
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.65) 0%, transparent 45%);
    opacity: 0.35;
    animation: ai-rw-shimmer 2.8s ease-in-out infinite;
}

@keyframes ai-rw-shimmer {
    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(18deg) scale(1.08);
    }
}

.aire-plan-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 680px) {
    .aire-plan-dual {
        grid-template-columns: 1fr;
    }
}

.aire-plan-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 14px;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.14), rgba(26, 28, 35, 0.88));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.aire-plan-card--embed {
    border-color: rgba(129, 140, 248, 0.2);
}

.aire-plan-card--voiceplan {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(52, 211, 153, 0.07), rgba(26, 28, 35, 0.88));
    border-color: rgba(244, 114, 182, 0.18);
}

.aire-plan-card__eyebrow {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(147, 197, 253, 0.9);
}

.aire-plan-card--voiceplan .aire-plan-card__eyebrow {
    color: rgba(251, 207, 232, 0.95);
}

.aire-plan-card__title {
    margin: 0 0 0.45rem;
    font-size: 1.03rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.aire-plan-card__title .fas {
    margin-right: 0.38rem;
    opacity: 0.88;
}

.aire-plan-card__lead {
    margin: 0 0 0.95rem;
    flex: 1;
    font-size: 0.82rem;
    line-height: 1.52;
    color: rgba(255, 255, 255, 0.6);
}

.aire-plan-card__cta.aire-wizard-cta {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.aire-plan-footnote {
    margin: 0;
    padding: 0 0 0.15rem;
    font-size: 0.8rem;
}

#aiReminderModal .aire-plan-card__lead {
    margin: 0 0 0.72rem;
    font-size: 0.78rem;
    line-height: 1.42;
}

#aiReminderModal .aire-plan-footnote {
    margin: 0.65rem 0 0;
    font-size: 0.76rem !important;
    line-height: 1.38 !important;
}

.ai-reminder-voice-wizard.settings-modal-content {
    max-width: 560px;
    width: min(560px, calc(100vw - 1.75rem));
}

.ai-reminder-voice-wiz-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.12rem;
    margin-bottom: 0.72rem;
    row-gap: 0.25rem;
}

.ai-reminder-voice-wiz-dot {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.ai-reminder-voice-wiz-dot.is-done {
    color: rgba(167, 243, 208, 0.95);
    background: rgba(52, 211, 153, 0.16);
    border-color: rgba(52, 211, 153, 0.4);
}

.ai-reminder-voice-wiz-dot.is-active {
    color: #252830;
    background: linear-gradient(135deg, #fbcfe8, #fde68a);
    border-color: rgba(251, 191, 36, 0.55);
    transform: scale(1.06);
    box-shadow: 0 8px 22px rgba(244, 114, 182, 0.32);
}

.ai-rem-vwiz-line {
    flex: 0 0 10px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.09);
}

@media (max-width: 460px) {
    .ai-rem-vwiz-line {
        flex-basis: 6px;
    }
    .ai-reminder-voice-wiz-dot {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
}

.ai-vwiz-timegrid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ai-vwiz-radio-line {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.87rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
}

.ai-vwiz-radio-line span {
    line-height: 1.38;
}

.ai-vwiz-radio-line input[type='radio'] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.ai-vwiz-delay-block {
    margin-top: 0.15rem;
}

.ai-vwiz-delay-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    align-items: center;
}

@media (max-width: 420px) {
    .ai-vwiz-delay-row {
        grid-template-columns: 1fr;
    }
}

.ai-reminder-wizard.settings-modal-content {
    max-width: 520px;
    width: min(520px, calc(100vw - 1.75rem));
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: radial-gradient(circle at 10% -10%, rgba(88, 101, 242, 0.2) 0%, rgba(26, 28, 35, 0.97) 48%);
}

.ai-reminder-wizard-body {
    padding-bottom: 0.85rem !important;
}

.ai-reminder-wizard-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
}

.ai-reminder-wizard-dot {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.ai-reminder-wizard-dot.is-done {
    color: rgba(167, 243, 208, 0.95);
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(52, 211, 153, 0.45);
}

.ai-reminder-wizard-dot.is-active {
    color: #23262f;
    background: linear-gradient(135deg, #e0e7ff, #bfdbfe);
    border-color: rgba(147, 197, 253, 0.75);
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.ai-reminder-wizard-line {
    flex: 0 0 18px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.ai-reminder-wizard-caption {
    margin: 0 0 0.85rem;
    font-size: 0.93rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.ai-reminder-wizard-review {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ai-reminder-wizard-review-block {
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.86rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}

.ai-reminder-wizard-review-block strong {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(129, 140, 248, 0.95);
    margin-bottom: 0.28rem;
}

.ai-reminder-wizard-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Voice-KI: Multi-Channel Worker — Setup-Assistent */
.voice-ai-worker-wizard-shell .ai-reminder-wizard-track.voice-ai-worker-wiz-track {
    flex-wrap: wrap;
    gap: 0.35rem 0.2rem;
    justify-content: center;
    margin-bottom: 0.15rem;
}

@media (min-width: 600px) {
    .voice-ai-worker-wizard-shell .ai-reminder-wizard-track.voice-ai-worker-wiz-track {
        flex-wrap: nowrap;
    }
}

.voice-ai-worker-wiz-bullets {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    line-height: 1.55;
}

.voice-ai-worker-wiz-bullets li {
    margin-bottom: 0.35rem;
}

.voice-ai-worker-wiz-steps-list {
    margin: 0.5rem 0 1rem;
    padding-left: 1.35rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    line-height: 1.55;
}

.voice-ai-worker-wiz-steps-list li {
    margin-bottom: 0.45rem;
}

.voice-ai-worker-wiz-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    margin-top: 0.75rem;
    font-size: 0.84rem;
    line-height: 1.45;
}

.voice-ai-worker-wiz-callout--warn {
    background: rgba(254, 231, 92, 0.1);
    border: 1px solid rgba(254, 231, 92, 0.35);
    color: #fee75c;
}

.voice-ai-worker-wiz-callout--danger {
    background: rgba(237, 66, 69, 0.1);
    border: 1px solid rgba(237, 66, 69, 0.28);
    color: rgba(255, 200, 200, 0.95);
}

.voice-ai-worker-wiz-callout--muted {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.voice-ai-worker-wiz-portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    border: 1px solid rgba(88, 101, 242, 0.45);
    background: rgba(88, 101, 242, 0.16);
    color: #cdd4ff;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.voice-ai-worker-wiz-portal-btn:hover {
    background: rgba(88, 101, 242, 0.26);
    border-color: rgba(129, 140, 248, 0.55);
    color: #eef0ff;
}

.voice-ai-worker-wiz-label {
    display: block;
    margin: 0.75rem 0 0.3rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.5);
}

#voiceWiz_worker_label {
    margin-bottom: 0.15rem;
}

.voice-ai-worker-invite-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.voice-ai-worker-invite-cta {
    flex: 1 1 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.15rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    border: none;
    box-shadow: 0 4px 18px rgba(88, 101, 242, 0.35);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.voice-ai-worker-invite-cta:hover:not(.is-disabled) {
    filter: brightness(1.06);
    box-shadow: 0 6px 22px rgba(88, 101, 242, 0.45);
    transform: translateY(-1px);
}

.voice-ai-worker-invite-cta.is-disabled {
    opacity: 0.42;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: none;
}

.voice-ai-worker-invite-cta .voice-ai-worker-invite-cta__text {
    text-align: center;
}

.voice-ai-worker-invite-copy {
    align-self: center;
}

.voice-ai-worker-wiz-checklist {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.5;
}

.voice-ai-worker-wiz-checklist li {
    margin-bottom: 0.3rem;
}

.voice-ai-worker-wiz-confirm-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0.65rem 0.72rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    user-select: none;
}

.voice-ai-worker-wiz-confirm-row input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.voice-ai-worker-wizard-launch-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.35rem;
    border-radius: 12px;
    border: 1px solid rgba(129, 140, 248, 0.45);
    background: rgba(88, 101, 242, 0.18);
    color: #d4d9ff;
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.voice-ai-worker-wizard-launch-btn:hover {
    background: rgba(88, 101, 242, 0.28);
    border-color: rgba(129, 140, 248, 0.65);
    color: #f0f2ff;
    transform: translateY(-1px);
}

.voice-ai-worker-wizard-launch-btn__glow {
    position: absolute;
    inset: auto -40% -60%;
    height: 120%;
    background: radial-gradient(circle at 50% 0%, rgba(129, 140, 248, 0.35), transparent 55%);
    pointer-events: none;
}

.voice-ai-worker-setup-cta-row {
    padding-top: 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.voice-ai-worker-settings-enable-row {
    margin: 0.85rem 0 0.85rem;
    padding: 0.65rem 0.72rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.voice-ai-worker-settings-enable-label {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    line-height: 1.38;
}

.voice-ai-worker-settings-enable-label input {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.15rem;
    accent-color: #5865f2;
}

.voice-ai-worker-settings-muted {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88em;
}

select.voice-ai-worker-settings-select {
    cursor: pointer;
}

/* KI Reminder Modal: Audit-Channel (Admin) oben links im Header */
.ai-rem-audit-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    padding: 0.45rem 0.72rem;
    border-radius: 8px;
    border: 1px solid rgba(129, 140, 248, 0.35);
    background: rgba(88, 101, 242, 0.12);
    color: #aeb5ff;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ai-rem-audit-channel-btn:hover {
    background: rgba(88, 101, 242, 0.22);
    border-color: rgba(129, 140, 248, 0.55);
    color: #c8ceff;
}

#aiReminderModal .ai-reminder-modal-header > h2 {
    flex: 1;
    min-width: 0;
}

/* KI Reminder: Audit-Log in eigenem Overlay (ueber Haupt-Modal) */
#aiReminderAuditModal.ai-reminder-audit-modal-layer {
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#aiReminderAuditModal .ai-reminder-audit-modal-shell {
    width: min(480px, 100%);
    max-height: min(90vh, 700px);
    display: flex;
    flex-direction: column;
}

#aiReminderAuditModal .ai-reminder-audit-modal-body {
    overflow-y: auto;
}

#aiReminderAuditModal .ai-rem-audit-channel-row--modal .ai-rem-audit-channel-controls {
    flex-basis: 260px;
}

.ai-rem-audit-channel-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.ai-rem-audit-channel-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

.ai-rem-audit-channel-select {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 16, 22, 0.85);
    color: var(--text-primary, #f2f3f5);
    font-family: inherit;
    font-size: 0.86rem;
}

.ai-rem-audit-channel-controls {
    display: flex;
    flex: 1 1 280px;
    min-width: 0;
    align-items: stretch;
    gap: 0.45rem;
}

.ai-rem-channel-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.45rem 0.65rem;
}

.ai-rem-channel-refresh-btn--compact {
    min-width: 2.55rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.ai-rem-channel-picker-row {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
}

.ai-rem-channel-picker-row .ai-rem-channel-picker-select {
    flex: 1;
    min-width: 0;
}

.ai-rem-audit-save-btn {
    flex-shrink: 0;
}

/* KI Reminder Modal: Header-Toggle fuer Admins */
#aiReminderModal .ai-reminder-modal-header {
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

#aiReminderModal .ai-reminder-header-voice-actions {
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
    max-width: 100%;
}

#aiReminderModal .ai-reminder-header-voice-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.25;
    text-align: right;
    max-width: 210px;
}

@media (max-width: 620px) {
    #aiReminderModal .ai-reminder-header-voice-label {
        text-align: left;
        max-width: none;
    }

    #aiReminderModal .ai-reminder-header-voice-actions {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
}

#aiReminderModal .ai-reminder-modal-header > .settings-modal-close {
    flex-shrink: 0;
    margin-left: 0.25rem;
}

/* --- KI Reminder Modal: feste Tab-Leiste, scrollender Inhalt --- */
#aiReminderModal .settings-modal-content.ai-reminder-modal-shell {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#aiReminderModal .ai-reminder-modal-tabs-bar {
    flex-shrink: 0;
}

#aiReminderModal .ai-reminder-modal__tabs {
    display: flex;
    gap: 0.45rem;
    margin: 0;
    flex-wrap: wrap;
    border-bottom: none;
}

#aiReminderModal .settings-modal-footer {
    flex-shrink: 0;
}

/* Voice-Liste zuerst, Admin darunter */
#aiReminderPanel-voice .ai-reminder-voice-list-block {
    margin-bottom: 0.5rem;
}

.ai-reminder-voice-hint-compact {
    margin: 0.25rem 0 0.65rem !important;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
}

.ai-reminder-voice-admin-wrap {
    margin-top: 0.85rem;
}

.ai-reminder-voice-settings-details {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
    overflow: hidden;
}

.ai-reminder-voice-settings-summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.ai-reminder-voice-settings-summary::-webkit-details-marker {
    display: none;
}

.ai-reminder-voice-settings-summary-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.35), rgba(52, 211, 153, 0.15));
    color: #e8ecff;
    flex-shrink: 0;
}

.ai-reminder-voice-settings-summary-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.ai-reminder-voice-settings-summary-title {
    font-size: 0.92rem;
    font-weight: 700;
}

.ai-reminder-voice-settings-summary-sub {
    font-size: 0.77rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.35;
}

.ai-reminder-settings-chevron {
    color: rgba(255, 255, 255, 0.45);
    transition: transform 0.2s ease;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.ai-reminder-voice-settings-details[open] .ai-reminder-settings-chevron {
    transform: rotate(180deg);
}

.ai-reminder-voice-settings-inner {
    padding: 0 0.85rem 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-reminder-settings-compact {
    padding-top: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ai-rem-toggle-compact {
    padding: 0.45rem 0.55rem !important;
}

.ai-rem-toggle-compact .voice-ai-modal__toggle-text span {
    font-size: 0.76rem !important;
    opacity: 0.8;
}

.ai-rem-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.ai-rem-mini-grid-span2 {
    grid-column: 1 / -1;
}

.ai-rem-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.46);
    margin-bottom: 0.25rem;
}

.ai-rem-micro-hint {
    margin: 0.28rem 0 0 !important;
    font-size: 0.71rem !important;
    color: rgba(255, 255, 255, 0.42) !important;
}

.ai-rem-roles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

@media (max-width: 640px) {
    .ai-rem-roles-grid,
    .ai-rem-mini-grid {
        grid-template-columns: 1fr;
    }

    .ai-rem-mini-grid-span2 {
        grid-column: 1;
    }
}

.ai-rem-limits-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.4rem;
    align-items: end;
}

.ai-rem-limit-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.ai-rem-limit-field .voice-ai-modal__input {
    font-size: 0.82rem;
    padding: 0.4rem 0.45rem;
}

.ai-rem-limit-wide {
    grid-column: span 2;
}

@media (max-width: 720px) {
    .ai-rem-limits-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-rem-limit-wide {
        grid-column: span 2;
    }
}

.ai-rem-settings-save-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Voice-Reminder Kartenliste */
.ai-reminder-voice-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ai-vr-empty {
    padding: 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.025);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.ai-vr-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    cursor: pointer;
    outline: none;
    transition:
        transform 0.14s ease,
        border-color 0.14s ease,
        box-shadow 0.14s ease;
    text-align: left;
}

.ai-vr-card:hover {
    transform: translateY(-1px);
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.ai-vr-card:focus-visible {
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.55);
}

.ai-vr-card--persist .ai-vr-card__accent {
    background: linear-gradient(180deg, #a78bfa, #818cf8);
}

.ai-vr-card--temp .ai-vr-card__accent {
    background: linear-gradient(180deg, #5eead4, #38bdf8);
}

.ai-vr-card__accent {
    flex: 0 0 4px;
}

.ai-vr-card__main {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.72rem;
}

.ai-vr-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.ai-vr-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

.ai-vr-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.42rem;
    border-radius: 999px;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ai-vr-pill--persist {
    background: rgba(129, 140, 248, 0.22);
    color: #dcd6ff;
    border: 1px solid rgba(129, 140, 248, 0.35);
}

.ai-vr-pill--temp {
    background: rgba(45, 212, 191, 0.16);
    color: #b6fff1;
    border: 1px solid rgba(45, 212, 191, 0.32);
}

.ai-vr-pill--muted {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-vr-pill--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.ai-vr-card__when {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 0.78rem;
    color: #a5f3fc;
    white-space: nowrap;
}

.ai-vr-countdown--muted {
    color: rgba(255, 255, 255, 0.32);
    font-weight: 600;
}

.ai-vr-card__excerpt {
    margin: 0.42rem 0 0;
    font-size: 0.82rem;
    line-height: 1.42;
    color: rgba(255, 255, 255, 0.82);
    word-break: break-word;
}

.ai-vr-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.45rem;
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.5);
}

.ai-vr-card__who,
.ai-vr-card__ch {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
}

.ai-vr-card__who i,
.ai-vr-card__ch i {
    opacity: 0.55;
    font-size: 0.74rem;
}

.ai-vr-card__hint-footer {
    margin-top: 0.5rem;
    font-size: 0.71rem;
    font-weight: 600;
    color: rgba(129, 140, 248, 0.9);
}

.ai-vr-card__hint-footer i {
    margin-left: 0.08rem;
    opacity: 0.75;
}

.ai-vr-card__del {
    flex-shrink: 0;
    align-self: stretch;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    border-radius: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.75;
}

.ai-vr-card__del:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.2) !important;
}

.ai-reminder-voice-detail-layer {
    backdrop-filter: blur(10px);
}

.ai-reminder-voice-detail-card {
    width: min(440px, calc(100vw - 1.75rem));
    max-height: min(92vh, 720px);
    display: flex;
    flex-direction: column;
}

.ai-reminder-voice-detail-header h2 {
    font-size: 1.08rem !important;
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.ai-reminder-voice-detail-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.1rem 1.35rem !important;
}

.ai-vr-detail-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.ai-vr-detail-lead {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    line-height: 1.52;
    color: rgba(255, 255, 255, 0.76);
}

.ai-vr-detail-dl {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.95rem;
}

.ai-vr-detail-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.55rem;
    font-size: 0.82rem;
    align-items: start;
}

.ai-vr-detail-key {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 0.1rem;
}

.ai-vr-detail-val {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.42;
}

.ai-vr-code {
    display: inline-block;
    margin-top: 0.15rem;
    font-size: 0.71rem !important;
    padding: 0.12rem 0.38rem !important;
    border-radius: 6px !important;
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.ai-vr-detail-msg-head {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(129, 140, 248, 0.95);
    margin-bottom: 0.42rem;
}

.ai-vr-detail-msg {
    font-size: 0.87rem;
    line-height: 1.52;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 0.72rem 0.82rem;
    word-break: break-word;
}

.ai-vr-countdown--inline {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

@media (max-width: 420px) {
    .ai-vr-detail-row {
        grid-template-columns: 1fr;
        gap: 0.22rem;
    }

    .ai-vr-detail-key {
        padding-top: 0;
    }
}

/* Voice-KI Channel-Embed Editor */
.voice-ai-modal__embed-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0.35rem 0 0.5rem;
}

.voice-ai-modal__embed-reset-btn {
    font-size: 0.82rem;
    padding: 0.38rem 0.72rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.voice-ai-modal__embed-placeholders {
    font-family: ui-monospace, monospace;
    font-size: 0.76rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.62rem 0.72rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.voice-ai-modal__embed-lead code {
    font-size: 0.82em;
    padding: 0.08rem 0.28rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.28);
}

.voice-ai-modal__embed-split {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin-top: 0.35rem;
}

@media (max-width: 720px) {
    .voice-ai-modal__embed-split {
        grid-template-columns: 1fr;
    }
}

.voice-ai-modal__embed-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.voice-ai-modal__embed-demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin-top: 0.28rem;
}

.voice-ai-modal__embed-demo-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.voice-ai-modal__embed-demo-num {
    width: 100%;
    padding: 0.28rem 0.38rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 0.88rem;
}

.voice-ai-modal__embed-tech-toggle {
    margin-top: 0;
}

.voice-ai-modal__embed-details summary {
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(129, 140, 248, 0.95);
}

.voice-ai-modal__embed-details {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    background: rgba(0, 0, 0, 0.12);
}

.voice-ai-modal__embed-preview-col {
    min-width: 0;
}

.voice-ai-modal__discord-shell {
    background: #313338;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.35);
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.voice-ai-modal__discord-ch-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.72rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    background: #2b2d31;
    border-bottom: 1px solid rgba(0, 0, 0, 0.28);
}

.voice-ai-modal__discord-msg {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.72rem 0.85rem 1rem;
}

.voice-ai-modal__discord-av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.voice-ai-modal__discord-msg-head {
    font-size: 0.76rem;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.55);
}

.voice-ai-modal__discord-author {
    font-weight: 600;
    color: #fff;
}

.voice-ai-modal__discord-bot-tag {
    margin-left: 0.35rem;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.06rem 0.28rem;
    border-radius: 4px;
    background: #5865f2;
    color: #fff;
    vertical-align: middle;
}

.voice-ai-modal__discord-time {
    margin-left: 0.45rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.38);
}

.voice-ai-modal__embed-variant-bar {
    display: inline-flex;
    gap: 0.28rem;
    margin-bottom: 0.45rem;
    padding: 0.22rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
}

.voice-ai-modal__embed-variant-btn {
    border: none;
    cursor: pointer;
    padding: 0.32rem 0.72rem;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    background: transparent;
    transition: background 0.12s ease, color 0.12s ease;
}

.voice-ai-modal__embed-variant-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.voice-ai-modal__embed-variant-btn--active {
    color: #fff;
    background: rgba(88, 101, 242, 0.35);
}

.voice-ai-modal__embed-live {
    background: #2f3136;
    border-radius: 4px;
    padding: 0.72rem 0.85rem 0.72rem 0.72rem;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
}

.voice-ai-modal__embed-live > .voice-ai-modal__embed-live-accent,
.voice-ai-modal__embed-live > .embed-color-bar.voice-ai-modal__embed-live-accent {
    width: 4px;
    min-width: 4px;
    flex-shrink: 0;
    border-radius: 3px;
    align-self: stretch;
}

/** Zeile rechts vom Farbstreifen: Fließtext + Thumbnail wie Discord-Embed */
.voice-ai-modal__embed-live-row {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.7rem;
    min-width: 0;
}

.voice-ai-modal__embed-thumb-col {
    flex-shrink: 0;
    align-self: flex-start;
}

.voice-ai-modal__embed-guild-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.voice-ai-modal__embed-live-main {
    flex: 1;
    min-width: 0;
    padding-left: 0.35rem;
}

.voice-ai-modal__personal-embed-dummy.voice-ai-modal__embed-live .voice-ai-modal__embed-live-main {
    flex: 1;
}

.voice-ai-modal__embed-live-accent {
    background-color: #5865f2 !important;
}

.voice-ai-modal__embed-live-title {
    display: block;
    width: 100%;
    margin: 0 0 0.42rem;
    padding: 0.12rem 0.08rem;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #00aff4;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    font-family: inherit;
}

.voice-ai-modal__embed-live-title:focus {
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.45);
}

.voice-ai-modal__embed-live-title::placeholder {
    color: rgba(114, 182, 242, 0.55);
}

.voice-ai-modal__embed-live-desc {
    width: 100%;
    margin: 0 0 0.55rem;
    padding: 0.22rem 0.08rem;
    border: none;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.15);
    color: #dcddde;
    font-size: 0.875rem;
    line-height: 1.45;
    resize: vertical;
    min-height: 4.5rem;
    outline: none;
    font-family: inherit;
}

.voice-ai-modal__embed-live-desc:focus {
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.35);
}

.voice-ai-modal__embed-live-desc::placeholder {
    color: rgba(220, 221, 222, 0.45);
}

.voice-ai-modal__embed-tech-preview {
    margin-bottom: 0.55rem;
}

.voice-ai-modal__embed-tech-preview .embed-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem 0.65rem;
}

@media (max-width: 520px) {
    .voice-ai-modal__embed-tech-preview .embed-fields {
        grid-template-columns: 1fr;
    }
}

.voice-ai-modal__embed-tech-preview .embed-field {
    font-size: 0.8rem;
    min-width: 0;
}

.voice-ai-modal__embed-tech-preview .embed-field-name {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.12rem;
}

.voice-ai-modal__embed-tech-preview .embed-field-value {
    color: #dcddde;
    word-break: break-word;
}

.voice-ai-modal__embed-tech-preview .embed-field-row2 {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.65rem;
}

@media (max-width: 520px) {
    .voice-ai-modal__embed-tech-preview .embed-field-row2 {
        grid-template-columns: 1fr;
    }
}

.voice-ai-modal__embed-live-fields {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    margin-top: 0.12rem;
}

.voice-ai-modal__embed-live-field {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.voice-ai-modal__embed-live-fn {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.48);
}

.voice-ai-modal__embed-live-field-input {
    width: 100%;
    padding: 0.28rem 0.42rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
    color: #dcddde;
    font-size: 0.82rem;
    outline: none;
    font-family: inherit;
}

.voice-ai-modal__embed-live-field-textarea {
    min-height: 3rem;
    resize: vertical;
}

.voice-ai-modal__preview-component-row {
    margin-top: 0.55rem;
}

.voice-ai-modal__preview-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.85rem;
    border-radius: 4px;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: default;
    font-family: inherit;
    background: #5865f2;
    color: #fff;
}

.voice-ai-modal__preview-join-btn.voice-ai-modal__preview-join-btn--muted {
    background: #4f545c;
    color: rgba(255, 255, 255, 0.72);
}

.voice-ai-modal__preview-join-btn.voice-ai-modal__preview-join-btn--danger {
    background: #ed4245;
}

.voice-ai-modal__embed-live-stats {
    padding: 0.55rem 0.62rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.16);
}

.voice-ai-modal__embed-live-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    margin: 0.35rem 0 0.45rem;
    font-size: 0.86rem;
    color: #fff;
}

.voice-ai-modal__embed-live-stat-k {
    display: inline-block;
    min-width: 8.8rem;
    font-size: 0.73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.5);
}

.voice-ai-modal__embed-live-stats-grid strong {
    font-variant-numeric: tabular-nums;
}

.voice-ai-modal__embed-refresh-live {
    font-size: 0.82rem;
    padding: 0.35rem 0.72rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.voice-ai-modal__embed-subtoggles {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0.15rem 0 0.35rem;
    padding: 0.45rem 0.55rem 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.12);
}

.voice-ai-modal__embed-subtoggles--disabled {
    opacity: 0.45;
    pointer-events: none;
}

.voice-ai-modal__embed-subtoggle {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    line-height: 1.35;
}

.voice-ai-modal__embed-subtoggle input {
    margin-top: 0.12rem;
    flex-shrink: 0;
}

.voice-ai-modal__embed-subtoggle-hint {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

.voice-ai-modal__embed-footer-toggle {
    margin-top: 0.15rem;
}

.voice-ai-modal__embed-scenario-bar {
    flex-wrap: wrap;
}

.voice-ai-modal__embed-scenario-bar .voice-ai-modal__embed-variant-btn {
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
}

.voice-ai-modal__embed-footer-preview {
    margin-top: 0.55rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.voice-ai-modal__embed-live-fn-badge {
    margin-left: 0.35rem;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(129, 140, 248, 0.95);
    vertical-align: middle;
}

.voice-ai-modal__embed-tech-preview .embed-field.embed-field--full {
    width: 100%;
    margin-top: 0.35rem;
}

.voice-ai-modal__personal-preview-root {
    margin-top: 0.15rem;
}

.voice-ai-modal__personal-embed-dummy .voice-ai-modal__personal-embed-accent {
    background: #57f287;
}

.voice-ai-modal__personal-embed-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}

.voice-ai-modal__personal-embed-desc {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #dcddde;
    margin-bottom: 0.45rem;
}

.voice-ai-modal__personal-embed-mode {
    display: inline-block;
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.82);
}

.voice-ai-modal__personal-embed-only {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
}

.voice-ai-modal__personal-embed-fake-foot {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.28rem;
}

.voice-ai-modal__personal-fake-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.voice-ai-modal__personal-fake-btns--row2 {
    margin-top: 0.35rem;
}

.voice-ai-modal__fake-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.65rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #4f545c;
    color: rgba(255, 255, 255, 0.9);
}

.voice-ai-modal__fake-btn--danger {
    background: #ed4245;
    color: #fff;
}

.voice-ai-modal__fake-btn--wide {
    min-width: 10rem;
    justify-content: center;
}

.voice-ai-modal__personal-preview-note {
    margin-top: 0.65rem;
}

/* --- Dashboard: gemeinsame Aktions-Buttons (KI Reminder, Worker, Multi-Bot) --- */
.va-dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.2;
    padding: 0.48rem 0.95rem;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease;
}

.va-dash-btn:focus-visible {
    outline: 2px solid rgba(129, 140, 248, 0.85);
    outline-offset: 2px;
}

.va-dash-btn--sm {
    font-size: 0.78rem;
    padding: 0.38rem 0.72rem;
    border-radius: 9px;
}

.va-dash-btn--lg {
    font-size: 0.88rem;
    padding: 0.55rem 1.15rem;
    border-radius: 11px;
}

.va-dash-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.82);
}

.va-dash-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.va-dash-btn--primary {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 55%, #3c45a8 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}

.va-dash-btn--primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 22px rgba(88, 101, 242, 0.42);
    transform: translateY(-1px);
}

.va-dash-btn--secondary {
    background: rgba(88, 101, 242, 0.12);
    border-color: rgba(129, 140, 248, 0.35);
    color: #c9ceff;
}

.va-dash-btn--secondary:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(165, 175, 252, 0.55);
    color: #eef0ff;
}

.va-dash-btn--danger-soft {
    background: rgba(237, 66, 69, 0.1);
    border-color: rgba(237, 66, 69, 0.35);
    color: #f6a8aa;
}

.va-dash-btn--danger-soft:hover {
    background: rgba(237, 66, 69, 0.2);
    border-color: rgba(237, 66, 69, 0.55);
    color: #ffdee0;
}

/* KI Reminder Modal: gehobene Optik + Pill-Tabs */
#aiReminderModal .settings-modal-content.ai-reminder-modal-shell--elevated {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

#aiReminderModal .settings-modal-content.ai-reminder-modal-shell--elevated::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #5865f2, #57f287, #fee75c, #eb459e);
    opacity: 0.92;
}

#aiReminderModal .ai-reminder-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

#aiReminderModal .ai-reminder-modal__tabs--pills .voice-ai-modal__tab {
    border-radius: 999px;
    padding: 0.42rem 0.92rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    gap: 0.35rem;
}

#aiReminderModal .ai-reminder-modal__tabs--pills .voice-ai-modal__tab i {
    font-size: 0.76rem;
    opacity: 0.85;
}

#aiReminderModal .ai-reminder-modal__tabs--pills .voice-ai-modal__tab.is-active {
    color: #fff;
    border-color: rgba(129, 140, 248, 0.55);
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.35), rgba(88, 101, 242, 0.12));
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.2);
}

#aiReminderPanel-settings .ai-reminder-settings-tab-intro {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem 0.95rem;
    margin-bottom: 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(129, 140, 248, 0.22);
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(87, 242, 135, 0.05));
}

#aiReminderPanel-settings .ai-reminder-settings-tab-intro__icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.25);
    color: #dfe4ff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

#aiReminderPanel-settings .ai-reminder-settings-tab-intro__title {
    margin: 0 0 0.2rem;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

#aiReminderPanel-settings .ai-reminder-settings-tab-intro__lead {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.62);
}

#aiReminderPanel-settings .ai-reminder-settings-tab-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.05rem 1.05rem;
}

/* Multi-Bot Modal */
.voice-ai-multibot-modal-overlay {
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(6px);
}

.voice-ai-mb-shell.settings-modal-content {
    max-width: 880px;
    width: min(880px, calc(100vw - 2rem));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.2),
        0 26px 60px rgba(0, 0, 0, 0.5);
}

.voice-ai-mb-header {
    padding-bottom: 0.85rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.voice-ai-mb-body {
    padding-top: 1.1rem !important;
}

.voice-ai-mb-lead {
    margin-bottom: 1rem !important;
}

.voice-ai-mb-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.voice-ai-mb-stat {
    flex: 1 1 120px;
    min-width: 108px;
    padding: 0.55rem 0.72rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.voice-ai-mb-stat__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.voice-ai-mb-stat__val {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.08rem;
    font-weight: 800;
}

.voice-ai-mb-stat--brand .voice-ai-mb-stat__val {
    color: #a9b3ff;
}
.voice-ai-mb-stat--ok .voice-ai-mb-stat__val {
    color: #57f287;
}
.voice-ai-mb-stat--busy .voice-ai-mb-stat__val {
    color: #fee75c;
}
.voice-ai-mb-stat--tier-ok .voice-ai-mb-stat__val {
    color: #57f287;
}
.voice-ai-mb-stat--tier-lock .voice-ai-mb-stat__val {
    color: #ed4245;
}

.voice-ai-multibot-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.voice-ai-multibot-empty {
    opacity: 0.82;
    text-align: center;
    padding: 1.65rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.voice-ai-mb-setup-block {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(88, 101, 242, 0.2);
    background: rgba(88, 101, 242, 0.06);
}

.voice-ai-mb-setup-hint {
    margin-bottom: 0.55rem !important;
}

.voice-ai-mb-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem 1rem !important;
    background: rgba(18, 20, 28, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.voice-ai-mb-worker-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.82rem 0.92rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.voice-ai-mb-worker-card:hover {
    border-color: rgba(129, 140, 248, 0.35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.voice-ai-mb-worker-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.voice-ai-mb-worker-card__titles {
    min-width: 0;
}

.voice-ai-mb-worker-card__name {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.voice-ai-mb-worker-card__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.voice-ai-mb-badge {
    font-size: 0.69rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.voice-ai-mb-badge--ok {
    background: rgba(87, 242, 135, 0.16);
    color: #72f899;
}

.voice-ai-mb-badge--danger {
    background: rgba(237, 66, 69, 0.14);
    color: #ffa1a4;
}

.voice-ai-mb-badge--brand {
    background: rgba(88, 101, 242, 0.2);
    color: #bdc4ff;
}

.voice-ai-mb-badge--muted {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
}

.voice-ai-mb-badge--busy {
    background: rgba(254, 231, 92, 0.15);
    color: #fde98a;
}

.voice-ai-mb-worker-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.voice-ai-mb-worker-card__meta {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.5);
}

.voice-ai-mb-worker-card__meta code {
    font-size: 0.73rem;
}

@media (max-width: 620px) {
    .voice-ai-mb-worker-card__actions {
        width: 100%;
    }

    .voice-ai-mb-worker-card__actions .va-dash-btn {
        flex: 1 1 auto;
    }
}

/* Worker-Einstellungen Modal Footer */
.voice-ai-worker-settings-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem 1rem !important;
    justify-content: flex-end;
    background: rgba(18, 20, 28, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.voice-ai-worker-settings-footer-spacer {
    flex: 1;
}

.voice-ai-worker-wizard-footer-actions {
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
    padding: 0.85rem 1.25rem 1rem !important;
    align-items: center;
    justify-content: flex-end;
    background: rgba(18, 20, 28, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#aiReminderAuditModal .ai-rem-audit-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
}

/* Dashboard-Modals: sofort sichtbares Overlay während API-Ladevorgängen */
@keyframes dashboard-modal-spin {
    to {
        transform: rotate(360deg);
    }
}

.settings-modal.dashboard-modal--data-loading > .settings-modal-content > .settings-modal-body {
    position: relative;
    pointer-events: none;
}

.settings-modal.dashboard-modal--data-loading > .settings-modal-content > .settings-modal-body::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 13, 19, 0.64);
    backdrop-filter: blur(4px);
    z-index: 80;
    border-radius: 0 0 14px 14px;
}

.settings-modal.dashboard-modal--data-loading > .settings-modal-content > .settings-modal-body::before {
    content: '';
    position: absolute;
    top: min(45%, 14rem);
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #5865f2;
    border-radius: 50%;
    animation: dashboard-modal-spin 0.75s linear infinite;
    z-index: 81;
    box-sizing: border-box;
}
