/* Feedback examples share the workspace's sizing, rounded icons and theme. */
:root {--feedback-error:#a34840;--feedback-error-bg:#f9efed}
:root[data-theme="dark"] {--feedback-error:#e5a69f;--feedback-error-bg:#3b2a29}
.feedback-dialog {--feedback-padding:24px;width:min(440px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:0 16px 56px var(--shadow-color);overflow:hidden}
.feedback-header {flex:none;padding:var(--feedback-padding) var(--feedback-padding) 0}
.feedback-body {padding:0 var(--feedback-padding)}
.feedback-dialog[open] {animation:feedback-enter .18s ease-out}
.feedback-dialog::backdrop {background:var(--backdrop)}
.feedback-top {display:flex;align-items:center;gap:12px;margin-bottom:20px}
.feedback-symbol {display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:10px;background:var(--feedback-error-bg)}
.feedback-symbol.is-success {background:var(--success-bg)}
.feedback-symbol .icon {width:20px;height:20px}
.feedback-preview,.feedback-demo-note,.feedback-notice-meta {font-size:12px;color:var(--muted)}
.feedback-close {width:32px;height:32px;flex:none;margin-left:auto;display:grid;place-items:center}
.feedback-close .icon {width:18px;height:18px}
.feedback-dialog h2 {font-size:16px;line-height:24px;margin:0 0 8px;font-weight:600;letter-spacing:-.2px}
.feedback-dialog #feedback-description {font-size:14px;line-height:22px;color:var(--muted);margin:0 0 20px}
.feedback-document {display:flex;align-items:center;gap:10px;background:var(--surface-soft);padding:12px;border-radius:10px;font-size:13px}
.feedback-document>.icon {width:18px;height:18px;flex:none;color:var(--muted)}
.feedback-document>span:first-of-type {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.feedback-document-status {font-size:12px;margin-left:auto;white-space:nowrap}
.is-error {color:var(--feedback-error)}
.is-success {color:var(--success)}
.feedback-details {margin:16px 0}
.feedback-details summary {display:flex;align-items:center;gap:6px;cursor:pointer;font-size:13px;color:var(--muted);width:max-content;list-style:none}
.feedback-details summary::-webkit-details-marker {display:none}
.feedback-details summary:focus-visible {outline:2px solid var(--focus-ring);outline-offset:4px;border-radius:4px}
.feedback-details summary .icon {width:14px;height:14px;transition:transform .16s}
.feedback-details[open] summary .icon {transform:rotate(180deg)}
.feedback-details dl {margin:12px 0 0;padding:12px;background:var(--surface-soft);border-radius:10px;font-size:12px}
.feedback-details dl>div {display:flex;justify-content:space-between;gap:16px;padding:3px 0}
.feedback-details dt {color:var(--muted)}
.feedback-details dd {margin:0;text-align:right;overflow-wrap:anywhere}
.feedback-demo-note {margin:16px 0 0}
.feedback-actions {display:flex;flex:none;justify-content:flex-end;gap:8px;padding:24px var(--feedback-padding) var(--feedback-padding)}
.feedback-actions .btn {min-height:36px;padding:7px 14px;font-size:13px;border-radius:9px}
.feedback-actions .btn:disabled {opacity:.6;cursor:wait}
.feedback-notice {position:fixed;right:24px;bottom:24px;z-index:220;width:min(440px,calc(100vw - 32px));display:flex;align-items:flex-start;gap:12px;padding:16px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 32px var(--shadow-color);animation:feedback-enter .18s ease-out}
.feedback-notice[hidden],.feedback-details[hidden] {display:none}
.feedback-info-symbol {padding-top:2px;color:var(--muted);flex:none;height:24px}
.feedback-info-symbol .icon {width:20px;height:20px}
.feedback-notice-content {min-width:0;flex:1}
.feedback-notice h3 {font-size:14px;line-height:22px;font-weight:600;margin:0 0 4px;letter-spacing:0}
.feedback-notice p {font-size:13px;line-height:20px;color:var(--muted);margin:0}
.feedback-notice .feedback-close {margin:-6px -6px 0 0}
.feedback-report {display:inline-flex;align-items:center;gap:6px;margin:10px 0 0 -6px;padding:4px 6px;min-height:28px;border-radius:6px;font-size:13px;font-weight:500;color:var(--text);background:transparent}
.feedback-report:hover {background:var(--hover)}
.feedback-report .icon {width:16px;height:16px}
.feedback-notice-meta {display:block;margin-top:4px}
.feedback-sr {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes feedback-enter {from {opacity:0;transform:translateY(6px)}to {opacity:1;transform:translateY(0)}}
@media(max-width:600px){.feedback-notice {right:16px;bottom:16px}.feedback-dialog {--feedback-padding:20px}}
@media(prefers-reduced-motion:reduce){.feedback-dialog[open],.feedback-notice {animation:none}.feedback-details summary .icon {transition:none}}
