/* Chat cards and server player panels. */
#chat #chat_messages .chat_message{gap:12px;margin-top:12px;overflow:visible;padding:0;min-width:0}
#chat #chat_messages .chat_avatar{flex:0 0 40px;padding-top:7px}
#chat #chat_messages .chat_avatar a{display:block}
#chat #chat_messages .chat_avatar a img{display:block;width:40px;height:40px;object-fit:cover;aspect-ratio:1;border-radius:14px}
#chat #chat_messages .chat_avatar .date{margin-top:7px;font-size:10px;color:#898196}
#chat #chat_messages .chat_message>.message{min-width:0;width:auto;flex:1;gap:10px;padding:12px 14px;border-radius:16px;background:linear-gradient(120deg,#201c28,#1b1821);box-shadow:inset 0 0 0 1px #bda6e912;isolation:isolate;overflow:hidden}
#chat #chat_messages .chat_message .info{gap:10px;min-width:0;align-items:flex-start}
.chat_message_identity{display:flex;align-items:center;gap:8px;min-width:0;flex:1;flex-wrap:wrap;padding-top:5px}
#chat #chat_messages .chat_message .info .author{font-weight:600;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.chat_pin_badge{font-size:9px;letter-spacing:.02em;color:#cbb0ed;background:#bc91f114;padding:3px 6px;border-radius:6px}
.chat_message_actions{display:flex;align-items:center;justify-content:flex-end;gap:3px;flex:none}
.chat_message_actions .chat_action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:30px;height:30px;margin:0;padding:0 7px;border:1px solid transparent;border-radius:9px;background:#0c0a121f;color:#c6bfd5;cursor:pointer;font-size:13px;line-height:1;box-shadow:none;transition:background .15s,color .15s,border-color .15s}
.chat_message_actions .chat_action svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.chat_message_actions .chat_action span{font:500 10px/1.2 Inter,"Segoe UI",sans-serif}
.chat_message_actions .chat_action:hover,.chat_message_actions .chat_action.is-active{background:#b190e61c;border-color:#b190e629;color:#eedfff}
.chat_message_actions .chat_action_danger:hover{color:#ffacba;background:#f1729214;border-color:#f1729226}
.chat_message_actions .chat_action:focus-visible,.nh_players button:focus-visible,.nh_players select:focus-visible,.nh_srv_modal a:focus-visible,.nh_srv_modal .close:focus-visible{outline:2px solid #c5a2ef;outline-offset:3px}
#chat #chat_messages .chat_message .new__chatmsg{position:relative;z-index:1;width:100%;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#e9e4f0;line-height:1.6}
#chat #chat_messages .chat_message.my_message>.message{box-shadow:inset 0 0 0 1px #b394dc35}
#chat #chat_messages .chat_message.my_message .new__chatmsg{background:none;box-shadow:none}
#chat #chat_messages .chat_message.chat_message_anchor>.message{animation:chat-message-anchor 1.2s ease}
#chat #chat_messages .chat_message.site-message-plate{background:transparent!important;box-shadow:none}
#chat #chat_messages .site-message-plate>.message{background:linear-gradient(110deg,#231b30,#211a2d 65%,#2a1e39)}
#chat #chat_messages .site-message-plate>.message>:not(.site-message-plate-art){position:relative;z-index:1}
#chat #chat_messages .site-message-plate>.message>.site-message-plate-art{top:0!important;right:0!important;bottom:auto!important;left:auto!important;width:min(100%,560px)!important;height:100%!important;max-width:560px!important;max-height:150px!important;transform:none;object-fit:cover!important;object-position:right center;opacity:.28;-webkit-mask-image:linear-gradient(90deg,transparent,#000 70%);mask-image:linear-gradient(90deg,transparent,#000 70%)}
#chat #chat_messages .site-message-plate>.message>.site-message-plate-art{-webkit-mask-image:linear-gradient(90deg,transparent,#000 70%),linear-gradient(180deg,#000 60%,transparent);mask-image:linear-gradient(90deg,transparent,#000 70%),linear-gradient(180deg,#000 60%,transparent);-webkit-mask-composite:source-in;mask-composite:intersect}
#chat #chat_messages .site-message-plate .new__chatmsg{background:none;border:0}
#chat #chat_messages .chat_reply_preview{position:relative;z-index:1;border-left:2px solid #b998e9;border-radius:4px 9px 9px 4px;background:#0b091533;padding:7px 10px;margin:0}

.nh_srv_modal{--nh-surface:#19151f;--nh-surface2:#241d2e;--nh-line:#ffffff12;--nh-line-soft:#ffffff0a;--nh-text:#eee8f6;--nh-muted:#b5a8c5;--nh-dim:#9789a8;--nh-r:22px;--nh-r-sm:10px;--nh-wash:#ad88e51f;--nh-mono:"JetBrains Mono",Consolas,monospace;font-family:Inter,"Segoe UI",sans-serif}
.nh_srv_modal .modal-dialog{width:calc(100% - 32px);max-width:900px;margin:50px auto}
.nh_srv_modal .modal-content{background:radial-gradient(ellipse at 100% 0,#43295540,transparent 65%),#19151f;border:1px solid #bda6e922;border-radius:22px;box-shadow:0 32px 100px #0008;overflow:hidden}
.nh_srv_modal .modal-content .modal-header{border:0;padding:0}
.nh_srv_modal .modal-content .modal-header .close{top:14px;right:14px;width:30px;height:30px;border:1px solid #ffffff20;border-radius:10px;background:#15101e99;color:#e9dff6;opacity:1;text-shadow:none;font-size:22px;display:grid;place-items:center;float:none;line-height:1}
.nh_srv_modal .close:hover{background:#3c2a50}
.nh_srv_modal_top{position:relative;min-height:180px;padding:28px;gap:24px;align-items:flex-end;border-bottom:1px solid #c2a1ea1f}
.nh_srv_modal_info{flex:1;gap:12px;min-width:0;max-width:100%}
.nh_srv_modal_eyebrow{font-size:9px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:#ccb6e8}
.nh_srv_modal_name{font-size:20px;font-weight:650;line-height:1.45;overflow-wrap:anywhere;text-wrap:balance}
.nh_srv_modal_meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:10px;line-height:1.4}
.nh_srv_modal_meta>span{padding:6px 10px;border:1px solid #d9bfec1c;border-radius:8px;background:#130e1e66;overflow-wrap:anywhere;max-width:100%}
.nh_srv_online_badge{display:inline-flex;align-items:center;gap:7px;color:#d6f7e4}
.nh_srv_online_badge:before{content:"";width:5px;height:5px;flex:none;border-radius:50%;background:#7cdeac;box-shadow:0 0 8px #7cdeac55}
.nh_srv_modal .nh_btn_go{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 16px;border:1px solid #d6b5ff45;border-radius:12px;background:linear-gradient(125deg,#a77bdb,#8359b8);color:#fff;font-size:12px;font-weight:600;box-shadow:0 6px 22px #9a6acf25;white-space:nowrap;flex:none}
.nh_srv_modal .nh_btn_go:hover{background:linear-gradient(125deg,#ba90ec,#9266c9);transform:translateY(-1px);color:#fff}
.nh_srv_modal .nh_btn_go svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nh_srv_modal .modal-content .modal-body{padding:22px;max-height:60vh;overflow:auto}
.nh_players_heading{margin:0 0 14px 4px;font-size:12px;color:#cabbdb;font-weight:600}
.nh_players tbody{display:grid;gap:8px}
.nh_players tbody tr{display:flex;align-items:center;gap:16px;padding:12px 14px;border:1px solid #bda6e912;border-radius:13px;background:linear-gradient(100deg,#28203288,#211a2a66);transition:background .15s,border-color .15s}
.nh_players tbody tr+tr{border-top:1px solid #bda6e912}
.nh_players tbody tr:hover{background:#32263f88;border-color:#bda6e92b}
.nh_players tbody tr>td{padding:0;min-width:0}
.nh_players tbody tr>td:first-child{width:24px!important;flex:0 0 24px;color:#bba1d6}
.nh_players tbody tr>td:nth-child(2){min-width:0;flex:1 1 0}
.nh_players tbody tr>td:nth-child(3){width:52px!important;flex:0 0 52px}
.nh_players tbody tr>td:nth-child(4){width:175px!important;flex:0 0 175px;margin-left:0}
.nh_players .nh_player_commands{flex:none;margin-left:auto}
.nh_players .descriptionbansp{font-size:12px;font-weight:550;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.nh_players td.nh_player_time .descriptionbansp{font-size:11px;white-space:normal;overflow:visible;text-overflow:clip}
.nh_players .descriptionbans{display:block;font:9px/1.5 Inter,"Segoe UI",sans-serif;color:#9c8bac;letter-spacing:.02em;text-transform:none;margin-top:3px}
.nh_players select{max-width:175px;height:36px;background:#17121f;border:1px solid #bca0d62b;border-radius:10px;padding-right:44px!important;color:#dbcde9}
.nh_players .btn-save-settings{width:34px;border-left:1px solid #bca0d622;background:#ac83db21;border-radius:0 9px 9px 0;color:#e3cff9}
.nh_players .btn-save-settings:hover{background:#ac83db40}
.nh_players .btn-save-settings svg{width:14px;height:14px}
.nh_players td[colspan]{flex:1!important;width:100%!important;text-align:center;padding:16px}
@media(max-width:600px){
 #chat #chat_messages .chat_message{gap:8px}
 #chat #chat_messages .chat_avatar{flex-basis:34px}
 #chat #chat_messages .chat_avatar a img{width:34px;height:34px;border-radius:11px}
 #chat #chat_messages .chat_message>.message{padding:10px 11px;gap:8px;border-radius:13px}
 #chat #chat_messages .chat_message .info{flex-wrap:wrap;gap:4px}
 .chat_message_identity{flex-basis:100%;padding-top:0}
 .chat_message_actions{justify-content:flex-start;gap:4px}
 .chat_message_actions .chat_action{height:30px;min-width:30px;padding:0 7px}
 .nh_srv_modal .modal-dialog{width:calc(100% - 20px);margin:20px auto}
 .nh_srv_modal_top{padding:24px 18px 20px;min-height:210px;gap:18px}
 .nh_srv_modal_name{font-size:17px;padding-right:12px}
 .nh_srv_modal_info{flex-basis:100%}
 .nh_srv_modal .modal-content .modal-body{padding:14px 12px;max-height:58vh}
 .nh_players tbody tr{display:grid;grid-template-columns:24px minmax(0,1fr) minmax(0,1fr);gap:10px 12px;padding:12px}
 .nh_players tbody tr>td:first-child{grid-row:1;grid-column:1}
 .nh_players tbody tr>td:nth-child(2){grid-row:1;grid-column:2/-1}
 .nh_players tbody tr>td:nth-child(3){grid-row:2;grid-column:2;width:auto!important}
 .nh_players tbody tr>td:nth-child(4){grid-row:2;grid-column:3;width:auto!important;white-space:normal}
 .nh_players .nh_player_commands{grid-column:2/-1;grid-row:3;margin-left:0!important;justify-self:start}
 .nh_players td[colspan]{grid-column:1/-1!important}
}
@media(prefers-reduced-motion:reduce){.chat_message_actions .chat_action,.nh_players tbody tr,.nh_srv_modal .nh_btn_go{transition:none}.nh_srv_modal .nh_btn_go:hover{transform:none}}
