/* CarShowHub Tees designer - CarShowHub gold (#f2b705) and slate (#1d2328) */
.csht {
	--csht-gold: #f2b705;
	--csht-gold-hover: #ffb700;
	--csht-slate: #1d2328;
	--csht-slate-2: #2b333a;
	--csht-line: #e3e5e8;
	--csht-soft: #f6f7f8;
	--csht-muted: #5d666e;
	--csht-good: #1f7a3a;
	--csht-warn: #9a6400;
	--csht-bad: #b3261e;
	max-width: 1180px;
	margin: 0 auto 24px;
	color: var(--csht-slate);
	font-size: 15px;
	line-height: 1.45;
	box-sizing: border-box;
}
.csht *, .csht *::before, .csht *::after { box-sizing: border-box; }
.csht [hidden] { display: none !important; }
.csht-intro { margin: 0 0 14px; color: var(--csht-muted); }

/* steps */
.csht-steps { list-style: none; display: flex; gap: 6px; margin: 0 0 16px; padding: 0; counter-reset: none; }
.csht-steps li { flex: 1; margin: 0; padding: 0; }
.csht-steps button {
	width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 8px; border: 1px solid var(--csht-line); border-radius: 6px; background: #fff;
	color: var(--csht-muted); font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2;
}
.csht-steps button span {
	display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
	background: var(--csht-soft); color: var(--csht-slate); font-size: 13px; flex: none;
}
.csht-steps button.is-on { background: var(--csht-slate); color: var(--csht-gold); border-color: var(--csht-slate); }
.csht-steps button.is-on span { background: var(--csht-gold); color: var(--csht-slate); }
.csht-steps button.is-done span { background: var(--csht-gold); }

/* cards and controls */
.csht-card { background: #fff; border: 1px solid var(--csht-line); border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.csht-card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; letter-spacing: .01em; color: var(--csht-slate); }
.csht-card h3 span { font-weight: 500; color: var(--csht-muted); }
.csht-card select, .csht-card input[type=text], .csht-card textarea, .csht-card input[type=number] {
	width: 100%; padding: 8px 10px; border: 1px solid #cfd3d7; border-radius: 6px; font: inherit; color: var(--csht-slate); background: #fff;
}
.csht-card label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.csht-card label > select, .csht-card label > textarea { margin-top: 4px; font-weight: 400; }
.csht-style-note, .csht-small { margin: 6px 0 0; font-size: 13px; color: var(--csht-muted); }
.csht-row { display: flex; gap: 8px; align-items: center; }
.csht-row > input { flex: 1; min-width: 0; }

.csht-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 9px 16px; border: 1px solid var(--csht-gold); border-radius: 5px;
	background: var(--csht-gold); color: var(--csht-slate); font: inherit; font-weight: 700; cursor: pointer;
	text-decoration: none; line-height: 1.2; white-space: nowrap;
}
.csht-btn:hover, .csht-btn:focus-visible { background: var(--csht-gold-hover); border-color: var(--csht-gold-hover); }
.csht-btn[disabled] { opacity: .6; cursor: wait; }
.csht-btn-alt { background: #fff; color: var(--csht-slate); }
.csht-btn-alt:hover { background: #fff8e1; }
.csht-btn-cart { padding: 11px 26px; font-size: 16px; }

.csht-seg { display: inline-flex; border: 1px solid var(--csht-line); border-radius: 6px; overflow: hidden; background: #fff; }
.csht-seg button { border: 0; background: transparent; padding: 8px 16px; font: inherit; font-weight: 600; color: var(--csht-slate); cursor: pointer; }
.csht-seg button + button { border-left: 1px solid var(--csht-line); }
.csht-seg button.is-on { background: var(--csht-slate); color: var(--csht-gold); }

/* swatches */
.csht-swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.csht-swatch {
	width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); padding: 0; cursor: pointer;
	box-shadow: inset 0 0 0 2px #fff; position: relative;
}
.csht-swatch.is-heather::after {
	content: ""; position: absolute; inset: 2px; border-radius: 50%;
	background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 1px, transparent 1px 3px);
}
.csht-swatch.is-on { outline: 3px solid var(--csht-gold); outline-offset: 2px; }

/* upload */
.csht-drop {
	display: block; position: relative; text-align: center; padding: 16px 10px; border: 2px dashed #c9ced3; border-radius: 8px;
	background: var(--csht-soft); cursor: pointer; margin-bottom: 8px !important; transition: border-color .15s, background .15s;
}
.csht-drop:hover, .csht-drop.is-over { border-color: var(--csht-gold); background: #fffaeb; }
.csht-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.csht-drop strong { display: inline-block; background: var(--csht-gold); color: var(--csht-slate); padding: 8px 16px; border-radius: 5px; font-size: 15px; }
.csht-drop span { display: block; margin-top: 6px; font-weight: 400; color: var(--csht-muted); font-size: 12px; }
.csht-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.csht-status { margin: 6px 0 0; font-size: 13px; min-height: 1em; color: var(--csht-slate); }
.csht-status.is-err, .csht-err { color: var(--csht-bad); }
.csht.is-busy .csht-stage-col { position: relative; }
.csht.is-busy .csht-stage-col::after {
	content: "Removing background…"; position: absolute; inset: 0; display: grid; place-items: center;
	background: rgba(255,255,255,.55); font-weight: 700; color: var(--csht-slate); z-index: 5;
}

/* selected */
.csht-tools-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.csht-ico { border: 1px solid var(--csht-line); background: #fff; border-radius: 5px; padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--csht-slate); }
.csht-ico:hover { border-color: var(--csht-gold); }
.csht-del { color: var(--csht-bad); }
.csht-colors { flex-wrap: wrap; }
.csht-colors label { margin: 0; }
.csht-colors input[type=color] { display: block; width: 46px; height: 32px; padding: 2px; border: 1px solid #cfd3d7; border-radius: 5px; margin-top: 4px; background: #fff; }
.csht-colors input[type=range] { display: block; width: 110px; margin-top: 10px; accent-color: var(--csht-gold); }
.csht-quality { margin: 10px 0 0; font-size: 13px; padding: 7px 9px; border-radius: 5px; background: var(--csht-soft); }
.csht-quality.is-good { color: var(--csht-good); }
.csht-quality.is-ok { color: var(--csht-warn); background: #fff6e0; }
.csht-quality.is-bad { color: var(--csht-bad); background: #fdecea; }

/* layout */
.csht-step-1 { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
.csht-stage-wrap { position: sticky; top: 20px; min-width: 0; }
.csht-topbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.csht-history, .csht-zoomer { display: flex; gap: 4px; align-items: center; }
.csht-tb {
	border: 1px solid var(--csht-line); background: #fff; border-radius: 6px; padding: 6px 10px; font: inherit; font-size: 13px;
	font-weight: 600; color: var(--csht-slate); cursor: pointer; line-height: 1.2;
}
.csht-tb:hover:not([disabled]) { border-color: var(--csht-gold); }
.csht-tb[disabled] { opacity: .45; cursor: default; }
.csht-zoomer .csht-tb { width: 34px; padding: 6px 0; font-size: 16px; }
.csht-zpct { min-width: 44px; text-align: center; font-size: 13px; font-weight: 600; color: var(--csht-muted); }
.csht-stage-row { display: flex; gap: 10px; align-items: flex-start; }
.csht-stage-col { flex: 1; min-width: 0; }
.csht-hint {
	text-align: center; margin: 0 auto 8px; font-size: 13px; color: var(--csht-muted);
	border: 1px solid var(--csht-line); border-radius: 20px; padding: 4px 14px; width: max-content; max-width: 100%; background: #fff;
}
.csht-scroll { width: 100%; max-width: 600px; margin: 0 auto; overflow: hidden; border-radius: 10px; background: #fff; }
.csht.is-zoomed .csht-scroll { overflow: auto; max-height: 78vh; -webkit-overflow-scrolling: touch; }
.csht-stage {
	position: relative; width: 100%; aspect-ratio: 600 / 660; margin: 0 auto;
	background: #fff;
}
.csht-shirt, .csht-cv, .csht-boxes { position: absolute; inset: 0; }
.csht-shirt-img { width: 100%; height: 100%; display: block; }
.csht-boxes { pointer-events: none; z-index: 2; }
.csht-cv { z-index: 3; }
.csht-cv .canvas-container { margin: 0; }
.csht-box { position: absolute; border: 1.5px dashed rgba(29,35,40,.28); border-radius: 2px; }
.csht-box span { position: absolute; left: 6px; bottom: 4px; font-size: 11px; font-weight: 600; color: rgba(29,35,40,.45); }
.csht-box.is-on { border-color: rgba(29,35,40,.65); }
.csht-box.is-on span { color: rgba(29,35,40,.7); }
.csht-box-youth { border-style: dotted; }
.csht-box-chest span { bottom: auto; top: 100%; left: 0; white-space: nowrap; }
.csht:not(.csht-light-shirt) .csht-box { border-color: rgba(255,255,255,.35); }
.csht:not(.csht-light-shirt) .csht-box span { color: rgba(255,255,255,.55); }
.csht:not(.csht-light-shirt) .csht-box.is-on { border-color: rgba(255,255,255,.8); }
.csht:not(.csht-light-shirt) .csht-box.is-on span { color: rgba(255,255,255,.85); }

/* front / back thumbnails */
.csht-thumbs { display: flex; flex-direction: column; gap: 8px; flex: none; }
.csht-thumbs button {
	width: 78px; border: 1px solid var(--csht-line); border-radius: 10px; background: #fff; padding: 5px 4px 6px; cursor: pointer;
	font: inherit; font-size: 12px; font-weight: 600; color: var(--csht-slate); display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.csht-thumbs button.is-on { border: 2px solid var(--csht-gold); box-shadow: 0 0 0 2px rgba(242,183,5,.25); }
.csht-thumb-img { display: block; width: 66px; height: 73px; }
.csht-thumb-img canvas { width: 100%; height: 100%; display: block; }

/* switch, filters, sliders */
.csht-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid var(--csht-line); border-radius: 8px; margin-bottom: 8px; }
.csht-switch-row small { display: block; color: var(--csht-muted); font-size: 12px; }
.csht-switch { position: relative; width: 46px; height: 26px; border-radius: 13px; border: 0; background: #c9ced3; cursor: pointer; flex: none; padding: 0; transition: background .15s; }
.csht-switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: left .15s; }
.csht-switch.is-on { background: var(--csht-gold); }
.csht-switch.is-on i { left: 23px; }
.csht-wide-btn { width: 100%; justify-content: flex-start; flex-wrap: wrap; margin-bottom: 10px; }
.csht-wide-btn small { font-weight: 400; color: var(--csht-muted); }
.csht-field { margin-bottom: 8px; }
.csht-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--csht-muted); margin-bottom: 6px; }
.csht-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.csht-filters button {
	border: 1px solid var(--csht-line); background: #fff; border-radius: 8px; padding: 8px 4px; font: inherit; font-size: 12px; font-weight: 600;
	color: var(--csht-slate); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.csht-filters button.is-on { background: var(--csht-slate); color: var(--csht-gold); border-color: var(--csht-slate); }
.csht-fi { display: block; width: 34px; height: 12px; border-radius: 3px; }
.csht-fi-normal { background: linear-gradient(90deg, #7d8a96 0 25%, #74503f 25% 50%, #e9f3f5 50% 75%, #d8c2a0 75%); }
.csht-fi-one { background: #1d2328; }
.csht-fi-bw { background: linear-gradient(90deg, #111 0 33%, #9a9a9a 33% 66%, #fff 66%); border: 1px solid #ccc; }
.csht-one-opts { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 8px; }
.csht-one-opts label { margin: 0; }
.csht-one-opts input[type=color] { display: block; width: 46px; height: 32px; padding: 2px; border: 1px solid #cfd3d7; border-radius: 5px; margin-top: 4px; }
.csht-one-opts input[type=range] { display: block; width: 120px; margin-top: 10px; accent-color: var(--csht-gold); }
.csht-slider { display: block !important; margin: 8px 0 0 !important; }
.csht-slider output { float: right; font-weight: 400; color: var(--csht-muted); }
.csht-slider input { display: block; width: 100%; margin-top: 4px; accent-color: var(--csht-gold); }

/* recent uploads */
.csht-recent h4 { margin: 10px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--csht-muted); }
.csht-recent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.csht-recent-grid button {
	aspect-ratio: 1; padding: 3px; border: 1px solid var(--csht-line); border-radius: 6px; cursor: pointer;
	background-color: #eef0f2; background-image: linear-gradient(45deg, #dde0e3 25%, transparent 25%, transparent 75%, #dde0e3 75%), linear-gradient(45deg, #dde0e3 25%, transparent 25%, transparent 75%, #dde0e3 75%);
	background-size: 10px 10px; background-position: 0 0, 5px 5px;
}
.csht-recent-grid button:hover { border-color: var(--csht-gold); }
.csht-recent-grid img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* sizes */
.csht-wide { max-width: 760px; margin: 0 auto 12px; }
.csht-min { margin: -2px 0 12px; color: var(--csht-muted); transition: color .2s; }
.csht-min.is-ok { color: var(--csht-good); font-weight: 600; }
.csht-min.is-flash { color: var(--csht-bad); font-weight: 700; }
.csht-size-group h4 { margin: 12px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--csht-muted); }
.csht-size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.csht-size { margin: 0 !important; border: 1px solid var(--csht-line); border-radius: 6px; padding: 8px; text-align: center; background: var(--csht-soft); }
.csht-size .csht-sz { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.csht-size input { text-align: center; font-size: 16px !important; padding: 6px 4px !important; }
.csht-unit { display: block; font-size: 12px; font-weight: 400; color: var(--csht-muted); margin-top: 4px; }
.csht-tier { margin: 12px 0 0; font-size: 13px; color: var(--csht-warn); }

/* review */
.csht-review { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.csht-previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.csht-previews figure { margin: 0; background: radial-gradient(ellipse at 50% 40%, #fff 0%, #eef0f2 75%); border-radius: 10px; padding: 8px; text-align: center; }
.csht-pv-img { aspect-ratio: 600 / 660; display: grid; place-items: center; }
.csht-pv-img img { width: 100%; height: auto; display: block; }
.csht-previews figcaption { font-size: 13px; font-weight: 600; color: var(--csht-muted); margin-top: 4px; }
.csht-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; }
.csht-dl dt { font-weight: 700; }
.csht-dl dd { margin: 0; }
.csht-lines { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.csht-lines td { padding: 5px 0; border-bottom: 1px solid var(--csht-line); }
.csht-lines td:last-child { text-align: right; }
.csht-lines .csht-tot td { font-weight: 800; font-size: 16px; border-bottom: 0; padding-top: 8px; }
.csht-notes { margin-top: 10px; }
.csht-err { margin: 10px 0 0; font-weight: 600; font-size: 14px; }

/* bottom bar */
.csht-bar {
	position: sticky; bottom: 0; z-index: 20; margin-top: 12px;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	background: var(--csht-slate); color: #fff; border-radius: 8px; padding: 10px 14px;
	box-shadow: 0 -4px 16px rgba(0,0,0,.12);
}
.csht-total { color: var(--csht-gold); font-size: 20px; }
.csht-each { color: #d6dadd; font-size: 13px; }
.csht-nav { display: flex; gap: 8px; }
.csht-bar .csht-btn-alt { background: transparent; color: #fff; border-color: #6b747b; }
.csht-bar .csht-btn-alt:hover { border-color: var(--csht-gold); color: var(--csht-gold); }

.csht-off { padding: 18px; border: 1px solid #e3e5e8; border-radius: 8px; background: #f6f7f8; }

@media (max-width: 900px) {
	.csht-step-1 { grid-template-columns: 1fr; }
	.csht-stage-wrap { position: static; order: -1; }
	.csht-stage-row { flex-direction: column-reverse; }
	.csht-thumbs { flex-direction: row; justify-content: center; width: 100%; }
	.csht-thumbs button { flex-direction: row; width: auto; padding: 4px 12px 4px 4px; gap: 6px; }
	.csht-thumb-img { width: 40px; height: 44px; }
	.csht-review { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.csht-steps button { flex-direction: column; gap: 4px; font-size: 12px; padding: 8px 4px; }
	.csht-bar { flex-direction: column; align-items: stretch; text-align: center; }
	.csht-nav .csht-btn { flex: 1; }
	.csht-total { font-size: 18px; }
}

/* touch-up window */
html.csht-tu-open, html.csht-tu-open body { overflow: hidden; }
.csht-tu { position: fixed; inset: 0; z-index: 100000; background: rgba(15,18,21,.72); display: flex; align-items: center; justify-content: center; padding: 16px; color: #1d2328; font-size: 14px; }
.csht-tu * { box-sizing: border-box; }
.csht-tu-box { background: #fff; border-radius: 12px; width: min(1100px, 100%); height: min(860px, 100%); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.csht-tu-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #1d2328; color: #fff; }
.csht-tu-head strong { color: #f2b705; font-size: 16px; }
.csht-tu-msg { flex: 1; color: #cfd4d8; font-size: 13px; }
.csht-tu-x { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.csht-tu-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 10px 16px; border-bottom: 1px solid #e3e5e8; }
.csht-tu-seg { display: inline-flex; border: 1px solid #e3e5e8; border-radius: 6px; overflow: hidden; }
.csht-tu-seg button { border: 0; background: #fff; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; color: #1d2328; }
.csht-tu-seg button + button { border-left: 1px solid #e3e5e8; }
.csht-tu-seg button.is-on { background: #1d2328; color: #f2b705; }
.csht-tu-brush { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.csht-tu-brush input { width: 130px; accent-color: #f2b705; }
.csht-tu-zoom { display: flex; align-items: center; gap: 4px; }
.csht-tu-zoom button { border: 1px solid #e3e5e8; background: #fff; border-radius: 6px; min-width: 34px; padding: 6px 8px; font: inherit; font-weight: 700; cursor: pointer; }
.csht-tu-pct { min-width: 50px; text-align: center; font-weight: 600; color: #5d666e; }
.csht-tu-ghost { display: flex; align-items: center; gap: 6px; }
.csht-tu-stage { flex: 1; position: relative; min-height: 0; touch-action: none; background: #e5e7e9; }
.csht-tu-stage canvas { position: absolute; inset: 0; touch-action: none; display: block; }
.csht-tu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid #e3e5e8; }
.csht-tu-foot button { border: 1px solid #e3e5e8; background: #fff; border-radius: 6px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; color: #1d2328; }
.csht-tu-foot button[disabled] { opacity: .45; cursor: default; }
.csht-tu-tip { flex: 1; color: #5d666e; font-size: 12px; min-width: 200px; }
.csht-tu-foot .csht-tu-done { background: #f2b705; border-color: #f2b705; font-weight: 700; padding: 9px 24px; }
.csht-tu-foot .csht-tu-done:hover { background: #ffb700; }
@media (max-width: 640px) {
	.csht-tu { padding: 0; }
	.csht-tu-box { border-radius: 0; height: 100%; }
	.csht-tu-bar { gap: 8px; padding: 8px; }
	.csht-tu-seg button { padding: 7px 9px; font-size: 13px; }
	.csht-tu-tip { display: none; }
	.csht-tu-brush input { width: 100px; }
}

/* Magic Edit */
.csht-spark { font-size: 15px; }
.csht-magic { border-color: var(--csht-gold); }
.csht-mg .csht-mg-box { width: min(860px, 100%); height: auto; max-height: 100%; }
.csht-mg-body { padding: 16px; overflow: auto; }
.csht-mg-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.csht-mg-pics figure { margin: 0; text-align: center; }
.csht-mg-pics figcaption { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #5d666e; margin-top: 6px; }
.csht-mg-img {
	aspect-ratio: 4 / 3; border-radius: 8px; border: 1px solid #e3e5e8; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center;
	background-color: #eef0f2; color: #5d666e; font-size: 13px; padding: 10px; overflow: hidden; text-align: center;
}
.csht-mg-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.csht-mg-label { display: block; font-weight: 700; margin-bottom: 6px; }
.csht-mg-prompt { width: 100%; border: 1px solid #cfd3d7; border-radius: 6px; padding: 9px 10px; font: inherit; font-size: 15px; resize: vertical; }
.csht-mg-prompt:focus { outline: 2px solid #f2b705; outline-offset: 1px; }
.csht-mg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.csht-mg-chip { border: 1px solid #e3e5e8; background: #f6f7f8; border-radius: 16px; padding: 5px 11px; font: inherit; font-size: 12.5px; cursor: pointer; color: #1d2328; }
.csht-mg-chip:hover { border-color: #f2b705; background: #fff8e1; }
.csht-mg-again { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; font-weight: 500; }
.csht-mg-note { font-size: 12.5px; color: #5d666e; margin: 6px 0 0; }
.csht-mg-err { color: #b3261e; font-weight: 600; margin: 8px 0 0; font-size: 14px; }
.csht-mg-err:empty { display: none; }
.csht-mg .csht-tu-foot .csht-mg-retry { margin-left: auto; }
.csht-mg-spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid #d7dadd; border-top-color: #f2b705; animation: csht-spin 0.9s linear infinite; }
@keyframes csht-spin { to { transform: rotate(360deg); } }
.csht-mg.is-working .csht-tu-foot button { opacity: .6; }
@media (max-width: 640px) {
	.csht-mg-pics { grid-template-columns: 1fr 1fr; gap: 8px; }
	.csht-mg-body { padding: 12px; }
}

/* ---------- compact side panel (1.2.1) ---------- */
.csht-step-1 { grid-template-columns: 310px minmax(0, 1fr); gap: 14px; }
.csht-tools .csht-card { padding: 10px 12px; margin-bottom: 8px; border-radius: 7px; }
.csht-tools .csht-card h3 { font-size: 14px; margin: 0 0 6px; line-height: 1.3; }
.csht-tools .csht-card label { font-size: 12px; margin: 0 0 6px; line-height: 1.3; }
.csht-tools p { line-height: 1.35; }
.csht-tools .csht-style-note { margin-top: 4px; font-size: 12px; }
.csht .csht-tools select,
.csht .csht-tools input[type=text],
.csht .csht-tools textarea {
	height: 34px; min-height: 0; padding: 5px 8px !important; font-size: 14px; line-height: 1.3; margin: 3px 0 0; box-shadow: none;
}
.csht .csht-tools textarea { height: 34px; resize: vertical; }
.csht .csht-tools input[type=range] {
	height: 18px !important; min-height: 0 !important; padding: 0 !important; margin: 2px 0 0 !important;
	border: 0 !important; background: transparent !important; box-shadow: none !important; width: 100%;
}
.csht .csht-tools input[type=color] {
	width: 40px !important; height: 28px !important; min-height: 0 !important; padding: 1px !important; margin: 3px 0 0 !important;
}
.csht .csht-tools .csht-btn { padding: 6px 12px; }
.csht-swatches { gap: 5px; }
.csht-swatch { width: 25px; height: 25px; }
.csht-swatch.is-on { outline-width: 2px; outline-offset: 1px; }
.csht-drop { padding: 9px 8px; margin-bottom: 6px !important; display: flex !important; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.csht-drop strong { padding: 6px 12px; font-size: 14px; }
.csht-drop span { display: inline; margin: 0; font-size: 11.5px; }
.csht-check { margin: 0 !important; font-size: 13px !important; }
.csht-status { margin: 4px 0 0; font-size: 12px; }
.csht-status:empty { display: none; }
.csht-recent h4 { margin: 8px 0 4px; font-size: 11px; }
.csht-recent-grid { grid-template-columns: repeat(6, 1fr); gap: 4px; }
.csht-recent-grid button { padding: 2px; border-radius: 4px; }
.csht-sel-text > label { margin-bottom: 4px !important; }
.csht-colors { gap: 10px; flex-wrap: nowrap; align-items: flex-end; margin-bottom: 4px; }
.csht-colors label:last-child { flex: 1; min-width: 0; }
.csht-colors input[type=range] { margin-top: 8px !important; }
.csht-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.csht-slider { margin: 4px 0 0 !important; }
.csht-switch-row { padding: 7px 10px; margin-bottom: 6px; }
.csht-wide-btn { margin-bottom: 6px; padding: 6px 10px !important; font-size: 13.5px; }
.csht-wide-btn small { font-size: 11.5px; }
.csht-filters button { padding: 6px 4px; gap: 4px; font-size: 11.5px; }
.csht-fi { height: 9px; width: 30px; }
.csht-field { margin-bottom: 4px; }
.csht-label { font-size: 11px; margin-bottom: 4px; }
.csht-quality { margin: 6px 0 0; padding: 5px 8px; font-size: 12px; }
.csht-tools-row { gap: 4px; margin-top: 8px; }
.csht-ico { padding: 4px 8px; font-size: 12px; }
@media (max-width: 900px) {
	.csht-step-1 { grid-template-columns: 1fr; }
}

/* ---------- compact top area (1.2.2) ---------- */
.csht-intro { margin: 0 0 8px; font-size: 13.5px; line-height: 1.35; }
.csht-steps { margin: 0 0 10px; gap: 6px; }
.csht-steps button { padding: 6px 8px; font-size: 14px; border-radius: 6px; }
.csht-steps button span { width: 20px; height: 20px; font-size: 12px; }
.csht-topbar { margin-bottom: 6px; gap: 6px; }
.csht .csht-tb { padding: 4px 8px; font-size: 12.5px; border-radius: 5px; }
.csht-zoomer .csht-tb { width: 28px; padding: 3px 0; font-size: 15px; }
.csht-zpct { min-width: 38px; font-size: 12px; }
.csht-places button { padding: 5px 12px; font-size: 13.5px; }
.csht-stage .csht-hint {
	position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 4; margin: 0; pointer-events: none;
	font-size: 11.5px; padding: 2px 10px; background: rgba(255,255,255,.88); white-space: nowrap; max-width: 96%; overflow: hidden; text-overflow: ellipsis;
}
.csht-scroll { margin: 0 auto; }
.csht-stage-wrap { top: 10px; }
.csht-thumbs button { width: 70px; padding: 4px 3px 5px; font-size: 11.5px; }
.csht-thumb-img { width: 60px; height: 66px; }
.csht-bar { padding: 7px 12px; margin-top: 8px; }
.csht-bar .csht-btn { padding: 7px 14px; }
.csht-total { font-size: 18px; }
@media (max-width: 560px) {
	.csht-steps button { padding: 5px 4px; font-size: 11.5px; }
	.csht-intro { display: none; }
}

/* ---------- compact photo card (1.2.3) ---------- */
.csht-uphead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.csht-uphead h3 { margin: 0 !important; }
.csht-uphead .csht-check { font-size: 12px !important; gap: 5px; white-space: nowrap; }
.csht-uphead .csht-check input { margin: 0 !important; width: 14px; height: 14px; }
.csht .csht-drop {
	display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important;
	gap: 10px !important; flex-wrap: nowrap !important; padding: 6px 8px !important; margin: 0 !important; border-width: 1.5px;
}
.csht .csht-drop strong { padding: 5px 12px !important; font-size: 13.5px !important; margin: 0 !important; white-space: nowrap; }
.csht .csht-drop span { display: inline !important; margin: 0 !important; font-size: 11.5px !important; white-space: nowrap; }
.csht-recent h4 { margin: 6px 0 3px !important; }
.csht .csht-recent-grid { display: flex !important; flex-wrap: wrap; gap: 4px; }
.csht .csht-recent-grid button { width: 40px; height: 40px; aspect-ratio: auto; padding: 2px; flex: none; }

/* recent uploads: thumbnails with a small X on hover (1.2.5) */
.csht .csht-recent-grid { gap: 6px !important; }
.csht .csht-recent-item { position: relative; width: 54px; height: 54px; flex: none; }
.csht .csht-recent-grid .csht-recent-add { width: 54px !important; height: 54px !important; padding: 2px !important; margin: 0 !important; min-width: 0 !important; min-height: 0 !important; }
.csht .csht-recent-item .csht-recent-x {
	all: unset;
	box-sizing: border-box;
	position: absolute; top: 2px; right: 2px; z-index: 2;
	width: 16px !important; height: 16px !important; min-width: 0 !important; min-height: 0 !important;
	border-radius: 50%; background: rgba(29,35,40,.85); color: #fff;
	font: 700 12px/16px Arial, sans-serif !important; text-align: center; cursor: pointer;
	opacity: 0; transition: opacity .12s, background .12s;
}
.csht .csht-recent-item:hover .csht-recent-x,
.csht .csht-recent-item:focus-within .csht-recent-x { opacity: 1; }
.csht .csht-recent-item .csht-recent-x:hover,
.csht .csht-recent-item .csht-recent-x:focus-visible { background: #b3261e; }
@media (hover: none) { .csht .csht-recent-item .csht-recent-x { opacity: 1; } }

/* ---------- backgrounds (1.4.0) ---------- */
.csht-bg-cats { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.csht .csht-bg-cats button { border: 1px solid var(--csht-line); background: #fff; border-radius: 12px; padding: 2px 9px !important; font: inherit; font-size: 11.5px !important; cursor: pointer; color: var(--csht-slate); min-height: 0 !important; line-height: 1.5; }
.csht .csht-bg-cats button.is-on { background: var(--csht-slate); color: var(--csht-gold); border-color: var(--csht-slate); }
.csht-bg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.csht .csht-bg-grid button {
	position: relative; aspect-ratio: 11 / 13; padding: 2px !important; margin: 0 !important; min-height: 0 !important; border: 1px solid var(--csht-line); border-radius: 6px;
	background: #3c4045; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.csht .csht-bg-grid button img { width: 100%; height: 100%; object-fit: contain; display: block; }
.csht .csht-bg-grid button span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(29,35,40,.78); color: #fff; font-size: 9.5px; line-height: 1.25; padding: 2px 3px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csht .csht-bg-grid .csht-bg-none { background: #f6f7f8; }
.csht .csht-bg-grid .csht-bg-none span { position: static; background: none; color: var(--csht-muted); font-size: 12px; font-weight: 600; }
.csht .csht-bg-grid button:hover { border-color: var(--csht-gold); }
.csht .csht-bg-grid button.is-on { outline: 3px solid var(--csht-gold); outline-offset: -1px; }

/* ---------- Cartoon My Car (1.5.0) ---------- */
.csht-cartoon { border-color: var(--csht-gold); }
.csht-ct-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.csht-ct-style {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 9px 10px; border: 1.5px solid #e3e5e8;
	border-radius: 8px; background: #fff; cursor: pointer; font: inherit; color: #1d2328;
}
.csht-ct-style:hover { border-color: #f2b705; }
.csht-ct-style.is-on { border-color: #1d2328; background: #1d2328; color: #fff; box-shadow: 0 0 0 2px #f2b705 inset; }
.csht-ct-style.is-on small { color: #cfd4d8; }
.csht-ct-icon { font-size: 20px; line-height: 1; }
.csht-ct-style strong { font-size: 13.5px; }
.csht-ct-style small { font-size: 11.5px; color: #5d666e; line-height: 1.3; }
.csht-ct .csht-mg-img { background-color: #fff; }
.csht-opt { font-weight: 400; color: #5d666e; }
input.csht-ct-notes { height: 38px; }

/* zoom buttons under the Front/Back thumbnails, staying in view while scrolling (1.5.1) */
.csht-thumbs { position: sticky; top: 12px; align-self: flex-start; z-index: 5; }
.csht-thumbs .csht-zoomer {
	display: flex; flex-direction: column; align-items: center; gap: 4px; width: 70px; padding: 6px 0;
	border: 1px solid var(--csht-line); border-radius: 10px; background: #fff; margin-top: 2px;
}
.csht .csht-thumbs .csht-zoomer .csht-tb { width: 34px; height: 30px; padding: 0 !important; font-size: 18px; line-height: 1; display: grid; place-items: center; }
.csht-thumbs .csht-zpct { min-width: 0; font-size: 12px; }
@media (max-width: 900px) {
	.csht-thumbs { position: static; align-items: center; }
	.csht-thumbs .csht-zoomer { flex-direction: row; width: auto; padding: 4px 8px; margin: 0; }
}

/* right column: Front / Back / zoom on top, the selected-item panel under it (1.5.2) */
.csht-step-1 { grid-template-columns: 290px minmax(0, 1fr); }
.csht-stage-row { align-items: flex-start; }
.csht-right { width: 250px; flex: none; position: sticky; top: 12px; align-self: flex-start; display: flex; flex-direction: column; gap: 8px; }
.csht-right .csht-thumbs { position: static; flex-direction: row; gap: 6px; }
.csht-right .csht-thumbs button { width: 74px; }
.csht-right .csht-thumbs .csht-zoomer { width: 74px; margin: 0; }
.csht-right .csht-sel { margin: 0; max-height: calc(100vh - 170px); overflow: auto; }
.csht-right .csht-filters button { font-size: 11px; }
@media (max-width: 1150px) {
	.csht-step-1 { grid-template-columns: 270px minmax(0, 1fr); }
	.csht-right { width: 220px; }
	.csht-right .csht-thumbs button, .csht-right .csht-thumbs .csht-zoomer { width: 66px; }
	.csht-right .csht-thumb-img { width: 56px; height: 62px; }
}
@media (max-width: 900px) {
	.csht-stage-row { flex-direction: column; }
	.csht-right { position: static; width: 100%; }
	.csht-right .csht-thumbs { justify-content: center; }
	.csht-right .csht-sel { max-height: none; }
}

/* narrower side columns (1.5.4) */
.csht-step-1 { grid-template-columns: 255px minmax(0, 1fr); gap: 12px; }
.csht-tools .csht-card { padding: 9px 10px; }
.csht-right { width: 214px; gap: 6px; }
.csht-right .csht-thumbs { gap: 5px; }
.csht-right .csht-thumbs button, .csht-right .csht-thumbs .csht-zoomer { width: 68px; }
.csht-right .csht-thumb-img { width: 56px; height: 62px; }
.csht .csht-right .csht-thumbs .csht-zoomer .csht-tb { width: 30px; height: 26px; font-size: 16px; }
.csht-right .csht-switch-row { padding: 6px 8px; }
.csht-right .csht-switch-row strong { font-size: 13px; }
.csht-right .csht-switch { width: 40px; height: 22px; }
.csht-right .csht-switch i { width: 16px; height: 16px; }
.csht-right .csht-switch.is-on i { left: 21px; }
.csht .csht-right .csht-wide-btn { padding: 5px 8px !important; font-size: 13px; }
.csht-right .csht-wide-btn small { font-size: 11px; }
.csht-right .csht-filters { gap: 4px; }
.csht-right .csht-filters button { font-size: 10.5px; padding: 5px 2px; }
.csht-right .csht-two { gap: 8px; }
.csht-right .csht-ico { padding: 3px 6px; font-size: 11.5px; }
.csht-tools .csht-recent-item, .csht .csht-tools .csht-recent-grid .csht-recent-add { width: 50px !important; height: 50px !important; }
.csht-tools .csht-bg-grid { gap: 4px; }
.csht .csht-tools .csht-drop { gap: 8px !important; }
.csht .csht-tools .csht-drop strong { padding: 5px 10px !important; font-size: 13px !important; }
@media (max-width: 1150px) {
	.csht-step-1 { grid-template-columns: 240px minmax(0, 1fr); }
	.csht-right { width: 200px; }
	.csht-right .csht-thumbs button, .csht-right .csht-thumbs .csht-zoomer { width: 63px; }
	.csht-right .csht-thumb-img { width: 52px; height: 57px; }
}
@media (max-width: 900px) {
	.csht-step-1 { grid-template-columns: 1fr; }
	.csht-right { width: 100%; }
}

/* text shapes, spacing, shadow (1.6.0) */
.csht-shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.csht .csht-shapes button {
	display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 2px !important; min-height: 0 !important;
	border: 1px solid var(--csht-line); border-radius: 6px; background: #fff; cursor: pointer; font: inherit; font-size: 10px !important; color: var(--csht-slate); line-height: 1.2;
}
.csht-shapes svg { width: 30px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.csht .csht-shapes button.is-on { background: var(--csht-slate); color: var(--csht-gold); border-color: var(--csht-slate); }
.csht .csht-shapes button:hover { border-color: var(--csht-gold); }
.csht-shape-field { margin: 4px 0 6px; }
.csht-shadow-lbl { margin: 4px 0 0 !important; }
.csht-shadow-lbl .csht-row { gap: 6px; margin-top: 4px; }
.csht .csht-tools .csht-shadow-lbl input[type=color] { width: 34px !important; height: 24px !important; margin: 0 !important; }
.csht-right .csht-text-card { margin: 0; }
.csht-right .csht-text-card .csht-row input { min-width: 0; }

/* copy design to the other side (1.6.1) */
.csht .csht-copyside { border-color: var(--csht-gold); background: #fffaeb; }
.csht .csht-copyside:hover { background: var(--csht-gold); }

/* 1.7.0: reorder / shared design banner */
.csht .csht-banner{display:flex;align-items:center;gap:10px;margin:0 0 10px;padding:8px 12px;border-radius:8px;background:#fff7d6;border:1px solid #f2b705;color:#1d2328;font-size:14px;line-height:1.35}
.csht .csht-banner[hidden]{display:none}
.csht .csht-banner.is-err{background:#fdecec;border-color:#d9534f}
.csht .csht-banner-text{flex:1}
.csht .csht-banner-x{all:unset;cursor:pointer;font-size:18px;line-height:1;padding:0 4px;color:#555}
.csht .csht-banner-x:hover{color:#000}

/* 1.8.0: admin-only art tools */
.csht .csht-adminbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 8px;padding:6px 8px;border:1px dashed #b98a00;border-radius:8px;background:#fffbea;font-size:13px}
.csht .csht-ab-tag{background:#1d2328;color:#f2b705;font-weight:700;font-size:11px;letter-spacing:.06em;text-transform:uppercase;padding:3px 7px;border-radius:4px}
.csht .csht-adminbar input.csht-ab-name{flex:1 1 150px;min-width:120px;height:30px!important;padding:2px 8px!important;font-size:13px!important;border:1px solid #c9ccd1!important;border-radius:5px!important;margin:0!important}
.csht .csht-adminbar select{height:30px!important;padding:0 6px!important;font-size:13px!important;border:1px solid #c9ccd1!important;border-radius:5px!important;margin:0!important;width:auto!important;min-width:0!important}
.csht .csht-adminbar .csht-tb{height:30px}
.csht .csht-ab-link{font-size:12px;color:#1d2328;text-decoration:underline}
.csht .csht-ab-msg{flex-basis:100%;font-size:12px;color:#2c6e2f}
.csht .csht-ab-msg:empty{display:none}
.csht .csht-ab-msg.is-err{color:#b32d2e}

/* 1.8.1: easy sliders (gold fill, value pill, − / + buttons, bubble while dragging) */
.csht .csht-rng-wrap { display: block !important; margin: 7px 0 0 !important; font-size: 12.5px !important; font-weight: 600; color: var(--csht-slate); }
.csht .csht-rng-wrap[hidden] { display: none !important; }
.csht .csht-rng-wrap > output { display: none !important; }
.csht .csht-rng-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; line-height: 1.2; }
.csht .csht-rng-val {
	min-width: 42px; text-align: center; padding: 1px 7px; border-radius: 10px;
	background: var(--csht-slate); color: var(--csht-gold); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.csht .csht-rng { --p: 50; display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.csht .csht-rng-btn {
	all: unset; box-sizing: border-box; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; user-select: none;
	border: 1px solid #cfd3d7; background: #fff; color: var(--csht-slate); font-size: 15px; font-weight: 700; line-height: 1;
}
.csht .csht-rng-btn:hover { border-color: var(--csht-gold); background: #fff8dc; }
.csht .csht-rng-btn:focus-visible { outline: 2px solid var(--csht-gold); outline-offset: 1px; }
.csht .csht-rng-track { position: relative; flex: 1; min-width: 0; height: 22px; display: flex; align-items: center; }
.csht .csht-tools .csht-rng-track input[type=range] {
	-webkit-appearance: none; appearance: none; display: block; width: 100% !important; height: 6px !important; margin: 0 !important; padding: 0 !important;
	border: 0 !important; border-radius: 3px !important; cursor: pointer; box-shadow: none !important; outline: none;
	background: linear-gradient(to right, #dde0e4 0, #dde0e4 var(--a, 0%), var(--csht-gold) var(--a, 0%), var(--csht-gold) var(--b, 50%), #dde0e4 var(--b, 50%), #dde0e4 100%) !important;
}
.csht .csht-rng-track input[type=range]::-webkit-slider-runnable-track { height: 6px; background: transparent; border: 0; }
.csht .csht-rng-track input[type=range]::-moz-range-track { height: 6px; background: transparent; border: 0; }
.csht .csht-rng-track input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%;
	background: #fff; border: 3px solid var(--csht-gold); box-shadow: 0 1px 3px rgba(0,0,0,.35); cursor: grab;
}
.csht .csht-rng-track input[type=range]::-moz-range-thumb {
	width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--csht-gold); box-shadow: 0 1px 3px rgba(0,0,0,.35); cursor: grab;
}
.csht .csht-rng-track input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.12); }
.csht .csht-rng-track input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(242,183,5,.35); }
.csht .csht-rng-tip {
	position: absolute; bottom: 21px; left: calc(9px + (100% - 18px) * var(--p) / 100); transform: translateX(-50%);
	padding: 2px 7px; border-radius: 5px; background: var(--csht-slate); color: var(--csht-gold);
	font-size: 11px; font-weight: 700; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 3;
}
.csht .csht-rng-tip::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: var(--csht-slate); }
.csht .csht-rng.is-drag .csht-rng-tip, .csht .csht-rng-track:hover .csht-rng-tip { opacity: 1; }
.csht .csht-one-opts .csht-rng-wrap { flex: 1 1 100%; }
.csht .csht-sliders-main { margin-top: 2px; }
.csht .csht-colors { align-items: flex-start; }
