/* ==========================================================================
   Modern front-end skin
   Loaded after the legacy theme so it can refine colours, spacing and
   responsive behaviour without touching the PHPWind templates.
   ========================================================================== */

:root {
	--pw-canvas: #f4f7f5;
	--pw-card: #ffffff;
	--pw-ink: #17211d;
	--pw-muted: #6c7b75;
	--pw-line: #e2e8e4;
	--pw-primary: #41bdfb;
	--pw-primary-dark: #189bd8;
	--pw-soft: #e9f6fe;
	--pw-radius: 12px;
	--pw-shadow: none;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--pw-canvas) !important;
	color: var(--pw-ink) !important;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif !important;
	font-size: 14px !important;
	line-height: 1.65 !important;
}

.main {
	width: 100% !important;
	max-width: 1016px;
	margin: 0 auto !important;
	padding: 16px 12px 32px !important;
	box-sizing: border-box;
}

.main a {
	color: #0f5c45;
}

.main a:hover {
	color: var(--pw-primary);
}

.main img {
	max-width: 100%;
	height: auto;
}

/* ---- homepage top: logo, recommendation chips, promo strips ------------ */
.main img[src*="logo1.gif"] {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	display: block;
	margin: 0 auto 12px;
}

.main iframe {
	display: block;
	max-width: 100%;
	margin: 0 auto;
	border: 0;
}

table[style*="border-color:#ccc"] {
	display: block !important;
	width: 100% !important;
	max-width: 992px;
	margin: 12px auto !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	border-collapse: separate !important;
}

table[style*="border-color:#ccc"] tbody {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

table[style*="border-color:#ccc"] tr {
	display: contents !important;
}

table[style*="border-color:#ccc"] td {
	display: block !important;
	width: auto !important;
	padding: 11px 14px !important;
	background: var(--pw-card) !important;
	border: 1px solid var(--pw-line) !important;
	border-radius: 10px;
	text-align: center;
}

table[style*="border-color:#ccc"] td a {
	display: block;
	color: var(--pw-ink) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.45 !important;
	text-decoration: none !important;
}

table[style*="border-color:#ccc"] td a:hover {
	color: var(--pw-primary) !important;
}

table[style*="background:green"],
table[style*="background:#b80000"] {
	display: block !important;
	width: 100% !important;
	max-width: 992px;
	margin: 10px auto !important;
	border: 0 !important;
	border-radius: 10px;
	overflow: hidden;
}

table[style*="background:green"] {
	background: linear-gradient(135deg, #12b76a, #008f47) !important;
}

table[style*="background:#b80000"] {
	background: linear-gradient(135deg, #f04438, #b42318) !important;
}

table[style*="background:green"] td,
table[style*="background:#b80000"] td {
	display: block !important;
	padding: 10px 14px !important;
}

table[style*="background:green"] td a,
table[style*="background:#b80000"] td a {
	display: block;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.5 !important;
	letter-spacing: 0 !important;
	text-decoration: none !important;
}

table[style*="background:green"] td a:hover,
table[style*="background:#b80000"] td a:hover {
	color: #fff !important;
	opacity: .9;
}

.spaceborder .guide form {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.spaceborder .guide span {
	font-size: 13px !important;
}

.spaceborder .guide font[face="Wingdings"] {
	display: none !important;
}

.spaceborder input.button {
	max-width: 100%;
	height: auto !important;
	padding: 5px 10px !important;
	border: 1px solid #dfe7e2 !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: var(--pw-ink) !important;
	font-size: 13px !important;
	box-sizing: border-box;
}

.spaceborder input.btn {
	padding: 7px 16px !important;
	border: 0 !important;
	border-radius: 9999px !important;
	background: var(--pw-primary) !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 600 !important;
}

.spaceborder .pw-post-btn,
.spaceborder .pw-login-btn,
.spaceborder .pw-register-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	vertical-align: middle;
	box-sizing: border-box;
}

.spaceborder .pw-post-btn {
	height: 26px;
	padding: 0 12px;
	border: 1px solid var(--pw-primary);
	background: var(--pw-primary);
	color: #fff !important;
	font-size: 12px;
}

.spaceborder .pw-post-btn:hover {
	background: var(--pw-primary-dark);
	border-color: var(--pw-primary-dark);
	color: #fff !important;
}

.spaceborder .pw-login-btn {
	height: 32px;
	padding: 0 18px;
	border: 1px solid var(--pw-primary);
	background: var(--pw-primary);
	color: #fff;
	font-size: 13px;
	cursor: pointer;
}

.spaceborder .pw-login-btn:hover {
	background: var(--pw-primary-dark);
	border-color: var(--pw-primary-dark);
}

.spaceborder .pw-register-btn {
	height: 32px;
	padding: 0 16px;
	border: 1px solid var(--pw-primary);
	background: #fff;
	color: var(--pw-primary) !important;
	font-size: 13px;
}

.spaceborder .pw-register-btn:hover {
	background: var(--pw-soft);
}

/* ---- guest login / search panel ----------------------------------------- */
.pw-auth-card {
	padding: 2px 0;
}

.pw-login-form {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: end;
	-ms-flex-align: end;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 12px;
}

.pw-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 150px;
}

.pw-field > span {
	padding-left: 2px;
	color: var(--pw-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
}

.pw-field input.button {
	width: 170px !important;
	max-width: 100%;
	height: 38px !important;
	padding: 0 12px !important;
	border: 1px solid #dfe7e2 !important;
	border-radius: 9px !important;
	background: #fff !important;
	color: var(--pw-ink) !important;
	font-size: 13px !important;
	line-height: 38px !important;
	box-sizing: border-box;
}

.pw-field input.button:focus {
	border-color: var(--pw-primary) !important;
	box-shadow: 0 0 0 3px rgba(0, 166, 81, .12) !important;
	outline: none;
}

.pw-auth-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pw-auth-card .pw-login-btn,
.pw-auth-card .pw-register-btn {
	height: 38px;
	padding: 0 20px;
	letter-spacing: 2px;
}

.pw-search-form {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 8px;
}

.pw-search-form input.button {
	width: 220px !important;
	max-width: 100%;
	height: 38px !important;
	padding: 0 12px !important;
	border: 1px solid #dfe7e2 !important;
	border-radius: 9px !important;
	background: #fff !important;
	color: var(--pw-muted) !important;
	font-size: 13px !important;
	box-sizing: border-box;
}

.pw-search-form .btn {
	height: 38px !important;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 9999px !important;
	background: var(--pw-primary) !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 600 !important;
}

/* ---- login / register inner pages --------------------------------------- */
.main .t th.h {
	padding: 12px 16px !important;
	border-bottom: 1px solid var(--pw-line) !important;
	background: #f7faf8 !important;
	color: var(--pw-ink) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-align: left !important;
}

.main .t th.h a {
	color: var(--pw-ink) !important;
}

.main .t th.h img {
	margin-right: 4px;
	vertical-align: middle;
}

.main .regItem {
	max-width: 820px;
	margin: 0 auto !important;
	padding-bottom: 20px !important;
}

.main .regItem dl {
	display: grid !important;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 8px 14px;
	align-items: start;
	margin: 0 0 12px !important;
	padding: 0 !important;
}

.main .regItem dl:has(> dd.regTips) {
	grid-template-columns: 110px 250px minmax(0, 1fr);
}

.main .regItem dl:has(> dd > .blockquote) {
	grid-template-columns: 1fr !important;
}

.main .regItem dl:has(> dd > .blockquote) > dt {
	display: none !important;
}

.main .regItem dt {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--pw-muted);
	font-size: 13px !important;
	font-weight: 500;
	line-height: 38px !important;
	text-align: right !important;
}

.main .regItem dd {
	float: none !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--pw-muted);
	font-size: 12px !important;
	line-height: 1.7 !important;
}

.main .regItem dd.regTips {
	width: auto !important;
	padding: 0 !important;
	color: var(--pw-muted);
}

.main .regItem input.button,
.main .regItem input[type="text"],
.main .regItem input[type="password"],
.main .regItem input[type="email"] {
	display: block;
	width: 100% !important;
	max-width: 360px;
	height: 38px !important;
	padding: 0 12px !important;
	border: 1px solid #dfe7e2 !important;
	border-radius: 9px !important;
	background: #fff !important;
	color: var(--pw-ink) !important;
	font-size: 13px !important;
	line-height: 38px !important;
	box-sizing: border-box;
}

.main .regItem input.button:focus,
.main .regItem input[type="text"]:focus,
.main .regItem input[type="password"]:focus,
.main .regItem input[type="email"]:focus {
	border-color: var(--pw-primary) !important;
	box-shadow: 0 0 0 3px rgba(0, 166, 81, .12) !important;
	outline: none;
}

.main .regItem input[type="radio"],
.main .regItem input[type="checkbox"] {
	margin: 0 4px 0 0;
	vertical-align: -2px;
	accent-color: var(--pw-primary);
}

.main .regItem dd a {
	color: var(--pw-primary) !important;
	font-size: 12.5px;
	font-weight: 500;
	text-decoration: none;
}

.main .regItem dd a:hover {
	text-decoration: underline;
}

.main .regItem .blockquote {
	margin: 0 0 12px !important;
	padding: 10px 14px !important;
	border: 1px solid #f0dfb2 !important;
	border-radius: 9px;
	background: #fff9e9 !important;
	color: #7a5b00 !important;
	font-size: 12.5px !important;
	line-height: 1.7 !important;
}

.main .regItem .btn {
	width: auto !important;
	min-width: 130px;
	height: 40px !important;
	padding: 0 28px !important;
	border: 0 !important;
	border-radius: 9999px !important;
	background: var(--pw-primary) !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer;
}

.main .regItem .btn:hover {
	background: var(--pw-primary-dark) !important;
}

.main .regItem .bt {
	width: auto !important;
	height: 40px !important;
	margin-left: 8px;
	padding: 0 24px !important;
	border: 1px solid #dfe7e2 !important;
	border-radius: 9999px !important;
	background: #fff !important;
	color: var(--pw-muted) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer;
}

.main .regItem .bt:hover {
	border-color: var(--pw-primary);
	color: var(--pw-primary) !important;
}

/* register.php uses a decorative .bottom wrapper instead of .t */
.main > div > .f16.b.s5 {
	padding: 12px 16px !important;
	border: 1px solid var(--pw-line);
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	background: #f7faf8;
	color: var(--pw-ink) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
}

.main > div > .f16.b.s5 a {
	color: var(--pw-ink) !important;
}

.main > div > .f16.b.s5 img {
	margin-right: 4px;
	vertical-align: middle;
}

.main .bottom {
	margin-top: 0 !important;
}

.main .bottom > .y-bg,
.main .bottom > .y-bg2,
.main .bottom > .y-bg3 {
	display: none !important;
}

.main .bottom > .y-bg4 {
	margin-top: 0 !important;
	border: 1px solid var(--pw-line);
	border-radius: 0 0 12px 12px;
	background: var(--pw-card) !important;
	box-shadow: var(--pw-shadow);
}

.main .y-bg4 .b.f14 {
	color: var(--pw-ink) !important;
	font-size: 14px !important;
}

.main .bottom {
	max-width: 992px;
	margin-right: auto !important;
	margin-left: auto !important;
}

/* sendpwd.php uses a simple header/field table */
.main .t.pw-simple-form {
	padding: 0 !important;
}

.pw-simple-form table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.pw-simple-form table th,
.pw-simple-form table td {
	padding: 10px 16px !important;
	border: 0 !important;
	background: transparent !important;
	vertical-align: middle;
}

.pw-simple-form table th {
	width: 140px !important;
	color: var(--pw-muted);
	font-size: 13px !important;
	font-weight: 500 !important;
	text-align: right !important;
}

.pw-simple-form table td {
	color: var(--pw-muted);
	font-size: 12px;
}

.pw-simple-form th.h {
	width: 100% !important;
	padding: 12px 16px !important;
	border-bottom: 1px solid var(--pw-line) !important;
	background: #f7faf8 !important;
	color: var(--pw-ink) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-align: left !important;
}

.pw-simple-form tr:first-child th.h + th.h {
	display: none !important;
}

.main .pw-simple-form input.button,
.main .pw-simple-form input[type="text"] {
	width: 100% !important;
	max-width: 360px;
	height: 38px !important;
	padding: 0 12px !important;
	border: 1px solid #dfe7e2 !important;
	border-radius: 9px !important;
	background: #fff !important;
	color: var(--pw-ink) !important;
	font-size: 13px !important;
	line-height: 38px !important;
	box-sizing: border-box;
}

.main .pw-simple-form select {
	width: 100% !important;
	max-width: 360px;
	height: 38px !important;
	padding: 0 10px !important;
	border: 1px solid #dfe7e2 !important;
	border-radius: 9px !important;
	background: #fff !important;
	color: var(--pw-ink) !important;
	font-size: 13px !important;
	box-sizing: border-box;
}

.main .pw-simple-form .btn {
	width: auto !important;
	min-width: 130px;
	height: 40px !important;
	padding: 0 28px !important;
	border: 0 !important;
	border-radius: 9999px !important;
	background: var(--pw-primary) !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer;
}

.main .pw-simple-form .btn:hover {
	background: var(--pw-primary-dark) !important;
}

/* ---- reference-style auth pages ------------------------------------------ */
.pw-auth-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: calc(100vh - 120px);
	padding: 24px 0;
}

.pw-auth-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 380px;
	margin: 0 auto 16px;
	box-sizing: border-box;
}

.pw-auth-brand {
	color: var(--pw-ink) !important;
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
}

.pw-auth-back {
	color: var(--pw-muted) !important;
	font-size: 13px;
	text-decoration: none;
}

.pw-auth-back:hover {
	color: var(--pw-primary) !important;
}

.pw-auth-page .pw-auth-card {
	width: 100%;
	max-width: 380px;
	padding: 24px;
	border: 1px solid var(--pw-line);
	border-radius: 12px;
	background: #fff;
	box-sizing: border-box;
}

.pw-auth-title {
	margin: 0;
	color: var(--pw-ink);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.5;
}

.pw-auth-sub {
	margin: 4px 0 18px;
	color: var(--pw-muted);
	font-size: 13px;
	line-height: 1.5;
}

.pw-auth-field {
	display: block;
	margin: 0 0 12px;
}

.pw-auth-label {
	display: block;
	margin-bottom: 4px;
	color: var(--pw-muted);
	font-size: 12px;
	font-weight: 500;
}

.pw-auth-page .pw-auth-card input.button,
.pw-auth-page .pw-auth-card select {
	display: block;
	width: 100% !important;
	height: 43px !important;
	padding: 0 12px !important;
	border: 1px solid var(--pw-line) !important;
	border-radius: 8px !important;
	background: var(--pw-canvas) !important;
	color: var(--pw-ink) !important;
	font-size: 14px !important;
	line-height: 43px !important;
	box-sizing: border-box;
}

.pw-auth-page .pw-auth-card select {
	padding: 0 8px !important;
}

.pw-auth-page .pw-auth-card input.button:focus,
.pw-auth-page .pw-auth-card select:focus {
	border-color: var(--pw-primary) !important;
	box-shadow: 0 0 0 3px rgba(65, 189, 251, .16) !important;
	outline: none;
}

.pw-auth-type {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pw-auth-question {
	display: block;
	margin: 0 0 6px;
	color: var(--pw-muted);
	font-size: 12px;
	line-height: 1.5;
}

.pw-auth-code {
	margin: -4px 0 12px;
	color: var(--pw-primary);
	font-size: 12px;
	cursor: pointer;
}

.pw-auth-btn {
	display: block;
	width: 100%;
	height: 40px;
	margin-top: 20px;
	border: 0;
	border-radius: 9999px;
	background: var(--pw-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.pw-auth-btn:hover {
	background: var(--pw-primary-dark);
}

.pw-auth-foot {
	margin: 20px 0 0;
	color: var(--pw-muted);
	font-size: 13px;
	line-height: 1.6;
	text-align: center;
}

.pw-auth-foot a {
	margin: 0 2px;
	color: var(--pw-primary) !important;
	font-weight: 600;
	text-decoration: none;
}

.pw-auth-foot a:hover {
	text-decoration: underline;
}

.pw-auth-dot {
	margin: 0 6px;
	color: #b9c6c0;
}

.pw-register-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 24px 0;
}

.main .pw-register-page > .f16.b.s5 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 380px;
	margin: 0 auto 16px;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--pw-ink) !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 1.5;
	box-sizing: border-box;
}

.main .pw-register-page > .f16.b.s5 img {
	margin-right: 4px;
	vertical-align: middle;
}

.main .pw-register-page > .bottom {
	width: 100%;
	max-width: 380px;
	margin: 0 auto !important;
}

.pw-register-page .y-bg4 {
	padding: 0 !important;
	border: 1px solid var(--pw-line) !important;
	border-radius: 12px !important;
	background: #fff !important;
	box-shadow: none !important;
}

.pw-register-page .y-bg4 > .p10.cc {
	padding: 22px 24px 24px !important;
}

.pw-register-page .regItem {
	max-width: none;
	padding-bottom: 0 !important;
}

.pw-register-page .pw-auth-title {
	margin-bottom: 2px;
}

.pw-register-page .pw-auth-sub {
	margin: 0 0 16px;
}

.pw-register-page .regItem dl {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 4px;
	margin: 0 0 8px !important;
	padding: 0 !important;
}

.pw-register-page .regItem dl[style*="display:none"] {
	display: none !important;
}

.pw-register-page .regItem > dl:has(> dd > .blockquote) {
	display: none !important;
}

.pw-register-page .regItem dt {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--pw-muted);
	font-size: 12px !important;
	font-weight: 500;
	line-height: 1.4 !important;
	text-align: left !important;
}

.pw-register-page .regItem dd {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--pw-muted);
	font-size: 11px !important;
	line-height: 1.45 !important;
}

.pw-register-page .regItem dd.regTips {
	width: 100% !important;
	height: auto !important;
	color: var(--pw-muted);
	font-size: 11px;
	line-height: 1.4;
}

.pw-register-page .regItem input.button,
.pw-register-page .regItem input[type="text"],
.pw-register-page .regItem input[type="password"],
.pw-register-page .regItem input[type="email"],
.pw-register-page .regItem select {
	display: block;
	width: 100% !important;
	height: 42px !important;
	padding: 0 13px !important;
	border: 1px solid #dfe7e2 !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--pw-ink) !important;
	font-size: 14px !important;
	line-height: 42px !important;
	box-shadow: 0 1px 0 rgba(16, 37, 27, .02);
	-webkit-transition: border-color .18s, box-shadow .18s;
	transition: border-color .18s, box-shadow .18s;
	box-sizing: border-box;
}

.pw-register-page .regItem input.button:hover,
.pw-register-page .regItem input[type="text"]:hover,
.pw-register-page .regItem input[type="password"]:hover,
.pw-register-page .regItem input[type="email"]:hover,
.pw-register-page .regItem select:hover {
	border-color: #c8d6cf !important;
}

.pw-register-page .regItem textarea {
	display: block;
	width: 100% !important;
	min-height: 84px;
	padding: 10px 13px !important;
	border: 1px solid #dfe7e2 !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--pw-ink) !important;
	font-family: inherit !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
	box-sizing: border-box;
	resize: vertical;
}

.pw-register-page .regItem input.button::-webkit-input-placeholder,
.pw-register-page .regItem input[type="text"]::-webkit-input-placeholder,
.pw-register-page .regItem input[type="password"]::-webkit-input-placeholder,
.pw-register-page .regItem input[type="email"]::-webkit-input-placeholder {
	color: #9aa6a0;
}

.pw-register-page .regItem input.button::-moz-placeholder,
.pw-register-page .regItem input[type="text"]::-moz-placeholder,
.pw-register-page .regItem input[type="password"]::-moz-placeholder,
.pw-register-page .regItem input[type="email"]::-moz-placeholder {
	color: #9aa6a0;
	opacity: 1;
}

.pw-register-page .regItem input.button:-ms-input-placeholder,
.pw-register-page .regItem input[type="text"]:-ms-input-placeholder,
.pw-register-page .regItem input[type="password"]:-ms-input-placeholder,
.pw-register-page .regItem input[type="email"]:-ms-input-placeholder {
	color: #9aa6a0;
}

.pw-register-page .regItem input.button:focus,
.pw-register-page .regItem input[type="text"]:focus,
.pw-register-page .regItem input[type="password"]:focus,
.pw-register-page .regItem input[type="email"]:focus,
.pw-register-page .regItem select:focus {
	border-color: var(--pw-primary) !important;
	box-shadow: 0 0 0 3px rgba(65, 189, 251, .16) !important;
	outline: none;
}

.pw-register-page .regItem .btn {
	width: 100% !important;
	height: 44px !important;
	margin-top: 10px;
	border: 0 !important;
	border-radius: 9999px !important;
	background: var(--pw-primary) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 1px;
	box-shadow: 0 6px 16px rgba(65, 189, 251, .28);
	cursor: pointer;
	-webkit-transition: background .18s, box-shadow .18s;
	transition: background .18s, box-shadow .18s;
}

.pw-register-page .regItem .btn:hover {
	background: var(--pw-primary-dark) !important;
	box-shadow: 0 8px 20px rgba(24, 155, 216, .3);
}

.main .pw-register-page .regItem .btn {
	height: 44px !important;
	font-size: 15px !important;
}

.pw-register-page .regItem .bt {
	display: none !important;
}

.pw-register-page .regItem .pw-auth-foot {
	margin-top: 12px;
	color: var(--pw-muted);
	font-size: 12.5px;
}

.pw-register-page .regItem input[type="radio"],
.pw-register-page .regItem input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0 5px 0 0;
	vertical-align: -3px;
	accent-color: var(--pw-primary);
}

/* password strength: one compact line (label + bar + rating) */
.pw-register-page .regItem dl.pw-strength {
	display: -webkit-box !important;
	display: -ms-flexbox !important;
	display: flex !important;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px !important;
}

.pw-register-page .regItem dl.pw-strength > dt {
	display: none !important;
}

.pw-register-page .regItem dl.pw-strength > dd {
	width: auto !important;
	min-width: 0;
}

.pw-register-page .regItem dl.pw-strength > dd:first-of-type {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 8px;
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
}

.pw-register-page .regItem dl.pw-strength .fl {
	float: none !important;
}

.pw-register-page .regItem dl.pw-strength div.fl:first-child {
	color: var(--pw-muted);
	font-size: 11px;
	white-space: nowrap;
}

.pw-register-page .regItem dl.pw-strength div.fl:last-child {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	width: auto !important;
	margin: 0 !important;
}

.pw-register-page .regItem dl.pw-strength #passwdBar {
	width: 100% !important;
	margin: 0 !important;
}

.pw-register-page .regItem dl.pw-strength #passwdBar td {
	height: 4px !important;
}

.pw-register-page .regItem dl.pw-strength dd.regTips {
	width: auto !important;
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

.pw-register-page .regItem dl.pw-strength #passwdRating {
	height: auto !important;
	margin: 0 !important;
	font-size: 11px;
	line-height: 1.3 !important;
}

/* the optional "registration reason" block is not used any more */
.pw-register-page .regItem dl:has(> dd > textarea[name="regreason"]) {
	display: none !important;
}

/* agreement row */
.pw-register-page .regItem dl.pw-clause {
	margin: 12px 0 10px !important;
}

.pw-register-page .regItem dl.pw-clause > dd > div {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px;
	padding: 0 !important;
	color: var(--pw-ink);
	font-size: 12.5px;
}

.pw-register-page .regItem dl.pw-clause input[type="checkbox"] {
	-ms-flex-negative: 0;
	flex-shrink: 0;
	margin: 0 4px 0 0;
}

.pw-register-page .regItem dl.pw-clause label {
	color: var(--pw-ink);
	cursor: pointer;
}

.pw-register-page .regItem dl.pw-clause a.b {
	color: var(--pw-primary) !important;
	cursor: pointer;
	text-decoration: none;
}

.pw-register-page .regItem dl.pw-clause a.b:hover {
	text-decoration: underline;
}

/* desktop: label on the left of each field so the card stays compact */
@media (min-width: 641px) {
	.pw-register-page .regItem dl {
		grid-template-columns: 84px minmax(0, 1fr) !important;
		gap: 3px 12px;
		align-items: center;
	}

	.pw-register-page .regItem dt {
		padding-right: 2px !important;
		font-size: 12.5px !important;
		line-height: 42px !important;
		text-align: right !important;
	}

	.pw-register-page .regItem dl > dd {
		grid-column: 2;
	}

	.pw-register-page .regItem dl > dd.regTips {
		grid-column: 1 / -1;
	}

	.pw-register-page .regItem dl.pw-clause > dd,
	.pw-register-page .regItem dl:last-child > dd {
		grid-column: 1 / -1;
	}
}

/* ---- reference-style post article ---------------------------------------- */
.pw-post-banner {
	max-width: 992px;
	margin: 16px auto;
	border: 1px solid var(--pw-line);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	box-sizing: border-box;
}

.pw-post-banner img {
	display: block;
	width: 100%;
	height: auto;
}

.main > .t.pw-post {
	padding: 0 !important;
	border: 1px solid var(--pw-line) !important;
	border-radius: 12px !important;
	background: rgba(255, 255, 255, .55) !important;
	box-shadow: none !important;
	overflow: hidden;
}

.main > .t.pw-post > table > tbody > tr:first-child > td.h {
	padding: 10px 16px !important;
	border-bottom: 1px solid var(--pw-line) !important;
	background: transparent !important;
	color: var(--pw-muted) !important;
	font-size: 12px !important;
	font-weight: 400 !important;
}

.main > .t.pw-post > table > tbody > tr:first-child > td.h:first-child {
	font-size: 0 !important;
}

.main > .t.pw-post > table > tbody > tr:first-child > td.h:first-child a[href*="read.php"] {
	display: none !important;
}

.main > .t.pw-post > table > tbody > tr:first-child > td.h:first-child a {
	font-size: 12px !important;
}

.main > .t.pw-post > table > tbody > tr:first-child > td.h:last-child {
	width: 100% !important;
}

.main > .t.pw-post > table > tbody > tr:first-child > td.h .fr {
	display: flex;
	float: none !important;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	text-align: left !important;
}

.main > .t.pw-post > table > tbody > tr:first-child > td.h a {
	color: var(--pw-muted) !important;
	font-weight: 500;
}

.main > .t.pw-post .r_one {
	background: #fff !important;
}

.main > .t.pw-post .tiptop {
	padding: 12px 16px !important;
	border-bottom: 1px solid var(--pw-line);
	color: var(--pw-muted) !important;
	font-size: 12px !important;
}

.main > .t.pw-post .tiptop span[style*="color:#0000ff"] {
	display: none !important;
}

.main > .t.pw-post .tiptop a {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border-radius: 9999px;
	background: var(--pw-soft) !important;
	color: var(--pw-primary) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
}

.main > .t.pw-post .tiptop a:hover {
	background: #d9f1fe !important;
}

.main > .t.pw-post h1 {
	margin: 0 !important;
	padding: 4px 16px 0 !important;
	color: var(--pw-ink) !important;
	font-size: 24px !important;
	font-weight: 800 !important;
	line-height: 1.7 !important;
}

.main > .t.pw-post .tpc_content {
	padding: 4px 16px 16px !important;
	color: var(--pw-ink) !important;
	font-size: 15px !important;
	line-height: 1.7 !important;
}

.main > .t.pw-post #read_tpc {
	color: var(--pw-ink) !important;
	font-size: 16px !important;
	line-height: 1.8 !important;
}

.main > .t.pw-post #read_tpc img {
	max-width: 100% !important;
	height: auto !important;
}

.main > .t.pw-post .pw-share-bar {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	padding: 12px 16px !important;
	border-top: 1px solid var(--pw-line);
	margin: 0 !important;
}

.main > .t.pw-post .pw-share-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto !important;
	height: auto !important;
	padding: 4px 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--pw-muted) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
}

.main > .t.pw-post .pw-share-trigger:hover {
	color: var(--pw-primary) !important;
}

.main > .t.pw-post .pw-share-trigger svg {
	width: 16px;
	height: 16px;
}

/* exact layout of the reference article */
.main > .t.pw-post.pw-ref-page {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	overflow: visible !important;
}

.pw-ref-article {
	background: rgba(255, 255, 255, .25);
	border: 1px solid var(--pw-line);
	border-radius: 12px;
	overflow: hidden;
}

.pw-ref-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-bottom: 1px solid var(--pw-line);
}

.pw-ref-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: -4px;
	padding: 4px 8px;
	border-radius: 9999px;
	color: var(--pw-muted) !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	-webkit-transition: background .15s, color .15s;
	transition: background .15s, color .15s;
}

.pw-ref-back:hover {
	background: #eef3f0;
	color: var(--pw-primary) !important;
}

.pw-ref-back svg {
	width: 15px;
	height: 15px;
}

.pw-ref-head {
	padding: 16px 16px 0;
}

.main > .t.pw-post .pw-ref-title {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--pw-ink) !important;
	font-size: 24px !important;
	font-weight: 800 !important;
	line-height: 1.7 !important;
	word-break: break-word;
}

.pw-ref-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px 8px;
	margin: 8px 0 0 !important;
	padding: 0 !important;
	color: var(--pw-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
}

.pw-ref-meta .dot {
	color: #b9c6c0;
}

.pw-ref-body {
	margin-top: 14px;
	padding: 16px;
	border-top: 1px solid var(--pw-line);
	color: var(--pw-ink);
	font-size: 15px;
	line-height: 1.7;
}

.pw-ref-body #read_tpc {
	color: var(--pw-ink) !important;
	font-size: 16px !important;
	line-height: 1.8 !important;
	word-wrap: break-word;
	word-break: break-word;
	overflow-wrap: break-word;
}

.pw-ref-body #read_tpc img {
	max-width: 100% !important;
	height: auto !important;
}

.pw-ref-body #read_tpc p {
	margin: 0 !important;
}

.pw-ref-body #read_tpc table {
	max-width: 100% !important;
}

.pw-ref-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 16px;
	border-top: 1px solid var(--pw-line);
}

.pw-ref-like {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 14px 4px 4px;
	border: 1px solid var(--pw-line);
	border-radius: 9999px;
	background: var(--pw-card);
	color: var(--pw-muted) !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	cursor: pointer;
	-webkit-transition: background .15s, border-color .15s, color .15s;
	transition: background .15s, border-color .15s, color .15s;
}

.pw-ref-like:hover {
	border-color: rgba(65, 189, 251, .45);
	background: rgba(65, 189, 251, .05);
	color: var(--pw-primary) !important;
}

.pw-ref-like-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	box-sizing: border-box;
	border: 1px solid var(--pw-line);
	border-radius: 50%;
	background: var(--pw-canvas);
	color: var(--pw-muted);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	-webkit-transition: background .15s, border-color .15s, color .15s;
	transition: background .15s, border-color .15s, color .15s;
}

.pw-ref-like:hover .pw-ref-like-btn {
	border-color: rgba(65, 189, 251, .55);
	color: var(--pw-primary);
}

.pw-ref-like[aria-pressed="true"] .pw-ref-like-btn {
	border-color: var(--pw-primary);
	background: var(--pw-primary);
	color: #fff;
}

.pw-ref-like .pw-like-count {
	min-width: 16px;
	color: inherit;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.pw-ref-share {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 1px solid var(--pw-line);
	border-radius: 9999px;
	background: var(--pw-card);
	color: var(--pw-muted) !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
	-webkit-transition: background .15s, border-color .15s, color .15s;
	transition: background .15s, border-color .15s, color .15s;
}

.pw-ref-share:hover {
	border-color: rgba(65, 189, 251, .45);
	background: rgba(65, 189, 251, .05);
	color: var(--pw-primary) !important;
}

.pw-ref-share svg {
	width: 15px;
	height: 15px;
}

.pw-ref-page .r_one {
	background: var(--pw-card) !important;
}

/* content below the article, matching the reference rich-content typography */
.pw-ref-page .divfooter {
	max-width: 992px;
	margin: 16px auto 0;
	color: var(--pw-ink);
	font-size: 16px;
	line-height: 1.7;
	text-align: center;
}

.pw-ref-page th[style*="padding-top:30px"] {
	padding-top: 0 !important;
}

.pw-ref-page .divfooter p {
	margin: 12px 0 !important;
}

.pw-ref-page .divfooter p font[size="6"],
.pw-ref-page .divfooter > font[size="6"] {
	font-size: 24px !important;
	line-height: 1.7 !important;
}

.pw-ref-page .divfooter blockquote {
	margin: 16px auto 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--pw-ink);
	font-size: 14px;
	line-height: 1.8;
	text-align: center;
}

.pw-ref-page .divfooter blockquote font[size="6"],
.pw-ref-page .divfooter blockquote font[size="5"] {
	font-size: 14px !important;
	line-height: 1.8 !important;
}

.pw-ref-page .divfooter table {
	width: 100% !important;
	max-width: 560px;
	margin: 12px auto !important;
	border: 0 !important;
	border-collapse: collapse !important;
}

.pw-ref-page .divfooter td {
	padding: 8px 12px !important;
	border: 0 !important;
	text-align: left;
}

.pw-ref-page .divfooter img {
	max-width: 170px;
	height: auto !important;
}

.pw-ref-page .divfooter a {
	color: inherit !important;
}

table[bgcolor="#FFFF00"],
table[bgcolor="#ffff00"] {
	width: 100% !important;
	max-width: 992px;
	margin: 12px auto !important;
	border: 0 !important;
	border-collapse: collapse !important;
	background: transparent !important;
}

table[bgcolor="#FFFF00"] td,
table[bgcolor="#ffff00"] td {
	padding: 6px 0 !important;
	background: transparent !important;
	text-align: center !important;
}

table[bgcolor="#FFFF00"] font,
table[bgcolor="#ffff00"] font {
	color: #16a34a !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.7 !important;
}

/* ---- shared card surfaces ------------------------------------------------ */
.spaceborder {
	width: 100% !important;
	border: 1px solid var(--pw-line) !important;
	border-radius: var(--pw-radius) !important;
	background: var(--pw-card) !important;
	box-shadow: var(--pw-shadow);
	overflow: hidden;
	margin: 0 0 16px !important;
	box-sizing: border-box;
}

/* thread.php also renders its header card outside the .main wrapper */
body > div:not(.main) > .spaceborder {
	width: calc(100% - 24px) !important;
	max-width: 992px;
	margin: 0 auto 16px !important;
	border-radius: var(--pw-radius) !important;
}

.main .t {
	width: 100% !important;
	max-width: 992px;
	margin: 0 auto 16px !important;
	padding: 14px 16px !important;
	background: var(--pw-card) !important;
	border: 1px solid var(--pw-line) !important;
	border-radius: var(--pw-radius) !important;
	box-shadow: var(--pw-shadow);
	box-sizing: border-box;
}

/* thread.php renders its list outside the .main wrapper */
body > div > .t {
	width: calc(100% - 24px) !important;
	max-width: 992px;
	margin: 0 auto 16px !important;
	padding: 14px 16px !important;
	background: var(--pw-card) !important;
	border: 1px solid var(--pw-line) !important;
	border-radius: var(--pw-radius) !important;
	box-shadow: var(--pw-shadow);
	box-sizing: border-box;
}

.xxqbbslist {
	border: 1px solid var(--pw-line) !important;
	border-radius: var(--pw-radius) !important;
	background: var(--pw-card) !important;
	box-shadow: var(--pw-shadow);
	margin: 0 0 16px !important;
	padding: 4px 0 !important;
	overflow: hidden;
}

.xxqbbslist .xxqbbslist {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* ---- site header --------------------------------------------------------- */
.spaceborder .header {
	height: auto !important;
	line-height: 1.6 !important;
	padding: 12px 18px !important;
	background: var(--pw-card) !important;
	color: var(--pw-ink) !important;
	border-bottom: 1px solid var(--pw-line);
	font-family: inherit !important;
	font-weight: 600 !important;
}

.spaceborder .header a {
	color: var(--pw-ink) !important;
	font-weight: 600;
}

.spaceborder .header a:hover {
	color: var(--pw-primary) !important;
}

.spaceborder .header .txadn {
	color: var(--pw-muted);
	font-size: 12.5px;
	font-weight: 400;
}

.spaceborder .header img {
	vertical-align: middle;
}

/* header row: one tidy line, nav on the left, account links on the right */
.spaceborder > table > tbody > tr:first-child > td.header {
	padding: 0 !important;
}

.spaceborder .subtable {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 20px !important;
	box-sizing: border-box;
}

.spaceborder .subtable .right {
	order: 2;
	float: none !important;
	margin-left: auto;
	color: var(--pw-muted);
	font-size: 12.5px;
	line-height: 1.5;
	text-align: right;
	white-space: nowrap;
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

.spaceborder .subtable .right a {
	color: var(--pw-primary) !important;
	font-weight: 600;
	text-decoration: none;
}

.spaceborder .subtable .right a:hover {
	text-decoration: underline;
}

.spaceborder .subtable .right font {
	color: var(--pw-ink) !important;
}

.spaceborder .subtable > a {
	display: inline-flex;
	align-items: center;
}

.spaceborder .subtable > a img {
	display: block;
	margin: 0;
}

.spaceborder .subtable .txadn {
	height: auto !important;
	min-width: 0;
	color: var(--pw-muted) !important;
	font-size: 12.5px;
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* breadcrumb: keep the brackets and administrator info, but line them up */
.spaceborder .subtable > .txadn {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 2px;
	color: var(--pw-muted) !important;
	font-size: 13px;
	line-height: 1.5;
	white-space: nowrap;
}

.spaceborder .subtable > .txadn > a {
	color: var(--pw-ink) !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}

.spaceborder .subtable > .txadn > a:hover {
	color: var(--pw-primary) !important;
}

.spaceborder .subtable .pw-admin {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	height: 20px;
	margin-left: 8px;
	padding-left: 8px;
	border-left: 1px solid var(--pw-line);
	color: var(--pw-muted) !important;
	font-family: "Microsoft YaHei", "Segoe UI Symbol", "Segoe UI", Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 20px;
	white-space: nowrap;
}

.spaceborder .subtable .pw-post-btn {
	order: 3;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	height: 30px;
	padding: 0 14px;
	font-size: 12.5px;
}

.spaceborder .altbg2 {
	background: #f7faf8 !important;
}

.spaceborder .guide {
	color: var(--pw-muted);
}

/* ---- navigation ---------------------------------------------------------- */
.viewport-nav {
	position: fixed !important;
	left: 50% !important;
	right: auto !important;
	top: auto !important;
	bottom: 14px !important;
	width: auto !important;
	height: auto !important;
	display: block !important;
	padding: 6px !important;
	background: rgba(255, 255, 255, .96) !important;
	border: 1px solid var(--pw-line);
	border-radius: 9999px;
	box-shadow: 0 10px 30px rgba(23, 33, 29, .16);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	z-index: 9999 !important;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
}

.viewport-nav ul {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
}

.viewport-nav li {
	float: none !important;
	width: auto !important;
	padding: 0 !important;
}

.viewport-nav li:empty {
	display: none;
}

.viewport-nav .nav-box a {
	display: block;
	padding: 8px 16px;
	border-radius: 9999px;
	color: var(--pw-ink) !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
}

.viewport-nav .nav-box,
.viewport-nav .nav-box:first-child,
.viewport-nav .nav-box:last-child {
	width: auto !important;
	height: auto !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.viewport-nav .nav-box p {
	margin: 0 !important;
	padding: 0 !important;
	color: inherit !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
}

.viewport-nav .nav-box a:hover,
.viewport-nav .nav-box a:active {
	background: var(--pw-primary);
	color: #fff !important;
}

.xxqbbslist:empty {
	display: none !important;
}

/* ---- forum / thread rows ------------------------------------------------- */
.xxqbbslist .topic {
	margin: 0 !important;
	padding: 12px 18px !important;
	border-bottom: 1px solid #edf3ef;
	line-height: 1.5 !important;
	font-size: 13.5px;
}

.xxqbbslist .topic:last-child {
	border-bottom: 0;
}

.xxqbbslist .topic:hover {
	background: #f7fbf9;
}

.xxqbbslist a.threadtxt {
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: var(--pw-ink) !important;
	text-decoration: none !important;
}

.xxqbbslist a.threadtxt:hover {
	color: var(--pw-primary) !important;
}

/* Show the full thread title and let it wrap naturally on small screens.
   Long titles no longer get cut with an ellipsis. */
.xxqbbslist .topic > p {
	display: block !important;
	min-width: 0;
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
	line-height: 1.6 !important;
	word-break: break-word;
	overflow-wrap: break-word;
}

.xxqbbslist .topic > p > img {
	vertical-align: middle;
	margin-right: 4px;
}

.xxqbbslist .topic > p > a.threadtxt,
.xxqbbslist .topic > p > a.threadtxt > span {
	display: inline !important;
	max-width: none !important;
	overflow: visible !important;
	text-overflow: clip !important;
	white-space: normal !important;
	vertical-align: middle;
}

.xxqbbslist .topic > p > .thusername {
	display: inline !important;
	margin-left: 6px;
	font-size: 15px !important;
	font-weight: 700 !important;
	vertical-align: middle;
}

.xxqbbslist .topic > p > .thusername > span {
	font-size: 15px !important;
	font-weight: 700 !important;
}

.main .row td,
.main .row1 td {
	padding: 10px 8px !important;
	border-bottom: 1px solid #edf3ef !important;
}

.main .row1 {
	background: #fbfdfc !important;
}

.main .altbg1 {
	background: #f7faf8 !important;
}

.main .altbg2 {
	background: #f7faf8 !important;
}

.main .thread_table {
	border-color: var(--pw-line) !important;
	background: #fbfdfc !important;
}

/* thread list rendered outside .main */
body > div > .t .thread_table {
	background: #f7faf8 !important;
	border-color: var(--pw-line) !important;
}

body > div > .t .thread_table td,
body > div > .t .thread_table th,
body > div > .t .t_table td,
body > div > .t .row td,
body > div > .t .row1 td {
	border-color: var(--pw-line) !important;
}

body > div > .t .row td,
body > div > .t .row1 td {
	padding: 10px 8px !important;
}

body > div > .t .row1 {
	background: #fbfdfc !important;
}

body > div > .t .threadtxt {
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: var(--pw-ink) !important;
}

body > div > .t .threadtxt:hover {
	color: var(--pw-primary) !important;
}

body > div > .t .numhits,
body > div > .t .numhit {
	color: var(--pw-muted) !important;
}

body > div > .t table,
body > div > .t td,
body > div > .t th {
	border-color: var(--pw-line) !important;
}

body > div > .t th {
	background: #f7faf8 !important;
}

body > div > .t .tr2,
body > div > .t .tr2 td,
body > div > .t .y-style {
	background: #f7faf8 !important;
	color: var(--pw-ink) !important;
}

body > div > .t .tr2 td {
	font-size: 12.5px;
	font-weight: 600;
}

body > div > .t .tr3 td {
	border-color: var(--pw-line) !important;
}

.threadlist .current,
.threadlist .active {
	background: var(--pw-primary) !important;
	border-color: var(--pw-primary) !important;
	color: #fff !important;
}

.threadlist .bta {
	background: #fff !important;
	border-color: var(--pw-line) !important;
	color: var(--pw-muted) !important;
}

/* ---- post content -------------------------------------------------------- */
.main .threadtxt {
	font-family: inherit !important;
	color: var(--pw-ink) !important;
}

.main .replytxt {
	font-family: inherit !important;
	color: var(--pw-ink) !important;
}

.main .thusername,
.main .reusername {
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 500 !important;
}

.main .username {
	font-size: 12px !important;
	font-weight: 500 !important;
	color: var(--pw-muted) !important;
}

.main .posttime,
.main .numhits,
.main .numhit,
.main .threadmei,
.main .rethreadmei {
	color: var(--pw-muted) !important;
	font-family: inherit !important;
}

.main .tpc_content,
.main #read_1,
.main .t_msg {
	font-size: 15px !important;
	line-height: 1.8 !important;
	color: var(--pw-ink) !important;
	word-wrap: break-word;
	word-break: break-word;
}

.main .t_msg td {
	padding: 8px 12px !important;
}

.main .quote {
	margin: 10px 0;
	padding: 10px 14px;
	border-left: 3px solid var(--pw-primary) !important;
	border-radius: 8px;
	background: var(--pw-soft) !important;
	color: #355044;
	line-height: 1.7;
}

.main .signature {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px dashed var(--pw-line);
	color: var(--pw-muted);
	font-size: 12px;
	line-height: 1.6;
}

.main .t_msg img,
.main .tpc_content img {
	max-width: 100% !important;
	height: auto !important;
}

/* ---- post header and action bar ------------------------------------------ */
.main .t td.h {
	padding: 12px 14px !important;
	background: var(--pw-card) !important;
	border-bottom: 1px solid var(--pw-line) !important;
	color: var(--pw-muted) !important;
	font-size: 12.5px !important;
}

.main .t td.h a {
	color: var(--pw-muted) !important;
	font-weight: 500;
	text-decoration: none;
}

.main .t td.h a:hover {
	color: var(--pw-primary) !important;
}

.main .t td.h a span {
	color: var(--pw-ink) !important;
	font-weight: 700;
	font-size: 14px;
}

.main .t td.h font[color="red"] {
	color: var(--pw-muted) !important;
}

.main .t h1 {
	margin: 12px 0 !important;
	color: var(--pw-ink) !important;
	font-family: inherit !important;
	font-size: 22px !important;
	font-weight: 800 !important;
	line-height: 1.5 !important;
}

.main .tiptop .fr {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 8px;
	overflow: visible !important;
}

.main .tiptop .fr font[face="Wingdings"] {
	display: none !important;
}

.main .tiptop .fr a {
	display: inline-flex;
	align-items: center;
	padding: 4px 11px;
	border-radius: 9999px;
	background: #f3f8f5;
	color: var(--pw-ink) !important;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none !important;
	-webkit-transition: background .15s, color .15s;
	transition: background .15s, color .15s;
}

.main .tiptop .fr a:hover {
	background: var(--pw-primary);
	color: #fff !important;
}

.main .tiptop .fr a font {
	color: inherit !important;
}

.main .tiptop .fl a.s3 {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	border-radius: 9999px;
	background: var(--pw-primary);
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
	text-decoration: none !important;
}

/* ---- forms and buttons --------------------------------------------------- */
.main input[type="text"],
.main input[type="password"],
.main input[type="search"],
.main textarea,
.main select {
	border: 1px solid #dfe7e2 !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: var(--pw-ink) !important;
	padding: 6px 10px !important;
	font-size: 13px !important;
	line-height: 1.5 !important;
	box-shadow: none !important;
	outline: none;
	box-sizing: border-box;
}

.main input[type="text"]:focus,
.main input[type="password"]:focus,
.main input[type="search"]:focus,
.main textarea:focus,
.main select:focus {
	border-color: var(--pw-primary) !important;
	box-shadow: 0 0 0 3px rgba(0, 166, 81, .12) !important;
}

.main input.button,
.main .button {
	border: 1px solid #dfe7e2 !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: var(--pw-ink) !important;
	height: auto !important;
	line-height: 1.4 !important;
	padding: 5px 12px !important;
	font-size: 12.5px !important;
}

.main input.button:hover,
.main .button:hover {
	border-color: var(--pw-primary) !important;
	background: var(--pw-soft) !important;
	color: var(--pw-primary-dark) !important;
}

.main .loginBox .btn,
.main .postsubmit .btn {
	background: var(--pw-primary) !important;
	border: 1px solid var(--pw-primary) !important;
	border-radius: 9999px !important;
	color: #fff !important;
	padding: 7px 18px !important;
	font-weight: 600 !important;
}

.main .loginBox .btn:hover,
.main .postsubmit .btn:hover {
	background: var(--pw-primary-dark) !important;
	border-color: var(--pw-primary-dark) !important;
	color: #fff !important;
}

/* ---- small screens ------------------------------------------------------- */
@media screen and (max-width: 640px) {
	body {
		font-size: 14px !important;
		padding-bottom: 80px !important;
	}

	.main {
		padding: 10px 10px 86px !important;
	}

	.main .t {
		padding: 12px !important;
		border-radius: 10px !important;
	}

	body > div > .t {
		width: calc(100% - 20px) !important;
		padding: 12px !important;
		border-radius: 10px !important;
	}

	.main .t > table:first-child td.h {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box;
	}

	.main .t td.h .fr {
		float: none !important;
		margin-top: 6px;
	}

	.main .t h1 {
		font-size: 19px !important;
	}

	.spaceborder {
		border-radius: 10px !important;
	}

	body > div:not(.main) > .spaceborder {
		width: calc(100% - 20px) !important;
		border-radius: 10px !important;
	}

	.spaceborder .header {
		padding: 10px 12px !important;
		font-size: 12px !important;
	}

	.xxqbbslist {
		border-radius: 10px !important;
	}

	.xxqbbslist .topic {
		padding: 11px 14px !important;
	}

	.xxqbbslist a.threadtxt {
		font-size: 14px !important;
	}

	.main .tpc_content,
	.main #read_1,
	.main .t_msg {
		font-size: 15px !important;
		line-height: 1.75 !important;
	}

	.main .loginBox .txt {
		width: 100% !important;
		max-width: 220px;
	}

	.main img[src*="logo1.gif"] {
		max-width: 100% !important;
	}

	table[style*="border-color:#ccc"] tbody {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	table[style*="border-color:#ccc"] td {
		padding: 10px 12px !important;
	}

	table[style*="border-color:#ccc"] td a {
		font-size: 13.5px !important;
	}

	table[style*="background:green"] td a,
	table[style*="background:#b80000"] td a {
		font-size: 13.5px !important;
	}

	.spaceborder .guide form {
		gap: 6px;
	}

	.spaceborder .header .right {
		float: none !important;
		display: block;
		margin-bottom: 4px;
	}

	.spaceborder table > tbody > tr.altbg2 > td {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box;
		text-align: left !important;
	}

	.spaceborder table > tbody > tr.altbg2 > td[align="right"] {
		margin-top: 8px;
	}

	.spaceborder td[align="right"] form {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		align-items: center;
		gap: 6px;
	}

	.spaceborder td[align="right"] input.button {
		-webkit-box-flex: 1;
		-ms-flex: 1 1 auto;
		flex: 1 1 auto;
		width: auto !important;
		min-width: 0;
	}

	.spaceborder .guide input.button {
		-webkit-box-flex: 1;
		-ms-flex: 1 1 110px;
		flex: 1 1 110px;
		width: auto !important;
		min-width: 0;
	}

	.spaceborder .pw-login-btn,
	.spaceborder .pw-register-btn {
		flex: 0 0 auto;
	}

	.pw-login-form {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.pw-field {
		min-width: 0;
	}

	.pw-field input.button {
		width: 100% !important;
	}

	.pw-auth-actions {
		grid-column: 1 / -1;
		width: 100%;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.pw-auth-card .pw-login-btn,
	.pw-auth-card .pw-register-btn {
		width: 100%;
	}

	.pw-search-form {
		width: 100%;
		justify-content: stretch;
	}

	.pw-search-form input.button {
		flex: 1 1 auto;
		width: auto !important;
		min-width: 0;
	}

	.pw-search-form .btn {
		flex: 0 0 auto;
	}

	.main .regItem {
		max-width: none;
	}

	.main .regItem dl,
	.main .regItem dl:has(> dd.regTips),
	.main .regItem dl:has(> dd > .blockquote) {
		grid-template-columns: 1fr !important;
		gap: 4px;
		margin-bottom: 10px !important;
	}

	.main .regItem dt {
		text-align: left !important;
		font-size: 12.5px !important;
		line-height: 1.5 !important;
	}

	.main .regItem dd,
	.main .regItem dd.regTips {
		width: 100% !important;
	}

	.main .regItem input.button,
	.main .regItem input[type="text"],
	.main .regItem input[type="password"],
	.main .regItem input[type="email"] {
		max-width: 100% !important;
	}

	.main .regItem .btn,
	.main .regItem .bt {
		height: 38px !important;
		padding: 0 20px !important;
		font-size: 13px !important;
	}

	.main .regItem .bt {
		margin-left: 6px;
	}

	.pw-simple-form table,
	.pw-simple-form tbody,
	.pw-simple-form tr,
	.pw-simple-form th,
	.pw-simple-form td {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box;
	}

	.pw-simple-form tr {
		padding: 0 14px 12px !important;
	}

	.pw-simple-form tr:first-child {
		padding: 0 !important;
	}

	.pw-simple-form th,
	.pw-simple-form td {
		padding: 0 !important;
		text-align: left !important;
	}

	.pw-simple-form th {
		margin: 10px 0 5px;
		font-size: 12.5px !important;
	}

	.pw-simple-form th.h {
		margin: 0;
		padding: 12px 16px !important;
	}

	.pw-simple-form tr:last-child th {
		display: none !important;
	}

	.pw-simple-form input.button,
	.pw-simple-form select {
		max-width: 100% !important;
	}

	.pw-simple-form tr:last-child td {
		padding-top: 6px !important;
	}

	.pw-auth-page {
		min-height: calc(100vh - 80px);
		padding: 16px 0;
	}

	.pw-auth-page .pw-auth-card {
		padding: 20px;
	}

	.pw-auth-top {
		max-width: 100%;
	}

	.pw-auth-title {
		font-size: 20px;
	}

	.pw-register-page {
		padding: 12px 0 20px;
	}

	.pw-register-page > .f16.b.s5,
	.pw-register-page > .bottom {
		max-width: 100%;
	}

	.pw-register-page > .f16.b.s5 {
		margin-bottom: 10px;
	}

	.pw-register-page .y-bg4 > .p10.cc {
		padding: 18px 16px !important;
	}

	/* compact the mobile register form: placeholders already label the fields */
	.pw-register-page .regItem dt {
		display: none !important;
	}

	.pw-register-page .regItem dl {
		gap: 3px;
		margin-bottom: 8px !important;
	}

	.pw-register-page .regItem dd.regTips {
		font-size: 10.5px;
		line-height: 1.4;
	}

	.pw-register-page .regItem input.button,
	.pw-register-page .regItem input[type="text"],
	.pw-register-page .regItem input[type="password"],
	.pw-register-page .regItem input[type="email"] {
		height: 44px !important;
		font-size: 16px !important;
		line-height: 44px !important;
	}

	.pw-register-page #passwdBar {
		margin-top: 0 !important;
	}

	.pw-register-page .regItem dl.pw-clause {
		margin: 10px 0 8px !important;
	}

	.pw-register-page .regItem .btn {
		margin-top: 8px;
	}

	.pw-register-page .regItem .pw-auth-foot {
		margin-top: 8px;
	}

	/* mobile header: nav on the first line, account links on their own line */
	.spaceborder .subtable {
		flex-wrap: wrap;
		gap: 8px;
		min-height: 0;
		padding: 10px 12px !important;
	}

	.spaceborder .subtable .right .txadn {
		min-width: 0;
		font-size: 12px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.spaceborder .subtable .right {
		order: 4;
		width: 100%;
		margin-left: 0;
		text-align: left;
		white-space: nowrap;
	}

	.spaceborder .subtable .pw-post-btn {
		height: 28px;
		padding: 0 12px;
	}

	.main > .t.pw-post h1 {
		padding: 2px 14px 0 !important;
		font-size: 20px !important;
		line-height: 1.6 !important;
	}

	.main > .t.pw-post .tiptop {
		padding: 10px 14px !important;
	}

	.main > .t.pw-post .tpc_content {
		padding: 4px 14px 14px !important;
	}

	.main > .t.pw-post > table > tbody > tr:first-child > td.h {
		padding: 8px 14px !important;
		line-height: 1.4 !important;
	}

	.main > .t.pw-post > table > tbody > tr:first-child > td.h:first-child {
		display: none !important;
	}

	.main > .t.pw-post > table > tbody > tr:first-child > td.h font {
		color: var(--pw-muted) !important;
	}

	.main > .t.pw-post .tiptop {
		padding: 8px 14px !important;
		line-height: 1.4 !important;
	}

	.main > .t.pw-post .pw-share-bar {
		padding: 10px 14px !important;
	}

	.pw-post-banner {
		margin: 12px auto;
	}

	.pw-post-body .main {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.pw-post-body .pw-post-banner {
		margin: 0 0 12px;
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.pw-ref-article {
		border: 0 !important;
		border-radius: 0 !important;
	}

	.pw-ref-bar {
		padding: 8px 12px;
	}

	.pw-ref-head {
		padding: 14px 12px 0;
	}

	.main > .t.pw-post .pw-ref-title {
		font-size: 19px !important;
		line-height: 1.6 !important;
	}

	.pw-ref-meta {
		margin-top: 6px !important;
		font-size: 11px;
	}

	.pw-ref-body {
		margin-top: 14px;
		padding: 14px 12px;
	}

	.pw-ref-actions {
		padding: 14px 12px;
	}

	.pw-ref-like {
		padding: 4px 14px 4px 4px;
	}

	.pw-ref-like-btn {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.pw-ref-like .pw-like-count {
		font-size: 13px;
	}

	.pw-ref-share {
		padding: 7px 11px;
	}
}

@media screen and (min-width: 641px) {
	.viewport-nav {
		display: none !important;
	}

	/* guest login / search bar on the forum homepage */
	.spaceborder table > tbody > tr.altbg2 > td {
		padding: 12px 16px !important;
		border-top: 1px solid var(--pw-line);
		background: #fff !important;
		vertical-align: middle !important;
	}

	.spaceborder table > tbody > tr.altbg2 > td[align="right"] {
		text-align: right;
	}

	.spaceborder .pw-auth-card {
		width: auto;
		max-width: none;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
	}

	.spaceborder .pw-login-form {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		flex-wrap: nowrap;
		gap: 10px;
	}

	.spaceborder .pw-field {
		flex-direction: row;
		align-items: center;
		gap: 8px;
		min-width: 0;
	}

	.spaceborder .pw-field > span {
		color: var(--pw-muted);
		font-size: 12px;
		font-weight: 500;
		line-height: 1;
		white-space: nowrap;
	}

	.spaceborder .pw-field input.button {
		width: 150px !important;
		max-width: 100%;
		height: 40px !important;
		padding: 0 12px !important;
		border: 1px solid var(--pw-line) !important;
		border-radius: 9px !important;
		background: #fff !important;
		color: var(--pw-ink) !important;
		font-size: 13px !important;
		line-height: 40px !important;
		box-sizing: border-box;
	}

	.spaceborder .pw-field input.button:focus {
		border-color: var(--pw-primary) !important;
		box-shadow: 0 0 0 3px rgba(65, 189, 251, .16) !important;
		outline: none;
	}

	.spaceborder .pw-auth-actions {
		display: flex;
		align-items: center;
		gap: 8px;
		width: auto;
	}

	.spaceborder .pw-login-btn,
	.spaceborder .pw-register-btn {
		height: 40px;
		padding: 0 22px;
		font-size: 13px;
		line-height: 1;
	}

	.spaceborder .pw-register-btn {
		padding: 0 20px;
	}

	.spaceborder .pw-search-form {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 8px;
		padding-top: 0;
	}

	.spaceborder .pw-search-form input.button {
		width: 240px !important;
		height: 40px !important;
		padding: 0 12px !important;
		border: 1px solid var(--pw-line) !important;
		border-radius: 9px !important;
		background: #fff !important;
		color: var(--pw-muted) !important;
		font-size: 13px !important;
		box-sizing: border-box;
	}

	.spaceborder .pw-search-form .btn {
		height: 40px !important;
		padding: 0 20px !important;
		border: 0 !important;
		border-radius: 9999px !important;
		background: var(--pw-primary) !important;
		color: #fff !important;
		font-size: 13px !important;
		font-weight: 600 !important;
	}
}

/* The homepage already has header navigation; the floating bar would cover
   the login card on small screens. */
body:has(img[src*="logo1.gif"]) .viewport-nav {
	display: none !important;
}

/* Legacy quote blocks reference a missing style/images/blockquote3.png.
   Replace it with a flat, modern panel so the browser stops 404-ing. */
.blockquote3 {
	background-image: none !important;
	background: var(--pw-soft) !important;
	border: 1px solid var(--pw-line) !important;
	border-left: 3px solid var(--pw-primary) !important;
	border-radius: 8px !important;
	padding: 10px 12px !important;
}

/* Reason-for-registration textarea row keeps a tidy layout on touch screens. */
.pw-register-page .regItem dl.pw-email-row > dd > div {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 0 0 !important;
	color: var(--pw-muted);
	font-size: 12px;
}

.pw-register-page .regItem dl.pw-email-row input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0 4px 0 0;
	accent-color: var(--pw-primary);
}

/* ==========================================================================
   iOS / Android rendering parity
   Safari and Chrome ship different default form controls, viewport units and
   text auto-sizing. These rules normalise the mobile rendering so a page
   looks the same on an iPhone and on an Android phone.
   ========================================================================== */

html,
body {
	overflow-x: hidden; /* iOS otherwise lets the page slide sideways */
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

a,
button,
input,
select,
textarea {
	-webkit-tap-highlight-color: transparent;
}

/* Reset the OS-specific control skin so both platforms draw the same box. */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input:not([type]),
textarea,
select {
	-webkit-appearance: none;
	appearance: none;
	-webkit-border-radius: 8px;
}

input[type="submit"],
input[type="button"],
input[type="reset"],
button {
	-webkit-appearance: none;
	appearance: none;
}

/* One consistent select arrow on iOS and Android. */
select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236c7b75' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 10px center !important;
	padding-right: 26px !important;
}

@media screen and (max-width: 640px) {
	/* iOS zooms the whole page when a focused field is smaller than 16px.
	   Matching 16px keeps the layout still on both systems. The extra
	   specificity is needed to beat the legacy component rules above. */
	body .main input[type="text"],
	body .main input[type="password"],
	body .main input[type="email"],
	body .main input[type="search"],
	body .main input[type="tel"],
	body .main input[type="url"],
	body .main input[type="number"],
	body .main input:not([type]),
	body .main input.button,
	body .spaceborder input.button,
	body .spaceborder .pw-field input.button,
	body .spaceborder .pw-search-form input.button,
	body .pw-auth-card input.button,
	body .pw-auth-page .pw-auth-card input.button,
	body .pw-auth-page .pw-auth-card select,
	body .main textarea,
	body .main select {
		font-size: 16px !important;
	}

	/* iPhone home-indicator / notch safe area under the floating nav. */
	.viewport-nav {
		bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
	}
}

/* iOS Safari counts the URL bar inside 100vh; dvh is the visible viewport. */
@supports (min-height: 100dvh) {
	.pw-auth-page {
		min-height: calc(100dvh - 120px);
	}
}

@media screen and (max-width: 640px) {
	@supports (min-height: 100dvh) {
		.pw-auth-page {
			min-height: calc(100dvh - 80px);
		}
	}
}

/* ---- homepage header / login card --------------------------------------- */
.pw-home-card {
	border: 1px solid var(--pw-line) !important;
	border-radius: 14px !important;
	background: #fff !important;
	box-shadow: 0 6px 22px rgba(16, 42, 30, .07) !important;
	overflow: hidden;
}

.pw-home-card .header {
	padding: 0 !important;
	background: linear-gradient(180deg, #f5fbf8 0%, #ffffff 100%) !important;
	border-bottom: 1px solid var(--pw-line) !important;
}

.pw-home-card .subtable {
	min-height: 58px !important;
	padding: 0 18px !important;
	gap: 12px !important;
}

/* guest / member links on the right sit in a soft pill */
.pw-home-card .subtable .right {
	padding: 4px 12px;
	background: #eef7f3;
	border: 1px solid #dcebe4;
	border-radius: 999px;
	color: var(--pw-muted) !important;
	font-size: 12.5px;
	line-height: 1.6;
}

.pw-home-card .subtable .right a {
	color: var(--pw-primary-dark) !important;
	text-decoration: none;
}

.pw-home-card .subtable .right a:hover {
	text-decoration: underline;
}

.pw-home-card .subtable .right font {
	color: var(--pw-ink) !important;
}

.pw-home-card .subtable > .txadn {
	font-size: 13px;
}

.pw-home-card .subtable > .txadn > a {
	color: var(--pw-ink) !important;
	font-weight: 600;
	text-decoration: none;
}

.pw-home-card .subtable > .txadn > a:hover {
	color: var(--pw-primary) !important;
}

/* login + search row */
.pw-home-card tr.altbg2 {
	background: #fff !important;
}

.pw-home-card tr.altbg2 > td {
	padding: 16px 18px !important;
	vertical-align: middle !important;
	background: #fff !important;
}

.pw-home-card .pw-auth-card {
	padding: 0 !important;
}

.pw-home-card .pw-login-form {
	display: flex !important;
	-webkit-box-align: end;
	-ms-flex-align: end;
	align-items: flex-end !important;
	flex-wrap: nowrap;
	gap: 12px !important;
}

.pw-home-card .pw-field {
	min-width: 0;
	gap: 6px !important;
}

.pw-home-card .pw-field > span {
	color: var(--pw-muted) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	letter-spacing: .2px;
}

.pw-home-card .pw-field input.button {
	width: 168px !important;
	height: 38px !important;
	padding: 0 12px !important;
	border: 1px solid #dde7e2 !important;
	border-radius: 9px !important;
	background: #fbfdfc !important;
	color: var(--pw-ink) !important;
	font-size: 13px !important;
	line-height: 36px !important;
	box-sizing: border-box;
}

.pw-home-card .pw-field input.button:focus {
	background: #fff !important;
	border-color: var(--pw-primary) !important;
	box-shadow: 0 0 0 3px rgba(65, 189, 251, .18) !important;
	outline: none;
}

.pw-home-card .pw-auth-actions {
	gap: 8px !important;
}

.pw-home-card .pw-login-btn,
.pw-home-card .pw-register-btn {
	height: 38px !important;
	padding: 0 18px !important;
	border-radius: 999px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 36px !important;
	white-space: nowrap;
	box-sizing: border-box;
}

.pw-home-card .pw-login-btn {
	border: 1px solid var(--pw-primary) !important;
	background: var(--pw-primary) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(65, 189, 251, .28) !important;
	cursor: pointer;
}

.pw-home-card .pw-login-btn:hover {
	background: var(--pw-primary-dark) !important;
	border-color: var(--pw-primary-dark) !important;
}

.pw-home-card .pw-register-btn {
	border: 1px solid #cfe3f5 !important;
	background: #fff !important;
	color: var(--pw-primary-dark) !important;
}

.pw-home-card .pw-register-btn:hover {
	background: var(--pw-soft) !important;
}

/* thin divider between the login block and the search block */
.pw-home-card tr.altbg2 > td[align="right"] {
	width: 44%;
	border-left: 1px solid var(--pw-line);
}

.pw-home-card .pw-search-form {
	gap: 8px !important;
}

.pw-home-card .pw-search-form input.button {
	width: 210px !important;
	height: 38px !important;
	padding: 0 14px !important;
	border: 1px solid #dde7e2 !important;
	border-radius: 9px !important;
	background: #fbfdfc !important;
	color: var(--pw-muted) !important;
	font-size: 13px !important;
	line-height: 36px !important;
	box-sizing: border-box;
}

.pw-home-card .pw-search-form input.button:focus {
	background: #fff !important;
	border-color: var(--pw-primary) !important;
	outline: none;
}

.pw-home-card .pw-search-form .btn {
	height: 38px !important;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--pw-primary) !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
}

.pw-home-card .pw-search-form .btn:hover {
	background: var(--pw-primary-dark) !important;
}

@media screen and (max-width: 640px) {
	.pw-home-card {
		border-radius: 12px !important;
	}

	.pw-home-card .subtable {
		-ms-flex-wrap: wrap;
		flex-wrap: wrap !important;
		min-height: 0 !important;
		padding: 10px 14px !important;
		gap: 8px 10px !important;
	}

	.pw-home-card .subtable .right {
		-webkit-box-ordinal-group: 1;
		-ms-flex-order: 0;
		order: 0 !important;
		width: 100%;
		margin: 0 !important;
		padding: 3px 10px;
		font-size: 12px;
		text-align: left !important;
	}

	.pw-home-card .subtable > a img {
		height: 16px;
	}

	.pw-home-card .subtable > .txadn {
		max-width: 100%;
		font-size: 12.5px;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.pw-home-card .subtable .pw-admin {
		display: none !important;
	}

	.pw-home-card .subtable .pw-post-btn {
		margin-left: auto;
		height: 28px;
		padding: 0 12px;
		font-size: 12px;
	}

	.pw-home-card tr.altbg2 > td {
		display: block !important;
		width: 100% !important;
		padding: 14px !important;
		box-sizing: border-box;
	}

	.pw-home-card tr.altbg2 > td[align="right"] {
		width: 100% !important;
		border-left: 0 !important;
		border-top: 1px solid var(--pw-line);
		padding-top: 12px !important;
	}

	.pw-home-card .pw-login-form {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 10px !important;
	}

	.pw-home-card .pw-field input.button {
		width: 100% !important;
		height: 40px !important;
		line-height: 38px !important;
	}

	.pw-home-card .pw-auth-actions {
		grid-column: 1 / -1;
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 10px !important;
	}

	.pw-home-card .pw-login-btn,
	.pw-home-card .pw-register-btn {
		width: 100%;
		height: 40px !important;
		padding: 0 !important;
		line-height: 38px !important;
	}

	.pw-home-card .pw-search-form {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex !important;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		gap: 8px !important;
	}

	.pw-home-card .pw-search-form input.button {
		-webkit-box-flex: 1;
		-ms-flex: 1 1 auto;
		flex: 1 1 auto;
		width: auto !important;
		min-width: 0;
		height: 40px !important;
		line-height: 38px !important;
	}

	.pw-home-card .pw-search-form .btn {
		-ms-flex-negative: 0;
		flex: 0 0 auto;
		height: 40px !important;
		padding: 0 18px !important;
	}
}

/* Narrow Android / WeChat WebView: the legacy table uses auto layout and the
   search input keeps its size="25" intrinsic width, which pushes the table
   24px past the card and clips the buttons against the rounded edge. */
@media screen and (max-width: 640px) {
	/* Android WebView keeps the legacy table wider than the card (auto layout
	   plus intrinsic input widths), which clips the buttons. Drop the table
	   layout entirely on phones and stack every row as a block. */
	.pw-home-card > table,
	.pw-home-card > table > tbody,
	.pw-home-card > table > tbody > tr,
	.pw-home-card > table > tbody > tr > td {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		box-sizing: border-box;
	}

	.pw-home-card .subtable {
		width: 100% !important;
		box-sizing: border-box;
	}

	.pw-home-card .subtable .right {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 100%;
		flex: 0 0 100% !important;
		width: auto !important;
		box-sizing: border-box;
		white-space: normal !important;
	}

	.pw-home-card .subtable > .txadn {
		-webkit-box-flex: 1;
		-ms-flex: 1 1 auto;
		flex: 1 1 auto !important;
		min-width: 0 !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
	}

	.pw-home-card .subtable .pw-post-btn {
		-ms-flex-negative: 0;
		flex: 0 0 auto !important;
	}

	.pw-home-card .pw-login-form {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	}

	/* Text inputs keep an intrinsic width from their default size attribute;
	   without min-width:0 the grid column cannot shrink on Android WebView. */
	.pw-home-card .pw-login-form > * {
		min-width: 0 !important;
	}

	.pw-home-card .pw-field input.button {
		min-width: 0 !important;
		max-width: 100% !important;
	}

	.pw-home-card .pw-auth-actions {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	}

	.pw-home-card .pw-search-form {
		width: 100% !important;
		box-sizing: border-box;
	}

	.pw-home-card .pw-search-form input.button {
		-ms-flex: 1 1 0%;
		flex: 1 1 0% !important;
		width: 0 !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}

	.pw-home-card .pw-search-form .btn {
		-ms-flex-negative: 0;
		flex: 0 0 auto !important;
	}
}
