/* Credit v16: common/header loads this only at <=760px; touch/header loads it
   only for the credit route. The appbar reuses My Center's shared markup and
   styles. Desktop markup is retained; the mobile dock and its spacer are hidden. */
body.xsdm-credit-page.xsdm-theme,
body.xsdm-credit-page.xsdm-touch {
	min-width: 0;
	background: #fff !important;
}

/* Keep closed drawers from casting a shadow into the mobile credit page. */
body.xsdm-credit-page.xsdm-theme:not(.xsdm-responsive-menu-open) .xsdm-responsive-menu,
body.xsdm-credit-page.xsdm-touch:not(.xsdm-touch-sidebar-open) .xsdm-touch-sidebar {
	box-shadow: none !important;
}

body.xsdm-credit-page.xsdm-theme #wp.xsdm-page {
	width: 100% !important;
	max-width: 760px;
	min-width: 0;
	margin: 0 auto !important;
	padding: 0 !important;
	background: #fff;
}

body.xsdm-credit-page.xsdm-theme :is(.xsdm-site-header, #pt, #ft, #scrolltop),
body.xsdm-credit-page.xsdm-touch .xsdm-touch-footer {
	display: none !important;
}

/* Credit subpages use the shared appbar without the bottom navigation. */
body.xsdm-credit-page.xsdm-theme :is(.xsdm-global-mobile-dock, .xsdm-mobile-tabbar-spacer),
body.xsdm-credit-page.xsdm-touch :is(.xsdm-touch-dock, .xsdm-touch-tabbar-spacer) {
	display: none !important;
}

/* Reuse mycenter_mobile.css for the appbar; only reveal and size its container here. */
body.xsdm-credit-page .xsdm-credit-appbar,
body.xsdm-credit-page .xsdm-credit-appbar * {
	box-sizing: border-box;
}

body.xsdm-credit-page .xsdm-credit-appbar {
	display: grid !important;
	max-width: 760px;
	margin: 0 auto;
}

body.xsdm-credit-page .xsdm-credit-appbar a {
	text-decoration: none !important;
	-webkit-tap-highlight-color: transparent;
}

body.xsdm-credit-page .xsdm-credit-appbar a:focus-visible {
	outline: 2px solid #0751af;
	outline-offset: -2px;
}

/* Transfer notices keep Discuz's message, authentication gate and redirect links. */
body.xsdm-credit-page #ct.xsdm-credit-message-page,
body.xsdm-credit-page #ct.xsdm-credit-message-page * {
	box-sizing: border-box;
}

body.xsdm-credit-page #ct.xsdm-credit-message-page {
	width: 100% !important;
	max-width: 760px;
	min-width: 0;
	margin: 0 auto;
	padding: 16px;
}

body.xsdm-credit-page #ct.xsdm-credit-message-page > .nfl {
	min-height: 0;
	padding: 0;
}

body.xsdm-credit-page #ct.xsdm-credit-message-page #ren_layer,
body.xsdm-credit-page.xsdm-credit-transfer-message > .jump_c {
	box-sizing: border-box;
	width: 100%;
	max-width: 480px;
	min-width: 0;
	min-height: 0;
	margin: 12px auto;
	padding: 24px 20px;
	border: 1px solid #e9edf3;
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
	color: #172033;
	font-family: inherit;
	font-size: 16px;
	line-height: 26px;
	text-align: center;
	white-space: normal;
	overflow-wrap: anywhere;
}

body.xsdm-credit-page #ct.xsdm-credit-message-page #messagetext {
	min-height: 0;
	padding: 48px 0 0;
	background-position: center top;
	background-size: 32px 32px;
	font-size: 16px;
	line-height: 26px;
}

body.xsdm-credit-page #ct.xsdm-credit-message-page #messagetext > p,
body.xsdm-credit-page.xsdm-credit-transfer-message > .jump_c > p {
	margin: 0;
	padding: 0;
	line-height: inherit;
}

body.xsdm-credit-page #ct.xsdm-credit-message-page #messagetext > .alert_btnleft,
body.xsdm-credit-page.xsdm-credit-transfer-message > .jump_c > p + p {
	margin-top: 18px;
}

body.xsdm-credit-page #ct.xsdm-credit-message-page .alert_btnleft > a,
body.xsdm-credit-page.xsdm-credit-transfer-message > .jump_c > p ~ p > a {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 44px;
	max-width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 8px;
	background: #0751af;
	color: #fff !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	overflow-wrap: anywhere;
}

body.xsdm-credit-page.xsdm-credit-transfer-message > header.header {
	display: none;
}

body.xsdm-credit-page.xsdm-credit-transfer-message > .jump_c {
	width: calc(100% - 32px);
	margin: 28px auto;
}

/* Unverified transfers use a short mobile toast before the native verify URL. */
body.xsdm-credit-page #ct.xsdm-credit-message-page.xsdm-credit-transfer-toast-message {
	position: fixed;
	inset: 0;
	z-index: 10030;
	padding: 0;
	background: transparent !important;
	pointer-events: none;
}

body.xsdm-credit-page #ct.xsdm-credit-message-page.xsdm-credit-transfer-toast-message > .nfl {
	position: static;
}

body.xsdm-credit-page #ct.xsdm-credit-message-page.xsdm-credit-transfer-toast-message #ren_layer,
body.xsdm-credit-page.xsdm-credit-transfer-toast-message > .jump_c {
	position: fixed;
	right: auto;
	top: 50%;
	bottom: auto;
	left: 50%;
	z-index: 10031;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: auto;
	max-width: calc(100% - 32px);
	min-width: min(280px, calc(100% - 32px));
	min-height: 48px;
	margin: 0;
	padding: 12px 16px;
	border: 0;
	border-radius: 10px;
	background: rgba(23, 32, 51, .92);
	box-shadow: 0 6px 18px rgba(23, 32, 51, .18);
	color: #fff;
	font-size: 14px;
	line-height: 22px;
	text-align: left;
	transform: translate(-50%, -50%);
	pointer-events: auto;
}

body.xsdm-credit-page .xsdm-credit-transfer-preflight-toast {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 10032;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: auto;
	max-width: calc(100% - 32px);
	min-width: min(280px, calc(100% - 32px));
	min-height: 48px;
	padding: 12px 16px;
	border: 0;
	border-radius: 10px;
	background: rgba(23, 32, 51, .92);
	box-shadow: 0 6px 18px rgba(23, 32, 51, .18);
	color: #fff;
	font-size: 14px;
	line-height: 22px;
	text-align: left;
	visibility: hidden;
	opacity: 0;
	transform: translate(-50%, -50%) scale(.96);
	transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
	pointer-events: none;
}

body.xsdm-credit-page .xsdm-credit-transfer-preflight-toast.is-visible {
	visibility: visible;
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

body.xsdm-credit-page .xsdm-credit-transfer-preflight-toast > i {
	flex: 0 0 18px;
	margin-right: 10px;
	font-size: 18px;
	line-height: 1;
}

body.xsdm-credit-page .xsdm-credit-transfer-preflight-toast > span {
	min-width: 0;
	overflow-wrap: anywhere;
}

body.xsdm-credit-page #ct.xsdm-credit-message-page.xsdm-credit-transfer-toast-message #messagetext {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 0;
	background: none !important;
	color: #fff;
	font-size: 14px;
	line-height: 22px;
	text-align: left;
}

body.xsdm-credit-page #ct.xsdm-credit-message-page.xsdm-credit-transfer-toast-message #messagetext::before,
body.xsdm-credit-page.xsdm-credit-transfer-toast-message > .jump_c::before {
	display: block;
	flex: 0 0 18px;
	color: #fff;
	content: "\f430";
	font-family: bootstrap-icons !important;
	font-size: 18px;
	font-style: normal;
	font-weight: 400 !important;
	line-height: 1;
}

body.xsdm-credit-page #ct.xsdm-credit-message-page.xsdm-credit-transfer-toast-message #messagetext > p:first-child,
body.xsdm-credit-page.xsdm-credit-transfer-toast-message > .jump_c > p:first-child {
	min-width: 0;
	margin: 0;
	padding: 0;
	color: #fff;
	font: inherit;
	line-height: inherit;
}

body.xsdm-credit-page #ct.xsdm-credit-message-page.xsdm-credit-transfer-toast-message #messagetext > .alert_btnleft,
body.xsdm-credit-page.xsdm-credit-transfer-toast-message > .jump_c > p + p {
	position: absolute;
	inset: 0;
	margin: 0;
}

body.xsdm-credit-page #ct.xsdm-credit-message-page.xsdm-credit-transfer-toast-message .alert_btnleft > a,
body.xsdm-credit-page.xsdm-credit-transfer-toast-message > .jump_c > p ~ p > a {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	background: transparent;
	font-size: 0;
	opacity: 0;
}

body #ct.xsdm-spacecp-page-credit,
body #ct.xsdm-spacecp-page-credit * {
	box-sizing: border-box;
}

body #ct.xsdm-spacecp-page-credit {
	display: block !important;
	width: 100% !important;
	max-width: 760px;
	min-width: 0;
	margin: 0 auto !important;
	padding: 0;
	background: #fff !important;
	color: #172033;
	font: inherit;
	font-size: 14px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

body #ct.xsdm-spacecp-page-credit > .rtj1009_zcd {
	display: none;
}

body #ct.xsdm-spacecp-page-credit > .rtj1009_sz_mn {
	float: none !important;
	width: 100% !important;
	min-width: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-spacecp-card {
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	overflow: visible;
}

body #ct.xsdm-spacecp-page-credit .xsdm-spacecp-heading {
	display: none !important;
}

body #ct.xsdm-spacecp-page-credit .ren_sz_zt {
	width: 100%;
	padding: 0 !important;
	background: #fff;
}

body #ct.xsdm-spacecp-page-credit .ren_sz_zt > .ren_g_cd {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 0;
	width: 100% !important;
	height: auto !important;
	min-height: 46px;
	margin: 0 0 16px !important;
	padding: 0;
	border: 0 !important;
	border-bottom: 1px solid #e8ebf1 !important;
	background: #fff !important;
	list-style: none;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	-webkit-overflow-scrolling: touch;
}

body #ct.xsdm-spacecp-page-credit .ren_g_cd::after {
	display: none;
}

body #ct.xsdm-spacecp-page-credit .ren_g_cd > li,
body #ct.xsdm-spacecp-page-credit .ren_g_cd > li.a {
	display: block;
	float: none !important;
	flex: 1 0 84px;
	width: auto !important;
	height: 46px !important;
	margin: 0 !important;
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	line-height: 46px !important;
	list-style: none;
}

body #ct.xsdm-spacecp-page-credit .ren_g_cd > li > a {
	position: relative;
	display: flex;
	float: none !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 46px !important;
	padding: 0 8px !important;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	color: #444 !important;
	font-size: clamp(15px, 4.1vw, 18px);
	font-weight: 400;
	line-height: 46px !important;
	text-align: center;
	white-space: nowrap;
}

body #ct.xsdm-spacecp-page-credit .ren_g_cd > li.a > a {
	border: 0 !important;
	background: transparent !important;
	color: #0751af !important;
	font-weight: 600;
}

body #ct.xsdm-spacecp-page-credit .ren_g_cd > li.a > a::after {
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 56px;
	max-width: calc(100% - 24px);
	height: 3px;
	border-radius: 3px;
	background: #0751af;
	content: "";
	transform: translateX(-50%);
}

body #ct.xsdm-spacecp-page-credit .ren_sz_zz {
	width: 100%;
	min-width: 0;
	padding: 0 clamp(14px, 3.72vw, 24px) 35px !important;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

body #ct.xsdm-spacecp-page-credit a,
body #ct.xsdm-spacecp-page-credit button {
	-webkit-tap-highlight-color: transparent;
}

body #ct.xsdm-spacecp-page-credit a:hover {
	text-decoration: none;
}

/* Shared overview is hidden inline on PC and revealed only by this mobile sheet. */
body #ct.xsdm-spacecp-page-credit .xsdm-credit-overview {
	display: block !important;
	min-width: 0;
	color: #172033;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-formula {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
	margin: 16px 0 0;
	padding: 12px 18px;
	border: 1px solid #edf2fa;
	border-radius: 12px;
	background: #f3f7fd;
	color: #39445d;
	font-size: clamp(14px, 3.5vw, 16px);
	line-height: 22px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-formula > i {
	display: flex;
	flex: 0 0 20px;
	align-items: center;
	justify-content: center;
	height: 22px;
	color: #0751af;
	font-size: 19px;
	line-height: 1;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-formula > div {
	min-width: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-formula u {
	text-decoration: none;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-total {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	min-height: clamp(148px, 38.9vw, 156px);
	padding: 24px;
	border: 1px solid rgba(51, 44, 229, .65);
	border-radius: 14px;
	background: #3244e7;
	background-image: linear-gradient(180deg, #3750fb 0%, #3244e7 50%, #2b39ce 100%);
	color: #fff;
	overflow: hidden;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-total p {
	position: relative;
	z-index: 1;
	margin: 0;
	color: #fff;
	font-size: 17px;
	line-height: 24px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-total strong {
	position: relative;
	z-index: 1;
	display: block;
	color: #fff;
	font-size: clamp(54px, 15.4vw, 60px);
	font-weight: 400;
	font-variant-numeric: tabular-nums;
	letter-spacing: -1px;
	line-height: 1.05;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-total-mark {
	position: absolute;
	right: 1.5%;
	bottom: 0;
	width: auto;
	height: 74%;
	aspect-ratio: 9 / 10;
	color: #40bdf1;
	opacity: .32;
	-webkit-mask-image: linear-gradient(#000, rgba(0, 0, 0, .45));
	mask-image: linear-gradient(#000, rgba(0, 0, 0, .45));
	pointer-events: none;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-metrics {
	display: grid;
	grid-template-columns: repeat(var(--xsdm-credit-columns, 3), minmax(0, 1fr));
	gap: clamp(10px, 3.5vw, 16px);
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-formula + .xsdm-credit-metrics {
	margin-top: 12px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-metric {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	min-height: clamp(110px, 26.7vw, 122px);
	margin: 0;
	padding: 16px 12px;
	border: 1px solid #edf0f5;
	border-radius: 12px;
	background: #fff;
	list-style: none;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-metric-icon {
	display: flex;
	flex: 0 0 clamp(28px, 9.2vw, 42px);
	align-items: center;
	justify-content: center;
	color: #0751af;
	font-size: clamp(28px, 9.2vw, 42px);
	line-height: 1;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-metric-icon img {
	width: 100%;
	max-width: 42px;
	height: auto;
	max-height: 48px;
	object-fit: contain;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-metric-icon > .xsdm-credit-svg {
	width: 100%;
	height: 1.2em;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-metric-body {
	flex: 1;
	min-width: 0;
	text-align: center;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-metric h2 {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-metric-value {
	margin: 0;
	font-size: 28px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	line-height: 1.25;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-metric-value.is-long-value {
	font-size: 20px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-metric-value small {
	display: block;
	color: #7a8494;
	font-size: 12px;
	font-weight: 400;
	line-height: 20px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcuts {
	margin-top: 32px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcuts > h2 {
	margin: 0 0 18px;
	font-size: 18px;
	font-weight: 500;
	line-height: 26px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcut-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcut {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
	min-height: 108px;
	padding: 16px;
	border: 1px solid #edf0f5;
	border-radius: 12px;
	background: #fff !important;
	color: #172033 !important;
	text-decoration: none;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcut:only-child {
	grid-column: 1 / -1;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcut > span {
	min-width: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcut strong,
body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcut small {
	display: block;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcut strong {
	margin-bottom: 8px;
	font-size: 17px;
	font-weight: 500;
	line-height: 24px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcut small {
	color: #7a8494;
	font-size: 14px;
	line-height: 22px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcut > i {
	display: flex;
	flex: 0 0 48px;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #0751af;
	color: #fff;
	font-size: 25px;
	line-height: 1;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcut:focus-visible {
	outline: 2px solid #0751af;
	outline-offset: 2px;
}

/* Keep the original balances, records and extra hook in the PC template.
   Only built-in overview rows are hidden on mobile; plugin output remains. */
body #ct.xsdm-spacecp-page-credit .xsdm-credit-overview ~ .ren_creditl {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-overview ~ .ren_creditl > :is(.ren_jfs, .ren_zjfs),
body #ct.xsdm-spacecp-page-credit .xsdm-credit-overview ~ .xsdm-credit-records {
	display: none !important;
}

@media (max-width: 400px) {
	body #ct.xsdm-spacecp-page-credit .xsdm-credit-metric {
		gap: 6px;
		padding: 12px 8px;
	}

	body #ct.xsdm-spacecp-page-credit .xsdm-credit-metric-icon {
		flex-basis: clamp(28px, calc(12.5vw - 12px), 38px);
		font-size: clamp(28px, calc(12.5vw - 12px), 38px);
	}

	body #ct.xsdm-spacecp-page-credit .xsdm-credit-metric h2 {
		font-size: 14px;
	}

	body #ct.xsdm-spacecp-page-credit .xsdm-credit-metric-value {
		font-size: 24px;
	}

	body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcut-grid {
		gap: 12px;
	}

	body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcut {
		gap: 8px;
		padding: 12px;
	}

	body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcut strong {
		font-size: 16px;
	}

	body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcut small {
		font-size: 12px;
	}

	body #ct.xsdm-spacecp-page-credit .xsdm-credit-shortcut > i {
		flex-basis: clamp(36px, 11.2vw, 44px);
		width: clamp(36px, 11.2vw, 44px);
		height: clamp(36px, 11.2vw, 44px);
		font-size: 24px;
	}
}

body #ct.xsdm-spacecp-page-credit .ren_creditl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 0 0 12px !important;
	padding: 0 !important;
	border: 0 !important;
	border-bottom: 1px dashed #e8e8e8 !important;
	border-radius: 0;
	background: transparent;
	list-style: none;
}

body #ct.xsdm-spacecp-page-credit .ren_creditl::after {
	display: none;
}

body #ct.xsdm-spacecp-page-credit .ren_creditl > li {
	float: none !important;
	width: auto !important;
	min-width: 0;
	height: auto !important;
	min-height: 34px;
	margin: 0 !important;
	padding: 0 8px 10px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #0751af;
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
}

body #ct.xsdm-spacecp-page-credit .ren_creditl em {
	display: inline;
	margin: 0;
	color: #555;
	font-size: inherit;
	font-style: normal;
	font-weight: 400;
	line-height: inherit;
}

body #ct.xsdm-spacecp-page-credit .ren_creditl em img {
	max-width: 20px;
	max-height: 20px;
	vertical-align: middle;
}

body #ct.xsdm-spacecp-page-credit .ren_creditl > .ren_zjfs {
	grid-column: 1 / -1;
	text-align: left;
}

body #ct.xsdm-spacecp-page-credit .ren_zjfs .xg1 {
	display: inline;
	margin: 0;
	color: #999 !important;
	font-size: 12px;
	line-height: inherit;
}

body #ct.xsdm-spacecp-page-credit .ren_creditl a {
	display: inline-block;
	color: #0751af !important;
	font-size: 12px;
}

body #ct.xsdm-spacecp-page-credit :is(.xsdm-credit-records, .xsdm-credit-rules) {
	display: table;
	width: 100%;
	min-width: 0;
	margin: 0 !important;
	border: 1px solid #e8e8e8 !important;
	border-radius: 0;
	background: #fff;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
}

body #ct.xsdm-spacecp-page-credit :is(.xsdm-credit-records, .xsdm-credit-rules) caption {
	display: table-caption;
	padding: 0 0 10px;
	border: 0;
	text-align: left;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-records caption h2 {
	margin: 0 !important;
	color: #555;
	font-size: 14px;
	font-weight: 700;
	line-height: 24px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-records caption a {
	float: right;
	color: #0751af !important;
	font-size: 12px;
	font-weight: 400;
}

body #ct.xsdm-spacecp-page-credit :is(.xsdm-credit-records, .xsdm-credit-rules) tbody {
	display: table-row-group;
}

body #ct.xsdm-spacecp-page-credit :is(.xsdm-credit-records, .xsdm-credit-rules) tr {
	display: table-row;
	background: transparent;
}

body #ct.xsdm-spacecp-page-credit :is(.xsdm-credit-records, .xsdm-credit-rules) :is(th, td) {
	display: table-cell;
	width: auto;
	min-width: 0;
	padding: 7px 4px;
	border: 0;
	border-bottom: 1px solid #e8e8e8;
	background: #fff !important;
	color: #555;
	font-size: 12px;
	font-weight: 400;
	line-height: 20px;
	text-align: left;
	vertical-align: top;
	white-space: normal;
	word-break: normal;
	overflow-wrap: anywhere;
}

body #ct.xsdm-spacecp-page-credit :is(.xsdm-credit-records, .xsdm-credit-rules) th {
	background: #f2f2f2 !important;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-records th:nth-child(1),
body #ct.xsdm-spacecp-page-credit .xsdm-credit-records th:nth-child(2) {
	width: 64px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-records th:nth-child(4) {
	width: 84px;
}

body #ct.xsdm-spacecp-page-credit :is(.xsdm-credit-records, .xsdm-credit-rules) td a {
	color: #0751af;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-records .xi1 {
	color: #f26c4f !important;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-records .xg1 {
	color: #999 !important;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rules {
	table-layout: auto;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rules :is(th, td) {
	padding-right: 8px;
	padding-left: 8px;
	white-space: nowrap;
	overflow-wrap: normal;
}

body #ct.xsdm-spacecp-page-credit :is(.tbmu, .xsdm-credit-rule-filter, .xsdm-credit-fallback) {
	margin: 0 0 12px !important;
	padding: 8px 0 !important;
	border: 0 !important;
	border-bottom: 1px dashed #e8e8e8 !important;
	border-radius: 0;
	background: #fff !important;
	color: #555;
	font-size: 14px;
	line-height: 28px;
}

body #ct.xsdm-spacecp-page-credit :is(.tbmu, .xsdm-credit-fallback) a {
	color: #0751af;
	font-weight: 500;
}

body #ct.xsdm-spacecp-page-credit .tbmu a.a {
	color: #f26c4f;
}

body #ct.xsdm-spacecp-page-credit .exfm {
	margin: 0 0 12px !important;
	padding: 12px 14px;
	border: 1px solid #e8e8e8;
	border-radius: 0;
	background: #f5f5f5;
}

body #ct.xsdm-spacecp-page-credit .exfm :is(table, tbody, tr) {
	display: block;
	width: 100%;
}

body #ct.xsdm-spacecp-page-credit .exfm :is(th, td) {
	display: block;
	width: 100%;
	padding: 4px 0;
	color: #666;
	font-size: 13px;
	font-weight: 400;
	text-align: left;
}

body #ct.xsdm-spacecp-page-credit .exfm .ftid {
	float: none;
	max-width: 100%;
}

body #ct.xsdm-spacecp-page-credit :is(input.px, select) {
	max-width: 100%;
	min-height: 38px;
	padding: 6px 9px;
	border: 1px solid #ddd !important;
	border-radius: 2px !important;
	background: #fff;
	color: #333;
	font: inherit;
	font-size: 14px;
}

body #ct.xsdm-spacecp-page-credit .exfm input.px {
	width: 100% !important;
}

body #ct.xsdm-spacecp-page-credit .pn,
body #ct.xsdm-spacecp-page-credit .pn:hover {
	min-height: 38px;
	padding: 0 18px !important;
	border: 1px solid #0751af !important;
	border-radius: 2px !important;
	background: #0751af !important;
	box-shadow: none !important;
	color: #fff !important;
	font: inherit;
	font-size: 14px;
}

body #ct.xsdm-spacecp-page-credit .emp {
	margin: 0;
	padding: 24px 0;
	color: #999;
	font-size: 13px;
	text-align: center;
}

body #ct.xsdm-spacecp-page-credit .pgs {
	margin-top: 12px;
}

/* Mobile rule cards share the controller data; retain the original PC table. */
body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-mobile {
	--xsdm-rule-gutter: clamp(14px, 3.72vw, 24px);
	display: block !important;
	min-width: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-page {
	margin-top: -16px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-page > :is(.tbmu, .xsdm-credit-rules),
body #ct.xsdm-spacecp-page-credit .ren_g_cd > .ren_jfy {
	display: none !important;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-scope {
	margin: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-scope-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	box-sizing: border-box;
	width: calc(100% + var(--xsdm-rule-gutter) + var(--xsdm-rule-gutter));
	min-height: 46px;
	margin: 0 calc(0px - var(--xsdm-rule-gutter));
	padding: 10px var(--xsdm-rule-gutter);
	border: 0;
	border-bottom: 1px solid #e5eaf2;
	border-radius: 0;
	background: #fff;
	color: #39445d;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 24px;
	text-align: left;
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
}

body #ct.xsdm-spacecp-page-credit button.xsdm-credit-rule-scope-row {
	cursor: pointer;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-scope-row > span:first-child {
	flex-shrink: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-scope-value {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	min-width: 0;
	max-width: 65%;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-scope-value > span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-scope-value > i {
	flex-shrink: 0;
	color: #7b8291;
	font-size: 13px;
	line-height: 1;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-scope-select {
	position: relative;
	flex: 1;
	min-width: 0;
	max-width: 65%;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-scope-select select {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 0 24px 0 0;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit;
	font: inherit;
	text-align: right;
	text-align-last: right;
	text-overflow: ellipsis;
	appearance: none !important;
	-webkit-appearance: none !important;
	cursor: pointer;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-scope-select > i {
	position: absolute;
	top: 50%;
	right: 0;
	color: #7b8291;
	font-size: 13px;
	line-height: 1;
	transform: translateY(-50%);
	pointer-events: none;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-scope-static {
	margin-bottom: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-scope-submit {
	margin: 0 0 12px;
	padding: 8px 16px;
	border: 0;
	border-radius: 5px;
	background: #0751af;
	color: #fff;
	font: inherit;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: calc(100% + var(--xsdm-rule-gutter) + var(--xsdm-rule-gutter));
	margin: 0 calc(0px - var(--xsdm-rule-gutter)) 10px;
	padding: 10px var(--xsdm-rule-gutter);
	border: 0;
	border-radius: 0;
	background: #f3f4f5;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-notice > i {
	display: flex;
	flex: 0 0 18px;
	align-items: center;
	justify-content: center;
	height: 24px;
	color: #0751af;
	font-size: 18px;
	line-height: 1;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-notice p {
	min-width: 0;
	margin: 0;
	color: #39445d;
	font-size: 14px;
	line-height: 24px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-list {
	display: grid;
	min-width: 0;
	gap: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
	align-items: center;
	gap: 8px 10px;
	min-width: 0;
	padding: 10px;
	border: 1px solid #e9edf3;
	border-radius: 8px;
	background: #fff;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-card + .xsdm-credit-rule-card {
	margin-top: -1px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-mobile .xsdm-credit-rule-card {
	padding-right: 0;
	padding-left: 0;
	border: 0;
	border-bottom: 1px solid #e9edf3;
	border-radius: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-mobile .xsdm-credit-rule-card + .xsdm-credit-rule-card {
	margin-top: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-summary {
	min-width: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-summary h3 {
	margin: 0;
	color: #172033;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	overflow-wrap: anywhere;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-summary p {
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
	margin: 0;
	color: #666;
	font-size: 12px;
	line-height: 20px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-values {
	display: grid;
	grid-template-columns: repeat(var(--xsdm-rule-columns), minmax(0, 1fr));
	gap: 8px;
	min-width: 0;
	margin: 0;
	text-align: center;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-values > div {
	min-width: 0;
	overflow-wrap: anywhere;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-mobile .xsdm-credit-rule-values > div:last-child {
	text-align: right;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-values dt {
	margin: 0;
	color: #666;
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-values dd {
	margin: 0;
	color: #39445d;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-values .xsdm-credit-rule-positive {
	color: #0751af;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-values .xsdm-credit-rule-emphasis {
	color: #f90;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-card-wide > :is(.xsdm-credit-rule-summary, .xsdm-credit-rule-values) {
	grid-column: 1 / -1;
}

/* Credit history only: keep the original PC tables, forms and data intact. */
body #ct.xsdm-spacecp-page-credit .xsdm-credit-log {
	padding-right: clamp(16px, 5.1vw, 24px) !important;
	padding-left: clamp(16px, 5.1vw, 24px) !important;
	overflow: visible;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log > .tbmu {
	display: flex;
	gap: 0;
	margin: 0 0 14px !important;
	padding: 0 !important;
	border: 1px solid #e8ebf1 !important;
	border-radius: 16px;
	background: #f7f8fa !important;
	overflow: hidden;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log > .tbmu .pipe {
	display: none;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log > .tbmu a {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 8px 6px;
	border-radius: 15px;
	color: #555 !important;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log > .tbmu a.a {
	background: #0751af !important;
	color: #fff !important;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log-ready .xsdm-credit-log-tools,
body #ct.xsdm-spacecp-page-credit .xsdm-credit-log :is(.xsdm-credit-log-empty, .xsdm-credit-log-end) {
	display: block !important;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log-ready > form > .exfm {
	display: none;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log-quick {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid #edf0f5;
	border-bottom: 1px solid #edf0f5;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-trigger {
	box-sizing: border-box;
	width: fit-content;
	max-width: 100%;
	justify-self: start;
	min-width: 0;
	min-height: 38px;
	margin: 0;
	border: 1px solid #c7d8ef !important;
	border-radius: 5px !important;
	background: #f7faff;
	box-shadow: none;
	color: #555;
	font: inherit;
	font-size: 14px;
	line-height: 20px;
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 12px;
	white-space: normal;
	overflow-wrap: anywhere;
	cursor: pointer;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log-quick > [data-credit-filter-open] {
	justify-self: end;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-trigger > i {
	flex-shrink: 0;
	color: #8e96a2;
	font-size: 10px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log :is(.xsdm-credit-records, .xsdm-credit-rules),
body #ct.xsdm-spacecp-page-credit .xsdm-credit-log :is(.xsdm-credit-records, .xsdm-credit-rules) tbody {
	display: block;
	border: 0 !important;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log :is(.xsdm-credit-records, .xsdm-credit-rules) tr {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 8px 12px;
	padding: 17px 0;
	border-bottom: 1px solid #e8ebf1;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log :is(.xsdm-credit-records, .xsdm-credit-rules) tr:first-child {
	display: none;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log :is(.xsdm-credit-records, .xsdm-credit-rules) td {
	display: block;
	width: auto;
	min-width: 0;
	padding: 0;
	border: 0;
	color: #666;
	font-size: 13px;
	line-height: 22px;
	white-space: normal;
	overflow-wrap: anywhere;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log :is(.xsdm-credit-records, .xsdm-credit-rules) td:first-child,
body #ct.xsdm-spacecp-page-credit .xsdm-credit-log :is(.xsdm-credit-records, .xsdm-credit-rules) td:first-child a {
	color: #172033;
	font-size: 17px;
	font-weight: 600;
	line-height: 25px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-records td:nth-child(2) {
	max-width: 150px;
	color: #888;
	font-size: 12px;
	text-align: right;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-records td:nth-child(2) .xi1,
body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-records td:nth-child(2) .xg1 {
	color: #0751af !important;
	font-size: 20px;
	font-weight: 500;
	line-height: 26px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-records td:nth-child(2) .xg1 {
	color: #f90 !important;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-records td:nth-child(3) a {
	color: inherit;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-records td:nth-child(4) {
	align-self: end;
	color: #777;
	font-size: 12px;
	text-align: right;
	white-space: nowrap;
}

/* With no description, center the title beside the amount/date stack. */
body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-records tr.xsdm-credit-record-no-detail td:first-child {
	grid-column: 1;
	grid-row: 1 / 3;
	align-self: center;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-records tr.xsdm-credit-record-no-detail td:nth-child(2) {
	grid-column: 2;
	grid-row: 1;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-records tr.xsdm-credit-record-no-detail td:nth-child(3) {
	display: none;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-records tr.xsdm-credit-record-no-detail td:nth-child(4) {
	grid-column: 2;
	grid-row: 2;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-records td[colspan] {
	grid-column: 1 / -1;
	text-align: center;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-rules tr {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-rules td:first-child,
body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-rules td:last-child {
	grid-column: 1 / -1;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-rules td[data-label]::before {
	margin-right: 8px;
	color: #888;
	content: attr(data-label);
}

/* System rewards use a compact two-line mobile history layout. */
body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-reward-mobile {
	display: block !important;
	min-width: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-reward-mobile + .xsdm-credit-rules {
	display: none !important;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-reward-list {
	display: block;
	width: auto;
	min-width: 0;
	margin: 0 calc(0px - clamp(8px, 2.55vw, 12px));
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-reward-item {
	box-sizing: border-box;
	min-width: 0;
	padding: 14px 0 13px;
	border: 0;
	border-bottom: 1px solid #e8ebf1;
	background: #fff;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-reward-head,
body #ct.xsdm-spacecp-page-credit .xsdm-credit-reward-meta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 8px 12px;
	min-width: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-reward-head h3 {
	min-width: 0;
	margin: 0;
	color: #172033;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	overflow-wrap: anywhere;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-reward-head h3 a {
	background: transparent;
	color: inherit;
	font: inherit;
	text-decoration: none;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-reward-quick {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 10px;
	min-width: 0;
	margin: 0;
	color: #0751af;
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	text-align: right;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-reward-quick > div {
	display: flex;
	align-items: baseline;
	gap: 3px;
	min-width: 0;
	white-space: nowrap;
}

/* Keep the two most relevant trailing credit columns in the headline. */
body #ct.xsdm-spacecp-page-credit .xsdm-credit-reward-quick > div:nth-last-child(n + 3) {
	display: none;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-reward-quick :is(dt, dd) {
	margin: 0;
	color: inherit;
	font: inherit;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-reward-meta {
	margin-top: 6px;
	color: #7b8291;
	font-size: 12px;
	font-weight: 400;
	line-height: 20px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-reward-meta time {
	white-space: nowrap;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-reward-meta p {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0 5px;
	min-width: 0;
	margin: 0;
	text-align: right;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-reward-meta :is(span, i) {
	font: inherit;
	font-style: normal;
	white-space: nowrap;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log :is(.xsdm-credit-log-empty, .xsdm-credit-log-end) {
	margin: 0;
	padding: 16px 0;
	color: #999;
	font-size: 13px;
	line-height: 22px;
	text-align: center;
}

/* The filter layer belongs to this route only. */
body.xsdm-credit-page.xsdm-credit-filter-open {
	overflow: hidden;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-log-tools [hidden],
body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-mobile [hidden] {
	display: none !important;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-layer {
	position: fixed;
	inset: 0;
	z-index: 10020;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(23, 32, 51, .35);
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-panel {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 20px);
	max-height: calc(100dvh - 20px);
	padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
	border: 0;
	border-radius: 16px 16px 0 0;
	outline: 0;
	background: #fff;
	box-shadow: none;
	color: #172033;
	overflow-y: auto;
	overscroll-behavior: contain;
}

body #ct.xsdm-spacecp-page-credit #xsdm-credit-operation-dialog,
body #ct.xsdm-spacecp-page-credit #xsdm-credit-rule-dialog {
	height: 75vh;
	height: 75dvh;
	max-height: 75vh;
	max-height: 75dvh;
	padding-top: 0;
	padding-right: 12px;
	padding-left: 12px;
	scroll-padding-top: 68px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-heading {
	position: relative;
	margin-bottom: 22px;
	text-align: center;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-heading h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 30px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-heading button {
	position: absolute;
	top: -4px;
	right: -8px;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #777;
	font-size: 15px;
}

body #ct.xsdm-spacecp-page-credit #xsdm-credit-operation-dialog > .xsdm-credit-filter-heading,
body #ct.xsdm-spacecp-page-credit #xsdm-credit-rule-dialog > .xsdm-credit-filter-heading {
	position: sticky;
	top: 0;
	z-index: 1;
	margin-bottom: 0;
	padding: 16px 0 22px;
	background: #fff;
}

body #ct.xsdm-spacecp-page-credit #xsdm-credit-operation-dialog > .xsdm-credit-filter-heading button,
body #ct.xsdm-spacecp-page-credit #xsdm-credit-rule-dialog > .xsdm-credit-filter-heading button {
	top: 12px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-panel fieldset {
	min-width: 0;
	margin: 0 0 24px;
	padding: 0;
	border: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-panel legend {
	margin-bottom: 12px;
	padding: 0;
	color: #172033;
	font-size: 14px;
	font-weight: 600;
	line-height: 22px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-operation-options {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-options label {
	position: relative;
	display: block;
	max-width: 100%;
	cursor: pointer;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-options input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	clip-path: inset(50%);
	overflow: hidden;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-options span {
	display: block;
	box-sizing: border-box;
	min-width: 58px;
	max-width: 100%;
	margin: 0;
	padding: 8px 13px;
	border: 1px solid #e9edf3 !important;
	border-radius: 10px;
	background: #fff;
	color: #39445d;
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
	text-align: center;
	white-space: normal;
	overflow-wrap: anywhere;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-options input:checked + span {
	background: #f1f6ff;
	color: #0751af;
	font-weight: 500;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-operation-options button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 57px;
	margin: 0;
	padding: 16px 0;
	border: 0 !important;
	border-bottom: 1px solid #e9edf3 !important;
	border-radius: 0;
	background: transparent;
	color: #39445d;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-align: left;
	white-space: normal;
	overflow-wrap: anywhere;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-operation-options button[aria-pressed="true"] {
	color: #0751af;
	font-weight: 500;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-operation-options button > i {
	flex: 0 0 16px;
	margin-left: auto;
	font-size: 16px;
	line-height: 1;
	text-align: right;
	visibility: hidden;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-operation-options button[aria-pressed="true"] > i {
	visibility: visible;
}

/* Pointer clicks keep their border; show a focus cue only for keyboard navigation. */
body #ct.xsdm-spacecp-page-credit .xsdm-credit-log-tools :is(button, input),
body #ct.xsdm-spacecp-page-credit .xsdm-credit-rule-mobile button {
	outline: 0 !important;
	box-shadow: none !important;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-keyboard .xsdm-credit-filter-options input:focus-visible + span,
body #ct.xsdm-spacecp-page-credit .xsdm-credit-keyboard :is(button, input[type="date"]):focus-visible {
	outline: 2px solid #0751af !important;
	outline-offset: 2px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-dates {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 12px;
	color: #777;
	font-size: 12px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-dates input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 38px;
	margin-top: 5px;
	padding: 7px;
	border: 1px solid #d8e1ee !important;
	border-radius: 7px;
	background: #fff;
	color: #172033;
	font: inherit;
	appearance: auto;
	-webkit-appearance: auto;
	cursor: pointer;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-actions {
	position: sticky;
	bottom: -1px;
	display: grid;
	grid-template-columns: 1fr 1.35fr;
	gap: 16px;
	padding: 12px 0 0;
	background: #fff;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-actions button {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box !important;
	width: 100%;
	min-width: 0;
	height: 44px !important;
	min-height: 44px !important;
	max-height: 44px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 1px solid #9aa7ba;
	border-radius: 9px;
	background: #fff;
	box-shadow: none;
	color: #172033;
	font: inherit;
	font-size: 15px;
	line-height: 22px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-actions button[type="submit"] {
	border-color: #0751af;
	background: #0751af;
	color: #fff;
}

/* One mobile transfer form for narrow screens and mobile=2; keep PC untouched. */
body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-mobile {
	display: block !important;
	min-width: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-mobile + #transferform,
body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-page > .ren_creditl > :is(.ren_jfs, .ren_zjfs) {
	display: none !important;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-page > .ren_creditl {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-balance {
	margin: 0 0 22px;
	padding: 18px 20px;
	border: 1px solid #e5edf9;
	border-radius: 12px;
	background: #f3f7fd;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-balance p {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 8px;
	color: #666;
	font-size: 14px;
	line-height: 22px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-balance strong {
	color: #0751af;
	font-size: 30px;
	font-weight: 500;
	line-height: 40px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-balance small,
body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-field small {
	margin-left: 8px;
	color: #999;
	font-size: 13px;
	font-weight: 400;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-field {
	display: block;
	margin: 0 0 18px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-field > span {
	display: block;
	margin-bottom: 8px;
	color: #333;
	font-size: 15px;
	line-height: 22px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-field input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 46px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #e1e7ef;
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	color: #172033;
	font: inherit;
	font-size: 16px;
	line-height: 24px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-field input::placeholder {
	color: #aaa;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-note {
	margin: -6px 0 18px;
	color: #999;
	font-size: 12px;
	line-height: 21px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-note p {
	margin: 0;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 46px;
	margin: 6px 0 0;
	padding: 0 16px;
	border: 1px solid #0751af;
	border-radius: 9px;
	background: #0751af;
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 16px;
	line-height: 24px;
}

body #ct.xsdm-spacecp-page-credit .xsdm-credit-transfer-mobile :is(input, button):focus-visible {
	outline: 2px solid #0751af;
	outline-offset: 2px;
}

@media (max-width: 360px) {
	body #ct.xsdm-spacecp-page-credit .xsdm-credit-log-quick { gap: 6px; }
	body #ct.xsdm-spacecp-page-credit .xsdm-credit-log .xsdm-credit-records td:nth-child(4) { font-size: 11px; }
	body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-panel { padding-right: 16px; padding-left: 16px; }
	body #ct.xsdm-spacecp-page-credit .xsdm-credit-filter-options { gap: 8px; }
}
