.chatlauncher{position:fixed;right:22px;bottom:24px;z-index:35;background:#f2bc51;color:#201609;border:1px solid #c9983e;border-radius:30px;padding:13px 21px;box-shadow:0 7px 35px #0006;font-size:14px;font-weight:700}.chatlauncher .unread{background:#9b2446;color:white;border-radius:12px;margin-left:6px;padding:2px 6px;font-size:11px}.livechat{position:fixed;right:22px;bottom:88px;width:370px;max-width:calc(100vw - 24px);height:min(570px,calc(100dvh - 120px));background:#1a1523;border:1px solid #4c395f;border-radius:15px;box-shadow:0 10px 60px #0009;z-index:40;display:flex;flex-direction:column;overflow:hidden;color:#eee4f6}.livechat header{flex-shrink:0;display:flex;justify-content:space-between;align-items:center;padding:15px 17px;background:#292033;height:auto;min-height:70px;margin:0;border:0}.livechat header small{display:block;font-size:11px;color:#c3aecf;margin-top:4px}.livechat header button{color:#ded0ed;font-size:25px;padding:0 5px}.livechat .chatlog{flex:1;overflow:auto;min-height:0;padding:15px;display:flex;flex-direction:column;gap:12px}.chatbubble{max-width:89%;align-self:flex-start;background:#33263f;padding:11px 13px;border-radius:0 12px 12px 12px;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.chatbubble.mine{align-self:flex-end;background:#edbd62;color:#271b0c;border-radius:12px 0 12px 12px}.chatbubble small{display:block;font-size:10px;opacity:.65;margin-top:5px}.chatintro{font-size:12px;color:#b5a3c3;padding:12px;background:#231b2e;border-radius:9px;line-height:1.8}.livechat .chatcompose{display:flex;gap:8px;padding:13px;border-top:1px solid #42304f;margin:0}.livechat .chatcompose input{min-width:0;flex:1;font-size:14px;background:#100d16;color:#eee4f6;border:1px solid #4b385b;padding:10px;border-radius:8px}.chatcompose button{font-size:13px;padding:8px 13px;background:#efbd60;color:#271b0c;border-radius:8px;font-weight:700}.chatfeedback{font-size:11px;padding:9px 13px;background:#30251e;color:#e2c596}.chatfeedback button{color:#f4c867;text-decoration:underline}.chaterror{font-size:12px;color:#f0a8ae;padding:0 13px 8px}.admin-chat-layout{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:500px;gap:18px}.conversation-list{max-height:550px;overflow:auto;border-right:1px solid #e2e8eb;padding-right:10px}.conversation{display:block;width:100%;text-align:left;padding:14px 12px;border:1px solid #e2e8eb;border-radius:9px;margin:0 0 8px;font-size:13px;background:#fbfcfc}.conversation.selected{border-color:#559b8b;background:#edf7f4}.conversation b{font-size:14px}.conversation .unread{float:right;background:#b74156;color:white;border-radius:12px;font-size:11px;padding:2px 7px}.conversation small{display:block;color:#80918b;font-size:11px;margin:4px 0}.conversation p{margin:5px 0 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:12px;color:#697c75}.admin-chat-room{display:flex;flex-direction:column;min-width:0}.admin-chat-room .chatlog{height:380px;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:15px;background:#f4f7f6;border:1px solid #e1e7e4;border-radius:9px}.admin-chat-room .chatbubble{background:#e5eeeb;color:#2b4037}.admin-chat-room .chatbubble.mine{background:#246f5b;color:white}.admin-chat-room .chatcompose{display:flex;gap:9px;margin-top:12px}.admin-chat-room .chatcompose input{flex:1;min-width:0;font-size:14px}.admin-chat-room .chatcompose button{background:#236b58;color:white}.chatnoticebar{padding:12px 14px;background:#f0f7f4;color:#497161;border-radius:8px;margin:14px 0;font-size:13px}.chatnoticebar button{border:1px solid #a7c0b7;border-radius:6px;padding:5px 10px;margin-right:7px;font-size:12px}.admin-chat-room .empty{margin:auto}.chatwarning{font-size:12px;color:#7c8d84}.adminnav button[data-tab=chat]{position:relative}.chatcount{background:#b83d50;color:white;border-radius:12px;padding:1px 6px;margin-left:6px;font-size:11px}
@media(max-width:600px){.chatlauncher{bottom:80px;right:15px;padding:11px 16px;font-size:13px}.livechat{right:12px;bottom:78px;height:min(550px,calc(100dvh - 95px));width:calc(100vw - 24px)}.livechat header{flex-wrap:nowrap;padding:13px 15px}.admin-chat-layout{grid-template-columns:1fr;gap:12px}.conversation-list{max-height:180px;border-right:0;border-bottom:1px solid #dce6e1;padding:0 0 8px}.conversation{padding:10px;margin-bottom:5px}.admin-chat-room .chatlog{height:310px}.chatnoticebar{font-size:12px}.chatwarning{font-size:11px}.livechat .chatcompose input{font-size:16px}}
.livechat header>div{display:block;min-width:0}.livechat header b{font-size:15px}.livechat header small{font-size:11px;line-height:1.6;max-width:285px}
.translationbar{flex-shrink:0;border-bottom:1px solid #41324f;padding:10px 13px;background:#211929}.translationselects{display:flex;gap:9px}.translationselects label{font-size:10px;flex:1;margin:0;color:#c6b3d8;font-weight:400}.translationselects select{width:100%;font-size:12px;padding:6px 22px 6px 8px;margin-top:4px;background-color:#18111f;background-position:calc(100% - 13px) 14px,calc(100% - 9px) 14px}.translation-auto{display:flex;align-items:center;gap:7px;margin:8px 0 0;font-size:11px;color:#d9c7e9;font-weight:400}.translation-auto input{width:auto;margin:0;accent-color:#efbd60}.translation-disclosure{font-size:10px;color:#b9a3cb;margin-top:5px}.translation-disclosure summary{cursor:pointer}.translation-disclosure p{font-size:10px;margin:5px 0 0;line-height:1.6}.translate-message{display:block;font-size:11px;color:#f4ce86;text-decoration:underline;padding:4px 0 0;margin-top:2px}.chatbubble.mine .translate-message{color:#624619}.translation-output{margin-top:9px;padding-top:8px;border-top:1px dashed #9876af;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.translation-output small{font-size:10px;margin:0 0 4px;opacity:.8}.translation-output.translation-error{color:#f8b7be}.chatbubble.mine .translation-output{border-color:#a47b31}.chatbubble.mine .translation-output.translation-error{color:#792626}.translation-draft-tools{flex-shrink:0;display:flex;align-items:center;gap:8px;padding:8px 13px 0}.translation-draft-tools select{font-size:11px;padding:5px 22px 5px 8px;max-width:140px;background-size:4px 4px;background-repeat:no-repeat;background-position:calc(100% - 13px) 13px,calc(100% - 9px) 13px}.translation-draft-tools button{font-size:11px;border:1px solid #6a4e7e;border-radius:6px;padding:5px 9px;color:#e0c1f7}.translation-draft-preview{flex-shrink:0;max-height:160px;overflow:auto;margin:8px 13px 0;padding:10px;background:#33263f;border:1px solid #624978;border-radius:8px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.translation-draft-preview small{font-size:10px;display:block;color:#c4aad8;margin-bottom:5px}.translation-draft-preview button{font-size:11px;color:#f0c46a;text-decoration:underline;margin:7px 12px 0 0;padding:0}.admin-chat-room .translationbar{background:#f0f6f3;border:1px solid #d9e6df;border-radius:8px;margin:10px 0;padding:12px}.admin-chat-room .translationselects label{color:#5f7569}.admin-chat-room .translationselects select{background-color:white;color:#2c4538;border-color:#bdcfc4}.admin-chat-room .translation-auto{color:#4a6657}.admin-chat-room .translation-disclosure{color:#6b8075}.admin-chat-room .translate-message{color:#226f56}.admin-chat-room .chatbubble.mine .translate-message{color:#c4eade}.admin-chat-room .translation-output{border-color:#adcbbc}.admin-chat-room .translation-output.translation-error{color:#9c3546}.admin-chat-room .chatbubble.mine .translation-output.translation-error{color:#ffb9c5}.admin-chat-room .translation-draft-tools{padding-left:0}.admin-chat-room .translation-draft-tools button{color:#306e55;border-color:#b5d0c1}.admin-chat-room .translation-draft-preview{margin:8px 0 0;background:#eef6f1;border-color:#b9cfc2;color:#2e4f3c}.admin-chat-room .translation-draft-preview small{color:#6d8976}.admin-chat-room .translation-draft-preview button{color:#226f56}.admin-chat-room .chatlog{height:320px}.livechat{height:min(670px,calc(100dvh - 120px))}.livechat .chatlog{min-height:100px}.livechat .chatcompose{padding-top:9px}
@media(max-width:600px){.livechat{height:min(650px,calc(100dvh - 95px))}.translationbar{padding:8px 11px}.translation-draft-preview{max-height:120px}.admin-chat-room .chatlog{height:270px}.translationselects select{font-size:12px}.livechat .chatlog{padding:12px}.translation-auto{font-size:11px}}
.livechat .chatlog{min-height:60px}.translation-draft-preview{max-height:110px;flex-shrink:1}.livechat .translationbar{max-height:190px;overflow:auto}
