/* Discuz X5 utility centers: medal, magic and group index only. */
body.pg_medal,
body.pg_magic,
body.pg_index {
	--pjs-center-accent: #2f9691;
	--pjs-center-accent-dark: #247a76;
	--pjs-center-soft: #eef7f6;
	--pjs-center-text: #26383d;
	--pjs-center-muted: #718086;
	--pjs-center-line: #e3e9eb;
	--pjs-center-surface: rgba(255, 255, 255, .97);
}

body.pg_medal #pt,
body.pg_magic #pt,
body.pg_index #pt {
	box-sizing: border-box;
	margin-top: 12px;
	padding: 0 16px;
	border: 1px solid rgba(222, 230, 232, .92);
	border-radius: 9px;
	background: rgba(255, 255, 255, .9);
	box-shadow: 0 5px 16px rgba(36, 55, 62, .045);
}

/* Medal and magic share the same original Discuz structure. */
body.pg_medal #ct.ct2_a,
body.pg_magic #ct.ct2_a {
	display: grid;
	grid-template-columns: 202px minmax(0, 1fr);
	grid-template-areas: "sidebar main";
	gap: 18px;
	align-items: start;
	box-sizing: border-box;
	margin-top: 12px;
	padding: 0;
	border: 0;
	background: transparent;
}

body.pg_medal #ct.ct2_a > .mn,
body.pg_magic #ct.ct2_a > .mn {
	grid-area: main;
	float: none !important;
	box-sizing: border-box;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

body.pg_medal #ct.ct2_a > .appl,
body.pg_magic #ct.ct2_a > .appl {
	grid-area: sidebar;
	float: none !important;
	box-sizing: border-box;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

body.pg_medal #ct.ct2_a > .mn > .bm.bw0,
body.pg_magic #ct.ct2_a > .mn > .bm.bw0,
body.pg_medal #ct.ct2_a > .appl .tbn,
body.pg_magic #ct.ct2_a > .appl .tbn {
	box-sizing: border-box;
	border: 1px solid var(--pjs-center-line) !important;
	border-radius: 10px;
	background: var(--pjs-center-surface) !important;
	box-shadow: 0 9px 26px rgba(34, 50, 57, .07) !important;
}

body.pg_medal #ct.ct2_a > .mn > .bm.bw0,
body.pg_magic #ct.ct2_a > .mn > .bm.bw0 {
	min-height: 470px;
	margin: 0;
	padding: 22px 24px 28px;
	overflow: visible;
}

body.pg_medal #ct.ct2_a > .mn h1.mt,
body.pg_magic #ct.ct2_a > .mn h1.mt {
	position: relative;
	box-sizing: border-box;
	min-height: 42px;
	margin: 0 0 18px !important;
	padding: 0 0 13px 13px;
	border-bottom: 1px solid var(--pjs-center-line);
	color: var(--pjs-center-text);
	font-size: 22px;
	font-weight: 650;
	line-height: 28px;
}

body.pg_medal #ct.ct2_a > .mn h1.mt::before,
body.pg_magic #ct.ct2_a > .mn h1.mt::before {
	position: absolute;
	left: 0;
	top: 4px;
	width: 3px;
	height: 20px;
	border-radius: 2px;
	background: var(--pjs-center-accent);
	content: "";
}

body.pg_medal #ct.ct2_a > .appl .tbn,
body.pg_magic #ct.ct2_a > .appl .tbn {
	margin: 0;
	padding: 0 0 10px;
	overflow: hidden;
}

body.pg_medal #ct.ct2_a > .appl .tbn > h2,
body.pg_magic #ct.ct2_a > .appl .tbn > h2 {
	height: 55px;
	margin: 0 16px 7px;
	padding: 0;
	border-bottom: 1px solid var(--pjs-center-line) !important;
	color: var(--pjs-center-text);
	font-size: 18px;
	font-weight: 650;
	line-height: 55px;
}

body.pg_medal #ct.ct2_a > .appl .tbn ul,
body.pg_magic #ct.ct2_a > .appl .tbn ul {
	margin: 0;
	padding: 0 10px;
	list-style: none;
}

body.pg_medal #ct.ct2_a > .appl .tbn li,
body.pg_magic #ct.ct2_a > .appl .tbn li {
	box-sizing: border-box;
	min-height: 42px;
	margin: 1px 0;
	padding: 0 !important;
	border: 0 !important;
	border-left: 3px solid transparent !important;
	background: transparent;
	line-height: 42px;
}

body.pg_medal #ct.ct2_a > .appl .tbn li a,
body.pg_magic #ct.ct2_a > .appl .tbn li a {
	display: block;
	box-sizing: border-box;
	min-height: 42px;
	padding: 0 12px;
	color: #53656b;
	font-size: 14px;
	line-height: 42px;
	text-decoration: none;
}

body.pg_medal #ct.ct2_a > .appl .tbn li:hover,
body.pg_magic #ct.ct2_a > .appl .tbn li:hover {
	background: #f7f9f9;
}

body.pg_medal #ct.ct2_a > .appl .tbn li.a,
body.pg_magic #ct.ct2_a > .appl .tbn li.a {
	border-left-color: var(--pjs-center-accent) !important;
	background: var(--pjs-center-soft);
}

body.pg_medal #ct.ct2_a > .appl .tbn li.a a,
body.pg_magic #ct.ct2_a > .appl .tbn li.a a {
	color: var(--pjs-center-accent-dark);
	font-weight: 600;
}

body.pg_medal #ct.ct2_a .tb,
body.pg_magic #ct.ct2_a .tb {
	height: 42px;
	margin: -6px 0 14px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--pjs-center-line);
}

body.pg_medal #ct.ct2_a .tb li,
body.pg_magic #ct.ct2_a .tb li {
	float: left;
	height: 42px;
	margin: 0 22px 0 0;
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	line-height: 42px;
}

body.pg_medal #ct.ct2_a .tb li a,
body.pg_magic #ct.ct2_a .tb li a {
	display: block;
	height: 41px;
	padding: 0 2px;
	border: 0 !important;
	background: transparent !important;
	color: #66777c;
	font-size: 14px;
	line-height: 41px;
}

body.pg_medal #ct.ct2_a .tb li.a a,
body.pg_magic #ct.ct2_a .tb li.a a {
	border-bottom: 2px solid var(--pjs-center-accent) !important;
	color: var(--pjs-center-accent-dark);
	font-weight: 600;
}

body.pg_medal #ct.ct2_a .tbmu,
body.pg_magic #ct.ct2_a .tbmu {
	box-sizing: border-box;
	min-height: 42px;
	margin: 0 0 18px;
	padding: 11px 14px;
	border: 1px solid #dfe9e8 !important;
	border-radius: 8px;
	background: #f5f9f8 !important;
	color: #596b70;
	font-size: 13px;
	line-height: 20px;
}

body.pg_medal #ct.ct2_a h3.tbmu,
body.pg_magic #ct.ct2_a h3.tbmu {
	margin-top: 28px;
	margin-bottom: 0;
	color: var(--pjs-center-text);
	font-size: 16px;
	font-weight: 650;
}

body.pg_medal #ct.ct2_a .mgcl,
body.pg_magic #ct.ct2_a .mgcl {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: 14px;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 0;
	list-style: none;
}

body.pg_medal #ct.ct2_a .mgcl > li,
body.pg_magic #ct.ct2_a .mgcl > li {
	float: none !important;
	box-sizing: border-box;
	width: auto !important;
	min-width: 0;
	min-height: 154px;
	margin: 0 !important;
	padding: 13px 8px 11px;
	border: 1px solid var(--pjs-center-line);
	border-radius: 9px;
	background: #fff;
	color: #58696f;
	text-align: center;
	transition: border-color .16s ease, box-shadow .16s ease;
}

body.pg_medal #ct.ct2_a .mgcl > li:hover,
body.pg_magic #ct.ct2_a .mgcl > li:hover {
	border-color: rgba(47, 150, 145, .52);
	box-shadow: 0 7px 18px rgba(37, 68, 72, .09);
}

body.pg_medal #ct.ct2_a .mgcl .mg_img,
body.pg_magic #ct.ct2_a .mgcl .mg_img {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 78px;
	height: 72px;
	margin: 0 auto 9px;
	padding: 7px;
	border: 1px solid #e8edef;
	border-radius: 8px;
	background: #f8faf9;
	box-shadow: none !important;
}

body.pg_medal #ct.ct2_a .mgcl .mg_img img,
body.pg_magic #ct.ct2_a .mgcl .mg_img img {
	display: block;
	max-width: 58px !important;
	max-height: 56px !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
}

body.pg_medal #ct.ct2_a .mgcl > li p,
body.pg_magic #ct.ct2_a .mgcl > li p {
	min-height: 20px;
	margin: 2px 0;
	line-height: 20px;
}

body.pg_medal #ct.ct2_a .mgcl > li p.xw1,
body.pg_medal #ct.ct2_a .mgcl > li p strong,
body.pg_magic #ct.ct2_a .mgcl > li p.xw1,
body.pg_magic #ct.ct2_a .mgcl > li p strong {
	color: var(--pjs-center-text);
	font-size: 13px;
	font-weight: 600;
}

body.pg_medal #ct.ct2_a .mgcl > li a.xi2,
body.pg_magic #ct.ct2_a .mgcl > li a.xi2 {
	color: var(--pjs-center-accent-dark) !important;
	text-decoration: none;
}

body.pg_medal #ct.ct2_a .mgcl > li a.xi2:hover,
body.pg_magic #ct.ct2_a .mgcl > li a.xi2:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.pg_medal #ct.ct2_a .el,
body.pg_magic #ct.ct2_a .el {
	margin: 0 !important;
	padding: 4px 0 0 !important;
	list-style: none;
}

body.pg_medal #ct.ct2_a .el > li,
body.pg_magic #ct.ct2_a .el > li {
	min-height: 42px;
	padding: 10px 4px;
	border-bottom: 1px solid #edf1f2;
	color: #68787d;
	line-height: 22px;
}

body.pg_medal #ct.ct2_a .el > li:last-child,
body.pg_magic #ct.ct2_a .el > li:last-child {
	border-bottom: 0;
}

body.pg_medal #ct.ct2_a .el .t,
body.pg_magic #ct.ct2_a .el .t {
	margin-right: 8px;
}

body.pg_medal #ct.ct2_a .tip,
body.pg_magic #ct.ct2_a .tip {
	z-index: 220 !important;
}

/* Group index only: this stylesheet is loaded by group/group_index.php. */
body.pg_index #ct.ct2 {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 278px;
	gap: 18px;
	align-items: start;
	box-sizing: border-box;
	margin-top: 12px;
	padding: 0;
	border: 0;
	background: transparent;
}

body.pg_index #ct.ct2 > .mn,
body.pg_index #ct.ct2 > .sd {
	float: none !important;
	box-sizing: border-box;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

body.pg_index #ct.ct2 .bm {
	box-sizing: border-box;
	margin: 0 0 16px;
	border: 1px solid var(--pjs-center-line) !important;
	border-radius: 10px;
	background: var(--pjs-center-surface) !important;
	box-shadow: 0 9px 26px rgba(34, 50, 57, .07) !important;
	overflow: hidden;
}

body.pg_index #ct.ct2 .bm_h {
	box-sizing: border-box;
	min-height: 52px;
	padding: 0 18px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--pjs-center-line) !important;
	background: #fff !important;
	line-height: 52px;
}

body.pg_index #ct.ct2 .bm_h h2 {
	margin: 0;
	color: var(--pjs-center-text);
	font-size: 18px;
	font-weight: 650;
	line-height: 52px;
}

body.pg_index #ct.ct2 .bm_h .y {
	font-size: 13px;
	font-weight: 500;
	line-height: 52px;
}

body.pg_index #ct.ct2 .bm_h a {
	color: var(--pjs-center-accent-dark);
	text-decoration: none;
}

body.pg_index #ct.ct2 .bm_c {
	box-sizing: border-box;
	padding: 18px;
	background: transparent !important;
}

body.pg_index #ct.ct2 > .mn > .bm.bmw {
	min-height: 54px;
}

body.pg_index #ct.ct2 > .mn > .bm.bmw .bm_h {
	border-bottom: 0 !important;
}

body.pg_index #ct.ct2 #g_commend .bm_c {
	padding: 18px 20px;
}

body.pg_index #ct.ct2 #g_commend .xld {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 14px;
	align-items: center;
	margin: 0;
}

body.pg_index #ct.ct2 #g_commend .xld > dd.m {
	grid-column: 1;
	grid-row: 1 / span 2;
	float: none;
	width: 62px;
	margin: 0;
}

body.pg_index #ct.ct2 #g_commend .xld > dd.m img {
	display: block;
	box-sizing: border-box;
	width: 58px !important;
	height: 58px !important;
	padding: 3px;
	border: 1px solid var(--pjs-center-line);
	border-radius: 9px;
	background: #fff;
	object-fit: cover;
}

body.pg_index #ct.ct2 #g_commend .xld > dt {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 24px;
}

body.pg_index #ct.ct2 #g_commend .xld > dd:not(.m) {
	grid-column: 2;
	grid-row: 2;
	margin: 0;
	color: var(--pjs-center-muted);
	line-height: 22px;
}

body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c {
	padding: 0;
}

body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl {
	box-sizing: border-box;
	margin: 0 !important;
	padding: 15px 18px !important;
	border: 0 !important;
	border-bottom: 1px solid #edf1f2 !important;
	background: transparent;
	transition: background-color .16s ease;
}

body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl:last-child {
	border-bottom: 0 !important;
}

body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl:hover {
	background: #fafcfc;
}

body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dt {
	display: flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 25px;
	padding: 0 !important;
	line-height: 25px;
}

body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dt > strong {
	order: 1;
}

body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dt > strong a {
	color: var(--pjs-center-text);
	font-size: 15px;
	font-weight: 650;
	text-decoration: none;
}

body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dt > .xg1 {
	order: 2;
	color: #9aa5a9;
}

body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dt > .y {
	order: 3;
	float: none;
	margin-left: auto;
	color: var(--pjs-center-muted);
	font-size: 13px;
	line-height: 25px;
}

body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dt > .y a {
	margin-left: 8px;
	color: #697a80;
	text-decoration: none;
}

body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dt > .y a:hover,
body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dd a:hover {
	color: var(--pjs-center-accent-dark);
}

body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dd {
	min-height: 22px;
	margin: 7px 0 0;
	color: var(--pjs-center-muted);
	font-size: 13px;
	line-height: 22px;
}

body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dd a {
	margin-right: 10px;
	color: #586b71;
	text-decoration: none;
}

body.pg_index #ct.ct2 > .sd .bm_c {
	padding: 16px;
}

body.pg_index #ct.ct2 #g_guide {
	margin: 0 !important;
	padding: 0;
	list-style: none;
}

body.pg_index #ct.ct2 #g_guide li {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	min-height: 52px;
	padding: 7px 0;
	border-bottom: 1px solid #edf1f2;
}

body.pg_index #ct.ct2 #g_guide li:last-child {
	border-bottom: 0;
}

body.pg_index #ct.ct2 #g_guide .group_createico {
	float: none;
	margin: 0;
}

body.pg_index #ct.ct2 #g_guide label {
	display: block;
	min-width: 0;
}

body.pg_index #ct.ct2 #g_guide label strong,
body.pg_index #ct.ct2 #g_guide label span {
	display: block;
	line-height: 20px;
}

body.pg_index #ct.ct2 #g_guide label strong {
	color: var(--pjs-center-text) !important;
	font-size: 14px;
	font-weight: 600;
}

body.pg_index #ct.ct2 #g_guide label span {
	color: var(--pjs-center-muted);
	font-size: 12px;
}

body.pg_index #ct.ct2 #create_group_btn {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 40px;
	margin: 14px 0 0;
	padding: 0;
	border: 1px solid var(--pjs-center-accent-dark);
	border-radius: 8px;
	background: var(--pjs-center-accent);
	box-shadow: none;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 38px;
	text-align: center;
	text-decoration: none;
}

body.pg_index #ct.ct2 #create_group_btn:hover {
	background: var(--pjs-center-accent-dark);
}

body.pg_index #ct.ct2 #g_top .bm_c {
	padding-top: 10px;
	padding-bottom: 10px;
}

body.pg_index #ct.ct2 #g_top ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.pg_index #ct.ct2 #g_top ol li {
	display: flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 34px;
	padding: 6px 0 6px 24px;
	border-bottom: 1px solid #edf1f2;
	line-height: 22px;
}

body.pg_index #ct.ct2 #g_top ol li:last-child {
	border-bottom: 0;
}

body.pg_index #ct.ct2 #g_top ol li > a {
	order: 1;
	flex: 1 1 auto;
	display: block;
	min-width: 0;
	overflow: hidden;
	color: #52656b;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.pg_index #ct.ct2 #g_top ol li > a:hover {
	color: var(--pjs-center-accent-dark);
}

body.pg_index #ct.ct2 #g_top ol li .y {
	order: 2;
	float: none;
	flex: 0 0 auto;
	margin-left: auto;
	color: #8b989d !important;
}


/* Coordinated anime UI and verified medal/magic bug fixes. */
body.pg_medal,
body.pg_magic,
body.pg_index {
	--pjs-center-accent: #58b8d8;
	--pjs-center-accent-dark: #2c87a8;
	--pjs-center-soft: #edf8fc;
	--pjs-center-sakura: #d98fa3;
	--pjs-center-sakura-soft: #fcf1f4;
	--pjs-center-text: #344554;
	--pjs-center-muted: #7d8e98;
	--pjs-center-line: #d8e7ed;
	--pjs-center-surface: rgba(255,255,255,.93);
}
body.pg_medal #pt,
body.pg_magic #pt,
body.pg_index #pt {
	border-color: rgba(255,255,255,.82);
	background: rgba(255,255,255,.76);
	box-shadow: 0 8px 22px rgba(38,64,78,.08);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
body.pg_medal #ct.ct2_a > .mn > .bm.bw0,
body.pg_magic #ct.ct2_a > .mn > .bm.bw0,
body.pg_medal #ct.ct2_a > .appl .tbn,
body.pg_magic #ct.ct2_a > .appl .tbn {
	position: relative;
	border-color: rgba(216,231,237,.94) !important;
	border-radius: 12px;
	background: var(--pjs-center-surface) !important;
	box-shadow: 0 15px 36px rgba(38,64,78,.12), inset 0 1px 0 rgba(255,255,255,.96) !important;
	-webkit-backdrop-filter: blur(15px);
	backdrop-filter: blur(15px);
}
body.pg_medal #ct.ct2_a > .mn > .bm.bw0::before,
body.pg_magic #ct.ct2_a > .mn > .bm.bw0::before {
	position: absolute; left: 0; right: 0; top: 0; height: 4px;
	background: var(--pjs-center-accent); content: "";
}
body.pg_medal #ct.ct2_a > .mn > .bm.bw0::after,
body.pg_magic #ct.ct2_a > .mn > .bm.bw0::after {
	position: absolute; right: 0; top: 0; width: 126px; height: 4px;
	background: var(--pjs-center-sakura); content: "";
}
body.pg_medal #ct.ct2_a > .mn h1.mt,
body.pg_magic #ct.ct2_a > .mn h1.mt {
	display: block !important;
	min-height: 50px;
	margin: 0 0 17px !important;
	padding: 10px 42px 10px 16px;
	border: 1px solid #cce5ee;
	border-left: 4px solid var(--pjs-center-accent);
	border-radius: 8px;
	background: var(--pjs-center-soft);
	color: var(--pjs-center-text);
	font-size: 22px;
	font-weight: 700;
	line-height: 28px;
}
body.pg_medal #ct.ct2_a > .mn h1.mt::before,
body.pg_magic #ct.ct2_a > .mn h1.mt::before { display: none; }
body.pg_medal #ct.ct2_a > .mn h1.mt::after,
body.pg_magic #ct.ct2_a > .mn h1.mt::after {
	position: absolute; right: 15px; top: 12px;
	color: var(--pjs-center-sakura); content: "✦"; font-size: 13px;
}
body.pg_medal #ct.ct2_a > .appl .tbn::before,
body.pg_magic #ct.ct2_a > .appl .tbn::before {
	position: absolute; left: 0; right: 0; top: 0; height: 4px;
	background: var(--pjs-center-sakura); content: "";
}
body.pg_medal #ct.ct2_a > .appl .tbn > h2,
body.pg_magic #ct.ct2_a > .appl .tbn > h2 {
	box-sizing: border-box;
	height: 58px;
	margin: 0 0 8px;
	padding: 0 17px;
	border-bottom: 1px solid #efdce2 !important;
	background: var(--pjs-center-sakura-soft);
	color: var(--pjs-center-text);
	font-weight: 700;
	line-height: 58px;
}
body.pg_medal #ct.ct2_a > .appl .tbn > h2::after,
body.pg_magic #ct.ct2_a > .appl .tbn > h2::after {
	margin-left: 7px; color: var(--pjs-center-sakura); content: "✦"; font-size: 10px; vertical-align: 3px;
}
body.pg_medal #ct.ct2_a > .appl .tbn ul,
body.pg_magic #ct.ct2_a > .appl .tbn ul { padding: 0 9px; }
body.pg_medal #ct.ct2_a > .appl .tbn li,
body.pg_magic #ct.ct2_a > .appl .tbn li {
	position: relative;
	margin: 2px 0;
	border-left: 4px solid transparent !important;
	border-radius: 7px;
}
body.pg_medal #ct.ct2_a > .appl .tbn li a,
body.pg_magic #ct.ct2_a > .appl .tbn li a { padding-right: 26px; }
body.pg_medal #ct.ct2_a > .appl .tbn li.a,
body.pg_magic #ct.ct2_a > .appl .tbn li.a {
	border-left-color: var(--pjs-center-accent) !important;
	background: #e7f5fa;
}
body.pg_medal #ct.ct2_a > .appl .tbn li.a::after,
body.pg_magic #ct.ct2_a > .appl .tbn li.a::after {
	position: absolute; right: 11px; top: 18px; width: 6px; height: 6px;
	background: var(--pjs-center-sakura); content: ""; transform: rotate(45deg);
}
body.pg_medal #ct.ct2_a .tb li.a a,
body.pg_magic #ct.ct2_a .tb li.a a {
	border-bottom: 3px solid var(--pjs-center-accent) !important;
	color: var(--pjs-center-accent-dark);
}
body.pg_medal #ct.ct2_a .tbmu,
body.pg_magic #ct.ct2_a .tbmu {
	border-color: #cfe5ed !important;
	border-left: 4px solid var(--pjs-center-accent) !important;
	background: var(--pjs-center-soft) !important;
}
body.pg_medal #ct.ct2_a h3.tbmu,
body.pg_magic #ct.ct2_a h3.tbmu {
	border-color: #efdce2 !important;
	border-left-color: var(--pjs-center-sakura) !important;
	background: var(--pjs-center-sakura-soft) !important;
	color: var(--pjs-center-text);
	font-weight: 700;
}
/* Keep cards static: Discuz showMenu calculates medal tooltip coordinates from the original offset chain. */
body.pg_medal #ct.ct2_a .mgcl > li,
body.pg_magic #ct.ct2_a .mgcl > li {
	position: static !important;
	min-height: 164px;
	padding-top: 15px;
	border-color: var(--pjs-center-line);
	border-top: 3px solid var(--pjs-center-accent);
	border-radius: 11px;
	background: rgba(255,255,255,.84);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.96);
	overflow: visible !important;
}
body.pg_medal #ct.ct2_a .mgcl > li::before,
body.pg_magic #ct.ct2_a .mgcl > li::before,
body.pg_medal #ct.ct2_a .mgcl > li::after,
body.pg_magic #ct.ct2_a .mgcl > li::after { display: none !important; }
body.pg_medal #ct.ct2_a .mgcl > li:hover,
body.pg_magic #ct.ct2_a .mgcl > li:hover {
	border-color: rgba(217,143,163,.55);
	border-top-color: var(--pjs-center-sakura);
	box-shadow: 0 9px 22px rgba(45,78,94,.12);
}
body.pg_medal #ct.ct2_a .mgcl .mg_img,
body.pg_magic #ct.ct2_a .mgcl .mg_img {
	position: static !important;
	width: 82px;
	height: 76px;
	border-color: #cfe5ed;
	border-radius: 12px;
	background: var(--pjs-center-soft);
}
body.pg_medal #ct.ct2_a .mgcl .mg_img::after,
body.pg_magic #ct.ct2_a .mgcl .mg_img::after { display: none !important; }
body.pg_medal #ct.ct2_a .mgcl .mg_img img,
body.pg_magic #ct.ct2_a .mgcl .mg_img img { max-width: 60px !important; max-height: 58px !important; }
body.pg_medal #ct.ct2_a .mgcl > li a.xi2,
body.pg_magic #ct.ct2_a .mgcl > li a.xi2 { color: var(--pjs-center-accent-dark) !important; }
body.pg_medal #ct.ct2_a .tip,
body.pg_magic #ct.ct2_a .tip {
	z-index: 260 !important;
	max-width: 320px;
	box-sizing: border-box;
}
/* Stable, compact medal history rows with avatar anchored inside each row. */
body.pg_medal #ct.ct2_a .el,
body.pg_magic #ct.ct2_a .el { padding-top: 6px !important; }
body.pg_medal #ct.ct2_a .el > li,
body.pg_magic #ct.ct2_a .el > li {
	position: relative;
	box-sizing: border-box;
	height: auto !important;
	min-height: 52px !important;
	margin: 0 !important;
	padding: 10px 12px 10px 50px !important;
	border-bottom: 1px solid #e8eff2;
	color: #60747f;
	font-size: 14px;
	line-height: 30px;
	overflow: visible;
}
body.pg_medal #ct.ct2_a .el > li > a.t,
body.pg_magic #ct.ct2_a .el > li > a.t {
	position: absolute !important;
	left: 10px !important;
	top: 50% !important;
	display: block !important;
	width: 30px !important;
	height: 30px !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: translateY(-50%);
}
body.pg_medal #ct.ct2_a .el > li > a.t img,
body.pg_magic #ct.ct2_a .el > li > a.t img {
	display: block !important;
	width: 30px !important;
	height: 30px !important;
	margin: 0 !important;
	border: 1px solid #d8e7ed;
	border-radius: 50%;
	background: #fff;
	object-fit: cover;
}
/* Group index: use wide screens, keep one coordinated palette, and distribute content cleanly. */
body.pg_index #ct.ct2 .bm {
	position: relative;
	border-color: rgba(216,231,237,.94) !important;
	border-radius: 12px;
	background: var(--pjs-center-surface) !important;
	box-shadow: 0 15px 36px rgba(38,64,78,.12), inset 0 1px 0 rgba(255,255,255,.96) !important;
	-webkit-backdrop-filter: blur(15px);
	backdrop-filter: blur(15px);
}
body.pg_index #ct.ct2 .bm::before {
	position: absolute; left: 0; right: 0; top: 0; height: 4px;
	background: var(--pjs-center-accent); content: ""; z-index: 2;
}
body.pg_index #ct.ct2 .bm::after {
	position: absolute; right: 0; top: 0; width: 96px; height: 4px;
	background: var(--pjs-center-sakura); content: ""; z-index: 3;
}
body.pg_index #ct.ct2 .bm_h {
	min-height: 54px;
	border-bottom-color: #dce9ee !important;
	background: var(--pjs-center-soft) !important;
	line-height: 54px;
}
body.pg_index #ct.ct2 .bm_h h2 {
	color: var(--pjs-center-text);
	font-weight: 700;
	line-height: 54px;
}
body.pg_index #ct.ct2 .bm_h h2::after {
	margin-left: 7px; color: var(--pjs-center-sakura); content: "✦"; font-size: 10px; vertical-align: 3px;
}
body.pg_index #ct.ct2 .bm_h .y { line-height: 54px; }
body.pg_index #ct.ct2 .bm_h a { color: var(--pjs-center-accent-dark); }
body.pg_index #ct.ct2 #g_commend .bm_c { padding: 20px 22px; }
body.pg_index #ct.ct2 #g_commend .xld {
	width: 100% !important;
	max-width: none !important;
	grid-template-columns: 72px minmax(0,1fr);
	column-gap: 16px;
}
body.pg_index #ct.ct2 #g_commend .xld > dd.m { width: 72px !important; }
body.pg_index #ct.ct2 #g_commend .xld > dd.m img {
	width: 66px !important;
	height: 66px !important;
	padding: 4px;
	border-color: #efdce2;
	border-radius: 12px;
	background: var(--pjs-center-sakura-soft);
	box-shadow: 0 6px 15px rgba(102,70,83,.09);
}
body.pg_index #ct.ct2 #g_commend .xld > dt,
body.pg_index #ct.ct2 #g_commend .xld > dd:not(.m) {
	box-sizing: border-box;
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	margin: 0 !important;
}
body.pg_index #ct.ct2 #g_commend .xld > dt {
	font-size: 16px;
	font-weight: 700;
	line-height: 26px;
	white-space: nowrap;
}
body.pg_index #ct.ct2 #g_commend .xld > dd:not(.m) { line-height: 24px; }
body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl {
	padding: 17px 20px !important;
	border-left: 4px solid transparent !important;
	background: rgba(255,255,255,.54);
	transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl:hover {
	border-left-color: var(--pjs-center-accent) !important;
	background: var(--pjs-center-soft);
}
body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dt {
	display: grid;
	grid-template-columns: auto auto minmax(0,1fr);
	align-items: center;
	column-gap: 8px;
	min-height: 28px;
}
body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dt > strong { grid-column: 1; order: initial; }
body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dt > strong a {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid #cfe5ed;
	border-radius: 5px;
	background: var(--pjs-center-soft);
	color: var(--pjs-center-text);
	font-weight: 700;
	line-height: 22px;
}
body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dt > .xg1 { grid-column: 2; order: initial; }
body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dt > .y {
	grid-column: 3;
	order: initial;
	float: none;
	justify-self: end;
	margin-left: 0;
	text-align: right;
	line-height: 28px;
}
body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dd {
	margin-top: 9px;
	line-height: 23px;
}
body.pg_index #ct.ct2 > .sd .bm:first-of-type::before,
body.pg_index #ct.ct2 #g_top::before { background: var(--pjs-center-sakura); }
body.pg_index #ct.ct2 > .sd .bm:first-of-type::after,
body.pg_index #ct.ct2 #g_top::after { background: var(--pjs-center-accent); }
body.pg_index #ct.ct2 > .sd .bm:first-of-type .bm_h,
body.pg_index #ct.ct2 #g_top .bm_h {
	border-bottom-color: #efdce2 !important;
	background: var(--pjs-center-sakura-soft) !important;
}
body.pg_index #ct.ct2 #g_guide {
	position: relative;
}
body.pg_index #ct.ct2 #g_guide::before {
	position: absolute; left: 20px; top: 31px; bottom: 31px; width: 1px;
	background: #d7e8ee; content: "";
}
body.pg_index #ct.ct2 #g_guide li {
	position: relative;
	grid-template-columns: 42px minmax(0,1fr);
	min-height: 58px;
}
body.pg_index #ct.ct2 #g_guide .group_createico {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 42px;
	height: 42px;
	border: 1px solid #cfe5ed;
	border-radius: 50%;
	background-color: var(--pjs-center-soft);
	box-shadow: 0 0 0 4px rgba(255,255,255,.88);
}
body.pg_index #ct.ct2 #create_group_btn {
	border-color: var(--pjs-center-accent-dark);
	background: var(--pjs-center-accent-dark);
	box-shadow: 0 6px 14px rgba(44,135,168,.18);
}
body.pg_index #ct.ct2 #g_top ol li {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 7px 0 7px 24px;
}
body.pg_index #ct.ct2 #g_top ol li > a {
	order: 1;
	flex: 1 1 auto;
	min-width: 0;
}
body.pg_index #ct.ct2 #g_top ol li .y {
	order: 2;
	float: none;
	flex: 0 0 auto;
	margin-left: auto;
}
@media (min-width: 1320px) {
	body.pg_index #pt,
	body.pg_index #ct.ct2 {
		box-sizing: border-box;
		width: min(1500px, calc(100vw - 64px)) !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}
	body.pg_index #ct.ct2 {
		grid-template-columns: minmax(0,1fr) 300px;
		gap: 20px;
	}
	body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c {
		display: grid;
		grid-template-columns: repeat(2,minmax(0,1fr));
		gap: 12px;
		padding: 16px !important;
	}
	body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl {
		margin: 0 !important;
		border: 1px solid var(--pjs-center-line) !important;
		border-left: 4px solid var(--pjs-center-accent) !important;
		border-radius: 8px;
	}
	body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl:last-child {
		grid-column: 1 / -1;
	}
}



/* Preserve the original floated medal layout; CSS grid changes showMenu's containing block. */
body.pg_medal #ct.ct2_a .mgcl,
body.pg_magic #ct.ct2_a .mgcl {
	display: block !important;
}
body.pg_medal #ct.ct2_a .mgcl > li,
body.pg_magic #ct.ct2_a .mgcl > li {
	float: left !important;
	width: 120px !important;
	margin: 0 13px 14px 0 !important;
}
body.pg_medal #ct.ct2_a .mgcl > li:nth-child(7n),
body.pg_magic #ct.ct2_a .mgcl > li:nth-child(7n) {
	margin-right: 0 !important;
}

/* Do not create a positioned ancestor around Discuz showMenu tooltips. */
body.pg_medal #ct.ct2_a > .mn > .bm.bw0,
body.pg_magic #ct.ct2_a > .mn > .bm.bw0 {
	position: static !important;
	border-top: 4px solid var(--pjs-center-accent) !important;
}
body.pg_medal #ct.ct2_a > .appl .tbn,
body.pg_magic #ct.ct2_a > .appl .tbn {
	position: static !important;
	border-top: 4px solid var(--pjs-center-sakura) !important;
}
body.pg_medal #ct.ct2_a > .mn > .bm.bw0::before,
body.pg_magic #ct.ct2_a > .mn > .bm.bw0::before,
body.pg_medal #ct.ct2_a > .mn > .bm.bw0::after,
body.pg_magic #ct.ct2_a > .mn > .bm.bw0::after,
body.pg_medal #ct.ct2_a > .appl .tbn::before,
body.pg_magic #ct.ct2_a > .appl .tbn::before { display: none !important; }


/* Constrain native medal tooltips to their own card so no column can widen the document. */
body.pg_medal #ct.ct2_a .mgcl > li,
body.pg_magic #ct.ct2_a .mgcl > li {
	position: relative !important;
}
body.pg_medal #ct.ct2_a .mgcl > li > .tip,
body.pg_magic #ct.ct2_a .mgcl > li > .tip {
	left: 50% !important;
	right: auto !important;
	top: auto !important;
	bottom: calc(100% - 8px) !important;
	width: max-content;
	max-width: 286px;
	margin: 0 !important;
	transform: translateX(-50%);
}
body.pg_medal #ct.ct2_a .mgcl > li > .tip .tip_horn,
body.pg_magic #ct.ct2_a .mgcl > li > .tip .tip_horn {
	left: 50% !important;
	right: auto !important;
	margin-left: -6px !important;
}


/* Rightmost card: align tooltip to the card edge instead of centering past the viewport. */
body.pg_medal #ct.ct2_a .mgcl > li:nth-child(7n) > .tip,
body.pg_magic #ct.ct2_a .mgcl > li:nth-child(7n) > .tip {
	left: auto !important;
	right: -4px !important;
	transform: none;
}
body.pg_medal #ct.ct2_a .mgcl > li:nth-child(7n) > .tip .tip_horn,
body.pg_magic #ct.ct2_a .mgcl > li:nth-child(7n) > .tip .tip_horn {
	left: auto !important;
	right: 48px !important;
	margin-left: 0 !important;
}

@media (max-width: 980px) {
	body.pg_medal #ct.ct2_a,
	body.pg_magic #ct.ct2_a {
		grid-template-columns: 184px minmax(0, 1fr);
		gap: 14px;
	}
	body.pg_index #ct.ct2 {
		grid-template-columns: minmax(0, 1fr) 250px;
		gap: 14px;
	}
}

@media (max-width: 760px) {
	body.pg_medal #ct.ct2_a,
	body.pg_magic #ct.ct2_a,
	body.pg_index #ct.ct2 {
		display: flex;
		flex-direction: column;
	}
	body.pg_medal #ct.ct2_a > .appl,
	body.pg_medal #ct.ct2_a > .mn,
	body.pg_magic #ct.ct2_a > .appl,
	body.pg_magic #ct.ct2_a > .mn,
	body.pg_index #ct.ct2 > .mn,
	body.pg_index #ct.ct2 > .sd {
		width: 100% !important;
	}
	body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dt {
		flex-wrap: wrap;
	}
	body.pg_index #ct.ct2 > .mn > .bm:not(.bmw):not(#g_commend) > .bm_c > dl > dt > .y {
		flex-basis: 100%;
		margin-left: 0;
	}
}
