
.creation-chat-editor {
    position: relative;
}

.creation-chat-editor:has(> .creation-prompt-size-toggle) .creation-chat-mention-editor {
    padding-inline-end: 36px;
}

.creation-prompt-size-toggle {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    z-index: 11;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: var(--creation-soft, transparent);
    color: var(--creation-muted);
    cursor: pointer;
}

.creation-prompt-size-toggle svg {
    width: 16px;
    height: 16px;
}

.creation-prompt-size-toggle:hover,
.creation-prompt-size-toggle:focus-visible {
    color: var(--creation-text);
    background: var(--creation-border);
}

.creation-chat-composer .creation-chat-editor.is-prompt-expanded .creation-chat-mention-container {
    height: clamp(240px, 50dvh, 560px);
}

.creation-chat-composer .creation-chat-editor.is-prompt-expanded .creation-chat-mention-editor {
    max-height: none !important;
}
/* Task Refill UI enhancements */
.creation-user-message-actions {
    opacity: 0.78 !important;
}
.creation-user-message:hover .creation-user-message-actions,
.creation-user-message:focus-within .creation-user-message-actions {
    opacity: 1 !important;
}
.creation-user-message-actions button.is-refill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid var(--creation-border, rgba(120, 120, 128, 0.22));
    background: var(--creation-soft, rgba(120, 120, 128, 0.06));
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}
.creation-message-variant-action {
    opacity: 0.82 !important;
}
.creation-assistant-message:hover .creation-message-variant-action,
.creation-assistant-message:focus-within .creation-message-variant-action {
    opacity: 1 !important;
}
.wb-batch-actions {
    opacity: 0.86 !important;
}
.wb-batch:is(:hover, :focus-within) .wb-batch-actions {
    opacity: 1 !important;
}
.wb-batch-refill-btn {
    width: auto !important;
    padding-inline: 8px !important;
    gap: 4px !important;
    font-size: 12px;
    font-weight: 500;
}
.wb-tile-failed-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
