/**
 * Fake OS context menu + loading dialog (site-wide right-click gag).
 */

.ten-ctx {
	position: fixed;
	z-index: 100050;
	box-sizing: border-box;
	min-width: 248px;
	padding: 10px 0 8px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 10px;
	box-shadow:
		0 12px 40px rgba(15, 23, 42, 0.16),
		0 2px 8px rgba(15, 23, 42, 0.06);
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	color: #334155;
	user-select: none;
	-webkit-user-select: none;
}

.ten-ctx[hidden],
.ten-ctx-load[hidden] {
	display: none !important;
}

.ten-ctx__head,
.ten-ctx__foot {
	padding: 4px 16px 8px;
	color: #b8c0c8;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.3;
}

.ten-ctx__head {
	border-bottom: 1px solid #eceff2;
	margin-bottom: 4px;
}

.ten-ctx__foot {
	margin-top: 4px;
	padding-top: 8px;
	border-top: 1px solid #eceff2;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
	font-size: 11px;
}

.ten-ctx__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ten-ctx__item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 9px 16px;
	border: 0;
	background: transparent;
	color: #3d4f5f;
	font: inherit;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	appearance: none;
}

.ten-ctx__item:hover,
.ten-ctx__item:focus-visible {
	background: #f4f6f8;
	outline: none;
}

.ten-ctx__item--danger {
	color: #c0392b;
}

.ten-ctx__item--danger:hover,
.ten-ctx__item--danger:focus-visible {
	background: #fdf2f1;
}

.ten-ctx__icon {
	flex: 0 0 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: #6b7c8a;
}

.ten-ctx__item--danger .ten-ctx__icon {
	color: #c0392b;
}

.ten-ctx__icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

.ten-ctx-load {
	position: fixed;
	inset: 0;
	z-index: 100060;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.38);
}

.ten-ctx-load__dialog {
	position: relative;
	box-sizing: border-box;
	width: min(380px, 100%);
	padding: 28px 28px 24px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	color: #334155;
}

.ten-ctx-load__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #64748b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	appearance: none;
}

.ten-ctx-load__close:hover,
.ten-ctx-load__close:focus-visible {
	background: #f1f5f9;
	color: #0f172a;
	outline: none;
}

.ten-ctx-load__title {
	margin: 0 28px 18px 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: #1e293b;
}

.ten-ctx-load__track {
	position: relative;
	height: 10px;
	overflow: hidden;
	background: #e8edf2;
	border-radius: 999px;
}

.ten-ctx-load__bar {
	display: block;
	width: 0%;
	height: 100%;
	background: #cc0607;
	border-radius: inherit;
	transition: width 0.12s linear;
}

.ten-ctx-load__pct {
	margin-top: 10px;
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-align: right;
	font-variant-numeric: tabular-nums;
}
