/* XingTu converter — shares .xt-btn / .xt-error / .xt-toast from editor.css */

.xt-convert {
	--xt-bg: #0d0f12;
	--xt-panel: #16191f;
	--xt-line: rgba(255,255,255,.08);
	--xt-text: #e8eaef;
	--xt-mute: #8d93a1;
	--xt-brand: #c6f432;
	position: relative;
	background: var(--xt-bg);
	color: var(--xt-text);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.xt-convert.is-dragover { outline: 3px dashed var(--xt-brand); outline-offset: -6px; }
.xt-convert [hidden] { display: none !important; }

.xtc-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	padding: 36px 20px 28px;
}
.xtc-drop h2 { margin: 0; font-size: 22px; color: #fff; }
.xtc-drop p { margin: 0; color: var(--xt-mute); font-size: 14px; max-width: 460px; }
.xtc-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: .02em;
}
.xtc-badge span {
	padding: 6px 14px;
	border-radius: 10px;
	background: rgba(255,255,255,.08);
	border: 1px solid var(--xt-line);
}
.xtc-badge .xtc-to { background: var(--xt-brand); color: #111; border-color: var(--xt-brand); }
.xtc-arrow { color: var(--xt-mute); }

.xtc-options {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: center;
	padding: 14px 20px;
	background: var(--xt-panel);
	border-top: 1px solid var(--xt-line);
	border-bottom: 1px solid var(--xt-line);
	font-size: 13px;
}
.xtc-opt { display: flex; align-items: center; gap: 10px; color: var(--xt-mute); font-weight: 600; }
.xtc-opt input[type=range] { width: 140px; accent-color: var(--xt-brand); }
.xtc-opt output { color: #fff; min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.xtc-opt select, .xtc-opt input[type=color] {
	background: #0d0f12;
	color: #fff;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 8px;
	padding: 6px 8px;
	font-family: inherit;
	font-size: 13px;
}
.xtc-opt input[type=color] { width: 40px; height: 32px; padding: 2px; cursor: pointer; }

.xtc-results { padding: 14px 16px 18px; }
.xtc-list { list-style: none; margin: 0 0 14px; padding: 0; }
.xtc-item {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--xt-line);
}
.xtc-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#1c2027 0% 25%, #23282f 0% 50%) 50% / 12px 12px; display: flex; align-items: center; justify-content: center; }
.xtc-thumb img { max-width: 100%; max-height: 100%; display: block; }
.xtc-thumb-ph { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--xt-mute); border-top-color: var(--xt-brand); animation: xtc-spin .8s linear infinite; }
@keyframes xtc-spin { to { transform: rotate(360deg); } }
.xtc-name { font-weight: 600; font-size: 14px; word-break: break-all; }
.xtc-meta { font-size: 12px; color: var(--xt-mute); margin-top: 2px; }
.xtc-good { color: var(--xt-brand); }
.xtc-bad { color: #ff9a9a; }
.xtc-actions { display: flex; align-items: center; gap: 6px; }
.xtc-actions .xt-btn { padding: 7px 14px; font-size: 13px; }
.xtc-remove {
	background: none;
	border: 1px solid var(--xt-line);
	color: var(--xt-mute);
	width: 32px; height: 32px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
}
.xtc-remove:hover { color: #fff; border-color: rgba(255,255,255,.4); }

.xtc-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.xtc-summary { font-size: 13px; color: var(--xt-mute); }
.xtc-footer-actions { display: flex; gap: 8px; }
.xtc-quota { font-size: 12px; color: var(--xt-mute); margin: 10px 0 0; }
.xtc-quota-over {
	margin-top: 10px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(198,244,50,.08);
	border: 1px solid rgba(198,244,50,.35);
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
}
.xtc-quota-over p { margin: 0; font-size: 13px; flex: 1 1 240px; }

@media (max-width: 560px) {
	.xtc-item { grid-template-columns: 48px 1fr; }
	.xtc-actions { grid-column: 1 / -1; justify-content: flex-end; }
	.xtc-thumb { width: 48px; height: 48px; }
}
