/* xlucom Desktop — dark desktop UI */

:root {
	--xl-bg: #07090e;
	--xl-panel: rgba(17, 22, 31, 0.86);
	--xl-panel-solid: #11161f;
	--xl-raise: #1a2130;
	--xl-raise-2: #212a3b;
	--xl-line: rgba(255, 255, 255, 0.07);
	--xl-line-2: rgba(255, 255, 255, 0.13);
	--xl-text: #dfe6f2;
	--xl-muted: #8592a8;
	--xl-accent: #2de2c4;
	--xl-accent-ink: #04150f;
	--xl-danger: #ff5d6c;
	--xl-warn: #ffb547;
	--xl-ok: #3ddc97;
	--xl-radius: 12px;
	--xl-bar: 52px;
	--xl-top: 0px;
	--xl-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--xl-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
	color-scheme: dark;
}

.admin-bar {
	--xl-top: var(--wp-admin--admin-bar--height, 32px);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	height: 100%;
	background: var(--xl-bg);
	color: var(--xl-text);
	font: 14px/1.45 var(--xl-font);
	-webkit-font-smoothing: antialiased;
	overflow: hidden;
	overscroll-behavior: none;
}

a {
	color: var(--xl-accent);
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

[hidden] {
	display: none !important;
}

::selection {
	background: color-mix(in srgb, var(--xl-accent) 35%, transparent);
}

* {
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

*::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

*::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.16);
	border-radius: 10px;
	border: 2px solid transparent;
	background-clip: padding-box;
}

/* ---------------------------------------------------------------- desktop */

.xl-desktop {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--xl-top);
	bottom: var(--xl-bar);
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
	background:
		var(--xl-wall-img, none) center / cover no-repeat,
		radial-gradient(1100px 650px at 82% -8%, color-mix(in srgb, var(--xl-accent) 20%, transparent), transparent 62%),
		radial-gradient(900px 620px at -8% 108%, rgba(118, 84, 255, 0.18), transparent 60%),
		linear-gradient(180deg, #0b0f17 0%, #07090e 100%);
}

.xl-desktop.xl-bg-grid::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}

.xl-wordmark {
	position: absolute;
	right: 32px;
	bottom: 18px;
	font: 700 clamp(48px, 9vw, 120px) / 1 var(--xl-mono);
	letter-spacing: -0.06em;
	text-transform: lowercase;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
	pointer-events: none;
	white-space: nowrap;
}

.xl-icons,
.xl-windows {
	position: absolute;
	inset: 0;
}

.xl-windows {
	pointer-events: none;
}

/* ------------------------------------------------------------------ icons */

.xl-icon {
	position: absolute;
	width: 88px;
	padding: 8px 4px 7px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	background: none;
	border: 1px solid transparent;
	border-radius: 11px;
	cursor: default;
	touch-action: none;
	transition: left 0.18s ease, top 0.18s ease, background-color 0.15s;
	-webkit-tap-highlight-color: transparent;
}

.xl-icon:hover {
	background: rgba(255, 255, 255, 0.05);
}

.xl-icon.is-selected {
	background: color-mix(in srgb, var(--xl-accent) 14%, transparent);
	border-color: color-mix(in srgb, var(--xl-accent) 38%, transparent);
}

.xl-icon:focus-visible {
	outline: 2px solid var(--xl-accent);
	outline-offset: 1px;
}

.xl-icon.is-dragging {
	transition: none;
	z-index: 5;
	opacity: 0.85;
}

.xl-icon-img {
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	border-radius: 15px;
	color: var(--tint, var(--xl-accent));
	background:
		radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--tint, var(--xl-accent)) 22%, transparent), transparent 70%),
		linear-gradient(160deg, #1f2839, #10151e);
	border: 1px solid var(--xl-line-2);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.xl-icon-img svg {
	width: 28px;
	height: 28px;
}

.xl-icon-label {
	max-width: 86px;
	font-size: 12px;
	line-height: 1.25;
	text-align: center;
	text-shadow: 0 1px 3px #000, 0 0 8px rgba(0, 0, 0, 0.6);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- windows */

.xl-win {
	position: absolute;
	display: flex;
	flex-direction: column;
	min-width: 280px;
	min-height: 180px;
	pointer-events: auto;
	user-select: text;
	-webkit-user-select: text;
	background: var(--xl-panel);
	-webkit-backdrop-filter: blur(20px) saturate(140%);
	backdrop-filter: blur(20px) saturate(140%);
	border: 1px solid var(--xl-line-2);
	border-radius: var(--xl-radius);
	box-shadow: 0 28px 70px -14px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	outline: none;
	transition: opacity 0.16s ease, transform 0.16s ease, border-color 0.2s;
}

.xl-win.is-opening {
	opacity: 0;
	transform: translateY(8px) scale(0.975);
}

.xl-win.is-focused {
	border-color: color-mix(in srgb, var(--xl-accent) 38%, var(--xl-line-2));
	box-shadow: 0 28px 70px -14px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 36px -14px color-mix(in srgb, var(--xl-accent) 55%, transparent);
}

.xl-win.is-dragging {
	transition: none;
	user-select: none;
}

.xl-win.is-min {
	display: none;
}

.xl-win.is-max {
	left: 0 !important;
	top: 0 !important;
	width: 100% !important;
	height: 100% !important;
	border-radius: 0;
	border-width: 0;
}

.xl-win-bar {
	flex: none;
	display: flex;
	align-items: center;
	gap: 9px;
	height: 42px;
	padding: 0 6px 0 13px;
	border-bottom: 1px solid var(--xl-line);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
	touch-action: none;
}

.xl-win.is-dragging .xl-win-bar {
	cursor: grabbing;
}

.xl-win:not(.is-focused) .xl-win-bar > :not(.xl-win-ctrls) {
	opacity: 0.6;
}

.xl-win-icon {
	display: grid;
	color: var(--xl-accent);
}

.xl-win-icon svg {
	width: 16px;
	height: 16px;
}

.xl-win-title {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.xl-win-ctrls {
	display: flex;
	gap: 2px;
}

.xl-win-btn {
	width: 32px;
	height: 28px;
	display: grid;
	place-items: center;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 7px;
	color: var(--xl-muted);
	cursor: pointer;
}

.xl-win-btn:hover,
.xl-win-btn:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	color: var(--xl-text);
	outline: none;
}

.xl-win-btn.is-close:hover,
.xl-win-btn.is-close:focus-visible {
	background: var(--xl-danger);
	color: #fff;
}

.xl-win-btn svg {
	width: 15px;
	height: 15px;
}

.xl-win-body {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: auto;
}

.xl-win-grip {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 18px;
	height: 18px;
	cursor: nwse-resize;
	touch-action: none;
	background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.18) 58%, transparent 58%, transparent 70%, rgba(255, 255, 255, 0.18) 70%, rgba(255, 255, 255, 0.18) 78%, transparent 78%);
}

.xl-win.is-max .xl-win-grip {
	display: none;
}

/* ---------------------------------------------------------------- taskbar */

.xl-taskbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--xl-bar);
	z-index: 9000;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 10px calc(env(safe-area-inset-bottom, 0px) * 0.5);
	background: rgba(10, 13, 19, 0.82);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	border-top: 1px solid var(--xl-line-2);
	user-select: none;
	-webkit-user-select: none;
}

.xl-start-btn {
	flex: none;
	display: flex;
	align-items: center;
	gap: 9px;
	height: 38px;
	padding: 0 12px 0 6px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--xl-line-2);
	border-radius: 10px;
	cursor: pointer;
}

.xl-start-btn:hover,
.xl-start-btn.is-open {
	background: color-mix(in srgb, var(--xl-accent) 14%, transparent);
	border-color: color-mix(in srgb, var(--xl-accent) 40%, transparent);
}

.xl-start-name {
	font: 600 13px var(--xl-mono);
	letter-spacing: -0.02em;
}

.xl-logo {
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border-radius: 7px;
	background: var(--xl-accent);
	color: var(--xl-accent-ink);
	font: 800 17px/1 var(--xl-mono);
	box-shadow: 0 0 18px -4px var(--xl-accent);
}

.xl-logo-lg {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	font-size: 40px;
	box-shadow: 0 0 40px -6px var(--xl-accent);
}

.xl-tasks {
	flex: 1;
	min-width: 0;
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
}

.xl-tasks::-webkit-scrollbar {
	display: none;
}

.xl-task {
	position: relative;
	flex: 0 1 180px;
	min-width: 44px;
	height: 38px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--xl-line);
	border-radius: 9px;
	color: var(--xl-muted);
	cursor: pointer;
	white-space: nowrap;
}

.xl-task svg {
	flex: none;
	width: 16px;
	height: 16px;
}

.xl-task span {
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 13px;
}

.xl-task:hover {
	background: rgba(255, 255, 255, 0.07);
	color: var(--xl-text);
}

.xl-task.is-active {
	background: rgba(255, 255, 255, 0.09);
	border-color: var(--xl-line-2);
	color: var(--xl-text);
}

.xl-task::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 3px;
	width: 14px;
	height: 3px;
	margin-left: -7px;
	border-radius: 3px;
	background: var(--xl-muted);
	opacity: 0.6;
}

.xl-task.is-active::after {
	width: 22px;
	margin-left: -11px;
	background: var(--xl-accent);
	opacity: 1;
}

.xl-task.is-min {
	opacity: 0.7;
}

.xl-task.has-unread::before {
	content: "";
	position: absolute;
	top: 6px;
	right: 7px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--xl-accent);
	box-shadow: 0 0 10px var(--xl-accent);
	animation: xl-pulse 1.6s ease-in-out infinite;
}

@keyframes xl-pulse {
	50% {
		opacity: 0.35;
	}
}

.xl-tray {
	flex: none;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 6px;
	color: var(--xl-muted);
	font-size: 12.5px;
}

.xl-tray-user {
	display: flex;
	align-items: center;
	gap: 6px;
	max-width: 160px;
	white-space: nowrap;
}

.xl-tray-user span {
	overflow: hidden;
	text-overflow: ellipsis;
}

.xl-tray-user svg {
	flex: none;
	width: 15px;
	height: 15px;
}

.xl-clock {
	font: 500 13px var(--xl-mono);
	color: var(--xl-text);
	font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- start menu */

.xl-start {
	position: fixed;
	left: 10px;
	bottom: calc(var(--xl-bar) + 10px);
	z-index: 9001;
	width: 290px;
	max-height: calc(100vh - var(--xl-bar) - var(--xl-top) - 30px);
	overflow: auto;
	padding: 8px;
	background: rgba(15, 19, 27, 0.94);
	-webkit-backdrop-filter: blur(24px) saturate(150%);
	backdrop-filter: blur(24px) saturate(150%);
	border: 1px solid var(--xl-line-2);
	border-radius: 14px;
	box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.8);
	animation: xl-rise 0.16s ease;
}

@keyframes xl-rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

.xl-start-head {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 10px 14px;
	border-bottom: 1px solid var(--xl-line);
	margin-bottom: 6px;
}

.xl-start-head strong,
.xl-start-head span {
	display: block;
}

.xl-start-head .xl-muted {
	font-size: 12px;
}

.xl-avatar {
	width: 38px;
	height: 38px;
	display: grid !important;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(140deg, var(--xl-accent), #7a5cff);
	color: #fff;
	font-weight: 700;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.xl-start-sec + .xl-start-sec {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--xl-line);
}

.xl-start-label {
	padding: 6px 10px 4px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--xl-muted);
}

.xl-start-item {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 10px;
	background: none;
	border: 0;
	border-radius: 9px;
	color: var(--xl-text);
	text-decoration: none;
	text-align: left;
	cursor: pointer;
}

.xl-start-item svg {
	width: 18px;
	height: 18px;
	color: var(--xl-accent);
}

.xl-start-item:hover,
.xl-start-item:focus-visible {
	background: rgba(255, 255, 255, 0.07);
	outline: none;
}

/* --------------------------------------------------------- shared bits */

.xl-pad {
	padding: 16px;
}

.xl-muted {
	color: var(--xl-muted);
}

.xl-error {
	color: var(--xl-danger);
}

.xl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 36px;
	padding: 0 14px;
	background: var(--xl-raise);
	border: 1px solid var(--xl-line-2);
	border-radius: 9px;
	color: var(--xl-text);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, transform 0.05s;
}

.xl-btn:hover {
	background: var(--xl-raise-2);
}

.xl-btn:active {
	transform: translateY(1px);
}

.xl-btn:focus-visible {
	outline: 2px solid var(--xl-accent);
	outline-offset: 2px;
}

.xl-btn:disabled {
	opacity: 0.55;
	cursor: default;
}

.xl-btn svg {
	width: 16px;
	height: 16px;
	flex: none;
}

.xl-btn-primary {
	background: var(--xl-accent);
	border-color: transparent;
	color: var(--xl-accent-ink);
	font-weight: 600;
}

.xl-btn-primary:hover {
	background: color-mix(in srgb, var(--xl-accent) 86%, #fff);
}

.xl-btn-sm {
	height: 30px;
	padding: 0 10px;
	font-size: 12.5px;
	border-radius: 8px;
}

.xl-btn-icon {
	width: 36px;
	padding: 0;
}

.xl-btn-sm.xl-btn-icon {
	width: 30px;
}

.xl-btn-danger:hover {
	background: color-mix(in srgb, var(--xl-danger) 25%, var(--xl-raise));
	border-color: color-mix(in srgb, var(--xl-danger) 50%, transparent);
	color: #fff;
}

.xl-input {
	height: 36px;
	padding: 0 11px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid var(--xl-line-2);
	border-radius: 9px;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.xl-input::placeholder {
	color: #6b7790;
}

.xl-input:focus {
	border-color: color-mix(in srgb, var(--xl-accent) 60%, transparent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--xl-accent) 18%, transparent);
}

textarea.xl-input {
	height: auto;
	padding: 8px 11px;
	line-height: 1.4;
}

.xl-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.xl-badge {
	padding: 1px 6px;
	border-radius: 99px;
	background: color-mix(in srgb, var(--xl-accent) 16%, transparent);
	color: var(--xl-accent);
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ about */

.xl-about {
	padding: 26px 26px 20px;
	text-align: center;
}

.xl-about-mark {
	display: flex;
	justify-content: center;
	margin-bottom: 14px;
}

.xl-about-title {
	margin: 0;
	font: 700 24px var(--xl-mono);
	letter-spacing: -0.03em;
}

.xl-about-tag {
	margin: 4px 0 0;
}

.xl-about-text {
	margin: 16px auto 0;
	max-width: 360px;
	white-space: pre-line;
	color: #c3cbd9;
}

.xl-about-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.xl-about-tip {
	margin: 18px 0 0;
	font-size: 12px;
}

/* ------------------------------------------------------------------- chat */

.xl-chat {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.xl-chat-list {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	margin: 0;
	padding: 14px 14px 8px;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.xl-chat-empty {
	margin: auto;
	color: var(--xl-muted);
}

.xl-msg {
	max-width: 86%;
	align-self: flex-start;
}

.xl-msg.is-mine {
	align-self: flex-end;
}

.xl-msg-head {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 2px 3px;
	font-size: 11.5px;
	color: var(--xl-muted);
}

.xl-msg.is-mine .xl-msg-head {
	justify-content: flex-end;
}

.xl-msg-name {
	font-weight: 600;
	color: var(--xl-text);
}

.xl-msg-body {
	padding: 8px 12px;
	background: var(--xl-raise);
	border: 1px solid var(--xl-line);
	border-radius: 13px 13px 13px 4px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.xl-msg.is-mine .xl-msg-body {
	background: color-mix(in srgb, var(--xl-accent) 20%, #121823);
	border-color: color-mix(in srgb, var(--xl-accent) 32%, transparent);
	border-radius: 13px 13px 4px 13px;
}

.xl-msg-del {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 5px;
	color: var(--xl-muted);
	cursor: pointer;
	opacity: 0;
}

.xl-msg:hover .xl-msg-del,
.xl-msg-del:focus-visible {
	opacity: 1;
}

.xl-msg-del:hover {
	color: var(--xl-danger);
}

.xl-msg-del svg {
	width: 13px;
	height: 13px;
}

.xl-chat-form {
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid var(--xl-line);
	background: rgba(0, 0, 0, 0.18);
}

.xl-chat-as {
	font-size: 12px;
	color: var(--xl-muted);
}

.xl-chat-as strong {
	color: var(--xl-text);
}

.xl-chat-row {
	display: flex;
	gap: 8px;
	align-items: flex-end;
}

.xl-chat-msg {
	flex: 1;
	min-height: 38px;
	max-height: 120px;
	resize: none;
}

.xl-chat-row .xl-btn {
	height: 38px;
}

.xl-chat-locked {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	border-top: 1px solid var(--xl-line);
	color: var(--xl-muted);
	font-size: 13px;
}

/* ------------------------------------------------------------------ files */

.xl-files {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.xl-toolbar {
	flex: none;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--xl-line);
}

.xl-files-filter {
	flex: 1;
	min-width: 120px;
	max-width: 240px;
}

.xl-files-limit {
	margin-left: auto;
	font-size: 12px;
}

.xl-queue {
	flex: none;
	margin: 0;
	padding: 0;
	list-style: none;
}

.xl-queue:not(:empty) {
	padding: 8px 12px;
	border-bottom: 1px solid var(--xl-line);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.xl-queue-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 140px auto auto;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
}

.xl-queue-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xl-progress {
	height: 6px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.xl-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--xl-accent);
	border-radius: inherit;
	transition: width 0.15s;
}

.xl-queue-pct {
	min-width: 38px;
	color: var(--xl-muted);
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.xl-queue-item.is-done .xl-queue-pct {
	color: var(--xl-ok);
}

.xl-queue-item.is-failed .xl-progress span {
	background: var(--xl-danger);
}

.xl-queue-item.is-failed .xl-queue-pct {
	color: var(--xl-danger);
}

.xl-queue-x {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--xl-muted);
	cursor: pointer;
}

.xl-queue-x svg {
	width: 13px;
	height: 13px;
}

.xl-file-list {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 6px;
}

.xl-file {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 10px;
}

.xl-file:hover {
	background: rgba(255, 255, 255, 0.04);
}

.xl-file-ico {
	flex: none;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: var(--xl-raise);
	border: 1px solid var(--xl-line);
	color: #ffc35a;
}

.xl-file-ico.is-image {
	color: #6ec8ff;
}

.xl-file-ico.is-video {
	color: #ff7ab6;
}

.xl-file-ico.is-audio {
	color: #c49bff;
}

.xl-file-ico.is-archive {
	color: #8fe3a1;
}

.xl-file-ico svg {
	width: 20px;
	height: 20px;
}

.xl-file-main {
	flex: 1;
	min-width: 0;
}

.xl-file-name {
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.xl-file-meta {
	font-size: 12px;
	color: var(--xl-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.xl-file-actions {
	flex: none;
	display: flex;
	gap: 6px;
}

.xl-empty,
.xl-locked {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 100%;
	min-height: 220px;
	padding: 28px;
	text-align: center;
}

.xl-empty svg {
	width: 42px;
	height: 42px;
	color: var(--xl-muted);
	margin-bottom: 6px;
}

.xl-locked h3 {
	margin: 6px 0 0;
	font-size: 17px;
}

.xl-locked p {
	max-width: 340px;
	margin: 0 0 12px;
}

.xl-locked-icon {
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	border-radius: 16px;
	background: var(--xl-raise);
	border: 1px solid var(--xl-line-2);
	color: #ffc35a;
}

.xl-locked-icon svg {
	width: 28px;
	height: 28px;
}

/* ------------------------------------------------------------ posts/reader */

.xl-post-list {
	padding: 6px;
}

.xl-post-item {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 12px;
	padding: 11px 12px;
	background: none;
	border: 0;
	border-radius: 10px;
	text-align: left;
	cursor: pointer;
}

.xl-post-item:hover,
.xl-post-item:focus-visible {
	background: rgba(255, 255, 255, 0.05);
	outline: none;
}

.xl-post-title {
	font-weight: 600;
}

.xl-post-date {
	font-size: 12px;
	color: var(--xl-muted);
}

.xl-post-excerpt {
	grid-column: 1 / -1;
	font-size: 13px;
	color: var(--xl-muted);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.xl-reader {
	padding: 26px clamp(18px, 5%, 44px) 40px;
}

.xl-reader .xl-initial {
	display: block;
}

.xl-reader-title {
	margin: 0 0 6px;
	font-size: 26px;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.xl-reader-meta {
	margin: 0 0 22px;
	font-size: 13px;
	color: var(--xl-muted);
}

.xl-prose {
	font-size: 15px;
	line-height: 1.7;
	color: #cfd7e4;
	max-width: 70ch;
}

.xl-prose img,
.xl-prose video,
.xl-prose iframe {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.xl-prose pre,
.xl-prose code {
	font-family: var(--xl-mono);
	font-size: 0.9em;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 6px;
}

.xl-prose code {
	padding: 0.1em 0.35em;
}

.xl-prose pre {
	padding: 14px;
	overflow: auto;
}

.xl-prose pre code {
	padding: 0;
	background: none;
}

.xl-prose blockquote {
	margin: 1.2em 0;
	padding: 2px 0 2px 16px;
	border-left: 3px solid var(--xl-accent);
	color: #b6c0d1;
}

.xl-prose hr {
	border: 0;
	border-top: 1px solid var(--xl-line-2);
}

/* ----------------------------------------------------------- drop overlay */

.xl-drop {
	position: absolute;
	inset: 12px;
	z-index: 8500;
	display: grid;
	place-items: center;
	border: 2px dashed color-mix(in srgb, var(--xl-accent) 70%, transparent);
	border-radius: 18px;
	background: color-mix(in srgb, var(--xl-accent) 8%, rgba(5, 8, 12, 0.7));
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	pointer-events: none;
	animation: xl-fade 0.12s ease;
}

.xl-drop.is-locked {
	border-color: rgba(255, 181, 71, 0.7);
	background: rgba(40, 28, 8, 0.6);
}

@keyframes xl-fade {
	from {
		opacity: 0;
	}
}

.xl-drop-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.xl-drop-card svg {
	width: 64px;
	height: 64px;
	color: var(--xl-accent);
	margin-bottom: 6px;
}

.xl-drop.is-locked .xl-drop-card svg {
	color: var(--xl-warn);
}

.xl-drop-card strong {
	font-size: 22px;
}

.xl-drop-card span {
	color: #b9c3d3;
}

/* ----------------------------------------------------------------- toasts */

.xl-toasts {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 8800;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	pointer-events: none;
}

.xl-toast {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: min(420px, calc(100vw - 32px));
	padding: 10px 10px 10px 14px;
	background: rgba(20, 26, 37, 0.96);
	border: 1px solid var(--xl-line-2);
	border-left: 3px solid var(--xl-muted);
	border-radius: 10px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
	font-size: 13px;
	pointer-events: auto;
	animation: xl-rise 0.18s ease;
	transition: opacity 0.25s, transform 0.25s;
}

.xl-toast.is-ok {
	border-left-color: var(--xl-ok);
}

.xl-toast.is-warn {
	border-left-color: var(--xl-warn);
}

.xl-toast.is-error {
	border-left-color: var(--xl-danger);
}

.xl-toast.is-out {
	opacity: 0;
	transform: translateX(12px);
}

/* --------------------------------------------------------------- noscript */

.xl-initial {
	color: var(--xl-text);
}

.xl-noscript {
	position: fixed;
	inset: 0;
	z-index: 9999;
	overflow: auto;
	padding: 40px;
	background: var(--xl-bg);
}

/* ----------------------------------------------------------------- mobile */

@media (max-width: 720px) {
	.xl-start-name,
	.xl-tray-user,
	.xl-hide-narrow,
	.xl-files-limit,
	.xl-wordmark {
		display: none;
	}

	.xl-task {
		flex: 0 0 44px;
		padding: 0;
		justify-content: center;
	}

	.xl-task span {
		display: none;
	}

	.xl-win {
		transition: none;
	}

	.xl-queue-item {
		grid-template-columns: minmax(0, 1fr) 70px auto auto;
	}

	.xl-start {
		left: 8px;
		right: 8px;
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
