/* エディター専用スタイル */

.rakugaki-editor-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	background: #fafafa;
	border: 1px dashed #ccc;
	border-radius: 4px;
	width: fit-content;
}

.rakugaki-canvas {
	display: block;
	cursor: crosshair;
	border: 1px solid #e0d9c8;
	border-radius: 2px;
	max-width: 100%;
	touch-action: none;
}

/* パレット */
.rakugaki-palette {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: 240px;
}

.rakugaki-color {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid transparent;
	background-color: var(--swatch-color);
	cursor: pointer;
	padding: 0;
	transition: transform 0.1s ease, border-color 0.1s ease;
}

.rakugaki-color:hover {
	transform: scale(1.15);
}

.rakugaki-color.is-selected {
	border-color: #1e1e1e;
	box-shadow: 0 0 0 2px #fff inset;
	transform: scale(1.15);
}

/* コントロールボタン */
.rakugaki-controls {
	display: flex;
	gap: 8px;
}

.rakugaki-btn {
	padding: 4px 12px;
	font-size: 12px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	cursor: pointer;
	transition: background 0.15s ease;
}

.rakugaki-btn:hover:not(:disabled) {
	background: #f0f0f0;
}

.rakugaki-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.rakugaki-btn--clear {
	border-color: #d63638;
	color: #d63638;
}

.rakugaki-btn--clear:hover:not(:disabled) {
	background: #fce8e8;
}
