/* Shared visual editor and emote picker, used by players and administrators. */
.feedback-write-form textarea[hidden]{display:none!important}
.feedback-write-form .qq-emote,.feedback-text .qq-emote,.feedback-admin-body .qq-emote{
  display:inline-block!important;width:32px!important;height:32px!important;vertical-align:middle;
  object-fit:contain;border:0!important;border-radius:0!important;box-shadow:none!important;
  outline:0!important;background:transparent!important;filter:none!important;margin:0 2px;
}
.feedback-rich-editor{
  box-sizing:border-box;width:100%;min-height:160px;max-height:500px;overflow-y:auto;resize:vertical;
  border:1px solid #55768245;border-radius:8px;padding:16px;background:#080f16;color:#d4e2e7;
  font:inherit;font-size:14px;line-height:2.4;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;
}
.feedback-rich-editor:focus{outline:0;border-color:#61cad5;box-shadow:0 0 0 3px #61cad510}
.feedback-rich-editor[aria-invalid=true]{border-color:#d99070}
.feedback-rich-editor[data-empty=true]:before{content:attr(data-placeholder);color:#71818c;pointer-events:none}
.feedback-inline .feedback-rich-editor{min-height:120px;padding:12px;font-size:13px}
.admin-body .feedback-rich-editor{background:#fff;color:#263b49;border-color:#dce5eb;min-height:240px;line-height:2.4}
.feedback-tools{position:relative;display:block;min-width:0}
.feedback-tools>.feedback-counter{position:absolute;right:0;top:3px;margin:0}
.feedback-emote-picker,.feedback-emote-picker[open]{min-width:0;max-width:100%;width:100%}
.feedback-emote-picker summary{width:fit-content;max-width:calc(100% - 95px);min-height:28px;white-space:nowrap}
.feedback-emote-panel{box-sizing:border-box;min-width:0}
.feedback-emote-panel.is-animating{overflow:hidden;will-change:height,opacity}
.feedback-emote-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-top:16px}
.feedback-emote-filters{display:flex;gap:5px;flex:none}
.feedback-emote-filters button{border:1px solid #55768245;border-radius:5px;padding:6px 9px;background:#10232b;color:#9cb3be;font:inherit;font-size:12px;line-height:1.5;cursor:pointer;white-space:nowrap}
.feedback-emote-filters button[aria-pressed=true]{color:#81e1e5;border-color:#64d5df75;background:#1b414b}
.feedback-emote-search{width:170px;max-width:100%;min-height:32px;border:1px solid #55768245;border-radius:5px;padding:6px 10px;background:#080f16;color:#d4e2e7;font:inherit;font-size:12px}
.feedback-emote-search:focus,.feedback-emote-search:focus-visible{outline:none;outline-offset:0;border-color:#61cad5;box-shadow:none}
.feedback-emote-note{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;margin:10px 0 0;color:#7f9ca9;font-size:11px;line-height:1.7}
.feedback-emote-scroll{max-width:100%;max-height:min(330px,52vh);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#3c6875 transparent}
.feedback-emote-grid{
  display:grid;grid-template-columns:repeat(12,40px);gap:6px;width:max-content;max-height:none;
  overflow:visible;padding:14px 3px;
}
.feedback-emote-grid button{width:40px;height:40px;padding:3px;box-sizing:border-box;flex:none}
.feedback-emote-grid button[hidden],.feedback-emote-empty[hidden]{display:none!important}
.feedback-emote-grid button img{width:32px;height:32px;max-width:none;object-fit:contain}
.feedback-emote-picker summary img{width:26px;height:26px}
.feedback-rich-editor img{user-select:all;-webkit-user-select:all}
.feedback-emote-empty{padding:20px 0;margin:0;color:#8fa9b4;font-size:12px}
.admin-body .feedback-emote-search{background:#fff;color:#263b49;border-color:#dce5eb}
.admin-body .feedback-emote-search:focus,.admin-body .feedback-emote-search:focus-visible{border-color:#14a4ba}
.admin-body .feedback-emote-filters button{background:#f4f8fa;color:#566b7b;border-color:#dce5eb}
.admin-body .feedback-emote-filters button[aria-pressed=true]{background:#e5f5f8;color:#087b8e;border-color:#14a4ba}
@media(max-width:560px){.feedback-emote-toolbar{gap:10px}.feedback-emote-search{width:100%}.feedback-emote-note{font-size:10px}}
