.lk-item-menu-v5 {
	position: fixed;
	z-index: 100;
	width: 208px;
	max-width: calc(100vw - 16px);
	max-height: calc(100dvh - 16px);
	overflow: auto;
	padding: 6px;
	border: 1px solid #b19c6d;
	background: #12170ff5;
	box-shadow: 0 4px 24px #000b;
}
.lk-item-menu-v5[hidden] {
	display: none;
}
.lk-item-menu-title-v5 {
	display: block;
	padding: 5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.lk-item-menu-v5 button {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 3px 0;
	text-align: left;
	padding: 8px 12px;
}
.lk-quantity-v5,
.lk-chat-history-v5 {
	padding: 0;
	border: 1px solid #7c805c;
	max-width: calc(100vw - 16px);
	max-height: calc(100dvh - 16px);
	overflow: auto;
	background: #10140f;
	color: #eee7d1;
	box-sizing: border-box;
}
.lk-quantity-v5::backdrop,
.lk-chat-history-v5::backdrop {
	background: #0009;
}
.lk-quantity-v5 {
	width: min(408px, calc(100vw - 24px));
}
.lk-quantity-form-v5 {
	margin: 0;
}
.lk-quantity-surface-v5 {
	position: relative;
	width: 100%;
	aspect-ratio: 136 / 69;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	image-rendering: pixelated;
}
.lk-quantity-name-v5 {
	position: absolute;
	left: 33.82%;
	top: 15.94%;
	width: 56.62%;
	height: 18.84%;
	display: grid;
	align-items: center;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 16px;
	background: #050805;
}
.lk-quantity-input-v5 {
	position: absolute;
	left: 34.56%;
	top: 40.58%;
	width: 54.41%;
	height: 18.84%;
	min-height: 44px;
	box-sizing: border-box;
	padding: 2px 5px !important;
	font: 16px system-ui !important;
	color: #fff;
	background: #000;
	border: 1px solid #9a9c70;
}
.lk-quantity-ok-v5,
.lk-quantity-cancel-v5 {
	position: absolute;
	top: 69.57%;
	min-height: 44px !important;
	height: 20.29%;
	font-size: 16px;
	background: #151b0dcc;
	border: 1px solid #8c8c5e;
	padding: 0 !important;
}
.lk-quantity-ok-v5 {
	left: 5.88%;
	width: 42.65%;
}
.lk-quantity-cancel-v5 {
	left: 52.21%;
	width: 44.12%;
}
.lk-quantity-status-v5 {
	margin: 4px 8px 7px;
	min-height: 20px;
	font-size: 13px;
	line-height: 20px;
}
.lk-inventory-pager-v5 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 6px 0;
	flex-wrap: wrap;
}
.lk-inventory-pager-v5 button,
.lk-item-menu-open-v5,
#chatHistoryButtonV5 {
	min-width: 44px;
	min-height: 44px;
	padding: 6px 10px;
}
.lk-inventory-pager-v5 output {
	min-width: 70px;
	text-align: center;
}
.lk-chat-history-v5 {
	width: min(504px, calc(100vw - 16px));
	height: min(345px, calc(100dvh - 16px));
	min-height: 160px;
}
.lk-chat-history-surface-v5 {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 160px;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	image-rendering: pixelated;
}
.lk-chat-history-list-v5 {
	position: absolute;
	left: 3.57%;
	top: 7.25%;
	width: calc(93.85% - 44px);
	height: calc(84.06% - 28px);
	padding: 3px 5px;
	margin: 0;
	overflow: auto;
	list-style: none;
	background: #000;
	color: #ddd;
	font:
		16px / 1.4 "Last Kingdom Native",
		Gulim,
		sans-serif;
	scrollbar-width: thin;
}
.lk-chat-history-list-v5 li {
	margin: 0 0 4px;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
}
.lk-chat-history-list-v5 time {
	color: #aaa;
	font: 11px system-ui;
	margin-right: 4px;
}
.lk-chat-history-list-v5 .system {
	color: #ccb984;
}
.lk-chat-history-list-v5 .chat-name {
	margin-inline-end: 8px;
}
.lk-chat-history-close-v5,
.lk-chat-history-clear-v5 {
	position: absolute;
	bottom: 3px;
	min-height: 44px;
	box-sizing: border-box;
}
.lk-chat-history-close-v5 {
	right: 3.57%;
	min-width: 70px;
}
.lk-chat-history-clear-v5 {
	left: 3.57%;
	max-width: calc(100% - 100px);
}
.lk-chat-history-scroll-v5 {
	position: absolute;
	right: 2%;
	width: 44px;
	height: 44px;
	padding: 0;
	display: grid;
	place-items: center;
}
.lk-chat-history-scroll-v5.up {
	top: 7.25%;
}
.lk-chat-history-scroll-v5.down {
	bottom: 49px;
}
.lk-chat-history-arrow-v5 {
	display: block;
	width: 32px;
	height: 32px;
	background-size: 256px 32px;
	background-repeat: no-repeat;
	image-rendering: pixelated;
}
@media (max-width: 360px) {
	.lk-quantity-input-v5 {
		top: 35%;
	}
}
