/* XLUCOM Desktop v0.1.1 — menus, dialogs, settings, viewers, whiteboard, document editor */

.xl-has-menu {
	-webkit-touch-callout: none;
}

.xl-spacer {
	flex: 1;
}

.xl-tb-sep {
	width: 1px;
	height: 22px;
	background: var(--xl-line-2);
	margin: 0 2px;
	flex: none;
}

/* ------------------------------------------------------------- icon sizes */

.xl-desktop[data-icon-size="s"] .xl-icon {
	width: 76px;
	gap: 5px;
}

.xl-desktop[data-icon-size="s"] .xl-icon-img {
	width: 42px;
	height: 42px;
	border-radius: 12px;
}

.xl-desktop[data-icon-size="s"] .xl-icon-img svg {
	width: 22px;
	height: 22px;
}

.xl-desktop[data-icon-size="s"] .xl-icon-label {
	font-size: 11px;
}

.xl-desktop[data-icon-size="l"] .xl-icon {
	width: 108px;
	gap: 8px;
}

.xl-desktop[data-icon-size="l"] .xl-icon-img {
	width: 68px;
	height: 68px;
	border-radius: 18px;
}

.xl-desktop[data-icon-size="l"] .xl-icon-img svg {
	width: 34px;
	height: 34px;
}

.xl-desktop[data-icon-size="l"] .xl-icon-label {
	font-size: 13px;
	max-width: 104px;
}

/* ----------------------------------------------------- start button/logo */

.xl-logo.is-icon svg {
	width: 17px;
	height: 17px;
	stroke-width: 2.1;
}

.xl-logo.is-image {
	background: transparent;
	box-shadow: none;
	overflow: hidden;
}

.xl-logo.is-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.xl-logo-lg.is-icon svg {
	width: 36px;
	height: 36px;
}

.xl-start-btn.is-icon-only {
	padding: 0 6px;
}

.xl-start-btn .xl-start-name[hidden] {
	display: none;
}

.xl-tray-online {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 30px;
	padding: 0 10px;
	background: none;
	border: 1px solid transparent;
	border-radius: 8px;
	color: var(--xl-muted);
	font-size: 12.5px;
	cursor: pointer;
	white-space: nowrap;
}

.xl-tray-online:hover {
	background: rgb(var(--xl-fg-rgb) / 0.06);
	color: var(--xl-text);
}

.xl-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	flex: none;
	border-radius: 50%;
	background: #4b5566;
	vertical-align: middle;
}

.xl-dot.is-on {
	background: var(--xl-ok);
	box-shadow: 0 0 8px var(--xl-ok);
}

/* ------------------------------------------------------------------ menus */

.xl-menu {
	position: fixed;
	z-index: 9600;
	min-width: 210px;
	max-width: 320px;
	max-height: calc(100vh - 12px);
	overflow-y: auto;
	padding: 5px;
	background: var(--xl-menu-bg);
	-webkit-backdrop-filter: blur(20px) saturate(150%);
	backdrop-filter: blur(20px) saturate(150%);
	border: 1px solid var(--xl-line-2);
	border-radius: 11px;
	box-shadow: 0 22px 60px -8px rgba(0, 0, 0, 0.75);
	animation: xl-menu-in 0.1s ease;
	user-select: none;
	-webkit-user-select: none;
}

@keyframes xl-menu-in {
	from {
		opacity: 0;
		transform: scale(0.97);
	}
}

.xl-menu-item {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 10px 7px 8px;
	background: none;
	border: 0;
	border-radius: 7px;
	color: var(--xl-text);
	font-size: 13px;
	text-align: left;
	cursor: pointer;
}

.xl-menu-item:hover:not(:disabled),
.xl-menu-item:focus-visible {
	background: color-mix(in srgb, var(--xl-accent) 18%, transparent);
	outline: none;
}

.xl-menu-item:disabled {
	color: var(--xl-muted);
	cursor: default;
}

.xl-menu-item.is-danger:not(:disabled) {
	color: #ff8a95;
}

.xl-menu-item.is-danger:hover:not(:disabled),
.xl-menu-item.is-danger:focus-visible {
	background: color-mix(in srgb, var(--xl-danger) 22%, transparent);
	color: #fff;
}

.xl-menu-ico {
	width: 18px;
	height: 18px;
	display: grid;
	place-items: center;
	flex: none;
	color: var(--xl-muted);
}

.xl-menu-item:hover:not(:disabled) .xl-menu-ico {
	color: var(--xl-text);
}

.xl-menu-ico svg {
	width: 16px;
	height: 16px;
}

.xl-menu-label {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.xl-menu-hint {
	font-size: 11.5px;
	color: var(--xl-muted);
}

.xl-menu-sub {
	display: grid;
	color: var(--xl-muted);
}

.xl-menu-sub svg {
	width: 13px;
	height: 13px;
}

.xl-menu-sep {
	height: 1px;
	margin: 4px 6px;
	background: var(--xl-line-2);
}

.xl-menu-heading {
	padding: 6px 10px 3px;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--xl-muted);
}

/* ---------------------------------------------------------------- dialogs */

.xl-modal {
	position: fixed;
	inset: 0;
	z-index: 9500;
	display: grid;
	place-items: center;
	padding: 16px;
	background: var(--xl-scrim);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	animation: xl-fade 0.12s ease;
}

.xl-modal-card {
	width: min(420px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 20px;
	background: var(--xl-panel-solid);
	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;
}

.xl-modal-card.is-wide {
	width: min(520px, 100%);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.xl-modal-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.xl-modal-title {
	margin: 0 0 2px;
	font-size: 16px;
}

.xl-modal-msg {
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.5;
}

.xl-modal-input {
	width: 100%;
}

.xl-modal-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 10px;
}

.xl-modal-actions > :first-child:not(:last-child):not(.xl-btn-primary) {
	margin-right: auto;
}

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

.xl-pick-list {
	max-height: 50vh;
	overflow-y: auto;
	margin: 0 -6px;
}

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

.xl-pick-item:hover,
.xl-pick-item:focus-visible {
	background: rgb(var(--xl-fg-rgb) / 0.06);
	outline: none;
}

.xl-pick-ico {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	flex: none;
	border-radius: 9px;
	background: var(--xl-raise);
	color: var(--xl-accent);
}

.xl-pick-ico svg {
	width: 18px;
	height: 18px;
}

.xl-pick-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.xl-pick-main strong,
.xl-pick-main span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xl-pick-main span {
	font-size: 12px;
}

/* ------------------------------------------------------- shared controls */

select.xl-input {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 28px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238592a8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 14px;
	cursor: pointer;
}

select.xl-input option {
	background: var(--xl-panel-solid);
	color: var(--xl-text);
}

.xl-btn-ghost {
	background: transparent;
	border-color: transparent;
}

.xl-btn-ghost:hover {
	background: rgb(var(--xl-fg-rgb) / 0.07);
}

.xl-btn-danger-solid {
	background: var(--xl-danger);
	border-color: transparent;
	color: #fff;
	font-weight: 600;
}

.xl-btn-danger-solid:hover {
	background: color-mix(in srgb, var(--xl-danger) 85%, #fff);
}

.xl-btn.is-on,
.xl-btn.is-open {
	background: color-mix(in srgb, var(--xl-accent) 20%, var(--xl-raise));
	border-color: color-mix(in srgb, var(--xl-accent) 45%, transparent);
}

.xl-seg {
	display: inline-flex;
	align-items: center;
	padding: 2px;
	gap: 2px;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid var(--xl-line-2);
	border-radius: 9px;
}

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

.xl-seg-btn:hover {
	color: var(--xl-text);
	background: rgb(var(--xl-fg-rgb) / 0.06);
}

.xl-seg-btn.is-on {
	background: color-mix(in srgb, var(--xl-accent) 24%, transparent);
	color: var(--xl-text);
}

.xl-seg-btn svg {
	width: 17px;
	height: 17px;
}

.xl-seg-text {
	padding: 0 12px;
	font-size: 12.5px;
}

.xl-swatches {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}

.xl-swatch {
	width: 20px;
	height: 20px;
	padding: 0;
	border-radius: 50%;
	background: var(--sw);
	border: 2px solid rgb(var(--xl-fg-rgb) / 0.15);
	cursor: pointer;
	flex: none;
}

.xl-swatch.is-on {
	border-color: #fff;
	box-shadow: 0 0 0 2px var(--xl-bg), 0 0 0 3px var(--sw);
}

.xl-swatches-lg .xl-swatch {
	width: 28px;
	height: 28px;
}

.xl-swatch-custom {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--xl-line-2);
	border-radius: 8px;
	background: none;
	cursor: pointer;
}

.xl-swatch-custom::-webkit-color-swatch-wrapper {
	padding: 3px;
}

.xl-swatch-custom::-webkit-color-swatch {
	border: 0;
	border-radius: 5px;
}

.xl-range {
	-webkit-appearance: none;
	appearance: none;
	height: 5px;
	border-radius: 5px;
	background: rgb(var(--xl-fg-rgb) / 0.14);
	accent-color: var(--xl-accent);
	cursor: pointer;
}

.xl-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--xl-accent);
	border: 0;
}

.xl-range::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--xl-accent);
	border: 0;
}

.xl-banner {
	flex: none;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 8px 12px 0;
	padding: 8px 10px;
	border-radius: 9px;
	background: rgba(255, 181, 71, 0.08);
	border: 1px solid rgba(255, 181, 71, 0.25);
	font-size: 12.5px;
	color: #e9d3ae;
}

.xl-banner svg {
	width: 16px;
	height: 16px;
	flex: none;
	color: var(--xl-warn);
}

.xl-banner span {
	flex: 1;
}

.xl-statusbar {
	flex: none;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 5px 12px;
	border-top: 1px solid var(--xl-line);
	font-size: 11.5px;
	color: var(--xl-muted);
	background: rgba(0, 0, 0, 0.15);
	white-space: nowrap;
	overflow: hidden;
}

.xl-avatar-sm {
	width: 24px !important;
	height: 24px;
	font-size: 11px;
}

.xl-avatar-lg {
	width: 52px !important;
	height: 52px;
	font-size: 22px;
}

/* ----------------------------------------------------------- Shared Files */

.xl-file {
	cursor: default;
	outline: none;
}

.xl-file:focus-visible {
	box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--xl-accent) 60%, transparent);
}

.xl-file.is-selected {
	background: color-mix(in srgb, var(--xl-accent) 12%, transparent);
}

.xl-file-ico {
	position: relative;
	overflow: hidden;
}

.xl-file-ico.has-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xl-file-ico.is-doc,
.xl-file-ico.is-text,
.xl-file-ico.is-html,
.xl-file-ico.is-rtf {
	color: #6ec8ff;
}

.xl-file-ico.is-docx {
	color: #5b9bff;
}

.xl-file-ico.is-pdf {
	color: #ff6b6b;
}

.xl-file-ico.is-board {
	color: #ff9f6b;
}

.xl-files-type,
.xl-files-scope {
	height: 36px;
	width: auto;
}

.xl-files .xl-toolbar .xl-files-filter {
	max-width: 200px;
}

.xl-vis-badge {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 24px;
	padding: 0 8px;
	border-radius: 99px;
	background: rgb(var(--xl-fg-rgb) / 0.05);
	border: 1px solid var(--xl-line);
	color: var(--xl-muted);
	font-size: 11.5px;
	white-space: nowrap;
}

.xl-vis-badge svg {
	width: 13px;
	height: 13px;
}

.xl-vis-badge.is-public {
	color: #8fe3a1;
}

.xl-vis-badge.is-private {
	color: #ffc35a;
}

.xl-vis-badge.is-specific {
	color: #c49bff;
}

.xl-vis-badge.is-button {
	cursor: pointer;
}

.xl-vis-badge.is-button:hover {
	border-color: var(--xl-line-2);
	background: rgb(var(--xl-fg-rgb) / 0.09);
}

/* ------------------------------------------------------------- Properties */

.xl-props {
	padding: 18px 20px 16px;
	display: flex;
	flex-direction: column;
}

.xl-props-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.xl-props-ico {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	flex: none;
	border-radius: 12px;
	background: var(--xl-raise);
	border: 1px solid var(--xl-line-2);
	color: var(--xl-accent);
}

.xl-props-ico svg {
	width: 24px;
	height: 24px;
}

.xl-props-name {
	flex: 1;
	min-width: 0;
}

.xl-props-name-ro {
	font-size: 15px;
	overflow-wrap: anywhere;
}

.xl-props-details {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 16px;
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid var(--xl-line);
	font-size: 13px;
}

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

.xl-props-details dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.xl-props-h {
	margin: 18px 0 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--xl-muted);
}

.xl-props-note {
	margin: 6px 0 0;
	font-size: 12px;
}

.xl-vis-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.xl-vis-opt {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 11px;
	border-radius: 10px;
	border: 1px solid var(--xl-line);
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}

.xl-vis-opt:hover {
	border-color: var(--xl-line-2);
}

.xl-vis-opt.is-on {
	background: color-mix(in srgb, var(--xl-accent) 12%, transparent);
	border-color: color-mix(in srgb, var(--xl-accent) 45%, transparent);
}

.xl-vis-opt.is-ro {
	cursor: default;
}

.xl-vis-opt.is-ro:not(.is-on) {
	opacity: 0.5;
}

.xl-vis-opt input {
	accent-color: var(--xl-accent);
	margin: 0;
}

.xl-vis-ico {
	display: grid;
	color: var(--xl-muted);
}

.xl-vis-opt.is-on .xl-vis-ico {
	color: var(--xl-accent);
}

.xl-vis-ico svg {
	width: 18px;
	height: 18px;
}

.xl-vis-text {
	display: flex;
	flex-direction: column;
	font-size: 13px;
}

.xl-vis-text .xl-muted {
	font-size: 12px;
}

.xl-userpick {
	margin-top: 8px;
	padding: 10px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid var(--xl-line);
}

.xl-userpick-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.xl-userpick-head .xl-input {
	flex: 1;
	height: 32px;
}

.xl-userpick-count {
	font-size: 12px;
	white-space: nowrap;
}

.xl-userpick-list {
	max-height: 180px;
	overflow-y: auto;
	margin-top: 8px;
}

.xl-userpick-item {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 6px 4px;
	border-radius: 7px;
	cursor: pointer;
	font-size: 13px;
}

.xl-userpick-item:hover {
	background: rgb(var(--xl-fg-rgb) / 0.04);
}

.xl-userpick-item input {
	accent-color: var(--xl-accent);
	margin: 0;
}

.xl-props-link {
	display: flex;
	gap: 8px;
}

.xl-props-link .xl-input {
	flex: 1;
	min-width: 0;
	font-family: var(--xl-mono);
	font-size: 12px;
}

.xl-props-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: auto;
	padding-top: 18px;
}

/* ------------------------------------------------------------ image viewer */

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

.xl-viewer-bar {
	gap: 6px;
}

.xl-viewer-count,
.xl-viewer-zoom {
	min-width: 46px;
	text-align: center;
	font-size: 12px;
	color: var(--xl-muted);
	font-variant-numeric: tabular-nums;
}

.xl-viewer-stage {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	cursor: grab;
	touch-action: none;
	background:
		conic-gradient(#151a23 25%, #10141b 0 50%, #151a23 0 75%, #10141b 0) 0 0 / 24px 24px;
}

.xl-viewer-stage.is-panning {
	cursor: grabbing;
}

.xl-viewer-stage.is-loading::after {
	content: "Loading…";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--xl-muted);
}

.xl-viewer-img {
	position: absolute;
	left: 0;
	top: 0;
	max-width: none;
	transform-origin: 0 0;
	user-select: none;
	-webkit-user-drag: none;
	image-rendering: auto;
}

/* ------------------------------------------------------------ sound player */

.xl-player {
	display: flex;
	flex-direction: column;
	padding: 18px 18px 0;
	overflow: hidden;
}

.xl-player-top {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
}

.xl-player-art {
	position: relative;
	width: 132px;
	height: 132px;
	display: grid;
	place-items: center;
	margin-bottom: 12px;
	border-radius: 22px;
	color: #ffffffd9;
	background:
		radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--xl-accent) 55%, transparent), transparent 60%),
		radial-gradient(circle at 80% 90%, rgba(167, 139, 250, 0.6), transparent 60%),
		#151b27;
	box-shadow: 0 20px 50px -18px color-mix(in srgb, var(--xl-accent) 60%, #000);
}

.xl-player-art > svg {
	width: 52px;
	height: 52px;
}

.xl-eq {
	position: absolute;
	bottom: 14px;
	display: flex;
	gap: 3px;
	align-items: flex-end;
	height: 16px;
	opacity: 0;
	transition: opacity 0.2s;
}

.xl-eq i {
	width: 4px;
	height: 4px;
	border-radius: 2px;
	background: #fff;
}

.xl-player-art.is-playing .xl-eq {
	opacity: 0.9;
}

.xl-player-art.is-playing .xl-eq i {
	animation: xl-eq 0.9s ease-in-out infinite alternate;
}

.xl-eq i:nth-child(2) {
	animation-delay: -0.3s !important;
}

.xl-eq i:nth-child(3) {
	animation-delay: -0.6s !important;
}

.xl-eq i:nth-child(4) {
	animation-delay: -0.15s !important;
}

.xl-eq i:nth-child(5) {
	animation-delay: -0.45s !important;
}

@keyframes xl-eq {
	to {
		height: 16px;
	}
}

.xl-player-title {
	max-width: 100%;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xl-player-sub {
	font-size: 12px;
}

.xl-player-seekrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	font-size: 11.5px;
	color: var(--xl-muted);
	font-variant-numeric: tabular-nums;
}

.xl-player-seek {
	flex: 1;
}

.xl-player-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 10px;
}

.xl-player-play {
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--xl-accent);
	color: var(--xl-accent-ink);
	cursor: pointer;
	box-shadow: 0 10px 26px -10px var(--xl-accent);
}

.xl-player-play svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.xl-player-volrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px auto 0;
	width: 200px;
}

.xl-player-vol {
	flex: 1;
}

.xl-player-qhead {
	margin: 14px -18px 0;
	padding: 8px 18px;
	border-top: 1px solid var(--xl-line);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--xl-muted);
}

.xl-player-queue {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	margin: 0 -10px;
	padding: 0 0 10px;
	list-style: none;
}

.xl-player-qitem {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 8px;
	background: none;
	border: 0;
	border-radius: 8px;
	text-align: left;
	cursor: pointer;
	font-size: 13px;
}

.xl-player-qitem:hover {
	background: rgb(var(--xl-fg-rgb) / 0.05);
}

.xl-player-qitem.is-current {
	color: var(--xl-accent);
}

.xl-player-qn {
	width: 20px;
	display: grid;
	place-items: center;
	color: var(--xl-muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.xl-player-qn svg {
	width: 14px;
	height: 14px;
	color: var(--xl-accent);
}

.xl-player-qname {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ----------------------------------------------------------- video player */

.xl-video {
	background: #000;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.xl-video video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.xl-video-err {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #000;
	color: var(--xl-muted);
}

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

.xl-chat.is-drop {
	box-shadow: inset 0 0 0 2px var(--xl-accent);
	background: color-mix(in srgb, var(--xl-accent) 6%, transparent);
}

.xl-chat-row .xl-chat-clip {
	height: 38px;
	width: 38px;
	flex: none;
}

.xl-chat-stage {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.xl-chat-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px;
	border-radius: 10px;
	background: var(--xl-raise);
	border: 1px solid var(--xl-line);
}

.xl-chat-chip img,
.xl-chat-chip-ico {
	width: 42px;
	height: 42px;
	flex: none;
	object-fit: cover;
	border-radius: 7px;
	background: #000;
	display: grid;
	place-items: center;
	color: #ff7ab6;
}

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

.xl-chat-chip-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 12px;
}

.xl-chat-chip-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--xl-text);
}

.xl-chat-chip .xl-progress {
	height: 4px;
}

.xl-msg.has-media {
	max-width: 78%;
}

.xl-msg-media {
	position: relative;
	margin-bottom: 4px;
}

.xl-msg-img {
	display: block;
	max-width: 100%;
	max-height: 280px;
	min-width: 60px;
	min-height: 40px;
	border-radius: 12px;
	border: 1px solid var(--xl-line-2);
	background: #0b0e14;
	cursor: zoom-in;
	object-fit: cover;
}

.xl-msg-video {
	display: block;
	width: 100%;
	max-width: 320px;
	max-height: 260px;
	border-radius: 12px;
	background: #000;
}

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

.xl-msg-expand {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 7px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.15s;
}

.xl-msg-media:hover .xl-msg-expand {
	opacity: 1;
}

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

/* --------------------------------------------------- pop-out chat page */

.xl-standalone-body {
	overflow: hidden;
}

.xl-standalone {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(800px 500px at 100% -10%, color-mix(in srgb, var(--xl-accent) 14%, transparent), transparent 60%),
		var(--xl-bg);
}

.xl-standalone-bar {
	flex: none;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 10px 0 14px;
	border-bottom: 1px solid var(--xl-line-2);
	background: rgb(var(--xl-fg-rgb) / 0.03);
}

.xl-standalone-bar .xl-muted {
	font-size: 12px;
}

.xl-standalone-body-inner {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.xl-standalone-body-inner.xl-chat {
	overflow: hidden;
}

.xl-standalone .xl-toasts,
.xl-standalone-body > .xl-toasts {
	position: fixed;
	bottom: 90px;
}

/* -------------------------------------------------------------- whiteboard */

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

.xl-board-bar {
	gap: 6px;
	padding: 7px 10px;
}

.xl-board-draw {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.xl-board-draw[hidden] {
	display: none;
}

.xl-board-ro {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
}

.xl-board-ro svg {
	width: 15px;
	height: 15px;
}

.xl-size-btn i {
	display: block;
	border-radius: 50%;
	background: currentColor;
}

.xl-fill-btn i {
	display: block;
	width: 15px;
	height: 12px;
	border: 2px solid currentColor;
	border-radius: 3px;
}

.xl-fill-btn.is-on i {
	background: color-mix(in srgb, currentColor 45%, transparent);
}

.xl-zoom-label {
	min-width: 52px;
	font-variant-numeric: tabular-nums;
	background: transparent;
	border-color: transparent;
}

.xl-board-zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 3px 4px 3px 8px;
	border-radius: 10px;
	background: var(--xl-menu-bg);
	border: 1px solid var(--xl-line-2);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
	cursor: default;
}

.xl-live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 6px;
	font-size: 11.5px;
	color: var(--xl-muted);
}

.xl-live i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--xl-ok);
	box-shadow: 0 0 8px var(--xl-ok);
	animation: xl-pulse 2s ease-in-out infinite;
}

.xl-live.is-off i {
	background: var(--xl-warn);
	box-shadow: none;
	animation: none;
}

.xl-board-wrap {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	background-color: #0e131b;
	background-image: radial-gradient(rgb(var(--xl-fg-rgb) / 0.11) 1.1px, transparent 1.4px);
	background-size: 32px 32px;
	touch-action: none;
	cursor: crosshair;
}

.xl-board-wrap[data-tool="hand"],
.xl-board-wrap.is-space {
	cursor: grab;
}

.xl-board-wrap.is-panning {
	cursor: grabbing;
}

.xl-board-wrap[data-tool="text"] {
	cursor: text;
}

.xl-board-wrap[data-tool="eraser"] {
	cursor: cell;
}

.xl-board-canvas {
	position: absolute;
	inset: 0;
	display: block;
	touch-action: none;
}

.xl-board-text {
	position: absolute;
	z-index: 2;
	min-width: 60px;
	padding: 0;
	margin: 0;
	border: 1px dashed color-mix(in srgb, var(--xl-accent) 70%, transparent);
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.25);
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-weight: 600;
	line-height: 1.25;
	resize: none;
	overflow: hidden;
	outline: none;
	white-space: pre;
}

.xl-board-loading {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--xl-muted);
	pointer-events: none;
}

/* --------------------------------------------------------- document editor */

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

.xl-menubar {
	flex: none;
	display: flex;
	gap: 2px;
	padding: 4px 8px 0;
}

.xl-menubar-btn {
	height: 28px;
	padding: 0 10px;
	background: none;
	border: 0;
	border-radius: 6px;
	color: var(--xl-text);
	font-size: 13px;
	cursor: pointer;
}

.xl-menubar-btn:hover,
.xl-menubar-btn.is-open {
	background: rgb(var(--xl-fg-rgb) / 0.08);
}

.xl-doc-toolbar {
	gap: 3px;
	padding: 6px 8px;
}

.xl-tb {
	color: var(--xl-muted);
	background: transparent;
	border-color: transparent;
}

.xl-tb:hover {
	color: var(--xl-text);
	background: rgb(var(--xl-fg-rgb) / 0.07);
}

.xl-tb.is-on {
	color: var(--xl-text);
}

.xl-tb-select {
	height: 30px;
	font-size: 12.5px;
	width: 118px;
}

.xl-tb-size {
	width: 72px;
}

.xl-tb-color-in {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.xl-doc-scroll {
	flex: 1;
	min-height: 0;
	overflow: auto;
	padding: 28px 16px 60px;
	background: var(--xl-doc-bg);
}

.xl-doc-page {
	box-sizing: border-box;
	width: 100%;
	max-width: 8.5in;
	min-height: 11in;
	margin: 0 auto;
	padding: 1in;
	background: #fff;
	border-radius: 2px;
	box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
	outline: none;
	user-select: text;
	-webkit-user-select: text;
	cursor: text;
}

.xl-paper {
	font-family: Calibri, Carlito, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-size: 11pt;
	line-height: 1.5;
	color: #1b1f24;
	overflow-wrap: break-word;
}

.xl-paper ::selection {
	background: #b3d4ff;
}

.xl-paper h1 {
	font-size: 20pt;
	margin: 0.8em 0 0.3em;
}

.xl-paper h2 {
	font-size: 16pt;
	margin: 0.8em 0 0.3em;
}

.xl-paper h3 {
	font-size: 13pt;
	margin: 0.8em 0 0.3em;
}

.xl-paper h4,
.xl-paper h5,
.xl-paper h6 {
	font-size: 11pt;
	margin: 0.8em 0 0.3em;
}

.xl-paper p {
	margin: 0 0 0.6em;
}

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

.xl-paper blockquote {
	margin: 0.8em 0;
	padding: 0.1em 0 0.1em 1em;
	border-left: 3px solid #bbb;
	color: #555;
	font-style: italic;
}

.xl-paper pre {
	font-family: "Courier New", ui-monospace, monospace;
	font-size: 10pt;
	background: #f4f4f4;
	padding: 0.6em;
	white-space: pre-wrap;
}

.xl-paper table {
	border-collapse: collapse;
	width: 100%;
	margin: 0.6em 0;
}

.xl-paper td,
.xl-paper th {
	border: 1px solid #999;
	padding: 4px 8px;
	vertical-align: top;
	min-width: 30px;
}

.xl-paper a {
	color: #0563c1;
}

.xl-paper hr {
	border: 0;
	border-top: 1px solid #aaa;
}

.xl-paper ul,
.xl-paper ol {
	padding-left: 2em;
	margin: 0 0 0.6em;
}

.xl-doc-loading {
	color: #888;
}

.xl-doc-saved.is-dirty {
	color: var(--xl-warn);
}

.xl-doc-share {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.xl-doc-share svg {
	width: 13px;
	height: 13px;
}

/* --------------------------------------------------------------- settings */

.xl-settings {
	display: flex;
	overflow: hidden;
}

.xl-settings-nav {
	flex: none;
	width: 168px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 8px;
	border-right: 1px solid var(--xl-line);
	background: rgba(0, 0, 0, 0.15);
}

.xl-settings-tab {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	background: none;
	border: 0;
	border-radius: 8px;
	color: var(--xl-muted);
	font-size: 13px;
	text-align: left;
	cursor: pointer;
}

.xl-settings-tab svg {
	width: 17px;
	height: 17px;
}

.xl-settings-tab:hover {
	background: rgb(var(--xl-fg-rgb) / 0.05);
	color: var(--xl-text);
}

.xl-settings-tab.is-on {
	background: color-mix(in srgb, var(--xl-accent) 16%, transparent);
	color: var(--xl-text);
}

.xl-settings-tab.is-on svg {
	color: var(--xl-accent);
}

.xl-settings-panel {
	flex: 1;
	min-width: 0;
	overflow-y: auto;
	padding: 6px 20px 24px;
}

.xl-set-sec {
	padding: 14px 0 16px;
	border-bottom: 1px solid var(--xl-line);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.xl-set-sec:last-of-type {
	border-bottom: 0;
}

.xl-set-h {
	margin: 0;
	font-size: 14px;
}

.xl-set-note {
	margin: -4px 0 0;
	font-size: 12px;
}

.xl-bg-grid-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: 10px;
}

.xl-bg-group {
	grid-column: 1 / -1;
	margin-top: 4px;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--xl-muted);
}

.xl-bg-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
}

.xl-bg-swatch {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	border-radius: 9px;
	border: 2px solid var(--xl-line-2);
	color: var(--xl-muted);
	transition: border-color 0.15s, transform 0.15s;
}

.xl-bg-swatch svg {
	width: 22px;
	height: 22px;
}

.xl-bg-tile:hover .xl-bg-swatch {
	transform: translateY(-1px);
	border-color: rgb(var(--xl-fg-rgb) / 0.3);
}

.xl-bg-tile.is-on .xl-bg-swatch {
	border-color: var(--xl-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--xl-accent) 30%, transparent);
}

.xl-bg-add .xl-bg-swatch {
	border-style: dashed;
	background: rgb(var(--xl-fg-rgb) / 0.02);
}

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

.xl-bg-tile.is-on .xl-bg-name {
	color: var(--xl-text);
}

.xl-bg-badge {
	position: absolute;
	top: 6px;
	left: 6px;
	padding: 1px 6px;
	border-radius: 99px;
	background: rgba(0, 0, 0, 0.6);
	font-size: 10px;
	color: #fff;
}

.xl-bg-mini {
	width: 64px;
	aspect-ratio: 16 / 10;
}

.xl-start-preview {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	border-radius: 10px;
	background: var(--xl-taskbar-bg);
	border: 1px solid var(--xl-line);
	font-size: 12px;
}

.xl-start-btn.is-preview {
	cursor: default;
}

.xl-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12.5px;
	color: var(--xl-muted);
}

.xl-field .xl-input {
	color: var(--xl-text);
	font-size: 14px;
}

.xl-field-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13px;
}

.xl-field-row .xl-field-label {
	min-width: 120px;
	font-size: 13px;
}

.xl-check {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	cursor: pointer;
}

.xl-check input {
	accent-color: var(--xl-accent);
	width: 16px;
	height: 16px;
	margin: 0;
}

.xl-num {
	width: 100px;
}

.xl-icon-choose {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 12px;
}

.xl-icon-letter {
	width: 80px;
	text-align: center;
	font-size: 18px;
	font-weight: 700;
}

.xl-icon-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, 40px);
	gap: 6px;
	width: 100%;
}

.xl-icon-pick {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	background: var(--xl-raise);
	border: 1px solid var(--xl-line);
	border-radius: 9px;
	color: var(--xl-muted);
	cursor: pointer;
}

.xl-icon-pick svg {
	width: 20px;
	height: 20px;
}

.xl-icon-pick:hover {
	color: var(--xl-text);
	border-color: var(--xl-line-2);
}

.xl-icon-pick.is-on {
	color: var(--xl-accent-ink);
	background: var(--xl-accent);
	border-color: transparent;
}

.xl-set-actions {
	display: flex;
	justify-content: flex-end;
	padding-top: 14px;
	position: sticky;
	bottom: -24px;
	padding-bottom: 6px;
	background: linear-gradient(transparent, var(--xl-panel-solid) 35%);
}

.xl-set-about {
	padding-top: 30px;
}

/* ------------------------------------------------------------- online */

.xl-online {
	display: flex;
	flex-direction: column;
}

.xl-online-head {
	flex: none;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--xl-line);
	font-size: 13px;
}

.xl-online-list {
	flex: 1;
	overflow-y: auto;
	padding: 6px;
}

.xl-online-row {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	background: none;
	border: 0;
	border-radius: 10px;
	text-align: left;
	cursor: pointer;
}

.xl-online-row:hover {
	background: rgb(var(--xl-fg-rgb) / 0.05);
}

.xl-online-row .xl-avatar {
	position: relative;
	flex: none;
}

.xl-online-row .xl-avatar .xl-dot {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 11px;
	height: 11px;
	border: 2px solid var(--xl-panel-solid);
}

.xl-online-row:not(.is-on) .xl-avatar {
	filter: grayscale(0.85);
	opacity: 0.7;
}

.xl-online-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	font-size: 13px;
}

.xl-online-main .xl-muted {
	font-size: 12px;
}

.xl-usercard {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 8px;
}

.xl-usercard p {
	margin: 2px 0 0;
	font-size: 12.5px;
}

.xl-usercard .xl-icon-img {
	flex: none;
}

/* ------------------------------------------------------------------ narrow */

@media (max-width: 720px) {
	.xl-settings {
		flex-direction: column;
	}

	.xl-settings-nav {
		width: auto;
		flex-direction: row;
		overflow-x: auto;
		border-right: 0;
		border-bottom: 1px solid var(--xl-line);
		padding: 8px;
	}

	.xl-settings-panel {
		padding: 4px 14px 20px;
	}

	.xl-vis-badge span,
	.xl-tray-online span,
	.xl-files-scope {
		display: none;
	}

	.xl-doc-page {
		padding: 0.5in 0.4in;
		min-height: 0;
	}

	.xl-doc-scroll {
		padding: 10px 6px 40px;
	}

	.xl-board-bar {
		overflow-x: auto;
		flex-wrap: nowrap;
	}

	.xl-board-draw {
		flex-wrap: nowrap;
	}

	.xl-swatches .xl-swatch:nth-child(n + 7) {
		display: none;
	}

	.xl-msg-expand {
		opacity: 1;
	}
}

/* =====================================================================
   0.1.2 — chat rooms, notifications, My Files, zip viewer, plugins,
   browser, storage and the auto-hide WordPress toolbar
   ===================================================================== */

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

.xl-chatapp {
	display: flex;
	overflow: hidden;
}

.xl-chat-side {
	flex: none;
	width: 220px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 6px;
	overflow-y: auto;
	border-right: 1px solid var(--xl-line);
	background: rgba(0, 0, 0, 0.16);
}

.xl-chat-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.xl-chat-main > .xl-chat {
	flex: 1;
	min-height: 0;
	position: relative;
}

.xl-room-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 12px 6px 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--xl-muted);
}

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

.xl-room-add:hover {
	background: rgb(var(--xl-fg-rgb) / 0.08);
	color: var(--xl-text);
}

.xl-room-add svg {
	width: 14px;
	height: 14px;
}

.xl-room {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	min-height: 40px;
	padding: 5px 8px;
	border: 0;
	border-radius: 8px;
	background: none;
	text-align: left;
	cursor: pointer;
}

.xl-room:hover {
	background: rgb(var(--xl-fg-rgb) / 0.05);
}

.xl-room.is-active {
	background: color-mix(in srgb, var(--xl-accent) 14%, transparent);
}

.xl-room-ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--xl-raise-2);
	color: var(--xl-muted);
}

.xl-room.is-active .xl-room-ico,
.xl-chat-head .xl-room-ico {
	color: var(--xl-accent);
}

.xl-room-ico svg {
	width: 15px;
	height: 15px;
}

.xl-room-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.xl-room-main strong,
.xl-room-main span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xl-room-main strong {
	font-weight: 500;
	font-size: 13px;
}

.xl-room.has-unread .xl-room-main strong {
	font-weight: 700;
}

.xl-room-main .xl-muted {
	font-size: 11.5px;
}

.xl-room-empty {
	margin: 2px 8px 6px;
	font-size: 12px;
	color: var(--xl-muted);
}

.xl-count {
	flex: none;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--xl-accent);
	color: var(--xl-accent-ink);
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.xl-chat-head {
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 6px 8px 6px 12px;
	border-bottom: 1px solid var(--xl-line);
}

.xl-chat-title {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.xl-chat-title strong,
.xl-chat-title span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xl-chat-title .xl-muted {
	font-size: 11.5px;
}

.xl-chat-back {
	display: none;
}

.xl-chat-send {
	flex: none;
}

.xl-chat-nick {
	margin-bottom: 6px;
}

.xl-msg-time {
	font-size: 11px;
	color: var(--xl-muted);
}

.xl-msg {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.xl-msg-inner {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

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

.xl-msg-moved {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0 2px 3px;
	font-size: 11px;
	font-style: italic;
	color: var(--xl-muted);
}

.xl-msg-moved svg {
	width: 12px;
	height: 12px;
}

.xl-msg-check {
	display: none;
	flex: none;
	place-items: center;
	width: 20px;
	height: 20px;
	margin-top: 18px;
	border: 1.5px solid var(--xl-line-2);
	border-radius: 6px;
	color: transparent;
}

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

.xl-chat.is-selecting .xl-msg.is-pickable {
	cursor: pointer;
}

.xl-chat.is-selecting .xl-msg.is-pickable .xl-msg-check {
	display: grid;
}

.xl-chat.is-selecting .xl-msg:not(.is-pickable) {
	opacity: 0.45;
}

.xl-chat.is-selecting .xl-msg.is-picked .xl-msg-check {
	background: var(--xl-accent);
	border-color: var(--xl-accent);
	color: var(--xl-accent-ink);
}

.xl-chat.is-selecting .xl-msg.is-picked .xl-msg-body {
	outline: 2px solid var(--xl-accent);
	outline-offset: 1px;
}

.xl-chat.is-selecting .xl-msg-del {
	display: none;
}

.xl-chat-selbar {
	flex: none;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px 12px;
	border-top: 1px solid var(--xl-line);
	background: color-mix(in srgb, var(--xl-accent) 8%, var(--xl-panel-solid));
	font-size: 12.5px;
}

.xl-chat-selbar[hidden] {
	display: none;
}

.xl-chatapp.is-drop .xl-chat-main {
	outline: 2px dashed var(--xl-accent);
	outline-offset: -6px;
}

.xl-standalone-body-inner.xl-chatapp {
	flex-direction: row;
	overflow: hidden;
}

@media (max-width: 640px) {
	.xl-chat-side {
		display: none;
	}
	.xl-chat-back {
		display: inline-grid;
	}
	.xl-chatapp.show-side .xl-chat-side {
		display: flex;
		flex: 1;
		width: auto;
		border-right: 0;
	}
	.xl-chatapp.show-side .xl-chat-main {
		display: none;
	}
}

.xl-win:not(.is-max) .xl-chatapp:has(.xl-chat-side) {
	container-type: inline-size;
}

@container (max-width: 520px) {
	.xl-chat-side {
		display: none;
	}
	.xl-chat-back {
		display: inline-grid;
	}
}

/* ------------------------------------------------------- notifications */

.xl-tray-bell {
	position: relative;
	display: grid;
	place-items: center;
	width: 34px;
	height: 30px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 8px;
	background: none;
	color: var(--xl-muted);
	cursor: pointer;
}

.xl-tray-bell[hidden] {
	display: none;
}

.xl-tray-bell:hover,
.xl-tray-bell.is-open {
	background: rgb(var(--xl-fg-rgb) / 0.07);
	color: var(--xl-text);
}

.xl-tray-bell.has-new {
	color: var(--xl-text);
}

.xl-tray-bell svg {
	width: 17px;
	height: 17px;
}

.xl-bell-count {
	position: absolute;
	top: 1px;
	right: 1px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: var(--xl-danger);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	box-shadow: 0 0 0 2px var(--xl-panel-solid);
}

.xl-notify {
	position: fixed;
	right: 10px;
	bottom: calc(var(--xl-bar) + 10px);
	z-index: 9000;
	width: min(380px, calc(100vw - 20px));
	max-height: min(560px, calc(100vh - var(--xl-bar) - var(--xl-top) - 30px));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--xl-line-2);
	border-radius: var(--xl-radius);
	background: var(--xl-panel-solid);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
	animation: xl-pop 0.14s ease-out;
}

.xl-notify[hidden] {
	display: none;
}

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

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

.xl-notify-sec {
	padding: 6px;
}

.xl-notify-sec + .xl-notify-sec {
	border-top: 1px solid var(--xl-line);
}

.xl-notify-list {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
}

.xl-notify-label {
	margin: 4px 8px 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--xl-muted);
}

.xl-notify-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px;
	border: 0;
	border-radius: 8px;
	background: none;
	text-align: left;
	cursor: pointer;
}

.xl-notify-item:hover,
.xl-notify-item:focus-visible {
	background: rgb(var(--xl-fg-rgb) / 0.05);
}

.xl-notify-item .xl-queue-x {
	opacity: 0;
}

.xl-notify-item:hover .xl-queue-x,
.xl-notify-item .xl-queue-x:focus-visible {
	opacity: 1;
}

.xl-notify-ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: var(--xl-raise-2);
	color: var(--xl-accent);
}

.xl-notify-ico svg {
	width: 16px;
	height: 16px;
}

.xl-notify-ico.is-received {
	color: #ffd27a;
}

.xl-notify-ico.is-upload {
	color: #c49bff;
}

.xl-notify-ico.is-board {
	color: #ff9f6b;
}

.xl-notify-ico.is-shared {
	color: #6ec8ff;
}

.xl-notify-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
	font-size: 13px;
	line-height: 1.3;
}

.xl-notify-main .xl-muted {
	font-size: 11.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xl-notify-empty {
	padding: 30px 20px;
}

/* --------------------------------------------------------------- My Files */

.xl-myfiles-bar {
	gap: 6px;
}

.xl-crumbs {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 2px;
	overflow: hidden;
	white-space: nowrap;
}

.xl-crumb {
	min-width: 0;
	max-width: 180px;
	padding: 4px 7px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: none;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 13px;
	cursor: pointer;
}

.xl-crumb:last-child {
	font-weight: 600;
}

.xl-crumb:hover {
	background: rgb(var(--xl-fg-rgb) / 0.06);
}

.xl-crumb.is-drop {
	border-color: var(--xl-accent);
	background: color-mix(in srgb, var(--xl-accent) 15%, transparent);
}

.xl-crumb-sep {
	flex: none;
	display: grid;
	color: var(--xl-muted);
}

.xl-crumb-sep svg {
	width: 12px;
	height: 12px;
}

.xl-file.is-drop {
	outline: 2px solid var(--xl-accent);
	outline-offset: -2px;
	background: color-mix(in srgb, var(--xl-accent) 12%, transparent);
}

.xl-myfiles.is-drop .xl-file-list {
	outline: 2px dashed var(--xl-accent);
	outline-offset: -6px;
}

.xl-file.is-broken {
	opacity: 0.55;
}

.xl-file.is-broken .xl-file-name {
	text-decoration: line-through;
}

.xl-file-ico {
	position: relative;
}

.xl-file-ico.is-folder {
	color: #ffd27a;
	background: rgba(255, 210, 122, 0.12);
}

.xl-file-ico.is-app {
	color: #c49bff;
	background: rgba(196, 155, 255, 0.13);
}

.xl-file-ico.is-zip {
	color: #e6b86a;
	background: rgba(230, 184, 106, 0.12);
}

.xl-shortcut-badge {
	position: absolute;
	left: -3px;
	bottom: -3px;
	display: grid;
	place-items: center;
	width: 16px;
	height: 16px;
	border-radius: 5px;
	background: var(--xl-panel-solid);
	border: 1px solid var(--xl-line-2);
	color: var(--xl-text);
}

.xl-shortcut-badge svg {
	width: 10px;
	height: 10px;
}

.xl-meter {
	position: relative;
	flex: none;
	display: block;
	width: 120px;
	height: 6px;
	border-radius: 3px;
	background: rgb(var(--xl-fg-rgb) / 0.08);
	overflow: hidden;
}

.xl-meter i {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	border-radius: inherit;
	background: var(--xl-accent);
	transition: width 0.3s;
}

.xl-meter.is-full i {
	background: var(--xl-danger);
}

.xl-btn.is-on {
	border-color: color-mix(in srgb, var(--xl-accent) 55%, transparent);
	color: var(--xl-accent);
}

/* ------------------------------------------------------------ zip viewer */

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

.xl-zip-split {
	flex: 1;
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(220px, 2fr) 3fr;
}

.xl-zip-list {
	border-right: 1px solid var(--xl-line);
}

.xl-zip-preview {
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.18);
}

.xl-zip-phead {
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-bottom: 1px solid var(--xl-line);
	font-size: 13px;
}

.xl-zip-phead strong {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xl-zip-text {
	flex: 1;
	min-height: 0;
	margin: 0;
	padding: 12px 14px;
	overflow: auto;
	font: 12.5px/1.5 var(--xl-mono);
	white-space: pre-wrap;
	word-break: break-word;
	tab-size: 4;
}

.xl-zip-img {
	flex: 1;
	min-height: 0;
	display: grid;
	place-items: center;
	padding: 12px;
	overflow: auto;
}

.xl-zip-img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

@media (max-width: 640px) {
	/* Phones: the list fills the window; a picked file opens full-size over it. */
	.xl-zip-split {
		grid-template-columns: 1fr;
	}
	.xl-zip-list {
		border-right: 0;
	}
	.xl-zip:not(.is-previewing) .xl-zip-preview,
	.xl-zip.is-previewing .xl-zip-list {
		display: none;
	}
}

/* ----------------------------------------------------- plugin installer */

.xl-install {
	padding: 18px 20px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.xl-install .xl-field-row input {
	width: 90px;
}

.xl-install-desc {
	margin: 6px 0 2px;
	color: var(--xl-text);
	font-size: 13px;
}

.xl-mono {
	font-family: var(--xl-mono);
	font-size: 12.5px;
}

/* ------------------------------------------------------------ browser */

.xl-browser,
.xl-appframe {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--xl-panel-solid);
}

.xl-browser-bar {
	gap: 4px;
}

.xl-browser-addr {
	flex: 1;
	min-width: 0;
	height: 30px;
	padding: 0 12px;
	border-radius: 15px;
	font-size: 13px;
}

.xl-browser-stage {
	position: relative;
	flex: 1;
	min-height: 0;
	background: #fff;
}

.xl-browser-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #fff;
}

.xl-browser-loading {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	overflow: hidden;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s;
}

.xl-browser-loading.is-on {
	opacity: 1;
}

.xl-browser-loading::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 35%;
	background: var(--xl-accent);
	animation: xl-load 1.1s ease-in-out infinite;
}

@keyframes xl-load {
	from {
		left: -35%;
	}
	to {
		left: 100%;
	}
}

.xl-browser-info {
	flex: none;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 10px 7px 12px;
	border-bottom: 1px solid var(--xl-line);
	background: rgba(110, 200, 255, 0.07);
	font-size: 12.5px;
}

.xl-browser-info[hidden] {
	display: none;
}

.xl-browser-info > svg {
	flex: none;
	width: 16px;
	height: 16px;
	color: #6ec8ff;
}

.xl-browser-info span {
	flex: 1;
}

/* --------------------------------------------------------- plugins tab */

.xl-plugin-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.xl-plugin {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border: 1px solid var(--xl-line);
	border-radius: 10px;
	background: rgb(var(--xl-fg-rgb) / 0.02);
}

.xl-plugin:not(.is-on) .xl-file-ico {
	filter: grayscale(1);
	opacity: 0.6;
}

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

.xl-plugin-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.xl-switch {
	position: relative;
	flex: none;
	display: inline-block;
	width: 36px;
	height: 20px;
	cursor: pointer;
}

.xl-switch input {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.xl-switch i {
	position: absolute;
	inset: 0;
	border-radius: 10px;
	background: rgb(var(--xl-fg-rgb) / 0.14);
	transition: background 0.15s;
	pointer-events: none;
}

.xl-switch i::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s;
}

.xl-switch input:checked + i {
	background: var(--xl-accent);
}

.xl-switch input:checked + i::after {
	transform: translateX(16px);
}

.xl-switch input:focus-visible + i {
	outline: 2px solid var(--xl-accent);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.xl-plugin {
		flex-wrap: wrap;
	}
	.xl-plugin-actions {
		order: 5;
		width: 100%;
		justify-content: flex-start;
	}
}

/* ---------------------------------------------------- people + storage */

.xl-people-list {
	max-height: 320px;
	overflow-y: auto;
	margin-top: 8px;
}

.xl-storage-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 8px;
}

.xl-storage-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 4px;
	border-bottom: 1px solid var(--xl-line);
}

.xl-storage-name {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	font-size: 13px;
}

.xl-storage-name .xl-muted {
	font-size: 11.5px;
}

.xl-storage-row .xl-meter {
	width: 90px;
}

.xl-num {
	width: 96px;
}

.xl-online .is-drop,
[data-dropzone="person"].is-drop {
	outline: 2px dashed var(--xl-accent);
	outline-offset: -2px;
	background: color-mix(in srgb, var(--xl-accent) 12%, transparent);
}

@media (max-width: 640px) {
	.xl-storage-row .xl-meter {
		display: none;
	}
}

/* ---------------------------------------------------- whiteboard select */

.xl-board-wrap[data-tool="select"] {
	cursor: default;
}

/* ------------------------------------------- WordPress toolbar auto-hide */

.xl-adminbar-hotzone {
	display: none;
}

body.admin-bar.xl-adminbar-auto {
	--xl-top: 0px;
}

html:has(body.xl-adminbar-auto) {
	margin-top: 0 !important;
}

body.xl-adminbar-auto .xl-adminbar-hotzone {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	z-index: 99998;
}

body.xl-adminbar-auto #wpadminbar {
	transform: translateY(-100%);
	transition: transform 0.18s ease 0.25s;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

body.xl-adminbar-auto.is-peek #wpadminbar,
body.xl-adminbar-auto #wpadminbar:hover,
body.xl-adminbar-auto #wpadminbar:focus-within {
	transform: none;
	transition-delay: 0s;
}

/* =====================================================================
   0.1.3 — phones: no zoom, keyboard-aware windows
   ===================================================================== */

html,
body {
	touch-action: manipulation;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

@media (pointer: coarse) {
	/* iPhones zoom into any text box smaller than 16px; keep them at 16px. */
	input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),
	textarea,
	select {
		font-size: 16px !important;
	}
}

.xl-win.is-kb {
	top: var(--xl-kb-top, 0) !important;
	height: var(--xl-kb-h, 100%) !important;
	bottom: auto !important;
	transition: none !important;
}

/* ------------------------------------------------------------- profiles */

.xl-avatar {
	flex: none;
	overflow: hidden;
	position: relative;
	user-select: none;
}

.xl-online-row .xl-avatar {
	overflow: visible;
}

.xl-avatar.has-img {
	background: var(--xl-raise-2);
}

.xl-avatar > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.xl-avatar-xs {
	width: 20px !important;
	height: 20px;
	font-size: 10px;
}

.xl-avatar-xl {
	width: 84px !important;
	height: 84px;
	font-size: 34px;
}

.xl-tray-user {
	cursor: pointer;
	padding: 3px 8px 3px 4px;
	border-radius: 8px;
}

.xl-tray-user:hover,
.xl-tray-user:focus-visible {
	background: rgb(var(--xl-fg-rgb) / 0.07);
	color: var(--xl-text);
}

.xl-start-head.is-link {
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--xl-line);
	border-radius: 8px 8px 0 0;
	background: none;
	text-align: left;
	cursor: pointer;
}

.xl-start-head.is-link:hover,
.xl-start-head.is-link:focus-visible {
	background: rgb(var(--xl-fg-rgb) / 0.05);
}

.xl-msg-avatar {
	margin-top: 18px;
}

.is-person {
	cursor: pointer;
}

.xl-msg-name.is-person:hover,
.xl-msg-name.is-person:focus-visible {
	text-decoration: underline;
	color: var(--xl-accent);
}

.xl-msg-avatar.is-person:hover {
	outline: 2px solid var(--xl-accent);
	outline-offset: 1px;
}

button.xl-chat-title {
	padding: 2px 6px;
	margin-left: -6px;
	border: 0;
	border-radius: 7px;
	background: none;
	text-align: left;
}

button.xl-chat-title:hover {
	background: rgb(var(--xl-fg-rgb) / 0.06);
}

/* profile card */
.xl-modal-card.xl-profile-card {
	width: min(440px, calc(100vw - 24px));
}

.xl-profile-top {
	display: flex;
	align-items: center;
	gap: 16px;
}

.xl-profile-id {
	min-width: 0;
}

.xl-profile-id .xl-modal-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	overflow-wrap: anywhere;
}

.xl-profile-real {
	margin-top: 2px;
	font-size: 13.5px;
}

.xl-profile-status {
	margin-top: 4px;
	font-size: 12.5px;
}

.xl-profile-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 14px;
	font-size: 13px;
	color: var(--xl-muted);
}

.xl-profile-fact {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.xl-profile-fact svg {
	width: 15px;
	height: 15px;
}

.xl-profile-bio {
	margin: 14px 0 0;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	line-height: 1.5;
	max-height: 40vh;
	overflow-y: auto;
}

.xl-profile-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 14px;
}

.xl-profile-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 5px 10px;
	border: 1px solid var(--xl-line-2);
	border-radius: 999px;
	color: var(--xl-text);
	font-size: 12.5px;
	text-decoration: none;
}

.xl-profile-link span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xl-profile-link:hover {
	border-color: var(--xl-accent);
	color: var(--xl-accent);
}

.xl-profile-link svg {
	flex: none;
	width: 13px;
	height: 13px;
}

.xl-profile-actions {
	flex-wrap: wrap;
	margin-top: 18px;
}

/* profile editor */
.xl-profile-win {
	padding: 18px 20px;
}

.xl-profile-edit {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 560px;
}

.xl-profile-edit .xl-banner {
	margin: 0;
}

.xl-profile-pic-row {
	display: flex;
	align-items: center;
	gap: 16px;
}

.xl-profile-pic-btns {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.xl-profile-pic-btns .xl-field-note {
	flex-basis: 100%;
}

.xl-field-note {
	font-size: 11.5px;
}

.xl-profile-linkedit {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.xl-profile-linkedit:empty {
	display: none;
}

.xl-profile-linkrow {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto;
	gap: 6px;
	align-items: center;
}

.xl-profile-edit .xl-field > .xl-btn {
	align-self: flex-start;
}

.xl-profile-save {
	position: sticky;
	bottom: -18px;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 -20px -18px;
	padding: 12px 20px;
	border-top: 1px solid var(--xl-line);
	background: var(--xl-panel-solid);
}

.xl-settings-panel .xl-profile-save {
	margin: 0;
	bottom: 0;
	padding: 12px 0;
}

@media (max-width: 520px) {
	.xl-profile-linkrow {
		grid-template-columns: minmax(0, 1fr) auto;
	}
	.xl-profile-linkrow input:first-child {
		grid-column: 1 / -1;
	}
	.xl-profile-top .xl-avatar-xl {
		width: 68px !important;
		height: 68px;
	}
}

/* ------------------------------------------------------------ navigation */

.xl-nav {
	flex: none;
	display: flex;
	align-items: center;
	gap: 2px;
}

.xl-nav-btn:disabled {
	opacity: 0.35;
}

.xl-zip-bar,
.xl-myfiles-bar {
	flex-wrap: nowrap;
	gap: 6px;
}

.xl-zip-bar .xl-crumbs,
.xl-myfiles-bar .xl-crumbs {
	flex: 0 1 auto;
	overflow-x: auto;
	scrollbar-width: none;
}

.xl-zip-bar .xl-crumbs::-webkit-scrollbar,
.xl-myfiles-bar .xl-crumbs::-webkit-scrollbar {
	display: none;
}

.xl-crumb {
	flex: 0 1 auto;
	border-color: transparent;
	background: rgb(var(--xl-fg-rgb) / 0.04);
}

.xl-crumb-more {
	flex: none;
	min-width: 30px;
	font-weight: 700;
}

.xl-zip-bar .xl-btn,
.xl-myfiles-bar .xl-btn {
	flex: none;
}

.xl-narrow-only {
	display: none !important;
}

.xl-zip-back {
	display: none !important;
}

@media (max-width: 720px) {
	.xl-wide-only {
		display: none !important;
	}
	.xl-narrow-only {
		display: inline-grid !important;
	}
	.xl-nav-fwd {
		display: none;
	}
	.xl-crumb {
		max-width: 46vw;
	}
}

@media (max-width: 640px) {
	.xl-zip.is-previewing .xl-zip-back {
		display: inline-grid !important;
	}
}

/* plugin upload */
.xl-plugin-upload {
	flex-wrap: wrap;
	margin: 6px 0 10px;
}

.xl-plugin-upload .xl-set-note {
	flex: 1 1 220px;
	margin: 0;
}

.xl-plugin-progress {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 10px;
	font-size: 12.5px;
}

.xl-profile-actions .xl-btn {
	flex: 1 1 auto;
	justify-content: center;
}

/* ============================================================ 0.1.4: brand */

.xl-accent-pick {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.xl-accent-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.xl-accent-preset {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 12px 0 8px;
	background: var(--xl-raise);
	border: 1px solid var(--xl-line-2);
	border-radius: 99px;
	color: var(--xl-text);
	font-size: 13px;
	cursor: pointer;
}

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

.xl-accent-preset.is-on {
	border-color: var(--xl-accent);
	box-shadow: 0 0 0 1px var(--xl-accent);
}

.xl-accent-dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--sw);
	box-shadow: inset 0 0 0 1px rgb(var(--xl-fg-rgb) / 0.2);
}

.xl-field-row .xl-accent-presets {
	flex: none;
}

/* ============================================================ 0.1.4: push */

.xl-push-status {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	margin-bottom: 12px;
	border: 1px solid var(--xl-line-2);
	border-radius: 10px;
	background: rgb(var(--xl-fg-rgb) / 0.03);
}

.xl-push-status > svg {
	flex: none;
	width: 22px;
	height: 22px;
	color: var(--xl-muted);
}

.xl-push-status.is-on > svg {
	color: var(--xl-ok);
}

.xl-push-status.is-warn > svg {
	color: var(--xl-warn);
}

.xl-push-status strong,
.xl-push-status span {
	display: block;
}

.xl-push-status span {
	color: var(--xl-muted);
	font-size: 13px;
	margin-top: 2px;
}

.xl-push-cats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 4px 16px;
}

.xl-push-sub {
	margin: 14px 0 6px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--xl-muted);
}

.xl-push-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--xl-line);
	font-size: 13px;
}

.xl-push-row > svg {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--xl-muted);
}

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

.xl-install-tip {
	position: fixed;
	left: 10px;
	right: 10px;
	bottom: calc(var(--xl-bar) + env(safe-area-inset-bottom, 0px) + 10px);
	z-index: 9300;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 8px 12px 12px;
	background: var(--xl-menu-bg);
	border: 1px solid var(--xl-line-2);
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
	color: var(--xl-text);
	font-size: 13px;
	animation: xl-rise 0.2s ease;
}

.xl-install-tip strong {
	display: block;
	margin-bottom: 2px;
}

.xl-install-tip span svg {
	width: 15px;
	height: 15px;
	vertical-align: -2px;
	color: var(--xl-accent);
}

.xl-install-ico {
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 10px;
}

/* Installed on a phone's Home Screen: keep clear of the status bar and the home bar. */
@media (display-mode: standalone) {
	:root {
		--xl-top: env(safe-area-inset-top, 0px);
	}
}

.xl-desktop {
	bottom: calc(var(--xl-bar) + env(safe-area-inset-bottom, 0px));
}

.xl-taskbar {
	height: calc(var(--xl-bar) + env(safe-area-inset-bottom, 0px));
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============================================================ 0.1.4: PDF */

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

.xl-pdf.is-busy {
	cursor: progress;
}

.xl-pdf-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 100%;
	color: var(--xl-muted);
}

.xl-spin {
	width: 28px;
	height: 28px;
	border: 3px solid rgb(var(--xl-fg-rgb) / 0.15);
	border-top-color: var(--xl-accent);
	border-radius: 50%;
	animation: xl-spin 0.8s linear infinite;
}

@keyframes xl-spin {
	to {
		transform: rotate(360deg);
	}
}

.xl-pdf-bar {
	flex-wrap: nowrap;
	gap: 6px;
	padding: 8px 10px;
}

.xl-pdf-bar .xl-btn.is-on {
	background: color-mix(in srgb, var(--xl-accent) 22%, var(--xl-raise));
	border-color: color-mix(in srgb, var(--xl-accent) 50%, transparent);
}

.xl-pdf-bar .xl-btn-primary.is-on {
	background: var(--xl-accent);
	color: var(--xl-accent-ink);
	box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--xl-accent-ink) 35%, transparent);
}

.xl-pdf-pagebox {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	white-space: nowrap;
}

.xl-pdf-pagein {
	width: 44px;
	height: 30px;
	padding: 0 6px;
	text-align: center;
}

.xl-pdf-zoom {
	min-width: 58px;
	font-variant-numeric: tabular-nums;
}

.xl-pdf-find {
	width: 170px;
	height: 30px;
}

.xl-pdf-editbar {
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 6px 10px 8px;
	border-bottom: 1px solid var(--xl-line);
	background: rgb(var(--xl-fg-rgb) / 0.02);
}

.xl-pdf-tools {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}

.xl-pdf-tools::-webkit-scrollbar {
	display: none;
}

.xl-pdf-tool {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	min-width: 62px;
	padding: 6px 6px 5px;
	background: none;
	border: 1px solid transparent;
	border-radius: 9px;
	color: var(--xl-text);
	font-size: 11px;
	cursor: pointer;
}

.xl-pdf-tool svg {
	width: 20px;
	height: 20px;
}

.xl-pdf-tool:hover {
	background: rgb(var(--xl-fg-rgb) / 0.06);
}

.xl-pdf-tool.is-on {
	background: color-mix(in srgb, var(--xl-accent) 18%, transparent);
	border-color: color-mix(in srgb, var(--xl-accent) 45%, transparent);
	color: var(--xl-text);
}

.xl-pdf-tool.is-on svg {
	color: var(--xl-accent);
}

.xl-pdf-opts {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
}

.xl-pdf-hint {
	font-size: 12px;
	margin-left: 6px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.xl-pdf-color i {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	box-shadow: 0 0 0 2px rgb(var(--xl-fg-rgb) / 0.2);
}

.xl-pdf-host {
	position: relative;
	flex: 1;
	min-height: 0;
	display: flex;
}

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

.xl-pdf-side {
	display: none;
	flex: none;
	width: 168px;
	flex-direction: column;
	border-right: 1px solid var(--xl-line);
	background: rgb(0 0 0 / 0.12);
}

.xl-pdf-main.has-side .xl-pdf-side {
	display: flex;
}

.xl-pdf-thumbs {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.xl-pdf-thumb {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 6px;
	border-radius: 8px;
	cursor: pointer;
	border: 2px solid transparent;
}

.xl-pdf-thumb:hover {
	background: rgb(var(--xl-fg-rgb) / 0.05);
}

.xl-pdf-thumb.is-on {
	border-color: var(--xl-accent);
}

.xl-pdf-thumb-img {
	width: 120px;
	min-height: 60px;
	display: grid;
	place-items: center;
}

.xl-pdf-thumb-img img {
	max-width: 120px;
	max-height: 140px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.xl-pdf-thumb-n {
	font-size: 11.5px;
	color: var(--xl-muted);
}

.xl-pdf-ttools {
	display: flex;
	gap: 2px;
}

.xl-pdf-tbtn {
	width: 28px;
	height: 26px;
	display: grid;
	place-items: center;
	padding: 0;
	background: var(--xl-raise);
	border: 1px solid var(--xl-line-2);
	border-radius: 6px;
	color: var(--xl-text);
	cursor: pointer;
}

.xl-pdf-tbtn:disabled {
	opacity: 0.35;
	cursor: default;
}

.xl-pdf-tbtn svg {
	width: 14px;
	height: 14px;
}

.xl-pdf-addpages {
	display: none;
	margin: 0 10px 10px;
}

.xl-pdf-host.is-pages .xl-pdf-addpages {
	display: inline-flex;
}

.xl-pdf-scroll {
	flex: 1;
	min-width: 0;
	overflow: auto;
	background: var(--xl-doc-bg);
	outline: none;
	touch-action: pan-x pan-y;
}

.xl-pdf-pages {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 16px 12px 40px;
	min-width: min-content;
}

.xl-pdf-page {
	position: relative;
	flex: none;
	background: #fff;
	box-shadow: 0 6px 28px -6px rgba(0, 0, 0, 0.6);
}

.xl-pdf-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Selectable text (PDF.js text layer). */
.xl-pdf-text {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: clip;
	line-height: 1;
	text-align: initial;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
	forced-color-adjust: none;
	transform-origin: 0 0;
	caret-color: CanvasText;
	--min-font-size: 1;
	--text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size));
	--min-font-size-inv: calc(1 / var(--min-font-size));
}

.xl-pdf-text span,
.xl-pdf-text br {
	color: transparent;
	position: absolute;
	white-space: pre;
	cursor: text;
	transform-origin: 0% 0%;
	-webkit-user-select: text;
	user-select: text;
}

.xl-pdf-text > :not(.markedContent),
.xl-pdf-text .markedContent span:not(.markedContent) {
	z-index: 1;
	--font-height: 0;
	font-size: calc(var(--text-scale-factor) * var(--font-height));
	--scale-x: 1;
	--rotate: 0deg;
	transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));
}

.xl-pdf-text .markedContent {
	display: contents;
}

.xl-pdf-text ::selection {
	background: rgba(0, 90, 255, 0.28);
	color: transparent;
}

.xl-pdf-text .endOfContent {
	display: block;
	position: absolute;
	inset: 100% 0 0;
	z-index: 0;
	cursor: default;
	user-select: none;
}

.xl-pdf-text span.xl-pdf-hit {
	background: rgba(255, 200, 0, 0.45);
	border-radius: 2px;
}

/* Annotations and form fields on top of each page. */
.xl-pdf-anns,
.xl-pdf-form {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.xl-pdf-host.is-editing .xl-pdf-anns {
	pointer-events: auto;
	touch-action: pan-x pan-y;
	cursor: crosshair;
}

.xl-pdf-host.is-editing[data-tool="select"] .xl-pdf-anns {
	cursor: default;
}

.xl-pdf-host.is-editing[data-tool="pen"] .xl-pdf-anns,
.xl-pdf-host.is-editing[data-tool="highlight"] .xl-pdf-anns,
.xl-pdf-host.is-editing[data-tool="whiteout"] .xl-pdf-anns {
	touch-action: none;
}

.xl-pdf-form {
	z-index: 3;
}

.xl-pdf-field {
	position: absolute;
	box-sizing: border-box;
	margin: 0;
	padding: 0 3px;
	background: rgba(60, 130, 255, 0.12);
	border: 1px solid rgba(60, 130, 255, 0.5);
	border-radius: 2px;
	color: #111;
	font: 12px Helvetica, Arial, sans-serif;
	pointer-events: auto;
	outline: none;
	color-scheme: light;
}

textarea.xl-pdf-field {
	resize: none;
	padding: 2px 3px;
}

.xl-pdf-field:focus {
	background: #fff;
	border-color: #2a6ff0;
	box-shadow: 0 0 0 2px rgba(42, 111, 240, 0.25);
}

.xl-pdf-field.is-check {
	padding: 0;
	accent-color: #1a6be6;
}

.xl-ann {
	position: absolute;
	box-sizing: border-box;
	pointer-events: none;
}

.xl-pdf-host.is-editing .xl-ann {
	pointer-events: auto;
	cursor: move;
	touch-action: none;
}

.xl-pdf-host.is-editing .xl-ann:hover {
	outline: 1px dashed rgba(42, 111, 240, 0.7);
}

.xl-ann.is-sel {
	outline: 2px solid #2a6ff0 !important;
	outline-offset: 1px;
}

.xl-ann-in {
	position: absolute;
	transform-origin: 50% 50%;
}

.xl-ann-in img {
	display: block;
	width: 100%;
	height: 100%;
	user-select: none;
	-webkit-user-drag: none;
}

.xl-ann-text {
	white-space: pre;
	line-height: 1.2;
	padding: 0.1em 0.15em;
	font-family: Helvetica, Arial, sans-serif;
	outline: none;
}

.xl-ann-text.is-typing {
	cursor: text;
	background: rgba(42, 111, 240, 0.08);
	user-select: text;
	-webkit-user-select: text;
}

.xl-ann-mark,
.xl-ann-mark svg {
	width: 100%;
	height: 100%;
	display: block;
}

.xl-ann-mark svg {
	stroke-width: 3;
}

.xl-ann.is-rect.is-highlight {
	background: rgba(255, 222, 51, 0.42);
	mix-blend-mode: multiply;
}

.xl-ann.is-rect.is-whiteout {
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.xl-ann.is-ghost {
	outline: 1px dashed #2a6ff0;
}

.xl-ann.is-ink svg,
.xl-ann-live {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.xl-ann-grip {
	position: absolute;
	right: -7px;
	bottom: -7px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #2a6ff0;
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	cursor: nwse-resize;
	display: none;
}

.xl-ann.is-sel .xl-ann-grip {
	display: block;
}

.xl-ann.is-ink .xl-ann-grip,
.xl-ann.is-rect .xl-ann-grip {
	display: none;
}

/* Signature pad */
.xl-sigpad {
	width: min(560px, calc(100vw - 24px));
}

.xl-sigpad-tabs {
	margin: 10px 0 12px;
}

.xl-sigpad-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 180px;
}

.xl-sig-drawwrap {
	position: relative;
	background: #fff;
	border-radius: 10px;
	border: 1px solid var(--xl-line-2);
	overflow: hidden;
}

.xl-sig-canvas {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1200 / 420;
	touch-action: none;
	cursor: crosshair;
}

.xl-sig-line {
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: 26%;
	border-bottom: 1.5px solid #c9ced8;
	pointer-events: none;
}

.xl-sig-hint {
	position: absolute;
	left: 8%;
	bottom: 10%;
	font-size: 11.5px;
	color: #9aa3b2;
	pointer-events: none;
}

.xl-sig-styles {
	display: grid;
	gap: 8px;
}

.xl-sig-style {
	min-height: 64px;
	padding: 6px 14px;
	background: #fff;
	border: 2px solid transparent;
	border-radius: 10px;
	color: #10204a;
	font-size: 34px;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
}

.xl-sig-style.is-on {
	border-color: var(--xl-accent);
}

.xl-sig-saved {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

.xl-sig-tile {
	position: relative;
	display: grid;
	place-items: center;
	height: 90px;
	padding: 10px;
	background: #fff;
	border: 2px solid transparent;
	border-radius: 10px;
	cursor: pointer;
}

.xl-sig-tile.is-on {
	border-color: var(--xl-accent);
}

.xl-sig-tile img {
	max-width: 100%;
	max-height: 100%;
}

.xl-sig-del {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	padding: 0;
	background: rgba(0, 0, 0, 0.06);
	border: 0;
	border-radius: 6px;
	color: #555;
	cursor: pointer;
}

.xl-sig-del:hover {
	background: #ffe1e4;
	color: #c0262d;
}

.xl-sig-del svg {
	width: 14px;
	height: 14px;
}

.xl-sig-upprev {
	display: grid;
	place-items: center;
	min-height: 120px;
	padding: 12px;
	background: #fff;
	border-radius: 10px;
	text-align: center;
}

.xl-sig-upprev img {
	max-width: 100%;
	max-height: 140px;
}

.xl-sig-upprev .xl-muted {
	color: #6b7790;
}

@media (max-width: 720px) {
	.xl-pdf-find {
		display: none;
	}

	.xl-pdf-bar.show-find .xl-pdf-find {
		display: block;
		position: absolute;
		left: 8px;
		right: 8px;
		top: 52px;
		width: auto;
		z-index: 5;
	}

	.xl-pdf-tool {
		min-width: 54px;
		font-size: 10px;
	}

	.xl-pdf-side {
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0;
		z-index: 6;
		background: var(--xl-panel-solid);
		box-shadow: 8px 0 30px rgba(0, 0, 0, 0.5);
	}
}

/* ============================================================ 0.1.4: signature requests */

.xl-signreq-wrap {
	flex: 1;
	min-height: 0;
	display: flex;
}

.xl-signreq-wrap .xl-pdf-host {
	flex: 1;
	min-width: 0;
}

.xl-signreq-panel {
	flex: none;
	width: 300px;
	overflow-y: auto;
	padding: 4px 16px 16px;
	border-left: 1px solid var(--xl-line);
	background: rgb(var(--xl-fg-rgb) / 0.02);
}

.xl-signreq-panel .xl-set-sec {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.xl-signreq-people {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.xl-signreq-person {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 8px;
	border: 1px solid var(--xl-line-2);
	border-left: 4px solid var(--c);
	border-radius: 9px;
	cursor: pointer;
	font-size: 13px;
}

.xl-signreq-person.is-on {
	background: color-mix(in srgb, var(--c) 14%, transparent);
	border-color: var(--c);
}

.xl-signreq-person strong,
.xl-signreq-person .xl-muted {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.xl-signreq-person .xl-muted {
	font-size: 11.5px;
}

.xl-signreq-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--c);
	flex: none;
}

.xl-signreq-n {
	flex: none;
	width: 20px;
	height: 20px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--c, var(--xl-accent));
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.xl-signreq-types {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
}

.xl-signreq-types .xl-pdf-tool {
	min-width: 0;
	border: 1px solid var(--xl-line);
}

.xl-signreq-send {
	margin-top: 4px;
}

.xl-sf-layer {
	position: absolute;
	inset: 0;
	z-index: 4;
}

.xl-pdf-host.is-placing .xl-sf-layer {
	cursor: copy;
}

.xl-sf,
.xl-sf-val {
	position: absolute;
	box-sizing: border-box;
}

.xl-sf {
	border: 2px solid var(--c, var(--xl-accent));
	background: color-mix(in srgb, var(--c, var(--xl-accent)) 16%, rgba(255, 255, 255, 0.6));
	border-radius: 4px;
	cursor: move;
	touch-action: none;
	display: flex;
	align-items: center;
	overflow: visible;
}

.xl-sf.is-sel {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c, var(--xl-accent));
}

.xl-sf-label {
	padding: 0 6px;
	font: 600 11px/1.1 var(--xl-font);
	color: color-mix(in srgb, var(--c, #2a8af6) 70%, #000);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

.xl-sf-x {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 20px;
	height: 20px;
	display: none;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c0262d;
	color: #fff;
	cursor: pointer;
}

.xl-sf.is-sel .xl-sf-x,
.xl-sf:hover .xl-sf-x {
	display: grid;
}

.xl-sf-x svg {
	width: 12px;
	height: 12px;
}

.xl-sf .xl-ann-grip {
	display: none;
	background: var(--c, #2a8af6);
}

.xl-sf.is-sel .xl-ann-grip {
	display: block;
}

/* signing */
.xl-signfill .xl-sf.is-mine {
	cursor: pointer;
	--c: #e8590c;
	animation: xl-sf-pulse 2s ease-in-out infinite;
}

.xl-signfill .xl-sf.is-mine.is-checkbox {
	--c: #e8590c;
}

@keyframes xl-sf-pulse {
	50% {
		background: color-mix(in srgb, #e8590c 30%, rgba(255, 255, 255, 0.6));
	}
}

.xl-sf.is-flash,
.xl-sf-val.is-flash {
	outline: 3px solid #e8590c;
	outline-offset: 2px;
}

.xl-sf-val {
	display: flex;
	align-items: center;
	color: #111;
	font-family: Helvetica, Arial, sans-serif;
}

.xl-sf-val.is-mine {
	cursor: pointer;
	outline: 1px dashed rgba(232, 89, 12, 0.7);
}

.xl-sf-val img {
	max-width: 100%;
	max-height: 100%;
}

.xl-sf-val svg {
	width: 100%;
	height: 100%;
	stroke-width: 3;
}

.xl-signfill-bar {
	flex-wrap: wrap;
}

.xl-signfill-from {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.xl-signfill-msg {
	font-size: 12.5px;
	max-width: 320px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.xl-signfill-progress {
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}

/* list */
.xl-signs {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

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

.xl-signs-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 10px;
	border-radius: 10px;
	cursor: pointer;
}

.xl-signs-row:hover {
	background: rgb(var(--xl-fg-rgb) / 0.04);
}

.xl-signs-row.is-turn {
	background: color-mix(in srgb, var(--xl-accent) 8%, transparent);
}

.xl-signs-title {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.xl-signs-meta {
	font-size: 12px;
	margin: 2px 0 6px;
}

.xl-signs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.xl-signs-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 8px 2px 2px;
	border-radius: 99px;
	background: rgb(var(--xl-fg-rgb) / 0.06);
	font-size: 11.5px;
}

.xl-signs-chip.is-signed {
	background: color-mix(in srgb, var(--xl-ok) 18%, transparent);
}

.xl-signs-chip.is-declined {
	background: color-mix(in srgb, var(--xl-danger) 20%, transparent);
}

.xl-signs-chip.is-pending {
	background: color-mix(in srgb, var(--xl-warn) 18%, transparent);
}

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

.xl-signs-msg {
	margin: 10px 0;
	padding: 8px 12px;
	border-left: 3px solid var(--xl-accent);
	background: rgb(var(--xl-fg-rgb) / 0.04);
	white-space: pre-wrap;
}

.xl-signs-people {
	margin: 8px 0 4px;
}

@media (max-width: 720px) {
	.xl-signreq-wrap {
		flex-direction: column;
	}

	.xl-signreq-panel {
		width: auto;
		max-height: 45%;
		border-left: 0;
		border-top: 1px solid var(--xl-line);
	}

	.xl-signs-row {
		flex-wrap: wrap;
	}

	.xl-signs-actions {
		width: 100%;
		justify-content: flex-end;
	}
}

/* ============================================================ 0.1.4: skins picker */

.xl-skin-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

.xl-skin-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px;
	background: rgb(var(--xl-fg-rgb) / 0.03);
	border: 2px solid var(--xl-line);
	border-radius: 10px;
	color: var(--xl-text);
	text-align: left;
	cursor: pointer;
}

.xl-skin-card:hover {
	border-color: var(--xl-line-2);
}

.xl-skin-card.is-on {
	border-color: var(--xl-accent);
	box-shadow: 0 0 0 1px var(--xl-accent);
}

.xl-skin-name {
	font-weight: 600;
	font-size: 13px;
}

.xl-skin-sub {
	font-size: 11.5px;
}

.xl-skin-mock {
	position: relative;
	height: 78px;
	overflow: hidden;
	border-radius: 5px;
	background: var(--p0);
}

.xl-skin-mock-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 12px;
	background: var(--p1);
	opacity: 0.9;
}

.xl-skin-mock.is-menubar .xl-skin-mock-bar,
.xl-skin-mock.is-warpcenter .xl-skin-mock-bar {
	top: 0;
	bottom: auto;
	height: 9px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.6);
}

.xl-skin-mock-win {
	position: absolute;
	left: 14%;
	top: 22%;
	width: 52%;
	height: 52%;
	background: var(--p2);
	border: 1px solid rgba(0, 0, 0, 0.55);
}

.xl-skin-mock-win b {
	display: block;
	height: 8px;
	background: var(--p1);
	border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.xl-skin-mock.is-warpcenter .xl-skin-mock-win b {
	background: var(--p2);
	filter: brightness(0.5);
}

.xl-skin-mock-win.is-2 {
	left: 38%;
	top: 40%;
	width: 50%;
	height: 48%;
	background: var(--p3);
}

/* Window List button glyph for the default skin, if someone opens it there */
.xl-winlist-row {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 6px 10px;
	background: none;
	border: 0;
	color: var(--xl-text);
	text-align: left;
	cursor: pointer;
}

.xl-winlist-row svg,
.xl-winlist-row img {
	width: 18px;
	height: 18px;
}

/* ============================================================ 0.1.5: phones */

/* Text you type into never smaller than 16px on phones (iPhone zooms in otherwise),
   whatever the skin says. */
@media (pointer: coarse) {
	.xl-ann-text.is-typing,
	.xl-pdf-field,
	.xl-input,
	input.xl-input,
	textarea.xl-input,
	select.xl-input {
		font-size: 16px !important;
	}

	/* Small window buttons get a finger-sized tap area. */
	.xl-win-btn {
		position: relative;
	}

	.xl-win-btn::before {
		content: "";
		position: absolute;
		inset: -10px -3px;
	}
}

/* Home bar: keep clear of it, but without a tall empty strip under the taskbar. */
.xl-taskbar {
	height: calc(var(--xl-bar) + max(0px, env(safe-area-inset-bottom, 0px) - 14px));
	padding-bottom: max(0px, env(safe-area-inset-bottom, 0px) - 14px);
}

.xl-desktop {
	bottom: calc(var(--xl-bar) + max(0px, env(safe-area-inset-bottom, 0px) - 14px));
}

.xl-start,
.xl-notify,
.xl-install-tip {
	bottom: calc(var(--xl-bar) + 10px + max(0px, env(safe-area-inset-bottom, 0px) - 14px));
}
