/* Cravatar Tools · 创作工作室高级样式（零粗体、零彩色左边条、零外部依赖）。 */

.cr-st-grid {
	display: grid;
	grid-template-columns: 388px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

@media (max-width: 1024px) {
	.cr-st-grid {
		grid-template-columns: 1fr;
	}
}

.cr-st-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.cr-st-card--sticky {
	position: sticky;
	top: 84px;
}

@media (max-width: 1024px) {
	.cr-st-card--sticky {
		position: static;
	}
}

.cr-st-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cr-st-field-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.cr-st-label {
	font-size: 13px;
	color: #475569;
	font-weight: 400;
}

.cr-st-val {
	font-size: 12px;
	color: #64748b;
	font-variant-numeric: tabular-nums;
}

.cr-st-input {
	width: 100%;
	border: 1px solid #d5e0f0;
	border-radius: 10px;
	padding: 9px 12px;
	font-size: 14px;
	color: #0f172a;
	background: #ffffff;
	outline: none;
	font-family: inherit;
	font-weight: 400;
}

.cr-st-input:focus {
	border-color: #1d4fc4;
}

.cr-st-row-inline {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cr-st-range {
	width: 100%;
	accent-color: #1d4fc4;
	cursor: pointer;
	margin: 2px 0;
}

.cr-st-sliders {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

@media (max-width: 520px) {
	.cr-st-sliders {
		grid-template-columns: 1fr;
	}
}

/* Preset Bar */
.cr-st-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.cr-st-preset {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 11px;
	border-radius: 999px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #334155;
	font-size: 12.5px;
	cursor: pointer;
	font-weight: 400;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.cr-st-preset:hover {
	border-color: #1d4fc4;
	color: #1d4fc4;
	background: #eef4ff;
}

/* Color Swatches */
.cr-st-swatches {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 7px;
}

@media (max-width: 480px) {
	.cr-st-swatches {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.cr-st-swatch {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 7px 9px;
	border-radius: 9px;
	border: 1px solid #e2e8f0;
	background: #ffffff;
	color: #334155;
	font-size: 12.5px;
	cursor: pointer;
	font-weight: 400;
	min-width: 0;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cr-st-swatch span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cr-st-swatch:hover {
	border-color: #93b4f5;
}

.cr-st-swatch.is-active {
	border-color: #1d4fc4;
	background: #eef4ff;
	color: #1d4fc4;
}

.cr-st-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid rgba(15, 23, 42, 0.14);
	flex-shrink: 0;
}

.cr-st-color-custom {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
	font-size: 12.5px;
	color: #64748b;
}

.cr-st-color-custom input[type="color"] {
	width: 28px;
	height: 28px;
	padding: 2px;
	border: 1px solid #d5e0f0;
	border-radius: 7px;
	background: #ffffff;
	cursor: pointer;
}

/* Choice Chips */
.cr-st-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.cr-st-chip {
	padding: 6px 11px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #ffffff;
	color: #334155;
	font-size: 12.5px;
	cursor: pointer;
	font-weight: 400;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cr-st-chip:hover {
	border-color: #93b4f5;
}

.cr-st-chip.is-active {
	border-color: #1d4fc4;
	background: #eef4ff;
	color: #1d4fc4;
}

/* Preview Stage */
.cr-st-stage-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.cr-st-seg {
	display: inline-flex;
	padding: 3px;
	border-radius: 9px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	gap: 2px;
}

.cr-st-seg-btn {
	border: 0;
	background: transparent;
	color: #64748b;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 7px;
	cursor: pointer;
	font-weight: 400;
}

.cr-st-seg-btn.is-active {
	background: #ffffff;
	color: #1d4fc4;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.cr-st-stage {
	background: #f5f8ff;
	border: 1px solid #e6edf8;
	border-radius: 12px;
	padding: 28px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cr-st-stage.is-dark {
	background: #0f172a;
	border-color: #1e293b;
}

.cr-st-stage.is-dark .cr-st-size-item,
.cr-st-stage.is-dark .cr-sc-meta {
	color: #94a3b8;
}

.cr-st-stage.is-dark .cr-st-mock {
	background: #1e293b;
	border-color: #334155;
}

.cr-st-stage.is-dark .cr-st-mock-name {
	color: #f8fafc;
}

.cr-st-stage.is-dark .cr-st-mock-text {
	color: #94a3b8;
}

.cr-st-sizes {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
}

.cr-st-size-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #64748b;
}

.cr-st-svg-slot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.cr-st-svg-slot svg {
	display: block;
}

.cr-st-mock {
	width: 100%;
	max-width: 480px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 11px;
	padding: 13px 15px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.cr-st-mock-name {
	font-size: 13.5px;
	color: #0f172a;
	margin-bottom: 2px;
}

.cr-st-mock-text {
	font-size: 12.5px;
	color: #64748b;
	line-height: 1.5;
}

/* Action Buttons */
.cr-st-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.cr-st-btn-primary {
	border: 0;
	background: #1d4fc4;
	color: #ffffff;
	border-radius: 10px;
	padding: 10px 18px;
	font-size: 13.5px;
	cursor: pointer;
	font-weight: 400;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cr-st-btn-primary:hover {
	background: #1640a6;
	color: #ffffff;
}

.cr-st-btn-primary:disabled {
	opacity: 0.65;
	cursor: wait;
}

.cr-st-btn-sec {
	border: 1px solid #d5e0f0;
	background: #ffffff;
	color: #334155;
	border-radius: 10px;
	padding: 9px 14px;
	font-size: 13px;
	cursor: pointer;
	font-weight: 400;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cr-st-btn-sec:hover {
	border-color: #1d4fc4;
	color: #1d4fc4;
}

.cr-st-link-btn {
	border: 0;
	background: transparent;
	color: #1d4fc4;
	font-size: 12.5px;
	padding: 0;
	cursor: pointer;
	font-weight: 400;
}

.cr-st-msg {
	margin: 0;
	font-size: 13px;
	color: #1d4fc4;
	line-height: 1.6;
}

.cr-st-msg.is-error {
	color: #b91c1c;
}

/* School Picker */
.cr-sc-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px;
	max-height: 204px;
	overflow-y: auto;
	padding-right: 2px;
}

@media (max-width: 520px) {
	.cr-sc-list {
		grid-template-columns: 1fr;
	}
}

.cr-sc-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 9px;
	border-radius: 9px;
	border: 1px solid #e2e8f0;
	background: #ffffff;
	color: #334155;
	font-size: 12.5px;
	cursor: pointer;
	text-align: left;
	font-weight: 400;
	min-width: 0;
}

.cr-sc-item span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cr-sc-item.is-active {
	border-color: #1d4fc4;
	background: #eef4ff;
	color: #1d4fc4;
}

.cr-sc-item img {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: contain;
	background: #ffffff;
	flex-shrink: 0;
}

.cr-sc-stage-row {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
}

.cr-sc-canvas-preview {
	width: 224px;
	height: 224px;
	display: block;
}

.cr-sc-thumb-64 {
	width: 64px;
	height: 64px;
	display: block;
}

.cr-sc-thumb-32 {
	width: 32px;
	height: 32px;
	display: block;
}

.cr-sc-meta {
	font-size: 13px;
	color: #64748b;
	text-align: center;
}

.cr-sc-crop-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cr-sc-color-dots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.cr-sc-cdot {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 1px #cbd5e1;
	cursor: pointer;
	padding: 0;
}

.cr-sc-cdot.is-active {
	box-shadow: 0 0 0 2px #1d4fc4;
}
