.xh-farm-home-entry {
	margin-left: auto;
}

.xh-farm-home-pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 0 10px;
	border: 1px solid rgba(22, 163, 74, .28);
	border-radius: 8px;
	background: #0f766e;
	color: #fff !important;
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
	box-shadow: 0 8px 18px rgba(15, 118, 110, .18);
}

.xh-farm-home-pill.has-reminder {
	padding-right: 40px;
}

.xh-farm-home-pill span,
.xh-farm-home-pill b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 8px;
	background: rgba(255,255,255,.18);
	font-size: 12px;
}

.xh-farm-home-pill em {
	font-style: normal;
}

.xh-farm-home-pill b {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: auto;
	min-width: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	line-height: 18px;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}

.xh-farm {
	max-width: 980px;
	margin: 0 auto 32px;
	padding: 12px;
	color: #172033;
	letter-spacing: 0;
}

.xh-farm *,
.xh-farm *::before,
.xh-farm *::after {
	box-sizing: border-box;
	letter-spacing: 0;
}

.xh-farm a {
	text-decoration: none;
}

.xh-farm-hero,
.xh-farm-panel,
.xh-farm-status,
.xh-farm-tabs,
.xh-farm-quickbar,
.xh-farm-reminder,
.xh-farm-level {
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.xh-farm-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px;
	background:
		linear-gradient(135deg, rgba(34, 197, 94, .12), rgba(14, 165, 233, .1)),
		#fff;
}

.xh-farm-hero-main {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.xh-farm-avatar,
.xh-farm-rank-row img {
	width: 46px;
	height: 46px;
	border-radius: 8px;
	object-fit: cover;
	background: #e2e8f0;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.xh-farm-kicker {
	display: inline-flex;
	margin-bottom: 5px;
	color: #0f766e;
	font-size: 12px;
	font-weight: 900;
}

.xh-farm-hero h1 {
	margin: 0;
	color: #0f172a;
	font-size: 24px;
	font-weight: 900;
	line-height: 1.18;
}

.xh-farm-hero p {
	margin: 7px 0 0;
	color: #64748b;
	font-size: 14px;
	line-height: 1.45;
}

.xh-farm-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.xh-farm button,
.xh-farm-hero-actions a {
	min-height: 42px;
	border: 0;
	border-radius: 8px;
	background: #eef6f2;
	color: #21433b;
	font-weight: 900;
	cursor: pointer;
}

.xh-farm button:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.xh-farm-hero-actions button,
.xh-farm-hero-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0 12px;
}

.xh-farm-hero-actions button {
	min-height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	background: rgba(255,255,255,.84);
	color: #334155;
	font-size: 14px;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.xh-farm-hero-actions button span {
	font-size: 19px;
	line-height: 1;
}

.xh-farm-hero-actions button em {
	font-style: normal;
	line-height: 1;
	white-space: nowrap;
}

.xh-farm-reminder {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	padding: 10px 12px;
	background: #f8fafc;
}

.xh-farm-reminder.is-hot {
	border-color: rgba(245, 158, 11, .38);
	background: #fffbeb;
}

.xh-farm-reminder strong {
	color: #92400e;
	font-size: 14px;
}

.xh-farm-reminder span {
	color: #475569;
	font-size: 13px;
	line-height: 1.45;
}

.xh-farm-status {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1px;
	margin-top: 10px;
	overflow: hidden;
	background: #e2e8f0;
}

.xh-farm-status div {
	display: grid;
	gap: 4px;
	min-width: 0;
	padding: 10px;
	background: #fff;
}

.xh-farm-status span {
	color: #64748b;
	font-size: 12px;
}

.xh-farm-status strong {
	overflow: hidden;
	color: #0f172a;
	font-size: 16px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xh-farm-level {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(120px, 260px) auto;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	padding: 10px 12px;
}

.xh-farm-level div:first-child {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.xh-farm-level strong {
	color: #0f172a;
	font-size: 15px;
	font-weight: 900;
}

.xh-farm-level span,
.xh-farm-level em {
	color: #64748b;
	font-size: 12px;
	font-style: normal;
	line-height: 1.35;
}

.xh-farm-level-bar,
.xh-farm-ach-progress {
	position: relative;
	height: 12px;
	overflow: hidden;
	border-radius: 8px;
	background: rgba(15, 23, 42, .08);
}

.xh-farm-level-bar span,
.xh-farm-ach-progress span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #0f766e, #38bdf8);
}

.xh-farm-quickbar {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-top: 10px;
	padding: 8px;
}

.xh-farm-quickbar form {
	margin: 0;
}

.xh-farm-quickbar button {
	width: 100%;
	background: #0f766e;
	color: #fff;
}

.xh-farm-quickbar form:nth-child(3) button {
	background: #b45309;
}

.xh-farm-tabs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
	gap: 0;
	margin-top: 10px;
	padding: 0 8px;
}

.xh-farm .xh-farm-tabs a,
.xh-farm .xh-farm-tabs a:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 0;
	min-height: 52px;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	background: transparent;
	color: #64748b !important;
	font-size: 15px;
	font-weight: 900;
	text-decoration: none;
}

.xh-farm .xh-farm-tabs a span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	border-radius: 0;
	background: transparent;
	color: inherit !important;
	font-size: 20px;
	line-height: 1;
}

.xh-farm .xh-farm-tabs a b {
	min-width: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: 1;
}

.xh-farm .xh-farm-tabs a.is-active,
.xh-farm .xh-farm-tabs a.is-active:visited {
	border-bottom-color: #5b7cfa;
	background: transparent;
	color: #4f7df3 !important;
}

.xh-farm .xh-farm-tabs a.is-active span {
	background: transparent;
	color: inherit !important;
}

.xh-farm-panel {
	margin-top: 10px;
	padding: 12px;
}

.xh-farm-panel-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.xh-farm-panel-title h2 {
	margin: 0;
	color: #0f172a;
	font-size: 18px;
	font-weight: 900;
}

.xh-farm-panel-title span {
	color: #64748b;
	font-size: 12px;
	line-height: 1.4;
	text-align: right;
}

.xh-farm-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.xh-farm-plot {
	position: relative;
	display: grid;
	gap: 7px;
	min-width: 0;
	min-height: 190px;
	padding: 9px;
	border: 1px solid #cde7d4;
	border-radius: 8px;
	background:
		linear-gradient(180deg, rgba(34, 197, 94, .16), rgba(132, 204, 22, .09)),
		#fbfff7;
	overflow: hidden;
}

.xh-farm-plot.is-soil-black {
	border-color: rgba(51, 65, 85, .35);
	background:
		linear-gradient(180deg, rgba(15, 23, 42, .16), rgba(124, 58, 237, .09)),
		#f8fafc;
}

.xh-farm-plot.is-mature {
	border-color: rgba(245, 158, 11, .58);
	background:
		linear-gradient(180deg, rgba(254, 243, 199, .92), rgba(220, 252, 231, .68)),
		#fffdf3;
	box-shadow: 0 0 0 1px rgba(245, 158, 11, .16), 0 12px 26px rgba(245, 158, 11, .14);
}

.xh-farm-plot.is-locked {
	border-style: dashed;
	background: #f8fafc;
	color: #64748b;
}

.xh-farm-plot.is-mature::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 8px;
	box-shadow: inset 0 0 0 2px rgba(245, 158, 11, .16);
	pointer-events: none;
}

.xh-farm-plot-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 24px;
	gap: 6px;
}

.xh-farm-plot-head span,
.xh-farm-plot-head em {
	min-width: 0;
	color: #64748b;
	font-size: 11px;
	font-style: normal;
	font-weight: 900;
	line-height: 1.2;
}

.xh-farm-plot-head em {
	text-align: right;
}

.xh-farm-plot-head form,
.xh-farm-plot-actions form,
.xh-farm-storage-row form,
.xh-farm-shop-card form {
	margin: 0;
}

.xh-farm-plot-head button {
	width: 28px;
	height: 28px;
	min-height: 28px;
	padding: 0;
	background: #1f2937;
	color: #fff;
	font-size: 12px;
}

.xh-farm-crop-icon,
.xh-farm-shop-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: rgba(255,255,255,.78);
	color: #0f766e;
	font-size: 32px;
	font-weight: 900;
	line-height: 1;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
}

.xh-farm-shop-icon {
	font-size: 28px;
}

.xh-farm-plot strong {
	min-width: 0;
	color: #0f172a;
	font-size: 14px;
	font-weight: 900;
	overflow-wrap: anywhere;
}

.xh-farm-plot-sub,
.xh-farm-friend-tip {
	min-height: 34px;
	margin: 0;
	color: #64748b;
	font-size: 12px;
	line-height: 1.4;
}

.xh-farm-friend-tip {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 8px;
	border-radius: 8px;
	background: #ecfeff;
	color: #0e7490;
	font-weight: 800;
}

.xh-farm-progress {
	position: relative;
	height: 20px;
	overflow: hidden;
	border-radius: 8px;
	background: rgba(15, 23, 42, .08);
}

.xh-farm-progress span {
	position: absolute;
	z-index: 1;
	inset: 0 auto 0 0;
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #22c55e, #38bdf8);
	transition: width .2s ease;
}

.xh-farm-progress b {
	position: absolute;
	z-index: 2;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0f172a;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}

.xh-farm-plot-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin-top: auto;
}

.xh-farm-plot-actions button {
	min-height: 34px;
	padding: 0 9px;
	background: #2563eb;
	color: #fff;
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
}

.xh-farm-plot-actions form:nth-child(2n) button {
	background: #7c2d12;
}

.xh-farm-mature-action {
	display: none;
}

.xh-farm-plot.is-ready-now .xh-farm-mature-action {
	display: block;
}

.xh-farm-shop-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.xh-farm-order-grid,
.xh-farm-ach-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.xh-farm-order-card,
.xh-farm-ach-card {
	display: grid;
	gap: 8px;
	min-width: 0;
	padding: 12px;
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: 8px;
	background: #fff;
}

.xh-farm-order-card.is-done,
.xh-farm-ach-card.is-claimed {
	background: #f8fafc;
}

.xh-farm-ach-card.is-ready {
	border-color: rgba(15, 118, 110, .3);
	background: #f0fdfa;
}

.xh-farm-order-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.xh-farm-order-head strong,
.xh-farm-ach-card h3 {
	margin: 0;
	color: #0f172a;
	font-size: 15px;
	font-weight: 900;
	overflow-wrap: anywhere;
}

.xh-farm-order-head span {
	flex: 0 0 auto;
	padding: 3px 7px;
	border-radius: 8px;
	background: #eef2ff;
	color: #3730a3;
	font-size: 11px;
	font-weight: 900;
}

.xh-farm-order-reqs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.xh-farm-order-reqs span {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 8px;
	border-radius: 8px;
	background: #ecfdf5;
	color: #0f766e;
	font-size: 12px;
	font-weight: 900;
}

.xh-farm-order-reqs span.is-missing {
	background: #fff7ed;
	color: #9a3412;
}

.xh-farm-order-card p,
.xh-farm-ach-card p,
.xh-farm-ach-card em {
	margin: 0;
	color: #64748b;
	font-size: 12px;
	font-style: normal;
	line-height: 1.45;
}

.xh-farm-order-card form,
.xh-farm-ach-card form {
	margin: 0;
}

.xh-farm-order-card button,
.xh-farm-ach-card button {
	width: 100%;
	background: #0f766e;
	color: #fff;
}

.xh-farm-ach-card {
	grid-template-columns: 42px minmax(0, 1fr);
	align-items: start;
}

.xh-farm-ach-card i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: #eef6f2;
	color: #0f766e;
	font-style: normal;
	font-weight: 900;
}

.xh-farm-ach-progress,
.xh-farm-ach-card em,
.xh-farm-ach-card form,
.xh-farm-ach-card > button {
	grid-column: 1 / -1;
}

.xh-farm-ach-progress {
	height: 16px;
}

.xh-farm-ach-progress b {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0f172a;
	font-size: 10px;
	font-weight: 900;
}

.xh-farm-shop-card {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	align-items: start;
	gap: 8px;
	min-width: 0;
	padding: 12px;
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: 8px;
	background: #fff;
}

.xh-farm-shop-card .xh-farm-shop-icon {
	grid-row: 1 / span 3;
}

.xh-farm-shop-card h3 {
	margin: 0;
	color: #0f172a;
	font-size: 15px;
	font-weight: 900;
	overflow-wrap: anywhere;
}

.xh-farm-shop-card p,
.xh-farm-shop-card small {
	margin: 0;
	color: #64748b;
	font-size: 12px;
	line-height: 1.45;
}

.xh-farm-price {
	color: #ea580c;
	font-weight: 900;
}

.xh-farm-shop-card form {
	grid-column: 1 / -1;
}

.xh-farm-shop-card button {
	width: 100%;
	background: #0f766e;
	color: #fff;
}

.xh-farm-storage-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 10px;
}

.xh-farm-storage-summary div,
.xh-farm-storage-summary form {
	display: grid;
	align-content: center;
	min-height: 58px;
	margin: 0;
	padding: 10px;
	border-radius: 8px;
	background: #f8fafc;
}

.xh-farm-storage-summary strong {
	color: #0f172a;
	font-size: 18px;
}

.xh-farm-storage-summary span {
	color: #64748b;
	font-size: 12px;
}

.xh-farm-storage-summary button {
	width: 100%;
	background: #b45309;
	color: #fff;
}

.xh-farm-storage-list,
.xh-farm-rank-list,
.xh-farm-log-list {
	display: grid;
	gap: 8px;
}

.xh-farm-storage-row,
.xh-farm-rank-row,
.xh-farm-log-row {
	display: grid;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: 8px;
	background: #fff;
}

.xh-farm-storage-row {
	grid-template-columns: 46px minmax(0, 1fr) auto auto;
}

.xh-farm-storage-row strong,
.xh-farm-rank-row strong {
	display: block;
	color: #0f172a;
	font-size: 14px;
	font-weight: 900;
}

.xh-farm-storage-row strong em {
	color: #ea580c;
	font-size: 12px;
	font-style: normal;
}

.xh-farm-storage-row span,
.xh-farm-rank-row em {
	display: block;
	color: #64748b;
	font-size: 12px;
	font-style: normal;
	line-height: 1.4;
}

.xh-farm-storage-row form {
	display: flex;
	gap: 6px;
	align-items: center;
}

.xh-farm-storage-row input {
	width: 58px;
	height: 38px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	text-align: center;
}

.xh-farm-storage-row button {
	padding: 0 10px;
	background: #2563eb;
	color: #fff;
	white-space: nowrap;
}

.xh-farm-rank-row {
	grid-template-columns: 34px 46px minmax(0, 1fr) auto;
	color: inherit;
}

.xh-farm-rank-row > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: #f1f5f9;
	color: #475569;
	font-weight: 900;
}

.xh-farm-rank-row.rank-1 > span,
.xh-farm-rank-row.rank-2 > span,
.xh-farm-rank-row.rank-3 > span {
	background: #f59e0b;
	color: #fff;
}

.xh-farm-rank-row.is-me {
	border-color: rgba(14, 116, 144, .26);
	background: #ecfeff;
}

.xh-farm-rank-row b {
	padding: 7px 9px;
	border-radius: 8px;
	background: #eef2ff;
	color: #4f46e5;
	font-size: 12px;
	font-weight: 900;
	white-space: nowrap;
}

.xh-farm-rank-status {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	max-width: 100%;
	margin-top: 5px;
	padding: 4px 8px;
	border-radius: 8px;
	background: #f8fafc;
	color: #475569;
	font-size: 12px;
	font-style: normal;
	font-weight: 900;
	line-height: 1.35;
}

.xh-farm-empty {
	padding: 22px 12px;
	border: 1px dashed rgba(15, 23, 42, .16);
	border-radius: 8px;
	background: #f8fafc;
	color: #64748b;
	text-align: center;
}

.xh-farm-empty-icon {
	display: block;
	margin-bottom: 6px;
	font-size: 28px;
	line-height: 1;
}

.xh-farm-sheet,
.xh-farm-modal {
	position: fixed;
	inset: 0;
	z-index: 1060;
	display: none;
	background: rgba(15, 23, 42, .55);
}

.xh-farm-sheet.is-open,
.xh-farm-modal.is-open {
	display: flex;
}

.xh-farm-sheet {
	align-items: flex-end;
	justify-content: center;
}

.xh-farm-modal {
	align-items: center;
	justify-content: center;
	padding: 12px;
}

.xh-farm-sheet-card,
.xh-farm-modal-card {
	width: min(720px, 100%);
	max-height: min(84vh, 720px);
	overflow: auto;
	border-radius: 8px 8px 0 0;
	background: #fff;
	box-shadow: 0 -20px 50px rgba(15, 23, 42, .24);
}

.xh-farm-modal-card {
	border-radius: 8px;
}

.xh-farm-sheet-card header,
.xh-farm-modal-card header {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	border-bottom: 1px solid #e5e7eb;
	background: #fff;
}

.xh-farm-sheet-card header strong,
.xh-farm-modal-card header strong {
	color: #0f172a;
	font-size: 17px;
	font-weight: 900;
}

.xh-farm-sheet-card header button,
.xh-farm-modal-card header button {
	min-height: 36px;
	padding: 0 12px;
	background: #f1f5f9;
	color: #334155;
}

.xh-farm-seed-groups,
.xh-farm-help {
	display: grid;
	gap: 12px;
	padding: 12px;
}

.xh-farm-seed-group h3,
.xh-farm-help h3 {
	margin: 0 0 8px;
	color: #0f172a;
	font-size: 15px;
	font-weight: 900;
}

.xh-farm-seed-group > div {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
}

.xh-farm-seed-group form {
	margin: 0;
}

.xh-farm-seed-group button {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 68px;
	padding: 9px 10px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: #0f172a;
	text-align: left;
}

.xh-farm-seed-group button:hover,
.xh-farm-seed-group button:focus {
	background: #f8fbff;
	border-color: rgba(79, 125, 243, .25);
}

.xh-farm-seed-group button .xh-farm-seed-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 8px;
	background: #f8fafc;
	font-size: 30px;
	font-weight: 900;
	line-height: 1;
}

.xh-farm-seed-main {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.xh-farm-seed-group button strong {
	font-size: 14px;
	line-height: 1.2;
}

.xh-farm-seed-group button small {
	color: #64748b;
	font-size: 12px;
	font-style: normal;
	line-height: 1.35;
}

.xh-farm-seed-price {
	justify-self: end;
	color: #ea580c;
	font-size: 14px;
	font-style: normal;
	font-weight: 900;
	line-height: 1;
}

.xh-farm-seed-group form.is-disabled button {
	background: #f8fafc;
	color: #94a3b8;
}

.xh-farm-help div {
	padding: 10px;
	border-radius: 8px;
	background: #f8fafc;
}

.xh-farm-help h3 {
	display: flex;
	align-items: center;
	gap: 6px;
}

.xh-farm-help h3 span {
	font-size: 18px;
	line-height: 1;
}

.xh-farm-help p {
	margin: 0;
	color: #334155;
	font-size: 14px;
	line-height: 1.6;
}

.xh-farm-log-tabs {
	display: flex;
	gap: 6px;
	padding: 10px 12px 0;
	overflow-x: auto;
}

.xh-farm-log-tabs button {
	flex: 0 0 auto;
	min-height: 36px;
	padding: 0 10px;
	background: #f1f5f9;
	color: #475569;
	font-size: 12px;
}

.xh-farm-log-tabs button.is-active {
	background: #0f766e;
	color: #fff;
}

.xh-farm-log-list {
	max-height: 66vh;
	overflow: auto;
	padding: 12px;
}

.xh-farm-log-row {
	grid-template-columns: 32px 70px minmax(0, 1fr);
}

.xh-farm-log-row i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f8fafc;
	color: #0e7490;
	font-size: 18px;
	font-style: normal;
	font-weight: 900;
	line-height: 1;
}

.xh-farm-log-row span {
	color: #64748b;
	font-size: 12px;
}

.xh-farm-log-row p {
	margin: 0;
	color: #334155;
	font-size: 13px;
	line-height: 1.55;
}

.xh-farm-tabs a {
	position: relative;
}

.xh-farm-tabs a em {
	position: absolute;
	top: 5px;
	right: 7px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: 10px;
	font-style: normal;
	font-weight: 900;
	line-height: 1;
}

.xh-farm-notice-panel .xh-farm-panel-title form {
	margin: 0;
}

.xh-farm-notice-panel .xh-farm-panel-title button {
	min-height: 34px;
	padding: 0 12px;
	background: #0f766e;
	color: #fff;
}

.xh-farm-notice-list,
.xh-farm-social-grid {
	display: grid;
	gap: 10px;
}

.xh-farm-notice-card {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 1px solid rgba(100, 116, 139, .14);
	border-radius: 8px;
	background: #fff;
}

.xh-farm-notice-card.is-unread {
	border-color: rgba(20, 184, 166, .28);
	background: #f0fdfa;
}

.xh-farm-notice-card i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: #eef2ff;
	font-style: normal;
	font-size: 20px;
}

.xh-farm-notice-card strong,
.xh-farm-social-card h3 {
	display: block;
	margin: 0;
	color: #0f172a;
	font-size: 15px;
	font-weight: 900;
}

.xh-farm-notice-card p {
	margin: 5px 0;
	color: #475569;
	font-size: 13px;
	line-height: 1.45;
}

.xh-farm-notice-card em,
.xh-farm-notice-card > span,
.xh-farm-social-card em,
.xh-farm-social-log em {
	color: #64748b;
	font-size: 12px;
	font-style: normal;
	white-space: nowrap;
}

.xh-farm-notice-card form {
	margin: 0;
}

.xh-farm-notice-card button {
	min-height: 34px;
	padding: 0 12px;
	background: #2563eb;
	color: #fff;
}

.xh-farm-social-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xh-farm-social-card {
	display: grid;
	align-content: start;
	gap: 8px;
	min-width: 0;
	padding: 10px;
	border: 1px solid rgba(100, 116, 139, .12);
	border-radius: 8px;
	background: #f8fafc;
}

.xh-farm-social-card a,
.xh-farm-social-log {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	color: #0f172a;
	text-decoration: none;
}

.xh-farm-social-card img {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	object-fit: cover;
	background: #e2e8f0;
}

.xh-farm-social-card span,
.xh-farm-social-log p {
	min-width: 0;
	margin: 0;
	color: #334155;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xh-farm-social-log i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: #ecfeff;
	font-style: normal;
}

.xh-farm-social-empty {
	margin: 0;
	color: #64748b;
	font-size: 13px;
}

@media (max-width: 575.98px) {
	.xh-farm {
		padding: 10px 8px 24px;
	}
	.xh-farm-hero {
		display: grid;
		padding: 12px;
	}
	.xh-farm-hero h1 {
		font-size: 21px;
	}
	.xh-farm-hero-actions {
		justify-content: stretch;
	}
	.xh-farm-hero-actions button,
	.xh-farm-hero-actions a {
		flex: 1 1 0;
		min-width: 0;
	}
	.xh-farm-status {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.xh-farm-level {
		grid-template-columns: 1fr;
	}
	.xh-farm-level em {
		justify-self: start;
	}
	.xh-farm .xh-farm-tabs a {
		gap: 3px;
		min-height: 50px;
		font-size: 13px;
	}
	.xh-farm .xh-farm-tabs a span {
		display: inline-flex;
		font-size: 18px;
	}
	.xh-farm-grid,
	.xh-farm-shop-grid,
	.xh-farm-order-grid,
	.xh-farm-ach-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 7px;
	}
	.xh-farm-seed-group > div {
		grid-template-columns: 1fr;
		gap: 6px;
	}
	.xh-farm-order-grid,
	.xh-farm-ach-grid {
		grid-template-columns: 1fr;
	}
	.xh-farm-panel {
		padding: 9px;
	}
	.xh-farm-plot {
		min-height: 184px;
		padding: 7px;
	}
	.xh-farm-plot-head {
		align-items: flex-start;
	}
	.xh-farm-crop-icon,
	.xh-farm-shop-icon {
		width: 38px;
		height: 38px;
		font-size: 28px;
	}
	.xh-farm-plot strong {
		font-size: 13px;
	}
	.xh-farm-plot-actions button {
		min-height: 32px;
		padding: 0 7px;
	}
	.xh-farm-shop-card,
	.xh-farm-order-card,
	.xh-farm-ach-card,
	.xh-farm-storage-row {
		padding: 9px;
	}
	.xh-farm-shop-card {
		grid-template-columns: 40px minmax(0, 1fr);
	}
	.xh-farm-storage-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.xh-farm-storage-summary form {
		grid-column: 1 / -1;
	}
	.xh-farm-storage-row {
		grid-template-columns: 42px minmax(0, 1fr);
	}
	.xh-farm-storage-row form {
		grid-column: 1 / -1;
	}
	.xh-farm-storage-row form button {
		flex: 1 1 auto;
	}
	.xh-farm-rank-row {
		grid-template-columns: 30px 42px minmax(0, 1fr);
	}
	.xh-farm-rank-row b {
		grid-column: 3;
		justify-self: start;
		margin-top: 2px;
	}
	.xh-farm-rank-row img {
		width: 42px;
		height: 42px;
	}
	.xh-farm-home-pill {
		padding: 0 8px;
	}
	.xh-farm-home-pill em {
		max-width: 68px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.xh-farm-log-row {
		grid-template-columns: 32px minmax(0, 1fr);
	}
	.xh-farm-log-row span {
		grid-column: 2;
	}
	.xh-farm-log-row p {
		grid-column: 2;
	}
	.xh-farm-notice-card {
		grid-template-columns: 34px minmax(0, 1fr);
		align-items: start;
	}
	.xh-farm-notice-card form,
	.xh-farm-notice-card > span {
		grid-column: 2;
		justify-self: start;
	}
	.xh-farm-social-grid {
		grid-template-columns: 1fr;
	}
	.xh-farm-social-card a,
	.xh-farm-social-log {
		grid-template-columns: 34px minmax(0, 1fr) auto;
	}
}

@media (max-width: 339px) {
	.xh-farm-grid,
	.xh-farm-shop-grid,
	.xh-farm-seed-group > div {
		grid-template-columns: 1fr;
	}
}

/* V2.1 game UI, scoped to the farm page. */
html.xh-farm-page-active #footer {
	display: none !important;
}

.xh-farm-game {
	max-width: 980px;
	padding: 12px 12px 104px;
	background:
		linear-gradient(180deg, rgba(236, 253, 245, .72), rgba(239, 246, 255, .68)),
		#f7fbf1;
	border-radius: 22px;
}

.xh-farm-game .xh-farm-hero,
.xh-farm-game .xh-farm-panel,
.xh-farm-game .xh-farm-tabs,
.xh-farm-game .xh-farm-quickbar,
.xh-farm-game .xh-farm-reminder,
.xh-farm-game .xh-farm-level {
	border-color: rgba(63, 98, 18, .14);
	border-radius: 20px;
	box-shadow: 0 12px 26px rgba(50, 74, 39, .09);
}

.xh-farm-game-hero {
	position: relative;
	display: grid;
	gap: 14px;
	padding: 14px;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(218, 255, 213, .94), rgba(224, 244, 255, .92)),
		repeating-linear-gradient(90deg, rgba(22, 101, 52, .08) 0 1px, transparent 1px 28px),
		#ecfdf5;
}

.xh-farm-game .xh-farm-hero-top {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.xh-farm-game .xh-farm-avatar {
	width: 58px;
	height: 58px;
	border: 3px solid rgba(255, 255, 255, .78);
	border-radius: 16px;
	box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.xh-farm-game .xh-farm-kicker {
	color: #087f5b;
	font-size: 13px;
}

.xh-farm-game .xh-farm-hero h1 {
	font-size: 25px;
}

.xh-farm-game .xh-farm-hero p {
	max-width: 560px;
	color: #53657e;
	font-size: 15px;
}

.xh-farm-game .xh-farm-hero-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(132px, 1fr));
	gap: 10px;
	min-width: 286px;
}

.xh-farm-game .xh-farm-hero-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 48px;
	padding: 0 14px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #0f766e, #14b8a6);
	color: #fff !important;
	box-shadow: 0 10px 20px rgba(15, 118, 110, .22);
	text-decoration: none;
	appearance: none;
	-webkit-appearance: none;
}

.xh-farm-game .xh-farm-hero-action-btn:nth-child(2) {
	background: linear-gradient(135deg, #4f46e5, #8b5cf6);
	box-shadow: 0 10px 20px rgba(79, 70, 229, .22);
}

.xh-farm-game .xh-farm-hero-action-btn:nth-child(3) {
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	box-shadow: 0 10px 20px rgba(37, 99, 235, .2);
}

.xh-farm-game .xh-farm-hero-action-btn span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .2);
	color: #fff;
	font-size: 18px;
	line-height: 1;
}

.xh-farm-game .xh-farm-hero-action-btn em {
	display: inline-block;
	color: #fff;
	font-size: 15px;
	font-weight: 900;
	font-style: normal;
	line-height: 1;
	white-space: nowrap;
}

.xh-farm-hud {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}

.xh-farm-hud div {
	display: grid;
	gap: 3px;
	min-width: 0;
	padding: 9px 8px;
	border: 1px solid rgba(255, 255, 255, .66);
	border-radius: 16px;
	background: rgba(255, 255, 255, .72);
	box-shadow: inset 0 -1px 0 rgba(15, 23, 42, .05);
}

.xh-farm-hud span {
	color: #607089;
	font-size: 11px;
	font-weight: 800;
}

.xh-farm-hud strong {
	overflow: hidden;
	color: #0f172a;
	font-size: 17px;
	font-weight: 950;
	line-height: 1.15;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xh-farm-game .xh-farm-reminder {
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr);
	justify-content: start;
	padding: 10px 14px;
	background: #fffdf4;
}

.xh-farm-game .xh-farm-reminder i {
	font-style: normal;
	font-size: 20px;
	line-height: 1;
}

.xh-farm-game .xh-farm-reminder strong {
	white-space: nowrap;
}

.xh-farm-game .xh-farm-level {
	grid-template-columns: minmax(90px, .65fr) minmax(120px, 1fr) auto;
	padding: 11px 14px;
	background: #fff;
}

.xh-farm-game .xh-farm-level strong {
	font-size: 17px;
}

.xh-farm-game .xh-farm-level-bar {
	height: 16px;
	border-radius: 999px;
}

.xh-farm-game .xh-farm-level-bar span,
.xh-farm-game .xh-farm-ach-progress span {
	background: linear-gradient(90deg, #10b981, #38bdf8, #fbbf24);
}

.xh-farm-game .xh-farm-quickbar {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	padding: 10px;
	background: #fff;
}

.xh-farm-game .xh-farm-quickbar button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 50px;
	border-radius: 16px;
	background: linear-gradient(180deg, #15957f, #0f766e);
	color: #fff;
	box-shadow: 0 9px 16px rgba(15, 118, 110, .2);
}

.xh-farm-game .xh-farm-quickbar form:nth-child(3) button {
	background: linear-gradient(180deg, #d8a27f, #b77954);
	box-shadow: 0 9px 16px rgba(180, 83, 9, .16);
}

.xh-farm-game .xh-farm-quickbar button span {
	font-size: 18px;
	line-height: 1;
}

.xh-farm-game .xh-farm-quickbar button b {
	font-size: 14px;
	font-weight: 900;
}

.xh-farm-game .xh-farm-tabs {
	display: flex;
	gap: 8px;
	padding: 9px;
	overflow-x: auto;
	background: #fff;
	scrollbar-width: none;
}

.xh-farm-game .xh-farm-tabs::-webkit-scrollbar {
	display: none;
}

.xh-farm-game .xh-farm-tabs a,
.xh-farm-game .xh-farm-tabs a:visited {
	flex: 1 0 auto;
	min-width: 92px;
	min-height: 48px;
	padding: 0 12px;
	border: 1px solid rgba(100, 116, 139, .12);
	border-radius: 16px;
	background: #f8fafc;
	color: #526278 !important;
	box-shadow: inset 0 -1px 0 rgba(15, 23, 42, .04);
}

.xh-farm-game .xh-farm-tabs a span {
	font-size: 22px;
}

.xh-farm-game .xh-farm-tabs a.is-active,
.xh-farm-game .xh-farm-tabs a.is-active:visited {
	border-color: rgba(15, 118, 110, .18);
	background: linear-gradient(180deg, #15957f, #0f766e);
	color: #fff !important;
	box-shadow: 0 10px 18px rgba(15, 118, 110, .2);
}

.xh-farm-game .xh-farm-panel {
	padding: 14px;
	background: rgba(255, 255, 255, .94);
}

.xh-farm-game .xh-farm-panel-title h2 {
	font-size: 21px;
}

.xh-farm-land-title {
	align-items: flex-start;
}

.xh-farm-land-title > div {
	display: grid;
	gap: 4px;
}

.xh-farm-game .xh-farm-land-title span {
	text-align: left;
}

.xh-farm-land-title em {
	flex: 0 0 auto;
	padding: 6px 9px;
	border-radius: 999px;
	background: #fef3c7;
	color: #92400e;
	font-size: 12px;
	font-style: normal;
	font-weight: 900;
}

.xh-farm-game .xh-farm-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.xh-farm-game .xh-farm-plot {
	display: flex;
	flex-direction: column;
	min-height: 220px;
	padding: 11px;
	border: 2px solid rgba(101, 163, 13, .22);
	border-radius: 18px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0)),
		repeating-linear-gradient(0deg, rgba(22, 101, 52, .08) 0 2px, transparent 2px 28px),
		linear-gradient(180deg, #e8ffd8, #d7f7c0);
	box-shadow: inset 0 -5px 0 rgba(99, 102, 24, .08), 0 9px 18px rgba(58, 82, 34, .09);
}

.xh-farm-game .xh-farm-plot.is-soil-black {
	border-color: rgba(15, 23, 42, .36);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0)),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 28px),
		linear-gradient(180deg, #374151, #1f2937);
	box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18), 0 10px 20px rgba(15, 23, 42, .18);
}

.xh-farm-game .xh-farm-plot.is-mature {
	border-color: rgba(245, 158, 11, .6);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0)),
		repeating-linear-gradient(0deg, rgba(146, 64, 14, .08) 0 2px, transparent 2px 28px),
		linear-gradient(180deg, #fff7c2, #ddf9bd);
	box-shadow: 0 0 0 2px rgba(245, 158, 11, .12), 0 12px 22px rgba(245, 158, 11, .18);
}

.xh-farm-game .xh-farm-plot.is-locked {
	border-color: rgba(148, 163, 184, .4);
	border-style: dashed;
	background:
		repeating-linear-gradient(0deg, rgba(148, 163, 184, .08) 0 2px, transparent 2px 28px),
		linear-gradient(180deg, #f8fafc, #eef2f7);
	box-shadow: none;
}

.xh-farm-game .xh-farm-plot.is-mature::after {
	border-radius: 18px;
}

.xh-farm-game .xh-farm-plot-head span,
.xh-farm-game .xh-farm-plot-head em {
	color: #5f6f51;
	font-size: 12px;
}

.xh-farm-game .xh-farm-plot.is-soil-black .xh-farm-plot-head span,
.xh-farm-game .xh-farm-plot.is-soil-black .xh-farm-plot-head em,
.xh-farm-game .xh-farm-plot.is-soil-black strong,
.xh-farm-game .xh-farm-plot.is-soil-black .xh-farm-plot-sub {
	color: #f8fafc;
}

.xh-farm-game .xh-farm-plot-head button {
	width: 34px;
	height: 34px;
	min-height: 34px;
	border-radius: 13px;
	background: #263241;
}

.xh-farm-game .xh-farm-crop-icon {
	width: auto;
	height: 58px;
	align-items: center;
	justify-content: flex-start;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font-size: 54px;
	text-shadow: 0 5px 9px rgba(15, 23, 42, .12);
}

.xh-farm-game .xh-farm-plot.is-empty .xh-farm-crop-icon {
	font-size: 50px;
}

.xh-farm-game .xh-farm-plot.is-locked .xh-farm-crop-icon {
	width: 54px;
	height: 54px;
	justify-content: center;
	border: 1px solid rgba(148, 163, 184, .24);
	border-radius: 17px;
	background: rgba(255, 255, 255, .72);
	color: #0f766e;
	font-size: 34px;
	text-shadow: none;
}

.xh-farm-game .xh-farm-plot strong {
	font-size: 16px;
}

.xh-farm-game .xh-farm-plot-sub,
.xh-farm-game .xh-farm-friend-tip {
	min-height: 32px;
	color: #607089;
	font-size: 13px;
}

.xh-farm-game .xh-farm-progress {
	height: 20px;
	border: 1px solid rgba(255, 255, 255, .42);
	border-radius: 999px;
	background: rgba(15, 23, 42, .1);
}

.xh-farm-game .xh-farm-plot.is-soil-black .xh-farm-progress {
	border-color: rgba(255, 255, 255, .28);
	background: rgba(2, 6, 23, .34);
}

.xh-farm-game .xh-farm-plot.is-soil-black .xh-farm-progress b {
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(2, 6, 23, .92), 0 0 6px rgba(2, 6, 23, .5);
}

.xh-farm-game .xh-farm-plot-actions {
	gap: 7px;
}

.xh-farm-game .xh-farm-plot-actions form {
	flex: 1 1 calc(50% - 4px);
}

.xh-farm-game .xh-farm-plot-actions > button,
.xh-farm-game .xh-farm-plot-actions form:only-child {
	flex: 1 1 100%;
}

.xh-farm-game .xh-farm-plot-actions button {
	width: 100%;
	min-height: 36px;
	padding: 0 8px;
	border-radius: 13px;
	background: linear-gradient(180deg, #3b82f6, #2563eb);
	font-size: 13px;
	box-shadow: 0 7px 13px rgba(37, 99, 235, .18);
}

.xh-farm-game .xh-farm-plot-actions form:nth-child(2n) button {
	background: linear-gradient(180deg, #be7b50, #9a5b37);
	box-shadow: 0 7px 13px rgba(124, 45, 18, .15);
}

.xh-farm-game .xh-farm-shop-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.xh-farm-game .xh-farm-shop-card,
.xh-farm-game .xh-farm-order-card,
.xh-farm-game .xh-farm-ach-card,
.xh-farm-game .xh-farm-storage-row,
.xh-farm-game .xh-farm-rank-row,
.xh-farm-game .xh-farm-log-row {
	border-radius: 18px;
	background: linear-gradient(180deg, #fff, #fbfff7);
	box-shadow: 0 8px 17px rgba(15, 23, 42, .06);
}

.xh-farm-game .xh-farm-shop-icon,
.xh-farm-game .xh-farm-seed-group button .xh-farm-seed-icon {
	border-radius: 16px;
	background: #f0fdf4;
	box-shadow: inset 0 -2px 0 rgba(15, 118, 110, .07);
}

.xh-farm-game .xh-farm-orders {
	padding: 10px;
	background: #fff;
}

.xh-farm-orders-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	padding: 9px 12px;
	border-radius: 16px;
	background: linear-gradient(180deg, #fff7ed, #ffedd5);
	color: #8a3d0a;
	text-align: left;
}

.xh-farm-orders-toggle span {
	display: grid;
	grid-template-columns: auto minmax(0, auto);
	align-items: center;
	column-gap: 8px;
	row-gap: 2px;
	min-width: 0;
}

.xh-farm-orders-toggle i {
	grid-row: 1 / span 2;
	font-size: 24px;
	font-style: normal;
}

.xh-farm-orders-toggle strong,
.xh-farm-orders-toggle em {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xh-farm-orders-toggle strong {
	color: #7c2d12;
	font-size: 15px;
}

.xh-farm-orders-toggle em {
	color: #9a5b20;
	font-size: 12px;
	font-style: normal;
}

.xh-farm-orders-toggle b {
	flex: 0 0 auto;
	padding: 6px 9px;
	border-radius: 999px;
	background: #fff;
	color: #b45309;
	font-size: 12px;
}

.xh-farm-orders-summary {
	margin: 8px 4px 0;
	color: #64748b;
	font-size: 12px;
	line-height: 1.45;
}

.xh-farm-orders .xh-farm-order-grid {
	display: none;
	margin-top: 10px;
}

.xh-farm-orders.is-open .xh-farm-order-grid {
	display: grid;
}

.xh-farm-game .xh-farm-order-grid,
.xh-farm-game .xh-farm-ach-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.xh-farm-game .xh-farm-order-card button,
.xh-farm-game .xh-farm-ach-card button,
.xh-farm-game .xh-farm-shop-card button {
	border-radius: 14px;
	background: linear-gradient(180deg, #15957f, #0f766e);
}

.xh-farm-game .xh-farm-storage-summary div,
.xh-farm-game .xh-farm-storage-summary form {
	border-radius: 16px;
	background: #f4fbf2;
}

.xh-farm-game .xh-farm-storage-row input {
	border-radius: 12px;
}

.xh-farm-game .xh-farm-storage-row button {
	border-radius: 13px;
	background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.xh-farm-game .xh-farm-rank-row {
	grid-template-columns: 40px 48px minmax(0, 1fr) auto;
}

.xh-farm-game .xh-farm-rank-row > span {
	width: 40px;
	height: 40px;
	border-radius: 16px;
}

.xh-farm-game .xh-farm-rank-row.rank-1 > span {
	background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

.xh-farm-game .xh-farm-rank-row.rank-2 > span {
	background: linear-gradient(180deg, #cbd5e1, #94a3b8);
}

.xh-farm-game .xh-farm-rank-row.rank-3 > span {
	background: linear-gradient(180deg, #fdba74, #ea580c);
}

.xh-farm-game .xh-farm-rank-row b,
.xh-farm-game .xh-farm-rank-status {
	border-radius: 999px;
}

.xh-farm-modal-card,
.xh-farm-sheet-card {
	border-radius: 20px;
}

.xh-farm-sheet-card header,
.xh-farm-modal-card header {
	border-radius: 20px 20px 0 0;
}

.xh-farm-game .xh-farm-empty {
	border-radius: 18px;
}

@media (max-width: 575.98px) {
	.xh-farm-game {
		padding: 8px 8px 96px;
		border-radius: 0;
	}

	.xh-farm-game .xh-farm-hero-top {
		display: grid;
	}

	.xh-farm-game .xh-farm-hero-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		min-width: 0;
		width: 100%;
	}

	.xh-farm-game .xh-farm-hero h1 {
		font-size: 23px;
	}

	.xh-farm-hud {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 6px;
	}

	.xh-farm-hud div {
		padding: 8px 5px;
		border-radius: 14px;
	}

	.xh-farm-hud span {
		font-size: 10px;
	}

	.xh-farm-hud strong {
		font-size: 14px;
	}

	.xh-farm-game .xh-farm-level {
		grid-template-columns: 1fr;
	}

	.xh-farm-game .xh-farm-tabs {
		padding: 8px;
	}

	.xh-farm-game .xh-farm-tabs a,
	.xh-farm-game .xh-farm-tabs a:visited {
		min-width: 78px;
		min-height: 46px;
		padding: 0 10px;
		font-size: 13px;
	}

	.xh-farm-game .xh-farm-panel {
		padding: 10px;
	}

	.xh-farm-game .xh-farm-panel-title {
		align-items: flex-start;
	}

	.xh-farm-game .xh-farm-panel-title h2 {
		font-size: 20px;
	}

	.xh-farm-land-title em {
		max-width: 118px;
		white-space: normal;
	}

	.xh-farm-game .xh-farm-plot {
		min-height: 222px;
		padding: 9px;
		border-radius: 17px;
	}

	.xh-farm-game .xh-farm-plot strong {
		font-size: 15px;
	}

	.xh-farm-game .xh-farm-crop-icon {
		height: 54px;
		font-size: 50px;
	}

	.xh-farm-game .xh-farm-plot-actions button {
		min-height: 34px;
		font-size: 12px;
	}

	.xh-farm-game .xh-farm-shop-grid {
		grid-template-columns: 1fr;
	}

	.xh-farm-game .xh-farm-order-grid,
	.xh-farm-game .xh-farm-ach-grid {
		grid-template-columns: 1fr;
	}

	.xh-farm-game .xh-farm-storage-row {
		grid-template-columns: 44px minmax(0, 1fr);
	}

	.xh-farm-game .xh-farm-rank-row {
		grid-template-columns: 34px 44px minmax(0, 1fr);
	}
}

@media (max-width: 390px) {
	.xh-farm-game .xh-farm-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}
}

@media (min-width: 391px) and (max-width: 575.98px) {
	.xh-farm-game .xh-farm-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.xh-farm-game .xh-farm-plot {
		min-height: 214px;
		padding: 8px;
	}

	.xh-farm-game .xh-farm-plot-head span,
	.xh-farm-game .xh-farm-plot-head em {
		font-size: 11px;
	}

	.xh-farm-game .xh-farm-crop-icon {
		height: 48px;
		font-size: 44px;
	}

	.xh-farm-game .xh-farm-plot strong {
		font-size: 13px;
	}

	.xh-farm-game .xh-farm-plot-sub,
	.xh-farm-game .xh-farm-friend-tip {
		font-size: 12px;
	}

	.xh-farm-game .xh-farm-plot-actions {
		gap: 5px;
	}

	.xh-farm-game .xh-farm-plot-actions button {
		min-height: 32px;
		padding: 0 6px;
		font-size: 11px;
	}
}
