/* 3.31.2: only avatar proportions and table borders on phones.
   Replaces 3.31.1; original spacing, typography and navigation are restored. */
@media (max-width:767px) {
body[data-template="cs27Reg"][data-cs27-ui="3271"] .cs27-admins-page .cs27-field-identity > img,
body[data-template="cs27Reg"][data-cs27-ui="3271"] .cs27-profile-services .cs27-field-identity > img {
  width:40px!important;min-width:40px!important;max-width:40px!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;
  flex:0 0 40px!important;aspect-ratio:1 / 1!important;object-fit:cover!important;box-sizing:border-box!important;
}
body[data-template="cs27Reg"][data-cs27-ui="3271"] #cs27-table-stats #stats .cs27-ghost-player img {
  width:30px!important;min-width:30px!important;max-width:30px!important;
  height:30px!important;min-height:30px!important;max-height:30px!important;
  flex:0 0 30px!important;aspect-ratio:1 / 1!important;object-fit:cover!important;box-sizing:border-box!important;
}
body[data-template="cs27Reg"][data-cs27-ui="3271"] .block_forum_item .flex_forum_info_right > a,
body[data-template="cs27Reg"][data-cs27-ui="3271"] .block_forum_item .user_info_forum,
body[data-template="cs27Reg"][data-cs27-ui="3271"] .block_forum_item img.forum_img_user {
  width:40px!important;min-width:40px!important;max-width:40px!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;
  flex:0 0 40px!important;aspect-ratio:1 / 1!important;box-sizing:border-box!important;
}
body[data-template="cs27Reg"][data-cs27-ui="3271"] .block_forum_item img.forum_img_user {object-fit:cover!important}
body[data-template="cs27Reg"][data-cs27-ui="3271"] .block_forum_item :is(.theme_info_forum,.flex_forum_user,.flex_info_forum),
body[data-template="cs27Reg"][data-cs27-ui="3271"] #stats .cs27-ghost-player > a {min-width:0!important;overflow-wrap:anywhere!important}
body[data-template="cs27Reg"][data-cs27-ui="3271"] :is(#cs27-table-stats,[id^="cs27-table-admins-"]) {
  border:1px solid var(--cs27-table-line,#384044)!important;border-radius:10px!important;box-shadow:none!important;
}
body[data-template="cs27Reg"][data-cs27-ui="3271"] :is(#cs27-table-stats,[id^="cs27-table-admins-"]) > .table-adaptive {
  border:0!important;border-radius:0!important;box-shadow:none!important;
}
body[data-template="cs27Reg"][data-cs27-ui="3271"] :is(#cs27-table-stats,[id^="cs27-table-admins-"]) > .table-adaptive > .cs27-entitlement-row,
body[data-template="cs27Reg"][data-cs27-ui="3271"] #cs27-table-stats > #stats > .cs27-ghost-stat-row,
body[data-template="cs27Reg"][data-cs27-ui="3271"] #cs27-table-stats > #stats > .cs27-ghost-stat-row:nth-child(even) {
  border:0!important;border-bottom:1px solid var(--cs27-table-line,#384044)!important;
  border-radius:0!important;box-shadow:none!important;background:transparent!important;margin-bottom:0!important;
}
body[data-template="cs27Reg"][data-cs27-ui="3271"] :is(#cs27-table-stats,[id^="cs27-table-admins-"]) > .table-adaptive > .cs27-entitlement-row:last-of-type,
body[data-template="cs27Reg"][data-cs27-ui="3271"] #cs27-table-stats > #stats > .cs27-ghost-stat-row:last-of-type {
  border-bottom:0!important;border-radius:0!important;
}
body[data-template="cs27Reg"][data-cs27-ui="3271"] :is(#cs27-table-stats,[id^="cs27-table-admins-"]) > .table-adaptive > .cs27-entitlement-row > :is(.row,.cs27-service-grid),
body[data-template="cs27Reg"][data-cs27-ui="3271"] #cs27-table-stats > #stats > .cs27-ghost-stat-row > span {
  border:0!important;border-radius:0!important;box-shadow:none!important;
}
}

/* 3.31.3: override the legacy ID-scoped dimensions, not only flex shrink. */
@media(max-width:767px) {
body[data-template="cs27Reg"][data-cs27-ui="3271"] :is(#cs27-table-stats,[id^="cs27-table-admins-"]) > .table-adaptive > .cs27-entitlement-row > :is(.row,.cs27-service-grid) > .cs27-field-identity > img,
body[data-template="cs27Reg"][data-cs27-ui="3271"] .cs27-admins-page .block_admins_select .cs27-entitlement-row .cs27-field-identity > img {
 display:block!important;width:40px!important;height:40px!important;
 min-width:40px!important;max-width:40px!important;min-height:40px!important;max-height:40px!important;
 inline-size:40px!important;block-size:40px!important;min-inline-size:40px!important;max-inline-size:40px!important;min-block-size:40px!important;max-block-size:40px!important;
 flex:0 0 40px!important;align-self:center!important;object-fit:cover!important;object-position:center!important;aspect-ratio:1!important;transform:none!important;padding:0!important;box-sizing:border-box!important;
}
body[data-template="cs27Reg"][data-cs27-ui="3271"] #cs27-table-stats > #stats > .cs27-ghost-stat-row > .cs27-ghost-player > .cs27-ghost-avatar {
 width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;min-height:30px!important;max-height:30px!important;
 inline-size:30px!important;block-size:30px!important;min-inline-size:30px!important;max-inline-size:30px!important;min-block-size:30px!important;max-block-size:30px!important;
 flex:0 0 30px!important;align-self:center!important;object-fit:cover!important;aspect-ratio:1!important;transform:none!important;padding:0!important;box-sizing:border-box!important;
}
body[data-template="cs27Reg"][data-cs27-ui="3271"] .cs27-inner-page .block_forum_item .flex_forum_info_right .user_info_forum,
body[data-template="cs27Reg"][data-cs27-ui="3271"] .cs27-inner-page .block_forum_item .flex_forum_info_right img.forum_img_user {
 width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;min-height:40px!important;max-height:40px!important;
 inline-size:40px!important;block-size:40px!important;min-inline-size:40px!important;max-inline-size:40px!important;min-block-size:40px!important;max-block-size:40px!important;
 flex:0 0 40px!important;align-self:center!important;object-fit:cover!important;aspect-ratio:1!important;transform:none!important;padding:0!important;box-sizing:border-box!important;
}
}

/* CS27 3.31.5: last_activity.tpl avatars; keep both link and image square. */
body[data-template="cs27Reg"] .lst_activity_block .left_side_activity {
  min-width: 0 !important;
  flex: 1 1 auto;
}
body[data-template="cs27Reg"] .lst_activity_block .left_side_activity > a:first-child,
body[data-template="cs27Reg"] .lst_activity_block img.img_actiity {
  display: block !important;
  box-sizing: border-box !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  flex: 0 0 32px !important;
  align-self: center !important;
  padding: 0 !important;
}
body[data-template="cs27Reg"] .lst_activity_block img.img_actiity {
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
}
body[data-template="cs27Reg"] .lst_activity_block .activity_flex {
  min-width: 0 !important;
  flex: 1 1 auto;
}
body[data-template="cs27Reg"] .lst_activity_block .last_activity_theme {
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}
