/*!
 * CSS Portal — CSS Sprite Generator: image list, sprite sheet and icon check
 */
.gt [hidden] { display: none !important; }

/* drop zone */
.gt .sp-drop {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 2px;
	margin: 0;
	padding: 18px 12px;
	text-align: center;
	color: var(--ct-muted);
	background: var(--ct-bg);
	border: 2px dashed var(--ct-border-strong);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.gt .sp-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.gt .sp-drop i { font-size: 28px; color: var(--ct-accent); }
.gt .sp-drop strong { font-size: 14px; color: var(--ct-text); }
.gt .sp-drop span { font-size: 12.5px; }
.gt .sp-drop:hover, .gt .sp-drop.is-over { border-color: var(--ct-accent); background: var(--ct-accent-soft); }
.gt .sp-drop:focus-within { border-color: var(--ct-accent); box-shadow: 0 0 0 3px var(--ct-accent-soft); }
.gt .sp-status { min-height: 0; margin: 0; font-size: 12.5px; color: var(--ct-ok, #16a34a); }
.gt .sp-status:empty { display: none; }
.gt .sp-status.is-bad { color: var(--ct-err, #dc2626); }

/* image list */
.gt .sp-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 360px; overflow: auto; }
.gt .sp-list:empty { display: none; }
.gt .sp-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) 28px; align-items: center; gap: 8px; margin: 0; padding: 6px; background: var(--ct-bg); border: 1px solid var(--ct-border); border-radius: 8px; }
.gt .sp-thumb { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; overflow: hidden; background: repeating-conic-gradient(#e2e8f0 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.gt .sp-thumb img { max-width: 100%; max-height: 100%; }
.gt .sp-meta { display: grid; gap: 2px; min-width: 0; }
.gt .sp-meta input { box-sizing: border-box; width: 100%; height: 28px; padding: 0 6px; font: 500 12.5px/1 var(--ct-mono, monospace); color: var(--ct-text); background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: 6px; outline: none; }
.gt .sp-meta input:focus { border-color: var(--ct-accent); box-shadow: 0 0 0 3px var(--ct-accent-soft); }
.gt .sp-meta small { font-size: 11.5px; color: var(--ct-muted); }
.gt .sp-del { display: grid; place-items: center; width: 28px; height: 28px; margin: 0; padding: 0; color: var(--ct-muted); background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.gt .sp-del:hover { color: var(--ct-err, #dc2626); background: var(--ct-surface-2); }
.gt .sp-del:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ct-accent); }
.gt .sp-clear { justify-self: start; }

/* sprite sheet */
.gt .sp-stats { font-size: 12.5px; color: var(--ct-muted); font-variant-numeric: tabular-nums; }
.gt .ct-tool:disabled { opacity: .45; pointer-events: none; }
.gt .sp-stage { display: grid; place-items: center; min-height: 220px; padding: 20px; overflow: auto; background: var(--ct-surface); }
.gt .sp-stage.has-sheet { background: repeating-conic-gradient(#e2e8f0 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.gt .sp-stage img { display: block; max-width: none; height: auto; box-shadow: 0 0 0 1px rgba(15, 23, 42, .15); }
.gt .sp-empty { margin: 0; font-size: 14px; color: var(--ct-muted); text-align: center; }

/* icon check */
.gt .sp-icons:empty { display: none; }
.gt .sp-icons { padding: 12px 16px 16px; border-top: 1px solid var(--ct-border); }
.gt .sp-icons__title { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ct-muted); }
.gt .sp-icons ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gt .sp-icons li { display: grid; justify-items: center; gap: 6px; max-width: 160px; margin: 0; padding: 10px; background: var(--ct-bg); border: 1px solid var(--ct-border); border-radius: 8px; }
.gt .sp-icon { display: block; max-width: 140px; overflow: hidden; background-repeat: no-repeat; }
.gt .sp-icons code { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--ct-text); }
