.kol-art-page {
	--kol-art-ink: #17251d;
	--kol-art-muted: #65736a;
	--kol-art-line: #d9e2dc;
	--kol-art-accent: #347b4c;
	--kol-art-accent-soft: #e8f5ec;
	box-sizing: border-box;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(16px, 3vw, 32px);
	color: var(--kol-art-ink);
	font-family: inherit;
}

.kol-art-page *,
.kol-art-page *::before,
.kol-art-page *::after {
	box-sizing: border-box;
}

.kol-art-page-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.kol-art-page-header > div {
	display: flex;
	align-items: center;
	gap: 10px;
}

.kol-art-page-header .dashicons {
	width: 34px;
	height: 34px;
	font-size: 34px;
	color: var(--kol-art-accent);
}

.kol-art-page-header h1,
.kol-art-studio h2,
.kol-art-gallery-heading h2,
.kol-art-card h3 {
	margin: 0;
	color: var(--kol-art-ink);
	font-family: inherit;
	line-height: 1.2;
}

.kol-art-page-header h1 {
	font-size: clamp(25px, 4vw, 38px);
}

.kol-art-page-header p,
.kol-art-studio-heading p {
	margin: 0;
	color: var(--kol-art-muted);
}

.kol-art-studio {
	overflow: hidden;
	margin-bottom: 36px;
	border: 1px solid var(--kol-art-line);
	border-radius: 18px;
	background: #f8fbf9;
	box-shadow: 0 18px 45px rgba(28, 69, 43, 0.08);
}

.kol-art-studio-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px 12px;
}

.kol-art-studio-heading h2 {
	margin-bottom: 4px;
	font-size: 21px;
}

.kol-art-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	padding: 12px 20px 16px;
	border-bottom: 1px solid var(--kol-art-line);
}

.kol-art-tool-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.kol-art-tool-group label,
.kol-art-save-bar label > span {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--kol-art-muted);
}

.kol-art-color-tools input[type="color"] {
	width: 34px;
	height: 34px;
	padding: 2px;
	border: 1px solid var(--kol-art-line);
	border-radius: 9px;
	background: #fff;
	cursor: pointer;
}

.kol-art-swatch {
	width: 25px !important;
	height: 25px !important;
	min-width: 25px !important;
	min-height: 25px !important;
	padding: 0 !important;
	border: 2px solid #fff !important;
	border-radius: 50% !important;
	background: var(--kol-swatch) !important;
	box-shadow: 0 0 0 1px #cbd5ce;
	cursor: pointer;
}

.kol-art-swatch.is-active {
	box-shadow: 0 0 0 3px var(--kol-art-accent);
}

.kol-art-size-tools {
	flex: 1 1 160px;
	max-width: 230px;
}

.kol-art-size-tools label {
	white-space: nowrap;
}

.kol-art-size-tools input[type="range"] {
	width: 100%;
	accent-color: var(--kol-art-accent);
}

.kol-art-action-tools {
	flex-wrap: wrap;
}

.kol-art-action-tools button,
.kol-art-save,
.kol-art-delete {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 36px;
	padding: 7px 11px;
	border: 1px solid var(--kol-art-line);
	border-radius: 9px;
	background: #fff;
	color: var(--kol-art-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.kol-art-action-tools button:hover,
.kol-art-action-tools button.is-active {
	border-color: var(--kol-art-accent);
	background: var(--kol-art-accent-soft);
	color: var(--kol-art-accent);
}

.kol-art-action-tools button:disabled,
.kol-art-save:disabled,
.kol-art-delete:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.kol-art-canvas-wrap {
	padding: clamp(10px, 2vw, 20px);
	background-color: #e7eee9;
	background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.42) 25%, transparent 25%), linear-gradient(-45deg, rgba(255, 255, 255, 0.42) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.42) 75%), linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.42) 75%);
	background-position: 0 0, 0 10px, 10px -10px, -10px 0;
	background-size: 20px 20px;
}

.kol-art-canvas-wrap canvas {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #cfd8d2;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 18px rgba(20, 45, 29, 0.1);
	cursor: crosshair;
	touch-action: none;
	user-select: none;
}

.kol-art-save-bar {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) auto;
	align-items: end;
	gap: 12px;
	padding: 16px 20px;
	border-top: 1px solid var(--kol-art-line);
}

.kol-art-save-bar label {
	display: grid;
	gap: 5px;
	margin: 0;
}

.kol-art-save-bar input {
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 8px 11px;
	border: 1px solid #bdcbc2;
	border-radius: 9px;
	background: #fff;
	color: var(--kol-art-ink);
	font: inherit;
}

.kol-art-save {
	height: 42px;
	padding-inline: 16px;
	border-color: var(--kol-art-accent);
	background: var(--kol-art-accent);
	color: #fff;
}

.kol-art-status {
	min-height: 24px;
	padding: 0 20px 10px;
	font-size: 13px;
	font-weight: 700;
}

.kol-art-status.is-error {
	color: #b42318;
}

.kol-art-status.is-success {
	color: var(--kol-art-accent);
}

.kol-art-gallery-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--kol-art-line);
}

.kol-art-gallery-heading h2 {
	font-size: 24px;
}

.kol-art-gallery-heading span {
	color: var(--kol-art-muted);
	font-size: 13px;
}

.kol-art-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.kol-art-card {
	overflow: hidden;
	border: 1px solid var(--kol-art-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(26, 54, 35, 0.07);
}

.kol-art-card-image {
	display: block;
	aspect-ratio: 3 / 2;
	background: #f1f4f2;
}

.kol-art-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kol-art-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
}

.kol-art-card h3 {
	overflow: hidden;
	margin-bottom: 3px;
	font-size: 15px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.kol-art-card time {
	color: var(--kol-art-muted);
	font-size: 11px;
}

.kol-art-delete {
	width: 34px;
	height: 34px;
	min-height: 34px;
	padding: 0;
	color: #b42318;
}

.kol-art-empty {
	grid-column: 1 / -1;
	display: grid;
	place-items: center;
	min-height: 210px;
	padding: 30px;
	border: 1px dashed #bdcbc2;
	border-radius: 14px;
	background: #f8fbf9;
	color: var(--kol-art-muted);
	text-align: center;
}

.kol-art-empty .dashicons {
	width: 42px;
	height: 42px;
	font-size: 42px;
	color: #91a69a;
}

.kol-art-empty p {
	margin: 8px 0 0;
}

@media (max-width: 820px) {
	.kol-art-page-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.kol-art-save-bar {
		grid-template-columns: 1fr 1fr;
	}

	.kol-art-save {
		grid-column: 1 / -1;
	}

	.kol-art-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.kol-art-page {
		padding: 12px;
	}

	.kol-art-toolbar,
	.kol-art-studio-heading,
	.kol-art-save-bar {
		padding-left: 12px;
		padding-right: 12px;
	}

	.kol-art-tool-group,
	.kol-art-size-tools {
		width: 100%;
		max-width: none;
	}

	.kol-art-action-tools button {
		flex: 1 1 auto;
	}

	.kol-art-save-bar,
	.kol-art-gallery {
		grid-template-columns: 1fr;
	}

	.kol-art-save {
		grid-column: auto;
	}
}
