/* Общая кнопка без изменения выбора text/vision-модели в конкретной студии. */
.assistant-prompt-settings { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.assistant-prompt-settings__button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 14px; border: 1px solid var(--as-border, #344455);
    border-radius: 14px; background: var(--as-surface, #172331); color: var(--as-text, #edf3ff);
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.assistant-prompt-settings__button.has-settings { border-color: var(--as-accent, #7455e8); }
.assistant-prompt-settings__button:hover { border-color: var(--as-accent, #7455e8); }
.assistant-prompt-settings__button:focus-visible { outline: 2px solid var(--as-accent, #7455e8); outline-offset: 3px; }
.assistant-prompt-settings__note { color: var(--as-muted, #a6b2c4); font-size: 12px; }
.assistant-prompt-settings__note:empty { display: none; }
.image-studio-assistant > .assistant-prompt-settings { grid-column: 1 / -1; order: 2; }
.voice-profile-ai-toolbar > .assistant-prompt-settings,
.character-profile-tool-card > .assistant-prompt-settings { margin-bottom: 12px; }
.video-studio-assistant-inline:has(> .assistant-prompt-settings) { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.video-studio-assistant-inline:has(> .assistant-prompt-settings) > select { flex: 1 1 170px; min-width: 0; order: 1; }
.video-studio-assistant-inline > .assistant-prompt-settings { order: 2; }
.video-studio-assistant-inline:has(> .assistant-prompt-settings) > [data-video-studio-assistant-action] { order: 3; }
.assistant-prompt-settings-modal { z-index: 30050; }
.assistant-prompt-settings-portal {
    position: fixed; inset: 0; margin: 0; padding: 0; border: 0;
    width: 100vw; height: 100dvh; max-width: none; max-height: none;
    background: transparent; color: inherit;
}
.assistant-prompt-settings-portal::backdrop { background: transparent; }
.assistant-prompt-settings-modal .text-assistant-field__control {
    background: var(--as-surface, #172331); color: var(--as-text, #edf3ff);
}
.assistant-prompt-settings-modal .text-assistant-modal__button:disabled { opacity: .5; cursor: wait; }
@media (max-width: 520px) {
    .assistant-prompt-settings-modal .text-assistant-modal__footer { gap: 6px; flex-wrap: wrap; }
    .assistant-prompt-settings-modal .text-assistant-modal__button { padding-inline: 12px; }
}
