:root {
	--accent: #D4845A;
	--accent-hover: #C0734B;
	--accent-light: #FDF6F0;
	--accent-subtle: #F9EDE3;
	--surface: #FFFBF7;
	--surface-card: #FFFFFF;
	--text-primary: #3D2E22;
	--text-muted: #8C7B6E;
	--border-soft: #E8DDD3;
	--success: #6BAF7B;
	--warm-gray: #F5F0EB;
}

html {
	font-size: 15px;
}

@media (min-width: 768px) {
	html { font-size: 16px; }
}

body {
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--text-primary);
	background: var(--surface);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main { flex: 1; }

/* Warm serif headings */
h1, h2, h3, .display-5, .navbar-brand span:last-child {
	font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
	font-optical-sizing: auto;
}

/* Brand */
.brand-icon {
	background: linear-gradient(135deg, var(--accent), #C47A52) !important;
	box-shadow: 0 2px 8px rgba(212, 132, 90, 0.3);
}
.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; }

/* Navbar */
.navbar {
	background: var(--surface-card) !important;
	border-color: var(--border-soft) !important;
	font-size: 1.05rem;
	font-weight: 500;
	padding-top: 0.85rem;
	padding-bottom: 0.85rem;
}
.navbar-brand {
	font-size: 1.45rem !important;
	font-weight: 700 !important;
}

/* Footer */
footer {
	font-size: 1rem;
	font-weight: 500;
}
footer .small, footer p {
	font-size: 0.95rem !important;
}
footer a {
	font-weight: 600;
}

/* Accent button */
.btn-accent {
	background: linear-gradient(135deg, var(--accent), #C47A52);
	color: #fff;
	border: none;
	transition: all 0.25s ease;
	letter-spacing: 0.01em;
}
.btn-accent:hover, .btn-accent:focus {
	background: linear-gradient(135deg, var(--accent-hover), #B5693F);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(212, 132, 90, 0.35) !important;
}
.btn-accent:disabled {
	background: var(--border-soft);
	color: var(--text-muted);
	transform: none;
	box-shadow: none !important;
}

/* Drop zone */
.drop-zone {
	border-color: var(--border-soft) !important;
	background: var(--surface-card);
	cursor: pointer;
	transition: all 0.25s ease;
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.drop-zone:hover, .drop-zone.drag-over {
	border-color: var(--accent) !important;
	background: var(--accent-light);
	box-shadow: 0 0 0 4px rgba(212, 132, 90, 0.08);
}
.drop-zone:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.drop-zone .drop-zone-content,
.drop-zone #file-selected {
	width: 100%;
}
.border-dashed { border-style: dashed !important; }

/* SVG Preview */
.svg-preview {
	background: repeating-conic-gradient(var(--warm-gray) 0% 25%, var(--surface-card) 0% 50%) 50% / 20px 20px;
}
.svg-preview img, .svg-preview svg {
	max-width: 100%;
	max-height: 250px;
	object-fit: contain;
}

/* Tooltip help badges */
.tt-help {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--border-soft);
	color: var(--text-muted);
	font-size: 0.6875rem;
	font-weight: 700;
	cursor: help;
	vertical-align: middle;
	margin-left: 0.25rem;
	line-height: 1;
	transition: all 0.15s ease;
}
.tt-help:hover {
	background: var(--accent);
	color: #fff;
}

/* Color layer swatches */
.color-swatch {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.75rem;
	border-radius: 9999px;
	background: var(--warm-gray);
	font-size: 0.8125rem;
	font-weight: 500;
}
.color-swatch-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,0.08);
	flex-shrink: 0;
}

/* Cards */
.card {
	border-radius: 1rem;
	background: var(--surface-card);
	border-color: var(--border-soft) !important;
}
.card-header {
	background: var(--warm-gray) !important;
}

/* Form switches */
.form-check-input:checked {
	background-color: var(--accent);
	border-color: var(--accent);
}
.form-check-input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 0.2rem rgba(212, 132, 90, 0.2);
}

/* Step number circles */
.step-number {
	background: linear-gradient(135deg, var(--accent), #C47A52) !important;
	box-shadow: 0 3px 10px rgba(212, 132, 90, 0.25);
}

/* Success states */
.bg-success-subtle {
	background-color: #E8F5EC !important;
}
.text-success {
	color: var(--success) !important;
}

/* Ad slots */
.ad-slot {
	min-height: 60px;
	border-color: var(--border-soft) !important;
	background: var(--warm-gray) !important;
}

/* Detail items */
.fix-detail-item {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--warm-gray);
	font-size: 0.875rem;
}
.fix-detail-item:last-child { border-bottom: none; }

/* Footer background */
footer.border-top {
	background: var(--warm-gray) !important;
	border-color: var(--border-soft) !important;
}

/* Processing animation */
#processing-step {
	animation: pulse-text 1.5s ease-in-out infinite;
}
@keyframes pulse-text {
	0%, 100% { opacity: 0.5; }
	50% { opacity: 1; }
}

/* Links */
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* Light bg helpers */
.bg-light { background-color: var(--warm-gray) !important; }

/* Muted text */
.text-muted { color: var(--text-muted) !important; }

/* Responsive */
@media (max-width: 767px) {
	.display-5 { font-size: 1.75rem; }
	.drop-zone { min-height: 160px; padding: 2rem !important; }
}
