.device-ai-action {
    display: flex;
    min-height: 30px;
    align-items: center;
    gap: 8px;
    padding: 0 2px 6px;
    color: var(--chat-text-dim, #8ea0ad);
    font-size: 0.76rem;
}

.device-ai-action[hidden] {
    display: none;
}

.device-ai-command,
.device-ai-undo {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(67, 221, 238, 0.24);
    border-radius: 6px;
    background: rgba(9, 25, 31, 0.68);
    color: var(--chat-cyan, #43ddee);
    font: inherit;
    cursor: pointer;
}

.device-ai-command:hover,
.device-ai-command:focus-visible,
.device-ai-undo:hover,
.device-ai-undo:focus-visible {
    border-color: rgba(67, 221, 238, 0.58);
    background: rgba(12, 39, 47, 0.84);
}

.device-ai-command:disabled {
    cursor: wait;
    opacity: 0.56;
}

.device-ai-status {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device-ai-undo {
    margin-left: auto;
    color: var(--chat-text-soft, #c7d2d9);
}

@media (max-width: 560px) {
    .device-ai-action {
        min-height: 34px;
        padding: 0 2px 5px;
    }

    .device-ai-command,
    .device-ai-undo {
        min-height: 32px;
    }
}
