/* "Suggest with AI" buttons and the suggestion shown under a field. */
.dre-form .dre-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 5px 12px;
    border: 1px solid rgba(171, 152, 137, 0.6);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(171, 152, 137, 0.18));
    color: var(--dd-main);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}
.dre-form .dre-ai-btn:hover {
    border-color: var(--dd-main);
    background: #fff;
}
.dre-form .dre-ai-btn:focus-visible {
    outline: 2px solid var(--dd-accent);
    outline-offset: 2px;
}
.dre-form .dre-ai-btn[disabled] {
    opacity: 0.6;
    cursor: progress;
}
.dre-ai-panel {
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(171, 152, 137, 0.5);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
}
.dre-ai-panel[hidden] {
    display: none;
}
.dre-ai-panel .dre-ai-title {
    display: block;
    color: var(--dd-main);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.dre-ai-panel .dre-ai-text {
    margin: 6px 0;
    color: var(--dd-ink);
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.dre-ai-panel small {
    display: block;
    color: var(--dd-muted);
    font-size: 0.78rem;
}
.dre-ai-panel .dre-ai-wait {
    color: var(--dd-muted);
}
.dre-ai-panel .dre-ai-error {
    display: block;
    margin-bottom: 8px;
    color: var(--dd-bad);
}
.dre-ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
