#feedback-open{white-space:nowrap;color:#596579;background:transparent;border:0;padding:8px;font:inherit;font-size:13px;cursor:pointer}
#feedback-open:hover{color:#315fad;background:#f4f7fc;border-radius:6px}
#feedback-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:24px;border:1px solid #e4e9f0;border-radius:18px;background:#fff;color:#303846;box-shadow:0 24px 80px #172b4d26;overflow:auto}
#feedback-dialog::backdrop{background:rgb(25 35 50 / 30%)}
.feedback-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.feedback-heading h2{font-size:18px;margin:0;font-weight:600;letter-spacing:.02em}
.feedback-heading-actions{display:flex;gap:4px}
#feedback-dialog .feedback-icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:9px;background:transparent;color:#788597;cursor:pointer}
#feedback-dialog .feedback-icon-button:hover{background:#f2f5f9;color:#315fad}
#feedback-dialog button:focus-visible,#feedback-dialog summary:focus-visible{outline:2px solid #5279bc;outline-offset:3px}
.feedback-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.feedback-tabs{display:flex;padding:4px;gap:4px;border-radius:10px;background:#f1f4f8;margin-bottom:20px}
.feedback-tabs button{flex:1;border:0;border-radius:7px;background:transparent;color:#718095;padding:9px 12px;font:inherit;font-size:14px;cursor:pointer;line-height:1.4}
.feedback-tabs button[aria-pressed=true]{background:#fff;color:#315fad;font-weight:500;box-shadow:0 1px 4px #26395310}
#feedback-content{box-sizing:border-box;display:block;width:100%;resize:vertical;min-height:156px;max-height:40vh;max-height:40dvh;padding:14px;font:inherit;font-size:14px;line-height:1.8;color:#303846;border:1px solid #dce3ec;border-radius:10px;background:#fbfcfe}
#feedback-content::placeholder{color:#8995a5}
#feedback-content:focus{outline:2px solid #d9e5f9;border-color:#7796c5;background:#fff}
.feedback-note{display:flex;justify-content:space-between;gap:8px;margin-top:9px;color:#7e8b9d;font-size:12px;line-height:1.6}
#feedback-count{white-space:nowrap;font-variant-numeric:tabular-nums}
#feedback-message{font-size:13px;color:#ad3c3c;margin:12px 0;line-height:1.7}
#feedback-message:empty,#feedback-history-message:empty,.feedback-history-pages:empty{display:none}
.feedback-actions{display:flex;justify-content:flex-end;margin-top:22px}
#feedback-submit{padding:10px 24px;border:1px solid #355fac;border-radius:8px;background:#355fac;color:#fff;font:inherit;font-size:14px;cursor:pointer}
#feedback-submit:hover{background:#2c5298}
#feedback-dialog button:disabled{opacity:.5;cursor:default}
.feedback-label-small{display:none}
.feedback-unread{display:inline-block;margin-left:4px;min-width:16px;padding:1px 4px;border-radius:12px;background:#b83b38;color:white;font-size:11px;text-align:center}
.feedback-unread[hidden],#feedback-dialog [hidden]{display:none!important}
#feedback-history-message{font-size:13px;line-height:1.7;color:#7e8b9d;text-align:center;padding:24px 0;margin:0}
.feedback-thread{padding:18px 0;border-bottom:1px solid #edf0f5}
.feedback-thread:first-child{padding-top:0}
.feedback-thread:last-child{padding-bottom:0;border-bottom:0}
.feedback-thread-meta{font-size:12px;color:#7c899b;line-height:1.6}
.feedback-thread-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;margin:8px 0 12px}
.feedback-thread details{border-radius:10px;background:#f3f7fd;margin-top:12px}
.feedback-thread summary{display:flex;align-items:center;gap:8px;list-style:none;font-size:13px;font-weight:500;color:#3e639c;cursor:pointer;padding:12px 14px;border-radius:10px}
.feedback-thread summary::-webkit-details-marker{display:none}
.feedback-chevron{margin-left:auto;flex-shrink:0}
.feedback-thread details[open] .feedback-chevron{transform:rotate(180deg)}
.feedback-new{color:#3e639c;background:#e4edfc;border-radius:4px;padding:2px 6px;font-size:11px;font-weight:400}
.feedback-reply{padding:0 14px 14px}
.feedback-reply+.feedback-reply{padding-top:12px;border-top:1px solid #e3eaf5}
.feedback-reply .feedback-thread-content{margin:0 0 8px}
.feedback-reply .feedback-thread-meta{text-align:right}
.feedback-waiting{color:#7e8b9d;font-size:12px;margin:10px 0 0}
.feedback-history-pages{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:20px;font-size:12px;color:#7c899b}
.feedback-history-pages button{border:1px solid #dce3ec;border-radius:7px;background:#fff;color:#44546c;padding:7px 10px;font:inherit;font-size:12px;cursor:pointer}
@media(max-width:600px){#feedback-open{padding:5px;font-size:12px}#feedback-dialog{padding:20px;border-radius:16px}.feedback-label-wide{display:none}.feedback-label-small{display:inline}.feedback-heading{margin-bottom:16px}.feedback-note{font-size:11px}.feedback-actions{margin-top:20px}#feedback-submit{width:100%}}
