.chat-formatted{white-space:pre-wrap;overflow-wrap:anywhere}
.chat-formatted b{font-weight:900}.chat-formatted i{font-style:italic}.chat-formatted u{text-decoration:underline}.chat-formatted s{text-decoration:line-through}
.chat-formatted .chat-format-smile{max-width:100%;vertical-align:middle}
.chat-spoiler.chat-spoiler-inline{display:inline-block;min-height:1em;min-width:2em;vertical-align:baseline;max-width:100%;line-height:inherit;padding:0 2px}
.chat-spoiler-inline .chat-spoiler-content{display:inline;white-space:pre-wrap}
.chat-editor-tools{display:flex;align-items:center;gap:5px;min-width:0;padding:3px 5px;border-bottom:1px solid #8b7a6c55;color:inherit;grid-column:1/-1;grid-row:1}
.chat-editor-tools[hidden],.chat-editor-mode[hidden],.chat-rich-host[hidden],#sayInput[hidden]{display:none!important}
.chat-editor-tools button,.chat-editor-mode{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;color:inherit;background:transparent;border:1px solid transparent;border-radius:4px;cursor:pointer;margin:0;min-width:28px;height:28px;padding:2px 4px;font:12px/1.2 system-ui,sans-serif}
.chat-editor-tools button:hover,.chat-editor-mode:hover{background:#937baa22}.chat-editor-tools button[aria-pressed=true]{background:#937baa44;border-color:#a17bb4}
.chat-editor-tools button:focus-visible,.chat-editor-mode:focus-visible{outline:2px solid #ad78bf;outline-offset:1px}.chat-editor-tools button:disabled{opacity:.45;cursor:default}
.chat-format-buttons{display:flex;gap:2px;min-width:0}.chat-editor-tools .chat-format-more{display:none}
.has-chat-format-editor{grid-template-rows:auto 1fr}
.chat-editor-mode{grid-column:2;grid-row:1;justify-self:end;align-self:start;margin:3px 5px 2px 0;white-space:nowrap;height:26px;font-size:11px}
.chat-rich-host{grid-column:1;grid-row:1/span 2;min-width:0;max-width:100%;overflow:hidden}
.has-chat-format-editor .talk-editor-icons{grid-column:2;grid-row:2;justify-content:flex-end}
.has-chat-format-editor>#sayInput{grid-column:1;grid-row:1/span 2}
#talkForm.has-chat-format .talk-tools{flex-wrap:nowrap;padding-right:0}
#talkForm .talk-tools>.chat-editor-tools{flex:none;padding:0;border:0}
#talkForm .talk-tools .chat-format-buttons{display:flex}
.chat-rich-host .ProseMirror{position:relative;outline:none;white-space:pre-wrap;overflow-wrap:anywhere;word-wrap:break-word;overflow-y:auto;min-height:56px;padding:9px 12px;box-sizing:border-box;font:14px/22px system-ui,sans-serif;cursor:text;color:inherit;-webkit-text-fill-color:currentColor}
.chat-rich-host .ProseMirror p{margin:0;min-height:22px}.chat-rich-host .ProseMirror b{font-weight:900}.chat-rich-host .ProseMirror i{font-style:italic}
.chat-rich-host .ProseMirror-selectednode{outline:2px solid #ad78bf}.chat-rich-host .ProseMirror img{max-width:64px;max-height:64px;vertical-align:middle;object-fit:contain;user-select:none}
.chat-editor-spoiler{background:#937baa33;box-shadow:inset 0 -1px #ad78bf;border-radius:3px}
#talkForm .has-chat-format-editor :is(#sayInput,.ProseMirror){min-height:72px}
.apple-game-up-frame #send.has-chat-format .talk-box-wrap{position:relative;flex-direction:column}.apple-game-up-frame #send.has-chat-format textarea#say{height:85px;min-height:85px}.apple-game-up-frame #send.has-chat-format .talk-box-wrap.has-chat-quote textarea#say{height:50px!important;min-height:50px!important}.apple-game-up-frame .chat-editor-tools{padding:0 2px;border:0;height:25px;flex:none}.apple-game-up-frame .chat-editor-tools button{height:24px;min-width:24px;padding:0 2px;flex:none}
@media(max-width:620px){.chat-editor-tools .chat-format-more{display:inline-flex}.chat-editor-tools .chat-format-buttons{display:none}.chat-editor-tools.is-expanded{flex-wrap:wrap}.chat-editor-tools.is-expanded .chat-format-buttons{display:flex;order:3;flex-basis:100%}.chat-rich-host .ProseMirror{padding:7px 9px}.chat-rich-host .ProseMirror img{max-width:48px;max-height:48px}.apple-game-up-frame .chat-editor-tools .chat-format-more{display:none}.apple-game-up-frame .chat-editor-tools .chat-format-buttons{display:flex}}
@media(max-width:760px){
 .apple-game-up-frame #send.has-chat-format .frame-layout{flex-direction:column;gap:3px;min-width:0}
 .apple-game-up-frame #send.has-chat-format .talk-box-wrap{flex:none;width:100%;min-width:0;max-width:100%}
 .apple-game-up-frame #send.has-chat-format textarea#say{height:42px;min-height:42px}
 .apple-game-up-frame #send.has-chat-format .talk-box-wrap.has-chat-quote textarea#say{height:28px!important;min-height:28px!important}
 .apple-game-up-frame #send.has-chat-format .side-panel{width:100%;flex-direction:row;align-items:center;gap:4px}
 .apple-game-up-frame #send.has-chat-format .primary-tools{flex:1;min-width:0;flex-direction:row;align-items:center;gap:4px}
 .apple-game-up-frame #send.has-chat-format .select-row{flex-wrap:wrap;gap:3px}
 .apple-game-up-frame #send.has-chat-format .speech-select{height:27px;max-width:130px;font-size:12px;padding:3px 5px}
 .apple-game-up-frame #send.has-chat-format #submit{width:auto;min-height:27px;height:27px;font-size:12px;padding:3px 7px;white-space:nowrap}
 .apple-game-up-frame #send.has-chat-format .sub-actions{flex:none}
}
@media(max-width:620px){#talkForm .has-chat-format-editor :is(#sayInput,.ProseMirror){min-height:68px}#talkForm.has-chat-format #fontType{flex-basis:140px}}
