:root {
	--xsdm-navy: #082b5d;
	--xsdm-navy-hover: #123b70;
	--xsdm-blue: #1769e0;
	--xsdm-blue-dark: #0d55b8;
	--xsdm-ink: #172033;
	--xsdm-muted: #7a8494;
	--xsdm-line: #e6ebf2;
	--xsdm-soft: #f5f8fc;
	--xsdm-soft-blue: #eef5ff;
	--xsdm-danger: #ff5a52;
	--xsdm-nav-sticky-top: 0px;
}

html { overflow-y: scroll; }
body.xsdm-theme {
	margin: 0;
	background: #fbfcfe;
	color: #333;
	font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}
/* Mobile adaptive routes share the WAP font preference; desktop stays unchanged. */
@media (max-width: 760px) {
	body.xsdm-theme {
		--xsdm-touch-font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
		font-family: var(--xsdm-touch-font);
	}
	body.xsdm-theme button,
	body.xsdm-theme input,
	body.xsdm-theme select,
	body.xsdm-theme textarea {
		font-family: var(--xsdm-touch-font);
	}
}
.xsdm-theme *,
.xsdm-theme *::before,
.xsdm-theme *::after { box-sizing: border-box; }
.xsdm-theme a { text-decoration: none; }
.xsdm-theme a:hover { text-decoration: none; }
.xsdm-theme .xsdm-shell {
	width: calc(100% - 48px);
	max-width: 1488px;
	margin-right: auto;
	margin-left: auto;
}
.xsdm-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
#wp.xsdm-page {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.xsdm-site-header {
	position: relative;
	z-index: 120;
	background: #fff;
	border-bottom: 1px solid var(--xsdm-line);
	box-shadow: 0 2px 10px rgba(18, 43, 78, .06);
}

/* Utility bar */
#toptb.xsdm-utility-bar {
	height: 50px;
	min-width: 0;
	padding: 0;
	border: 0;
	background: var(--xsdm-navy);
	color: rgba(255, 255, 255, .9);
	line-height: normal;
}
.xsdm-utility-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 50px;
}
.xsdm-utility-left,
.xsdm-utility-right {
	display: flex;
	align-items: center;
	height: 50px;
	min-width: 0;
}
.xsdm-utility-left { gap: 22px; }
.xsdm-utility-left > a,
.xsdm-utility-left > span > a,
.xsdm-utility-right > a:not(.xsdm-utility-action):not(.xsdm-account-trigger):not(.xsdm-auth-link) {
	color: rgba(255, 255, 255, .72);
	font-size: 13px;
	line-height: 50px;
	white-space: nowrap;
}
.xsdm-utility-left a:hover,
.xsdm-utility-right > a:not(.xsdm-utility-action):not(.xsdm-account-trigger):not(.xsdm-auth-link):hover {
	color: #fff;
}
.xsdm-utility-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 50px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, .1);
	background: none !important;
	color: rgba(255, 255, 255, .9) !important;
	font-size: 14px;
	line-height: 50px;
	white-space: nowrap;
}
.xsdm-utility-action:hover,
.xsdm-utility-action.a,
.xsdm-utility-action.active {
	background: var(--xsdm-navy-hover) !important;
	color: #fff !important;
}
.xsdm-utility-action > i:first-child { font-size: 17px; }
.xsdm-utility-action .xsdm-caret {
	font-size: 9px;
	opacity: .72;
}
#toptb #switchblind,
#toptb #switchwidth,
#toptb #sslct,
#toptb #qmenu,
#toptb #diy-tg {
	float: none;
	width: auto;
	background-image: none;
	text-indent: 0;
}
#toptb #switchblind { display: inline-flex; }
.xsdm-notice-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 17px;
	height: 17px;
	padding: 0 5px;
	border: 2px solid var(--xsdm-navy);
	border-radius: 10px;
	background: #f04438;
	color: #fff;
	font: 700 10px/13px Arial, sans-serif;
	font-style: normal;
}
.xsdm-utility-action:hover .xsdm-notice-badge { border-color: var(--xsdm-navy-hover); }
.xsdm-account-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 50px;
	margin-left: 4px;
	border: 0;
	background: transparent;
}
.xsdm-account-trigger:hover,
.xsdm-account-trigger.active { background: var(--xsdm-navy-hover); }
.xsdm-account-trigger img {
	display: block;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, .88);
	border-radius: 50%;
	background: #fff;
	object-fit: cover;
}
.xsdm-auth-link {
	display: inline-flex;
	align-items: center;
	height: 50px;
	padding: 0 12px;
	color: rgba(255, 255, 255, .9) !important;
	font-size: 14px;
}
.xsdm-auth-link:hover { color: #fff !important; }
.xsdm-register-link {
	height: 32px;
	margin-left: 4px;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 5px;
	line-height: 30px;
}

/* DIY and Discuz popovers */
.xsdm-diy-menu {
	min-width: 128px;
	padding: 6px;
	border: 1px solid var(--xsdm-line);
	border-radius: 7px;
	box-shadow: 0 10px 30px rgba(18, 43, 78, .16);
}
.xsdm-diy-menu ul,
.xsdm-diy-menu li { margin: 0; padding: 0; }
.xsdm-diy-menu a {
	display: block;
	padding: 8px 13px;
	border-radius: 5px;
	color: var(--xsdm-ink);
	font-size: 13px;
}
.xsdm-diy-menu a:hover {
	background: var(--xsdm-soft-blue);
	color: var(--xsdm-blue-dark);
}
.xsdm-prompt-menu {
	border-color: var(--xsdm-line);
	border-radius: 7px;
	box-shadow: 0 10px 30px rgba(18, 43, 78, .16);
}

/* White main navigation row */
#hd.xsdm-mainbar {
	min-height: 106px;
	padding: 0;
	border: 0;
	background: #fff;
}
.xsdm-mainbar-inner {
	position: relative;
	display: grid;
	grid-template-columns: 245px minmax(0, 1fr) 300px;
	align-items: center;
	gap: 28px;
	min-height: 78px;
}
.xsdm-board-logo {
	float: none;
	width: 245px;
	height: 70px;
	margin: 0;
	padding: 0;
	overflow: hidden;
}
.xsdm-board-logo a,
.xsdm-board-logo img {
	display: block;
	width: 245px;
	height: 70px;
}
.xsdm-board-logo img { object-fit: contain; object-position: left center; }

#nv.xsdm-primary-nav {
	float: none;
	width: auto;
	height: 78px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: hidden;
}
#nv.xsdm-primary-nav ul {
	display: flex;
	align-items: stretch;
	height: 78px;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}
#nv.xsdm-primary-nav li {
	position: relative;
	float: none;
	display: flex;
	align-items: stretch;
	height: 78px;
	margin: 0;
	padding: 0;
	background: transparent;
	font-weight: 400;
}
#nv.xsdm-primary-nav li.a,
#nv.xsdm-primary-nav li:hover { background: transparent; }
#nv.xsdm-primary-nav li a {
	display: flex;
	align-items: center;
	height: 78px;
	margin: 0;
	padding: 0 17px;
	border: 0;
	background: transparent;
	color: var(--xsdm-ink);
	font-size: 16px;
	font-weight: 500;
	line-height: 78px;
	text-shadow: none;
}
#nv.xsdm-primary-nav li a:hover { color: var(--xsdm-blue); }
#nv.xsdm-primary-nav li.a a {
	background: transparent;
	color: var(--xsdm-ink);
	font-weight: 700;
}
#nv.xsdm-primary-nav li.a::after {
	content: "";
	position: absolute;
	right: 17px;
	bottom: 0;
	left: 17px;
	height: 3px;
	border-radius: 2px 2px 0 0;
	background: var(--xsdm-blue);
}

/* Keep the native Discuz search and search-type menu functional. */
.xsdm-search-wrap {
	position: relative;
	width: 300px;
	padding-bottom: 1px;
}
.xsdm-search-wrap #scbar {
	position: relative;
	width: 300px;
	height: 40px;
	margin: 0;
	border: 1px solid #dfe6ef;
	border-radius: 21px;
	background: #f8fafc;
	line-height: normal;
	overflow: visible;
}
.xsdm-search-wrap #scbar_form,
.xsdm-search-wrap #scbar table {
	width: 100%;
	height: 38px;
	margin: 0;
}
.xsdm-search-wrap #scbar table { table-layout: fixed; }
.xsdm-search-wrap .scbar_icon_td { display: none; }
.xsdm-search-wrap .scbar_txt_td { width: auto; background: none; }
.xsdm-search-wrap #scbar_txt {
	width: 100%;
	height: 38px;
	padding: 0 10px 0 16px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--xsdm-ink);
	font-size: 13px;
	line-height: 38px;
}
.xsdm-search-wrap .scbar_type_td {
	width: 58px;
	padding: 0;
	border-left: 1px solid var(--xsdm-line);
	background: none;
}
.xsdm-search-wrap #scbar_type {
	display: block;
	width: 58px;
	height: 38px;
	padding: 0 14px 0 8px;
	background-position: 46px 16px;
	color: var(--xsdm-muted) !important;
	font-size: 12px;
	line-height: 38px;
	text-align: center;
}
.xsdm-search-wrap .scbar_btn_td {
	width: 42px;
	padding: 0;
	background: none;
}
.xsdm-search-wrap #scbar_btn {
	width: 42px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0 20px 20px 0;
	background: transparent url("/template/xsdfeizhou_modern/comiis_pic/search.png") no-repeat 7px -132px;
	cursor: pointer;
}
.xsdm-search-wrap #scbar_btn:hover { background-color: var(--xsdm-soft-blue); }
.xsdm-search-wrap #scbar_btn strong {
	display: block;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}
.xsdm-search-wrap .scbar_hot_td {
	position: static;
	width: 0;
	padding: 0;
}
.xsdm-search-wrap #scbar_hot {
	position: absolute;
	top: 49px;
	right: 0;
	width: 965px;
	height: 25px;
	color: var(--xsdm-muted);
	font-size: 12px;
	line-height: 25px;
	text-align: right;
	white-space: nowrap;
	overflow: hidden;
}
.xsdm-search-wrap #scbar_hot strong { color: #505b6c; }
.xsdm-search-wrap #scbar_hot a {
	margin-left: 13px;
	color: #66758a !important;
}
.xsdm-search-wrap #scbar_hot a:hover { color: var(--xsdm-blue) !important; }
.xsdm-subnav {
	width: 100%;
	min-height: 28px;
	border-top: 1px solid #f2f4f7;
}
.xsdm-subnav ul {
	width: calc(100% - 48px);
	max-width: 1488px;
	height: 28px;
	margin: 0 auto;
	padding: 0 0 0 273px;
	background: transparent;
	line-height: 28px;
}
.xsdm-subnav li { float: left; }
.xsdm-subnav a {
	display: block;
	padding: 0 12px;
	color: var(--xsdm-muted);
	font-size: 12px;
}

/* Account popover */
.xsdm-account-menu {
	width: 250px !important;
	padding: 0 !important;
	border: 1px solid var(--xsdm-line) !important;
	border-radius: 8px !important;
	background: #fff !important;
	box-shadow: 0 12px 34px rgba(18, 43, 78, .18) !important;
	transform: translate(24px, 31px);
	overflow: hidden;
}
#toptb .xsdm-account-menu a {
	float: none;
	height: auto;
	padding: 0;
	color: var(--xsdm-ink);
}
.xsdm-account-head {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 92px;
	padding: 16px 16px;
	background: var(--xsdm-soft-blue);
}
.xsdm-account-avatar {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	margin-right: 12px;
}
.xsdm-account-avatar img {
	display: block;
	width: 58px;
	height: 58px;
	padding: 0;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(27, 61, 99, .12);
	object-fit: cover;
}
.xsdm-account-identity {
	min-width: 0;
	flex: 1;
}
.xsdm-account-name-row {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
}
.xsdm-account-name {
	max-width: 150px;
	overflow: hidden;
	color: #111827 !important;
	font-size: 16px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.xsdm-login-status,
.xsdm-login-status a {
	color: var(--xsdm-blue) !important;
	font-size: 12px;
	white-space: nowrap;
}
.xsdm-account-meta {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 7px;
	color: #8691a1;
	font-size: 12px;
	white-space: nowrap;
}
.xsdm-account-meta > span {
	width: 1px;
	height: 12px;
	background: #d7dfeb;
}
.xsdm-account-meta a {
	max-width: 132px;
	padding: 0;
	background: none;
	color: #7b8797 !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.xsdm-account-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	padding: 14px;
}
#toptb .xsdm-account-grid > a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 72px;
	padding: 8px 4px;
	border-radius: 6px;
	background: var(--xsdm-soft);
	color: #394457 !important;
	font-size: 12px;
	text-align: center;
}
.xsdm-account-grid > a:hover {
	background: var(--xsdm-soft-blue);
	color: var(--xsdm-blue-dark) !important;
}
.xsdm-account-grid i {
	margin-bottom: 7px;
	color: #737f90;
	font-size: 23px;
	line-height: 1;
}
.xsdm-account-grid > a:hover i { color: var(--xsdm-blue); }
.xsdm-account-grid span {
	display: block;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.xsdm-account-management {
	display: flex;
	flex-direction: column;
	margin: 0 14px;
	padding: 9px 0;
	border-top: 1px solid var(--xsdm-line);
}
#toptb .xsdm-account-management > a {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 36px;
	height: 36px;
	padding: 0 8px;
	border-radius: 5px;
	color: #445064 !important;
	font-size: 13px;
}
.xsdm-account-management > a:hover {
	background: var(--xsdm-soft);
	color: var(--xsdm-blue-dark) !important;
}
.xsdm-account-management i {
	width: 18px;
	color: #758295;
	font-size: 16px;
	text-align: center;
}
.xsdm-account-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 48px;
	margin: 0 14px;
	padding: 0 6px;
	border-top: 1px solid var(--xsdm-line);
}
.xsdm-logout-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: auto !important;
	padding: 8px 0;
	color: var(--xsdm-danger) !important;
	font-size: 13px;
}
.xsdm-logout-link:hover { color: #e5443d !important; }
.xsdm-account-hook:empty,
.xsdm-account-hook-list:empty { display: none; }
.xsdm-account-hook-list {
	margin: 0 14px;
	padding: 0;
	list-style: none;
}
.xsdm-account-hook-list li { list-style: none; }
.xsdm-account-hook-list a {
	display: block;
	padding: 7px 8px;
	border-radius: 5px;
}
.xsdm-account-hook-list a:hover { background: var(--xsdm-soft); }

/* Footer */
.xsdm-theme #ft {
	display: block !important;
	clear: both;
	width: 100%;
	max-width: none;
	margin: 18px 0 0;
	padding: 0;
	border: 0;
	background: #303033;
	color: #d7dbe1;
	text-align: left;
}

.xsdm-theme #ft a { color: #e5e8ed; }
.xsdm-theme #ft a:hover { color: #fff; }
.xsdm-theme .comiis_footertop,
.xsdm-theme .comiis_copyright { float: none; width: auto; }
.xsdm-theme .xsdm-footer-main { background: #484749; }
.xsdm-theme .xsdm-footer-main-inner {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(100px, .6fr) minmax(100px, .6fr) minmax(180px, .9fr) minmax(280px, 1.3fr);
	gap: 28px;
	align-items: start;
	min-height: 188px;
	padding-top: 34px;
	padding-bottom: 32px;
}
.xsdm-theme .xsdm-footer-brand { min-width: 0; }
.xsdm-theme .xsdm-footer-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 10px;
	border-radius: 4px;
	background: #fff;
}
.xsdm-theme .xsdm-footer-logo img {
	display: block;
	width: 200px;
	height: 65px;
	object-fit: contain;
}
.xsdm-theme .xsdm-footer-site-name {
	display: block;
	margin-top: 11px;
	color: #cfd4dc;
	font-size: 15px;
	font-weight: 600;
}
.xsdm-theme .xsdm-footer-group h2 {
	margin: 0 0 17px;
	color: #f6f7f9;
	font-size: 17px;
	font-weight: 600;
	line-height: 24px;
}
.xsdm-theme .xsdm-footer-group,
.xsdm-theme .xsdm-footer-group a,
.xsdm-theme .xsdm-footer-group span {
	font-size: 14px;
	line-height: 24px;
}
.xsdm-theme .xsdm-footer-nav {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	text-align: left;
}
.xsdm-theme .xsdm-footer-nav-item { display: block; }
.xsdm-theme .xsdm-footer-nav-item a,
.xsdm-theme .xsdm-footer-group > a,
.xsdm-theme .xsdm-footer-group > span { color: #d3d7de; }
.xsdm-theme .xsdm-footer-about { min-width: 0; }
.xsdm-theme .xsdm-footer-about p {
	margin: 0 0 5px;
	overflow-wrap: anywhere;
}
.xsdm-theme .xsdm-footer-about p:last-child { margin-bottom: 0; }
.xsdm-theme .xsdm-footer-legal {
	min-height: 96px;
	background: #303033;
	text-align: center;
}
.xsdm-theme .xsdm-footer-legal .comiis_copyright {
	padding-top: 24px;
	padding-bottom: 22px;
	color: #c6cbd3;
	font-size: 13px;
	line-height: 22px;
	text-align: center;
}
.xsdm-theme .xsdm-footer-legal p { margin: 0; }
.xsdm-theme .xsdm-footer-legal a { color: #dce0e6; }
.xsdm-theme .xsdm-footer-extras:empty { display: none; }
.xsdm-theme .xsdm-footer-extras {
	margin-top: 5px;
	color: #aeb5bf;
}
.xsdm-theme .xsdm-footer-extras .pipe { margin: 0 7px; color: #747b85; }
.xsdm-theme .xsdm-footer-extras img { max-height: 16px; margin-left: 5px; vertical-align: middle; }

@media (max-width: 1320px) {
	.xsdm-mainbar-inner {
		grid-template-columns: 215px minmax(0, 1fr) 270px;
		gap: 18px;
	}
	.xsdm-board-logo,
	.xsdm-board-logo a,
	.xsdm-board-logo img { width: 205px; }
	#nv.xsdm-primary-nav li a { padding: 0 12px; font-size: 15px; }
	#nv.xsdm-primary-nav li.a::after { right: 12px; left: 12px; }
	.xsdm-search-wrap,
	.xsdm-search-wrap #scbar { width: 270px; }
	.xsdm-search-wrap #scbar_hot { width: 850px; }
}

@media (max-width: 1120px) {
	.xsdm-theme .xsdm-footer-main-inner {
		grid-template-columns: minmax(220px, 1fr) minmax(180px, .9fr) minmax(280px, 1.3fr);
		gap: 28px;
	}
	.xsdm-theme .xsdm-footer-brand { grid-row: span 2; }
	.xsdm-utility-action {
		width: 48px;
		padding: 0;
	}
	.xsdm-utility-action > span { display: none; }
	.xsdm-utility-action .xsdm-caret { display: none; }
	.xsdm-mainbar-inner {
		grid-template-columns: 200px minmax(0, 1fr) 245px;
		gap: 12px;
	}
	.xsdm-board-logo,
	.xsdm-board-logo a,
	.xsdm-board-logo img { width: 190px; }
	#nv.xsdm-primary-nav { overflow-x: auto; }
	#nv.xsdm-primary-nav li a { padding: 0 11px; font-size: 14px; }
	.xsdm-search-wrap,
	.xsdm-search-wrap #scbar { width: 245px; }
	.xsdm-search-wrap #scbar_hot { display: none; }
	.xsdm-subnav { min-height: 0; }
	.xsdm-subnav ul { padding-left: 218px; }
}

@media (max-width: 820px) {
	.xsdm-theme .xsdm-shell { width: calc(100% - 28px); }
	.xsdm-theme .xsdm-footer-main-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 26px 32px;
		min-height: 0;
		padding-top: 30px;
		padding-bottom: 30px;
	}
	.xsdm-theme .xsdm-footer-brand { grid-row: span 2; }
	.xsdm-theme .xsdm-footer-navigation { grid-column: 2; }
	.xsdm-utility-left { gap: 14px; }
	.xsdm-utility-left a { font-size: 12px; }
	.xsdm-mainbar-inner {
		grid-template-columns: 190px minmax(220px, 1fr);
		grid-template-rows: 66px 52px;
		gap: 0 14px;
		padding-bottom: 8px;
	}
	.xsdm-board-logo,
	.xsdm-board-logo a,
	.xsdm-board-logo img { width: 180px; height: 56px; }
	#nv.xsdm-primary-nav {
		grid-column: 1 / 3;
		grid-row: 2;
		height: 52px;
	}
	#nv.xsdm-primary-nav ul,
	#nv.xsdm-primary-nav li,
	#nv.xsdm-primary-nav li a {
		height: 52px;
		line-height: 52px;
	}
	.xsdm-search-wrap {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
	}
	.xsdm-subnav { display: none; }
	.xsdm-account-menu { transform: translateY(8px); }
}

@media (max-width: 560px) {
	.xsdm-theme #ft { margin-top: 14px; }
	.xsdm-theme .xsdm-footer-main-inner {
		display: block;
		padding-top: 26px;
		padding-bottom: 24px;
	}
	.xsdm-theme .xsdm-footer-brand,
	.xsdm-theme .xsdm-footer-group { margin-bottom: 24px; }
	.xsdm-theme .xsdm-footer-group:last-child { margin-bottom: 0; }
	.xsdm-theme .xsdm-footer-logo img { width: 180px; height: auto; }
	.xsdm-theme .xsdm-footer-site-name { margin-top: 8px; }
	.xsdm-theme .xsdm-footer-group h2 { margin-bottom: 10px; font-size: 16px; }
	.xsdm-theme .xsdm-footer-nav {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 7px 18px;
	}
	.xsdm-theme .xsdm-footer-legal .comiis_copyright {
		padding-top: 19px;
		padding-bottom: 18px;
		font-size: 12px;
		line-height: 20px;
	}
	#toptb.xsdm-utility-bar,
	.xsdm-utility-inner,
	.xsdm-utility-left,
	.xsdm-utility-right { height: 46px; }
	.xsdm-utility-left { display: none; }
	.xsdm-utility-right {
		width: 100%;
		justify-content: flex-end;
		overflow-x: auto;
	}
	.xsdm-utility-action,
	.xsdm-account-trigger,
	.xsdm-auth-link { height: 46px; }
	.xsdm-account-trigger { width: 48px; }
	.xsdm-account-trigger img { width: 34px; height: 34px; }
	.xsdm-mainbar-inner {
		grid-template-columns: 155px minmax(145px, 1fr);
		grid-template-rows: 62px 48px;
	}
	.xsdm-board-logo,
	.xsdm-board-logo a,
	.xsdm-board-logo img { width: 150px; height: 52px; }
	.xsdm-search-wrap,
	.xsdm-search-wrap #scbar { width: 100%; }
	.xsdm-search-wrap .scbar_type_td { display: none; }
	#nv.xsdm-primary-nav,
	#nv.xsdm-primary-nav ul,
	#nv.xsdm-primary-nav li,
	#nv.xsdm-primary-nav li a {
		height: 48px;
		line-height: 48px;
	}
	.xsdm-account-menu { width: min(250px, calc(100vw - 20px)) !important; }
}

/* Reference-aligned header layout. All controls below keep their native Discuz
   permission checks, counters, menus, hooks, and destinations. */
.xsdm-site-header {
	border-bottom: 0;
	background: #fff;
	box-shadow: 0 1px 4px rgba(18, 43, 78, .08);
}
.xsdm-site-header .xsdm-shell {
	width: calc(100% - 48px);
}
#hd.xsdm-mainbar {
	position: relative;
	min-height: 116px;
	background: #fff;
}
.xsdm-mainbar-inner {
	position: relative;
	display: grid;
	grid-template-columns: 210px minmax(360px, 550px) minmax(0, 1fr);
	align-items: center;
	gap: 64px;
	height: 80px;
	min-height: 80px;
}
.xsdm-board-logo {
	grid-column: 1;
	width: 200px;
	height: 64px;
}
.xsdm-board-logo a,
.xsdm-board-logo img {
	width: 200px;
	height: 64px;
}
.xsdm-search-wrap {
	grid-column: 2;
	width: 100%;
	max-width: 550px;
	padding-bottom: 14px;
}
.xsdm-search-wrap #scbar {
	width: 100%;
	height: 38px;
	border: 1px solid #cfd8e5;
	border-radius: 4px;
	background: #fff;
}
.xsdm-search-wrap #scbar_form,
.xsdm-search-wrap #scbar table,
.xsdm-search-wrap #scbar_txt {
	height: 36px;
}
.xsdm-search-wrap #scbar_txt {
	padding-left: 13px;
	line-height: 36px;
}
.xsdm-search-wrap .scbar_type_td {
	width: 64px;
}
.xsdm-search-wrap #scbar_type {
	width: 64px;
	height: 36px;
	line-height: 36px;
}
.xsdm-search-wrap .scbar_btn_td,
.xsdm-search-wrap #scbar_btn {
	width: 42px;
	height: 36px;
}
.xsdm-search-wrap #scbar_btn {
	border-radius: 0 3px 3px 0;
	background-color: #064c9d;
	background-position: 7px -133px;
}
.xsdm-search-wrap #scbar_btn:hover { background-color: #0b5bb5; }
.xsdm-search-wrap #scbar_hot {
	top: 41px;
	right: auto;
	left: 0;
	width: 100%;
	height: 22px;
	color: #66717e;
	line-height: 22px;
	text-align: left;
}
.xsdm-search-wrap #scbar_hot a { margin-left: 12px; }

#toptb.xsdm-utility-bar {
	position: absolute;
	z-index: 122;
	top: 0;
	right: max(12px, calc((100% - 1488px) / 2));
	width: max-content;
	height: 80px;
	min-width: 0;
	border: 0;
	background: transparent;
	color: #3b4656;
	overflow: visible;
}
#toptb .xsdm-utility-inner {
	width: auto;
	max-width: none;
	height: 80px;
	margin: 0;
}
#toptb .xsdm-utility-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 80px;
}
#toptb .xsdm-utility-action {
	flex-direction: column;
	gap: 3px;
	width: 46px;
	height: 64px;
	padding: 8px 4px 5px;
	border: 0;
	background: transparent !important;
	color: #3e4958 !important;
	font-size: 11px;
	line-height: 18px;
}
#toptb .xsdm-utility-action:hover,
#toptb .xsdm-utility-action.a,
#toptb .xsdm-utility-action.active {
	border-radius: 5px;
	background: #f4f7fb !important;
	color: #064c9d !important;
}
#toptb .xsdm-utility-action > i:first-child {
	font-size: 20px;
	line-height: 24px;
}
#toptb .xsdm-utility-action .xsdm-caret { display: none; }
#toptb .xsdm-portal-action {
	flex-direction: row;
	width: 72px;
	color: #0755a5 !important;
	font-size: 13px;
	font-weight: 700;
}
#toptb .xsdm-portal-action > i { display: none; }
#toptb .xsdm-diy-trigger {
	flex-direction: row;
	width: 60px;
	height: 34px;
	margin: 0 6px;
	padding: 0 9px;
	border: 1px solid #dfe5ec;
	border-radius: 5px;
	font-size: 13px;
	line-height: 32px;
}
#toptb .xsdm-diy-trigger > i:first-child { display: none; }
#toptb .xsdm-diy-trigger .xsdm-caret { display: inline-block; color: #818b98; }
#toptb #switchblind,
#toptb #switchwidth,
#toptb #sslct,
#toptb #qmenu {
	width: 38px;
	padding-right: 4px;
	padding-left: 4px;
}
#toptb #switchblind > span,
#toptb #switchwidth > span,
#toptb #sslct > span,
#toptb #qmenu > span { display: none; }
#toptb #switchblind,
#toptb #qmenu {
	position: absolute;
	top: 80px;
	z-index: 3;
	display: flex;
	flex-direction: row;
	width: 38px;
	height: 36px;
	padding: 0;
	border-radius: 0;
	color: rgba(255, 255, 255, .88) !important;
	line-height: 36px;
}
#toptb #switchblind { right: 185px; }
#toptb #qmenu { right: 147px; }
#toptb #switchblind:hover,
#toptb #qmenu:hover,
#toptb #qmenu.a {
	background: rgba(255, 255, 255, .1) !important;
	color: #fff !important;
}
#toptb #switchblind > i:first-child,
#toptb #qmenu > i:first-child {
	font-size: 16px;
	line-height: 36px;
}
.xsdm-notice-badge {
	top: 4px;
	right: 2px;
	border-color: #fff;
}
.xsdm-utility-action:hover .xsdm-notice-badge { border-color: #f4f7fb; }

#toptb .xsdm-account-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	width: 119px;
	height: 64px;
	margin: 0 4px 0 1px;
	padding: 0 5px;
	border-radius: 5px;
	background: transparent;
	color: #1f2937;
}
#toptb .xsdm-account-trigger:hover,
#toptb .xsdm-account-trigger.active { background: #f4f7fb; }
#toptb .xsdm-account-trigger img {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border: 1px solid #dbe2ea;
}
.xsdm-account-trigger-name {
	max-width: 61px;
	overflow: hidden;
	color: #1f2937;
	font-size: 14px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.xsdm-account-trigger-caret {
	flex: 0 0 auto;
	color: #596575;
	font-size: 9px;
}
#toptb .xsdm-publish-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 76px;
	height: 36px;
	margin-left: 3px;
	border-radius: 4px;
	background: #ff7200;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
}
#toptb .xsdm-publish-action:hover { background: #ed6800; }
#toptb .xsdm-publish-action i { display: none; }
#toptb .xsdm-auth-link {
	height: 64px;
	padding: 0 9px;
	color: #2f3a49 !important;
}
#toptb .xsdm-register-link {
	height: 34px;
	border: 1px solid #dbe2ea;
	color: #0755a5 !important;
	line-height: 32px;
}

#nv.xsdm-primary-nav {
	position: absolute;
	z-index: 118;
	top: 80px;
	left: 50%;
	width: 100vw;
	height: 36px;
	margin: 0;
	padding: 0;
	transform: translateX(-50%);
	background: #064c9d;
	overflow: hidden;
}
#nv.xsdm-primary-nav ul {
	width: calc(100% - 24px);
	max-width: 1488px;
	height: 36px;
	margin: 0 auto;
}
#nv.xsdm-primary-nav li,
#nv.xsdm-primary-nav li a {
	height: 36px;
	line-height: 36px;
}
#nv.xsdm-primary-nav li a {
	padding: 0 22px;
	border-right: 1px solid rgba(255, 255, 255, .16);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}
#nv.xsdm-primary-nav li a:hover {
	background: rgba(255, 255, 255, .08);
	color: #fff;
}
#nv.xsdm-primary-nav li.a,
#nv.xsdm-primary-nav li.a a {
	background: #ff7200;
	color: #fff;
}
#nv.xsdm-primary-nav li.a::after { display: none; }

#toptb .xsdm-utility-left {
	position: absolute;
	top: 80px;
	right: 0;
	display: flex;
	align-items: center;
	gap: 16px;
	height: 36px;
	padding: 0 10px;
	background: #064c9d;
	white-space: nowrap;
}
#toptb .xsdm-utility-left > a,
#toptb .xsdm-utility-left > span > a {
	color: rgba(255, 255, 255, .86);
	font-size: 12px;
	line-height: 36px;
}
#toptb .xsdm-utility-left a:hover { color: #fff; }
.xsdm-subnav {
	min-height: 0;
	margin-top: 36px;
	border-top: 0;
}
.xsdm-subnav:empty { display: none; }
.xsdm-subnav ul {
	height: 28px;
	padding-left: 12px;
}

.xsdm-account-menu {
	width: 250px !important;
	transform: none;
}
.xsdm-account-head {
	min-height: 72px;
	padding: 9px 14px;
	background: #fff;
}
.xsdm-account-avatar {
	width: 50px;
	height: 50px;
	margin-right: 11px;
}
.xsdm-account-avatar img {
	width: 50px;
	height: 50px;
	border-width: 2px;
}
.xsdm-account-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 12px;
	padding: 9px 14px 10px;
	border-top: 1px solid var(--xsdm-line);
}
#toptb .xsdm-account-grid > a {
	flex-direction: row;
	justify-content: flex-start;
	gap: 9px;
	height: 32px;
	padding: 0 3px;
	border-radius: 4px;
	background: #fff;
	text-align: left;
}
.xsdm-account-grid i {
	width: 18px;
	margin: 0;
	font-size: 16px;
	text-align: center;
}
.xsdm-account-grid span { width: auto; }
#toptb .xsdm-account-grid > .xsdm-task-link {
	grid-column: 1 / -1;
	margin-top: 7px;
	padding-top: 7px;
	border-top: 1px solid var(--xsdm-line);
}
.xsdm-account-management {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 10px;
	margin: 0 14px;
	padding: 5px 0;
}
.xsdm-account-footer { min-height: 42px; }

#toptb #switchblind {
	height: 36px !important;
	margin-top: 0 !important;
	background-image: none !important;
	text-indent: 0 !important;
}

/* On wide desktops the native search form grows into the otherwise empty
   center track, while keeping a 36px safety gap before the user controls. */
@media (min-width: 1321px) {
	.xsdm-mainbar-inner {
		grid-template-columns: 210px minmax(0, 1fr);
	}
	.xsdm-search-wrap {
		width: calc(100vw - 764px);
		max-width: 763px;
	}
}

@media (max-width: 1320px) {
	.xsdm-mainbar-inner {
		grid-template-columns: 210px minmax(360px, 550px) minmax(0, 1fr);
		gap: 64px;
	}
	.xsdm-board-logo,
	.xsdm-board-logo a,
	.xsdm-board-logo img { width: 180px; }
	#toptb.xsdm-utility-bar { right: 8px; }
	#nv.xsdm-primary-nav li a { padding: 0 19px; font-size: 14px; }
}

@media (max-width: 1120px) {
	.xsdm-mainbar-inner {
		grid-template-columns: 180px minmax(280px, 1fr) 430px;
		gap: 16px;
	}
	.xsdm-board-logo,
	.xsdm-board-logo a,
	.xsdm-board-logo img { width: 170px; }
	#toptb #switchblind,
	#toptb #switchwidth,
	#toptb #sslct { display: none; }
	#nv.xsdm-primary-nav ul { overflow-x: auto; }
}

@media (max-width: 820px) {
	#hd.xsdm-mainbar { min-height: 160px; }
	.xsdm-mainbar-inner {
		grid-template-columns: 165px minmax(0, 1fr);
		grid-template-rows: 66px 58px;
		gap: 0 12px;
		height: 124px;
		padding-bottom: 0;
	}
	.xsdm-board-logo {
		grid-column: 1;
		grid-row: 1;
	}
	.xsdm-search-wrap {
		grid-column: 1 / 3;
		grid-row: 2;
		width: 100%;
		max-width: none;
		padding: 0;
	}
	.xsdm-search-wrap #scbar_hot { display: none; }
	#toptb.xsdm-utility-bar { height: 66px; }
	#toptb .xsdm-utility-inner,
	#toptb .xsdm-utility-right { height: 66px; }
	#toptb .xsdm-utility-action,
	#toptb .xsdm-account-trigger,
	#toptb .xsdm-auth-link { height: 54px; }
	#toptb .xsdm-portal-action,
	#toptb .xsdm-diy-trigger { display: none; }
	#nv.xsdm-primary-nav { top: 124px; }
	#toptb #qmenu { top: 124px; }
	#toptb .xsdm-utility-left { top: 124px; }
	.xsdm-subnav { margin-top: 36px; }
}

@media (max-width: 560px) {
	.xsdm-site-header .xsdm-shell { width: calc(100% - 16px); }
	.xsdm-mainbar-inner { grid-template-columns: 145px minmax(0, 1fr); }
	.xsdm-board-logo,
	.xsdm-board-logo a,
	.xsdm-board-logo img { width: 140px; height: 54px; }
	#toptb.xsdm-utility-bar { right: 8px; }
	#toptb #qmenu { display: none; }
	#toptb .xsdm-account-trigger {
		width: 48px;
		padding: 0 5px;
	}
	.xsdm-account-trigger-name,
	.xsdm-account-trigger-caret { display: none; }
	#toptb .xsdm-publish-action {
		width: 48px;
		font-size: 12px;
	}
	#nv.xsdm-primary-nav ul { width: calc(100% - 16px); }
}

/* v20: final reference-aligned desktop header and permission-aware account menu. */
.xsdm-site-header {
	position: relative;
	z-index: 120;
	border: 0;
	background: #fff;
	box-shadow: 0 1px 5px rgba(18, 43, 78, .08);
}

.xsdm-site-header .xsdm-shell {
	width: calc(100% - 24px);
	max-width: 1488px;
}

#hd.xsdm-mainbar {
	position: relative;
	min-height: 144px;
	padding: 0;
	border: 0;
	background: #fff;
}

.xsdm-mainbar-inner {
	position: relative;
	display: grid;
	grid-template-columns: 250px minmax(420px, 650px) minmax(340px, 1fr);
	align-items: center;
	gap: 44px;
	height: 96px;
	min-height: 96px;
	padding: 0;
}

.xsdm-board-logo,
.xsdm-board-logo a,
.xsdm-board-logo img {
	display: block;
	width: 238px;
	height: 76px;
}

.xsdm-board-logo {
	grid-column: 1;
	margin: 0;
	overflow: hidden;
}

.xsdm-board-logo img {
	object-fit: contain;
	object-position: left center;
}

.xsdm-search-wrap {
	grid-column: 2;
	width: 100%;
	max-width: 650px;
	padding: 0 0 18px;
}

.xsdm-search-wrap #scbar {
	width: 100%;
	height: 42px;
	border: 1px solid #cfd8e5;
	border-radius: 4px;
	background: #fff;
}

.xsdm-search-wrap #scbar_form,
.xsdm-search-wrap #scbar table,
.xsdm-search-wrap #scbar_txt {
	height: 40px;
}

.xsdm-search-wrap #scbar_txt {
	padding: 0 14px;
	color: #344054;
	font-size: 13px;
	line-height: 40px;
}

.xsdm-search-wrap .scbar_type_td {
	width: 68px;
	border-left: 1px solid #e4e9f0;
}

.xsdm-search-wrap #scbar_type {
	width: 68px;
	height: 40px;
	padding: 0 17px 0 8px;
	background-position: 54px 17px;
	color: #5f6b7a !important;
	font-size: 12px;
	line-height: 40px;
}

.xsdm-search-wrap .scbar_btn_td,
.xsdm-search-wrap #scbar_btn {
	width: 44px;
	height: 40px;
}

.xsdm-search-wrap #scbar_btn {
	border-radius: 0 3px 3px 0;
	background-color: #064c9d;
	background-position: 8px -131px;
}

.xsdm-search-wrap #scbar_btn:hover { background-color: #0b5bb5; }

.xsdm-search-wrap #scbar_hot {
	top: 46px;
	right: auto;
	left: 0;
	width: 100%;
	height: 24px;
	color: #66717e;
	font-size: 12px;
	line-height: 24px;
	text-align: left;
}

.xsdm-search-wrap #scbar_hot strong { color: #394657; }
.xsdm-search-wrap #scbar_hot a {
	margin-left: 12px;
	color: #596779 !important;
}

#toptb.xsdm-utility-bar {
	position: absolute;
	z-index: 124;
	top: 0;
	right: max(12px, calc((100% - 1488px) / 2 + 12px));
	width: max-content;
	height: 96px;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #344054;
	overflow: visible;
}

#toptb .xsdm-utility-inner {
	width: auto;
	max-width: none;
	height: 96px;
	margin: 0;
}

#toptb .xsdm-utility-left { display: none; }

#toptb .xsdm-utility-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
	width: auto;
	height: 96px;
	overflow: visible;
}

/* These native tools remain in the DOM for Discuz compatibility. The chosen
   desktop composition exposes its primary destinations through the account
   menu and keeps the top row focused on communication and publishing. */
#toptb #switchblind,
#toptb #switchwidth,
#toptb #sslct,
#toptb #qmenu {
	display: none !important;
}

#toptb .xsdm-utility-action {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 50px;
	height: 70px;
	margin: 0;
	padding: 7px 3px 4px;
	border: 0;
	border-radius: 6px;
	background: transparent !important;
	color: #27364a !important;
	font-size: 11px;
	line-height: 17px;
}

#toptb .xsdm-utility-action:hover,
#toptb .xsdm-utility-action.a,
#toptb .xsdm-utility-action.active {
	background: #f5f8fc !important;
	color: #0755a5 !important;
}

#toptb .xsdm-utility-action > i:first-child {
	font-size: 21px;
	line-height: 24px;
}

.xsdm-notice-badge {
	top: 7px;
	right: 3px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border: 2px solid #fff;
	border-radius: 10px;
	background: #f04438;
	font: 700 10px/14px Arial, sans-serif;
}

#toptb .xsdm-account-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 7px;
	width: 118px;
	height: 70px;
	margin: 0 3px 0 5px;
	padding: 0 7px;
	border-radius: 6px;
	background: transparent;
	color: #172033;
}

#toptb .xsdm-account-trigger:hover,
#toptb .xsdm-account-trigger.active { background: #f5f8fc; }

#toptb .xsdm-account-trigger img {
	width: 40px;
	height: 40px;
	border: 1px solid #d7dfe9;
}

.xsdm-account-trigger-name {
	max-width: 58px;
	color: #172033;
	font-size: 14px;
	font-weight: 700;
}

.xsdm-account-trigger-caret {
	color: #566274;
	font-size: 9px;
}

#toptb .xsdm-publish-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 40px;
	margin: 0 0 0 2px;
	padding: 0 9px;
	border-radius: 5px;
	background: #ff7200;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

#toptb .xsdm-publish-action:hover { background: #ed6800; }
#toptb .xsdm-publish-action i { display: none; }

#toptb .xsdm-auth-link {
	height: 40px;
	padding: 0 10px;
	color: #27364a !important;
}

#toptb .xsdm-register-link {
	border-color: #d6dee8;
	color: #0755a5 !important;
}

#nv.xsdm-primary-nav {
	position: absolute;
	z-index: 118;
	top: 96px;
	left: 50%;
	width: 100vw;
	height: 48px;
	margin: 0;
	padding: 0;
	transform: translateX(-50%);
	background: #064c9d;
	overflow: hidden;
}

#nv.xsdm-primary-nav ul {
	display: flex;
	align-items: stretch;
	width: calc(100% - 48px);
	max-width: 1418px;
	height: 48px;
	margin: 0 auto;
	padding: 0;
	overflow-x: auto;
	white-space: nowrap;
}

#nv.xsdm-primary-nav li,
#nv.xsdm-primary-nav li a {
	height: 48px;
	line-height: 48px;
}

#nv.xsdm-primary-nav li {
	display: flex;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	background: transparent;
}

#nv.xsdm-primary-nav li a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	border-right: 0;
	background: transparent;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-shadow: none;
}

#nv.xsdm-primary-nav li a:hover {
	background: rgba(255, 255, 255, .08);
	color: #fff;
}

#nv.xsdm-primary-nav li.a,
#nv.xsdm-primary-nav li.a a {
	background: #ff7200;
	color: #fff;
}

#nv.xsdm-primary-nav li.a::after { display: none; }

.xsdm-subnav {
	min-height: 0;
	margin-top: 48px;
	border: 0;
}

.xsdm-subnav:empty { display: none; }

.xsdm-subnav ul {
	width: calc(100% - 24px);
	max-width: 1488px;
	height: 30px;
	padding-left: 12px;
	line-height: 30px;
}

/* Compact account popover from the approved reference. */
.xsdm-account-menu {
	z-index: 999 !important;
	width: 320px !important;
	height: auto !important;
	max-height: calc(100vh - 82px);
	margin: 0 !important;
	padding: 0 16px 8px !important;
	border: 1px solid #edf1f5 !important;
	border-radius: 9px !important;
	background: #fff !important;
	box-shadow: 0 12px 36px rgba(18, 43, 78, .18) !important;
	transform: none !important;
	overflow: visible !important;
}

.xsdm-account-pointer {
	position: absolute;
	top: -14px;
	right: 95px;
	color: #fff;
	font-size: 25px;
	line-height: 1;
	text-shadow: 0 -1px 0 #dfe5ec;
}

#toptb .xsdm-account-menu a {
	float: none;
	height: auto;
	padding: 0;
	border: 0 !important;
	color: #172033;
	text-decoration: none !important;
}

.xsdm-account-head {
	display: flex;
	align-items: center;
	min-height: 76px;
	padding: 9px 2px 7px;
	background: #fff;
}

.xsdm-account-avatar {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	margin-right: 11px;
}

.xsdm-account-avatar img {
	width: 48px;
	height: 48px;
	border: 2px solid #eef2f7;
	box-shadow: 0 2px 9px rgba(27, 61, 99, .12);
}

.xsdm-account-name-row {
	display: flex;
	align-items: center;
	gap: 7px;
}

.xsdm-account-name {
	max-width: 122px;
	color: #10182b !important;
	font-size: 16px;
	font-weight: 700;
}

.xsdm-online-dot {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #12ad68;
}

.xsdm-login-status,
.xsdm-login-status a {
	color: #1769e0 !important;
	font-size: 12px;
}

.xsdm-account-meta {
	gap: 8px;
	margin-top: 5px;
	color: #536079;
	font-size: 12px;
}

.xsdm-account-meta > span {
	height: 13px;
	background: #d3dae4;
}

.xsdm-account-meta a {
	max-width: 122px;
	color: #536079 !important;
	font-size: 12px;
	text-decoration: none !important;
}

.xsdm-account-section { padding: 0 2px; }

.xsdm-account-section-title {
	display: flex;
	align-items: center;
	gap: 0;
	height: 28px;
	color: #405171;
	font-size: 13px;
	font-weight: 500;
}

.xsdm-account-section-title > span { flex: 0 0 auto; }
.xsdm-account-section-title > i {
	display: none;
}

.xsdm-account-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	padding: 0 0 4px;
	border-top: 0;
}

#toptb .xsdm-account-grid > a {
	position: relative;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 6px;
	border: 0 !important;
	border-radius: 0;
	background: #fff;
	color: #101828 !important;
	font-size: 13px;
	text-align: left;
}

#toptb .xsdm-account-grid > a:nth-child(odd) {
	border-right: 0 !important;
}

#toptb .xsdm-account-grid > a:hover { background: #f8fbff; }

.xsdm-account-grid i,
.xsdm-account-setting-link > i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	border-radius: 8px;
	background: #f4f7fc;
	color: #111b31;
	font-size: 16px;
	line-height: 1;
}

.xsdm-account-grid > a:hover i { color: #1769e0; }
.xsdm-account-grid span { width: auto; }

.xsdm-account-hook-list {
	margin: 0 2px 8px;
	padding: 0;
}

.xsdm-account-settings { padding-bottom: 2px; }

#toptb .xsdm-account-setting-link {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	width: 50%;
	height: 44px;
	padding: 0 6px;
	border: 0 !important;
	border-radius: 6px;
	color: #101828 !important;
	font-size: 13px;
}

#toptb .xsdm-account-setting-link:hover { background: #f8fbff; }

.xsdm-account-management {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 0;
	margin: 2px 0 6px;
	padding: 3px 2px;
	border: 0;
	border-radius: 8px;
	background: #f4f7fc;
}

#toptb .xsdm-account-management > a,
#toptb .xsdm-account-diy {
	flex: 1 1 0;
	min-width: 0;
}

#toptb .xsdm-account-management > a,
#toptb .xsdm-account-diy > #diy-tg {
	display: flex !important;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100% !important;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 4px !important;
	border: 0 !important;
	border-right: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #172033 !important;
	font-size: 12px !important;
	font-weight: 400;
	line-height: 40px !important;
	white-space: nowrap;
}

#toptb .xsdm-account-management > a:last-child,
#toptb .xsdm-account-diy:last-child > #diy-tg {
	border-right: 0 !important;
}

#toptb .xsdm-account-management > a:hover,
#toptb .xsdm-account-diy > #diy-tg:hover {
	background: #eaf2ff !important;
	color: #0755a5 !important;
}

.xsdm-account-management > a > i,
#toptb .xsdm-account-diy > #diy-tg > i:first-child {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	color: #1769e0;
	font-size: 15px;
	line-height: 26px;
}

#toptb .xsdm-account-diy > #diy-tg .xsdm-caret { display: none; }

.xsdm-account-diy { position: relative; }
.xsdm-account-diy .xsdm-diy-menu {
	display: none !important;
	position: absolute !important;
	z-index: 1001 !important;
	right: 0 !important;
	bottom: calc(100% - 2px) !important;
	left: auto !important;
	top: auto !important;
	min-width: 126px;
	margin: 0 !important;
	padding: 5px !important;
	border: 1px solid #e7ecf2 !important;
	border-radius: 7px !important;
	background: #fff !important;
	box-shadow: 0 8px 22px rgba(18, 43, 78, .14) !important;
}

.xsdm-account-diy:hover .xsdm-diy-menu,
.xsdm-account-diy:focus-within .xsdm-diy-menu {
	display: block !important;
}

#toptb .xsdm-account-diy .xsdm-diy-menu a {
	display: block;
	padding: 7px 10px !important;
	border: 0 !important;
	border-radius: 5px;
	color: #172033 !important;
	font-size: 12px;
	line-height: 20px;
	white-space: nowrap;
}

#toptb .xsdm-account-diy .xsdm-diy-menu a:hover,
#toptb .xsdm-account-diy .xsdm-diy-menu a:focus {
	background: #eef5ff;
	color: #0755a5 !important;
}

.xsdm-account-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin: 0;
	padding: 2px 0 0;
	border-top: 0;
}

#toptb .xsdm-logout-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 6px 10px;
	color: #ff4848 !important;
	font-size: 13px;
}

.xsdm-logout-link i { font-size: 15px; }
.xsdm-account-hook:empty,
.xsdm-account-hook-list:empty { display: none; }

@media (max-width: 1320px) {
	.xsdm-mainbar-inner {
		grid-template-columns: 210px minmax(360px, 560px) minmax(300px, 1fr);
		gap: 28px;
	}
	.xsdm-board-logo,
	.xsdm-board-logo a,
	.xsdm-board-logo img { width: 205px; }
	.xsdm-search-wrap { max-width: 560px; }
	#nv.xsdm-primary-nav li a { padding: 0 20px; }
}

@media (max-width: 1120px) {
	.xsdm-mainbar-inner {
		grid-template-columns: 180px minmax(280px, 1fr);
		gap: 20px;
		padding-right: 225px;
	}
	.xsdm-board-logo,
	.xsdm-board-logo a,
	.xsdm-board-logo img { width: 175px; }
	.xsdm-search-wrap { grid-column: 2; max-width: none; }
	.xsdm-search-wrap #scbar_hot { display: none; }
	#toptb .xsdm-utility-action { width: 42px; }
	#toptb .xsdm-utility-action > span { display: none; }
	#toptb .xsdm-account-trigger { width: 48px; padding: 0 4px; }
	.xsdm-account-trigger-name,
	.xsdm-account-trigger-caret { display: none; }
	#nv.xsdm-primary-nav li a { padding: 0 17px; font-size: 16px; }
}

@media (max-width: 820px) {
	#hd.xsdm-mainbar { min-height: 128px; }
	.xsdm-mainbar-inner {
		grid-template-columns: 170px minmax(0, 1fr);
		height: 80px;
		min-height: 80px;
		padding-right: 190px;
	}
	.xsdm-board-logo,
	.xsdm-board-logo a,
	.xsdm-board-logo img { width: 165px; height: 64px; }
	.xsdm-search-wrap { display: none; }
	#toptb.xsdm-utility-bar,
	#toptb .xsdm-utility-inner,
	#toptb .xsdm-utility-right { height: 80px; }
	#toptb .xsdm-utility-action,
	#toptb .xsdm-account-trigger { height: 62px; }
	#toptb .xsdm-publish-action { width: 72px; height: 36px; font-size: 13px; }
	#nv.xsdm-primary-nav { top: 80px; }
	.xsdm-subnav { margin-top: 48px; }
	.xsdm-account-menu {
		width: min(320px, calc(100vw - 16px)) !important;
		max-height: calc(100vh - 72px);
		overflow-x: hidden !important;
		overflow-y: auto !important;
	}
}

@media (max-width: 560px) {
	.xsdm-site-header .xsdm-shell { width: calc(100% - 16px); }
	.xsdm-mainbar-inner {
		grid-template-columns: 145px minmax(0, 1fr);
		padding-right: 164px;
	}
	.xsdm-board-logo,
	.xsdm-board-logo a,
	.xsdm-board-logo img { width: 142px; height: 58px; }
	#toptb.xsdm-utility-bar { right: 8px; }
	#toptb .xsdm-message-action,
	#toptb .xsdm-reminder-action { width: 38px; }
	#toptb .xsdm-account-trigger { width: 43px; margin-left: 1px; }
	#toptb .xsdm-account-trigger img { width: 34px; height: 34px; }
	#toptb .xsdm-publish-action { width: 58px; padding: 0 5px; font-size: 12px; }
	#nv.xsdm-primary-nav ul { width: calc(100% - 16px); }
	.xsdm-account-menu { padding-right: 16px !important; padding-left: 16px !important; }
	#toptb .xsdm-account-grid > a {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 8px;
		padding: 0 8px;
		font-size: 14px;
	}
	.xsdm-account-grid i,
	.xsdm-account-setting-link > i { width: 40px; height: 40px; font-size: 20px; }
	#toptb .xsdm-account-management > a,
	#toptb .xsdm-account-diy > #diy-tg { gap: 4px; padding: 0 4px !important; font-size: 13px !important; }
}

/* v25: avatar-only account trigger, nav publishing action and direct DIY modes. */
#toptb .xsdm-account-trigger {
	justify-content: center;
	gap: 0;
	width: 54px;
	margin: 0;
	padding: 0 6px;
}

#toptb .xsdm-account-trigger-name,
#toptb .xsdm-account-trigger-caret {
	display: none !important;
}

.xsdm-account-pointer {
	right: 22px;
}

#nv.xsdm-primary-nav.xsdm-primary-nav-has-publish ul {
	box-sizing: border-box;
	padding-right: 112px;
}

#nv.xsdm-primary-nav .xsdm-nav-publish {
	position: absolute;
	z-index: 2;
	top: 0;
	right: max(24px, calc((100% - 1418px) / 2));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 104px;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	box-sizing: border-box;
	background: #ff7200;
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 48px;
	white-space: nowrap;
}

#nv.xsdm-primary-nav .xsdm-nav-publish:hover,
#nv.xsdm-primary-nav .xsdm-nav-publish:focus {
	background: #ed6800;
	color: #fff !important;
	text-decoration: none;
}

#nv.xsdm-primary-nav .xsdm-nav-publish i {
	font-size: 15px;
	line-height: 1;
}

#toptb .xsdm-account-diy .xsdm-diy-menu {
	display: none !important;
}

#controlnav .xsdm-diy-mode-switch {
	float: right;
	margin-right: 5px;
	border: 1px solid #cbd8e8;
	border-radius: 3px;
	background: #fff;
	font-weight: 400;
}

#controlnav .xsdm-diy-mode-switch a {
	padding: 0 12px !important;
	background: none !important;
	color: #31506f !important;
}

#controlnav .xsdm-diy-mode-switch.xsdm-diy-mode-active {
	border-color: #1769e0;
	background: #1769e0;
}

#controlnav .xsdm-diy-mode-switch.xsdm-diy-mode-active a {
	color: #fff !important;
}

#samplepanel .xsdm-diy-enter-advanced {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	margin-left: 12px;
	padding: 0 14px;
	border: 1px solid #1769e0;
	border-radius: 3px;
	background: #1769e0;
	color: #fff !important;
	font-size: 13px;
	line-height: 26px;
	text-decoration: none;
}

#samplepanel .xsdm-diy-enter-advanced:hover,
#samplepanel .xsdm-diy-enter-advanced:focus {
	border-color: #0d55b8;
	background: #0d55b8;
	color: #fff !important;
}

/* v34: Discuz gives .mitem a 36px content-box width. This template uses a
   global border-box reset, so the native padding squeezed Chinese labels down
   to one character per line. Keep the native commands and fix presentation. */
.xsdm-theme #edit_menu.edit-menu {
	box-sizing: border-box;
	min-width: 96px;
	padding: 5px;
	border: 1px solid #d9e2ee;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(18, 43, 78, .16);
	font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.xsdm-theme #edit_menu.edit-menu ul {
	margin: 0;
	padding: 0;
}

.xsdm-theme #edit_menu.edit-menu .mitem {
	display: block;
	box-sizing: border-box;
	width: 84px;
	min-width: 84px;
	height: 30px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 4px;
	color: #344054;
	font-size: 13px;
	font-weight: 400;
	line-height: 30px;
	text-align: left;
	white-space: nowrap;
	word-break: keep-all;
	overflow: hidden;
}

.xsdm-theme #edit_menu.edit-menu .mitem:hover {
	background: #eef5ff;
	color: #0755a5;
}

@media (max-width: 820px) {
	#nv.xsdm-primary-nav.xsdm-primary-nav-has-publish ul {
		padding-right: 96px;
	}

	#nv.xsdm-primary-nav .xsdm-nav-publish {
		right: 8px;
		width: 88px;
		padding: 0 8px;
		font-size: 13px;
	}
}

@media (max-width: 560px) {
	#toptb .xsdm-account-trigger {
		width: 43px;
		padding: 0 4px;
	}

	#nv.xsdm-primary-nav .xsdm-nav-publish {
		width: 82px;
	}

	#nv.xsdm-primary-nav .xsdm-nav-publish i {
		display: none;
	}
}

/* v29: centered reference-matched native Discuz search form. */
.xsdm-search-wrap {
	position: absolute;
	top: 50%;
	left: 50%;
	grid-column: auto;
	width: 100%;
	max-width: 550px;
	transform: translate(-50%, -50%);
}

.xsdm-search-wrap #scbar {
	box-sizing: border-box;
	height: 40px;
	border: 1px solid #cfd8e5;
	border-radius: 4px;
	background: #fff;
	line-height: normal;
	overflow: visible;
}

.xsdm-search-wrap #scbar_form,
.xsdm-search-wrap #scbar table {
	width: 100%;
	height: 38px;
	margin: 0;
}

.xsdm-search-wrap #scbar table {
	table-layout: fixed;
}

.xsdm-search-wrap .scbar_icon_td {
	display: none;
}

.xsdm-search-wrap .scbar_txt_td {
	width: auto;
	background: none;
}

.xsdm-search-wrap #scbar_txt {
	box-sizing: border-box;
	width: 100%;
	height: 38px;
	padding: 0 14px;
	border: 0;
	outline: 0;
	background: transparent;
	color: #344054;
	font-size: 13px;
	line-height: 38px;
}

.xsdm-search-wrap .scbar_type_td {
	width: 70px;
	height: 38px;
	padding: 0;
	border-left: 1px solid #e2e7ee;
	background: none;
}

.xsdm-search-wrap #scbar_type {
	position: relative;
	display: block;
	box-sizing: border-box;
	width: 70px;
	height: 38px;
	padding: 0 22px 0 10px;
	border: 0 !important;
	background: none;
	box-shadow: none !important;
	color: #566274 !important;
	font-size: 12px;
	font-weight: 400;
	line-height: 38px;
	text-align: center;
	text-decoration: none;
}

.xsdm-search-wrap #scbar_type::after {
	content: "\f229";
	position: absolute;
	top: 0;
	right: 11px;
	font-family: "bootstrap-icons" !important;
	font-size: 8px;
	font-style: normal;
	line-height: 38px;
	color: #8b96a5;
}

.xsdm-search-wrap .scbar_btn_td {
	width: 40px;
	height: 38px;
	padding: 0;
	background: none;
}

.xsdm-search-wrap #scbar_btn {
	position: relative;
	display: block;
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	margin: -1px -1px -1px 0 !important;
	padding: 0;
	border: 0 !important;
	border-radius: 0 4px 4px 0;
	background: #064c9d !important;
	box-shadow: none !important;
	color: transparent;
	font-size: 0;
	line-height: 40px;
	text-align: center;
	text-indent: 0;
	cursor: pointer;
	overflow: hidden;
}

.xsdm-search-wrap #scbar_btn::before {
	content: "\f52a";
	display: block;
	font-family: "bootstrap-icons" !important;
	font-size: 18px;
	font-style: normal;
	font-weight: 400 !important;
	line-height: 40px;
	color: #fff;
}

.xsdm-search-wrap #scbar_btn strong {
	display: none;
}

.xsdm-search-wrap #scbar_btn:hover,
.xsdm-search-wrap #scbar_btn:focus {
	background: #0b5bb5 !important;
}

.xsdm-search-wrap #scbar_hot {
	top: 40px;
	right: auto;
	left: 0;
	box-sizing: border-box;
	width: 100%;
	height: 22px;
	padding-left: 0;
	color: #66717e;
	font-size: 12px;
	line-height: 22px;
	text-align: left;
}

/* v49: final 1200px header/footer alignment, class-only sticky geometry,
   DIY-panel-aware offset and account-menu stacking above the primary navigation.
   This block intentionally lives
   after the historical desktop header layers so they cannot restore 1488px. */
.xsdm-site-header .xsdm-shell,
.xsdm-theme .xsdm-footer-main-inner,
.xsdm-theme .xsdm-footer-legal > .xsdm-shell {
	max-width: 1200px;
}

#toptb.xsdm-utility-bar {
	z-index: 1002;
	right: max(12px, calc((100% - 1200px) / 2));
}

#nv.xsdm-primary-nav {
	transition: opacity .16s ease, box-shadow .16s ease;
}

#nv.xsdm-primary-nav ul {
	max-width: 1200px;
}

#nv.xsdm-primary-nav .xsdm-nav-publish {
	right: max(24px, calc((100% - 1200px) / 2));
}

.xsdm-subnav ul {
	max-width: 1200px;
}

html body.xsdm-theme #nv.xsdm-primary-nav.xsdm-nav-stuck {
	position: fixed !important;
	z-index: 980;
	top: var(--xsdm-nav-sticky-top, 0px) !important;
	right: 0 !important;
	left: 0 !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	box-sizing: border-box;
	margin-right: 0 !important;
	margin-left: 0 !important;
	transform: none !important;
	opacity: .85;
	box-shadow: 0 5px 16px rgba(6, 76, 157, .2);
}

html body.xsdm-theme.xsdm-diy-active #nv.xsdm-primary-nav.xsdm-nav-stuck {
	position: absolute !important;
	z-index: 118;
	top: 96px !important;
	right: auto !important;
	left: 50% !important;
	width: 100vw !important;
	transform: translateX(-50%) !important;
	opacity: 1;
	box-shadow: none;
}

@media (max-width: 820px) {
	#toptb.xsdm-utility-bar { right: 8px; }
	html body.xsdm-theme.xsdm-diy-active #nv.xsdm-primary-nav.xsdm-nav-stuck { top: 80px !important; }
	#nv.xsdm-primary-nav .xsdm-nav-publish { right: 8px; }
}

/* v51: move the width switch into the avatar account popover footer. */
#toptb #xsdm_account_menu .xsdm-account-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	min-height: 42px;
	margin: 0;
	padding: 8px 0 0;
	border-top: 0;
}

#toptb #xsdm_account_menu .xsdm-account-footer .xsdm-account-hook:not(:empty) {
	flex: 0 0 100%;
	margin-bottom: 8px;
}

#toptb #xsdm_account_menu .xsdm-account-footer > a,
#toptb #xsdm_account_menu #switchwidth {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 1 1 0;
	min-width: 0;
	width: auto !important;
	height: 34px;
	box-sizing: border-box;
	padding: 0 10px !important;
	border-radius: 8px;
	font-size: 13px;
	line-height: 34px;
	position: static !important;
	text-decoration: none !important;
	white-space: nowrap;
}

#toptb #xsdm_account_menu #switchwidth > span {
	display: inline !important;
	width: auto !important;
}

#toptb #xsdm_account_menu #switchwidth {
	color: #0755a5 !important;
	border: 1px solid #dceafe;
	background: #f3f8ff;
}

#toptb #xsdm_account_menu #switchwidth:hover {
	color: #003f8f !important;
	border-color: #bfd8ff;
	background: #eaf3ff;
}

#toptb #xsdm_account_menu .xsdm-logout-link {
	color: #ff4848 !important;
	border: 1px solid #ffe0df;
	background: #fff6f5;
}

#toptb #xsdm_account_menu .xsdm-logout-link:hover {
	color: #e5443d !important;
	border-color: #ffc8c6;
	background: #fff0ef;
}

/* v52: account footer actions are plain text links, left and right. */
#toptb #xsdm_account_menu .xsdm-account-footer {
	justify-content: space-between;
	gap: 0;
}

#toptb #xsdm_account_menu .xsdm-account-footer > a,
#toptb #xsdm_account_menu #switchwidth {
	flex: 0 0 auto;
	width: auto !important;
	height: auto;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	line-height: 20px;
}

#toptb #xsdm_account_menu .xsdm-account-footer > a > i,
#toptb #xsdm_account_menu #switchwidth > i {
	display: none !important;
}

#toptb #xsdm_account_menu .xsdm-logout-link {
	margin-left: auto;
}

#toptb #xsdm_account_menu .xsdm-switchwidth-link + .xsdm-logout-link {
	margin-left: 16px;
}

/* v54: regular-weight primary navigation labels. */
#nv.xsdm-primary-nav li a,
#nv.xsdm-primary-nav li.a a,
#nv.xsdm-primary-nav .xsdm-nav-publish {
	font-weight: 400;
}

/* v55: protect the maintained header from legacy compatibility selectors. */
.xsdm-account-menu .xsdm-account-name:hover,
.xsdm-account-menu .xsdm-account-meta a:hover,
.xsdm-account-menu .xsdm-login-status a:hover {
	background: transparent !important;
}

.xsdm-account-menu .xsdm-account-grid > a {
	background: #fff !important;
}

.xsdm-account-menu .xsdm-account-grid > a:hover,
.xsdm-account-menu .xsdm-account-setting-link:hover,
.xsdm-account-menu .xsdm-account-hook-list a:hover {
	background: #f8fbff !important;
	color: #0755a5 !important;
}

.xsdm-account-menu .xsdm-account-management > a:hover,
.xsdm-account-menu .xsdm-account-diy > #diy-tg:hover {
	background: #eaf2ff !important;
	color: #0755a5 !important;
}

/* v56: legacy pop-up menus and profile cards use a forced blue hover
   background. Keep their labels and nested text readable on that surface. */
body.xsdm-theme :is(
	.p_pop:not(.xsdm-account-menu):not(#newspecial_menu),
	.card
) a:hover,
body.xsdm-theme :is(
	.p_pop:not(.xsdm-account-menu):not(#newspecial_menu),
	.card
) a:hover :is(span, em, strong, i, cite) {
	color: #fff !important;
	text-shadow: none !important;
}

/* v58: keep the native inckr/Discuz block editor geometry intact. The block
   editor templates deliberately use a 490px content-box pane; modern global
   modal and button rules must not enlarge its header or squeeze its footer. */
body.xsdm-theme #fwin_showblock,
body.xsdm-theme #fwin_showblock *,
body.xsdm-theme #fwin_showblock *::before,
body.xsdm-theme #fwin_showblock *::after {
	box-sizing: content-box;
}

body.xsdm-theme #fwin_showblock .m_c {
	overflow: visible;
	background: #fff;
	color: #333;
	font-size: 12px;
}

body.xsdm-theme #fwin_showblock .m_c > .flb {
	height: 20px;
	padding: 10px 10px 8px;
	border: 0;
	background: #fff;
	line-height: 20px;
}

body.xsdm-theme #fwin_showblock .m_c > .flb em,
body.xsdm-theme #fwin_showblock .m_c > .flb span {
	line-height: 20px;
}

body.xsdm-theme #fwin_showblock .m_c > .tb {
	margin: 0 0 10px;
	padding: 0 10px;
	min-height: 30px;
	overflow: visible;
}

body.xsdm-theme #fwin_showblock .m_c > form > .c {
	padding: 15px;
	border-radius: 5px;
	background: #fff;
}

body.xsdm-theme #fwin_showblock .m_c > form > .o.pns {
	clear: both;
	height: 26px;
	padding: 8px 10px;
	border-top: 1px solid #ccc;
	background: #f2f2f2;
	overflow: visible;
	text-align: right;
}

body.xsdm-theme #fwin_showblock .pn,
body.xsdm-theme #fwin_showblock .pn.pnc {
	height: 28px;
	padding: 0;
	border: 1px solid #1769e0 !important;
	border-radius: 2px;
	background: #1769e0 !important;
	color: #fff !important;
	font-size: 12px;
	line-height: 26px;
}

body.xsdm-theme #fwin_showblock .pn em,
body.xsdm-theme #fwin_showblock .pn span,
body.xsdm-theme #fwin_showblock .pn strong {
	padding: 0 13px;
	font-weight: 400;
	line-height: 26px;
}

body.xsdm-theme #fwin_showblock .dt {
	width: 100%;
}

body.xsdm-theme #fwin_showblock .tfm th,
body.xsdm-theme #fwin_showblock .tfm td,
body.xsdm-theme #fwin_showblock .tfm :is(.px, .pt, .ps) {
	font-size: 14px;
}

@media (max-width: 560px) {
	body.xsdm-theme #fwin_showblock .m_c {
		max-width: calc(100vw - 24px);
	}

	body.xsdm-theme #fwin_showblock .m_c > form > .c[style*="width: 490px"],
	body.xsdm-theme #fwin_showblock .m_c > form > .c[style*="width:490px"] {
		box-sizing: border-box;
		width: calc(100vw - 64px) !important;
	}
}

/* v61: keep Discuz's permission-aware native search-type menu attached to
   the transformed header search bar. showMenu() writes document coordinates,
   so the final local coordinates must win inside this containing block. The
   #hd-qualified rules isolate it from the legacy 140px pop-up menu and match
   the compact, trigger-width dropdown used by the maintained header. */
.xsdm-search-wrap {
	z-index: 1003;
}

#hd .xsdm-search-wrap #scbar_type_menu {
	top: 40px !important;
	right: 40px !important;
	left: auto !important;
	box-sizing: border-box;
	width: 70px;
	min-width: 70px;
	margin: 0 !important;
	padding: 0;
	overflow: hidden;
	border: 1px solid #d9e2ee;
	border-top: 0;
	border-radius: 0 0 5px 5px;
	background: #fff;
	box-shadow: 0 7px 18px rgba(15, 39, 71, 0.14);
}

#hd .xsdm-search-wrap #scbar_type_menu li {
	float: none;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 1px solid #edf1f6;
	line-height: 38px;
}

#hd .xsdm-search-wrap #scbar_type_menu li:last-child {
	border-bottom: 0;
}

#hd .xsdm-search-wrap #scbar_type_menu li a {
	position: relative;
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #344054 !important;
	font-size: 12px;
	font-weight: 400;
	line-height: 38px;
	text-align: center !important;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

#hd .xsdm-search-wrap #scbar_type_menu li a.curtype {
	background: transparent !important;
	color: #344054 !important;
}

#hd .xsdm-search-wrap #scbar_type_menu li a:hover,
#hd .xsdm-search-wrap #scbar_type_menu li a:focus {
	border: 0;
	background: var(--xsdm-blue) !important;
	color: #fff !important;
	text-decoration: none;
	text-shadow: none;
	outline: 0;
	box-shadow: none;
}

/* v62: data-first mobile header. The desktop header remains unchanged; at
   phone width the real Discuz navigation becomes a compact horizontal rail. */
@media (max-width: 760px) {
	html,
	body.xsdm-theme {
		max-width: 100%;
		overflow-x: hidden;
	}

	body.xsdm-theme .xsdm-site-header {
		min-height: 102px;
		background: #fff;
	}

	body.xsdm-theme #hd.xsdm-mainbar {
		min-height: 102px;
		border-bottom: 0;
	}

	body.xsdm-theme .xsdm-mainbar-inner {
		display: flex;
		align-items: center;
		box-sizing: border-box;
		height: 58px;
		min-height: 58px;
		padding: 0 136px 0 0;
	}

	body.xsdm-theme .xsdm-board-logo,
	body.xsdm-theme .xsdm-board-logo a,
	body.xsdm-theme .xsdm-board-logo img {
		width: 142px;
		height: 52px;
	}

	body.xsdm-theme .xsdm-board-logo img {
		object-fit: contain;
		object-position: left center;
	}

	body.xsdm-theme #toptb.xsdm-utility-bar {
		top: 0;
		right: 8px;
		width: auto;
		height: 58px;
		background: transparent;
	}

	body.xsdm-theme #toptb .xsdm-utility-inner,
	body.xsdm-theme #toptb .xsdm-utility-right {
		width: auto;
		height: 58px;
		min-height: 58px;
		margin: 0;
	}

	body.xsdm-theme #toptb .xsdm-utility-left,
	body.xsdm-theme #toptb #switchblind,
	body.xsdm-theme #toptb #qmenu,
	body.xsdm-theme .xsdm-search-wrap,
	body.xsdm-theme .xsdm-subnav {
		display: none !important;
	}

	body.xsdm-theme #toptb .xsdm-utility-right {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 2px;
		overflow: visible;
	}

	body.xsdm-theme #toptb .xsdm-utility-action,
	body.xsdm-theme #toptb .xsdm-account-trigger {
		height: 50px;
	}

	body.xsdm-theme #toptb .xsdm-message-action,
	body.xsdm-theme #toptb .xsdm-reminder-action {
		width: 36px;
	}

	body.xsdm-theme #toptb .xsdm-account-trigger {
		width: 42px;
		margin-left: 0;
	}

	body.xsdm-theme #toptb .xsdm-auth-link {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		height: 34px;
		padding: 0 9px;
		border-radius: 4px;
		color: #0755a5 !important;
		font-size: 13px;
		line-height: 34px;
	}

	body.xsdm-theme #toptb .xsdm-register-link {
		background: #0755a5;
		color: #fff !important;
	}

	body.xsdm-theme #nv.xsdm-primary-nav {
		top: 58px;
		right: 0;
		left: 0;
		width: 100%;
		height: 44px;
		transform: none;
		box-shadow: none;
		overflow: hidden;
	}

	body.xsdm-theme #nv.xsdm-primary-nav ul {
		display: flex;
		align-items: stretch;
		box-sizing: border-box;
		width: 100%;
		max-width: none;
		height: 44px;
		margin: 0;
		padding: 0 8px;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	body.xsdm-theme #nv.xsdm-primary-nav.xsdm-primary-nav-has-publish ul {
		padding-right: 88px;
	}

	body.xsdm-theme #nv.xsdm-primary-nav ul::-webkit-scrollbar {
		display: none;
	}

	body.xsdm-theme #nv.xsdm-primary-nav li {
		flex: 0 0 auto;
		height: 44px;
	}

	body.xsdm-theme #nv.xsdm-primary-nav li a {
		height: 44px;
		padding: 0 14px;
		font-size: 14px;
		line-height: 44px;
		white-space: nowrap;
	}

	body.xsdm-theme #nv.xsdm-primary-nav .xsdm-nav-publish {
		top: 0;
		right: 0;
		width: 82px;
		height: 44px;
		border-radius: 0;
		font-size: 13px;
		line-height: 44px;
	}

	html body.xsdm-theme #nv.xsdm-primary-nav.xsdm-nav-stuck {
		top: var(--xsdm-nav-sticky-top, 0px) !important;
		height: 44px;
	}
}

@media (max-width: 380px) {
	body.xsdm-theme .xsdm-mainbar-inner {
		padding-right: 118px;
	}

	body.xsdm-theme .xsdm-board-logo,
	body.xsdm-theme .xsdm-board-logo a,
	body.xsdm-theme .xsdm-board-logo img {
		width: 126px;
	}

	body.xsdm-theme #toptb .xsdm-message-action,
	body.xsdm-theme #toptb .xsdm-reminder-action {
		width: 32px;
	}
}

/* v63: responsive portal header and real navigation drawer. */
.xsdm-responsive-menu-toggle,
.xsdm-responsive-menu-mask,
.xsdm-responsive-menu {
	display: none;
}

@media (max-width: 760px) {
	body#nv_portal.pg_index {
		--xsdm-mobile-header-height: clamp(68px, 15.733vw, 118px);
	}

	body#nv_portal.pg_index > .xi1.bm.bm_c {
		display: none !important;
	}

	body#nv_portal.pg_index .xsdm-site-header {
		min-height: var(--xsdm-mobile-header-height);
		border-bottom: 1px solid #e3e8ef;
		box-shadow: 0 3px 12px rgba(24, 43, 70, 0.05);
	}

	body#nv_portal.pg_index #hd.xsdm-mainbar {
		min-height: var(--xsdm-mobile-header-height);
	}

	body#nv_portal.pg_index .xsdm-mainbar-inner {
		display: flex;
		align-items: center;
		box-sizing: border-box;
		width: 100%;
		height: var(--xsdm-mobile-header-height);
		min-height: var(--xsdm-mobile-header-height);
		margin: 0;
		padding: 0 clamp(150px, 29.6vw, 222px) 0 clamp(14px, 3.733vw, 28px);
	}

	body#nv_portal.pg_index .xsdm-board-logo,
	body#nv_portal.pg_index .xsdm-board-logo a {
		width: clamp(146px, 43vw, 280px);
		height: auto;
		max-height: calc(var(--xsdm-mobile-header-height) - 16px);
		overflow: visible;
	}

	body#nv_portal.pg_index .xsdm-board-logo img {
		display: block;
		width: 100%;
		height: auto;
		max-height: calc(var(--xsdm-mobile-header-height) - 16px);
		object-fit: contain;
		object-position: left center;
	}

	body#nv_portal.pg_index #nv.xsdm-primary-nav,
	body#nv_portal.pg_index .xsdm-search-wrap,
	body#nv_portal.pg_index .xsdm-subnav {
		display: none !important;
	}

	body#nv_portal.pg_index #toptb.xsdm-utility-bar {
		top: 0;
		right: clamp(74px, 14.8vw, 111px);
		z-index: 4;
		width: auto;
		height: var(--xsdm-mobile-header-height);
	}

	body#nv_portal.pg_index #toptb .xsdm-utility-inner,
	body#nv_portal.pg_index #toptb .xsdm-utility-right {
		height: var(--xsdm-mobile-header-height);
		min-height: var(--xsdm-mobile-header-height);
	}

	body#nv_portal.pg_index #toptb .xsdm-utility-right > * {
		display: none !important;
	}

	body#nv_portal.pg_index #toptb .xsdm-utility-right > .xsdm-auth-link:not(.xsdm-register-link),
	body#nv_portal.pg_index #toptb .xsdm-utility-right > .xsdm-account-trigger {
		display: inline-flex !important;
	}

	body#nv_portal.pg_index #toptb .xsdm-auth-link:not(.xsdm-register-link) {
		box-sizing: border-box;
		width: clamp(72px, 14.933vw, 112px);
		height: clamp(42px, 8vw, 60px);
		padding: 0;
		border-radius: clamp(5px, 1.067vw, 8px);
		background: #0755a5;
		color: #fff !important;
		font-size: clamp(17px, 3.2vw, 24px);
		font-weight: 700;
		line-height: clamp(42px, 8vw, 60px);
		text-align: center;
	}

	body#nv_portal.pg_index #toptb .xsdm-account-trigger {
		width: clamp(42px, 7.467vw, 56px);
		height: clamp(42px, 7.467vw, 56px);
	}

	body#nv_portal.pg_index #toptb .xsdm-account-trigger img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	body#nv_portal.pg_index .xsdm-responsive-menu-toggle {
		position: absolute;
		top: 50%;
		right: clamp(14px, 3.733vw, 28px);
		z-index: 5;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		width: clamp(46px, 8.267vw, 62px);
		height: clamp(46px, 8.267vw, 62px);
		padding: 0;
		border: 0;
		border-radius: clamp(5px, 1.067vw, 8px);
		background: #26313f;
		color: #fff;
		font-size: clamp(29px, 5.6vw, 42px);
		line-height: 1;
		transform: translateY(-50%);
		cursor: pointer;
	}

	body#nv_portal.pg_index .xsdm-responsive-menu-toggle i {
		line-height: 1;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-mask {
		position: fixed;
		inset: 0;
		z-index: 300;
		width: 100%;
		height: 100%;
		padding: 0;
		border: 0;
		background: rgba(15, 28, 44, 0.48);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, visibility 0.2s ease;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 301;
		display: block;
		box-sizing: border-box;
		width: min(82vw, 360px);
		padding: 0 20px calc(24px + env(safe-area-inset-bottom));
		background: #fff;
		box-shadow: -18px 0 45px rgba(15, 28, 44, 0.16);
		transform: translateX(105%);
		transition: transform 0.24s ease;
		overflow-y: auto;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu > header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 72px;
		border-bottom: 1px solid #e6ebf1;
		color: #182334;
		font-size: 18px;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu > header button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #26313f;
		font-size: 24px;
		cursor: pointer;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu nav ul {
		margin: 10px 0 0;
		padding: 0;
		list-style: none;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu nav li {
		margin: 0;
		border-bottom: 1px solid #eef1f5;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu nav li a {
		display: flex;
		align-items: center;
		min-height: 52px;
		padding: 0 4px;
		color: #273346;
		font-size: 16px;
		font-weight: 600;
		text-decoration: none;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-links {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		margin-top: 22px;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-links a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 7px;
		min-height: 76px;
		border-radius: 8px;
		background: #f2f7fd;
		color: #0755a5;
		font-size: 12px;
		text-align: center;
		text-decoration: none;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-links i {
		font-size: 23px;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme).xsdm-responsive-menu-open {
		overflow: hidden;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme).xsdm-responsive-menu-open .xsdm-responsive-menu-mask {
		display: block;
		opacity: 1;
		visibility: visible;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme).xsdm-responsive-menu-open .xsdm-responsive-menu {
		transform: translateX(0);
	}
}

/* v64: use the same Comiis-style left drawer on both responsive entry modes. */
@media (max-width: 760px) {
	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu {
		right: auto;
		left: 0;
		display: flex;
		flex-direction: column;
		width: min(68vw, 280px);
		max-width: calc(100vw - 42px);
		padding: 0;
		box-shadow: 12px 0 34px rgba(15, 28, 44, 0.18);
		transform: translateX(-105%);
		overflow: hidden;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-user {
		position: relative;
		box-sizing: border-box;
		flex: 0 0 calc(158px + env(safe-area-inset-top, 0px));
		height: calc(158px + env(safe-area-inset-top, 0px));
		padding-top: env(safe-area-inset-top, 0px);
		background: #071c33 url("../touch/assets/comiis/home_bg.jpg") no-repeat center top;
		background-size: 100% auto;
		color: #fff;
		overflow: hidden;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-user::after {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		height: 80px;
		background: #082b5d;
		content: "";
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-user.is-logged-in {
		background: #10233b url("../assets/space-profile-cover.png") center center / cover no-repeat;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-user.is-logged-in::after {
		background: rgba(0, 12, 27, 0.38);
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-profile {
		position: relative;
		z-index: 2;
		display: block;
		box-sizing: border-box;
		height: 100%;
		padding: 14px 14px 10px;
		color: #fff !important;
		text-decoration: none;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-profile > span {
		display: block;
		box-sizing: border-box;
		width: 60px;
		height: 60px;
		margin-bottom: 20px;
		padding: 2px;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.42);
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-profile img {
		display: block;
		width: 56px;
		height: 56px;
		border-radius: 50%;
		object-fit: cover;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-profile strong {
		display: block;
		height: 27px;
		color: #fff;
		font-size: 22px;
		font-weight: 400;
		line-height: 27px;
		text-overflow: ellipsis;
		white-space: nowrap;
		overflow: hidden;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-profile small {
		display: block;
		height: 22px;
		color: rgba(255, 255, 255, 0.82);
		font-size: 12px;
		line-height: 22px;
		text-overflow: ellipsis;
		white-space: nowrap;
		overflow: hidden;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-close,
	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-secondary {
		position: absolute;
		top: calc(10px + env(safe-area-inset-top, 0px));
		z-index: 4;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		height: 30px;
		border: 0;
		border-radius: 4px;
		background: rgba(0, 0, 0, 0.5);
		color: #fff !important;
		text-decoration: none;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-close {
		right: 10px;
		width: 30px;
		padding: 0;
		font-size: 16px;
		cursor: pointer;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-secondary {
		right: 50px;
		padding: 0 8px;
		font-size: 13px;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-scroll {
		flex: 1 1 auto;
		padding: 5px 0 18px 14px;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu nav ul {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu nav li {
		margin: 3px 0 0;
		border: 0;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu nav li a,
	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-links a {
		display: flex;
		align-items: center;
		box-sizing: border-box;
		min-height: 38px;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: #444 !important;
		font-size: 16px;
		font-weight: 400;
		line-height: 38px;
		text-align: left;
		text-decoration: none;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu nav li a > i,
	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-links a > i {
		flex: 0 0 22px;
		width: 22px;
		margin-right: 5px;
		color: #1769e0;
		font-size: 18px;
		line-height: 1;
		text-align: center;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-links {
		display: block;
		width: calc(100% - 14px);
		margin: 6px 0 0;
		padding: 6px 0 0;
		border-top: 1px solid #eceff3;
	}

	body:is(#nv_portal.pg_index, .xsdm-credit-page.xsdm-theme) .xsdm-responsive-menu-links a {
		min-height: 38px;
	}
}

/* v67: use the same complete SVG icons in the responsive drawer. */
@media (max-width: 760px) {
	.xsdm-responsive-menu nav li a > .xsdm-sidebar-nav-icon,
	.xsdm-responsive-menu .xsdm-responsive-menu-links a > .xsdm-sidebar-nav-icon {
		display: block;
		flex: 0 0 24px;
		box-sizing: border-box;
		width: 24px;
		height: 24px;
		margin-right: 7px;
		overflow: visible;
	}
}

/* v70: match the responsive portal controls to the compact touch header. */
@media (max-width: 760px) {
	body#nv_portal.pg_index {
		--xsdm-mobile-header-edge: clamp(14px, 3.733vw, 28px);
		--xsdm-mobile-header-action-gap: clamp(12px, 3.59vw, 16px);
		--xsdm-mobile-header-action-size: clamp(30px, 5.526vw, 42px);
		--xsdm-mobile-header-login-width: clamp(44px, 9.474vw, 72px);
		--xsdm-mobile-header-account-size: clamp(30px, 5vw, 38px);
		--xsdm-mobile-header-reserved: calc(var(--xsdm-mobile-header-edge) + var(--xsdm-mobile-header-action-size) + var(--xsdm-mobile-header-action-gap) + var(--xsdm-mobile-header-login-width));
	}

	body#nv_portal.pg_index .xsdm-mainbar-inner {
		padding-right: var(--xsdm-mobile-header-reserved);
		padding-left: var(--xsdm-mobile-header-edge);
	}

	body#nv_portal.pg_index .xsdm-board-logo,
	body#nv_portal.pg_index .xsdm-board-logo a {
		width: min(clamp(146px, 43vw, 280px), calc(100vw - var(--xsdm-mobile-header-reserved) - var(--xsdm-mobile-header-edge)));
		min-width: 0;
	}

	body#nv_portal.pg_index #toptb.xsdm-utility-bar {
		right: calc(var(--xsdm-mobile-header-edge) + var(--xsdm-mobile-header-action-size) + var(--xsdm-mobile-header-action-gap));
	}

	body#nv_portal.pg_index #toptb .xsdm-auth-link:not(.xsdm-register-link) {
		width: var(--xsdm-mobile-header-login-width);
		height: var(--xsdm-mobile-header-action-size);
		border-radius: 2px;
		font-size: clamp(12px, 2.4vw, 16px);
		line-height: var(--xsdm-mobile-header-action-size);
	}

	body#nv_portal.pg_index #toptb .xsdm-account-trigger,
	body#nv_portal.pg_index #toptb .xsdm-account-trigger img {
		width: var(--xsdm-mobile-header-account-size);
		height: var(--xsdm-mobile-header-account-size);
	}

	body#nv_portal.pg_index .xsdm-responsive-menu-toggle {
		right: var(--xsdm-mobile-header-edge);
		width: var(--xsdm-mobile-header-action-size);
		height: var(--xsdm-mobile-header-action-size);
		border-radius: 2px;
		font-size: clamp(18px, 3.4vw, 26px);
	}
}

/* Keep the last narrow desktop step in the original 80px + 48px geometry. */
@media (min-width: 761px) and (max-width: 820px) {
	body#nv_portal.pg_index .xsdm-site-header,
	body#nv_portal.pg_index #hd.xsdm-mainbar {
		min-height: 128px;
	}

	body#nv_portal.pg_index .xsdm-mainbar-inner {
		position: relative;
		height: 80px;
		min-height: 80px;
	}

	body#nv_portal.pg_index #nv.xsdm-primary-nav {
		position: absolute !important;
		top: 80px !important;
		right: auto !important;
		bottom: auto !important;
		left: 50% !important;
		display: block !important;
		width: 100vw !important;
		height: 48px !important;
		margin: 0 !important;
		transform: translateX(-50%) !important;
	}

	body#nv_portal.pg_index #nv.xsdm-primary-nav ul,
	body#nv_portal.pg_index #nv.xsdm-primary-nav li,
	body#nv_portal.pg_index #nv.xsdm-primary-nav li a {
		height: 48px;
		line-height: 48px;
	}

	html body#nv_portal.pg_index #nv.xsdm-primary-nav.xsdm-nav-stuck {
		position: fixed !important;
		top: var(--xsdm-nav-sticky-top, 0px) !important;
		right: 0 !important;
		left: 0 !important;
		width: auto !important;
		transform: none !important;
	}
}
