.feedback-dialog{width:min(580px,calc(100vw - 24px));max-height:calc(100dvh - 32px);box-sizing:border-box;border:1px solid #fff;border-radius:26px;background:#f4f7f6f5;color:#1d1d1f;padding:24px;box-shadow:0 24px 80px #20392c35;overflow:auto}.feedback-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.feedback-heading h2{margin:6px 0;font-size:25px}.feedback-close{border:0;border-radius:50%;width:44px;height:44px;font-size:26px;background:#ffffffa0;color:#495e54}.feedback-note,.feedback-status{font-size:12px;line-height:1.8;color:#6e6e73}.feedback-status:empty{display:none}.feedback-tools{display:flex;justify-content:space-between;gap:12px;margin:12px 0}.feedback-tools button{min-height:40px;font-size:12px;padding:8px 12px;border-radius:10px;border:1px solid #dce6df;background:#fff;color:#25755d}.feedback-messages{height:clamp(100px,35dvh,360px);overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:8px 2px}.feedback-bubble{border-radius:16px;padding:12px 14px;background:white;max-width:88%;align-self:flex-start;box-sizing:border-box;flex-shrink:0}.feedback-bubble.mine{background:#e3eee7;align-self:flex-end}.feedback-bubble small{font-size:10px;color:#69766d}.feedback-bubble p{margin:7px 0 0;font:14px/1.7 system-ui,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;color:#25372e}.feedback-empty{margin:auto;font-size:13px;line-height:1.9;color:#6e6e73;text-align:center}.feedback-form{margin-top:16px}.feedback-form label{display:block;font-size:12px;margin:0 0 8px}.feedback-form textarea{width:100%;box-sizing:border-box;min-height:80px;max-height:180px;resize:vertical;padding:12px;border:1px solid #d5dfd9;border-radius:14px;background:#ffffffb0;color:#1d1d1f;font:14px/1.6 system-ui,sans-serif}.feedback-form>div{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.feedback-count{font-size:11px;color:#6e6e73}.feedback-send{padding:12px 24px;min-height:44px;border:0;border-radius:14px;background:#25755d;color:white}.feedback-send:disabled{opacity:.5}[data-user-feedback]{min-height:44px}.feedback-dialog::backdrop{background:#15271d65;backdrop-filter:blur(5px)}
/* Isolate positioning from the existing app's modal rules and stale viewport variables during folding. */
dialog#user-feedback-dialog.feedback-dialog{position:fixed;inset:calc(var(--visual-top,0px) + 12px) 0 auto;margin:0 auto;transform:none;width:min(580px,calc(100vw - 24px));max-width:calc(100% - 24px);max-height:calc(var(--visual-height,100vh) - 24px);overflow-y:auto}
dialog#user-feedback-dialog .feedback-messages{height:240px;max-height:35vh;min-height:80px}
.message-platform{display:flex;flex-direction:column;gap:10px;margin:12px 0}.platform-message{border:1px solid #dce7df;border-radius:14px;padding:12px 14px;background:#fff}.platform-message.unread{border-color:#8fbd9b;background:#f3faf1}.platform-message strong{display:block;font-size:14px;color:#275642}.platform-message small{display:block;margin-top:4px;font-size:10px;color:#7a897e}.platform-message p{margin:7px 0 0;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:#30453a}.message-empty{margin:4px 0 0;font-size:12px;color:#7a897e}

/* Keep each speaker on its own side, with quiet metadata below the message. */
.feedback-bubble{max-width:82%;border:1px solid #dbe4df;border-radius:4px 16px 16px 16px;background:#fff;align-self:flex-start}
.feedback-bubble.mine{align-self:flex-end;background:#25755d;border-color:#25755d;border-radius:16px 4px 16px 16px}
.feedback-bubble p{margin:0;color:#1d1d1f}
.feedback-bubble small{display:block;margin-top:7px;font:10px/1.6 system-ui,sans-serif;color:#6e6e73;overflow-wrap:anywhere}
.feedback-bubble.mine p{color:#fff}.feedback-bubble.mine small{color:#d6ede2}

.feedback-dialog [hidden]{display:none!important}
