/* cs27Reg 3.20.1 — approved dashboard implementation, loaded LAST */
body[data-template="cs27Reg"]{--d-bg:#151a1b;--d-card:#1c2223;--d-row:#202829;--d-row2:#1b2223;--d-line:#354041;--d-muted:#8e9a9b;--d-accent:#ff5728}
/* universal dense GameCMS table */
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive{background:var(--d-card)!important;border:1px solid var(--d-line)!important;border-radius:12px!important;overflow:hidden!important}
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .table-row{height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;padding:0!important;background:var(--d-row)!important;border:0!important;border-bottom:1px solid var(--d-line)!important;border-radius:0!important;overflow:hidden!important}
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .table-row:nth-child(even){background:var(--d-row2)!important}
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .table-row:last-child{border-bottom:0!important}
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .table-row>.row{height:50px!important;min-height:50px!important;margin:0!important;display:flex!important;align-items:stretch!important;flex-wrap:nowrap!important}
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .table-row>.row>[class*="col-"]{height:50px!important;min-height:50px!important;max-height:50px!important;padding:0 14px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;line-height:1.15!important;overflow:hidden!important}
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .table-row>.row>[class*="col-"] p{margin:0!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .table-row>.row>[class*="col-"]>span{margin:0!important;font-size:10px!important;color:var(--d-muted)!important;white-space:nowrap!important}
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .with-description{flex-direction:row!important}
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .with-description>span{display:none!important}
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .with-icon>i{position:static!important;flex:0 0 28px!important;width:28px!important;height:28px!important;margin:0!important;display:grid!important;place-items:center!important;border-radius:8px!important;background:#ff572812!important;color:#ff7048!important}
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .with-icon>img{position:static!important;flex:0 0 30px!important;width:30px!important;height:30px!important;margin:0!important;border-radius:50%!important;object-fit:cover!important}
/* my privileges */
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-my-stores #my_stores .table-row>.row>.col-lg-3{flex:0 0 24%!important;max-width:24%!important;color:#49d477!important;font-weight:800!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-my-stores #my_stores .table-row>.row>.col-lg-4{flex:0 0 38%!important;max-width:38%!important;font-weight:750!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-my-stores #my_stores .bx-star{order:-1!important}}
/* admins exact old-table geometry in new skin */
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-admins .block_admins_select{padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:transparent!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-admins .block_admins_select .block_head{height:46px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--d-line)!important;border-radius:0!important;background:#22292a!important}}
body[data-template="cs27Reg"].cs27-route-admins .table-adaptive{border:0!important;border-radius:0!important}
body[data-template="cs27Reg"].cs27-route-admins .table-row>.row>.col-lg-3{flex:0 0 25%!important;max-width:25%!important}
body[data-template="cs27Reg"].cs27-route-admins .table-row>.row>.col-lg-4{flex:0 0 35%!important;max-width:35%!important}
body[data-template="cs27Reg"].cs27-route-admins .table-row>.row>.col-lg-5{flex:0 0 40%!important;max-width:40%!important}
/* stats rows: 50px, all cells centered vertically */
body[data-template="cs27Reg"].cs27-route-stats #stats .table-row,body[data-template="cs27Reg"].cs27-route-stats #stats .table-row>.row,body[data-template="cs27Reg"].cs27-route-stats #stats .table-row>.row>[class*="col-"]{height:50px!important;min-height:50px!important;max-height:50px!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .area-label{height:50px!important;padding-top:0!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
/* messenger: real two-pane app */
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_message{height:570px!important;min-height:570px!important;display:grid!important;grid-template-columns:300px minmax(0,1fr)!important;gap:0!important;margin:0!important;border:1px solid var(--d-line)!important;border-radius:14px!important;background:var(--d-card)!important;overflow:hidden!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #companions{height:570px!important;max-height:none!important;padding:8px!important;margin:0!important;overflow:hidden!important;border:0!important;border-right:1px solid var(--d-line)!important;border-radius:0!important;background:#192021!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_companion{height:62px!important;min-height:62px!important;margin:0!important;padding:8px 7px!important;border:0!important;border-bottom:1px solid #30393a!important;border-radius:0!important;background:transparent!important;display:flex!important;align-items:center!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_companion:hover{background:#232a2b!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .flex_companion{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;flex:1!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .img_companion{width:40px!important;height:40px!important;border-radius:50%!important;object-fit:cover!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .flex_companion_mini{display:flex!important;flex-direction:column!important;min-width:0!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .login_companion{font-size:12px!important;font-weight:850!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .desp_companion{font-size:10px!important;color:var(--d-muted)!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .companion_btn{width:30px!important;height:30px!important;flex:0 0 30px!important;display:grid!important;place-items:center!important;border-radius:8px!important;background:#252c2d!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_message_right{height:570px!important;min-height:570px!important;max-height:570px!important;margin:0!important;border:0!important;border-radius:0!important;background:#1b2122!important;overflow:hidden!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #place_for_messages,body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #chat,body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #chat>form{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #drop_zone{flex:1 1 auto!important;height:auto!important;min-height:0!important;padding:18px 20px 12px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin!important;scrollbar-color:#ff6840 transparent!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:9px!important;width:100%!important;min-height:100%!important;padding:0!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .dialog_m{display:flex!important;width:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;align-items:flex-end!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .dialog_m .message{width:auto!important;max-width:72%!important;min-height:0!important;margin:0!important;padding:9px 11px!important;border:1px solid #3d494a!important;border-radius:13px 13px 13px 4px!important;background:#252d2e!important;overflow:visible!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .dialog_m.cs27-message-own{justify-content:flex-end!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .dialog_m.cs27-message-own .message{background:#ff572817!important;border-color:#784435!important;border-radius:13px 13px 4px 13px!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .dialog_m.cs27-message-own .message_g_img{display:none!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .with_code{display:flex!important;align-items:flex-end!important;gap:8px!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .message_g_img{flex:0 0 32px!important}.cs27-route-messages .cs27-messages-page .chat_img{width:32px!important;height:32px!important;border-radius:50%!important;object-fit:cover!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .message_global{min-width:0!important;flex:1!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .login_share_flex{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .text_chat{margin:3px 0 0!important;padding:0!important;border:0!important;background:transparent!important;color:#edf1f1!important;font-size:12px!important;line-height:1.42!important;overflow-wrap:anywhere!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .cs27-composer{flex:0 0 66px!important;height:66px!important;margin:0!important;padding:10px 12px!important;display:flex!important;align-items:center!important;gap:9px!important;border:0!important;border-top:1px solid var(--d-line)!important;border-radius:0!important;background:#192021!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .smile_input{flex:1!important;min-width:0!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #personal_message_input{height:44px!important;min-height:44px!important;max-height:44px!important;padding:11px 42px 10px 14px!important;border:1px solid #3d4849!important;border-radius:10px!important;background:#22292a!important;resize:none!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .btn_send_message{width:44px!important;height:44px!important;border:0!important;border-radius:10px!important;background:var(--d-accent)!important;color:#fff!important}
/* payments old-table clarity */
@media(min-width:768px){body[data-template="cs27Reg"] #last_operations{width:100%!important;overflow:hidden!important}}@media(min-width:768px){body[data-template="cs27Reg"] #last_operations .purse_list{display:table!important;width:100%!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important}}body[data-template="cs27Reg"] .purse_list tbody{display:inline-table!important;width:100%!important}@media(min-width:768px){body[data-template="cs27Reg"] #last_operations .transparent_tr{display:table-row!important;width:100%!important}}@media(min-width:768px){body[data-template="cs27Reg"] #last_operations td:nth-child(4){text-align:initial!important}}
@media(max-width:767px){body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_message{height:auto!important;min-height:0!important;grid-template-columns:1fr!important}body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #companions{height:auto!important;max-height:260px!important;border-right:0!important;border-bottom:1px solid var(--d-line)!important}body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_message_right{height:540px!important;min-height:540px!important}body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .table-row{height:auto!important;max-height:none!important;min-height:50px!important}body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .table-row>.row{height:auto!important;min-height:50px!important;flex-wrap:wrap!important}body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .table-row>.row>[class*="col-"]{height:auto!important;min-height:42px!important;max-height:none!important}}

/* 3.20.2 structural dashboard — direct markup selectors, no route dependency */
body[data-template="cs27Reg"] .cs27-table-head{height:42px;display:grid;align-items:center;background:#202627;border:1px solid #343d3e;border-bottom:0;color:#9ca8a9;font-size:11px;font-weight:800;text-transform:none;padding:0 16px}
body[data-template="cs27Reg"] .cs27-store-head{grid-template-columns:24% 38% 38%}
body[data-template="cs27Reg"] .cs27-admin-head{grid-template-columns:28% 34% 38%}
body[data-template="cs27Reg"] .cs27-stats-head{grid-template-columns:11% 34% 13% 13% 14% 15%}
body[data-template="cs27Reg"] .cs27-dashboard-table{margin:0!important;border:1px solid #343d3e!important;border-radius:0 0 10px 10px!important;overflow:hidden!important;background:#182021!important}
body[data-template="cs27Reg"] .cs27-dashboard-table .table-row{height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;padding:0!important;border:0!important;border-bottom:1px solid #30393a!important;border-radius:0!important;background:#1b2223!important;overflow:hidden!important}
body[data-template="cs27Reg"] .cs27-dashboard-table .table-row:last-child{border-bottom:0!important}
body[data-template="cs27Reg"] .cs27-dashboard-table .table-row>.row{height:50px!important;min-height:50px!important;margin:0!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important}
body[data-template="cs27Reg"] .cs27-dashboard-table .table-row>.row>[class*="col-"]{height:50px!important;min-height:50px!important;max-height:50px!important;padding:0 14px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;overflow:hidden!important}
body[data-template="cs27Reg"] .cs27-dashboard-table .with-description{flex-direction:row!important}
body[data-template="cs27Reg"] .cs27-dashboard-table .with-description p{margin:0!important;padding:0!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-weight:800!important}
body[data-template="cs27Reg"] .cs27-dashboard-table .with-description>span{display:none!important}
body[data-template="cs27Reg"] .cs27-dashboard-table .with-icon>i{position:static!important;flex:0 0 28px!important;width:28px!important;height:28px!important;margin:0!important;display:grid!important;place-items:center!important;border-radius:7px!important;background:#ff572814!important;color:#ff6a40!important}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .table-row>.row>.col-lg-3{flex:0 0 24%!important;max-width:24%!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .table-row>.row>.col-lg-4{flex:0 0 38%!important;max-width:38%!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .cs27-dashboard-table .table-row>.row>[class*="col-"]:nth-of-type(1){flex:0 0 28%!important;max-width:28%!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .cs27-dashboard-table .table-row>.row>[class*="col-"]:nth-of-type(2){flex:0 0 34%!important;max-width:34%!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .cs27-dashboard-table .table-row>.row>[class*="col-"]:nth-of-type(3){flex:0 0 38%!important;max-width:38%!important}}
body[data-template="cs27Reg"] .cs27-stats-podium-legacy{display:none!important}
body[data-template="cs27Reg"] #stats{margin-top:0!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(1){flex:0 0 11%!important;max-width:11%!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(2){flex:0 0 34%!important;max-width:34%!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(3){flex:0 0 13%!important;max-width:13%!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(4){flex:0 0 14%!important;max-width:14%!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(5){flex:0 0 13%!important;max-width:13%!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-1{flex:0 0 15%!important;max-width:15%!important;height:50px!important;display:flex!important;align-items:center!important;padding:0 14px!important}
body[data-template="cs27Reg"] #stats .area-label{height:auto!important;padding:0!important;margin:0!important;display:flex!important;align-items:center!important}
/* messages: override legacy dimensions directly */
body[data-template="cs27Reg"] .cs27-messages-page .block_message{height:560px!important;display:grid!important;grid-template-columns:300px minmax(0,1fr)!important;border:1px solid #394344!important;border-radius:14px!important;overflow:hidden!important;background:#181f20!important}
body[data-template="cs27Reg"] .cs27-messages-page #companions{height:560px!important;max-height:560px!important;overflow:hidden!important;padding:8px!important;border:0!important;border-right:1px solid #394344!important;background:#171e1f!important}
body[data-template="cs27Reg"] .cs27-messages-page .block_companion{height:62px!important;margin:0!important;padding:8px!important;border:0!important;border-bottom:1px solid #303839!important;border-radius:0!important;background:transparent!important}
body[data-template="cs27Reg"] .cs27-messages-page .block_message_right{height:560px!important;min-height:560px!important;max-height:560px!important;margin:0!important;border:0!important;background:#1b2122!important;overflow:hidden!important}
body[data-template="cs27Reg"] .cs27-messages-page #place_for_messages,body[data-template="cs27Reg"] .cs27-messages-page #chat,body[data-template="cs27Reg"] .cs27-messages-page #chat>form{height:100%!important;display:flex!important;flex-direction:column!important;min-height:0!important}
body[data-template="cs27Reg"] .cs27-messages-page #drop_zone{flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;padding:18px!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages{display:flex!important;flex-direction:column!important;gap:9px!important;justify-content:flex-end!important;min-height:100%!important}
body[data-template="cs27Reg"] .cs27-messages-page .dialog_m{display:flex!important;width:100%!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important}
body[data-template="cs27Reg"] .cs27-messages-page .dialog_m .message{width:auto!important;max-width:72%!important;margin:0!important;padding:9px 11px!important;background:#252d2e!important;border:1px solid #3d494a!important;border-radius:13px 13px 13px 4px!important}
body[data-template="cs27Reg"] .cs27-messages-page .dialog_m.cs27-message-own{justify-content:flex-end!important}
body[data-template="cs27Reg"] .cs27-messages-page .dialog_m.cs27-message-own .message{background:#332522!important;border-color:#814732!important;border-radius:13px 13px 4px 13px!important}
body[data-template="cs27Reg"] .cs27-messages-page .dialog_m.cs27-message-own .message_g_img{display:none!important}
body[data-template="cs27Reg"] .cs27-messages-page .cs27-composer{height:64px!important;flex:0 0 64px!important;margin:0!important;padding:10px 12px!important;border:0!important;border-top:1px solid #394344!important;background:transparent!important}
@media(max-width:767px){body[data-template="cs27Reg"] .cs27-table-head{display:none!important}body[data-template="cs27Reg"] .cs27-dashboard-table .table-row{height:auto!important;max-height:none!important;min-height:50px!important}body[data-template="cs27Reg"] .cs27-messages-page .block_message{height:auto!important;grid-template-columns:1fr!important}body[data-template="cs27Reg"] .cs27-messages-page #companions{height:auto!important;max-height:260px!important;border-right:0!important;border-bottom:1px solid #394344!important}body[data-template="cs27Reg"] .cs27-messages-page .block_message_right{height:520px!important;min-height:520px!important}}

/* 3.20.3 — compact GameCMS tables + stable messenger */
body[data-template="cs27Reg"] .cs27-ban-head{grid-template-columns:25% 25% 25% 25%}
body[data-template="cs27Reg"] .cs27-mute-head{grid-template-columns:25% 18% 17% 22% 18%}
body[data-template="cs27Reg"] .cs27-list-table{margin-top:0!important;border:1px solid #343d3e!important;border-radius:0 0 10px 10px!important;overflow:hidden!important;background:#182021!important}
body[data-template="cs27Reg"] .cs27-list-table .table-row{height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;padding:0!important;border:0!important;border-bottom:1px solid #30393a!important;border-radius:0!important;background:#1b2223!important;overflow:hidden!important}
body[data-template="cs27Reg"] .cs27-list-table .table-row>.row{height:50px!important;min-height:50px!important;margin:0!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important}
body[data-template="cs27Reg"] .cs27-list-table .table-row>.row>[class*="col-"]{height:50px!important;min-height:50px!important;max-height:50px!important;padding:0 12px!important;margin:0!important;display:flex!important;align-items:center!important;gap:7px!important;overflow:hidden!important}
body[data-template="cs27Reg"] .cs27-list-table .with-description{flex-direction:row!important}
body[data-template="cs27Reg"] .cs27-list-table .with-description p{margin:0!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body[data-template="cs27Reg"] .cs27-list-table .with-description>span{display:none!important}
@media(min-width:768px){body[data-template="cs27Reg"] #banlist .col-lg-3{flex:0 0 25%!important;max-width:25%!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #muts .col-lg-3:nth-of-type(1){flex:0 0 25%!important;max-width:25%!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #muts .col-lg-2:nth-of-type(2){flex:0 0 18%!important;max-width:18%!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #muts .col-lg-2:nth-of-type(3){flex:0 0 17%!important;max-width:17%!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #muts .col-lg-3:nth-of-type(4){flex:0 0 22%!important;max-width:22%!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #muts .col-lg-2:nth-of-type(5){flex:0 0 18%!important;max-width:18%!important}}
/* privileges: keep 50px but never clip the primary text */
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .table-row,body[data-template="cs27Reg"] #my_stores .table-row>.row,body[data-template="cs27Reg"] #my_stores .table-row>.row>[class*="col-"]{height:50px!important;min-height:50px!important;max-height:50px!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .table-row>.row>[class*="col-"]{overflow:visible!important;white-space:normal!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .with-description{position:relative!important;display:flex!important;align-items:center!important;flex-direction:row!important;line-height:1!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .with-description p{display:block!important;margin:0!important;line-height:16px!important;max-height:32px!important;white-space:normal!important;overflow:hidden!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .with-description>span{display:none!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .with-icon .bx-star{position:static!important;order:-1!important;flex:0 0 26px!important;width:26px!important;height:26px!important;margin:0 8px 0 0!important;display:grid!important;place-items:center!important}}
/* admins: strict 50px vertical rhythm */
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .cs27-dashboard-table .table-row,body[data-template="cs27Reg"] .block_admins_select .cs27-dashboard-table .table-row>.row,body[data-template="cs27Reg"] .block_admins_select .cs27-dashboard-table .table-row>.row>[class*="col-"]{height:50px!important;min-height:50px!important;max-height:50px!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .cs27-dashboard-table .table-row>.row>[class*="col-"]{justify-content:flex-start!important;line-height:1!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .cs27-dashboard-table img{width:30px!important;height:30px!important;object-fit:cover!important;border-radius:50%!important}}
/* messenger: no overlap, old history remains scrollable */
body[data-template="cs27Reg"] .cs27-messages-page #messages{justify-content:flex-start!important;min-height:0!important;height:auto!important;gap:8px!important;padding:0 2px!important}
body[data-template="cs27Reg"] .cs27-messages-page .dialog_m{position:relative!important;float:none!important;clear:both!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;align-items:flex-end!important}
body[data-template="cs27Reg"] .cs27-messages-page .dialog_m .message{position:relative!important;float:none!important;height:auto!important;min-height:38px!important;max-height:none!important;overflow:visible!important;padding:8px 10px!important}
body[data-template="cs27Reg"] .cs27-messages-page .dialog_m .with_code{display:flex!important;align-items:flex-start!important;gap:8px!important;height:auto!important;overflow:visible!important}
body[data-template="cs27Reg"] .cs27-messages-page .message_g_img{position:static!important;flex:0 0 28px!important;width:28px!important;height:28px!important;margin:0!important}
body[data-template="cs27Reg"] .cs27-messages-page .back_img_chat,body[data-template="cs27Reg"] .cs27-messages-page .chat_img{width:28px!important;height:28px!important;border-radius:50%!important;display:block!important;object-fit:cover!important}
body[data-template="cs27Reg"] .cs27-messages-page .message_global{min-width:0!important;flex:1!important}
body[data-template="cs27Reg"] .cs27-messages-page .login_share_flex{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:15px!important;margin:0 0 2px!important}
body[data-template="cs27Reg"] .cs27-messages-page .author{font-size:11px!important;line-height:14px!important}
body[data-template="cs27Reg"] .cs27-messages-page .chat_date{font-size:9px!important;line-height:12px!important;color:#889596!important}
body[data-template="cs27Reg"] .cs27-messages-page .text_chat{font-size:12px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere!important}
body[data-template="cs27Reg"] .cs27-messages-page .dialog_m.cs27-message-own .message_g_img{display:none!important}
body[data-template="cs27Reg"] .cs27-messages-page .dialog_m.cs27-message-own .with_code{display:block!important}
body[data-template="cs27Reg"] .cs27-messages-page #drop_zone{scroll-behavior:auto!important;overscroll-behavior:contain!important}
@media(max-width:767px){body[data-template="cs27Reg"] .cs27-list-table .table-row{height:auto!important;max-height:none!important;min-height:50px!important}}

/* 3.20.4 — final geometry reset for privileges + personal messages */
body[data-template="cs27Reg"] .block_my_stores{overflow:visible!important}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores.cs27-dashboard-table{overflow:visible!important;height:auto!important;max-height:none!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores.cs27-dashboard-table>a{display:block!important;width:100%!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores.cs27-dashboard-table .table-row{height:auto!important;min-height:62px!important;max-height:none!important;overflow:visible!important;padding:0!important;margin:0!important;border-radius:0!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores.cs27-dashboard-table .table-row>.row{display:grid!important;grid-template-columns:24% 38% 38%!important;width:100%!important;height:auto!important;min-height:62px!important;max-height:none!important;margin:0!important;padding:0!important;gap:0!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores.cs27-dashboard-table .table-row>.row>[class*="col-"]{width:auto!important;max-width:none!important;flex:none!important;height:auto!important;min-height:62px!important;max-height:none!important;overflow:hidden!important;padding:10px 14px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores.cs27-dashboard-table .with-description p{display:block!important;max-height:none!important;margin:0!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important;overflow:visible!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores.cs27-dashboard-table .with-description>span{display:none!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores.cs27-dashboard-table .with-icon .bx-star{position:static!important;transform:none!important;flex:0 0 28px!important;width:28px!important;height:28px!important;margin:0!important}}

body[data-template="cs27Reg"] .cs27-messages-page .block_message{display:grid!important;grid-template-columns:280px minmax(0,1fr)!important;gap:0!important;height:600px!important;min-height:600px!important;max-height:600px!important;overflow:hidden!important;border:1px solid #394344!important;border-radius:14px!important;background:#181f20!important}
body[data-template="cs27Reg"] .cs27-messages-page #companions{box-sizing:border-box!important;width:100%!important;height:600px!important;min-height:0!important;max-height:600px!important;margin:0!important;padding:8px!important;overflow-y:auto!important;overflow-x:hidden!important;border:0!important;border-right:1px solid #394344!important;border-radius:0!important;background:#171e1f!important;scrollbar-width:thin!important}
body[data-template="cs27Reg"] .cs27-messages-page .block_message_right{box-sizing:border-box!important;width:100%!important;height:600px!important;min-height:0!important;max-height:600px!important;margin:0!important;padding:0!important;overflow:hidden!important;border:0!important;border-radius:0!important;background:#1b2122!important}
body[data-template="cs27Reg"] .cs27-messages-page #place_for_messages,body[data-template="cs27Reg"] .cs27-messages-page #chat,body[data-template="cs27Reg"] .cs27-messages-page #chat>form{box-sizing:border-box!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;margin:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
body[data-template="cs27Reg"] .cs27-messages-page #drop_zone{box-sizing:border-box!important;position:relative!important;flex:1 1 0!important;width:100%!important;height:0!important;min-height:0!important;max-height:none!important;margin:0!important;padding:16px!important;overflow-y:auto!important;overflow-x:hidden!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages{position:static!important;display:flex!important;flex-direction:column!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;gap:8px!important;overflow:visible!important}
body[data-template="cs27Reg"] .cs27-messages-page .dialog_m,body[data-template="cs27Reg"] .cs27-messages-page .dialog_m .message,body[data-template="cs27Reg"] .cs27-messages-page .dialog_m .with_code{transform:none!important}
body[data-template="cs27Reg"] .cs27-messages-page .cs27-composer{box-sizing:border-box!important;position:relative!important;flex:0 0 64px!important;width:100%!important;height:64px!important;min-height:64px!important;max-height:64px!important;margin:0!important;z-index:3!important}
@media(max-width:767px){@media(min-width:768px){body[data-template="cs27Reg"] #my_stores.cs27-dashboard-table .table-row>.row{grid-template-columns:1fr!important}}@media(min-width:768px){body[data-template="cs27Reg"] #my_stores.cs27-dashboard-table .table-row>.row>[class*="col-"]{min-height:48px!important}}body[data-template="cs27Reg"] .cs27-messages-page .block_message{grid-template-columns:1fr!important;height:auto!important;min-height:0!important;max-height:none!important}body[data-template="cs27Reg"] .cs27-messages-page #companions{height:auto!important;max-height:240px!important;border-right:0!important;border-bottom:1px solid #394344!important}body[data-template="cs27Reg"] .cs27-messages-page .block_message_right{height:540px!important;max-height:540px!important}}


/* 3.20.5 — approved compact tables */
body[data-template="cs27Reg"] .cs27-table-head{border-radius:0!important}
body[data-template="cs27Reg"] .cs27-dashboard-table{border-radius:0 0 10px 10px!important}

/* Admins: keep avatar and user name together */
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .cs27-dashboard-table .table-row>.row>[class*="col-"]:nth-of-type(2){justify-content:flex-start!important;gap:10px!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .cs27-dashboard-table .table-row>.row>[class*="col-"]:nth-of-type(2) img,
body[data-template="cs27Reg"] .block_admins_select .cs27-dashboard-table .admins_img{position:static!important;float:none!important;flex:0 0 30px!important;width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;margin:0!important;border-radius:50%!important;object-fit:cover!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .cs27-dashboard-table .table-row>.row>[class*="col-"]:nth-of-type(2) p{flex:0 1 auto!important;width:auto!important;margin:0!important;padding:0!important;text-align:left!important}}

/* Stats: positions 1–3 stay inside the same compact table */
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(1){background:linear-gradient(90deg,rgba(191,145,26,.22),rgba(191,145,26,.08))!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(2){background:linear-gradient(90deg,rgba(150,158,166,.18),rgba(150,158,166,.06))!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(3){background:linear-gradient(90deg,rgba(181,91,48,.20),rgba(181,91,48,.07))!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(1)>.row>.col-lg-2:first-of-type>i{color:#ffd84d!important;background:rgba(255,216,77,.14)!important;border-color:rgba(255,216,77,.35)!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(2)>.row>.col-lg-2:first-of-type>i{color:#c7ced4!important;background:rgba(199,206,212,.12)!important;border-color:rgba(199,206,212,.30)!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(3)>.row>.col-lg-2:first-of-type>i{color:#e47c49!important;background:rgba(228,124,73,.13)!important;border-color:rgba(228,124,73,.32)!important}


/* 3.20.6 — stats compact top-3 + legacy PM layout */
body[data-template="cs27Reg"] #stats .card_stats_top_player{display:none!important}
body[data-template="cs27Reg"] #stats .top_block_stats_player{display:none!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row{height:50px!important;min-height:50px!important;max-height:50px!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row{height:50px!important;min-height:50px!important;max-height:50px!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>[class*="col-"]{height:50px!important;min-height:50px!important;max-height:50px!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(n+4)>.row>.with-icon:first-of-type>i{display:none!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(n+4)>.row>.with-icon:first-of-type{padding-left:14px!important}

/* Personal messages: restore the old GameCMS list geometry, keep only cs27Reg colors */
body[data-template="cs27Reg"] .cs27-messages-page .block_message{display:flex!important;justify-content:space-between!important;align-items:stretch!important;gap:10px!important;height:520px!important;min-height:520px!important;max-height:520px!important;margin-bottom:20px!important;overflow:hidden!important;border:0!important;border-radius:0!important;background:transparent!important}
body[data-template="cs27Reg"] .cs27-messages-page #companions{box-sizing:border-box!important;flex:0 0 30%!important;width:30%!important;height:520px!important;min-height:520px!important;max-height:520px!important;margin:0!important;padding:14px!important;display:flex!important;flex-direction:column!important;gap:8px!important;overflow-y:auto!important;overflow-x:hidden!important;border:1px solid #394344!important;border-radius:14px!important;background:#1c2223!important;box-shadow:none!important}
body[data-template="cs27Reg"] .cs27-messages-page .block_message_right{box-sizing:border-box!important;flex:1 1 70%!important;width:70%!important;height:520px!important;min-height:520px!important;max-height:520px!important;margin:0!important;padding:14px!important;overflow:hidden!important;border:1px solid #394344!important;border-radius:14px!important;background:#1c2223!important;box-shadow:none!important}
body[data-template="cs27Reg"] .cs27-messages-page #place_for_messages,body[data-template="cs27Reg"] .cs27-messages-page #chat,body[data-template="cs27Reg"] .cs27-messages-page #chat>form{width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;margin:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
body[data-template="cs27Reg"] .cs27-messages-page #drop_zone{box-sizing:border-box!important;position:relative!important;flex:1 1 auto!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0 6px 10px!important;overflow-y:auto!important;overflow-x:hidden!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages{box-sizing:border-box!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .chat_message.dialog_m{box-sizing:border-box!important;position:relative!important;display:block!important;width:100%!important;height:auto!important;min-height:54px!important;max-height:none!important;margin:0!important;padding:8px 10px!important;overflow:visible!important;float:none!important;clear:both!important;background:transparent!important;border:0!important;transform:none!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .chat_message.dialog_m .message{box-sizing:border-box!important;position:relative!important;display:block!important;float:none!important;right:auto!important;width:100%!important;max-width:none!important;height:auto!important;min-height:38px!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;background:transparent!important;border:0!important;border-radius:0!important;transform:none!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .chat_message.dialog_m .with_code{box-sizing:border-box!important;display:flex!important;align-items:flex-start!important;gap:8px!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:38px!important;margin:0!important;padding:0!important;overflow:visible!important;background:transparent!important;border:0!important;border-radius:0!important;transform:none!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .message_g_img{position:static!important;display:block!important;flex:0 0 36px!important;width:36px!important;height:36px!important;margin:0!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .back_img_chat{box-sizing:border-box!important;display:flex!important;width:36px!important;height:36px!important;margin:0!important;padding:2px!important;border-radius:50%!important;align-items:center!important;justify-content:center!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .chat_img{display:block!important;width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;margin:0!important;border-radius:50%!important;object-fit:cover!important;transform:none!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .message_global{box-sizing:border-box!important;display:block!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;margin:0!important;padding:0!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .login_share_flex{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;width:100%!important;height:auto!important;min-height:16px!important;margin:0 0 2px!important;padding:0!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .author{display:inline!important;float:none!important;position:static!important;font-size:11px!important;line-height:14px!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .chat_date{position:static!important;float:none!important;font-size:10px!important;line-height:14px!important;color:#899596!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .text_chat{display:block!important;width:100%!important;margin:0!important;padding:0!important;font-size:12px!important;line-height:1.45!important;color:#e4e9e9!important;white-space:normal!important;overflow-wrap:anywhere!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .dialog_m.cs27-message-own{display:block!important;justify-content:initial!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .dialog_m.cs27-message-own .message_g_img{display:block!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .dialog_m.cs27-message-own .with_code{display:flex!important}
body[data-template="cs27Reg"] .cs27-messages-page .cs27-composer{box-sizing:border-box!important;position:relative!important;flex:0 0 58px!important;width:100%!important;height:58px!important;min-height:58px!important;max-height:58px!important;margin:0!important;padding:8px 0 0!important;background:transparent!important;border:1px solid var(--cs27-border)!important;border-width:1px 0 0!important;display:flex!important;align-items:flex-end!important;gap:8px!important}
@media(max-width:767px){body[data-template="cs27Reg"] .cs27-messages-page .block_message{display:block!important;height:auto!important;min-height:0!important;max-height:none!important}body[data-template="cs27Reg"] .cs27-messages-page #companions{width:100%!important;height:auto!important;min-height:0!important;max-height:240px!important;margin-bottom:10px!important}body[data-template="cs27Reg"] .cs27-messages-page .block_message_right{width:100%!important;height:520px!important;min-height:520px!important;max-height:520px!important}}


/* 3.20.7 — square tables, admin alignment/sidebar, numbered ban/mute rows, PM visual polish */
/* All dashboard/list tables: no rounding at any edge */
body[data-template="cs27Reg"] .cs27-table-head,
body[data-template="cs27Reg"] .cs27-dashboard-table,
body[data-template="cs27Reg"] .cs27-list-table,
body[data-template="cs27Reg"] .cs27-dashboard-table .table-row,
body[data-template="cs27Reg"] .cs27-list-table .table-row,
body[data-template="cs27Reg"] #stats,
body[data-template="cs27Reg"] #stats .table-row{border-radius:0!important}@media(min-width:768px){
body[data-template="cs27Reg"] #my_stores,
body[data-template="cs27Reg"] #my_stores .table-row,
body[data-template="cs27Reg"] #banlist,
body[data-template="cs27Reg"] #banlist .table-row,
body[data-template="cs27Reg"] #muts,
body[data-template="cs27Reg"] #muts .table-row,
body[data-template="cs27Reg"] .block_admins_select,
body[data-template="cs27Reg"] .block_admins_select .table-row{border-radius:0!important}}

/* Admins: server heading is a separate card above the table */
body[data-template="cs27Reg"].cs27-route-admins .cs27-admin-server-head{margin:16px 0 10px!important;border:1px solid var(--cs27-border)!important;border-radius:10px!important;background:#202627!important}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-admins .block_admins_select{margin-top:0!important;border:0!important;background:transparent!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-admins .block_admins_select .table-row>.row>.col-lg-3:first-child{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;padding-left:14px!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-admins .block_admins_select .table-row>.row>.col-lg-3:first-child>i{position:static!important;transform:none!important;flex:0 0 28px!important;width:28px!important;height:28px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-admins .block_admins_select .table-row>.row>.col-lg-3:first-child>p{width:auto!important;flex:0 1 auto!important;margin:0!important;padding:0!important;text-align:left!important;line-height:28px!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-admins .block_admins_select .table-row>.row>.col-lg-3:first-child>span{display:none!important}}

/* Stats: trophy only for places 1, 2, 3; compact and next to place number */
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:first-of-type{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;padding-left:12px!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:first-of-type>i{position:static!important;transform:none!important;flex:0 0 24px!important;width:24px!important;height:24px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:first-of-type>p{width:auto!important;margin:0!important;padding:0!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:first-of-type>span{display:none!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(n+4)>.row>.col-lg-2:first-of-type>i{display:none!important}

/* Ban/mute rows: sequential numbers instead of lock/mute icons */
@media(min-width:768px){body[data-template="cs27Reg"] #banlist{counter-reset:cs27ban}}
@media(min-width:768px){body[data-template="cs27Reg"] #muts{counter-reset:cs27mute}}
@media(min-width:768px){body[data-template="cs27Reg"] #banlist .cs27-ban-row{counter-increment:cs27ban}}
@media(min-width:768px){body[data-template="cs27Reg"] #muts .cs27-mute-row{counter-increment:cs27mute}}
@media(min-width:768px){body[data-template="cs27Reg"] #banlist .cs27-row-number::before{content:counter(cs27ban)}}
@media(min-width:768px){body[data-template="cs27Reg"] #muts .cs27-row-number::before{content:counter(cs27mute)}}
body[data-template="cs27Reg"] .cs27-row-number{position:static!important;flex:0 0 26px!important;width:26px!important;height:26px!important;margin:0 8px 0 0!important;border:1px solid #3a4445!important;border-radius:5px!important;background:#252c2d!important;color:#ff7048!important;font-size:11px!important;font-weight:800!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
@media(min-width:768px){body[data-template="cs27Reg"] #banlist .cs27-ban-row>.row>.col-lg-3:first-child,
body[data-template="cs27Reg"] #muts .cs27-mute-row>.row>[class*="col-"]:first-child{display:flex!important;align-items:center!important;justify-content:flex-start!important;padding-left:12px!important}}

/* Personal messages: one coherent bordered panel, readable list, no empty side columns */
body[data-template="cs27Reg"] .cs27-messages-page .block_message{display:grid!important;grid-template-columns:280px minmax(0,1fr)!important;gap:0!important;height:560px!important;min-height:560px!important;max-height:560px!important;border:1px solid #394344!important;border-radius:0!important;background:#1a2021!important}
body[data-template="cs27Reg"] .cs27-messages-page #companions{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;padding:8px 10px!important;border:0!important;border-right:1px solid #394344!important;border-radius:0!important;background:#181e1f!important;overflow-y:auto!important}
body[data-template="cs27Reg"] .cs27-messages-page .block_message_right{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;padding:0!important;border:0!important;border-radius:0!important;background:#1c2223!important}
body[data-template="cs27Reg"] .cs27-messages-page #drop_zone{padding:14px 18px 8px!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .chat_message.dialog_m{min-height:58px!important;padding:8px 6px!important;border-bottom:1px solid rgba(86,99,100,.28)!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .chat_message.dialog_m:last-child{border-bottom:0!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .message_g_img{flex-basis:38px!important;width:38px!important;height:38px!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .back_img_chat{width:38px!important;height:38px!important;border:1px solid rgba(255,87,40,.55)!important;background:#252c2d!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .chat_img{width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .author{font-size:12px!important;font-weight:800!important;color:#f1f4f4!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .text_chat{font-size:12px!important;line-height:1.45!important;color:#e5eaea!important}
body[data-template="cs27Reg"] .cs27-messages-page .cs27-composer{height:64px!important;min-height:64px!important;max-height:64px!important;padding:8px 12px!important;border:0!important;border-top:1px solid #394344!important;background:#1a2021!important}
body[data-template="cs27Reg"] .cs27-messages-page .block_companion{margin-bottom:0!important;border-radius:0!important;border-bottom:1px solid rgba(86,99,100,.32)!important}
@media(max-width:767px){body[data-template="cs27Reg"] .cs27-messages-page .block_message{display:block!important;height:auto!important;min-height:0!important;max-height:none!important}body[data-template="cs27Reg"] .cs27-messages-page #companions{height:auto!important;max-height:230px!important;border-right:0!important;border-bottom:1px solid #394344!important}body[data-template="cs27Reg"] .cs27-messages-page .block_message_right{height:520px!important}}

/* 3.20.8 — exact table/message refinements */
/* Messages: remove extra surfaces and frame lines */
body[data-template="cs27Reg"] .cs27-chat #chat #chat_messages,
body[data-template="cs27Reg"] .cs27-messages-page #chat #messages{background:transparent!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .chat_message.dialog_m{border-bottom:0!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_companion{height:40px!important;min-height:50px!important}

body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .cs27-composer{border-top:0!important}
/* Center avatar vertically against each message body */
body[data-template="cs27Reg"] .cs27-messages-page #messages .chat_message.dialog_m .with_code{align-items:center!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .message_g_img{align-self:center!important}
body[data-template="cs27Reg"] .cs27-messages-page #messages .message{display:flex!important;align-items:center!important}

/* Stats: square container and centered table header */
body[data-template="cs27Reg"].cs27-route-stats #stats{border-radius:0!important}
body[data-template="cs27Reg"] .cs27-table-head.cs27-stats-head{align-items:center!important}
body[data-template="cs27Reg"] .cs27-table-head.cs27-stats-head>span{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
/* Keep place, avatar and nickname visually close */
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row{display:grid!important;grid-template-columns:9% 37% 13% 13% 14% 14%!important;align-items:center!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>[class*="col-"]{width:auto!important;max-width:none!important;float:none!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:first-of-type{justify-content:center!important;padding-left:0!important;padding-right:0!important;gap:5px!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-4{justify-content:flex-start!important;padding-left:4px!important;gap:7px!important}

/* Fused tables: no outer border/rounding */
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive.table-fused{border:0!important;border-radius:0!important}

/* Unified row separators on every dashboard/list table */
body[data-template="cs27Reg"] .cs27-table-head,
body[data-template="cs27Reg"] .cs27-dashboard-table,
body[data-template="cs27Reg"] .cs27-list-table,
body[data-template="cs27Reg"] .cs27-dashboard-table .table-row,
body[data-template="cs27Reg"] .cs27-list-table .table-row,
body[data-template="cs27Reg"] #stats,
body[data-template="cs27Reg"] #stats .table-row{}@media(min-width:768px){
body[data-template="cs27Reg"] #my_stores,
body[data-template="cs27Reg"] #my_stores .table-row,
body[data-template="cs27Reg"] #banlist,
body[data-template="cs27Reg"] #banlist .table-row,
body[data-template="cs27Reg"] #muts,
body[data-template="cs27Reg"] #muts .table-row,
body[data-template="cs27Reg"] .block_admins_select,
body[data-template="cs27Reg"] .block_admins_select .table-row{}}

/* Ban/mute numbering: plain sequence number, no legacy lock/mute icon box */
@media(min-width:768px){body[data-template="cs27Reg"] #banlist .cs27-row-number,
body[data-template="cs27Reg"] #muts .cs27-row-number{border:0!important;border-radius:0!important;background:transparent!important;color:#dfe5e5!important;margin-right:8px!important;font-weight:800!important}}

/* 3.20.8.1 — stats emergency layout restore */
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  height:50px!important;
  min-height:50px!important;
  max-height:50px!important;
}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>[class*="col-"]{
  float:none!important;
  height:50px!important;
  min-height:50px!important;
  max-height:50px!important;
  display:flex!important;
  align-items:center!important;
  text-align:left!important;
  padding:0 12px!important;
  overflow:hidden!important;
}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(1){flex:0 0 11%!important;width:11%!important;max-width:11%!important;justify-content:flex-start!important;gap:6px!important;padding-left:12px!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(2){flex:0 0 34%!important;width:34%!important;max-width:34%!important;justify-content:flex-start!important;gap:7px!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(3){flex:0 0 13%!important;width:13%!important;max-width:13%!important;justify-content:center!important;text-align:center!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(4){flex:0 0 14%!important;width:14%!important;max-width:14%!important;justify-content:center!important;text-align:center!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(5){flex:0 0 13%!important;width:13%!important;max-width:13%!important;justify-content:center!important;text-align:center!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-1{flex:0 0 15%!important;width:15%!important;max-width:15%!important;justify-content:center!important;text-align:center!important;padding:0 8px!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(2) p{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(2) img{flex:0 0 auto!important}
body[data-template="cs27Reg"] .cs27-table-head.cs27-stats-head{grid-template-columns:11% 34% 13% 14% 13% 15%!important;padding:0!important}
body[data-template="cs27Reg"] .cs27-table-head.cs27-stats-head>span{justify-content:center!important;text-align:center!important;padding:0 8px!important}
body[data-template="cs27Reg"] .cs27-table-head.cs27-stats-head>span:nth-child(2){justify-content:flex-start!important;text-align:left!important;padding-left:12px!important}

/* 3.20.8.1 — stats emergency layout restore */
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;height:50px!important;min-height:50px!important;max-height:50px!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>[class*="col-"]{float:none!important;height:50px!important;min-height:50px!important;max-height:50px!important;display:flex!important;align-items:center!important;text-align:left!important;padding:0 12px!important;overflow:hidden!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(1){flex:0 0 11%!important;width:11%!important;max-width:11%!important;justify-content:flex-start!important;gap:6px!important;padding-left:12px!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(2){flex:0 0 34%!important;width:34%!important;max-width:34%!important;justify-content:flex-start!important;gap:7px!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(3){flex:0 0 13%!important;width:13%!important;max-width:13%!important;justify-content:center!important;text-align:center!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(4){flex:0 0 14%!important;width:14%!important;max-width:14%!important;justify-content:center!important;text-align:center!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(5){flex:0 0 13%!important;width:13%!important;max-width:13%!important;justify-content:center!important;text-align:center!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-1{flex:0 0 15%!important;width:15%!important;max-width:15%!important;justify-content:center!important;text-align:center!important;padding:0 8px!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(2) p{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body[data-template="cs27Reg"] .cs27-table-head.cs27-stats-head{grid-template-columns:11% 34% 13% 14% 13% 15%!important;padding:0!important}
body[data-template="cs27Reg"] .cs27-table-head.cs27-stats-head>span{justify-content:center!important;text-align:center!important;padding:0 8px!important}
body[data-template="cs27Reg"] .cs27-table-head.cs27-stats-head>span:nth-child(2){justify-content:flex-start!important;text-align:left!important;padding-left:12px!important}


/* 3.20.8.2 — guaranteed visible sequence numbers for banlist/muts */
@media(min-width:768px){body[data-template="cs27Reg"] #banlist .cs27-row-number,
body[data-template="cs27Reg"] #muts .cs27-row-number{
  display:inline-flex!important;visibility:visible!important;opacity:1!important;
  position:static!important;float:none!important;overflow:visible!important;
  flex:0 0 28px!important;width:28px!important;min-width:28px!important;height:50px!important;
  margin:0 8px 0 0!important;padding:0!important;align-items:center!important;justify-content:center!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  color:#dfe5e5!important;font-size:12px!important;font-weight:800!important;line-height:1!important;
}}
@media(min-width:768px){body[data-template="cs27Reg"] #banlist .cs27-row-number::before{content:counter(cs27ban)!important;display:block!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #muts .cs27-row-number::before{content:counter(cs27mute)!important;display:block!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #banlist .cs27-ban-row>.row>.col-lg-3:first-child>p,
body[data-template="cs27Reg"] #muts .cs27-mute-row>.row>[class*="col-"]:first-child>p{margin-left:0!important}}


/* ==========================================================
   3.20.9 — exact table/message unification requested 2026-09-16
   ========================================================== */

/* 1/11. Remove the previously forced table bottom border and fused outer frame */
body[data-template="cs27Reg"] .cs27-table-head,
body[data-template="cs27Reg"] .cs27-dashboard-table,
body[data-template="cs27Reg"] .cs27-list-table,
body[data-template="cs27Reg"] .cs27-dashboard-table .table-row,
body[data-template="cs27Reg"] .cs27-list-table .table-row,
body[data-template="cs27Reg"] #stats,
body[data-template="cs27Reg"] #stats .table-row{}@media(min-width:768px){
body[data-template="cs27Reg"] #my_stores,
body[data-template="cs27Reg"] #my_stores .table-row,
body[data-template="cs27Reg"] #banlist,
body[data-template="cs27Reg"] #banlist .table-row,
body[data-template="cs27Reg"] #muts,
body[data-template="cs27Reg"] #muts .table-row,
body[data-template="cs27Reg"] .block_admins_select,
body[data-template="cs27Reg"] .block_admins_select .table-row{}}
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive.table-fused{border:0!important;border-radius:0!important}

/* All dashboard tables use the same flat geometry as banlist */
body[data-template="cs27Reg"] :is(.cs27-table-head,#stats,#my_stores,#banlist,#muts,.block_admins_select,.cs27-dashboard-table,.cs27-list-table){border-radius:0!important;box-shadow:none!important}
body[data-template="cs27Reg"] :is(#stats,#my_stores,#banlist,#muts,.block_admins_select) .table-row{border-radius:0!important;margin-bottom:0!important;box-shadow:none!important;border-left:0!important;border-right:0!important}

/* 2. Mute table headings centered */
body[data-template="cs27Reg"] .cs27-table-head.cs27-mute-head>span{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}

/* 3. Stats: same flat table geometry + top 3 trophy emphasis */
body[data-template="cs27Reg"] .cs27-table-head.cs27-stats-head>span{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;padding:0 8px!important}
body[data-template="cs27Reg"] .cs27-table-head.cs27-stats-head>span:nth-child(2){justify-content:center!important;text-align:center!important;padding-left:8px!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(1){background:linear-gradient(90deg,rgba(205,156,35,.22),rgba(205,156,35,.07))!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(2){background:linear-gradient(90deg,rgba(165,174,183,.18),rgba(165,174,183,.05))!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(3){background:linear-gradient(90deg,rgba(190,102,56,.20),rgba(190,102,56,.06))!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(-n+3)>.row>.col-lg-2:first-of-type>i{display:inline-flex!important;position:static!important;flex:0 0 24px!important;width:24px!important;height:24px!important;margin:0 6px 0 0!important;align-items:center!important;justify-content:center!important;border:0!important;border-radius:0!important;background:transparent!important;font-size:17px!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(1)>.row>.col-lg-2:first-of-type>i{color:#ffd84d!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(2)>.row>.col-lg-2:first-of-type>i{color:#c7ced4!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(3)>.row>.col-lg-2:first-of-type>i{color:#d87a48!important}
body[data-template="cs27Reg"] #stats .cs27-stats-row:nth-child(n+4)>.row>.col-lg-2:first-of-type>i{display:none!important}

/* 4/5. Messages: remove companion and panel borders */
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_companion{border-bottom:0!important}


/* 6. My stores follows the same flat table visual language */
body[data-template="cs27Reg"] .block_my_stores .cs27-store-head{border-radius:0!important;border-left:0!important;border-right:0!important;box-shadow:none!important}@media(min-width:768px){
body[data-template="cs27Reg"] #my_stores{border-radius:0!important;border-left:0!important;border-right:0!important;box-shadow:none!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .table-row{height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;border-radius:0!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .table-row>.row{height:50px!important;min-height:50px!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .table-row>.row>.col-lg-3{flex:0 0 24%!important;width:24%!important;max-width:24%!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .table-row>.row>.col-lg-4:nth-of-type(2){flex:0 0 38%!important;width:38%!important;max-width:38%!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .table-row>.row>.col-lg-4:nth-of-type(3){flex:0 0 38%!important;width:38%!important;max-width:38%!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .table-row>.row>[class*="col-"]{height:50px!important;min-height:50px!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:row!important;gap:7px!important;padding:0 10px!important;overflow:hidden!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .table-row>.row>[class*="col-"]>p{margin:0!important;padding:0!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .table-row>.row>[class*="col-"]>span{display:none!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #my_stores .table-row>.row>.col-lg-4:nth-of-type(2){justify-content:flex-start!important}}

/* 7. Remove global form control border requested */
body[data-template="cs27Reg"] #chat_message_input,
body[data-template="cs27Reg"] input,
body[data-template="cs27Reg"] textarea,
body[data-template="cs27Reg"] select,
body[data-template="cs27Reg"] .form-control{border:0!important}

/* 8. Admins uses the same flat table geometry as banlist */
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .cs27-admin-head{border-radius:0!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .table-adaptive{border:0!important;border-radius:0!important;box-shadow:none!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .table-row{height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;border-radius:0!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .table-row>.row{height:50px!important;min-height:50px!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .table-row>.row>.col-lg-3{flex:0 0 28%!important;width:28%!important;max-width:28%!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .table-row>.row>.col-lg-4{flex:0 0 34%!important;width:34%!important;max-width:34%!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .table-row>.row>.col-lg-5{flex:0 0 38%!important;width:38%!important;max-width:38%!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .table-row>.row>[class*="col-"]{height:50px!important;min-height:50px!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:row!important;gap:8px!important;padding:0 10px!important;overflow:hidden!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .table-row>.row>[class*="col-"]>p{margin:0!important;padding:0!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .table-row>.row>[class*="col-"]>span{display:none!important}}
@media(min-width:768px){body[data-template="cs27Reg"] .block_admins_select .table-row>.row>.col-lg-4{justify-content:flex-start!important}}

/* Ban/mute numbering remains visible and centered */
@media(min-width:768px){body[data-template="cs27Reg"] #banlist{counter-reset:cs27ban!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #muts{counter-reset:cs27mute!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #banlist .cs27-ban-row{counter-increment:cs27ban!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #muts .cs27-mute-row{counter-increment:cs27mute!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #banlist .cs27-row-number::before{content:counter(cs27ban)!important}}
@media(min-width:768px){body[data-template="cs27Reg"] #muts .cs27-row-number::before{content:counter(cs27mute)!important}}


/* ==========================================================
   3.21.2 — route-isolated tables.
   /muts is the visual source of truth and is intentionally
   NOT targeted anywhere in this section.
   ========================================================== */

/* Messages: deliberately no border/outline/box-shadow override
   for #companions or .block_message_right. */

/* ---------- STATS only ---------- */
body[data-template="cs27Reg"].cs27-route-stats #stats{
  margin-top:0!important;border-radius:0!important;overflow:hidden!important;background:#182021!important;box-shadow:none!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .table-row{
  height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;padding:0!important;border-radius:0!important;background:#1b2223!important;overflow:hidden!important;box-shadow:none!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .table-row>.row{
  height:50px!important;min-height:50px!important;margin:0!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .table-row>.row>[class*="col-"]{
  height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;padding:0 12px!important;display:flex!important;align-items:center!important;gap:7px!important;overflow:hidden!important;
}
body[data-template="cs27Reg"].cs27-route-stats .cs27-stats-head{
  height:42px!important;grid-template-columns:11% 34% 13% 14% 13% 15%!important;padding:0!important;align-items:center!important;background:#202627!important;border-radius:0!important;box-shadow:none!important;color:#9ca8a9!important;
}
body[data-template="cs27Reg"].cs27-route-stats .cs27-stats-head>span{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;padding:0 8px!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(1){flex:0 0 11%!important;max-width:11%!important;justify-content:center!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(2){flex:0 0 34%!important;max-width:34%!important;justify-content:flex-start!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(3){flex:0 0 13%!important;max-width:13%!important;justify-content:center!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(4){flex:0 0 14%!important;max-width:14%!important;justify-content:center!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(5){flex:0 0 13%!important;max-width:13%!important;justify-content:center!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-1:last-child,
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:last-child{flex:0 0 15%!important;max-width:15%!important;justify-content:center!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .area-label{width:100%!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(1){background:linear-gradient(90deg,rgba(205,156,35,.22),#1b2223 36%)!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(2){background:linear-gradient(90deg,rgba(165,174,183,.16),#1b2223 36%)!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(3){background:linear-gradient(90deg,rgba(190,102,56,.18),#1b2223 36%)!important}

/* ---------- MY STORES only ---------- */
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-my-stores #my_stores{margin-top:0!important;border-radius:0!important;overflow:hidden!important;background:#182021!important;box-shadow:none!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-my-stores #my_stores .table-row{height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;padding:0!important;border-radius:0!important;background:#1b2223!important;overflow:hidden!important;box-shadow:none!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-my-stores #my_stores .table-row>.row{height:50px!important;min-height:50px!important;margin:0!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-my-stores #my_stores .table-row>.row>[class*="col-"]{height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;padding:0 12px!important;display:flex!important;align-items:center!important;gap:7px!important;overflow:hidden!important;flex-direction:row!important}}
body[data-template="cs27Reg"].cs27-route-my-stores .cs27-store-head{height:42px!important;grid-template-columns:24% 38% 38%!important;align-items:center!important;background:#202627!important;border-radius:0!important;box-shadow:none!important;color:#9ca8a9!important}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-my-stores #my_stores .table-row>.row>.col-lg-3{flex:0 0 24%!important;max-width:24%!important;justify-content:center!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-my-stores #my_stores .table-row>.row>.col-lg-4:nth-of-type(2){flex:0 0 38%!important;max-width:38%!important;justify-content:flex-start!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-my-stores #my_stores .table-row>.row>.col-lg-4:nth-of-type(3){flex:0 0 38%!important;max-width:38%!important;justify-content:center!important}}

/* ---------- ADMINS only ---------- */
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-admins .block_admins_select .table-adaptive{margin-top:0!important;border-radius:0!important;overflow:hidden!important;background:#182021!important;box-shadow:none!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-admins .block_admins_select .table-row{height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;padding:0!important;border-radius:0!important;background:#1b2223!important;overflow:hidden!important;box-shadow:none!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-admins .block_admins_select .table-row>.row{height:50px!important;min-height:50px!important;margin:0!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-admins .block_admins_select .table-row>.row>[class*="col-"]{height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;padding:0 12px!important;display:flex!important;align-items:center!important;gap:8px!important;overflow:hidden!important;flex-direction:row!important}}
body[data-template="cs27Reg"].cs27-route-admins .cs27-admin-head{height:42px!important;grid-template-columns:28% 34% 38%!important;align-items:center!important;background:#202627!important;border-radius:0!important;box-shadow:none!important;color:#9ca8a9!important}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-admins .block_admins_select .table-row>.row>.col-lg-3{flex:0 0 28%!important;max-width:28%!important;justify-content:flex-start!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-admins .block_admins_select .table-row>.row>.col-lg-4{flex:0 0 34%!important;max-width:34%!important;justify-content:flex-start!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-admins .block_admins_select .table-row>.row>.col-lg-5{flex:0 0 38%!important;max-width:38%!important;justify-content:flex-start!important}}

/* ---------- BANLIST only ---------- */
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-banlist #banlist{margin-top:0!important;border-radius:0!important;overflow:hidden!important;background:#182021!important;box-shadow:none!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-banlist #banlist .table-row{height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;padding:0!important;border-radius:0!important;background:#1b2223!important;overflow:hidden!important;box-shadow:none!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-banlist #banlist .table-row>.row{height:50px!important;min-height:50px!important;margin:0!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-banlist #banlist .table-row>.row>[class*="col-"]{height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;padding:0 12px!important;display:flex!important;align-items:center!important;gap:7px!important;overflow:hidden!important;flex-direction:row!important}}
body[data-template="cs27Reg"].cs27-route-banlist .cs27-ban-head{height:42px!important;grid-template-columns:25% 25% 25% 25%!important;align-items:center!important;background:#202627!important;border-radius:0!important;box-shadow:none!important;color:#9ca8a9!important}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-banlist #banlist .table-row>.row>.col-lg-3{flex:0 0 25%!important;max-width:25%!important}}

/* Keep description text compact on the four adapted pages only. */
body[data-template="cs27Reg"].cs27-route-stats #stats .with-description{flex-direction:row!important}@media(min-width:768px){
body[data-template="cs27Reg"].cs27-route-my-stores #my_stores .with-description,
body[data-template="cs27Reg"].cs27-route-admins .block_admins_select .with-description,
body[data-template="cs27Reg"].cs27-route-banlist #banlist .with-description{flex-direction:row!important}}
body[data-template="cs27Reg"].cs27-route-stats #stats .with-description p{margin:0!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}@media(min-width:768px){
body[data-template="cs27Reg"].cs27-route-my-stores #my_stores .with-description p,
body[data-template="cs27Reg"].cs27-route-admins .block_admins_select .with-description p,
body[data-template="cs27Reg"].cs27-route-banlist #banlist .with-description p{margin:0!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}}
body[data-template="cs27Reg"].cs27-route-stats #stats .with-description>span{display:none!important}@media(min-width:768px){
body[data-template="cs27Reg"].cs27-route-my-stores #my_stores .with-description>span,
body[data-template="cs27Reg"].cs27-route-admins .block_admins_select .with-description>span,
body[data-template="cs27Reg"].cs27-route-banlist #banlist .with-description>span{display:none!important}}

@media(max-width:767px){
 body[data-template="cs27Reg"].cs27-route-stats #stats .table-row{height:auto!important;max-height:none!important;min-height:50px!important}@media(min-width:768px){
 body[data-template="cs27Reg"].cs27-route-my-stores #my_stores .table-row,
 body[data-template="cs27Reg"].cs27-route-admins .block_admins_select .table-row,
 body[data-template="cs27Reg"].cs27-route-banlist #banlist .table-row{height:auto!important;max-height:none!important;min-height:50px!important}}
}

/* =========================================================
   cs27Reg 3.21.3 — точечные правки пользователя
   /muts НЕ изменяем: он остается эталоном.
   ========================================================= */

/* /banlist: чередование строк как у эталонной таблицы /muts */
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-banlist #banlist .table-row:nth-of-type(odd){background:#1b2223!important}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-banlist #banlist .table-row:nth-of-type(even){background:#1d2526!important}}

/* /stats: без внешнего скругления + чередование обычных строк */
body[data-template="cs27Reg"].cs27-route-stats #stats{border-radius:0!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .table-row:nth-of-type(odd){background:#1b2223!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .table-row:nth-of-type(even){background:#1d2526!important}
/* сохраняем отдельное выделение TOP-3 поверх zebra */
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(1){background:linear-gradient(90deg,rgba(205,156,35,.22),#1b2223 36%)!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(2){background:linear-gradient(90deg,rgba(165,174,183,.16),#1d2526 36%)!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(3){background:linear-gradient(90deg,rgba(190,102,56,.18),#1b2223 36%)!important}

/* /my_stores: рамка только вокруг требуемого блока */
body[data-template="cs27Reg"] .block_my_stores{border:1px solid #3b3e3f!important}

/* /messages: никаких внешних рамок у списка собеседников и правой части */
body[data-template="cs27Reg"] .cs27-messages-page :is(#companions,.block_message_right){border:0!important}


/* =========================================================
   CS27REG 3.21.4 — isolated final fixes: STATS + MESSAGES
   Do not add /muts, /banlist, /admins or /my_stores here.
   ========================================================= */

/* STATS: one authoritative layout */
body[data-template="cs27Reg"].cs27-route-stats #stats{
  border-radius:0!important;
  overflow:hidden!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row{
  height:50px!important;min-height:50px!important;max-height:50px!important;
  margin:0!important;border-radius:0!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-of-type(odd){background:#1b2223!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-of-type(even){background:#1d2526!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row{
  display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
  height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>[class*="col-"]{
  float:none!important;height:50px!important;min-height:50px!important;max-height:50px!important;
  display:flex!important;align-items:center!important;padding:0 10px!important;overflow:hidden!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(1){
  flex:0 0 11%!important;width:11%!important;max-width:11%!important;justify-content:center!important;gap:6px!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(2){
  flex:0 0 34%!important;width:34%!important;max-width:34%!important;justify-content:flex-start!important;gap:7px!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(3){
  flex:0 0 13%!important;width:13%!important;max-width:13%!important;justify-content:center!important;text-align:center!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(4){
  flex:0 0 14%!important;width:14%!important;max-width:14%!important;justify-content:center!important;text-align:center!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(5){
  flex:0 0 13%!important;width:13%!important;max-width:13%!important;justify-content:center!important;text-align:center!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-1,
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:last-child{
  flex:0 0 15%!important;width:15%!important;max-width:15%!important;justify-content:center!important;text-align:center!important;
}
body[data-template="cs27Reg"].cs27-route-stats .cs27-table-head.cs27-stats-head{
  grid-template-columns:11% 34% 13% 14% 13% 15%!important;padding:0!important;border-radius:0!important;
}
body[data-template="cs27Reg"].cs27-route-stats .cs27-table-head.cs27-stats-head>span{
  display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;padding:0 8px!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(2) p{
  display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;margin:0!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(1){background:linear-gradient(90deg,rgba(205,156,35,.22),#1b2223 36%)!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(2){background:linear-gradient(90deg,rgba(165,174,183,.16),#1d2526 36%)!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(3){background:linear-gradient(90deg,rgba(190,102,56,.18),#1b2223 36%)!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(-n+3)>.row>.col-lg-2:first-of-type>i{
  display:inline-flex!important;position:static!important;flex:0 0 24px!important;width:24px!important;height:24px!important;
  margin:0!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:0!important;font-size:17px!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(1)>.row>.col-lg-2:first-of-type>i{color:#ffd84d!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(2)>.row>.col-lg-2:first-of-type>i{color:#c7ced4!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(3)>.row>.col-lg-2:first-of-type>i{color:#d87a48!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(n+4)>.row>.col-lg-2:first-of-type>i{display:none!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .area-label{
  width:100%!important;height:50px!important;margin:0!important;padding:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}

/* MESSAGES: one final classic two-column presentation */
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_message{
  display:grid!important;grid-template-columns:280px minmax(0,1fr)!important;gap:10px!important;
  height:560px!important;min-height:560px!important;max-height:560px!important;
  margin:0 0 20px!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:hidden!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page :is(#companions,.block_message_right){
  border:0!important;outline:0!important;box-shadow:none!important;border-radius:0!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #companions{
  width:100%!important;height:560px!important;min-height:560px!important;max-height:560px!important;
  margin:0!important;padding:8px 10px!important;overflow-y:auto!important;overflow-x:hidden!important;background:#181e1f!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_companion{
  box-sizing:border-box!important;height:50px!important;min-height:50px!important;max-height:50px!important;
  margin:0!important;padding:5px 8px!important;border:0!important;border-radius:0!important;background:transparent!important;
  display:flex!important;align-items:center!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_companion:hover{background:#232a2b!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_message_right{
  width:100%!important;height:560px!important;min-height:560px!important;max-height:560px!important;
  margin:0!important;padding:0!important;background:#1c2223!important;overflow:hidden!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #place_for_messages,
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #chat,
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #chat>form{
  width:100%!important;height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #drop_zone{
  flex:1 1 auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:14px 18px 8px!important;
  overflow-y:auto!important;overflow-x:hidden!important;background:transparent!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages{
  display:block!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:transparent!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .chat_message.dialog_m{
  box-sizing:border-box!important;display:block!important;width:100%!important;height:auto!important;min-height:54px!important;
  margin:0!important;padding:8px 6px!important;border:0!important;background:transparent!important;float:none!important;clear:both!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .chat_message.dialog_m .message{
  display:block!important;width:100%!important;max-width:none!important;height:auto!important;min-height:38px!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .chat_message.dialog_m .with_code{
  display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;height:auto!important;min-height:38px!important;
  margin:0!important;padding:0!important;border:0!important;background:transparent!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .message_g_img{
  display:block!important;align-self:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;margin:0!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .back_img_chat{
  display:flex!important;width:38px!important;height:38px!important;padding:2px!important;align-items:center!important;justify-content:center!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .chat_img{
  display:block!important;width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;border-radius:50%!important;object-fit:cover!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .message_global{flex:1 1 auto!important;min-width:0!important;margin:0!important;padding:0!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .login_share_flex{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;width:100%!important;margin:0 0 2px!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .text_chat{
  display:block!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;
  color:#e5eaea!important;font-size:12px!important;line-height:1.45!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .dialog_m.cs27-message-own,
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .dialog_m.cs27-message-own .with_code{display:block!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .dialog_m.cs27-message-own .message_g_img{display:block!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .cs27-composer{
  box-sizing:border-box!important;flex:0 0 64px!important;width:100%!important;height:64px!important;min-height:64px!important;max-height:64px!important;
  margin:0!important;padding:8px 12px!important;border:0!important;border-radius:0!important;background:transparent!important;
  display:flex!important;align-items:center!important;gap:8px!important;
}
@media(max-width:767px){
 body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_message{display:block!important;height:auto!important;min-height:0!important;max-height:none!important}
 body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #companions{height:auto!important;min-height:0!important;max-height:230px!important;margin-bottom:10px!important}
 body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_message_right{height:520px!important;min-height:520px!important;max-height:520px!important}
}


/* ==========================================================================
   CS27REG 3.21.5 — targeted final fixes
   Only: /stats, /messages, /banlist, /muts.
   ========================================================================== */

/* /messages — restore only the outer frame; inner panes stay borderless. */
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_message{
  border:1px solid #394344!important;
  border-radius:0!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #companions,
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_message_right{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #companions{
  border-right:1px solid #394344!important;
}

/* /stats — inline JS zebra removed from stats/index.tpl; CSS owns row colors. */
body[data-template="cs27Reg"].cs27-route-stats #stats{
  border-radius:0!important;
  overflow:hidden!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row{
  background:#1f2020!important;
  border-radius:0!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-of-type(even){
  background:#181919!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(1){
  background:linear-gradient(90deg,rgba(205,156,35,.22),#1f2020 36%)!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(2){
  background:linear-gradient(90deg,rgba(165,174,183,.16),#181919 36%)!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(3){
  background:linear-gradient(90deg,rgba(190,102,56,.18),#1f2020 36%)!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(-n+3)>.row>.col-lg-2:first-of-type>i{
  display:inline-flex!important;
  position:static!important;
  width:24px!important;height:24px!important;flex:0 0 24px!important;
  margin:0 6px 0 0!important;
  align-items:center!important;justify-content:center!important;
  background:transparent!important;border:0!important;border-radius:0!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(1)>.row>.col-lg-2:first-of-type>i{color:#ffd84d!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(2)>.row>.col-lg-2:first-of-type>i{color:#c7ced4!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(3)>.row>.col-lg-2:first-of-type>i{color:#d87a48!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-child(n+4)>.row>.col-lg-2:first-of-type>i{display:none!important}

/* /banlist — header: №/Игрок left; all other columns centered. */
body[data-template="cs27Reg"].cs27-route-banlist .cs27-ban-head>span{
  display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;
}
body[data-template="cs27Reg"].cs27-route-banlist .cs27-ban-head>span:first-child{
  justify-content:flex-start!important;text-align:left!important;
}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-banlist #banlist .cs27-ban-row>.row>.col-lg-3{
  display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;
}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-banlist #banlist .cs27-ban-row>.row>.col-lg-3:first-of-type{
  justify-content:flex-start!important;text-align:left!important;
}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-banlist #banlist .cs27-ban-row>.row>.col-lg-3:not(:first-of-type)>p{
  width:100%!important;text-align:center!important;
}}

/* /muts — do not alter the table styling; only center row values except Player. */
@media(min-width:768px){body[data-template="cs27Reg"] #muts .cs27-mute-row>.row>[class*="col-"]:not(:first-of-type){
  display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;
}}
@media(min-width:768px){body[data-template="cs27Reg"] #muts .cs27-mute-row>.row>[class*="col-"]:not(:first-of-type)>p{
  width:100%!important;text-align:center!important;
}}

/* ==========================================================================
   CS27REG 3.21.6 — targeted messages/stats + ban/muts bottom border
   ========================================================================== */

/* /messages — no gap between companions and conversation pane; restore tidy message geometry. */
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_message{
  grid-template-columns:280px minmax(0,1fr)!important;
  gap:0!important;
  column-gap:0!important;
  border:1px solid #394344!important;
  background:#1a2021!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #companions{
  margin:0!important;
  border:0!important;
  border-right:1px solid #394344!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_message_right{
  margin:0!important;
  border:0!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .chat_message.dialog_m{
  display:block!important;
  width:100%!important;
  min-height:54px!important;
  margin:0!important;
  padding:7px 6px!important;
  border:0!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .chat_message.dialog_m .message,
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .chat_message.dialog_m .with_code{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  min-height:40px!important;
  gap:9px!important;
  margin:0!important;
  padding:0!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .message_g_img{
  display:block!important;
  flex:0 0 40px!important;
  width:40px!important;
  height:40px!important;
  margin:0!important;
  align-self:center!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .message_global{
  flex:1 1 auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .login_share_flex{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  width:100%!important;
  min-height:18px!important;
  margin:0 0 2px!important;
}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #messages .text_chat{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  line-height:1.4!important;
}

/* /stats — compact flat rows, strong zebra, trophy only for places 1–3. */
body[data-template="cs27Reg"].cs27-route-stats #stats{
  border-radius:0!important;
  overflow:hidden!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row{
  height:50px!important;
  min-height:50px!important;
  max-height:50px!important;
  margin:0!important;
  border-radius:0!important;
  background:#1b2223!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-of-type(even){background:#202829!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row{
  display:grid!important;
  grid-template-columns:11% 34% 13% 14% 13% 15%!important;
  align-items:center!important;
  width:100%!important;
  height:50px!important;
  min-height:50px!important;
  max-height:50px!important;
  margin:0!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>[class*="col-"]{
  width:auto!important;
  max-width:none!important;
  height:50px!important;
  min-height:50px!important;
  max-height:50px!important;
  margin:0!important;
  padding:0 8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  float:none!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:first-of-type{
  justify-content:center!important;
  gap:6px!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(2){justify-content:flex-start!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(2) p{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  width:100%!important;
  margin:0!important;
  text-align:left!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:first-of-type>i{
  display:none!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-of-type(-n+3)>.row>.col-lg-2:first-of-type>i{
  display:inline-flex!important;
  position:static!important;
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
  margin:0!important;
  align-items:center!important;
  justify-content:center!important;
  background:transparent!important;
  border:0!important;
  font-size:16px!important;
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-of-type(1)>.row>.col-lg-2:first-of-type>i{color:#ffd84d!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-of-type(2)>.row>.col-lg-2:first-of-type>i{color:#c7ced4!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-of-type(3)>.row>.col-lg-2:first-of-type>i{color:#d87a48!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-of-type(1){background:linear-gradient(90deg,rgba(205,156,35,.16),#1b2223 28%)!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-of-type(2){background:linear-gradient(90deg,rgba(165,174,183,.12),#202829 28%)!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row:nth-of-type(3){background:linear-gradient(90deg,rgba(190,102,56,.14),#1b2223 28%)!important}
body[data-template="cs27Reg"].cs27-route-stats .cs27-table-head.cs27-stats-head{
  display:grid!important;
  grid-template-columns:11% 34% 13% 14% 13% 15%!important;
  border-radius:0!important;
}
body[data-template="cs27Reg"].cs27-route-stats .cs27-table-head.cs27-stats-head>span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}

/* /banlist and /muts — restore a visible bottom edge to the table. */
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-banlist #banlist,
body[data-template="cs27Reg"] #muts{
  border-bottom:1px solid #323c3d!important;
}}
@media(min-width:768px){body[data-template="cs27Reg"].cs27-route-banlist #banlist .table-row:last-child,
body[data-template="cs27Reg"] #muts .table-row:last-child{
  border-bottom:1px solid #323c3d!important;
}}

/* ==========================================================================\n   CS27REG 3.21.6.1 — stats geometry hotfix + messages polish\n   ========================================================================== */
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page #companions{background:#202223!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_message{border-radius:14px!important;overflow:hidden!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_message_right{padding-left:0!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_companion.cs27-companion-active{background:#2a3031!important}
body[data-template="cs27Reg"].cs27-route-messages .cs27-messages-page .block_companion.cs27-companion-active .login_companion{color:#fff!important}

/* Restore the native flex row used by GameCMS stats. Do not use grid here. */
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row{
 display:flex!important;flex-wrap:nowrap!important;align-items:center!important;width:100%!important;height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>[class*="col-"]{
 height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;padding:0 8px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;text-align:center!important;float:none!important;overflow:visible!important
}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(1){flex:0 0 11%!important;max-width:11%!important;gap:5px!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(2){flex:0 0 34%!important;max-width:34%!important;justify-content:flex-start!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(3){flex:0 0 13%!important;max-width:13%!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(4){flex:0 0 14%!important;max-width:14%!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(5){flex:0 0 13%!important;max-width:13%!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-1{flex:0 0 15%!important;max-width:15%!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>[class*="col-"]>p{margin:0!important;line-height:1.15!important;white-space:nowrap!important;overflow:visible!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>[class*="col-"]>span{display:none!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .cs27-stats-row>.row>.col-lg-2:nth-of-type(2)>p{display:flex!important;align-items:center!important;gap:7px!important;width:100%!important;text-align:left!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .area-label{width:100%!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
body[data-template="cs27Reg"].cs27-route-stats #stats .area-label .label{max-width:100%!important;white-space:nowrap!important}
