/* ==========================================================================
   Lounge — chat for Invision Community
   Colours derive from the active IPS theme, so light and dark themes work.
   ========================================================================== */

.lg-shell {
	--lg-accent-rgb: var(--theme-brand_primary, 79, 70, 229);
	--lg-accent: rgb(var(--lg-accent-rgb));
	--lg-text-rgb: var(--theme-text_color, 30, 34, 43);
	--lg-text: rgb(var(--lg-text-rgb));
	--lg-muted: rgba(var(--lg-text-rgb), .58);
	--lg-faint: rgba(var(--lg-text-rgb), .38);
	--lg-bg: rgb(var(--theme-area_background_reset, 255, 255, 255));
	--lg-tint: rgba(var(--lg-text-rgb), .035);
	--lg-tint-2: rgba(var(--lg-text-rgb), .06);
	--lg-tint-3: rgba(var(--lg-text-rgb), .1);
	--lg-line: rgba(var(--lg-text-rgb), .085);
	--lg-accent-soft: rgba(var(--lg-accent-rgb), .1);
	--lg-accent-softer: rgba(var(--lg-accent-rgb), .06);
	--lg-online: #22c55e;
	--lg-danger: #e5484d;
	--lg-warn: #f5a524;
	--lg-radius: 18px;
	--lg-radius-sm: 10px;
	--lg-shadow: 0 1px 2px rgba(15, 18, 30, .04), 0 12px 40px -12px rgba(15, 18, 30, .14);
	--lg-shadow-pop: 0 2px 6px rgba(15, 18, 30, .06), 0 24px 60px -18px rgba(15, 18, 30, .32);
	--lg-ease: cubic-bezier(.2, .8, .2, 1);
	--lg-font: inherit;

	position: relative;
	height: calc(100vh - var(--lg-offset, 230px));
	min-height: 520px;
	max-height: 1100px;
	color: var(--lg-text);
	font-family: var(--lg-font);
	font-size: 16.5px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

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

.lg-shell button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	margin: 0;
	padding: 0;
	cursor: pointer;
	text-align: inherit;
}

.lg-shell button:focus-visible,
.lg-shell a:focus-visible,
.lg-shell input:focus-visible,
.lg-shell textarea:focus-visible {
	outline: 2px solid rgba(var(--lg-accent-rgb), .55);
	outline-offset: 2px;
}

.lg-shell [hidden] {
	display: none !important;
}

.lg-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.lg-ico {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Boot ------------------------------------------------------------------- */

.lg-boot {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	border-radius: var(--lg-radius);
	background: var(--lg-bg);
	box-shadow: var(--lg-shadow);
	color: var(--lg-muted);
}

.lg-spinner,
.lg-boot__spinner {
	display: inline-block;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid var(--lg-tint-3);
	border-top-color: var(--lg-accent);
	animation: lg-spin .8s linear infinite;
}

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

/* App grid --------------------------------------------------------------- */

.lg-app {
	position: relative;
	display: grid;
	grid-template-columns: 272px minmax(0, 1fr) 0;
	height: 100%;
	overflow: hidden;
	border-radius: var(--lg-radius);
	background: var(--lg-bg);
	border: 1px solid var(--lg-line);
	box-shadow: var(--lg-shadow);
	transition: grid-template-columns .3s var(--lg-ease);
}

.lg-app.is-people {
	grid-template-columns: 272px minmax(0, 1fr) 248px;
}

/* Sidebar ---------------------------------------------------------------- */

.lg-side {
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: var(--lg-tint);
	border-right: 1px solid var(--lg-line);
}

.lg-side__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 18px 12px;
}

.lg-brand__mark {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	color: #fff;
	background: linear-gradient(135deg, #3b82f6, #1d4ed8);
	box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .7);
}

.lg-brand__mark .lg-ico {
	width: 17px;
	height: 17px;
}

.lg-brand__name {
	flex: 1;
	font-size: 18px;
	font-weight: 650;
	letter-spacing: -.01em;
}

.lg-search {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 14px 10px;
	padding: 0 12px;
	height: 36px;
	border-radius: 10px;
	background: var(--lg-bg);
	border: 1px solid var(--lg-line);
	color: var(--lg-faint);
	transition: border-color .2s, box-shadow .2s;
}

.lg-search:focus-within {
	border-color: rgba(var(--lg-accent-rgb), .45);
	box-shadow: 0 0 0 3px rgba(var(--lg-accent-rgb), .12);
}

.lg-search .lg-ico {
	width: 16px;
	height: 16px;
}

.lg-shell .lg-search__input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: 0;
	padding: 0;
	background: transparent;
	color: var(--lg-text);
	font: inherit;
	font-size: 15.5px;
	box-shadow: none;
}

.lg-side__scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 4px 10px 12px;
	scrollbar-width: thin;
}

.lg-sec + .lg-sec {
	margin-top: 14px;
}

.lg-sec__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 8px 6px;
	font-size: 12.5px;
	font-weight: 650;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--lg-faint);
}

.lg-list-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.lg-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 40px;
	padding: 6px 10px;
	border-radius: 10px;
	color: var(--lg-muted);
	transition: background .15s, color .15s;
}

.lg-item:hover {
	background: var(--lg-tint-2);
	color: var(--lg-text);
}

.lg-item.is-active {
	background: var(--lg-bg);
	color: var(--lg-text);
	box-shadow: 0 1px 2px rgba(15, 18, 30, .06), 0 0 0 1px var(--lg-line);
}

.lg-item.is-unread {
	color: var(--lg-text);
	font-weight: 600;
}

.lg-item__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	color: var(--lg-room, var(--lg-accent));
	background: var(--lg-accent-soft);
	background: color-mix(in srgb, var(--lg-room, var(--lg-accent)) 14%, transparent);
}

.lg-item__icon .lg-ico {
	width: 15px;
	height: 15px;
}

.lg-item__name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 16px;
}

.lg-item__text {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	line-height: 1.25;
}

.lg-item__sub {
	font-size: 13.5px;
	font-weight: 400;
	color: var(--lg-faint);
}

.lg-item__online {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--lg-faint);
}

.lg-item__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--lg-accent);
	box-shadow: 0 0 0 3px rgba(var(--lg-accent-rgb), .15);
}

.lg-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--lg-online);
}

.lg-dot--ring {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 11px;
	height: 11px;
	border: 2px solid var(--lg-bg);
}

.lg-badge {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 650;
	color: #fff;
	background: var(--lg-accent);
}

.lg-badge--float {
	position: absolute;
	top: -2px;
	right: -4px;
	min-width: 17px;
	height: 17px;
	font-size: 11.5px;
	padding: 0 4px;
}

.lg-side__empty {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 8px 10px;
	font-size: 15px;
	color: var(--lg-faint);
}

.lg-link {
	align-self: flex-start;
	color: var(--lg-accent) !important;
	font-weight: 600;
	font-size: 15px;
}

.lg-side__foot {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-top: 1px solid var(--lg-line);
}

.lg-me {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	line-height: 1.25;
}

.lg-me__name {
	font-weight: 600;
	font-size: 15.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lg-me__status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	color: var(--lg-faint);
}

/* Avatars ---------------------------------------------------------------- */

.lg-ava {
	display: block;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--lg-tint-2);
}

.lg-ava--xs { width: 20px; height: 20px; }
.lg-ava--sm { width: 26px; height: 26px; }
.lg-ava--md { width: 32px; height: 32px; }
.lg-ava--lg { width: 38px; height: 38px; }
.lg-ava--xl { width: 64px; height: 64px; }

.lg-ava--icon {
	display: grid;
	place-items: center;
	color: var(--lg-muted);
}

.lg-ava--icon .lg-ico {
	width: 14px;
	height: 14px;
}

.lg-stack {
	position: relative;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
}

.lg-stack > :first-child {
	position: absolute;
	top: 0;
	left: 0;
	width: 22px;
	height: 22px;
}

.lg-stack > :last-child {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 22px;
	height: 22px;
	box-shadow: 0 0 0 2px var(--lg-bg);
}

/* Main column ------------------------------------------------------------ */

.lg-main {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.lg-head {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 12px 16px 12px 22px;
	border-bottom: 1px solid var(--lg-line);
	background: var(--lg-bg);
	transition: box-shadow .2s;
}

.lg-main.is-scrolled .lg-head {
	box-shadow: 0 8px 18px -14px rgba(15, 18, 30, .35);
}

.lg-head__icon {
	--lg-room: var(--lg-accent);
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	color: var(--lg-room);
	background: color-mix(in srgb, var(--lg-room) 13%, transparent);
}

.lg-head__icon--conv {
	background: none;
	width: auto;
}

.lg-head__icon--conv .lg-ava--md,
.lg-head__icon--conv .lg-stack {
	width: 38px;
	height: 38px;
}

.lg-head__icon--conv .lg-stack > * {
	width: 26px !important;
	height: 26px !important;
}

.lg-head__text {
	flex: 1;
	min-width: 0;
}

.lg-shell .lg-head__title,
.lg-shell h3 {
	text-transform: none;
	opacity: 1;
	background: none;
	border: 0;
}

.lg-shell .lg-head__title {
	margin: 0;
	padding: 0;
	font-size: 19px;
	font-weight: 650;
	line-height: 1.25;
	letter-spacing: -.012em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--lg-text);
}

.lg-shell .lg-head__sub {
	margin: 2px 0 0;
	font-size: 14px;
	color: var(--lg-faint);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lg-head__actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.lg-iconbtn {
	position: relative;
	display: inline-grid;
	grid-auto-flow: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border-radius: 10px;
	color: var(--lg-muted);
	transition: background .15s, color .15s, transform .15s;
}

.lg-iconbtn:hover,
.lg-iconbtn[aria-expanded] {
	background: var(--lg-tint-2);
	color: var(--lg-text);
}

.lg-iconbtn:active {
	transform: scale(.94);
}

.lg-iconbtn--sm {
	min-width: 28px;
	height: 28px;
	padding: 0 4px;
	border-radius: 8px;
}

.lg-iconbtn--sm .lg-ico {
	width: 15px;
	height: 15px;
}

.lg-count {
	font-size: 14px;
	font-weight: 600;
}

.lg-count:empty {
	display: none;
}

.lg-only-mobile {
	display: none !important;
}

/* Announcement ----------------------------------------------------------- */

.lg-announce {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 12px 18px 0;
	padding: 11px 10px 11px 14px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(var(--lg-accent-rgb), .1), rgba(var(--lg-accent-rgb), .04));
	border: 1px solid rgba(var(--lg-accent-rgb), .16);
	animation: lg-in .35s var(--lg-ease);
}

.lg-announce__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	color: var(--lg-accent);
	background: rgba(var(--lg-accent-rgb), .14);
}

.lg-announce__icon .lg-ico {
	width: 15px;
	height: 15px;
}

.lg-announce__text {
	flex: 1;
	min-width: 0;
	padding-top: 3px;
	font-size: 15.5px;
	overflow-wrap: anywhere;
}

/* Messages --------------------------------------------------------------- */

.lg-stage {
	position: relative;
	flex: 1;
	min-height: 0;
}

.lg-scroll {
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	padding: 8px 0 14px;
	scrollbar-width: thin;
	scrollbar-color: var(--lg-tint-3) transparent;
}

.lg-scroll::-webkit-scrollbar,
.lg-side__scroll::-webkit-scrollbar {
	width: 8px;
}

.lg-scroll::-webkit-scrollbar-thumb,
.lg-side__scroll::-webkit-scrollbar-thumb {
	border-radius: 8px;
	background: var(--lg-tint-3);
	border: 2px solid transparent;
	background-clip: padding-box;
}

.lg-older {
	display: flex;
	justify-content: center;
	min-height: 36px;
	padding: 8px 0 4px;
}

.lg-older__start {
	font-size: 13.5px;
	color: var(--lg-faint);
}

.lg-day {
	position: relative;
	display: flex;
	justify-content: center;
	margin: 18px 22px 8px;
}

.lg-day::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--lg-line);
}

.lg-day span {
	position: relative;
	padding: 2px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--lg-muted);
	background: var(--lg-bg);
	border: 1px solid var(--lg-line);
	text-transform: capitalize;
}

.lg-msg {
	position: relative;
	display: flex;
	gap: 12px;
	padding: 6px 22px 3px;
	margin-top: 8px;
	transition: background .15s;
}

.lg-msg.is-cont {
	margin-top: 0;
	padding-top: 2px;
}

.lg-msg:hover {
	background: var(--lg-tint);
}

.lg-msg.is-mention {
	background: rgba(245, 165, 36, .08);
	box-shadow: inset 3px 0 0 var(--lg-warn);
}

.lg-msg.is-editing {
	background: var(--lg-accent-softer);
	box-shadow: inset 3px 0 0 var(--lg-accent);
}

.lg-msg.is-pending {
	opacity: .55;
}

.lg-msg.is-flash {
	animation: lg-flash 1.6s var(--lg-ease);
}

@keyframes lg-flash {
	0%, 30% { background: rgba(var(--lg-accent-rgb), .16); }
	100% { background: transparent; }
}

.lg-msg__gutter {
	flex: 0 0 38px;
	width: 38px;
}

.lg-msg__avatar {
	display: block;
	border-radius: 50%;
	transition: transform .15s, box-shadow .15s;
}

.lg-msg__avatar:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px -4px rgba(15, 18, 30, .35);
}

.lg-msg__ghost {
	display: block;
	padding-top: 3px;
	font-size: 12px;
	line-height: 1.6;
	text-align: right;
	color: var(--lg-faint);
	opacity: 0;
	transition: opacity .15s;
	font-variant-numeric: tabular-nums;
}

.lg-msg:hover .lg-msg__ghost {
	opacity: 1;
}

.lg-msg__body {
	flex: 1;
	min-width: 0;
}

.lg-msg__head {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 1px;
}

.lg-msg__author {
	font-weight: 650;
	font-size: 16px;
	color: var(--lg-text);
	border-radius: 4px;
}

.lg-msg__author:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.lg-msg__time {
	font-size: 13px;
	color: var(--lg-faint);
	font-variant-numeric: tabular-nums;
}

.lg-msg__edited {
	font-size: 12.5px;
	color: var(--lg-faint);
}

.lg-msg__pending {
	font-size: 13px;
	color: var(--lg-faint);
}

.lg-msg__text {
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
}

.lg-msg__text.is-jumbo {
	font-size: 39px;
	line-height: 1.25;
}

.lg-shell .lg-a {
	color: var(--lg-accent);
	text-decoration: none;
	border-bottom: 1px solid rgba(var(--lg-accent-rgb), .3);
	word-break: break-all;
}

.lg-shell .lg-a:hover {
	border-bottom-color: var(--lg-accent);
}

.lg-code {
	padding: 1px 5px;
	border-radius: 5px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .88em;
	background: var(--lg-tint-2);
	border: 1px solid var(--lg-line);
}

.lg-pre {
	margin: 4px 0;
	padding: 10px 12px;
	border-radius: 10px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 14px;
	white-space: pre-wrap;
	background: var(--lg-tint-2);
	border: 1px solid var(--lg-line);
	overflow-x: auto;
}

.lg-mention {
	padding: 0 3px;
	border-radius: 4px;
	font-weight: 600;
	color: var(--lg-accent);
	background: var(--lg-accent-soft);
}

.lg-mention.is-me {
	color: #a16207;
	background: rgba(245, 165, 36, .2);
}

.lg-ref {
	display: flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	margin: 2px 0 4px;
	padding: 3px 10px 3px 8px;
	border-radius: 8px;
	font-size: 14px;
	color: var(--lg-muted);
	background: var(--lg-tint);
	border-left: 2px solid rgba(var(--lg-accent-rgb), .5);
}

.lg-ref:hover {
	background: var(--lg-tint-2);
}

.lg-ref .lg-ico {
	width: 13px;
	height: 13px;
	transform: scaleX(-1) rotate(180deg);
}

.lg-ref strong {
	flex: 0 0 auto;
	color: var(--lg-text);
	font-weight: 600;
}

.lg-ref span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lg-image {
	display: inline-block;
	margin-top: 6px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--lg-line);
	background: var(--lg-tint);
	line-height: 0;
	cursor: zoom-in;
}

.lg-image img {
	display: block;
	max-width: min(360px, 100%);
	max-height: 280px;
	object-fit: cover;
	transition: transform .3s var(--lg-ease);
}

.lg-image:hover img {
	transform: scale(1.02);
}

.lg-file {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	max-width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border-radius: 12px;
	color: var(--lg-text) !important;
	text-decoration: none !important;
	background: var(--lg-bg);
	border: 1px solid var(--lg-line);
	transition: border-color .15s, box-shadow .15s;
}

.lg-file:hover {
	border-color: rgba(var(--lg-accent-rgb), .4);
	box-shadow: 0 6px 16px -10px rgba(15, 18, 30, .3);
}

.lg-file__icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	color: var(--lg-accent);
	background: var(--lg-accent-soft);
}

.lg-file__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.lg-file__meta strong {
	font-size: 15.5px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lg-file__meta small {
	font-size: 13.5px;
	color: var(--lg-faint);
}

.lg-file__dl {
	color: var(--lg-faint);
}

/* Hover actions */

.lg-actions {
	position: absolute;
	top: -14px;
	right: 18px;
	display: flex;
	gap: 2px;
	padding: 3px;
	border-radius: 10px;
	background: var(--lg-bg);
	border: 1px solid var(--lg-line);
	box-shadow: 0 6px 18px -8px rgba(15, 18, 30, .3);
	opacity: 0;
	transform: translateY(4px);
	pointer-events: none;
	transition: opacity .15s, transform .15s var(--lg-ease);
}

.lg-msg:hover .lg-actions,
.lg-msg:focus-within .lg-actions {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.lg-act {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 7px;
	color: var(--lg-muted);
}

.lg-act .lg-ico {
	width: 15px;
	height: 15px;
}

.lg-act:hover {
	background: var(--lg-tint-2);
	color: var(--lg-text);
}

.lg-act--danger:hover {
	color: var(--lg-danger);
	background: rgba(229, 72, 77, .1);
}

/* Forum activity cards */

.lg-feed__line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0;
	row-gap: 2px;
	margin-bottom: 4px;
	font-size: 15.5px;
	color: var(--lg-muted);
}

.lg-feed__line .lg-msg__time {
	margin-left: 8px;
}

.lg-feed__verb {
	white-space: pre;
}

.lg-shell .lg-feed__forum {
	font-weight: 600;
	color: var(--lg-text);
	text-decoration: none;
}

.lg-shell a.lg-feed__forum:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lg-shell .lg-feed {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 520px;
	padding: 11px 12px;
	border-radius: 14px;
	color: var(--lg-text);
	text-decoration: none;
	background: var(--lg-bg);
	border: 1px solid var(--lg-line);
	box-shadow: 0 1px 2px rgba(15, 18, 30, .04);
	transition: border-color .15s, box-shadow .2s, transform .2s var(--lg-ease);
}

.lg-shell .lg-feed:hover {
	border-color: rgba(var(--lg-accent-rgb), .4);
	box-shadow: 0 10px 24px -14px rgba(15, 18, 30, .35);
	transform: translateY(-1px);
}

.lg-feed__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	color: var(--lg-muted);
	background: var(--lg-tint-2);
}

.lg-feed.is-topic .lg-feed__icon {
	color: var(--lg-accent);
	background: var(--lg-accent-soft);
}

.lg-feed__icon .lg-ico {
	width: 16px;
	height: 16px;
}

.lg-feed__text {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	gap: 2px;
	line-height: 1.35;
}

.lg-feed__type {
	align-self: flex-start;
	margin-bottom: 1px;
	padding: 1px 7px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 650;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--lg-muted);
	background: var(--lg-tint-2);
}

.lg-feed.is-topic .lg-feed__type {
	color: var(--lg-accent);
	background: var(--lg-accent-soft);
}

.lg-feed__title {
	font-weight: 650;
	font-size: 16px;
	overflow-wrap: anywhere;
}

.lg-feed__excerpt {
	font-size: 14px;
	color: var(--lg-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lg-feed__go {
	flex: 0 0 auto;
	color: var(--lg-faint);
	opacity: 0;
	transition: opacity .15s;
}

.lg-feed__go .lg-ico {
	width: 14px;
	height: 14px;
}

.lg-feed:hover .lg-feed__go {
	opacity: 1;
}

/* System messages */

.lg-sys {
	display: flex;
	justify-content: center;
	align-items: baseline;
	gap: 8px;
	margin: 10px 22px;
	font-size: 14px;
	color: var(--lg-muted);
}

.lg-sys__text {
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--lg-tint);
	animation: lg-rise .3s var(--lg-ease);
}

.lg-sys__time {
	font-size: 12.5px;
	color: var(--lg-faint);
}

/* Login buttons: black text */
.lg-shell .lg-btn--login,
.lg-shell .lg-btn--login:hover,
.lg-shell .lg-btn--login:focus,
.lg-shell .lg-btn--login:visited {
	color: #000 !important;
}

/* "X is in the chat", with group colour and group name */
.lg-sys--join .lg-sys__text {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.lg-sys__wave {
	display: inline-block;
	transform-origin: 70% 70%;
	animation: lg-wave 1.4s ease-in-out 1;
}

@keyframes lg-wave {
	0%, 100% { transform: rotate(0); }
	20%, 60% { transform: rotate(16deg); }
	40%, 80% { transform: rotate(-8deg); }
}

.lg-sys__name {
	font-weight: 650;
	color: var(--lg-text);
	border-radius: 4px;
}

.lg-sys__name:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lg-sys__group {
	padding: 0 8px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 650;
	letter-spacing: .02em;
	color: var(--lg-accent);
	background: var(--lg-accent-soft);
}

/* Skeleton */

.lg-skel {
	display: flex;
	gap: 12px;
	padding: 12px 22px;
}

.lg-skel__ava {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--lg-tint-2);
}

.lg-skel__lines {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding-top: 4px;
}

.lg-skel__lines span {
	height: 10px;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--lg-tint-2), var(--lg-tint), var(--lg-tint-2));
	background-size: 200% 100%;
	animation: lg-shimmer 1.4s ease-in-out infinite;
}

@keyframes lg-shimmer {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

/* Empty states */

.lg-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	padding: 40px 24px;
	text-align: center;
	color: var(--lg-muted);
}

.lg-empty--channel {
	min-height: 320px;
}

.lg-empty__art {
	--lg-room: var(--lg-accent);
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 14px;
	border-radius: 20px;
	color: var(--lg-room);
	background: color-mix(in srgb, var(--lg-room) 12%, transparent);
}

.lg-empty__art .lg-ico {
	width: 28px;
	height: 28px;
	stroke-width: 1.6;
}

.lg-shell .lg-empty h3 {
	margin: 0 0 4px;
	font-size: 19.5px;
	font-weight: 650;
	color: var(--lg-text);
}

.lg-shell .lg-empty p {
	margin: 0;
	max-width: 340px;
	font-size: 15.5px;
}

/* Jump to latest */

.lg-jump {
	position: absolute;
	left: 50%;
	bottom: 14px;
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 14px 0 11px !important;
	border-radius: 999px !important;
	font-size: 15px !important;
	font-weight: 600;
	color: var(--lg-text);
	background: var(--lg-bg) !important;
	border: 1px solid var(--lg-line) !important;
	box-shadow: var(--lg-shadow-pop);
	transform: translateX(-50%);
	animation: lg-rise .25s var(--lg-ease);
}

.lg-jump .lg-ico {
	width: 15px;
	height: 15px;
}

.lg-jump.has-new {
	color: #fff !important;
	background: var(--lg-accent) !important;
	border-color: transparent !important;
}

.lg-jump[hidden] {
	display: none !important;
}

/* Typing indicator */

.lg-typing {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 0;
	padding: 0 24px;
	overflow: hidden;
	font-size: 13.5px;
	color: var(--lg-muted);
	transition: height .2s var(--lg-ease);
}

.lg-typing.is-active {
	height: 22px;
}

.lg-typing__dots {
	display: inline-flex;
	gap: 3px;
}

.lg-typing__dots i {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	animation: lg-bounce 1.2s infinite ease-in-out;
}

.lg-typing__dots i:nth-child(2) { animation-delay: .15s; }
.lg-typing__dots i:nth-child(3) { animation-delay: .3s; }

@keyframes lg-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: .45; }
	30% { transform: translateY(-3px); opacity: 1; }
}

/* Composer --------------------------------------------------------------- */

.lg-composer {
	padding: 4px 18px 14px;
}

.lg-composer__inner {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lg-context,
.lg-attach {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 8px 12px;
	border-radius: 12px;
	background: var(--lg-tint);
	border: 1px solid var(--lg-line);
	color: var(--lg-muted);
	animation: lg-rise .2s var(--lg-ease);
}

.lg-context > .lg-ico {
	width: 16px;
	height: 16px;
	color: var(--lg-accent);
}

.lg-context__text,
.lg-attach__meta {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	line-height: 1.3;
}

.lg-context__text strong,
.lg-attach__meta strong {
	font-size: 14px;
	font-weight: 600;
	color: var(--lg-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lg-context__text small,
.lg-attach__meta small {
	font-size: 13.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lg-attach__thumb {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 9px;
	overflow: hidden;
	background: var(--lg-accent-soft);
	color: var(--lg-accent);
}

.lg-attach__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lg-box {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	padding: 6px;
	border-radius: 16px;
	background: var(--lg-bg);
	border: 1px solid var(--lg-tint-3);
	box-shadow: 0 1px 2px rgba(15, 18, 30, .04);
	transition: border-color .2s, box-shadow .2s;
}

.lg-box:focus-within {
	border-color: rgba(var(--lg-accent-rgb), .5);
	box-shadow: 0 0 0 4px rgba(var(--lg-accent-rgb), .1);
}

.lg-shell .lg-input {
	flex: 1;
	min-width: 0;
	min-height: 36px;
	max-height: 180px;
	margin: 0;
	padding: 8px 6px;
	border: 0;
	outline: 0;
	resize: none;
	background: transparent;
	box-shadow: none;
	color: var(--lg-text);
	font: inherit;
	font-size: 16.5px;
	line-height: 1.4;
}

.lg-shell .lg-input::placeholder {
	color: var(--lg-faint);
}

.lg-send {
	display: grid !important;
	place-items: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 11px !important;
	color: #b45309 !important;
	background: rgba(245, 179, 1, .18) !important;
	transition: background .2s, color .2s, transform .15s, box-shadow .2s;
}

.lg-send .lg-ico {
	width: 17px;
	height: 17px;
	margin: 1px 1px 0 0;
}

.lg-box.has-text .lg-send {
	color: #3b2a00 !important;
	background: linear-gradient(135deg, #fcd34d, #f5b301) !important;
	box-shadow: 0 6px 16px -6px rgba(245, 179, 1, .85);
}

.lg-box.has-text .lg-send:hover {
	background: linear-gradient(135deg, #fde68a, #f5b301) !important;
}

/* Attach button: yellow paperclip */
.lg-shell .lg-attach-btn {
	color: #d99a00;
}

.lg-shell .lg-attach-btn:hover {
	color: #b45309;
	background: rgba(245, 179, 1, .16);
}

.lg-send:active {
	transform: scale(.92);
}

.lg-box.is-sending .lg-send {
	opacity: .6;
}

.lg-hint {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 0 6px;
	font-size: 13px;
	color: var(--lg-faint);
}

.lg-hint kbd {
	padding: 0 4px;
	border-radius: 4px;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	color: inherit;
	background: rgba(37, 99, 235, .1);
	border: 1px solid rgba(37, 99, 235, .25);
}

/* Composer help text in blue */
.lg-hint > span:first-child {
	color: #2563eb;
}

.lg-counter {
	font-variant-numeric: tabular-nums;
}

.lg-counter.is-over {
	color: var(--lg-danger);
	font-weight: 600;
}

.lg-readonly {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 10px 16px;
	border-radius: 14px;
	font-size: 15.5px;
	color: var(--lg-muted);
	background: var(--lg-tint);
	border: 1px dashed var(--lg-tint-3);
}

.lg-drop {
	position: absolute;
	inset: 8px;
	z-index: 5;
	display: grid;
	place-items: center;
	border-radius: 14px;
	border: 2px dashed rgba(var(--lg-accent-rgb), .55);
	background: rgba(var(--lg-accent-rgb), .07);
	backdrop-filter: blur(2px);
	pointer-events: none;
}

.lg-drop__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--lg-accent);
}

.lg-drop__inner .lg-ico {
	width: 28px;
	height: 28px;
}

/* People panel ----------------------------------------------------------- */

.lg-people {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	border-left: 1px solid var(--lg-line);
	background: var(--lg-tint);
}

.lg-people__head {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 64px;
	padding: 0 12px 0 18px;
	border-bottom: 1px solid var(--lg-line);
	font-size: 12.5px;
	font-weight: 650;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--lg-faint);
	white-space: nowrap;
}

.lg-people__head > span:first-child {
	flex: 0 0 auto;
}

.lg-pill {
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 12.5px;
	letter-spacing: 0;
	color: var(--lg-text);
	background: var(--lg-tint-2);
}

.lg-people__close {
	margin-left: auto;
}

.lg-people__list {
	flex: 1;
	overflow-y: auto;
	padding: 10px 8px;
}

.lg-people__empty {
	margin: 0;
	padding: 10px;
	font-size: 15px;
	color: var(--lg-faint);
}

.lg-person {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 6px 10px;
	border-radius: 10px;
	transition: background .15s;
}

.lg-person:hover {
	background: var(--lg-tint-2);
}

.lg-person__ava {
	position: relative;
	flex: 0 0 auto;
}

.lg-person__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.lg-person__name {
	font-size: 15.5px;
	font-weight: 550;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lg-person__group {
	font-size: 13px;
	color: var(--lg-faint);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Layer: popovers, modals, toasts --------------------------------------- */

.lg-layer {
	position: absolute;
	inset: 0;
	z-index: 50;
	pointer-events: none;
}

.lg-layer > * {
	pointer-events: auto;
}

.lg-pop {
	position: absolute;
	min-width: 200px;
	border-radius: 14px;
	background: var(--lg-bg);
	border: 1px solid var(--lg-line);
	box-shadow: var(--lg-shadow-pop);
	animation: lg-pop .18s var(--lg-ease);
	overflow: hidden;
}

@keyframes lg-pop {
	from { opacity: 0; transform: translateY(4px) scale(.98); }
	to { opacity: 1; transform: none; }
}

@keyframes lg-rise {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

@keyframes lg-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

.lg-menu {
	display: flex;
	flex-direction: column;
	padding: 6px;
	min-width: 220px;
}

.lg-menu--flush {
	border-top: 1px solid var(--lg-line);
}

.lg-shell .lg-menu__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	border-radius: 9px;
	font-size: 15.5px;
	color: var(--lg-text);
	text-decoration: none;
}

.lg-menu__item .lg-ico {
	width: 16px;
	height: 16px;
	color: var(--lg-muted);
}

.lg-menu__item:hover {
	background: var(--lg-tint-2);
}

.lg-menu__item.is-danger,
.lg-menu__item.is-danger .lg-ico {
	color: var(--lg-danger);
}

.lg-menu__item.is-danger:hover {
	background: rgba(229, 72, 77, .09);
}

.lg-menu__sep {
	height: 1px;
	margin: 5px 4px;
	background: var(--lg-line);
}

.lg-menu__label {
	padding: 4px 10px 2px;
	font-size: 12px;
	font-weight: 650;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--lg-faint);
}

/* Profile card */

.lg-profile {
	width: 260px;
}

.lg-profile__cover {
	height: 54px;
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(var(--lg-accent-rgb), .55), transparent 60%),
		radial-gradient(120% 140% at 100% 0%, rgba(var(--lg-accent-rgb), .25), transparent 60%),
		var(--lg-accent-soft);
}

.lg-profile__main {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	margin-top: -32px;
	padding: 0 16px 14px;
	text-align: center;
}

.lg-profile__main .lg-ava--xl {
	border: 4px solid var(--lg-bg);
	margin-bottom: 4px;
}

.lg-profile__name {
	font-size: 17.5px;
	font-weight: 650;
}

.lg-profile__group {
	font-size: 14px;
	color: var(--lg-faint);
}

.lg-profile__actions {
	display: flex;
	gap: 6px;
	margin-top: 10px;
}

/* Emoji picker */

.lg-emoji {
	width: 320px;
}

.lg-emoji__tabs {
	display: flex;
	gap: 2px;
	padding: 6px;
	border-bottom: 1px solid var(--lg-line);
	background: var(--lg-tint);
}

.lg-emoji__tab {
	flex: 1;
	height: 32px;
	border-radius: 8px;
	font-size: 19.5px !important;
	text-align: center !important;
	filter: grayscale(.7);
	opacity: .7;
	transition: background .15s, filter .15s, opacity .15s;
}

.lg-emoji__tab:hover,
.lg-emoji__tab.is-active {
	filter: none;
	opacity: 1;
	background: var(--lg-bg);
}

.lg-emoji__tab.is-active {
	box-shadow: 0 0 0 1px var(--lg-line);
}

.lg-emoji__grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 2px;
	height: 240px;
	padding: 6px 8px 10px;
	overflow-y: auto;
	align-content: start;
}

.lg-emoji__label {
	grid-column: 1 / -1;
	padding: 4px 4px 2px;
	font-size: 12px;
	font-weight: 650;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--lg-faint);
}

.lg-emoji__btn {
	height: 34px;
	border-radius: 8px;
	font-size: 24px !important;
	line-height: 1;
	text-align: center !important;
	transition: background .12s, transform .12s;
}

.lg-emoji__btn:hover {
	background: var(--lg-tint-2);
	transform: scale(1.15);
}

/* Modal */

.lg-modal-wrap {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
	border-radius: var(--lg-radius);
	background: rgba(10, 12, 20, .32);
	backdrop-filter: blur(3px);
	animation: lg-fade .2s ease;
}

@keyframes lg-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.lg-modal {
	display: flex;
	flex-direction: column;
	width: min(460px, 100%);
	max-height: calc(100% - 20px);
	border-radius: 18px;
	background: var(--lg-bg);
	border: 1px solid var(--lg-line);
	box-shadow: var(--lg-shadow-pop);
	animation: lg-pop .22s var(--lg-ease);
}

.lg-modal--sm {
	width: min(380px, 100%);
}

.lg-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 14px 6px 20px;
}

.lg-shell .lg-modal__head h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 650;
	color: var(--lg-text);
}

.lg-modal__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 8px 20px 16px;
	overflow-y: auto;
}

.lg-shell .lg-modal__text {
	margin: 0;
	font-size: 15.5px;
	color: var(--lg-muted);
}

.lg-modal__foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	padding: 12px 20px 16px;
	border-top: 1px solid var(--lg-line);
}

.lg-modal__hint {
	margin-right: auto;
	font-size: 13.5px;
	color: var(--lg-faint);
}

.lg-shell .lg-field {
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--lg-tint-3);
	background: var(--lg-bg);
	color: var(--lg-text);
	font: inherit;
	font-size: 16px;
	box-shadow: none;
	outline: 0;
	transition: border-color .2s, box-shadow .2s;
}

.lg-shell .lg-field--area {
	height: auto;
	padding: 10px 12px;
	resize: vertical;
}

.lg-shell .lg-field:focus {
	border-color: rgba(var(--lg-accent-rgb), .5);
	box-shadow: 0 0 0 4px rgba(var(--lg-accent-rgb), .1);
}

.lg-label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--lg-muted);
}

.lg-picker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 5px;
	border-radius: 12px;
	border: 1px solid var(--lg-tint-3);
	transition: border-color .2s, box-shadow .2s;
}

.lg-picker:focus-within {
	border-color: rgba(var(--lg-accent-rgb), .5);
	box-shadow: 0 0 0 4px rgba(var(--lg-accent-rgb), .1);
}

.lg-shell .lg-picker .lg-field {
	flex: 1;
	min-width: 140px;
	height: 32px;
	border: 0;
	box-shadow: none;
	padding: 0 6px;
}

.lg-chips {
	display: contents;
}

.lg-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 4px 0 5px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 550;
	background: var(--lg-accent-soft);
	color: var(--lg-text);
	animation: lg-pop .15s var(--lg-ease);
}

.lg-chip button {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	color: var(--lg-muted);
}

.lg-chip button:hover {
	background: rgba(var(--lg-accent-rgb), .18);
	color: var(--lg-text);
}

.lg-chip .lg-ico {
	width: 13px;
	height: 13px;
}

.lg-results {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-height: 8px;
	max-height: 240px;
	overflow-y: auto;
}

.lg-results.is-loading {
	opacity: .6;
}

.lg-result {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 7px 10px;
	border-radius: 10px;
}

.lg-result:hover,
.lg-result:focus-visible {
	background: var(--lg-tint-2);
}

.lg-result__name {
	flex: 1;
	min-width: 0;
	font-weight: 550;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lg-result small {
	font-size: 13.5px;
	color: var(--lg-faint);
}

.lg-shell .lg-results__empty {
	margin: 0;
	padding: 8px 10px;
	font-size: 15px;
	color: var(--lg-faint);
}

.lg-ignored {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 40px;
}

.lg-ignored__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 4px 6px 8px;
	border-radius: 10px;
	background: var(--lg-tint);
}

.lg-ignored__row > span {
	flex: 1;
	font-weight: 550;
}

/* Buttons */

.lg-shell .lg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 38px;
	padding: 0 16px;
	border-radius: 10px;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, box-shadow .15s, transform .12s, opacity .15s;
}

.lg-shell .lg-btn:active {
	transform: scale(.97);
}

.lg-shell .lg-btn[disabled] {
	opacity: .45;
	cursor: not-allowed;
	transform: none;
}

.lg-shell .lg-btn .lg-ico {
	width: 15px;
	height: 15px;
}

.lg-shell .lg-btn--sm {
	height: 32px;
	padding: 0 12px;
	font-size: 15px;
}

.lg-shell .lg-btn--block {
	width: 100%;
}

.lg-shell .lg-btn--primary {
	color: #fff;
	background: var(--lg-accent);
	box-shadow: 0 6px 16px -8px rgba(var(--lg-accent-rgb), .9);
}

.lg-shell .lg-btn--primary:hover {
	background: rgba(var(--lg-accent-rgb), .9);
	color: #fff;
}

.lg-shell .lg-btn--ghost {
	color: var(--lg-text);
	background: var(--lg-tint-2);
}

.lg-shell .lg-btn--ghost:hover {
	background: var(--lg-tint-3);
}

.lg-shell .lg-btn--danger {
	color: #fff;
	background: var(--lg-danger);
}

.lg-shell .lg-btn--danger:hover {
	background: #d13b40;
}

/* Lightbox */

.lg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 40px;
	background: rgba(8, 10, 16, .86);
	backdrop-filter: blur(6px);
	cursor: zoom-out;
	animation: lg-fade .2s ease;
}

.lg-lightbox img {
	max-width: 100%;
	max-height: calc(100% - 60px);
	border-radius: 12px;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
	animation: lg-pop .25s var(--lg-ease);
}

.lg-lightbox__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, .85);
	font-size: 15px;
}

.lg-lightbox__bar .lg-iconbtn {
	color: #fff;
}

.lg-lightbox__bar .lg-iconbtn:hover {
	background: rgba(255, 255, 255, .12);
}

/* Toasts */

.lg-toasts {
	position: absolute;
	left: 50%;
	bottom: 96px;
	z-index: 60;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	transform: translateX(-50%);
	pointer-events: none;
}

.lg-toast {
	max-width: 420px;
	padding: 10px 16px;
	border-radius: 12px;
	font-size: 15.5px;
	font-weight: 500;
	color: #fff;
	background: rgba(20, 22, 30, .92);
	box-shadow: var(--lg-shadow-pop);
	animation: lg-rise .25s var(--lg-ease);
	transition: opacity .35s, transform .35s;
}

.lg-toast--error {
	background: var(--lg-danger);
}

.lg-toast.is-leaving {
	opacity: 0;
	transform: translateY(6px);
}

.lg-backdrop {
	display: none;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1100px) {
	.lg-app,
	.lg-app.is-people {
		grid-template-columns: 260px minmax(0, 1fr);
	}

	.lg-people {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 20;
		width: 270px;
		background: var(--lg-bg);
		box-shadow: var(--lg-shadow-pop);
		transform: translateX(105%);
		transition: transform .3s var(--lg-ease);
	}

	.lg-app.is-people-mobile .lg-people {
		transform: none;
	}

	.lg-app.is-people-mobile .lg-backdrop {
		display: block;
	}
}

@media (min-width: 1101px) {
	.lg-people__close {
		display: none !important;
	}
}

@media (max-width: 760px) {
	.lg-shell {
		height: calc(100vh - var(--lg-offset, 160px));
		min-height: 440px;
		font-size: 16px;
	}

	.lg-app,
	.lg-app.is-people {
		grid-template-columns: minmax(0, 1fr);
		border-radius: 14px;
	}

	.lg-only-mobile {
		display: inline-grid !important;
	}

	.lg-side {
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 20;
		width: min(300px, 86%);
		background: var(--lg-bg);
		box-shadow: var(--lg-shadow-pop);
		transform: translateX(-105%);
		transition: transform .3s var(--lg-ease);
	}

	.lg-app.is-side-open .lg-side {
		transform: none;
	}

	.lg-app.is-side-open .lg-backdrop {
		display: block;
	}

	.lg-backdrop {
		position: absolute;
		inset: 0;
		z-index: 15;
		background: rgba(10, 12, 20, .3);
		animation: lg-fade .2s ease;
	}

	.lg-head {
		padding: 10px 10px 10px 8px;
		gap: 8px;
	}

	.lg-head__icon {
		width: 34px;
		height: 34px;
	}

	.lg-msg {
		padding-left: 14px;
		padding-right: 14px;
	}

	.lg-msg__gutter {
		flex-basis: 34px;
		width: 34px;
	}

	.lg-msg__gutter .lg-ava--lg {
		width: 34px;
		height: 34px;
	}

	.lg-actions {
		right: 10px;
	}

	.lg-composer {
		padding: 4px 10px 10px;
	}

	.lg-hint > span:first-child {
		display: none;
	}

	.lg-announce {
		margin: 10px 10px 0;
	}

	.lg-emoji {
		width: 290px;
	}
}

@media (max-width: 1100px) {
	.lg-backdrop {
		position: absolute;
		inset: 0;
		z-index: 15;
		background: rgba(10, 12, 20, .3);
	}
}

@media (prefers-reduced-motion: reduce) {
	.lg-shell *,
	.lg-shell *::before,
	.lg-shell *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

/* Block (widget) ---------------------------------------------------------- */

.lg-shell.lg-shell--widget {
	height: var(--lg-height, 460px);
	min-height: 0;
	max-height: none;
	margin-bottom: 15px;
	font-size: 16px;
}

.lg-switch,
.lg-full-btn {
	display: none !important;
}

.lg-shell--widget .lg-full-btn {
	display: inline-grid !important;
}

.lg-badge--dot {
	min-width: 9px;
	width: 9px;
	height: 9px;
	padding: 0;
	top: 2px;
	right: 2px;
	box-shadow: 0 0 0 2px var(--lg-bg);
}

.lg-shell.is-compact .lg-app,
.lg-shell.is-compact .lg-app.is-people {
	grid-template-columns: minmax(0, 1fr) !important;
	border-radius: 14px;
}

.lg-shell.is-compact .lg-side {
	display: none !important;
}

.lg-shell.is-compact .lg-only-mobile {
	display: none !important;
}

.lg-shell.is-compact .lg-switch {
	display: inline-grid !important;
	margin-left: -6px;
}

.lg-shell.is-compact .lg-head {
	min-height: 54px;
	gap: 8px;
	padding: 8px 8px 8px 12px;
}

.lg-shell.is-compact .lg-head__text {
	cursor: pointer;
	flex: 0 1 auto;
}

.lg-shell.is-compact .lg-head__actions {
	margin-left: auto;
	gap: 0;
}

.lg-shell.is-compact .lg-head__icon {
	width: 32px;
	height: 32px;
	border-radius: 10px;
}

.lg-shell.is-compact .lg-head__icon .lg-ico {
	width: 16px;
	height: 16px;
}

.lg-shell.is-compact .lg-head__title {
	font-size: 17px;
}

.lg-shell.is-compact .lg-head__sub {
	font-size: 13px;
}

.lg-shell.is-compact .lg-people {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 20;
	width: min(260px, 86%);
	background: var(--lg-bg);
	box-shadow: var(--lg-shadow-pop);
	transform: translateX(105%);
	transition: transform .3s var(--lg-ease);
}

.lg-shell.is-compact .lg-app.is-people-mobile .lg-people {
	transform: none;
}

.lg-shell.is-compact .lg-people__head {
	min-height: 54px;
}

.lg-shell.is-compact .lg-people__close {
	display: inline-grid !important;
}

.lg-shell.is-compact .lg-app.is-people-mobile .lg-backdrop {
	display: block;
	position: absolute;
	inset: 0;
	z-index: 15;
	background: rgba(10, 12, 20, .3);
	animation: lg-fade .2s ease;
}

.lg-shell.is-compact .lg-announce {
	margin: 8px 10px 0;
	padding: 8px 6px 8px 10px;
	font-size: 15px;
}

.lg-shell.is-compact .lg-day {
	margin: 14px 12px 6px;
}

.lg-shell.is-compact .lg-msg {
	gap: 10px;
	padding-left: 12px;
	padding-right: 12px;
}

.lg-shell.is-compact .lg-msg__gutter {
	flex-basis: 30px;
	width: 30px;
}

.lg-shell.is-compact .lg-msg__gutter .lg-ava--lg {
	width: 30px;
	height: 30px;
}

.lg-shell.is-compact .lg-msg__ghost {
	font-size: 11px;
}

.lg-shell.is-compact .lg-actions {
	right: 8px;
}

.lg-shell.is-compact .lg-sys {
	margin: 8px 12px;
	flex-wrap: wrap;
}

.lg-shell.is-compact .lg-image img {
	max-height: 200px;
}

.lg-shell.is-compact .lg-composer {
	padding: 2px 10px 10px;
}

.lg-shell.is-compact .lg-hint > span:first-child {
	display: none;
}

.lg-shell.is-compact .lg-typing {
	padding: 0 14px;
}

.lg-shell.is-compact .lg-emoji {
	width: 262px;
}

.lg-shell.is-compact .lg-emoji__grid {
	grid-template-columns: repeat(7, 1fr);
	height: 210px;
}

.lg-shell.is-compact .lg-profile {
	width: 240px;
}

.lg-shell.is-compact .lg-toasts {
	bottom: 80px;
	width: calc(100% - 24px);
}

.lg-shell.is-compact .lg-toast {
	max-width: 100%;
	text-align: center;
}

.lg-menu--switcher {
	min-width: 230px;
	max-height: 320px;
	overflow-y: auto;
}

.lg-menu__room.is-active {
	background: var(--lg-tint-2);
	font-weight: 600;
}

.lg-menu__room .lg-item__icon .lg-ico {
	color: inherit;
}

.lg-menu__grow {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* IPS page tweaks */

.lgPage #ipsLayout_mainArea {
	padding-bottom: 0;
}
