/* Pasted × TailAdmin — layout bridges only */

html.dark,
html.dark body.pasted-theme-tailadmin {
	background-color: #101828;
}

body.pasted-theme-tailadmin {
	margin: 0;
	min-height: 100vh;
}

html:has(body.pasted-theme-tailadmin) {
	margin: 0;
}

[x-cloak] {
	display: none !important;
}

.pasted-theme-tailadmin .sidebar-header a {
	display: block;
	line-height: 0;
}

.pasted-theme-tailadmin .sidebar-header .logo img {
	height: 2rem;
	width: auto;
	max-width: 100%;
}

.pasted-theme-tailadmin .pasted-share-url-input {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pasted-theme-tailadmin .pasted-header-share {
	width: auto;
	max-width: 28rem;
}

@media (max-width: 1023px) {
	.pasted-theme-tailadmin .pasted-header-share {
		width: 100%;
		max-width: 100%;
	}

	.pasted-theme-tailadmin .pasted-header-share .pasted-share-url-input {
		max-width: 100%;
	}
}

.pasted-theme-tailadmin .pasted-header-share .copy-btn {
	background: transparent;
}

.pasted-theme-tailadmin .pasted-header-share .copy-btn:hover {
	background: rgba(152, 162, 179, 0.08);
}

html.dark .pasted-theme-tailadmin .pasted-header-share .copy-btn:hover {
	background: rgba(255, 255, 255, 0.04);
}

.pasted-theme-tailadmin .pasted-icon {
	flex-shrink: 0;
	display: block;
}

.pasted-theme-tailadmin .pasted-item-action-btn .pasted-icon,
.pasted-theme-tailadmin .pasted-item-action-btn svg {
	width: 1.125rem;
	height: 1.125rem;
}

.pasted-theme-tailadmin .pasted-activity-item .pasted-icon,
.pasted-theme-tailadmin .pasted-activity-item svg {
	width: 1.125rem;
	height: 1.125rem;
}

.pasted-theme-tailadmin #pasted-empty .pasted-icon,
.pasted-theme-tailadmin #pasted-empty svg {
	width: 1.75rem;
	height: 1.75rem;
}

/* Type badges */
.pasted-theme-tailadmin .pasted-type-badge--plain_text {
	background: rgba(152, 162, 179, 0.12);
	color: #98a2b3;
}

.pasted-theme-tailadmin .pasted-type-badge--rich_text {
	background: color-mix(in oklab, #fb6514 16%, transparent);
	color: #fd853a;
}

.pasted-theme-tailadmin .pasted-type-badge--code {
	background: color-mix(in oklab, #36bffa 18%, transparent);
	color: #7cd4fd;
}

.pasted-theme-tailadmin .pasted-type-badge--image {
	background: color-mix(in oklab, #12b76a 16%, transparent);
	color: #32d583;
}

.pasted-theme-tailadmin .pasted-session-title--empty {
	opacity: 0.55;
}

.pasted-theme-tailadmin .pasted-session-title {
	display: block;
	width: 100%;
	min-width: 0;
	resize: none;
	overflow: hidden;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	word-break: break-word;
	line-height: 1.2;
}

.pasted-theme-tailadmin .pasted-session-title--static {
	overflow: visible;
}

/* Masonry */
.pasted-theme-tailadmin .pasted-masonry {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.pasted-theme-tailadmin .pasted-masonry__col {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

@media (max-width: 767px) {
	.pasted-theme-tailadmin .pasted-masonry {
		flex-direction: column;
	}

	.pasted-theme-tailadmin .pasted-masonry__col:nth-child(n + 2) {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1279px) {
	.pasted-theme-tailadmin .pasted-masonry__col:nth-child(n + 3) {
		display: none;
	}
}

/* Session header spacing (top nav ↔ title ↔ grid) */
.pasted-theme-tailadmin .pasted-page-head {
	padding-top: 1.25rem;
	margin-bottom: 2rem;
}

@media (min-width: 1024px) {
	.pasted-theme-tailadmin .pasted-page-head {
		padding-top: 1.5rem;
		margin-bottom: 2.5rem;
	}
}

/* Sidebar account footer */
.pasted-theme-tailadmin .pasted-sidebar-footer {
	margin-left: -0.25rem;
	margin-right: -0.25rem;
}

.pasted-theme-tailadmin .pasted-sidebar-actions {
	margin-top: 2rem;
	margin-bottom: 1.5rem;
	overflow: visible;
}

.pasted-theme-tailadmin #pasted-new-session {
	display: inline-flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	border: 1px solid #d0d5dd;
	background: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	color: #344054;
	box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
	transition: background-color 0.15s;
}

.pasted-theme-tailadmin #pasted-new-session:hover {
	background: #f9fafb;
}

html.dark .pasted-theme-tailadmin #pasted-new-session {
	border-color: #344054;
	background: #1f2937;
	color: #98a2b3;
}

html.dark .pasted-theme-tailadmin #pasted-new-session:hover {
	background: rgba(255, 255, 255, 0.03);
}

/* Main + account settings shell */
.pasted-theme-tailadmin .pasted-main {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.pasted-theme-tailadmin .pasted-account-settings:not(.hidden) {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.pasted-theme-tailadmin .pasted-theme-options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.pasted-theme-tailadmin .pasted-theme-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.375rem;
	border-radius: 0.5rem;
	border: 1px solid #f2f4f7;
	padding: 0.625rem 2rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: #1d2939;
	background: transparent;
	transition: background-color 0.15s, border-color 0.15s;
}

.pasted-theme-tailadmin .pasted-theme-option:hover {
	background: #f9fafb;
}

.pasted-theme-tailadmin .pasted-theme-option.is-active {
	background: #f2f4f7;
	border-color: #e4e7ec;
}

html.dark .pasted-theme-tailadmin .pasted-theme-option {
	border-color: #1f2937;
	color: #d0d5dd;
}

html.dark .pasted-theme-tailadmin .pasted-theme-option:hover {
	background: rgba(255, 255, 255, 0.05);
}

html.dark .pasted-theme-tailadmin .pasted-theme-option.is-active {
	background: #1f2937;
	border-color: #344054;
}

.pasted-theme-tailadmin select.pasted-settings-select {
	min-width: 6.25rem;
	max-width: 100%;
	min-height: 2.5rem;
	line-height: 1.25;
	border-radius: 0.5rem;
	border: 1px solid #d0d5dd;
	background-color: #fff !important;
	padding: 0.5rem 2rem 0.5rem 0.875rem;
	font-size: 0.875rem;
	font-weight: 400;
	color: #344054 !important;
	-webkit-text-fill-color: #344054;
	box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
	cursor: pointer;
	appearance: none;
	color-scheme: light;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4.79163 8.02148L9.99996 13.2298L15.2083 8.02148' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.5rem center;
	background-size: 1.25rem;
}

.pasted-theme-tailadmin select.pasted-settings-select option {
	color: #101828;
	background: #fff;
}

.pasted-theme-tailadmin .pasted-settings-select--wide {
	min-width: 12rem;
}

html.dark .pasted-theme-tailadmin select.pasted-settings-select {
	border-color: #344054;
	background-color: #1f2937 !important;
	color: #e4e7ec !important;
	-webkit-text-fill-color: #e4e7ec;
	color-scheme: dark;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4.79163 8.02148L9.99996 13.2298L15.2083 8.02148' stroke='%2398a2b3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html.dark .pasted-theme-tailadmin select.pasted-settings-select option {
	color: #f2f4f7;
	background: #1f2937;
}

.pasted-theme-tailadmin .pasted-settings-dropdown {
	position: relative;
}

.pasted-theme-tailadmin .pasted-settings-dropdown__trigger {
	display: flex;
	min-width: 6.25rem;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	border-radius: 0.5rem;
	border: 1px solid #d0d5dd;
	background: #fff;
	padding: 0.5rem 0.75rem 0.5rem 0.875rem;
	font-size: 0.875rem;
	color: #344054;
	box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
}

.pasted-theme-tailadmin .pasted-settings-dropdown__trigger--wide {
	min-width: 12rem;
	max-width: 100%;
}

html.dark .pasted-theme-tailadmin .pasted-settings-dropdown__trigger {
	border-color: #344054;
	background: #1f2937;
	color: #d0d5dd;
}

.pasted-theme-tailadmin .pasted-settings-dropdown__menu {
	position: absolute;
	top: calc(100% + 0.25rem);
	right: 0;
	z-index: 200;
	min-width: 6rem;
	max-height: 16rem;
	overflow-y: auto;
	border-radius: 0.75rem;
	background: #fff;
	padding: 0.375rem;
	box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
}

.pasted-theme-tailadmin .pasted-settings-dropdown__menu:not(.hidden) {
	display: block;
}

.pasted-theme-tailadmin .pasted-settings-dropdown__menu--wide {
	min-width: 12rem;
	width: max-content;
	max-width: min(20rem, 90vw);
}

html.dark .pasted-theme-tailadmin .pasted-settings-dropdown__menu {
	background: #1f2937;
}

.pasted-theme-tailadmin .pasted-settings-dropdown__option {
	display: flex;
	width: 100%;
	align-items: center;
	border-radius: 0.5rem;
	padding: 0.5rem 0.375rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #344054;
	text-align: left;
}

.pasted-theme-tailadmin .pasted-settings-dropdown__option:hover {
	background: #f9fafb;
}

.pasted-theme-tailadmin .pasted-settings-dropdown__option.is-active {
	background: #f2f4f7;
}

html.dark .pasted-theme-tailadmin .pasted-settings-dropdown__option {
	color: #d0d5dd;
}

html.dark .pasted-theme-tailadmin .pasted-settings-dropdown__option:hover,
html.dark .pasted-theme-tailadmin .pasted-settings-dropdown__option.is-active {
	background: rgba(255, 255, 255, 0.1);
}

.pasted-theme-tailadmin .pasted-settings-switch {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	cursor: pointer;
	align-items: center;
}

.pasted-theme-tailadmin .pasted-settings-switch__track {
	display: block;
	height: 1.25rem;
	width: 2.25rem;
	border-radius: 9999px;
	background: #e4e7ec;
	transition: background-color 0.2s;
	pointer-events: none;
}

.pasted-theme-tailadmin .pasted-settings-switch__thumb {
	position: absolute;
	top: 0.125rem;
	left: 0.125rem;
	height: 1rem;
	width: 1rem;
	border-radius: 9999px;
	background: #fff;
	box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.06);
	transition: transform 0.2s linear;
	pointer-events: none;
}

.pasted-theme-tailadmin .pasted-settings-switch input:checked ~ .pasted-settings-switch__track {
	background: var(--color-brand-500, #465fff);
}

.pasted-theme-tailadmin .pasted-settings-switch input:checked ~ .pasted-settings-switch__thumb {
	transform: translateX(1rem);
}

html.dark .pasted-theme-tailadmin .pasted-settings-switch__track {
	background: rgba(255, 255, 255, 0.1);
}

.pasted-theme-tailadmin .pasted-profile-avatar-wrap,
.pasted-theme-tailadmin #pasted-profile-avatar-wrap,
.pasted-theme-tailadmin .pasted-profile-photo__preview {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 9999px;
}

.pasted-theme-tailadmin #pasted-profile-avatar-wrap {
	width: 4rem;
	height: 4rem;
}

.pasted-theme-tailadmin .pasted-profile-photo__preview:not(#pasted-profile-avatar-wrap) {
	width: 3rem;
	height: 3rem;
}

.pasted-theme-tailadmin .pasted-profile-photo__preview {
	border: 2px solid #e4e7ec;
	background: #f2f4f7;
}

html.dark .pasted-theme-tailadmin .pasted-profile-photo__preview {
	border-color: #344054;
	background: #1d2939;
}

.pasted-theme-tailadmin #pasted-profile-avatar,
.pasted-theme-tailadmin .pasted-profile-photo__preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pasted-theme-tailadmin .pasted-profile-photo__upload {
	display: inline-flex;
}

.pasted-theme-tailadmin .pasted-profile-photo__progress-track {
	height: 0.375rem;
	overflow: hidden;
	border-radius: 9999px;
	background: #e4e7ec;
}

html.dark .pasted-theme-tailadmin .pasted-profile-photo__progress-track {
	background: #344054;
}

.pasted-theme-tailadmin .pasted-profile-photo__progress-bar {
	height: 100%;
	border-radius: 9999px;
	background: var(--color-brand-500, #465fff);
	transition: width 0.15s ease;
}

.pasted-theme-tailadmin .pasted-profile-photo__status {
	margin-top: 0.5rem;
	font-size: 0.75rem;
	line-height: 1.25rem;
	color: #d92d20;
}

.pasted-theme-tailadmin .pasted-profile-photo__status.is-success {
	color: #039855;
}

html.dark .pasted-theme-tailadmin .pasted-profile-photo__status {
	color: #f97066;
}

html.dark .pasted-theme-tailadmin .pasted-profile-photo__status.is-success {
	color: #32d583;
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal.is-open {
	display: flex;
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(16, 24, 40, 0.55);
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 28rem;
	border-radius: 1rem;
	border: 1px solid #e4e7ec;
	background: #fff;
	padding: 1.25rem;
	box-shadow: 0 20px 48px rgba(16, 24, 40, 0.18);
}

html.dark .pasted-theme-tailadmin .pasted-avatar-crop-modal__panel {
	border-color: #344054;
	background: #101828;
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal__title {
	font-size: 1rem;
	font-weight: 600;
	color: #1d2939;
}

html.dark .pasted-theme-tailadmin .pasted-avatar-crop-modal__title {
	color: rgba(255, 255, 255, 0.9);
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal__hint {
	margin-top: 0.25rem;
	font-size: 0.75rem;
	color: #667085;
}

html.dark .pasted-theme-tailadmin .pasted-avatar-crop-modal__hint {
	color: #98a2b3;
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal__close {
	display: inline-flex;
	height: 2.25rem;
	width: 2.25rem;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 9999px;
	background: #f2f4f7;
	color: #667085;
	cursor: pointer;
}

html.dark .pasted-theme-tailadmin .pasted-avatar-crop-modal__close {
	background: #1d2939;
	color: #98a2b3;
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

@media (min-width: 640px) {
	.pasted-theme-tailadmin .pasted-avatar-crop-modal__body {
		flex-direction: row;
		align-items: center;
	}
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal__preview-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.pasted-theme-tailadmin .pasted-avatar-crop-modal__preview-col {
		align-items: flex-start;
	}
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal__preview-label {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #98a2b3;
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal__zoom-label {
	display: block;
	margin-top: 1rem;
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal__zoom-text {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: #475467;
}

html.dark .pasted-theme-tailadmin .pasted-avatar-crop-modal__zoom-text {
	color: #98a2b3;
}

.pasted-theme-tailadmin .pasted-avatar-crop__zoom {
	width: 100%;
	accent-color: var(--color-brand-500, #465fff);
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal__progress {
	margin-top: 1rem;
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal__progress-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	color: #667085;
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal__error {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	color: #d92d20;
}

html.dark .pasted-theme-tailadmin .pasted-avatar-crop-modal__error {
	color: #f97066;
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.pasted-theme-tailadmin .pasted-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pasted-theme-tailadmin .pasted-avatar-crop-modal.flex {
	display: flex;
}

.pasted-theme-tailadmin .pasted-avatar-crop__stage {
	position: relative;
	width: 280px;
	height: 280px;
	overflow: hidden;
	border-radius: 1rem;
	background: #101828;
	cursor: grab;
	touch-action: none;
	user-select: none;
}

.pasted-theme-tailadmin .pasted-avatar-crop__stage:active {
	cursor: grabbing;
}

.pasted-theme-tailadmin .pasted-avatar-crop__image {
	position: absolute;
	top: 0;
	left: 0;
	max-width: none;
	pointer-events: none;
}

.pasted-theme-tailadmin .pasted-avatar-crop__mask {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(circle 140px at center, transparent 139px, rgba(16, 24, 40, 0.6) 140px);
}

.pasted-theme-tailadmin .pasted-avatar-crop__preview-wrap {
	width: 4.5rem;
	height: 4.5rem;
	overflow: hidden;
	border-radius: 9999px;
	border: 2px solid #e4e7ec;
	background: #f2f4f7;
}

html.dark .pasted-theme-tailadmin .pasted-avatar-crop__preview-wrap {
	border-color: #344054;
	background: #1d2939;
}

.pasted-theme-tailadmin .pasted-avatar-crop__preview {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-width: 1280px) {
	.pasted-theme-tailadmin .pasted-settings-panel {
		max-width: 650px;
	}

	.pasted-theme-tailadmin .pasted-settings-aside {
		width: 250px;
		flex-shrink: 0;
	}
}

.pasted-theme-tailadmin .pasted-activity-toggle.is-disabled {
	opacity: 0.45;
}

.pasted-theme-tailadmin .pasted-activity-toggle.is-disabled:hover {
	opacity: 0.65;
}

.pasted-theme-tailadmin .pasted-activity-disabled {
	min-height: 12rem;
}

/* Auth — mobile: avoid below-the-fold forms on real devices (100vh centering + disabled social row) */
.pasted-theme-tailadmin.pasted-auth {
	min-height: 100vh;
	min-height: 100dvh;
}

.pasted-theme-tailadmin.pasted-auth .pasted-auth-shell {
	min-height: 100vh;
	min-height: 100dvh;
}

@media (max-width: 1023px) {
	.pasted-theme-tailadmin.pasted-auth .pasted-auth-layout {
		height: auto;
		min-height: 100vh;
		min-height: 100dvh;
		justify-content: flex-start;
	}

	.pasted-theme-tailadmin.pasted-auth .pasted-auth-layout .mx-auto.w-full.max-w-md.pt-10,
	.pasted-theme-tailadmin.pasted-auth .pasted-auth-layout .mx-auto.w-full.max-w-md.pt-5 {
		padding-top: 0.75rem;
	}

	.pasted-theme-tailadmin.pasted-auth .pasted-auth-layout .mx-auto.flex.w-full.max-w-md.flex-1.flex-col.justify-center {
		flex: none;
		justify-content: flex-start;
		padding-top: 0.5rem;
		padding-bottom: 5.5rem;
	}

	.pasted-theme-tailadmin.pasted-auth .pointer-events-none.opacity-50 {
		display: none;
	}
}

/* Paste target */
.pasted-theme-tailadmin .pasted-app-error {
	margin: 0 1rem 1rem;
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	border: 1px solid #fecdca;
	background: #fef3f2;
	color: #b42318;
	font-size: 0.875rem;
}

html.dark .pasted-theme-tailadmin .pasted-app-error {
	border-color: #912018;
	background: rgba(145, 32, 24, 0.2);
	color: #fda29b;
}

.pasted-theme-tailadmin .pasted-paste-target {
	padding-top: 0;
}

.pasted-theme-tailadmin #pasted-empty {
	margin-top: 3rem;
	padding: 4rem 1.5rem;
	width: 100%;
}

.pasted-theme-tailadmin .pasted-paste-target.is-dragover {
	outline: 2px dashed var(--color-brand-500, #465fff);
	outline-offset: 4px;
	border-radius: 1rem;
}

/* Cards */
.pasted-theme-tailadmin .pasted-item-card.is-highlighted .rounded-xl {
	box-shadow: 0 0 0 2px var(--color-brand-500, #465fff);
}

.pasted-theme-tailadmin .pasted-item-card__media,
.pasted-theme-tailadmin .pasted-item-card__media--image {
	cursor: pointer;
}

.pasted-theme-tailadmin .pasted-item-card__media--code,
.pasted-theme-tailadmin .pasted-item-card__media--rich-text {
	user-select: none;
}

.pasted-theme-tailadmin .pasted-item-card__media--image img {
	display: block;
	width: 100%;
	height: auto;
}

.pasted-theme-tailadmin .pasted-item-card__media--code {
	padding: 0.25rem;
}

.pasted-theme-tailadmin .pasted-code-block {
	display: flex;
	align-items: flex-start;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	background: #f9fafb !important;
	color: #344054;
	border: 1px solid #e4e7ec;
	border-radius: 0.5rem;
	-webkit-overflow-scrolling: touch;
}

.pasted-theme-tailadmin .pasted-code-block__gutter {
	flex-shrink: 0;
	padding: 1rem 0.625rem 1rem 1rem;
	border-right: 1px solid #e4e7ec;
	user-select: none;
	position: sticky;
	left: 0;
	background: #f9fafb;
}

.pasted-theme-tailadmin .pasted-code-block__gutter pre {
	margin: 0;
	padding: 0;
	font-size: 0.8125rem;
	line-height: 1.55;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
	color: #98a2b3;
	text-align: right;
	background: transparent;
}

.pasted-theme-tailadmin .pasted-code-block__pre {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 1rem 1rem 1rem 0.875rem;
	background: transparent !important;
	font-size: 0.8125rem;
	line-height: 1.55;
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
}

.pasted-theme-tailadmin .pasted-code-block__pre code {
	display: block;
	white-space: pre;
	word-break: normal;
}

.pasted-theme-tailadmin .pasted-item-card__media--code pre,
.pasted-theme-tailadmin .pasted-content-preview--code {
	margin: 0;
	background: #f9fafb !important;
	color: #344054;
	border: 1px solid #e4e7ec;
	border-radius: 0.5rem;
}

.pasted-theme-tailadmin .pasted-item-card__media--code .pasted-content-preview--code,
.pasted-theme-tailadmin .pasted-item-card__media--rich-text .pasted-content-preview--rich {
	margin: 0;
}

.pasted-theme-tailadmin .pasted-content-preview--rich.pasted-content-preview--plain-text {
	white-space: pre-wrap;
	word-break: break-word;
	line-height: 1.55;
}

.pasted-theme-tailadmin .pasted-content-preview--rich ul,
.pasted-theme-tailadmin .pasted-content-preview--rich ol {
	margin: 0.5rem 0;
	padding-left: 1.25rem;
}

.pasted-theme-tailadmin .pasted-content-preview--rich p {
	margin: 0 0 0.5rem;
}

.pasted-theme-tailadmin .pasted-content-preview--rich p:last-child {
	margin-bottom: 0;
}

.pasted-theme-tailadmin .pasted-content-preview--rich h1,
.pasted-theme-tailadmin .pasted-content-preview--rich h2,
.pasted-theme-tailadmin .pasted-content-preview--rich h3 {
	margin: 0 0 0.5rem;
	font-weight: 600;
}

/* Code tokens — light mode */
.pasted-theme-tailadmin .pasted-content-preview--code .token.comment,
.pasted-theme-tailadmin .pasted-content-preview--code .token.prolog,
.pasted-theme-tailadmin .pasted-item-modal__panel--code .token.comment,
.pasted-theme-tailadmin .pasted-item-modal__panel--code .token.prolog {
	color: #6a737d;
}

.pasted-theme-tailadmin .pasted-content-preview--code .token.punctuation,
.pasted-theme-tailadmin .pasted-item-modal__panel--code .token.punctuation {
	color: #344054;
}

.pasted-theme-tailadmin .pasted-content-preview--code .token.property,
.pasted-theme-tailadmin .pasted-content-preview--code .token.tag,
.pasted-theme-tailadmin .pasted-content-preview--code .token.constant,
.pasted-theme-tailadmin .pasted-item-modal__panel--code .token.property,
.pasted-theme-tailadmin .pasted-item-modal__panel--code .token.tag,
.pasted-theme-tailadmin .pasted-item-modal__panel--code .token.constant {
	color: #0070c1;
}

.pasted-theme-tailadmin .pasted-content-preview--code .token.keyword,
.pasted-theme-tailadmin .pasted-content-preview--code .token.atrule,
.pasted-theme-tailadmin .pasted-item-modal__panel--code .token.keyword,
.pasted-theme-tailadmin .pasted-item-modal__panel--code .token.atrule {
	color: #d73a49;
}

.pasted-theme-tailadmin .pasted-content-preview--code .token.string,
.pasted-theme-tailadmin .pasted-content-preview--code .token.char,
.pasted-theme-tailadmin .pasted-item-modal__panel--code .token.string,
.pasted-theme-tailadmin .pasted-item-modal__panel--code .token.char {
	color: #032f62;
}

.pasted-theme-tailadmin .pasted-content-preview--code .token.function,
.pasted-theme-tailadmin .pasted-content-preview--code .token.class-name,
.pasted-theme-tailadmin .pasted-item-modal__panel--code .token.function,
.pasted-theme-tailadmin .pasted-item-modal__panel--code .token.class-name {
	color: #6f42c1;
}

.pasted-theme-tailadmin .pasted-content-preview--code .token.operator,
.pasted-theme-tailadmin .pasted-item-modal__panel--code .token.operator {
	color: #344054;
}

/* Code blocks — dark mode */
html.dark .pasted-theme-tailadmin .pasted-code-block {
	background: #11142d !important;
	color: #e4e7ec;
	border-color: transparent;
}

html.dark .pasted-theme-tailadmin .pasted-code-block__gutter {
	border-right-color: rgba(255, 255, 255, 0.06);
	background: #11142d;
}

html.dark .pasted-theme-tailadmin .pasted-code-block__gutter pre {
	color: #475467;
}

html.dark .pasted-theme-tailadmin .pasted-item-card__media--code pre,
html.dark .pasted-theme-tailadmin .pasted-content-preview--code {
	background: #11142d !important;
	color: #e4e7ec;
	border-color: transparent;
}

html.dark .pasted-theme-tailadmin .pasted-content-preview--code .token.comment,
html.dark .pasted-theme-tailadmin .pasted-content-preview--code .token.prolog,
html.dark .pasted-theme-tailadmin .pasted-item-modal__panel--code .token.comment,
html.dark .pasted-theme-tailadmin .pasted-item-modal__panel--code .token.prolog {
	color: #637777;
}

html.dark .pasted-theme-tailadmin .pasted-content-preview--code .token.punctuation,
html.dark .pasted-theme-tailadmin .pasted-item-modal__panel--code .token.punctuation {
	color: #98a2b3;
}

html.dark .pasted-theme-tailadmin .pasted-content-preview--code .token.property,
html.dark .pasted-theme-tailadmin .pasted-content-preview--code .token.tag,
html.dark .pasted-theme-tailadmin .pasted-content-preview--code .token.constant,
html.dark .pasted-theme-tailadmin .pasted-item-modal__panel--code .token.property,
html.dark .pasted-theme-tailadmin .pasted-item-modal__panel--code .token.tag,
html.dark .pasted-theme-tailadmin .pasted-item-modal__panel--code .token.constant {
	color: #7fdbca;
}

html.dark .pasted-theme-tailadmin .pasted-content-preview--code .token.keyword,
html.dark .pasted-theme-tailadmin .pasted-content-preview--code .token.atrule,
html.dark .pasted-theme-tailadmin .pasted-item-modal__panel--code .token.keyword,
html.dark .pasted-theme-tailadmin .pasted-item-modal__panel--code .token.atrule {
	color: #c792ea;
}

html.dark .pasted-theme-tailadmin .pasted-content-preview--code .token.string,
html.dark .pasted-theme-tailadmin .pasted-content-preview--code .token.char,
html.dark .pasted-theme-tailadmin .pasted-item-modal__panel--code .token.string,
html.dark .pasted-theme-tailadmin .pasted-item-modal__panel--code .token.char {
	color: #ecc48d;
}

html.dark .pasted-theme-tailadmin .pasted-content-preview--code .token.function,
html.dark .pasted-theme-tailadmin .pasted-content-preview--code .token.class-name,
html.dark .pasted-theme-tailadmin .pasted-item-modal__panel--code .token.function,
html.dark .pasted-theme-tailadmin .pasted-item-modal__panel--code .token.class-name {
	color: #82aaff;
}

html.dark .pasted-theme-tailadmin .pasted-content-preview--code .token.operator,
html.dark .pasted-theme-tailadmin .pasted-item-modal__panel--code .token.operator {
	color: #89ddff;
}

.pasted-theme-tailadmin .pasted-item-card__media--code code[class*="language-"] {
	font-size: 0.8125rem;
	line-height: 1.55;
}

.pasted-theme-tailadmin .pasted-item-card__media--code .token,
.pasted-theme-tailadmin .pasted-item-modal__panel--code .token {
	text-shadow: none;
}

.pasted-theme-tailadmin .pasted-item-modal__panel--code .pasted-item-modal__body {
	background: transparent;
	padding: 1rem 1.25rem;
}

.pasted-theme-tailadmin .pasted-item-modal__panel--code #pasted-item-modal-body {
	background-color: transparent;
}

.pasted-theme-tailadmin .pasted-item-modal__panel--code pre,
.pasted-theme-tailadmin .pasted-item-modal__panel--code .pasted-content-preview--code,
.pasted-theme-tailadmin .pasted-item-modal__panel--code .pasted-code-block {
	margin: 0;
	background: #f9fafb !important;
	color: #344054;
	border: 1px solid #e4e7ec;
	border-radius: 0.5rem;
}

html.dark .pasted-theme-tailadmin .pasted-item-modal__panel--code pre,
html.dark .pasted-theme-tailadmin .pasted-item-modal__panel--code .pasted-content-preview--code,
html.dark .pasted-theme-tailadmin .pasted-item-modal__panel--code .pasted-code-block {
	background: #11142d !important;
	color: #e4e7ec;
	border-color: transparent;
}

.pasted-theme-tailadmin .pasted-item-modal__panel--code code[class*="language-"] {
	background: transparent;
	color: inherit;
}

.pasted-theme-tailadmin .pasted-item-card__media .pasted-content-preview--rich,
.pasted-theme-tailadmin .pasted-item-card__media .pasted-content-preview--code {
	max-height: 350px;
}

.pasted-theme-tailadmin .pasted-item-action-btn.is-copied {
	color: var(--color-success-600, #039855);
}

/* Activity timeline */
.pasted-theme-tailadmin .pasted-activity-list {
	padding-left: 0.25rem;
	padding-top: 0.5rem;
}

.pasted-theme-tailadmin .pasted-activity-item:hover h3 {
	color: var(--color-brand-500, #465fff);
}

.pasted-theme-tailadmin .pasted-activity-thumb {
	width: 2.5rem;
	height: 2.5rem;
	object-fit: cover;
	border-radius: 0.375rem;
}

.pasted-theme-tailadmin .pasted-activity-empty {
	padding: 0.5rem 0.75rem;
}

.pasted-theme-tailadmin .pasted-activity-timeline.hidden {
	display: none;
}

/* Activity drawer */
.pasted-theme-tailadmin .pasted-activity-backdrop {
	transition: opacity 0.2s ease;
}

.pasted-theme-tailadmin .pasted-activity-drawer {
	overflow-x: hidden;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

.pasted-theme-tailadmin #pasted-activity-list {
	width: 100%;
}

/* Search results — Basic Table 4 style */
.pasted-theme-tailadmin .pasted-search-table {
	table-layout: fixed;
	width: 100%;
}

.pasted-theme-tailadmin .pasted-search-col--session {
	width: 30%;
}

.pasted-theme-tailadmin .pasted-search-col--paste {
	width: 50%;
}

.pasted-theme-tailadmin .pasted-search-col--type {
	width: 20%;
}

.pasted-theme-tailadmin .pasted-search-table td,
.pasted-theme-tailadmin .pasted-search-table th {
	overflow: hidden;
}

.pasted-theme-tailadmin .pasted-search-table tbody tr.pasted-search-row:hover {
	background: rgba(70, 95, 255, 0.04);
}

.dark .pasted-theme-tailadmin .pasted-search-table tbody tr.pasted-search-row:hover {
	background: rgba(255, 255, 255, 0.03);
}

.pasted-theme-tailadmin .pasted-search-empty {
	padding: 1.5rem 0.5rem;
}

/* Modal */
.pasted-theme-tailadmin .pasted-modal-backdrop {
	background: rgba(16, 24, 40, 0.55);
	backdrop-filter: blur(4px);
}

html.dark .pasted-theme-tailadmin .pasted-modal-backdrop {
	background: rgba(0, 0, 0, 0.72);
}

/* Folder modal panel — max-w-[600px] is in style.css; this guards against purge gaps */
.pasted-theme-tailadmin #pasted-folder-modal-panel {
	width: 100%;
	max-width: 600px;
}

.pasted-theme-tailadmin .pasted-item-modal[hidden] {
	display: none !important;
}

.pasted-theme-tailadmin .pasted-item-modal__panel--image .pasted-item-modal__body {
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pasted-theme-tailadmin .pasted-item-modal__panel--image img {
	max-width: 100%;
	max-height: calc(90vh - 5rem);
	width: auto;
	height: auto;
	border-radius: 0.5rem;
}

.pasted-theme-tailadmin .pasted-item-modal__panel--code .pasted-item-modal__body,
.pasted-theme-tailadmin .pasted-item-modal__panel--text .pasted-item-modal__body {
	padding: 1rem 1.25rem;
}

.pasted-theme-tailadmin .pasted-item-modal__panel--code .pasted-content-preview--code,
.pasted-theme-tailadmin .pasted-item-modal__panel--text .pasted-content-preview--rich,
.pasted-theme-tailadmin .pasted-item-modal__panel--text .pasted-content-preview--plain {
	max-height: calc(90vh - 8rem);
}

.pasted-theme-tailadmin .pasted-item-modal__prose {
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* Tooltips */
.pasted-action-tooltip {
	position: fixed;
	z-index: 1000000;
	transform: translate(-50%, -100%);
	padding: 0.375rem 0.625rem;
	border-radius: 0.375rem;
	background: var(--color-gray-800, #1d2939);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 500;
	white-space: nowrap;
	pointer-events: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pasted-action-tooltip[hidden] {
	display: none !important;
}

/* Share page */
.pasted-theme-tailadmin.pasted-share .pasted-item-card__media pre,
.pasted-theme-tailadmin.pasted-share .pasted-item-card__media img {
	max-height: none;
}

/* Sidebar session rows + context menus (ChatGPT-style chat rows) */
.pasted-theme-tailadmin #pasted-sidebar .pasted-sidebar-block > ul,
.pasted-theme-tailadmin #pasted-pinned,
.pasted-theme-tailadmin #pasted-folders,
.pasted-theme-tailadmin #pasted-sessions,
.pasted-theme-tailadmin .pasted-folder-row__sessions {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 0;
	margin: 0;
	list-style: none;
}

.pasted-theme-tailadmin #pasted-sidebar .pasted-sidebar-block > ul {
	width: 100%;
}

.pasted-theme-tailadmin #pasted-sidebar .pasted-folder-row__sessions {
	margin-inline-start: 1.625rem;
	padding-inline-start: 0.625rem;
	border-inline-start: 1px solid #e4e7ec;
	width: calc(100% - 1.625rem);
}

html.dark .pasted-theme-tailadmin #pasted-sidebar .pasted-folder-row__sessions {
	border-inline-start-color: #344054;
}

.pasted-theme-tailadmin #pasted-sidebar .pasted-session-row {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	align-self: stretch;
	flex: 0 0 auto;
	border-radius: 0.5rem;
	list-style: none;
}

.pasted-theme-tailadmin #pasted-sidebar .pasted-session-row:hover {
	background: #f2f4f7;
}

.pasted-theme-tailadmin #pasted-sidebar .pasted-session-row.is-active {
	background: #ecf3ff;
}

html.dark .pasted-theme-tailadmin #pasted-sidebar .pasted-session-row:hover {
	background: rgba(255, 255, 255, 0.08);
}

html.dark .pasted-theme-tailadmin #pasted-sidebar .pasted-session-row.is-active {
	background: rgba(70, 95, 255, 0.15);
}

.pasted-theme-tailadmin .pasted-folder-row__head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0;
	min-width: 0;
	width: 100%;
}

.pasted-theme-tailadmin #pasted-sidebar .pasted-session-row > .pasted-chat-row__link {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	border: 0;
	padding: 0.5rem 0.625rem;
	border-radius: 0.5rem;
	background: transparent;
	font: inherit;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 400;
	color: #344054;
	text-align: left;
	text-decoration: none;
	cursor: grab;
	transition: color 0.15s ease, padding-right 0.15s ease;
}

.pasted-theme-tailadmin #pasted-sidebar .pasted-session-row > .pasted-chat-row__link:hover,
.pasted-theme-tailadmin #pasted-sidebar .pasted-session-row > .pasted-chat-row__link:focus-visible {
	background: transparent;
	color: #344054;
}

.pasted-theme-tailadmin #pasted-sidebar .pasted-session-row.is-active > .pasted-chat-row__link {
	color: #465fff;
}

html.dark .pasted-theme-tailadmin #pasted-sidebar .pasted-session-row > .pasted-chat-row__link {
	color: #ececec;
}

html.dark .pasted-theme-tailadmin #pasted-sidebar .pasted-session-row > .pasted-chat-row__link:hover,
html.dark .pasted-theme-tailadmin #pasted-sidebar .pasted-session-row > .pasted-chat-row__link:focus-visible {
	color: #ececec;
}

html.dark .pasted-theme-tailadmin #pasted-sidebar .pasted-session-row.is-active > .pasted-chat-row__link {
	color: #9cb9ff;
}

.pasted-theme-tailadmin .pasted-chat-row__link {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	border: 0;
	padding: 0.5rem 0.625rem;
	border-radius: 0.5rem;
	background: transparent;
	font: inherit;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 400;
	color: #344054;
	text-align: left;
	text-decoration: none;
	cursor: grab;
	transition: background-color 0.15s ease, color 0.15s ease, padding-right 0.15s ease;
}

.pasted-theme-tailadmin .pasted-chat-row__link:hover {
	background: #f2f4f7;
	color: #344054;
}

.pasted-theme-tailadmin .pasted-chat-row__link.is-active {
	background: #ecf3ff;
	color: #465fff;
}

html.dark .pasted-theme-tailadmin .pasted-chat-row__link {
	color: #ececec;
}

html.dark .pasted-theme-tailadmin .pasted-chat-row__link:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #ececec;
}

html.dark .pasted-theme-tailadmin .pasted-chat-row__link.is-active {
	background: rgba(70, 95, 255, 0.15);
	color: #9cb9ff;
}

.pasted-theme-tailadmin .pasted-chat-row__title {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pasted-theme-tailadmin .pasted-session-row.is-dragging .pasted-chat-row__link {
	opacity: 0.45;
	cursor: grabbing;
}

.pasted-theme-tailadmin .pasted-folder-row.is-drop-target > .pasted-folder-row__head .pasted-folder-row__toggle {
	background: rgba(70, 95, 255, 0.12);
	color: #465fff;
}

html.dark .pasted-theme-tailadmin .pasted-folder-row.is-drop-target > .pasted-folder-row__head .pasted-folder-row__toggle {
	background: rgba(70, 95, 255, 0.18);
	color: #9cb9ff;
}

.pasted-theme-tailadmin .pasted-sidebar-block--recent.is-drop-target,
.pasted-theme-tailadmin #pasted-sessions.is-drop-target {
	border-radius: 0.5rem;
	outline: 1px dashed rgba(70, 95, 255, 0.45);
	outline-offset: 2px;
}

.pasted-theme-tailadmin .pasted-session-row__menu-btn,
.pasted-theme-tailadmin .pasted-folder-row__menu-btn {
	position: absolute;
	right: 0.25rem;
	top: 50%;
	z-index: 2;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	margin-right: 0;
	border: 0;
	border-radius: 0.375rem;
	background: transparent;
	color: #667085;
	opacity: 0;
	transform: translateY(-50%);
	transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
	cursor: pointer;
}

.pasted-theme-tailadmin .pasted-session-row:hover .pasted-chat-row__link,
.pasted-theme-tailadmin .pasted-session-row:focus-within .pasted-chat-row__link {
	padding-right: 2rem;
}

.pasted-theme-tailadmin #pasted-sidebar .pasted-session-row.is-menu-open {
	background: #f2f4f7;
}

html.dark .pasted-theme-tailadmin #pasted-sidebar .pasted-session-row.is-menu-open {
	background: rgba(255, 255, 255, 0.08);
}

.pasted-theme-tailadmin .pasted-item-drag-handle {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border: 0;
	border-radius: 0.375rem;
	background: transparent;
	color: #98a2b3;
	cursor: grab;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.pasted-theme-tailadmin .pasted-item-drag-handle:hover {
	background: #f2f4f7;
	color: #667085;
}

html.dark .pasted-theme-tailadmin .pasted-item-drag-handle {
	color: #667085;
}

html.dark .pasted-theme-tailadmin .pasted-item-drag-handle:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #98a2b3;
}

.pasted-theme-tailadmin .pasted-items--reorder-active .pasted-item-card {
	position: relative;
}

.pasted-theme-tailadmin .pasted-item-card {
	position: relative;
}

.pasted-theme-tailadmin .pasted-item-card.is-pending {
	pointer-events: none;
}

.pasted-theme-tailadmin .pasted-item-card__media--pending {
	position: relative;
	min-height: 7rem;
	overflow: hidden;
}

.pasted-theme-tailadmin .pasted-item-pending__preview {
	display: block;
	width: 100%;
	height: auto;
	opacity: 0.45;
	filter: blur(1px);
	transform: scale(1.02);
}

.pasted-theme-tailadmin .pasted-item-pending__text-preview {
	margin: 0;
	opacity: 0.45;
	white-space: pre-wrap;
	word-break: break-word;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #667085;
}

html.dark .pasted-theme-tailadmin .pasted-item-pending__text-preview {
	color: #98a2b3;
}

.pasted-theme-tailadmin .pasted-item-pending__placeholder {
	min-height: 6rem;
	border-radius: 0.5rem;
	background: linear-gradient(110deg, #f2f4f7 8%, #e4e7ec 18%, #f2f4f7 33%);
	background-size: 200% 100%;
	animation: pasted-pending-shimmer 1.4s linear infinite;
}

html.dark .pasted-theme-tailadmin .pasted-item-pending__placeholder {
	background: linear-gradient(110deg, #1d2939 8%, #344054 18%, #1d2939 33%);
	background-size: 200% 100%;
}

.pasted-theme-tailadmin .pasted-item-pending__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(2px);
}

html.dark .pasted-theme-tailadmin .pasted-item-pending__overlay {
	background: rgba(16, 24, 40, 0.72);
}

.pasted-theme-tailadmin .pasted-item-card.is-pending-error .pasted-item-pending__overlay {
	background: rgba(254, 243, 242, 0.92);
}

html.dark .pasted-theme-tailadmin .pasted-item-card.is-pending-error .pasted-item-pending__overlay {
	background: rgba(69, 10, 10, 0.85);
}

.pasted-theme-tailadmin .pasted-item-pending__spinner {
	width: 1.5rem;
	height: 1.5rem;
	border: 2px solid #e4e7ec;
	border-top-color: var(--color-brand-500, #465fff);
	border-radius: 9999px;
	animation: pasted-pending-spin 0.7s linear infinite;
}

html.dark .pasted-theme-tailadmin .pasted-item-pending__spinner {
	border-color: #344054;
	border-top-color: var(--color-brand-400, #7592ff);
}

.pasted-theme-tailadmin .pasted-item-pending__progress-track {
	width: min(100%, 12rem);
	height: 0.375rem;
	overflow: hidden;
	border-radius: 9999px;
	background: #e4e7ec;
}

html.dark .pasted-theme-tailadmin .pasted-item-pending__progress-track {
	background: #344054;
}

.pasted-theme-tailadmin .pasted-item-pending__progress-track.is-indeterminate .pasted-item-pending__progress-bar {
	width: 35% !important;
	animation: pasted-pending-indeterminate 1.2s ease-in-out infinite;
}

.pasted-theme-tailadmin .pasted-item-pending__progress-bar {
	height: 100%;
	border-radius: 9999px;
	background: var(--color-brand-500, #465fff);
	transition: width 0.15s ease;
}

.pasted-theme-tailadmin .pasted-item-pending__label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: #475467;
}

html.dark .pasted-theme-tailadmin .pasted-item-pending__label {
	color: #d0d5dd;
}

.pasted-theme-tailadmin .pasted-item-card.is-pending-error .pasted-item-pending__label {
	color: #d92d20;
}

html.dark .pasted-theme-tailadmin .pasted-item-card.is-pending-error .pasted-item-pending__label {
	color: #f97066;
}

.pasted-theme-tailadmin .pasted-item-card__media--pending .pasted-content-preview {
	opacity: 0.45;
}

@keyframes pasted-pending-spin {
	to { transform: rotate(360deg); }
}

@keyframes pasted-pending-shimmer {
	to { background-position-x: -200%; }
}

@keyframes pasted-pending-indeterminate {
	0% { transform: translateX(-120%); }
	100% { transform: translateX(320%); }
}

.pasted-theme-tailadmin .pasted-item-card.drop-before::before,
.pasted-theme-tailadmin .pasted-item-card.drop-after::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 3px;
	border-radius: 999px;
	background: #465fff;
	box-shadow: 0 0 0 1px rgba(70, 95, 255, 0.35);
	pointer-events: none;
	z-index: 3;
}

.pasted-theme-tailadmin .pasted-item-card.drop-before::before {
	top: -0.5rem;
}

.pasted-theme-tailadmin .pasted-item-card.drop-after::after {
	bottom: -0.5rem;
}

html.dark .pasted-theme-tailadmin .pasted-item-card.drop-before::before,
html.dark .pasted-theme-tailadmin .pasted-item-card.drop-after::after {
	background: #9cb9ff;
	box-shadow: 0 0 0 1px rgba(156, 185, 255, 0.35);
}

.pasted-theme-tailadmin .pasted-item-card.is-dragging {
	opacity: 0.45;
}

.pasted-theme-tailadmin .pasted-session-row:hover .pasted-chat-row__title,
.pasted-theme-tailadmin .pasted-session-row:focus-within .pasted-chat-row__title {
	-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent);
	mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent);
}

.pasted-theme-tailadmin .pasted-folder-row__toggle {
	flex: 1;
	min-width: 0;
	width: 100%;
}

.pasted-theme-tailadmin .pasted-session-row:hover .pasted-session-row__menu-btn,
.pasted-theme-tailadmin .pasted-session-row:focus-within .pasted-session-row__menu-btn,
.pasted-theme-tailadmin .pasted-folder-row__head:hover .pasted-folder-row__menu-btn,
.pasted-theme-tailadmin .pasted-folder-row__head:focus-within .pasted-folder-row__menu-btn,
.pasted-theme-tailadmin .pasted-session-row__menu-btn:focus,
.pasted-theme-tailadmin .pasted-folder-row__menu-btn:focus {
	opacity: 1;
}

.pasted-theme-tailadmin .pasted-session-row__menu-btn:hover,
.pasted-theme-tailadmin .pasted-folder-row__menu-btn:hover {
	background: #f2f4f7;
	color: #344054;
}

html.dark .pasted-theme-tailadmin .pasted-session-row__menu-btn,
html.dark .pasted-theme-tailadmin .pasted-folder-row__menu-btn {
	color: #98a2b3;
}

html.dark .pasted-theme-tailadmin .pasted-session-row__menu-btn:hover,
html.dark .pasted-theme-tailadmin .pasted-folder-row__menu-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #e4e7ec;
}

.pasted-theme-tailadmin .pasted-folder-row__sessions.hidden {
	display: none;
}

.pasted-context-menu {
	position: fixed;
	z-index: 1000001;
	min-width: 12.5rem;
	padding: 0.375rem;
	border-radius: 0.75rem;
	border: 1px solid #344054;
	background: #2f2f2f;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	color: #ececec;
}

.pasted-context-menu--sub {
	position: absolute;
	top: 0;
	left: calc(100% + 0.25rem);
	min-width: 11rem;
}

.pasted-context-menu__group--submenu {
	position: relative;
}

.pasted-context-menu__item {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 0.625rem;
	padding: 0.5rem 0.625rem;
	border: 0;
	border-radius: 0.5rem;
	background: transparent;
	color: inherit;
	font-size: 0.875rem;
	line-height: 1.25rem;
	text-align: left;
	cursor: pointer;
}

.pasted-context-menu__item:hover,
.pasted-context-menu__item:focus {
	background: rgba(255, 255, 255, 0.08);
	outline: none;
}

.pasted-context-menu__icon {
	display: inline-flex;
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	opacity: 0.9;
}

.pasted-context-menu__icon svg {
	width: 1rem;
	height: 1rem;
}

.pasted-context-menu__label {
	flex: 1;
	min-width: 0;
}

.pasted-context-menu__chevron {
	display: inline-flex;
	opacity: 0.7;
}

.pasted-context-menu__divider {
	height: 1px;
	margin: 0.375rem 0.5rem;
	background: rgba(255, 255, 255, 0.12);
}

.pasted-context-menu__item--danger,
.pasted-context-menu__item--danger .pasted-context-menu__icon {
	color: #f97066;
}

.pasted-theme-tailadmin #pasted-session-view.is-dragover .pasted-paste-target,
.pasted-theme-tailadmin .pasted-paste-target.is-dragover {
	outline: 2px dashed rgba(70, 95, 255, 0.45);
	outline-offset: 4px;
}

.pasted-paste-toast {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	z-index: 10050;
	max-width: min(90vw, 22rem);
	padding: 0.625rem 1rem;
	border-radius: 0.5rem;
	background: #1d2939;
	color: #f9fafb;
	font-size: 0.8125rem;
	line-height: 1.4;
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.24);
	transform: translateX(-50%);
	pointer-events: none;
}

.pasted-paste-toast[hidden] {
	display: none;
}

html.dark .pasted-paste-toast {
	background: #344054;
}

/* App shell — dynamic viewport height for mobile browsers */
.pasted-theme-tailadmin .pasted-page-shell {
	min-height: 100dvh;
}

/* Empty state — desktop vs mobile hints */
.pasted-theme-tailadmin .pasted-empty-hint--mobile {
	display: none;
}

@media (max-width: 1279px) {
	.pasted-theme-tailadmin .pasted-empty-hint--desktop {
		display: none;
	}

	.pasted-theme-tailadmin .pasted-empty-hint--mobile {
		display: block;
	}
}

/* Mobile layout — prevent cards/code from widening the viewport */
@media (max-width: 1279px) {
	.pasted-theme-tailadmin .pasted-page-shell,
	.pasted-theme-tailadmin .pasted-main,
	.pasted-theme-tailadmin .pasted-session-shell,
	.pasted-theme-tailadmin .pasted-paste-target,
	.pasted-theme-tailadmin .pasted-items,
	.pasted-theme-tailadmin .pasted-masonry,
	.pasted-theme-tailadmin .pasted-masonry__col,
	.pasted-theme-tailadmin .pasted-item-card,
	.pasted-theme-tailadmin .pasted-item-card .rounded-xl {
		max-width: 100%;
		min-width: 0;
	}

	.pasted-theme-tailadmin .pasted-page-shell,
	.pasted-theme-tailadmin .pasted-main {
		overflow-x: clip;
	}

	.pasted-theme-tailadmin .pasted-item-card .rounded-xl {
		overflow: hidden;
	}

	.pasted-theme-tailadmin .pasted-item-card__head,
	.pasted-theme-tailadmin .pasted-item-card__head-main {
		min-width: 0;
	}

	.pasted-theme-tailadmin .pasted-item-card__media,
	.pasted-theme-tailadmin .pasted-item-card__media--code,
	.pasted-theme-tailadmin .pasted-item-card__media--rich-text {
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.pasted-theme-tailadmin .pasted-code-block,
	.pasted-theme-tailadmin .pasted-item-card__media--code pre,
	.pasted-theme-tailadmin .pasted-content-preview--code,
	.pasted-theme-tailadmin .pasted-content-preview--rich {
		max-width: 100%;
	}

	.pasted-theme-tailadmin .pasted-code-block pre {
		overflow-x: auto;
		overflow-y: visible;
	}
}

.pasted-theme-tailadmin.pasted-share .pasted-main--share {
	overflow-x: hidden;
}

/* Clipboard permission prompt */
.pasted-theme-tailadmin .pasted-clipboard-permission {
	position: fixed;
	inset: 0;
	z-index: 10060;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 1rem;
	padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
	background: rgba(16, 24, 40, 0.45);
	backdrop-filter: blur(2px);
}

.pasted-theme-tailadmin .pasted-clipboard-permission.hidden,
.pasted-theme-tailadmin .pasted-clipboard-permission[hidden] {
	display: none;
}

.pasted-theme-tailadmin .pasted-clipboard-permission__panel {
	width: 100%;
	max-width: 24rem;
	padding: 1.25rem;
	border: 1px solid #e4e7ec;
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16);
}

html.dark .pasted-theme-tailadmin .pasted-clipboard-permission__panel {
	border-color: #344054;
	background: #1d2939;
}

.pasted-theme-tailadmin .pasted-clipboard-permission__title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	color: #101828;
}

html.dark .pasted-theme-tailadmin .pasted-clipboard-permission__title {
	color: #f9fafb;
}

.pasted-theme-tailadmin .pasted-clipboard-permission__text {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #475467;
}

html.dark .pasted-theme-tailadmin .pasted-clipboard-permission__text {
	color: #98a2b3;
}

.pasted-theme-tailadmin .pasted-clipboard-permission__actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.pasted-theme-tailadmin .pasted-clipboard-permission__allow {
	width: 100%;
	justify-content: center;
}

.pasted-theme-tailadmin .pasted-clipboard-permission__cancel {
	width: 100%;
	padding: 0.625rem;
	border: 0;
	border-radius: 0.5rem;
	background: #f2f4f7;
	color: #344054;
	font-size: 0.875rem;
	font-weight: 500;
}

html.dark .pasted-theme-tailadmin .pasted-clipboard-permission__cancel {
	background: rgba(255, 255, 255, 0.08);
	color: #e4e7ec;
}

@media (min-width: 640px) {
	.pasted-theme-tailadmin .pasted-clipboard-permission {
		align-items: center;
		padding-bottom: 1rem;
	}
}

/* Mobile add bar — TailAdmin outline/primary buttons, fixed dock */
.pasted-theme-tailadmin .pasted-mobile-add-bar {
	padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.pasted-theme-tailadmin .pasted-mobile-add-bar.hidden,
.pasted-theme-tailadmin .pasted-mobile-add-bar[hidden] {
	display: none;
}

@media (min-width: 1280px) {
	.pasted-theme-tailadmin .pasted-mobile-add-bar {
		display: none !important;
	}
}

@media (max-width: 1279px) {
	.pasted-theme-tailadmin .pasted-session-shell > .mx-auto {
		padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
	}

	.pasted-paste-toast {
		bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
	}
}

/* Item cards — touch-friendly on mobile */
@media (max-width: 1279px) {
	.pasted-theme-tailadmin .pasted-item-drag-handle {
		display: none;
	}
}

@media (max-width: 767px) {
	.pasted-theme-tailadmin .pasted-item-action-btn {
		width: 2.75rem;
		height: 2.75rem;
	}
}
