.main-chat-head{flex-wrap:wrap}.main-chat-tabs{display:flex;flex-basis:100%;gap:4px;margin-top:3px}.main-chat-head .main-chat-tabs button{width:auto;flex:1;min-height:26px;font-size:10px;line-height:1.2;border:1px solid #5fcce84d;border-radius:7px;background:#0a1b2e;color:#b8d4e5}.main-chat-tabs button[aria-selected=true]{background:linear-gradient(120deg,#16445e,#33214b);border-color:#83eaff;color:#fff;box-shadow:0 0 6px #29ceef33}
body.static-characters .main-chat{height:228px}.main-chat-thread{display:grid;grid-template-columns:1fr auto;gap:3px;width:100%;text-align:left;padding:6px;border:0;border-bottom:1px solid #78cfe42e;background:transparent;color:#d5e9f6}.main-chat-thread b{color:#82e7f9;font-size:11px}.main-chat-thread span{grid-column:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.main-chat-thread small{grid-column:2;grid-row:1;color:#ed8dff}
body.static-characters #modal.messenger-open{width:min(1100px,calc(100vw - 20px))!important;padding:16px 18px!important;height:calc(100svh - 20px)!important}
body.static-characters #modal.messenger-open #modalContent{padding-top:0;height:100%;overflow:hidden!important}
body #modal #chat-panel{display:flex;flex-direction:column;height:100%;min-height:0;max-width:none;padding:0!important}
body #modal #chat-panel .chat-top{flex:none;padding-right:52px;margin-bottom:6px}
body #modal #chat-panel .chat-heading{flex:none;padding-right:45px;margin:0 0 8px!important;padding-bottom:6px}
body #modal #chat-panel .chat-heading h2{font-size:23px!important;margin:0!important}
body #modal #chat-panel .chat-heading p{margin:3px 0!important;font-size:11px!important}
body #modal #chat-panel .chat-tabs{flex:none;display:flex;gap:6px;margin:0 0 8px;padding-bottom:6px}
body #modal #chat-panel .chat-tabs button{flex:1;min-width:0;padding:8px!important;font-size:12px!important}
body #modal #chat-panel .chat-toolbar{flex:none;margin:0 0 5px}
body #modal #chat-panel .chat-toolbar p{font-size:11px!important;margin:0!important}
body #modal #chat-panel .chat-log{flex:1;min-height:60px!important;height:auto!important;max-height:none!important;overflow:auto;padding:10px;background:#06132199;border:1px solid #51cbe542;border-radius:12px}
body #modal #chat-panel :is(.chat-inbox,.chat-settings,.chat-profile,.chat-report){flex:1;min-height:0;overflow:auto}
body #modal #chat-panel .chat-inbox{display:flex;flex-direction:column}
body #modal #chat-panel .chat-compose{flex:none;margin-top:8px;padding:9px!important}
body #modal #chat-panel .chat-compose textarea{min-height:48px;max-height:80px;height:48px;resize:none;padding:8px;font-size:14px}
body #modal #chat-panel .chat-compose label{font-size:11px;margin-bottom:4px}
body #modal #chat-panel .chat-compose-bottom{margin-top:5px}
body #modal #chat-panel .chat-fine{display:none}
body #modal #chat-panel .chat-empty{min-height:100px;flex:1}
body #modal #chat-panel .chat-message{max-width:82%;margin-right:auto}
body #modal #chat-panel .chat-message.own{margin-left:auto;margin-right:0;background:linear-gradient(120deg,#193a53,#2d1e43)!important}
@media(max-width:720px){body.static-characters .main-chat{height:176px}.main-chat-head .main-chat-tabs button{font-size:9px;min-height:24px}body #modal #chat-panel .chat-status{display:none}body #modal #chat-panel .chat-tabs button{font-size:10px!important;padding:7px 4px!important}body #modal #chat-panel .chat-tabs .chat-icon{display:none}body.static-characters #modal.messenger-open{padding:12px!important}body #modal #chat-panel .chat-toolbar p{font-size:10px!important}.main-chat-thread span{max-width:145px}}
@media(max-height:650px){body.static-characters .main-chat{height:154px}body #modal #chat-panel .chat-heading p,body #modal #chat-panel .chat-top span,body #modal #chat-panel .chat-compose label,body #modal #chat-panel .chat-compose-bottom small{display:none}}
.main-chat-join{width:100%;padding:6px;border:1px solid #6bdded88;border-radius:8px;background:linear-gradient(120deg,#163c53,#2c2041);color:#e6faff;font:inherit;cursor:pointer}
body #modal #chat-panel .chat-clan{flex:1;min-height:0;overflow:auto;padding:12px;background:linear-gradient(130deg,#0d2438,#14172c);border:1px solid #6dd6ec66;border-radius:14px}
.chat-clan form{padding:12px 0;border-top:1px solid #64bfd533;margin-top:12px}.chat-clan label{display:block;font-size:12px;margin-bottom:6px}.chat-clan input{width:100%;min-height:44px;padding:10px 12px;margin-bottom:8px}.chat-clan button{min-height:44px;padding:9px 14px;margin:4px;border:1px solid #6ad7e688;border-radius:10px;background:linear-gradient(120deg,#16415a,#2d2043);color:#eafaff}.chat-clan p{font-size:12px!important}.chat-clan details{margin:14px 0}.chat-clan-manage{flex:none;min-height:32px!important;font-size:11px!important;background:#14263c;color:#bceeff;border:1px solid #62cddd66;border-radius:8px;margin-top:6px}
body #modal #chat-panel .chat-clan-manage{background:linear-gradient(120deg,#153c51,#2c1f40)!important;border:1px solid #65d4e888!important;color:#def8ff!important}
