
.tls-file-app [hidden] {
	display: none !important;
}


.tls-file-app,
.tls-file-app * {
	box-sizing: border-box;
}

.tls-file-app {
	--file-primary: #2563eb;
	--file-primary-dark: #1d4ed8;
	--file-soft: #eff6ff;
	--file-dark: #101828;
	--file-text: #475467;
	--file-muted: #667085;
	--file-border: #e4e7ec;
	width: 100%;
	min-height: 80vh;
	padding: 72px 22px 96px;
	background:
		radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.085), transparent 31%),
		#f8fafc;
	color: var(--file-dark);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	-webkit-font-smoothing: auto;
	text-rendering: auto;
}

.tls-file-shell {
	width: min(100%, 1280px);
	margin: 0 auto;
}

.tls-file-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 34px;
}

.tls-file-heading {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	min-width: 0;
}

.tls-file-hero-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	border: 1px solid #b2ccff;
	border-radius: 18px;
	background: #eff6ff;
	color: #2563eb;
	box-shadow: 0 12px 28px rgba(37, 99, 235, 0.11);
}

.tls-file-app[data-tool*="image"] .tls-file-hero-icon,
.tls-file-app[data-tool="crop-rotate-image"] .tls-file-hero-icon {
	border-color: #fbcfe8;
	background: #fdf2f8;
	color: #db2777;
	box-shadow: 0 12px 28px rgba(219, 39, 119, 0.09);
}

.tls-file-hero-icon svg {
	width: 35px;
	height: 35px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tls-file-kicker {
	display: block;
	margin: 2px 0 8px;
	color: var(--file-primary);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tls-file-header h1 {
	margin: 0;
	color: var(--file-dark);
	font-size: clamp(36px, 4.7vw, 54px);
	font-weight: 700;
	letter-spacing: -0.043em;
	line-height: 1.08;
}

.tls-file-header p {
	max-width: 790px;
	margin: 13px 0 0;
	color: var(--file-text);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.65;
}

.tls-file-trust {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	padding: 10px 13px;
	border: 1px solid #d1fadf;
	border-radius: 999px;
	background: #ecfdf3;
	color: #027a48;
	font-size: 11px;
	font-weight: 600;
}

.tls-file-trust svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tls-file-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.72fr);
	gap: 18px;
	align-items: start;
}

.tls-file-grid-single {
	grid-template-columns: minmax(0, 1fr);
}

.tls-file-card {
	min-width: 0;
	padding: 22px;
	border: 1px solid var(--file-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 9px 28px rgba(16, 24, 40, 0.045);
}

.tls-file-sticky {
	position: sticky;
	top: 92px;
}

.tls-file-card-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 18px;
}

.tls-file-card-heading > div > span {
	display: block;
	margin-bottom: 4px;
	color: var(--file-primary);
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.tls-file-card-heading h2,
.tls-file-card-heading h3 {
	margin: 0;
	color: #101828;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.012em;
	line-height: 1.35;
}

.tls-dropzone {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 210px;
	padding: 24px;
	border: 1.5px dashed #9dbaf7;
	border-radius: 15px;
	background: linear-gradient(180deg, #f8fbff, #f3f7ff);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.tls-dropzone:hover,
.tls-dropzone.is-dragging {
	border-color: #2563eb;
	background: #eff6ff;
}

.tls-dropzone.is-dragging {
	transform: scale(1.005);
}

.tls-dropzone input {
	display: none;
}

.tls-dropzone-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin-bottom: 14px;
	border: 1px solid #b2ccff;
	border-radius: 14px;
	background: #fff;
	color: #2563eb;
}

.tls-dropzone-icon svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tls-dropzone strong,
.tls-dropzone span {
	display: block;
}

.tls-dropzone strong {
	color: #101828;
	font-size: 14px;
	font-weight: 600;
}

.tls-dropzone span {
	margin-top: 6px;
	color: #667085;
	font-size: 11px;
	line-height: 1.5;
}

.tls-file-list {
	display: grid;
	gap: 10px;
	margin-top: 15px;
}

.tls-file-item {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 11px;
	border: 1px solid #e4e7ec;
	border-radius: 12px;
	background: #f8fafc;
}

.tls-file-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	overflow: hidden;
	border: 1px solid #e4e7ec;
	border-radius: 10px;
	background: #fff;
	color: #667085;
}

.tls-file-thumb img,
.tls-file-thumb canvas {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tls-file-thumb svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
}

.tls-file-copy {
	min-width: 0;
}

.tls-file-copy strong,
.tls-file-copy span {
	display: block;
}

.tls-file-copy strong {
	overflow: hidden;
	color: #101828;
	font-size: 12px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tls-file-copy span {
	margin-top: 4px;
	color: #667085;
	font-size: 10px;
	line-height: 1.45;
}

.tls-file-item-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
}

.tls-mini-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 31px;
	height: 31px;
	padding: 0 8px !important;
	border: 1px solid #d0d5dd !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #475467 !important;
	font-family: inherit;
	font-size: 10px;
	font-weight: 600;
	cursor: pointer;
}

.tls-mini-button:hover,
.tls-mini-button:focus {
	border-color: #84adff !important;
	background: #eff6ff !important;
	color: #1d4ed8 !important;
}

.tls-mini-button.is-danger {
	border-color: #fecdca !important;
	background: #fff5f4 !important;
	color: #b42318 !important;
}

.tls-file-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 13px;
}

.tls-file-field {
	display: grid;
	gap: 7px;
	min-width: 0;
}

.tls-file-field-full {
	grid-column: 1 / -1;
}

.tls-file-field > span {
	color: #344054;
	font-size: 10.5px;
	font-weight: 600;
}

.tls-file-field input,
.tls-file-field select,
.tls-file-field textarea {
	width: 100%;
	border: 1px solid #d0d5dd !important;
	border-radius: 9px !important;
	outline: 0 !important;
	background: #fff !important;
	color: #101828 !important;
	font-family: inherit;
	font-size: 12.5px !important;
	font-weight: 400 !important;
	box-shadow: none !important;
}

.tls-file-field input,
.tls-file-field select {
	height: 44px;
	padding: 0 11px !important;
}

.tls-file-field textarea {
	min-height: 80px;
	padding: 11px !important;
	line-height: 1.5;
	resize: vertical;
}

.tls-file-field input:focus,
.tls-file-field select:focus,
.tls-file-field textarea:focus {
	border-color: #84adff !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09) !important;
}

.tls-file-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 13px;
}

.tls-file-check {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 9px 10px;
	border: 1px solid #e4e7ec;
	border-radius: 9px;
	background: #f8fafc;
	color: #475467;
	font-size: 10.5px;
	font-weight: 500;
}

.tls-file-check input {
	width: 15px;
	height: 15px;
	margin: 0;
}

.tls-file-note {
	margin-top: 13px;
	padding: 11px 12px;
	border-left: 3px solid #2563eb;
	background: #f8fafc;
	color: #475467;
	font-size: 10.5px;
	line-height: 1.6;
}

.tls-file-note.is-warning {
	border-left-color: #dc6803;
	background: #fffaeb;
	color: #7a2e0e;
}

.tls-file-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 9px;
	margin-top: 18px;
}

.tls-file-button,
.tls-file-primary,
.tls-file-danger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 14px !important;
	border-radius: 9px !important;
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 600;
	cursor: pointer;
}

.tls-file-button {
	border: 1px solid #d0d5dd !important;
	background: #fff !important;
	color: #344054 !important;
}

.tls-file-primary {
	border: 1px solid #2563eb !important;
	background: #2563eb !important;
	color: #fff !important;
}

.tls-file-primary:hover,
.tls-file-primary:focus {
	border-color: #1d4ed8 !important;
	background: #1d4ed8 !important;
	color: #fff !important;
}

.tls-file-danger {
	border: 1px solid #fecdca !important;
	background: #fff5f4 !important;
	color: #b42318 !important;
}

.tls-file-button:disabled,
.tls-file-primary:disabled,
.tls-file-danger:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.tls-file-button svg,
.tls-file-primary svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tls-file-progress {
	display: none;
	margin-top: 16px;
	padding: 13px;
	border: 1px solid #dbeafe;
	border-radius: 11px;
	background: #f5f9ff;
}

.tls-file-progress.is-active {
	display: block;
}

.tls-progress-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	color: #344054;
	font-size: 10.5px;
	font-weight: 600;
}

.tls-progress-track {
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: #dbeafe;
}

.tls-progress-track span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: #2563eb;
	transition: width 0.2s ease;
}

.tls-results {
	display: grid;
	gap: 11px;
}

.tls-result-card {
	padding: 13px;
	border: 1px solid #e4e7ec;
	border-radius: 12px;
	background: #f8fafc;
}

.tls-result-card-top {
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
}

.tls-result-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 74px;
	height: 74px;
	overflow: hidden;
	border: 1px solid #e4e7ec;
	border-radius: 10px;
	background: #fff;
}

.tls-result-preview img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.tls-result-copy strong,
.tls-result-copy span {
	display: block;
}

.tls-result-copy strong {
	color: #101828;
	font-size: 12px;
	font-weight: 600;
	word-break: break-word;
}

.tls-result-copy span {
	margin-top: 4px;
	color: #667085;
	font-size: 10px;
	line-height: 1.5;
}

.tls-result-success {
	color: #027a48 !important;
}

.tls-result-warning {
	color: #b54708 !important;
}

.tls-page-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
	gap: 11px;
	margin-top: 15px;
}

.tls-page-card {
	position: relative;
	padding: 9px;
	border: 1px solid #e4e7ec;
	border-radius: 11px;
	background: #f8fafc;
}

.tls-page-card.is-deleted {
	opacity: 0.42;
}

.tls-page-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 0.72;
	overflow: hidden;
	border: 1px solid #e4e7ec;
	border-radius: 7px;
	background: #fff;
}

.tls-page-preview canvas,
.tls-page-preview img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.tls-page-card strong {
	display: block;
	margin-top: 8px;
	color: #344054;
	font-size: 10px;
	font-weight: 600;
	text-align: center;
}

.tls-page-controls {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	margin-top: 7px;
}

.tls-page-controls button {
	min-width: 27px;
	height: 27px;
	padding: 0 6px !important;
	border: 1px solid #d0d5dd !important;
	border-radius: 7px !important;
	background: #fff !important;
	color: #475467 !important;
	font-size: 9px;
	font-weight: 600;
	cursor: pointer;
}

.tls-editor-canvas-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	margin-top: 15px;
	padding: 15px;
	overflow: auto;
	border: 1px solid #e4e7ec;
	border-radius: 13px;
	background:
		linear-gradient(45deg, #f2f4f7 25%, transparent 25%),
		linear-gradient(-45deg, #f2f4f7 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #f2f4f7 75%),
		linear-gradient(-45deg, transparent 75%, #f2f4f7 75%);
	background-position: 0 0, 0 8px, 8px -8px, -8px 0;
	background-size: 16px 16px;
}

.tls-editor-canvas-wrap canvas {
	max-width: 100%;
	max-height: 640px;
	background: #fff;
	box-shadow: 0 8px 25px rgba(16, 24, 40, 0.12);
}

.tls-file-privacy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
	padding: 13px;
	border: 1px solid #d1fadf;
	border-radius: 12px;
	background: #ecfdf3;
	color: #05603a;
	font-size: 10.5px;
	text-align: center;
}

.tls-file-privacy strong {
	font-weight: 700;
}

.tls-file-toast {
	position: fixed;
	z-index: 99999;
	right: 22px;
	bottom: 22px;
	display: none;
	max-width: 370px;
	padding: 12px 15px;
	border: 1px solid #dbeafe;
	border-radius: 10px;
	background: #fff;
	color: #344054;
	font-size: 12px;
	font-weight: 600;
	box-shadow: 0 18px 45px rgba(16, 24, 40, 0.17);
}

.tls-file-toast.is-visible {
	display: block;
}

@media (max-width: 940px) {
	.tls-file-grid {
		grid-template-columns: 1fr;
	}

	.tls-file-sticky {
		position: static;
	}
}

@media (max-width: 700px) {
	.tls-file-app {
		padding: 56px 15px 72px;
	}

	.tls-file-header {
		display: block;
	}

	.tls-file-heading {
		display: block;
	}

	.tls-file-hero-icon {
		width: 58px;
		height: 58px;
		margin-bottom: 16px;
	}

	.tls-file-header h1 {
		font-size: 38px;
	}

	.tls-file-header p {
		font-size: 14px;
	}

	.tls-file-trust {
		margin-top: 16px;
	}

	.tls-file-card {
		padding: 17px;
	}

	.tls-file-form-grid {
		grid-template-columns: 1fr;
	}

	.tls-file-field-full {
		grid-column: auto;
	}

	.tls-file-item {
		grid-template-columns: 50px minmax(0, 1fr);
	}

	.tls-file-thumb {
		width: 50px;
		height: 50px;
	}

	.tls-file-item-actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}

	.tls-file-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tls-file-actions .tls-file-primary {
		grid-column: 1 / -1;
	}

	.tls-page-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tls-editor-canvas-wrap {
		min-height: 300px;
	}

	.tls-file-privacy {
		display: block;
	}

	.tls-file-privacy strong,
	.tls-file-privacy span {
		display: block;
	}

	.tls-file-privacy span {
		margin-top: 4px;
	}

	.tls-file-toast {
		right: 14px;
		bottom: 14px;
		left: 14px;
		max-width: none;
	}
}

.tls-file-workspace{min-height:260px}
