.pft-tool {
	--pft-accent: #222;
	max-width: 1100px;
	margin: 2rem auto;
	color: inherit;
	font: inherit;
}
.pft-tool *, .pft-tool *::before, .pft-tool *::after { box-sizing: border-box; }
.pft-heading { margin: 0 0 .5rem; color: inherit; font: inherit; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
.pft-introduction { max-width: 48rem; margin: 0 0 2rem; color: inherit; }
.pft-layout { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, .8fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.pft-preview { overflow: hidden; background: #eee; aspect-ratio: 1; }
.pft-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.pft-canvas:active { cursor: grabbing; }
.pft-controls { display: grid; gap: 1.5rem; }
.pft-field { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.pft-upload-button, .pft-download, .pft-share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: .65rem 1.2rem;
	border: 1px solid currentColor;
	border-radius: var(--pft-button-radius, 2px);
	background: var(--pft-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	visibility: visible;
	opacity: 1;
}
.pft-upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pft-output-actions { display: grid; gap: .75rem; }
.pft-download, .pft-share { width: 100%; }
.pft-share { background: transparent; color: inherit; }
.pft-share[hidden] { display: none; }
.pft-download:disabled, .pft-share:disabled { opacity: .45; cursor: not-allowed; visibility: visible; }
.pft-filename { max-width: 15rem; overflow: hidden; color: inherit; font-size: .85em; text-overflow: ellipsis; white-space: nowrap; }
.pft-adjustments { display: grid; gap: 1.15rem; }
.pft-adjustments.pft-is-disabled { opacity: .45; }
.pft-adjustments h3 { margin: 0; color: inherit; font: inherit; font-size: 1.25rem; font-weight: 700; }
.pft-adjustments label > span { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; font-size: .9em; font-weight: 600; }
.pft-adjustments input[type="range"] { width: 100%; accent-color: var(--pft-accent); }
.pft-reset { width: max-content; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.pft-reset:disabled { cursor: not-allowed; }
.pft-status, .pft-privacy { margin: 0; color: inherit; font-size: .82em; opacity: .72; }
.pft-privacy { margin-top: 1rem; text-align: center; }
.pft-notice { padding: 1rem; border-left: 4px solid #d63638; background: #fff; }
@media (max-width: 720px) {
	.pft-layout { grid-template-columns: 1fr; }
	.pft-tool { margin-block: 1.5rem; }
}
