/*
Theme Name: UCDREAMS Tools
Theme URI: https://ucdreams.com
Author: UCDREAMS
Description: Block theme for UCDREAMS free online tools. Brand color #C5453E, Poppins font.
Version: 8.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ucdreams-tools
*/

/* ============ Base ============ */
[hidden] {
	display: none !important;
}
body {
	-webkit-font-smoothing: antialiased;
}

.entry-content {
	padding-left: 20px !important;
	padding-right: 20px !important;
}
@media (max-width: 782px) {
	.entry-content {
		padding-left: 10px !important;
		padding-right: 10px !important;
	}
}

/* ============ Header ============ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--light-gray);
	padding: 14px 20px;
	border-bottom: 1px solid transparent;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
	box-shadow: 0 1px 3px rgba(24, 29, 32, 0.08), 0 4px 12px rgba(24, 29, 32, 0.06);
	border-bottom-color: rgba(24, 29, 32, 0.06);
}
@media (max-width: 782px) {
	.site-header {
		padding-left: 10px;
		padding-right: 10px;
	}
}
.site-header.is-scrolled {
	box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.08);
}
.site-header .site-brand {
	font-size: 22px;
	font-weight: 700;
	color: var(--wp--preset--color--dark);
	text-decoration: none;
	letter-spacing: 0.005em;
}
.site-header .site-brand span {
	color: var(--wp--preset--color--primary);
}
.site-header .wp-block-navigation {
	font-weight: 500;
}
.site-header .header-nav .wp-block-navigation-item__content {
	color: #525658;
}
.site-header .header-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary);
}
.site-header .header-cta .wp-block-button__link {
	border-radius: 8px !important;
	padding: 10px 22px !important;
	font-size: 15px;
	font-weight: 600;
}
.site-header .wp-block-site-logo img {
	max-height: 44px;
	width: auto;
}
.site-header .brand-badge {
	background: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--white);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.02em;
	border-radius: 5px;
	padding: 3px 8px;
	margin: 0 !important;
	line-height: 1.4;
}
.site-header .brand-wrap {
	display: flex;
	align-items: center;
	gap: 4px !important;
	text-decoration: none;
}
.site-header .brand-wrap:hover .brand-badge {
	color: #C5453E;
}
.site-header .brand-wrap .wp-block-site-logo {
	margin-right: -2px;
}

/* Compact header search */
.header-search {
	width: 220px;
	flex-shrink: 0;
}
.header-search .wp-block-search__inside-wrapper {
	display: flex;
	align-items: center;
	border: none !important;
	border-radius: 10px !important;
	background: #F6F6F6;
	padding: 0 !important;
	height: 44px;
	transition: box-shadow 0.3s ease, background 0.3s ease;
}
.header-search .wp-block-search__inside-wrapper:focus-within {
	background: #F0F0F0;
	box-shadow: 0 0 0 2px rgba(197, 69, 62, 0.25);
}
.header-search input.wp-block-search__input {
	background: transparent;
	border: none;
	box-shadow: none;
	height: 44px;
	padding-left: 16px;
	font-size: 14px;
	color: #525658;
	min-width: 0;
	flex: 1;
}
.header-search input.wp-block-search__input:focus {
	outline: none;
}
.header-search .wp-block-search__button {
	background: transparent !important;
	color: #707375;
	padding: 8px 12px !important;
	margin: 0;
	border-radius: 10px !important;
	cursor: pointer;
}
@media (max-width: 900px) {
	.header-search {
		display: none;
	}
}

/* ============ Hero ============ */
.tools-hero {
	background: transparent;
	position: relative;
}
.tools-hero .hero-title {
	font-size: clamp(38px, 6vw, 56px);
	line-height: 1.3;
	font-weight: 700;
	color: var(--wp--preset--color--dark);
	margin: 0;
}
.tools-hero .hero-descr {
	font-size: 18px;
	color: var(--wp--preset--color--body);
	margin-top: 18px;
}
@media (max-width: 782px) {
	.tools-hero {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}
}

/* Pill search bar */
.tools-search {
	max-width: 560px;
	margin: 34px auto 0;
	position: relative;
	z-index: 1;
}
.tools-search form {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--wp--preset--color--white);
	border-radius: 99px;
	height: 64px;
	padding: 9px 9px 9px 24px;
	box-shadow: 3px 10px 40px rgba(197, 69, 62, 0.12) !important;
}
.tools-search .wp-block-search__inside-wrapper {
	padding: 5px !important;
	border: 1px solid #E3E3E4 !important;
	border-radius: 99px !important;
	background: white;
}
.tools-search input.wp-block-search__input {
	background: transparent;
	border: none;
	height: 44px;
	font-size: 15px;
	color: #525658;
	flex: 1;
	min-width: 0;
	box-shadow: none;
}
.tools-search input.wp-block-search__input:focus {
	outline: none;
}
.tools-search input.wp-block-search__input::placeholder {
	color: #a9acae;
}
.tools-search .wp-block-search__button {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border-radius: 99px !important;
	padding: 13px 28px !important;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.3s ease;
}
.tools-search .wp-block-search__button:hover {
	background: var(--wp--preset--color--primary-dark);
}
.tools-search svg {
	display: none;
}

/* ============ Tools grid ============ */
.tools-area {
	background: transparent;
}
.tools-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.tools-grid > * {
	margin: 0 !important;
}
@media (max-width: 1024px) {
	.tools-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 782px) {
	.tools-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
}
.tool-card {
	background: var(--wp--preset--color--white);
	border-radius: 12px;
	padding: 20px 16px;
	position: relative;
	height: 100%;
	box-shadow: 0 1px 2px rgba(24, 29, 32, 0.04);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tool-card:hover {
	transform: translateY(-4px);
	box-shadow: 3px 10px 40px rgba(197, 69, 62, 0.14);
}
.tool-card .icon-box {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}
.tool-card .icon-box svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.tool-card .tool-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
	letter-spacing: 0.005em;
	margin: 0 0 6px;
	line-height: 1.35;
}
.tool-card .tool-title a {
	color: inherit;
	text-decoration: none;
}
/* stretched link — makes whole card clickable from the title link */
.tool-card .tool-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.tool-card .tool-tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 500;
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--tint);
	border-radius: 99px;
	padding: 3px 10px;
	margin: 0 0 10px;
}
.tool-card .tool-descr {
	font-size: 14px;
	color: var(--wp--preset--color--body);
	margin: 0;
	line-height: 1.45;
}

/* Section heading above grid */
.section-kicker {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	margin: 0 0 10px;
}
.section-heading {
	font-size: clamp(26px, 3.4vw, 34px);
	font-weight: 700;
	color: var(--wp--preset--color--dark);
	margin: 0 0 36px;
	line-height: 1.3;
}

/* ============ Footer ============ */
.site-footer {
	background: transparent;
	margin-top: 80px;
}
.site-footer h4 {
	font-size: 17px;
	font-weight: 600;
	color: #525658;
	margin: 0 0 16px;
}
.site-footer p,
.site-footer a {
	font-size: 14px;
	color: #828586;
}
.site-footer a:hover {
	color: var(--wp--preset--color--primary);
}
.footer-bottom {
	font-size: 14px;
	font-weight: 500;
	color: #737b85;
	padding: 18px 0;
	margin-top: 60px;
}

/* ============ Background Remover tool ============ */
.br-preview {
	display: flex;
	justify-content: center;
	margin-bottom: 18px;
}
.br-preview .br-img {
	max-width: 100%;
	max-height: 480px;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(24, 29, 32, 0.08);
}
.br-preview .br-checker {
	background-image:
		linear-gradient(45deg, #e6e6e6 25%, transparent 25%),
		linear-gradient(-45deg, #e6e6e6 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #e6e6e6 75%),
		linear-gradient(-45deg, transparent 75%, #e6e6e6 75%);
	background-size: 20px 20px;
	background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.br-status {
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
	margin-bottom: 12px;
}
.br-bar-wrap {
	height: 10px;
	background: var(--wp--preset--color--light-gray);
	border-radius: 99px;
	overflow: hidden;
	margin-bottom: 8px;
}
.br-bar {
	height: 100%;
	width: 0;
	background: var(--wp--preset--color--primary);
	border-radius: 99px;
	transition: width 0.3s ease;
}
.br-done-name {
	text-align: center;
	font-size: 13px;
	color: var(--wp--preset--color--body);
	margin: 0 0 16px;
}

/* Video Compressor */
#vc-preview {
	margin-bottom: 18px;
}
#vc-preview .br-img {
	width: 100%;
	max-height: 420px;
	background: #000;
	border-radius: 12px;
}
#vc-info {
	text-align: center;
	font-size: 13px;
	color: var(--wp--preset--color--body);
	margin: 0 0 18px;
}
#vc-status {
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
	margin-bottom: 10px;
}

/* Watermark Remover */
#wm-canvas-wrap {
	text-align: center;
	margin-bottom: 18px;
}
#wm-canvas {
	max-width: 100%;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(24, 29, 32, 0.08);
	cursor: crosshair;
	touch-action: none;
}
.wm-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 26px;
	border: 1px solid #ECECEC;
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 18px;
}
.wm-tool {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
}
.wm-tool input[type="range"] {
	accent-color: var(--wp--preset--color--primary);
	width: 130px;
}
.wm-tool input[type="radio"] {
	accent-color: var(--wp--preset--color--primary);
	width: 16px;
	height: 16px;
}
.wm-tool .wm-val {
	font-size: 13px;
	color: var(--wp--preset--color--body);
	min-width: 44px;
}
.wm-tool button {
	background: var(--wp--preset--color--light-gray);
	color: #525658;
	border: none;
	border-radius: 8px;
	padding: 8px 16px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.25s ease;
}
.wm-tool button:hover:not(:disabled) {
	background: #e8e8e8;
}
.wm-tool button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
#wm-status {
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
	margin-bottom: 14px;
}
#wm-result {
	text-align: center;
	margin-bottom: 18px;
}

/* PDF Editor */
.pe-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}
.pe-page {
	background: var(--wp--preset--color--white);
	border: 1px solid #ECECEC;
	border-radius: 10px;
	padding: 10px;
	position: relative;
	cursor: grab;
	text-align: center;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.pe-page:hover {
	border-color: var(--wp--preset--color--primary);
}
.pe-page.is-dragging {
	opacity: 0.45;
	box-shadow: 0 0 0 2px rgba(197, 69, 62, 0.35);
}
.pe-thumb-wrap {
	height: 190px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.pe-thumb {
	max-width: 100%;
	max-height: 100%;
	box-shadow: 0 1px 4px rgba(24, 29, 32, 0.15);
	transition: transform 0.25s ease;
}
.pe-num {
	display: inline-block;
	margin-top: 8px;
	font-size: 12px;
	font-weight: 700;
	color: var(--wp--preset--color--body);
	background: var(--wp--preset--color--light-gray);
	border-radius: 99px;
	padding: 2px 10px;
}
.pe-actions {
	position: absolute;
	top: 6px;
	right: 6px;
	display: flex;
	gap: 5px;
}
.pe-act {
	width: 26px;
	height: 26px;
	border: none;
	border-radius: 6px;
	background: rgba(24, 29, 32, 0.75);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s ease;
}
.pe-act:hover {
	background: var(--wp--preset--color--primary);
}
.pe-toolbar-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}
.pe-panel-btn {
	background: var(--wp--preset--color--white);
	border: 1.5px solid #E3E3E4;
	color: var(--wp--preset--color--dark);
	border-radius: 10px;
	padding: 11px 20px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.25s ease, color 0.25s ease;
}
.pe-panel-btn:hover,
.pe-panel-btn.is-active {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}
.pe-panel {
	border: 1px solid #ECECEC;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 18px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px 22px;
}
.pe-panel .ic-field input[type="text"],
.pe-panel .ic-field input[type="number"],
.pe-panel .ic-field input[type="file"],
.pe-panel .ic-field select {
	width: 100%;
	box-sizing: border-box;
	height: 42px;
	border: 1px solid #E3E3E4;
	border-radius: 8px;
	padding: 0 12px;
	font-family: inherit;
	font-size: 14px;
	color: #525658;
	background: var(--wp--preset--color--white);
}
.pe-panel .ic-field input[type="color"] {
	width: 100%;
	height: 42px;
	border: 1px solid #E3E3E4;
	border-radius: 8px;
	padding: 4px;
	background: var(--wp--preset--color--white);
	cursor: pointer;
}
.pe-panel .ic-field input:focus,
.pe-panel .ic-field select:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
}
.pe-panel .ic-field input[type="range"] {
	width: 100%;
	accent-color: var(--wp--preset--color--primary);
}
#pe-img-name {
	font-size: 13px;
	color: #1E9E5A;
	font-weight: 600;
	margin: 6px 0 0;
}
#pe-status {
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--body);
	margin: 0 0 16px;
}

/* PDF Editor Pro */
.pe2-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	border: 1px solid #ECECEC;
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 12px;
	background: var(--wp--preset--color--white);
}
.pe2-tool-group {
	display: flex;
	align-items: center;
	gap: 8px;
}
.pe2-mode-btn {
	background: var(--wp--preset--color--white);
	border: 1.5px solid #E3E3E4;
	color: var(--wp--preset--color--dark);
	border-radius: 8px;
	padding: 8px 14px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.pe2-mode-btn:hover {
	border-color: var(--wp--preset--color--primary);
}
.pe2-mode-btn.is-active {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}
#pe2-zoom-label,
#pe2-page-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--wp--preset--color--dark);
	min-width: 44px;
	text-align: center;
}
.pe2-color-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	cursor: pointer;
}
.pe2-color-wrap input {
	width: 34px;
	height: 34px;
	border: 1px solid #E3E3E4;
	border-radius: 8px;
	padding: 2px;
	background: #fff;
	cursor: pointer;
}
#pe2-export-format {
	height: 38px;
	border: 1.5px solid #E3E3E4;
	border-radius: 8px;
	background: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #525658;
	padding: 0 10px;
}
.pe2-export {
	padding: 9px 22px !important;
	font-size: 14px !important;
}
.pe2-font-select {
	height: 38px;
	border: 1.5px solid #E3E3E4;
	border-radius: 8px;
	background: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #525658;
	padding: 0 8px;
	max-width: 170px;
}
.pe2-size-input {
	width: 64px;
	height: 38px;
	border: 1.5px solid #E3E3E4;
	border-radius: 8px;
	background: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #525658;
	text-align: center;
	padding: 0 6px;
}
.pe2-font-select:focus,
.pe2-size-input:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
}
.pe2-side-grip {
	color: #b6b9ba;
	font-size: 12px;
	letter-spacing: -2px;
	cursor: grab;
	user-select: none;
}
.pe2-side-page[draggable="true"] {
	cursor: grab;
}
.pe2-side-page.is-dragging {
	opacity: 0.45;
	border-color: var(--wp--preset--color--primary);
}
.pe2-text-el.is-selected {
	outline: 1.5px solid var(--wp--preset--color--primary);
	background: rgba(197, 69, 62, 0.06);
}

/* Video Editor */
.ve-preview-wrap {
	position: relative;
	text-align: center;
	margin-bottom: 10px;
}
#ve-video {
	width: 100%;
	max-height: 420px;
	border-radius: 12px;
	background: #000;
	display: block;
	margin: 0 auto;
}
.ve-crop-rect {
	position: absolute;
	border: 2px dashed var(--wp--preset--color--primary);
	background: rgba(197, 69, 62, 0.12);
	cursor: move;
	z-index: 5;
	display: none;
}
.ve-text-overlay {
	position: absolute;
	transform: translate(-50%, -50%);
	cursor: move;
	white-space: pre-wrap;
	line-height: 1.15;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
	z-index: 6;
	outline: 1px dashed transparent;
	min-width: 20px;
}
.ve-text-overlay:hover,
.ve-text-overlay:focus {
	outline: 1px dashed var(--wp--preset--color--primary);
}
.ve-timeline-wrap {
	margin: 14px 0 20px;
}
.ve-tl-bar {
	position: relative;
	height: 16px;
	background: var(--wp--preset--color--light-gray);
	border-radius: 99px;
	cursor: crosshair;
	margin-bottom: 10px;
}
.ve-tl-range {
	position: absolute;
	top: 0;
	bottom: 0;
	background: rgba(197, 69, 62, 0.35);
	border-left: 2px solid var(--wp--preset--color--primary);
	border-right: 2px solid var(--wp--preset--color--primary);
	border-radius: 4px;
}
.ve-tl-head {
	position: absolute;
	top: -3px;
	bottom: -3px;
	width: 3px;
	background: var(--wp--preset--color--dark);
	border-radius: 2px;
}
.ve-tl-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.ve-tl-btn {
	background: var(--wp--preset--color--white);
	border: 1.5px solid #E3E3E4;
	color: var(--wp--preset--color--dark);
	border-radius: 8px;
	padding: 8px 14px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s ease;
}
.ve-tl-btn:hover {
	border-color: var(--wp--preset--color--primary);
}
.ve-tl-btn-primary {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: #fff;
}
.ve-tl-btn-primary:hover {
	background: var(--wp--preset--color--primary-dark);
}
.ve-clips {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
}
.ve-panels {
	display: grid;
	grid-template-columns: 1fr 1.6fr 1fr;
	gap: 16px;
	margin-bottom: 18px;
}
.ve-panel {
	border: 1px solid #ECECEC;
	border-radius: 12px;
	padding: 16px;
}
.ve-panel h4 {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 700;
	color: var(--wp--preset--color--dark);
}
.ve-panel-wide {
	grid-column: span 1;
}
.ve-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--wp--preset--color--dark);
	margin-bottom: 12px;
	cursor: pointer;
}
.ve-check input {
	accent-color: var(--wp--preset--color--primary);
	width: 16px;
	height: 16px;
}
.ve-mini-btn {
	background: var(--wp--preset--color--light-gray);
	border: none;
	border-radius: 8px;
	padding: 8px 14px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #525658;
	cursor: pointer;
}
.ve-mini-btn:hover {
	background: #e8e8e8;
}
.ve-mini-btn-primary {
	background: var(--wp--preset--color--primary);
	color: #fff;
}
.ve-mini-btn-primary:hover {
	background: var(--wp--preset--color--primary-dark);
}
.ve-select {
	width: 100%;
	height: 42px;
	border: 1px solid #E3E3E4;
	border-radius: 8px;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	color: #525658;
	margin-bottom: 12px;
	padding: 0 10px;
}
.ve-text-row {
	border: 1px solid #ECECEC;
	border-radius: 10px;
	padding: 12px;
	margin-bottom: 10px;
}
.ve-text-row-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}
.ve-text-row-head strong {
	font-size: 13px;
	color: var(--wp--preset--color--dark);
}
.ve-t-input {
	width: 100%;
	box-sizing: border-box;
	height: 38px;
	border: 1px solid #E3E3E4;
	border-radius: 8px;
	padding: 0 10px;
	font-family: inherit;
	font-size: 14px;
	margin-bottom: 8px;
}
.ve-t-input:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
}
.ve-t-grid {
	display: grid;
	grid-template-columns: 1.4fr 0.8fr 0.7fr 0.6fr;
	gap: 6px;
	margin-bottom: 8px;
}
.ve-t-grid select,
.ve-t-grid input {
	width: 100%;
	height: 34px;
	border: 1px solid #E3E3E4;
	border-radius: 6px;
	font-family: inherit;
	font-size: 13px;
	padding: 0 6px;
	background: #fff;
	color: #525658;
}
.ve-t-grid input[type="color"] {
	padding: 2px;
	cursor: pointer;
}
.ve-t-timing {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.ve-t-times {
	font-size: 12px;
	color: var(--wp--preset--color--body);
	margin-left: auto;
}

/* Video Editor Pro (ffmpeg timeline) */
.vpe-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}
.vpe-timeline-scroll {
	position: relative;
	overflow-x: auto;
	background: #2b2b2b;
	border-radius: 10px;
	padding: 6px 12px 10px;
	margin-bottom: 6px;
}
.vpe-tl-content {
	position: relative;
}
.vpe-tl-ruler {
	position: relative;
	height: 26px;
	margin-bottom: 4px;
	border-bottom: 1px solid #555;
	cursor: pointer;
}
.vpe-tick {
	position: absolute;
	bottom: 0;
	height: 100%;
	border-left: 1px solid #666;
	pointer-events: none;
}
.vpe-tick span {
	position: absolute;
	left: 4px;
	top: 2px;
	font-size: 10px;
	font-weight: 600;
	color: #9a9d9e;
	white-space: nowrap;
}
.vpe-timeline {
	display: flex;
	gap: 6px;
	min-height: 84px;
	position: relative;
}
.vpe-clip {
	position: relative;
	min-width: 60px;
	height: 84px;
	border-radius: 8px;
	background: #444 center / cover;
	border: 2px solid #555;
	cursor: grab;
	flex-shrink: 0;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.vpe-clip:hover {
	border-color: #999;
}
.vpe-clip.is-selected {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 2px rgba(197, 69, 62, 0.4);
}
.vpe-clip.is-dragging {
	opacity: 0.4;
}
.vpe-clip-thumb {
	position: absolute;
	inset: 0;
	border-radius: 6px;
	background-color: #333;
	background-size: auto 100%;
	background-repeat: repeat-x;
	opacity: 0.85;
}
.vpe-clip-label {
	position: absolute;
	left: 6px;
	bottom: 4px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	border-radius: 4px;
	padding: 2px 6px;
	pointer-events: none;
}
.vpe-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 10px;
	cursor: ew-resize;
	z-index: 3;
}
.vpe-handle-l { left: 0; border-radius: 6px 0 0 6px; }
.vpe-handle-r { right: 0; border-radius: 0 6px 6px 0; }
.vpe-handle:hover {
	background: rgba(197, 69, 62, 0.55);
}
.vpe-tl-head {
	position: absolute;
	top: 6px;
	bottom: 6px;
	width: 3px;
	background: #fff;
	border-radius: 2px;
	z-index: 5;
	pointer-events: none;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}
.vpe-export-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}
.vpe-text-track {
	position: relative;
	height: 26px;
	background: #383838;
	border-radius: 6px;
	margin-top: 6px;
	overflow: hidden;
}
.vpe-ttext {
	position: absolute;
	top: 3px;
	bottom: 3px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	border-radius: 4px;
	padding: 0 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: ew-resize;
	user-select: none;
}
#vpe-tl-head {
	z-index: 8;
}
@media (max-width: 900px) {
	.ve-panels {
		grid-template-columns: 1fr;
	}
	.ve-t-grid {
		grid-template-columns: 1fr 1fr;
	}
}
.pe2-main {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}
.pe2-sidebar {
	width: 138px;
	flex-shrink: 0;
	max-height: 640px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-right: 4px;
}
.pe2-side-page {
	display: flex;
	flex-direction: column;
	gap: 6px;
	border: 1.5px solid #ECECEC;
	border-radius: 8px;
	padding: 6px;
	background: var(--wp--preset--color--white);
	cursor: pointer;
	transition: border-color 0.2s ease;
}
.pe2-side-page:hover {
	border-color: var(--wp--preset--color--primary);
}
.pe2-side-page.is-current {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 1px var(--wp--preset--color--primary);
}
.pe2-side-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 140px;
	background: #f2f2f2;
	border-radius: 5px;
	overflow: hidden;
	position: relative;
}
.pe2-side-thumb img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
	background: #fff;
}
.pe2-side-thumb:empty::before,
.pe2-side-thumb:not(:has(img[src]))::before {
	content: attr(data-num);
	position: absolute;
	color: #b9b9b9;
	font-size: 13px;
	font-weight: 700;
}
.pe2-side-foot {
	display: flex;
	align-items: center;
	gap: 5px;
}
.pe2-side-num {
	font-size: 13px;
	font-weight: 700;
	color: var(--wp--preset--color--dark);
	flex: 1;
}
.pe2-side-rot {
	font-size: 10px;
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}
.pe2-side-acts {
	display: flex;
	gap: 3px;
}
.pe2-side-act {
	width: 22px;
	height: 22px;
	border: none;
	border-radius: 5px;
	background: var(--wp--preset--color--light-gray);
	color: #525658;
	font-size: 11px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.pe2-side-act:hover {
	background: var(--wp--preset--color--primary);
	color: #fff;
}
.pe2-viewer {
	flex: 1;
	min-width: 0;
	max-height: 640px;
	overflow: auto;
	background: #e9e9e9;
	border-radius: 12px;
	padding: 24px;
	text-align: center;
}
.pe2-page-wrap {
	position: relative;
	display: inline-block;
	box-shadow: 0 4px 20px rgba(24, 29, 32, 0.18);
	background: #fff;
}
#pe2-canvas {
	display: block;
}
.pe2-textlayer {
	position: absolute;
	inset: 0;
	overflow: hidden;
	line-height: 1;
	pointer-events: none;
}
.pe2-textitem {
	position: absolute;
	color: transparent;
	pointer-events: none;
	white-space: pre;
	cursor: text;
	border-radius: 2px;
}
.pe2-text-active .pe2-textitem {
	pointer-events: auto;
}
.pe2-text-active .pe2-textitem:hover {
	background: rgba(197, 69, 62, 0.15);
	outline: 1px solid rgba(197, 69, 62, 0.4);
}
#pe2-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
#pe2-overlay > * {
	pointer-events: auto;
}
.pe2-editbox {
	position: absolute;
	background: #fff;
	border: 1.5px dashed var(--wp--preset--color--primary);
	outline: none;
	white-space: pre;
	font-family: Helvetica, Arial, sans-serif;
	line-height: 1.05;
	z-index: 10;
	box-shadow: 0 2px 10px rgba(24, 29, 32, 0.15);
}
.pe2-editbox:empty::before {
	content: attr(data-ph);
	color: #b6b9ba;
}
.pe2-text-el {
	position: absolute;
	background: transparent;
	outline: none;
	white-space: pre;
	font-family: Helvetica, Arial, sans-serif;
	line-height: 1.05;
	cursor: move;
}
.pe2-text-el:hover {
	background: rgba(197, 69, 62, 0.08);
}
.pe2-img-el {
	position: absolute;
	cursor: move;
}
.pe2-resize-handle {
	position: absolute;
	width: 14px;
	height: 14px;
	background: var(--wp--preset--color--primary);
	border: 2px solid #fff;
	border-radius: 3px;
	cursor: nwse-resize;
	z-index: 12;
}
.pe2-whiteout-el {
	position: absolute;
	background: #fff;
	border: 1px dashed #d9a0a0;
	cursor: pointer;
}
.pe2-edit-cover {
	position: absolute;
	background: #fff;
	border: none;
	pointer-events: none;
}
#pe2-overlay .pe2-edit-cover {
	pointer-events: none;
}
.pe2-white-drag {
	position: absolute;
	background: rgba(197, 69, 62, 0.25);
	border: 1px solid var(--wp--preset--color--primary);
	pointer-events: none;
	z-index: 20;
}
@media (max-width: 782px) {
	.pe2-main {
		flex-direction: column;
	}
	.pe2-sidebar {
		width: 100%;
		flex-direction: row;
		overflow-x: auto;
		max-height: none;
	}
	.pe2-side-page {
		flex-shrink: 0;
	}
}
@media (max-width: 782px) {
	.pe-panel {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 600px) {
	.pe-panel {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.br-preview .br-img {
		max-height: 320px;
	}
}

/* Editor parity for tool cards */
.editor-styles-wrapper .tools-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

/* ============ Image Compressor tool ============ */
.ic-app {
	background: var(--wp--preset--color--white);
	border-radius: 16px;
	padding: 28px 24px;
	box-shadow: 3px 10px 40px rgba(24, 29, 32, 0.06);
	transition: box-shadow 0.25s ease;
}
/* page-wide drag indicator */
.ic-app.is-dragging {
	box-shadow: inset 0 0 0 3px var(--wp--preset--color--primary), 3px 10px 40px rgba(24, 29, 32, 0.06);
}

/* Dropzone */
.ic-dropzone {
	border: 2px dashed var(--wp--preset--color--primary);
	border-radius: 14px;
	background: var(--wp--preset--color--tint);
	padding: 56px 24px;
	text-align: center;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.25s ease;
}
.ic-dropzone.is-dragover {
	background: #F5DCDA;
	transform: scale(1.01);
}
.ic-dropzone p {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	color: var(--wp--preset--color--dark);
}
.ic-dropzone .ic-or {
	font-size: 14px;
	color: var(--wp--preset--color--body);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 18px;
}
.ic-dropzone .ic-hint {
	font-size: 13px;
	color: var(--wp--preset--color--body);
	font-weight: 400;
	margin-top: 16px;
	margin-bottom: 0;
}
.ic-btn {
	display: inline-block;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border: none;
	border-radius: 10px;
	padding: 14px 34px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.2s ease;
}
.ic-btn:hover {
	background: var(--wp--preset--color--primary-dark);
	transform: translateY(-1px);
}
.ic-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* Two-column workspace: controls left, files right */
.ic-columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
.ic-files {
	min-width: 0;
}
/* mobile: images first */
@media (max-width: 899px) {
	.ic-files {
		order: -1;
	}
}

/* Settings */
.ic-settings {
	margin-top: 0;
	border: 1px solid #ECECEC;
	border-radius: 12px;
	padding: 22px 20px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}
@media (min-width: 900px) {
	.ic-columns {
		grid-template-columns: minmax(0, 1fr) 380px;
		align-items: start;
	}
	.ic-files {
		max-height: 620px;
		overflow-y: auto;
		padding: 2px 6px 2px 0;
	}
}
.ic-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
	margin-bottom: 8px;
}
.ic-field select,
.ic-field input[type="number"] {
	width: 100%;
	box-sizing: border-box;
	height: 44px;
	border: 1px solid #E3E3E4;
	border-radius: 8px;
	padding: 0 12px;
	font-family: inherit;
	font-size: 14px;
	color: #525658;
	background: var(--wp--preset--color--white);
}
.ic-field select:focus,
.ic-field input:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 2px rgba(197, 69, 62, 0.15);
}
.ic-field-inline {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ic-field-inline input {
	width: 90px !important;
}
.ic-quality-row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.ic-quality-row input[type="range"] {
	flex: 1;
	accent-color: var(--wp--preset--color--primary);
}
.ic-quality-val {
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
	min-width: 42px;
	text-align: right;
}
.ic-alpha-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
}
.ic-alpha-wrap input {
	width: 18px;
	height: 18px;
	accent-color: var(--wp--preset--color--primary);
}
.ic-start-wrap {
	margin-top: 22px;
	display: flex;
	gap: 12px;
}
.ic-start {
	flex: 1;
	padding: 16px 34px;
	font-size: 17px;
}
.ic-download-all {
	background: var(--wp--preset--color--dark);
}
.ic-download-all:hover {
	background: #000;
}

/* Success banner */
.ic-success {
	background: repeating-linear-gradient(
		45deg,
		#3D8B62,
		#3D8B62 14px,
		#439468 14px,
		#439468 28px
	);
	color: var(--wp--preset--color--white);
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 10px;
	padding: 12px;
	margin-bottom: 18px;
	box-shadow: 0 4px 14px rgba(61, 139, 98, 0.35);
}
/* done state: only banner + compress more visible */
.ic-workspace.is-done .ic-controls,
.ic-workspace.is-done .ic-files {
	display: none;
}
.ic-compress-more {
	display: block;
	margin: 0 auto;
	background: var(--wp--preset--color--dark);
}
.ic-compress-more:hover {
	background: #000;
}

/* File list */
.ic-list-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.ic-list-head strong {
	font-size: 16px;
	font-weight: 700;
	color: var(--wp--preset--color--dark);
}
.ic-add-more {
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--primary);
	border: 1px dashed var(--wp--preset--color--primary);
	border-radius: 8px;
	padding: 8px 16px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.25s ease;
}
.ic-add-more:hover {
	background: #F5DCDA;
}
.ic-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ic-row {
	display: flex;
	align-items: center;
	gap: 14px;
	border: 1px solid #ECECEC;
	border-radius: 10px;
	padding: 10px 14px;
	background: var(--wp--preset--color--white);
	transition: box-shadow 0.25s ease;
}
.ic-row.is-busy {
	box-shadow: 0 0 0 2px rgba(197, 69, 62, 0.2);
}
.ic-thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 8px;
	background: var(--wp--preset--color--light-gray);
	flex-shrink: 0;
}
.ic-meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.ic-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ic-size {
	font-size: 12px;
	color: var(--wp--preset--color--body);
}
.ic-status {
	font-size: 12px;
	color: var(--wp--preset--color--body);
	flex-shrink: 0;
}
.ic-status.is-done {
	color: var(--wp--preset--color--dark);
	font-weight: 600;
}
.ic-status.is-fail {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	max-width: 260px;
	text-align: right;
}
.ic-savings {
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
	min-width: 48px;
	text-align: center;
}
.ic-savings.is-good {
	color: #1E9E5A;
}
.ic-savings.is-bad {
	color: var(--wp--preset--color--primary);
}
.ic-download {
	display: inline-block;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	padding: 8px 16px;
	flex-shrink: 0;
	transition: background 0.3s ease;
}
.ic-download:hover {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--white);
}
.ic-remove {
	background: var(--wp--preset--color--light-gray);
	color: #525658;
	border: none;
	border-radius: 50%;
	width: 26px;
	height: 26px;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s ease, color 0.25s ease;
}
.ic-remove:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}
.pm-badge {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	border-radius: 6px;
	padding: 6px 9px;
	flex-shrink: 0;
}
.pm-order-hint {
	font-size: 13px;
	color: var(--wp--preset--color--body);
	margin: 0;
}

/* PDF Unlocker password box */
.pu-pass-box {
	margin-top: 22px;
	border: 1px solid #ECECEC;
	border-radius: 12px;
	padding: 20px;
	background: var(--wp--preset--color--white);
}
.pu-pass-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 16px;
}
.pu-pass-icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.pu-pass-icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.pu-pass-head label {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--dark);
	margin: 2px 0 4px;
}
.pu-pass-head label em {
	font-style: normal;
	font-weight: 600;
	font-size: 12px;
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--tint);
	border-radius: 99px;
	padding: 2px 8px;
	vertical-align: 1px;
}
.pu-pass-head p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--wp--preset--color--body);
}
#pu-password {
	width: 100%;
	box-sizing: border-box;
	height: 52px;
	border: 1.5px solid #E3E3E4;
	border-radius: 10px;
	padding: 0 16px;
	font-family: inherit;
	font-size: 16px;
	color: var(--wp--preset--color--dark);
	background: var(--wp--preset--color--light-gray);
	transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
#pu-password::placeholder {
	color: #a9acae;
	font-size: 14px;
}
#pu-password:focus {
	outline: none;
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(197, 69, 62, 0.12);
}
.dc-target {
	height: 36px;
	border: 1px solid #E3E3E4;
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #525658;
	padding: 0 8px;
	flex-shrink: 0;
	max-width: 160px;
}
.dc-target:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
}
.ic-move {
	background: var(--wp--preset--color--light-gray);
	color: #525658;
	border: none;
	border-radius: 6px;
	width: 26px;
	height: 26px;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s ease, color 0.25s ease;
}
.ic-move:hover {
	background: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--white);
}
.pm-grip {
	color: #b6b9ba;
	font-size: 14px;
	letter-spacing: -2px;
	cursor: grab;
	flex-shrink: 0;
	user-select: none;
}
.ic-row[draggable="true"] {
	cursor: grab;
}
.ic-row.is-dragging {
	opacity: 0.45;
	box-shadow: 0 0 0 2px rgba(197, 69, 62, 0.35);
}
.ic-success.is-error {
	background: repeating-linear-gradient(
		45deg,
		var(--wp--preset--color--primary),
		var(--wp--preset--color--primary) 14px,
		var(--wp--preset--color--primary-dark) 14px,
		var(--wp--preset--color--primary-dark) 28px
	);
	box-shadow: 0 4px 14px rgba(197, 69, 62, 0.35);
}
.ic-summary {
	margin-top: 16px;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--dark);
	background: var(--wp--preset--color--tint);
	border-radius: 10px;
	padding: 12px;
}
.ic-empty {
	text-align: center;
	font-size: 14px;
	color: var(--wp--preset--color--body);
	margin: 18px 0 0;
}

/* Feature bullets */
.ic-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	list-style: none;
	padding: 0;
	margin: 32px 0 0;
}
.ic-features li {
	background: var(--wp--preset--color--white);
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
	display: flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 1px 2px rgba(24, 29, 32, 0.04);
}

@media (max-width: 600px) {
	.ic-app {
		padding: 20px 14px;
	}
	.ic-settings {
		grid-template-columns: 1fr;
		padding: 16px;
	}
	.ic-features {
		grid-template-columns: 1fr 1fr;
	}
	.ic-dropzone {
		padding: 36px 14px;
	}
	.ic-row {
		flex-wrap: wrap;
	}
	.ic-start-wrap {
		flex-direction: column;
	}
}

/* DOCX Editor */
.dx-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	border: 1px solid #ECECEC;
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 14px;
	background: var(--wp--preset--color--white);
}
.dx-editor {
	min-height: 480px;
	max-height: 640px;
	overflow-y: auto;
	border: 1px solid #E3E3E4;
	border-radius: 12px;
	padding: 32px 36px;
	background: var(--wp--preset--color--white);
	font-size: 15px;
	line-height: 1.65;
	color: #222;
	outline: none;
}
.dx-editor:focus {
	border-color: var(--wp--preset--color--primary);
}
.dx-editor h1 { font-size: 28px; margin: 18px 0 10px; }
.dx-editor h2 { font-size: 22px; margin: 16px 0 8px; }
.dx-editor h3 { font-size: 18px; margin: 14px 0 8px; }
.dx-editor p { margin: 0 0 10px; }
.dx-editor .dx-align-left { text-align: left; }
.dx-editor hr.dx-hr { border: none; border-top: 1px solid #999; margin: 16px 0; }
.dx-editor .dx-align-center { text-align: center; }
.dx-editor .dx-align-right { text-align: right; }
.dx-editor .dx-align-justify { text-align: justify; }
.dx-editor ul, .dx-editor ol { margin: 0 0 10px; padding-left: 26px; }
.dx-editor table { border-collapse: collapse; margin: 10px 0; }
.dx-editor td, .dx-editor th { border: 1px solid #ccc; padding: 6px 10px; }

/* Sheet Editor */
.sh-grid-wrap {
	max-height: 560px;
	overflow: auto;
	border: 1px solid #E3E3E4;
	border-radius: 12px;
	background: var(--wp--preset--color--white);
}
.sh-grid {
	border-collapse: separate;
	border-spacing: 0;
	width: max-content;
	min-width: 100%;
	font-size: 13px;
}
.sh-grid th,
.sh-grid td {
	border-right: 1px solid #ECECEC;
	border-bottom: 1px solid #ECECEC;
	padding: 7px 12px;
	text-align: left;
	min-width: 90px;
	max-width: 320px;
	overflow: hidden;
	white-space: pre-wrap;
}
.sh-grid thead th {
	background: var(--wp--preset--color--light-gray);
	font-weight: 700;
	color: var(--wp--preset--color--dark);
	position: sticky;
	top: 0;
	z-index: 2;
	text-align: center;
	min-width: 50px;
}
.sh-grid tbody th {
	background: var(--wp--preset--color--light-gray);
	font-weight: 700;
	color: var(--wp--preset--color--dark);
	position: sticky;
	left: 0;
	z-index: 1;
	text-align: center;
	min-width: 44px;
}
.sh-grid thead th:first-child {
	z-index: 3;
}
.sh-grid td {
	cursor: cell;
	outline: none;
}
.sh-grid td:focus {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--primary);
	background: #fffdf5;
}
.sh-grid .is-sel {
	background: rgba(197, 69, 62, 0.1);
}
.sh-grid th.is-sel {
	background: rgba(197, 69, 62, 0.18);
}

/* Sheet Editor — Luckysheet */
.ls-wrap {
	border: 1px solid #E3E3E4;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 10px rgba(24,29,32,.05);
}
#sh-lucky {
	height: 640px;
	width: 100%;
}
#sh-lucky .luckysheet-input-box,
#sh-lucky .luckysheet-input-box-top {
	z-index: auto;
}
.luckysheet, .luckysheet * {
	box-sizing: initial;
}

/* Image Editor */
.ie-toolbar {
	position: sticky;
	top: 64px;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 10px 12px;
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(10px);
	border: 1px solid #E6E7E9;
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba(24,29,32,.08);
	margin-bottom: 12px;
}
.ie-group {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	background: #F6F6F7;
	border: 1px solid #ECEDEF;
	border-radius: 10px;
}
.ie-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 34px;
	padding: 0 11px;
	font-size: 12.5px;
	font-weight: 600;
	color: #33383d;
	background: transparent;
	border: none;
	border-radius: 7px;
	cursor: pointer;
	transition: background .15s, color .15s, transform .1s;
	white-space: nowrap;
}
.ie-btn:hover { background: #e9eaec; }
.ie-btn:active { transform: scale(.96); }
.ie-btn.ie-icon { width: 34px; padding: 0; justify-content: center; font-size: 15px; }
.ie-btn-accent { background: var(--wp--preset--color--primary, #C5453E); color: #fff; }
.ie-btn-accent:hover { background: #a93a34; }
.ie-btn-export { background: var(--wp--preset--color--primary, #C5453E); color: #fff; padding: 0 18px; }
.ie-btn-export:hover { background: #a93a34; }
.ie-btn-ok { background: #16a34a; color: #fff; }
.ie-btn-ok:hover { background: #12833c; }
.ie-btn-magic { color: #7c3aed; }
.ie-btn-magic:disabled { opacity: .55; cursor: wait; }
.ie-danger:hover { background: #fee2e2; color: #b91c1c; }
.ie-ico {
	font-family: Georgia, serif;
	font-weight: 700;
	font-size: 14px;
	width: 18px; height: 18px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; color: #C5453E;
	border-radius: 4px;
}
.ie-btn-accent .ie-ico { background: #fff; }
.ie-select {
	height: 34px;
	padding: 0 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: #33383d;
	background: transparent;
	border: none;
	border-radius: 7px;
	cursor: pointer;
	outline: none;
}
.ie-select:hover { background: #e9eaec; }
.ie-select.ie-font { width: 150px; }
.ie-num {
	width: 62px; height: 34px;
	padding: 0 6px;
	font-size: 12.5px; font-weight: 600;
	color: #33383d;
	background: #fff;
	border: 1px solid #E3E3E4;
	border-radius: 7px;
	outline: none;
}
.ie-color {
	display: inline-flex; align-items: center; gap: 5px;
	height: 34px; padding: 0 8px;
	font-size: 12px; font-weight: 600; color: #55595e;
	cursor: pointer;
}
.ie-color input[type=color] {
	width: 26px; height: 26px;
	padding: 0; border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px #d8d9db;
	background: none; cursor: pointer;
}
.ie-zoom-label {
	min-width: 46px; text-align: center;
	font-size: 12.5px; font-weight: 700; color: #33383d;
	font-variant-numeric: tabular-nums;
}
.ie-export { margin-left: auto; background: transparent; border: none; }
.ie-canvas-wrap {
	background:
		linear-gradient(45deg, #ececec 25%, transparent 25%, transparent 75%, #ececec 75%),
		linear-gradient(45deg, #ececec 25%, transparent 25%, transparent 75%, #ececec 75%);
	background-color: #f4f4f5;
	background-size: 22px 22px;
	background-position: 0 0, 11px 11px;
	border: 1px solid #E6E7E9;
	border-radius: 14px;
	display: flex;
	justify-content: center;
	padding: 18px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	max-height: 78vh;
}
.ie-canvas-wrap .canvas-container {
	background: #fff;
	box-shadow: 0 4px 24px rgba(24,29,32,.12);
	border-radius: 4px;
	overflow: hidden;
	margin: 0 auto;
	touch-action: none;
	flex: 0 0 auto;
}
.ie-canvas-wrap.ie-transparent .canvas-container { background: transparent; box-shadow: 0 0 0 1px #e3e3e4; }
.ie-hints {
	font-size: 12.5px;
	color: #77797d;
	margin-top: 10px;
	text-align: center;
}
@media (max-width: 720px) {
	.ie-toolbar { top: 58px; padding: 8px; gap: 6px; }
	.ie-btn { height: 32px; padding: 0 9px; font-size: 11.5px; }
	.ie-btn.ie-icon { width: 32px; }
	.ie-select { font-size: 11.5px; }
	.ie-select.ie-font { width: 116px; }
	.ie-canvas-wrap { padding: 10px; }
}

/* Subtitle Generator */
#sb-preview tbody tr:hover { background: #fafafa; }
#sb-preview tbody td { vertical-align: top; }

/* ============ Artboard design editor ============ */
.artboard-area { max-width: 1500px !important; }
.ab-editor {
	background: #e8eaee;
	border: 1px solid #dfe1e5;
	border-radius: 14px;
	overflow: hidden;
}
.ab-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 8px 10px;
	background: #ffffff;
	border-bottom: 1px solid #e3e5e9;
}
.ab-tgroup {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 3px;
	background: #f3f4f6;
	border-radius: 9px;
}
.ab-tbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	height: 32px;
	min-width: 32px;
	padding: 0 9px;
	font-size: 12.5px;
	font-weight: 600;
	color: #37404a;
	background: transparent;
	border: none;
	border-radius: 7px;
	cursor: pointer;
	transition: background .15s;
	white-space: nowrap;
}
.ab-tbtn:hover { background: #e6e8eb; }
.ab-tbtn.active { background: #C5453E; color: #fff; }
.ab-tbtn.ab-primary { background: #C5453E; color: #fff; }
.ab-tbtn.ab-primary:hover { background: #a93a34; }
.ab-tbtn.ab-logo {
	background: #C5453E; color: #fff;
	font-family: Georgia, serif; font-weight: 700; font-size: 15px;
}
.ab-tbtn.ab-logo:hover { background: #a93a34; }
.ab-vsep { width: 1px; height: 20px; background: #d9dbe0; margin: 0 2px; }
.ab-flex { flex: 1; }
.ab-select {
	height: 32px;
	border: 1px solid #e0e2e6;
	border-radius: 7px;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	color: #37404a;
	padding: 0 6px;
	cursor: pointer;
	max-width: 170px;
}
.ab-page.active { background: #fff; color: #C5453E; box-shadow: inset 0 0 0 1px #f0d2d0; }

.ab-main {
	display: grid;
	grid-template-columns: 210px 1fr 240px;
	height: 660px;
}
.ab-layers, .ab-props {
	background: #ffffff;
	overflow-y: auto;
}
.ab-layers { border-right: 1px solid #e3e5e9; }
.ab-props { border-left: 1px solid #e3e5e9; }
.ab-panel-head {
	padding: 10px 12px 7px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: #8a919b;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 2;
}
.ab-layers-list { padding: 0 6px 10px; }
.ab-layer {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 5px 6px;
	border-radius: 7px;
	cursor: pointer;
	margin-bottom: 1px;
}
.ab-layer:hover { background: #f3f4f6; }
.ab-layer.selected { background: #fdeceb; box-shadow: inset 0 0 0 1px #f0c9c7; }
.ab-layer-ico { width: 18px; text-align: center; font-size: 12px; color: #8a919b; flex-shrink: 0; }
.ab-layer-name {
	flex: 1;
	min-width: 0;
	border: 1px solid transparent;
	background: transparent;
	font-size: 12px;
	font-weight: 500;
	color: #33383d;
	padding: 2px 4px;
	border-radius: 4px;
}
.ab-layer-name:hover, .ab-layer-name:focus { border-color: #dfe1e5; background: #fff; outline: none; }
.ab-lbtn {
	border: none; background: transparent;
	font-size: 12px; cursor: pointer;
	padding: 2px 3px; border-radius: 4px;
	opacity: .65;
}
.ab-lbtn:hover { opacity: 1; background: #e6e8eb; }

.ab-canvas-wrap {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(45deg, #eceef0 25%, transparent 25%, transparent 75%, #eceef0 75%),
		linear-gradient(45deg, #eceef0 25%, transparent 25%, transparent 75%, #eceef0 75%);
	background-color: #e8eaee;
	background-size: 22px 22px;
	background-position: 0 0, 11px 11px;
}
.ab-canvas-wrap .canvas-container { box-shadow: 0 8px 32px rgba(24,29,32,.18); }

.ab-props-body { padding: 4px 12px 16px; }
.ab-empty { font-size: 12px; color: #9aa1aa; padding: 8px 0; }
.ab-pgroup { margin-bottom: 10px; flex: 1; }
.ab-pgroup label {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #9aa1aa;
	margin-bottom: 3px;
}
.ab-pgroup input[type="text"], .ab-pgroup input[type="number"], .ab-pgroup select {
	width: 100%;
	height: 30px;
	border: 1px solid #e0e2e6;
	border-radius: 6px;
	padding: 0 7px;
	font-size: 12.5px;
	font-weight: 500;
	color: #33383d;
	background: #fff;
	outline: none;
}
.ab-pgroup input:focus, .ab-pgroup select:focus { border-color: #C5453E; }
.ab-pgroup input[type="color"] {
	width: 100%; height: 32px;
	padding: 2px; border: 1px solid #e0e2e6; border-radius: 6px;
	background: #fff; cursor: pointer;
}
.ab-pgroup input[type="range"] { width: 100%; }
.ab-prow2 { display: flex; gap: 8px; }
.ab-prow6 { display: flex; gap: 4px; margin: 4px 0 10px; }
.ab-prow6 .ie-tl-btn { flex: 1; justify-content: center; min-width: 0; padding: 0 4px; font-size: 12px; }

.ab-toast {
	position: fixed;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%) translateY(16px);
	background: #1c2127;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 10px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s, transform .25s;
	z-index: 999;
}
.ab-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
	.ab-main { grid-template-columns: 1fr; height: auto; }
	.ab-layers { max-height: 180px; border-right: none; border-bottom: 1px solid #e3e5e9; }
	.ab-props { max-height: 240px; border-left: none; border-top: 1px solid #e3e5e9; }
	.ab-canvas-wrap { height: 420px; }
}

/* ============ CodeRunner ============ */
.codearea { max-width: 1500px !important; }
.cr-app {
	background: #1b1e24;
	border: 1px solid #2a2f38;
	border-radius: 14px;
	overflow: hidden;
}
.cr-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 8px 12px;
	background: #22262e;
	border-bottom: 1px solid #2a2f38;
}
.cr-group { display: inline-flex; align-items: center; gap: 6px; }
.cr-logo { color: #C5453E; font-weight: 800; font-size: 16px; font-family: monospace; }
.cr-flex { flex: 1; }
.cr-btn {
	display: inline-flex; align-items: center; gap: 4px;
	height: 30px; padding: 0 10px;
	font-size: 12px; font-weight: 600;
	color: #cfd4da;
	background: #2a2f38;
	border: 1px solid #343a44;
	border-radius: 7px;
	cursor: pointer;
	transition: background .15s;
}
.cr-btn:hover { background: #343b46; }
.cr-btn.cr-run { background: #16a34a; border-color: #16a34a; color: #fff; }
.cr-btn.cr-run:hover { background: #12833c; }
.cr-toggle {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 12px; font-weight: 600; color: #cfd4da;
	cursor: pointer; user-select: none;
}
.cr-tabs { background: #1b1e24; }
.cr-tab {
	height: 30px; padding: 0 13px;
	font-size: 12px; font-weight: 700;
	color: #9aa3ad;
	background: transparent;
	border: none; border-radius: 7px;
	cursor: pointer;
	display: inline-flex; align-items: center; gap: 5px;
}
.cr-tab:hover { color: #e8eaed; }
.cr-tab.active { background: #2a2f38; color: #fff; }
.cr-badge {
	background: #C5453E; color: #fff;
	font-size: 10px; font-weight: 700;
	min-width: 16px; height: 16px;
	border-radius: 8px;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0 4px;
}
.cr-select {
	height: 30px;
	background: #2a2f38;
	color: #cfd4da;
	border: 1px solid #343a44;
	border-radius: 7px;
	font-size: 12px;
	font-weight: 600;
	padding: 0 6px;
	cursor: pointer;
}
.cr-main { display: grid; grid-template-columns: 1fr 1fr; height: 640px; }
.cr-main.cr-code { grid-template-columns: 1fr; }
.cr-main.cr-code .cr-preview-col { display: none; }
.cr-main.cr-preview { grid-template-columns: 1fr; }
.cr-main.cr-preview .cr-editors { display: none; }
.cr-editors { display: flex; flex-direction: column; border-right: 1px solid #2a2f38; min-width: 0; }
.cr-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cr-pane[hidden] { display: none !important; }
.cr-editor { flex: 1; min-height: 0; }
.cr-editor .ace_editor { background: #16181d !important; }
.cr-con-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 6px 10px;
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
	color: #9aa3ad;
	background: #22262e;
	border-bottom: 1px solid #2a2f38;
}
.cr-console { flex: 1; overflow-y: auto; padding: 6px 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: #16181d; }
.cr-con-row {
	display: flex; gap: 8px;
	padding: 4px 12px;
	border-bottom: 1px solid #1e2127;
	color: #d5dae0;
	white-space: pre-wrap;
	word-break: break-word;
}
.cr-con-ico { opacity: .5; flex-shrink: 0; }
.cr-warn .cr-con-txt, .cr-warn .cr-con-ico { color: #f5c542; }
.cr-error .cr-con-txt, .cr-error .cr-con-ico { color: #ff6b6b; }
.cr-preview-col { display: flex; flex-direction: column; min-width: 0; }
.cr-prev-head { flex: 1; display: flex; flex-direction: column; position: relative; }
.cr-prev-head > span {
	padding: 6px 10px;
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
	color: #9aa3ad;
	background: #22262e;
	border-bottom: 1px solid #2a2f38;
}
#cr-frame { flex: 1; width: 100%; border: none; background: #fff; }
@media (max-width: 860px) {
	.cr-main { grid-template-columns: 1fr; height: auto; }
	.cr-editors { border-right: none; border-bottom: 1px solid #2a2f38; }
	.cr-pane:not([hidden]) { height: 340px; }
	.cr-preview-col { height: 380px; }
	.cr-main.cr-code .cr-editors, .cr-main.cr-preview .cr-preview-col { height: 560px; }
}

/* ============ Local AI ============ */
.lai-models {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 10px;
	padding: 12px;
	background: #22262e;
	border-bottom: 1px solid #2a2f38;
}
.lai-card {
	background: #1b1e24;
	border: 1px solid #343a44;
	border-radius: 12px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.lai-card.active { border-color: #16a34a; box-shadow: 0 0 0 1px #16a34a; }
.lai-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.lai-card-top strong { font-size: 13px; color: #e8eaed; }
.lai-cached { font-size: 10.5px; font-weight: 700; color: #4ade80; white-space: nowrap; }
.lai-card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: #9aa3ad; }
.lai-tag { font-weight: 700; text-transform: capitalize; }
.lai-card-blurb { font-size: 11.5px; color: #8a919b; line-height: 1.45; flex: 1; }
.lai-badge { font-size: 11px; font-weight: 700; margin-left: 6px; }
.lai-progress { padding: 10px 12px 4px; background: #22262e; }
.lai-chat {
	display: flex; flex-direction: column;
	height: 560px;
	background: #16181d;
}
.lai-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lai-msg {
	max-width: 82%;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 13.5px;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
}
.lai-user { align-self: flex-end; background: #C5453E; color: #fff; border-bottom-right-radius: 3px; }
.lai-ai { align-self: flex-start; background: #22262e; color: #e2e6ea; border-bottom-left-radius: 3px; }
.lai-sys { align-self: center; background: transparent; color: #8a919b; font-size: 12.5px; text-align: center; }
.lai-msg.streaming::after {
	content: '▍';
	animation: lai-blink 1s steps(1) infinite;
	color: #C5453E;
}
@keyframes lai-blink { 50% { opacity: 0; } }
.lai-code {
	background: #0d0f13;
	border: 1px solid #2a2f38;
	border-radius: 8px;
	padding: 10px 12px;
	overflow-x: auto;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 12px;
	margin: 8px 0;
	white-space: pre;
}
.lai-inline {
	background: #0d0f13; border: 1px solid #2a2f38;
	border-radius: 4px; padding: 1px 5px;
	font-family: ui-monospace, Menlo, monospace; font-size: 12px;
}
.lai-inputrow { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #2a2f38; background: #1b1e24; }
.lai-input {
	flex: 1; resize: none;
	background: #22262e;
	border: 1px solid #343a44;
	border-radius: 10px;
	color: #e8eaed;
	font-size: 13.5px;
	font-family: inherit;
	padding: 10px 12px;
	outline: none;
}
.lai-input:focus { border-color: #C5453E; }
.lai-inputrow .cr-btn { height: auto; min-height: 44px; padding: 0 18px; }

/* Local AI chat polish */
.lai-msg-wrap {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	animation: lai-in .3s cubic-bezier(.2,.8,.3,1);
}
.lai-wrap-user { flex-direction: row-reverse; }
.lai-wrap-sys { justify-content: center; }
@keyframes lai-in {
	from { opacity: 0; transform: translateY(10px) scale(.97); }
	to { opacity: 1; transform: none; }
}
.lai-avatar {
	width: 30px; height: 30px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px;
	flex-shrink: 0;
	background: #2a2f38;
	color: #e8eaed;
	border: 1px solid #343a44;
}
.lai-wrap-user .lai-avatar { background: #C5453E; border-color: #a93a34; }
.lai-msg.lai-user { background: #C5453E; color: #fff; }
.lai-msg.lai-ai { background: #22262e; color: #e2e6ea; }
.lai-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.lai-dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: #8a919b;
	animation: lai-bounce 1.2s infinite ease-in-out;
}
.lai-dot:nth-child(2) { animation-delay: .15s; }
.lai-dot:nth-child(3) { animation-delay: .3s; }
@keyframes lai-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: .4; }
	30% { transform: translateY(-6px); opacity: 1; }
}
.lai-codeblock {
	background: #0d0f13;
	border: 1px solid #2a2f38;
	border-radius: 10px;
	overflow: hidden;
	margin: 8px 0;
}
.lai-codeblock-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 5px 10px;
	background: #191d23;
	font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
	color: #8a919b;
}
.lai-copy {
	background: #2a2f38; color: #cfd4da;
	border: none; border-radius: 5px;
	font-size: 10.5px; font-weight: 600;
	padding: 3px 9px; cursor: pointer;
}
.lai-copy:hover { background: #37404a; }
.lai-codeblock pre {
	margin: 0; padding: 10px 12px;
	overflow-x: auto;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 12px;
	line-height: 1.5;
	color: #dfe5ec;
}
.lai-stopped { margin-top: 6px; font-size: 11px; color: #8a919b; font-style: italic; }
.lai-msg.lai-ai, .lai-msg.lai-user { border-radius: 14px; padding: 11px 15px; }
.lai-wrap-user .lai-msg { border-bottom-right-radius: 4px; }
.lai-wrap-ai .lai-msg { border-bottom-left-radius: 4px; }

/* ============ Video Editor — multi-track NLE (dark) ============ */
.nle {
	background: #16181d;
	border: 1px solid #2a2f38;
	border-radius: 14px;
	overflow: hidden;
	color: #dfe3e8;
	font-size: 13px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100dvh;
	max-height: 100vh;
	max-height: 100dvh;
}
.nle-topbar {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	padding: 9px 12px;
	background: #1d2026;
	border-bottom: 1px solid #2a2f38;
}
.nle-logo { color: #C5453E; font-size: 16px; }
.nle-sep { width: 1px; height: 20px; background: #2f353d; }
.nle-flex { flex: 1; }
.nle-btn {
	display: inline-flex; align-items: center; gap: 4px;
	height: 30px; padding: 0 10px;
	font-size: 12px; font-weight: 600;
	color: #cfd4da; background: #262b33;
	border: 1px solid #343a44;
	border-radius: 7px; cursor: pointer;
}
.nle-btn:hover { background: #31363f; }
.nle-btn.nle-export { background: #C5453E; border-color: #C5453E; color: #fff; }
.nle-btn.nle-export:hover { background: #a93a34; }
.nle-btn.nle-play { min-width: 40px; justify-content: center; font-size: 14px; }
.nle-select {
	height: 30px; background: #262b33; color: #cfd4da;
	border: 1px solid #343a44; border-radius: 7px;
	font-size: 12px; font-weight: 600; padding: 0 6px;
}
.nle-ratio-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 2px;
	min-width: 0;
}
.nle-ratio-lbl {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .02em;
	color: #8a919b;
	text-transform: uppercase;
}
.nle-ratio-num {
	width: 46px;
	height: 30px;
	background: #262b33;
	color: #cfd4da;
	border: 1px solid #343a44;
	border-radius: 7px;
	font-size: 12px;
	font-weight: 600;
	padding: 0 6px;
	text-align: center;
}
.nle-ratio-num:disabled {
	opacity: .45;
	cursor: not-allowed;
}
.nle-ratio-x {
	color: #7d858f;
	font-weight: 700;
}
.nle-ratio-size {
	font-size: 11px;
	font-weight: 700;
	color: #9aa3ad;
	font-variant-numeric: tabular-nums;
}
.nle-status { padding: 7px 12px; font-size: 12.5px; color: #9aa3ad; background: #191c22; }
.nle-progress { padding: 4px 12px 8px; background: #191c22; }
.nle-panel-title {
	padding: 8px 10px 6px;
	font-size: 10.5px; font-weight: 800;
	text-transform: uppercase; letter-spacing: .6px;
	color: #7d858f;
}
.nle-empty { font-size: 12px; color: #6b737d; padding: 6px 2px; }

/* media bin */
.nle-bin-wrap { background: #191c22; border-bottom: 1px solid #2a2f38; }
.nle-bin {
	display: flex; gap: 10px;
	overflow-x: auto;
	padding: 2px 12px 12px;
	min-height: 74px;
	align-items: stretch;
}
.nle-media {
	width: 108px; flex-shrink: 0;
	background: #22262e;
	border: 1px solid #343a44;
	border-radius: 8px;
	padding: 6px;
	cursor: grab;
	text-align: center;
}
.nle-media:hover { border-color: #C5453E; }
.nle-thumb {
	width: 100%; height: 46px;
	object-fit: cover;
	border-radius: 5px;
	background: #101216;
	display: flex; align-items: center; justify-content: center;
	font-size: 20px;
}
.nle-media-name {
	font-size: 10.5px; font-weight: 600; color: #d5dae0;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	margin-top: 4px;
}
.nle-media-meta { font-size: 9.5px; color: #7d858f; }

/* preview + props */
.nle-mid {
	display: grid;
	grid-template-columns: 1fr 250px;
	background: #101216;
	min-height: 180px;
	height: var(--nle-mid-h, 44vh);
	flex: 0 0 var(--nle-mid-h, 44vh);
	overflow: hidden;
}
.nle-preview {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
	min-height: 0;
	overflow: hidden;
}
.nle-preview canvas {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	flex: 0 1 auto;
	min-height: 0;
	min-width: 0;
	border-radius: 8px;
	background: #000;
	box-shadow: 0 6px 24px rgba(0,0,0,.5);
	align-self: center;
}
.nle-transport {
	display: flex; align-items: center; gap: 8px;
	width: 100%; max-width: 860px;
	background: #1d2026;
	border: 1px solid #2a2f38;
	border-radius: 8px;
	padding: 6px 10px;
	flex: 0 0 auto;
}
.nle-time { font-size: 12px; font-weight: 600; color: #9aa3ad; font-variant-numeric: tabular-nums; }
.nle-props { border-left: 1px solid #2a2f38; background: #191c22; overflow-y: auto; padding-bottom: 12px; min-height: 0; }
.nle-props label {
	display: block; padding: 4px 12px;
	font-size: 11.5px; color: #b9c0c8;
}
.nle-props label textarea, .nle-props label select {
	width: 100%; margin-top: 3px;
	background: #22262e; color: #e8eaed;
	border: 1px solid #343a44; border-radius: 6px;
	padding: 5px 7px; font-size: 12.5px; font-family: inherit;
	outline: none;
}
.nle-props label input[type="number"], .nle-props label input[type="color"] {
	width: 100%; margin-top: 3px;
	background: #22262e; border: 1px solid #343a44;
	border-radius: 6px; padding: 3px 6px; color: #e8eaed;
}
.nle-props label input[type="range"] { width: 100%; margin-top: 4px; }
.nle-prow { display: flex; justify-content: space-between; padding: 4px 12px; font-size: 12px; color: #9aa3ad; }
.nle-prow b { color: #dfe3e8; }
.nle-prow2 { display: flex; gap: 8px; padding: 2px 12px; }
.nle-prow2 label { flex: 1; }

/* timeline */
.nle-mid-resizer {
	height: 10px;
	background: #1a1d23;
	border-top: 1px solid #2a2f38;
	border-bottom: 1px solid #2a2f38;
	cursor: ns-resize;
	position: relative;
	flex: 0 0 auto;
}
.nle-mid-resizer::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 3px;
	border-radius: 99px;
	background: #59616d;
}
.nle-mid-resizer:hover::before { background: #C5453E; }
.nle-tl {
	background: #1d2026;
	border-top: 1px solid #2a2f38;
	flex: 1 1 auto;
	min-height: 170px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.nle-tl-toolbar {
	display: flex; align-items: center; gap: 8px;
	padding: 7px 12px;
	border-bottom: 1px solid #2a2f38;
	flex: 0 0 auto;
}
.nle-tl-scroll { overflow-x: auto; overflow-y: auto; padding-bottom: 4px; flex: 1 1 auto; min-height: 0; }
.nle-tl-inner { position: relative; min-width: 100%; }
.nle-ruler {
	position: relative;
	height: 24px;
	background: #191c22;
	border-bottom: 1px solid #2a2f38;
}
.nle-tick {
	position: absolute; top: 0; bottom: 0;
	border-left: 1px solid #2f353d;
	font-size: 9.5px; color: #7d858f;
	padding: 3px 0 0 4px;
	font-variant-numeric: tabular-nums;
}
.nle-tick-major { border-left-color: #4a525c; color: #b9c0c8; }
.nle-track-row {
	display: flex;
	align-items: stretch;
	height: 56px;
	border-bottom: 1px solid #23272e;
	position: relative;
}
.nle-track-head {
	width: 128px; flex-shrink: 0;
	background: #191c22;
	border-right: 1px solid #2a2f38;
	display: flex; flex-direction: column; justify-content: center;
	padding: 4px 8px;
	z-index: 3;
}
.nle-track-name { font-size: 11.5px; font-weight: 700; color: #cfd4da; }
.nle-track-btns { display: flex; gap: 2px; margin-top: 3px; }
.nle-tbtn {
	border: none; background: transparent;
	color: #8a919b; font-size: 11px;
	cursor: pointer; padding: 2px 4px; border-radius: 4px;
}
.nle-tbtn:hover { background: #262b33; color: #dfe3e8; }
.nle-dragtr { cursor: grab; }
.nle-dragtr:active { cursor: grabbing; }
.nle-lane { position: relative; flex: 1; }
.nle-track-row.drop-ok { background: #1f242c; }
.nle-track-row.drop-ok .nle-lane { outline: 1px dashed #C5453E; outline-offset: -4px; }
.nle-track-row.tr-dragging { opacity: .5; }
.nle-track-row.tr-drop-before::before,
.nle-track-row.tr-drop-after::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: #4ade80;
	z-index: 15;
}
.nle-track-row.tr-drop-before::before { top: 0; }
.nle-track-row.tr-drop-after::after { bottom: 0; }

.nle-clip {
	position: absolute; top: 5px; bottom: 5px;
	border-radius: 7px;
	overflow: hidden;
	cursor: grab;
	border: 1.5px solid transparent;
	font-size: 10.5px;
	display: flex; align-items: center;
}
.nle-clip.selected { border-color: #fff; box-shadow: 0 0 0 1.5px #C5453E; z-index: 5; }
.nle-clip-video { background: linear-gradient(180deg, #1e3a5f, #16283f); border-color: #2f5a8f; }
.nle-clip-audio { background: linear-gradient(180deg, #14432a, #0e2f1d); border-color: #1f7a45; }
.nle-clip-image { background: linear-gradient(180deg, #4a3512, #32230c); border-color: #8a6a1f; }
.nle-clip-text { background: linear-gradient(180deg, #3b1d52, #29143a); border-color: #6d3fa8; }
.nle-clip-label {
	padding: 0 8px;
	color: #eef1f5; font-weight: 600;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	z-index: 2;
}
.nle-clip-thumb {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: .38;
}
.nle-handle {
	position: absolute; top: 0; bottom: 0; width: 9px;
	background: rgba(255,255,255,.25);
	cursor: ew-resize;
	z-index: 3;
}
.nle-hl { left: 0; border-radius: 6px 0 0 6px; }
.nle-hr { right: 0; border-radius: 0 6px 6px 0; }
.nle-handle:hover { background: #C5453E; }

.nle-playhead {
	position: absolute; top: 0; bottom: 0;
	width: 2px;
	background: #ff4d4f;
	pointer-events: none;
	z-index: 10;
}
.nle-playhead::before {
	content: '';
	position: absolute; top: 0; left: -5px;
	border: 6px solid transparent;
	border-top-color: #ff4d4f;
}

@media (max-width: 860px) {
	.nle-mid { grid-template-columns: 1fr; }
	.nle-props { border-left: none; border-top: 1px solid #2a2f38; }
	.nle-track-head { width: 96px; }
	.nle-ratio-wrap { width: 100%; flex-wrap: wrap; gap: 5px; }
}

.nle-addtr-wrap { position: relative; display: inline-block; }
.nle-addtr-menu {
	position: absolute; top: 100%; left: 0; margin-top: 6px;
	background: #22262e;
	border: 1px solid #343a44;
	border-radius: 10px;
	padding: 5px;
	z-index: 50;
	min-width: 250px;
	box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.nle-addtr-menu button {
	display: block; width: 100%;
	text-align: left;
	background: transparent;
	border: none;
	color: #cfd4da;
	font-size: 12.5px; font-weight: 600;
	padding: 9px 12px;
	border-radius: 7px;
	cursor: pointer;
}
.nle-addtr-menu button:hover { background: #C5453E; color: #fff; }

/* clip drag feel */
.nle-clip {
	transition: box-shadow .15s, filter .15s;
	transform-origin: left center;
}
.nle-clip.nle-dragging {
	z-index: 40;
	opacity: .88;
	box-shadow: 0 14px 34px rgba(0,0,0,.55), 0 0 0 2px #C5453E;
	cursor: grabbing;
	filter: brightness(1.12);
	transition: none;
	transform-origin: left center;   /* pointer stays locked to the left head */
}
.nle-track-row.drop-ok { outline: 2px dashed #4ade80; outline-offset: -3px; background: rgba(74,222,128,.06); }
.nle-track-row.drop-ok .nle-track-name { color: #4ade80; }

.nle-resume {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	padding: 10px 12px;
	background: #1a2f1a;
	border-bottom: 1px solid #2a4a2a;
	font-size: 13px; font-weight: 600; color: #9fe0a8;
}
.nle-resume .nle-btn { height: 30px; }

.nle-proj-tools {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.nle-proj-chip {
	font-size: 11.5px;
	color: #bac2cc;
	padding: 0 4px;
	white-space: nowrap;
}

.nle-proj-chip b { color: #e5e9ef; }

.nle-project-picker {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(7, 10, 14, 0.78);
	backdrop-filter: blur(3px);
	z-index: 1100;
	padding: 12px;
}

.nle-proj-modal {
	width: min(860px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	background: #171b22;
	border: 1px solid #2b323d;
	border-radius: 14px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
	overflow: auto;
	padding: 14px;
}

.nle-proj-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.nle-proj-head h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #eef2f7;
}

.nle-proj-head-actions {
	display: inline-flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.nle-proj-close {
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid #343a44;
	border-radius: 7px;
	background: #262b33;
	color: #cfd4da;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}
.nle-proj-close:hover { background: #31363f; color: #fff; }

.nle-proj-create-row {
	display: flex;
	gap: 8px;
	margin: 12px 0;
	align-items: center;
}

.nle-proj-create-row input {
	flex: 1;
	min-width: 180px;
}

.nle-proj-list {
	display: grid;
	gap: 8px;
	margin-top: 8px;
}

.nle-proj-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 8px;
	align-items: center;
	background: #1d222a;
	border: 1px solid #2b323d;
	border-radius: 10px;
	padding: 10px;
}

.nle-proj-meta {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.nle-proj-meta b {
	color: #eff2f7;
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nle-proj-meta b em {
	font-style: normal;
	color: #4ade80;
	font-weight: 600;
}

.nle-proj-meta span {
	font-size: 11px;
	color: #9da7b2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 860px) {
	.nle-proj-tools { order: 10; width: 100%; overflow-x: auto; padding-bottom: 2px; }
	.nle-proj-row { grid-template-columns: 1fr auto; }
	.nle-proj-row .nle-btn:last-child { grid-column: 2; }
	.nle-proj-create-row { flex-wrap: wrap; }
	.nle-proj-create-row .nle-btn { flex: 1 1 120px; justify-content: center; }
}

.nle-ctx {
	position: fixed;
	background: #22262e;
	border: 1px solid #343a44;
	border-radius: 10px;
	padding: 5px;
	z-index: 200;
	min-width: 190px;
	box-shadow: 0 12px 34px rgba(0,0,0,.55);
}
.nle-ctx button {
	display: block; width: 100%;
	text-align: left;
	background: transparent;
	border: none;
	color: #cfd4da;
	font-size: 12.5px; font-weight: 600;
	padding: 8px 11px;
	border-radius: 6px;
	cursor: pointer;
}
.nle-ctx button:hover { background: #C5453E; color: #fff; }

/* Artboard fullscreen for the video editor */
.nle-fs {
	position: fixed !important;
	inset: 0;
	z-index: 600;
	border-radius: 0 !important;
	border: none !important;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	background: #16181d;
	height: 100vh !important;
}
.nle:fullscreen {
	border-radius: 0;
	border: none;
	background: #16181d;
	height: 100vh;
	overflow-y: auto;
}
.nle:fullscreen .nle-mid, .nle-fs .nle-mid { min-height: 180px; }
.nle:fullscreen .nle-preview canvas, .nle-fs .nle-preview canvas {
	max-width: 100%;
	width: auto;
	max-height: 100%;
}
.nle:fullscreen .nle-bin-wrap, .nle-fs .nle-bin-wrap { max-height: 110px; overflow-y: hidden; }
.nle:fullscreen .nle-tl-scroll, .nle-fs .nle-tl-scroll { max-height: none; }

body.nle-resizing {
	user-select: none;
	cursor: ns-resize;
}
body.nle-trackdragging {
	user-select: none;
	cursor: ns-resize;
}

.nle-marquee {
	position: absolute;
	border: 1.5px dashed #4ade80;
	background: rgba(74,222,128,.08);
	z-index: 30;
	pointer-events: none;
}

.nle-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10,12,15,.78);
	backdrop-filter: blur(4px);
	z-index: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nle-overlay[hidden] { display: none; }
.nle-overlay-card {
	background: #1d2127;
	border: 1px solid #343a44;
	border-radius: 16px;
	padding: 26px 30px;
	width: min(420px, 86vw);
	text-align: center;
	box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.nle-spinner {
	width: 44px; height: 44px;
	margin: 0 auto 14px;
	border: 4px solid #2f353d;
	border-top-color: #C5453E;
	border-radius: 50%;
	animation: nle-spin .9s linear infinite;
}
@keyframes nle-spin { to { transform: rotate(360deg); } }
.nle-overlay-title { font-size: 15px; font-weight: 700; color: #e8eaed; margin-bottom: 12px; }
.nle-overlay-sub { font-size: 12px; color: #9aa3ad; margin-top: 8px; font-variant-numeric: tabular-nums; min-height: 15px; }

/* ============ Mega menu header ============ */
.mega-nav {
	display: flex;
	align-items: center;
	gap: 2px;
}
.mega-item { position: relative; }
.mega-trigger {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 8px 14px;
	font-size: 14px; font-weight: 600;
	color: #33383d;
	text-decoration: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.mega-trigger:hover { background: #f0f0f0; color: #C5453E; }
.mega-panel {
	position: absolute; top: 100%; left: 50%;
	transform: translateX(-50%) translateY(8px);
	background: #fff;
	border: 1px solid #e3e3e4;
	border-radius: 14px;
	padding: 8px;
	min-width: 270px;
	box-shadow: 0 16px 48px rgba(0,0,0,.13);
	opacity: 0;
	visibility: hidden;
	transition: opacity .18s, transform .18s, visibility .18s;
	z-index: 999;
}
.mega-item:hover .mega-panel {
	opacity: 1; visibility: visible;
	transform: translateX(-50%) translateY(0);
}
.mega-panel a {
	display: flex; flex-direction: column; gap: 1px;
	padding: 9px 14px;
	font-size: 13.5px; font-weight: 600;
	color: #33383d;
	text-decoration: none;
	border-radius: 8px;
	transition: background .12s, color .12s;
}
.mega-panel a:hover { background: #fdf0ef; color: #C5453E; }
.mega-panel a small {
	font-size: 11px; font-weight: 400;
	color: #9aa3ad; pointer-events: none;
}
.mega-panel a:hover small { color: #C5453E; }

/* ============ Footer ============ */
.site-footer {
	background: #16181d;
	color: #9aa3ad;
	padding: 48px 24px 24px;
	margin-top: 60px;
}
.footer-brand { display: flex; align-items: center; gap: 4px; }
.footer-brand .brand-badge {
	background: #fff; color: #16181d;
	font-size: 11px; font-weight: 700;
	padding: 2px 8px; border-radius: 4px;
}
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.footer-col { display: flex; flex-direction: column; gap: 6px; min-width: 130px; }
.footer-col-head {
	font-size: 11px !important; font-weight: 800;
	text-transform: uppercase; letter-spacing: .6px;
	color: #6b737d !important;
	margin: 0 0 4px;
}
.footer-col a {
	font-size: 13px; font-weight: 500;
	color: #9aa3ad; text-decoration: none;
	transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
	border-top: 1px solid #2a2f38;
	padding-top: 16px !important;
}
.footer-copy, .footer-powered { font-size: 12px !important; color: #6b737d !important; margin: 0 !important; }
.footer-powered a { color: #C5453E; text-decoration: none; font-weight: 600; }
.footer-powered a:hover { color: #ff6b6b; }

/* ============ Responsive header (drawer) ============ */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
	width: 30px;
	height: 30px;
	padding: 6px;
	background: transparent;
	border: 1px solid #e3e3e4;
	border-radius: 10px;
	cursor: pointer;
	flex-shrink: 0;
}
.nav-toggle-bar {
	display: block;
	height: 2px;
	width: 100%;
	background: #33383d;
	border-radius: 2px;
	transition: transform .22s, opacity .22s;
}
.site-header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* search inside the nav row, pushed right on desktop */
.header-search-form {
	margin-left: auto;
	display: flex;
	align-items: center;
	flex-shrink: 0;
}
.header-search-form .wp-block-search__inside-wrapper {
	display: flex;
	align-items: center;
	background: #ffffff;
	border-radius: 999px;
	height: 44px;
	padding: 0 !important;
	transition: box-shadow .3s, background .3s;
}
.header-search-form .wp-block-search__inside-wrapper:focus-within {
	background: #F0F0F0;
	box-shadow: 0 0 0 2px rgba(197, 69, 62, 0.25);
}
.header-search-form input.wp-block-search__input {
	background: transparent;
	border: none;
	box-shadow: none;
	height: 44px;
	padding: 0 0 0 14px;
	font-size: 14px;
	color: #525658;
	min-width: 0;
	width: 180px;
	flex: 1;
}
.header-search-form input.wp-block-search__input:focus { outline: none; }
.header-search-form .wp-block-search__button svg {
	fill: none;
}
.header-search-form .wp-block-search__button {
	background: transparent !important;
	color: #707375;
	padding: 8px 12px !important;
	margin: 0;
	border: none !important;
	border-radius: 10px !important;
	cursor: pointer;
}

.nav-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 18, 22, 0.5);
	z-index: 98;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s, visibility .25s;
}
.site-header.nav-open .nav-backdrop,
.nav-backdrop:not([hidden]) {
	opacity: 1;
	visibility: visible;
}

@media (min-width: 1025px) {
	.nav-backdrop { display: none; }
}

@media (max-width: 1024px) {
	.nav-toggle { display: flex; }
	.header-search-form { margin-left: 0; }

	/* off-canvas drawer */
	.mega-nav {
		position: fixed;
		top: 0;
		right: 0;
		height: 100dvh;
		width: min(330px, 88vw);
		background: #fff;
		box-shadow: -16px 0 48px rgba(0, 0, 0, 0.13);
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		padding: 72px 16px 24px;
		overflow-y: auto;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .28s ease, visibility .28s;
		z-index: 100;
	}
	.site-header.nav-open .mega-nav {
		transform: translateX(0);
		visibility: visible;
	}

	/* category rows in the drawer */
	.mega-item {
		border-bottom: 1px solid #f0f0f1;
	}
	.mega-trigger {
		width: 100%;
		justify-content: space-between;
		padding: 15px 6px;
		border-radius: 8px;
		font-size: 15px;
	}
	.mega-trigger svg {
		transition: transform .22s;
	}
	.mega-item.is-open > .mega-trigger svg {
		transform: rotate(180deg);
	}

	/* accordion panels */
	.mega-panel {
		position: static;
		transform: none;
		opacity: 1;
		visibility: visible;
		background: transparent;
		border: none;
		box-shadow: none;
		border-radius: 0;
		min-width: 0;
		padding: 0 6px 0 14px;
		max-height: 0;
		overflow: hidden;
		transition: max-height .28s ease;
	}
	.mega-panel a {
		padding: 11px 4px;
		border-bottom: 1px dashed #f0f0f1;
	}
	.mega-panel a small { margin-top: -2px; }

	/* desktop hover trick disabled here; rely on clicked accordion */
	.mega-item:hover .mega-panel {
		transform: none;
	}
	.mega-item.is-open .mega-panel {
		max-height: 420px;
	}

	.brand-logo-img { height: 34px !important; width: auto !important; }
}

body.nav-locked {
	overflow: hidden;
}

/* ============ Artboard: fullscreen + frame clip ============ */
#ab-editor:fullscreen,
#ab-editor:-webkit-full-screen {
	max-width: 100% !important;
	width: 100vw;
	height: 100vh;
	border-radius: 0;
	border: none;
	display: flex;
	flex-direction: column;
}
#ab-editor:fullscreen .ab-toolbar,
#ab-editor:-webkit-full-screen .ab-toolbar {
	position: sticky;
	top: 0;
	z-index: 5;
}
#ab-editor:fullscreen .ab-main,
#ab-editor:-webkit-full-screen .ab-main {
	flex: 1;
	height: calc(100vh - 54px);
}
#ab-fs {
	font-size: 15px;
}
.ab-clip-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.ab-clip-toggle {
	height: 30px;
	min-width: 52px;
	padding: 0 12px;
	border: 1px solid #dfe1e5;
	border-radius: 7px;
	background: #f3f4f6;
	font-weight: 600;
	font-size: 12px;
	color: #37404a;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.ab-clip-toggle.active {
	background: #C5453E;
	color: #fff;
	border-color: #C5453E;
}

/* ============ Search suggestions ============ */
.ss-suggest {
	position: absolute;
	z-index: 99999;
	background: #fff;
	border: 1px solid #e3e5e9;
	border-radius: 12px;
	box-shadow: 0 12px 36px rgba(24, 29, 32, .14);
	overflow: hidden;
	padding: 6px;
	font-family: inherit;
}
.ss-item {
	display: flex;
	align-items: center;
	padding: 9px 12px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: #2d333a;
	transition: background .1s, color .1s;
}
.ss-item .ss-tool {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ss-item:hover,
.ss-item.active {
	background: #fdf0ef;
	color: #C5453E;
}
