/* Feedback uses the host's modal sections and theme tokens, including inside another dialog. */
.maestro-feedback {
    width: min(30rem, calc(100vw - 2rem)); max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 2rem); margin: auto; padding: 0;
    border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    color: var(--text-primary); background: var(--bg-surface); box-shadow: var(--shadow-dialog);
    overflow: hidden;
}
.maestro-feedback[open] { display: flex; flex-direction: column; }
.maestro-feedback::backdrop { background: var(--overlay-backdrop); backdrop-filter: blur(2px); }
.maestro-feedback .modal-header { gap: var(--space-3); padding: var(--space-5) var(--space-6); border-color: var(--border-color); }
.maestro-feedback .modal-title { min-width: 0; overflow-wrap: anywhere; }
.maestro-feedback .modal-body { min-height: 0; overflow-wrap: anywhere; padding: var(--space-6); line-height: 1.6; }
.maestro-feedback-message { white-space: pre-line; color: var(--text-secondary); }
.maestro-feedback-detail { margin-top: var(--space-3); color: var(--text-secondary); font-size: var(--font-size-sm); }
.maestro-feedback .modal-footer { flex-wrap: wrap; padding: var(--space-4) var(--space-6); border-color: var(--border-color); }
.maestro-feedback .btn { border-radius: var(--radius-full); }
.maestro-feedback button { min-height: 44px; }
.maestro-feedback .btn-primary { background: var(--button-primary-bg); border-color: transparent; color: var(--text-inverse); }
.maestro-feedback .btn-danger { background: var(--color-danger-hover); border-color: transparent; color: var(--text-inverse); }
.maestro-feedback .modal-close { min-width: 44px; flex-shrink: 0; }
.maestro-feedback .modal-close { border-radius: var(--radius-full); }
.maestro-feedback button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
html:has(.maestro-feedback[open]), body:has(.maestro-feedback[open]) { overflow: hidden; }
@media (max-width: 480px) {
    .maestro-feedback .modal-footer .btn { flex: 1; }
}
