/* PolskaElita Core 3.1.1 — safe widget compatibility styles */
/* pe_core_sidebar.css */
/* PolskaElita Core sidebar widgets */
.h2k-sidebar{display:flex;flex-direction:column;gap:16px;min-width:0}
.pe-widget{background:#1b222c;border:1px solid #363f4c;border-top:2px solid #e54b65;border-radius:9px;overflow:hidden}
.pe-widget__title{background:#262b38;border-bottom:1px solid #454d5c;color:#f5f5f5;font-size:13px;font-weight:800;margin:0;padding:13px 14px}
.pe-widget__body{padding:0 12px}.pe-userrow{display:flex;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #3a4350;min-width:0}
.pe-userrow:last-child{border-bottom:0}.pe-userrow__identity{flex:1;min-width:0;overflow-wrap:anywhere;font-size:12px;line-height:1.35}
.pe-userrow__identity a{font-size:12px;font-weight:750;color:#e9edf1;text-decoration:none}.pe-userrow__identity a:hover{color:#f67583}
.pe-userrow__identity small{display:block;color:#929fae;font-size:11px;margin-top:3px}
.pe-avatar{display:block;object-fit:cover;width:42px!important;height:42px!important;min-width:42px;border-radius:50%;background:#303b47;border:1px solid #475263}
.pe-metric{font-size:12px;color:#d9e2ec;white-space:nowrap}.pe-status-dot{width:8px;height:8px;background:#4dcc8a;border-radius:50%;box-shadow:0 0 0 3px #4dcc8a22}
.pe-empty{margin:0;padding:14px;color:#adb7c3;font-size:12px}
@media(max-width:850px){.h2k-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:610px){.h2k-sidebar{display:flex;flex-direction:column}}


/* pe_core_chat.css */
/* PolskaElita Core chat */
.pe-chat{border:1px solid #3b444f;border-radius:10px;background:#1a2029;overflow:hidden;margin:0 0 20px;color:#e9edf2}
.pe-chat__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 17px;border-top:2px solid #ed5364;border-bottom:1px solid #353d4a;background:#242934}
.pe-chat__header strong{font-size:14px}.pe-chat__header span{font-size:12px;color:#9aa5b5}
.pe-chat__messages{height:285px;max-height:45vh;overflow-y:auto;overscroll-behavior:contain;padding:8px 16px;background:#161c25}
.pe-chat-line{display:flex;gap:11px;align-items:flex-start;padding:9px 0;border-bottom:1px solid #303844}.pe-chat-line:last-child{border-bottom:0}
.pe-chat-line__content{min-width:0;flex:1;overflow-wrap:anywhere}.pe-chat-line__meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px;font-weight:700}
.pe-chat-line__meta time{font-weight:400;color:#8e9aab;font-size:11px}.pe-chat-line__text{margin-top:3px;font-size:13px;line-height:1.5;color:#d9e0e8;white-space:normal}
.pe-chat__form{display:flex;gap:8px;padding:12px;background:#202733;border-top:1px solid #343d4a}
.pe-chat__form input{min-width:0;flex:1;background:#11161e!important;color:#fff!important;border:1px solid #455160!important;border-radius:7px;padding:10px 12px!important;height:auto!important}
.pe-chat__form button{background:#c7334e;color:#fff;border:0;border-radius:7px;padding:10px 20px;font-weight:750}
.pe-chat__form button:hover{background:#e14a62}.pe-chat__form button:disabled{opacity:.5;cursor:wait}
.pe-chat__status{padding:0 12px;margin:0;color:#e5959d;font-size:12px}.pe-chat__login{padding:14px}.pe-chat__login a{color:#ff7e91}
@media(max-width:600px){.pe-chat__messages{height:240px}.pe-chat__header{padding:10px}.pe-chat-line{gap:7px}.pe-chat__form{padding:8px}.pe-chat__form button{padding:10px}}


/* pe_core_legend.css */
/* Dynamic group legend; use configured MyBB rank colors */
.pe-home-bottom{display:flex;flex-direction:column;gap:22px;margin:18px 0}
.pe-widget--legend .pe-widget__body{padding:14px}.pe-group-grid{display:flex;gap:8px;flex-wrap:wrap}
.pe-group-badge{background:#262c37;color:#dfe5ec;border:1px solid #46505d;padding:7px 11px;border-radius:6px;font-size:12px}
.pe-group-badge span{color:inherit}.pe-group-badge strong{font-weight:800}


/* pe_core_servers.css */
/* Full-width server list follows all categories */
.pe-servers-section{margin:0 0 25px;max-width:100%}.pe-servers-list{background:#19212b;border:1px solid #424b56;border-radius:9px;overflow:hidden}
.pe-server-row{display:flex;align-items:center;gap:13px;padding:13px 18px;border-bottom:1px solid #343c47}.pe-server-row:last-child{border-bottom:0}
.pe-server-row__icon{width:44px;height:44px;display:grid;place-items:center;background:#34212c;border:1px solid #7c3b50;border-radius:9px;font-weight:900;color:#ed6579}
.pe-server-row__info{flex:1;min-width:0}.pe-server-row__info strong{display:block;color:#f1f4f8;font-size:13px}.pe-server-row__info small{display:block;color:#aeb8c6;font-size:12px;margin-top:4px}
.pe-server-join{display:inline-flex;background:#bd2f48;border:1px solid #d75166;color:white!important;font-size:12px;font-weight:750;border-radius:6px;padding:9px 13px;text-decoration:none!important}
.pe-server-join:hover{background:#dd465c}.pe-standalone-servers{width:min(1250px,95%);margin:30px auto}
@media(max-width:550px){.pe-server-row{padding:10px}.pe-server-join{padding:7px 9px}}


/* pe_core_lastpost.css */
/* Last-post avatars, never hide link or time */
.h2k-forum__last{position:relative;display:flex;flex-direction:column;gap:4px;padding-left:52px!important;min-height:50px;justify-content:center}
.h2k-forum__last .pe-lastpost-avatar{position:absolute;top:50%;left:3px;transform:translateY(-50%)}
.h2k-forum__last .pe-lastpost-avatar img{width:38px!important;height:38px!important;min-width:38px!important;border-radius:50%;object-fit:cover}
.h2k-forum__lastlabel{font-size:10px;color:#aab6c7;letter-spacing:.08em}
.h2k-forum__lasttitle{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e9e9f2}
@media(max-width:780px){.h2k-forum__last{grid-column:2/-1!important;padding-left:48px!important}}

/* Lista serwerow na gorze strony glownej, bez duplikatu na dole. */
#container.h2k-root .pe-home-top-servers {
  width: 100%;
  min-width: 0;
  margin: 2px 0 27px;
  clear: both;
}
#container.h2k-root .pe-home-top-servers .pe-servers-section {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}
#container.h2k-root .pe-home-top-servers .pe-servers-section .h2k-section-title {
  margin: 0 0 13px;
}
/* Serwery sa wyrozniona sekcja przed sekcjami numerowanymi (czat/forum). */
#container.h2k-root .pe-home-top-servers .h2k-section-title__mark {display:none;}
#container.h2k-root .pe-home-top-servers .pe-servers-list {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,295px),1fr));
  gap: 11px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  overflow: visible;
}
#container.h2k-root .pe-home-top-servers .pe-server-row {
  display: flex;
  gap: 12px;
  min-height: 77px;
  align-items: center;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #394450 !important;
  background: #1a222d;
  border-radius: 9px;
  box-shadow: 0 5px 13px rgba(0,0,0,.11);
}
#container.h2k-root .pe-home-top-servers .pe-server-row__info {
  min-width: 0;
  overflow-wrap: anywhere;
}
#container.h2k-root .pe-home-top-servers .pe-server-row__icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 8px;
}
#container.h2k-root .pe-home-top-servers .pe-server-join {
  flex: none;
  padding: 8px 10px;
}
@media(max-width:690px){
  #container.h2k-root .pe-home-top-servers{margin-bottom:22px;}
  #container.h2k-root .pe-home-top-servers .pe-servers-list{grid-template-columns:1fr;gap:9px;}
}
