:root {
	--bg: #eef3fb;
	--ink: #0f172a;
	--muted: #64748b;
	--card: #ffffff;
	--line: #e2e8f0;
	--accent: #2563eb;
	--accent-dark: #1d4ed8;
	--soft: #eff6ff;
	--shadow: 0 18px 50px rgba(37, 99, 235, 0.08);
	--sans: Inter, "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
	margin: 0;
	color: var(--ink);
	background:
		radial-gradient(900px 420px at 88% -8%, rgba(191, 219, 254, 0.85), transparent 50%),
		linear-gradient(180deg, #f4f7ff 0%, #eef3fb 42%, #f8fafc 100%);
	font-family: var(--sans);
	font-size: 1.02rem;
	line-height: 1.65;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }

.skip {
	position: absolute;
	left: 1rem;
	top: -4rem;
	background: var(--ink);
	color: white;
	padding: .4rem .7rem;
	z-index: 20;
}
.skip:focus { top: .5rem; }

.wrap, .sheet { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.sheet { padding: 2.4rem 0 4.5rem; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-bar {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: 4.4rem;
}

.logo {
	display: flex;
	align-items: center;
	gap: .65rem;
	color: var(--ink);
	text-decoration: none;
	margin-right: auto;
}
.logo-mark {
	display: grid;
	place-items: center;
	width: 2.35rem;
	height: 2.35rem;
	flex: 0 0 auto;
	border-radius: 10px;
	background: var(--accent);
}
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-text { display: grid; line-height: 1.05; row-gap: .22rem; }
.logo-text strong { font-size: 1.05rem; letter-spacing: -0.03em; }
.logo-text small {
	color: var(--muted);
	font-size: .68rem;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .35rem 1rem; }
.site-nav > a, .menu summary {
	color: #334155;
	text-decoration: none;
	font-size: .95rem;
	font-weight: 500;
	white-space: nowrap;
}
.site-nav a[aria-current="page"] { color: var(--accent); }

.menu { position: relative; }
.menu summary { cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:after { content: ""; display: inline-block; margin-left: .35rem; border: 4px solid transparent; border-top-color: #64748b; transform: translateY(2px); }
.menu-panel {
	position: absolute;
	top: calc(100% + .45rem);
	left: 0;
	min-width: 230px;
	padding: .4rem;
	background: white;
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow);
}
.menu-panel a { display: block; padding: .55rem .7rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
.menu-panel a:hover { background: var(--soft); }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.05rem, 3.6vw, 3.25rem); margin: .35rem 0 .9rem; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); margin: 2.6rem 0 .7rem; }
h3 { font-size: 1.12rem; margin: 0 0 .35rem; }

.dek, .lead, .prose { color: #475569; }
.dek { font-size: 1.08rem; max-width: 38rem; }
.sheet > .dek { max-width: none; }
.prose p, .lead p { margin: 0 0 .9rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.15rem; }

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
	gap: 2rem;
	align-items: center;
	padding: 1.2rem 0 1.6rem;
}
.home-intro { padding: .4rem 0 .2rem; }
.home-intro .dek,
.home .section-intro,
.home-platform .prose { max-width: none; }
.home-categories { margin-top: .4rem; }
.category-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .9rem;
}
.category-card {
	display: flex;
	flex-direction: column;
	gap: .45rem;
	padding: 1.05rem 1.05rem 1.15rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow);
}
.category-art {
	margin: 0 0 .35rem;
	overflow: hidden;
	border-radius: 14px;
	background: #f8fafc;
}
.category-art svg {
	display: block;
	width: 100%;
	height: auto;
}
.category-card h3 { margin: 0; color: var(--ink); font-size: 1.2rem; }
.category-card > p { margin: 0; color: #475569; }
.category-card .feature-go { margin-top: .25rem; text-decoration: none; }
.category-card .feature-go:hover { color: var(--accent-dark); }
.category-links {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem .7rem;
	margin-top: .55rem;
	padding-top: .75rem;
	border-top: 1px solid var(--line);
}
.category-links a {
	color: var(--accent);
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
}
.category-links a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: .16em; }
.home-platform { margin-top: .6rem; }
.feature.with-art { display: flex; flex-direction: column; gap: .85rem; }
.feature.with-art > span { display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.tool-art {
	margin: 0;
	overflow: hidden;
	border-radius: 16px;
	background: #f8fafc;
}
.tool-art svg { display: block; width: 100%; height: auto; }
.feature-grid.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid.missing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.missing-core { margin: 1.1rem 0 0; }
.missing-core .button-quiet { margin-left: 0; }
.missing h2 { margin-top: 2.2rem; }
.checks { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin: 1.3rem 0 0; padding: 1rem 0 0; border-top: 1px solid #dbe4f0; list-style: none; color: #334155; font-weight: 600; font-size: .95rem; }
.checks li:before { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-right: .45rem; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }

.hero-card {
	background: white;
	border-radius: 28px;
	padding: 1rem;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}
.hero-card svg { display: block; width: 100%; height: auto; }
.hero-card figcaption {
	display: inline-block;
	margin: .15rem .4rem .35rem;
	padding: .25rem .55rem;
	border-radius: 999px;
	background: #f8fafc;
	color: #64748b;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .08em;
}

.tool-shell, .tool-block, .editor, .card, .feature, .steps li, .step-cards li, .post-list li, .demo, .opposite {
	background: var(--card);
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 24px;
	box-shadow: var(--shadow);
}
.tool-shell, .tool-block { padding: 1.6rem 1.4rem 1.3rem; margin-top: .4rem; }
.tool-shell { text-align: center; }
.tool-shell h2, .tool-block h2 { margin-top: 0; color: var(--accent); text-align: center; }
.tool-shell .dek, .tool-block .prose { text-align: center; }
.tool-shell .dek { margin-inline: auto; }
.tool-block .editor, .tool-shell .editor { background: transparent; border: 0; box-shadow: none; padding: 0; text-align: left; }
.privacy-ondevice {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .45rem;
	margin: 0 0 1rem;
	padding: .55rem .9rem;
	border-radius: 999px;
	background: #ecfdf5;
	color: #0f766e;
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
}
.privacy-ondevice svg { flex: 0 0 auto; color: #0d9488; }

.job-switch { max-width: 22rem; margin-bottom: .85rem; }
.job-switch button.choice { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.editor-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(240px, .75fr);
	gap: 1rem;
	align-items: start;
}
.editor-stage { min-width: 0; }

.dropzone {
	position: relative;
	display: grid;
	place-items: center;
	text-align: center;
	gap: .55rem;
	min-height: 320px;
	border: 1.5px dashed #93c5fd;
	border-radius: 18px;
	background: #f8fbff;
	padding: 1.5rem;
	cursor: pointer;
	color: #475569;
}
.dropzone.hot { border-color: var(--accent); background: white; }
.dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cloud {
	display: grid;
	place-items: center;
	width: 3.2rem;
	height: 3.2rem;
	border-radius: 999px;
	background: white;
	color: var(--accent);
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}
.drop-title { font-weight: 600; color: #334155; }
.select-btn {
	display: inline-block;
	margin-top: .2rem;
	background: var(--accent);
	color: white;
	border-radius: 10px;
	padding: .62rem 1rem;
	font-weight: 700;
}

.stage {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	background: #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
}
.batch {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	padding: .7rem;
	background: #e2e8f0;
	border-radius: 16px;
	min-width: 0;
	max-width: 100%;
}
.batch-item {
	background: white;
	border-radius: 14px;
	padding: .7rem .75rem .6rem;
	min-width: 0;
	max-width: 100%;
}
.batch-meta {
	display: flex;
	align-items: baseline;
	gap: .5rem;
	margin-bottom: .45rem;
}
.batch-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: .88rem;
	font-weight: 700;
	color: #1e293b;
}
.batch-size { color: var(--muted); font-size: .75rem; white-space: nowrap; }
button.batch-remove {
	padding: 0;
	border: 0;
	background: transparent;
	color: #64748b;
	font-size: .78rem;
	font-weight: 700;
}
button.batch-remove:hover { background: transparent; color: #b91c1c; }
.batch-add {
	display: block;
	width: 100%;
	margin-top: .75rem;
	border: 1.5px dashed #93c5fd;
	background: #f8fbff;
	color: var(--accent);
	font-weight: 700;
}
.batch-add:hover { background: white; border-color: var(--accent); color: var(--accent-dark); }
.batch-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: .55rem;
	min-width: 0;
	max-width: 100%;
}
.batch-pair figure { margin: 0; min-width: 0; overflow: hidden; }
.batch-pair canvas {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	background: #e2e8f0;
}
.batch-pair figcaption {
	margin: .28rem 0 0;
	color: #64748b;
	font-size: .75rem;
	font-weight: 650;
}
button.choice:disabled { opacity: .45; cursor: default; }
.stage-viewport {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior: contain;
	user-select: none;
}
.stage-sizer { display: block; }
.stage-canvas { position: relative; line-height: 0; }
.zoom-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem .45rem;
	margin-top: .65rem;
}
.zoom-bar input[type="range"] { flex: 1 1 8rem; width: auto; min-width: 0; }
.zoom-bar button { padding: .4rem .7rem; min-width: 2.4rem; }
.zoom-bar button:disabled { opacity: .45; cursor: default; }
.zoom-readout { min-width: 3.2rem; text-align: center; font-weight: 700; color: #334155; }
.zoom-bar .hint { flex: 1 0 100%; margin: 0; }
.stage canvas.view,
.stage canvas.ink {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
}
.stage canvas.ink { position: absolute; inset: 0; cursor: crosshair; }
.stage.is-region .stage-canvas { touch-action: none; }
.stage.is-zoomed:not(.is-region) .stage-canvas { touch-action: pan-x pan-y; }
.stage.is-zoomed.is-region .stage-canvas { touch-action: none; }
.stage.is-space .stage-canvas,
.stage.is-space .view,
.stage.is-space .ink { cursor: grab; }
.stage.is-panning .stage-canvas,
.stage.is-panning .view,
.stage.is-panning .ink { cursor: grabbing; }
.hint { margin: .15rem 0 0; color: var(--muted); font-size: .82rem; }
.batch-scope-note { margin: 0; color: #334155; font-size: .92rem; font-weight: 600; }

.frame-switch { margin-top: .75rem; }
.frame-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.frame-row .choice { padding: .4rem .72rem; }
.frame-switch .hint { margin: .4rem 0 0; }
.crop-layer { position: absolute; inset: 0; z-index: 2; }
.crop-shade { position: absolute; background: rgba(15, 23, 42, 0.45); pointer-events: none; }
.crop-frame {
	position: absolute;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35);
	cursor: grab;
	touch-action: none;
}
.crop-frame.is-dragging { cursor: grabbing; }
.crop-tag {
	position: absolute;
	left: 50%;
	top: .4rem;
	transform: translateX(-50%);
	padding: .05rem .4rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	line-height: 1.4;
	pointer-events: none;
}
button.crop-handle, button.crop-handle:hover {
	position: absolute;
	width: 16px;
	height: 16px;
	padding: 0;
	border: 2px solid #2563eb;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
	z-index: 3;
	touch-action: none;
}
button.crop-handle[data-corner="nw"] { left: 5px; top: 5px; cursor: nwse-resize; }
button.crop-handle[data-corner="ne"] { right: 5px; top: 5px; cursor: nesw-resize; }
button.crop-handle[data-corner="sw"] { left: 5px; bottom: 5px; cursor: nesw-resize; }
button.crop-handle[data-corner="se"] { right: 5px; bottom: 5px; cursor: nwse-resize; }

.editor-stage .status { margin: .65rem 0 0; }
.controls { display: flex; flex-direction: column; gap: .8rem; text-align: left; }
.tune { display: flex; flex-direction: column; gap: .8rem; }
.tune-step { display: grid; gap: .5rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.tune-step:first-child { padding-top: 0; border-top: 0; }
.tune-step-title { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tune-step-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.tune-step-head .text-btn { flex: 0 0 auto; text-align: right; }
.refine-shapes { margin-top: .05rem; }
button.text-btn, button.text-btn:hover {
	justify-self: start;
	padding: .15rem 0;
	border-color: transparent;
	background: transparent;
	color: var(--muted);
	font-size: .82rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: .15em;
}
button.text-btn.is-on, button.text-btn.is-on:hover { color: var(--accent); }
.lang-picker { display: grid; gap: .45rem; }
.lang-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.lang-label { margin: 0; color: #334155; font-size: .9rem; font-weight: 700; letter-spacing: 0; text-transform: none; white-space: nowrap; }
#lang-more, #lang-more:hover {
	margin-left: auto;
	padding: 0;
	min-height: 0;
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--accent);
	text-align: right;
	white-space: nowrap;
}
#lang-more:hover { color: var(--accent-dark); }
.lang-chips { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .4rem; }
button.lang-chip, button.lang-chip:hover {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	height: 2.4rem;
	padding: 0 .75rem;
	border-radius: 999px;
	background: #fff;
	color: #334155;
	border: 1px solid var(--line);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}
button.lang-chip.is-on, button.lang-chip.is-on:hover {
	background: var(--soft);
	color: var(--accent);
	border-color: #93c5fd;
}
button.lang-chip:disabled, button.lang-chip:disabled:hover { opacity: .45; cursor: default; }
.mask-toggle[hidden] { display: none; }
.mask-toggle {
	position: absolute;
	top: .55rem;
	right: .55rem;
	z-index: 7;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	padding: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: #334155;
	box-shadow: 0 1px 4px rgba(15, 23, 42, .16);
}
.mask-toggle:hover { background: white; color: #334155; }
.mask-toggle.is-on, .mask-toggle.is-on:hover { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.sheet > .tool-links { margin: 0 0 1.1rem; }
.tool-links-title {
	margin: 0 0 .45rem;
	color: var(--ink);
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	white-space: nowrap;
}
.tool-links-row { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.tool-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.05rem;
	padding: .32rem .75rem;
	border: 1px solid #c7ebe3;
	border-radius: 999px;
	background: #f3fbf8;
	color: #0f766e;
	text-decoration: none;
	font-size: .86rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}
.tool-links a:hover { background: #e7f6f2; border-color: #8fd4c6; color: #115e59; text-decoration: none; }
.note, .status, .post-date, .crumbs { color: var(--muted); }
.control-group { display: grid; gap: .25rem; }
.control-group label, .control-label { font-size: .92rem; font-weight: 600; color: #334155; }
.control-group label { display: flex; align-items: center; gap: .35rem; }
.tune-icon { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; display: block; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.choice-row.refine-shapes, .choice-row.face-effects, .choice-row.text-effects, .choice-row.effect-cards { grid-template-columns: 1fr 1fr 1fr; }
.choice-row.scope-cards { grid-template-columns: 1fr 1fr; }
.choice-row.angle-presets { grid-template-columns: 1fr 1fr 1fr; }
.choice-row.angle-presets .choice { padding: .45rem .35rem; font-size: .8rem; line-height: 1.25; }
.dir-overlay { position: absolute; left: 50%; top: 50%; width: 8.5rem; height: 8.5rem; margin: -4.25rem 0 0 -4.25rem; z-index: 5; pointer-events: none; }
.dir-overlay[hidden] { display: none; }
.dir-overlay svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1px 2px rgba(15, 23, 42, .28)); }
.face-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.face-box {
	position: absolute;
	display: block;
	box-sizing: border-box;
	touch-action: none;
	border: 2px dashed #2563eb;
	border-radius: 2px;
	background: rgba(37, 99, 235, 0.16);
	pointer-events: auto;
	cursor: grab;
}
.face-box.is-dragging { cursor: grabbing; }
button.face-remove, button.face-remove:hover {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	width: 18px;
	height: 18px;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(15, 23, 42, 0.7);
	cursor: pointer;
}
button.face-remove:hover { color: #fecaca; }
button.face-handle, button.face-handle:hover {
	position: absolute;
	width: 12px;
	height: 12px;
	min-width: 0;
	padding: 0;
	border: 2px solid #2563eb;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
	z-index: 3;
	touch-action: none;
}
button.face-handle[data-corner="nw"] { left: 0; top: 0; margin: -6px 0 0 -6px; cursor: nwse-resize; }
button.face-handle[data-corner="ne"] { right: 0; top: 0; margin: -6px -6px 0 0; cursor: nesw-resize; }
button.face-handle[data-corner="sw"] { left: 0; bottom: 0; margin: 0 0 -6px -6px; cursor: nesw-resize; }
button.face-handle[data-corner="se"] { right: 0; bottom: 0; margin: 0 -6px -6px 0; cursor: nwse-resize; }
.text-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ocr-box {
	position: absolute;
	display: block;
	box-sizing: border-box;
	touch-action: none;
	border: 2px solid #dc2626;
	border-radius: 2px;
	background: rgba(220, 38, 38, 0.28);
	pointer-events: auto;
	cursor: grab;
}
.ocr-box.is-dragging { cursor: grabbing; }
button.ocr-remove, button.ocr-remove:hover {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	width: 18px;
	height: 18px;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-size: .85rem;
	font-weight: 700;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(15, 23, 42, 0.7);
	cursor: pointer;
}
button.ocr-remove:hover { color: #fecaca; }
button.ocr-handle, button.ocr-handle:hover {
	position: absolute;
	width: 12px;
	height: 12px;
	min-width: 0;
	padding: 0;
	border: 2px solid #dc2626;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
	z-index: 3;
	touch-action: none;
}
button.ocr-handle[data-corner="nw"] { left: 0; top: 0; margin: -6px 0 0 -6px; cursor: nwse-resize; }
button.ocr-handle[data-corner="ne"] { right: 0; top: 0; margin: -6px -6px 0 0; cursor: nesw-resize; }
button.ocr-handle[data-corner="sw"] { left: 0; bottom: 0; margin: 0 0 -6px -6px; cursor: nesw-resize; }
button.ocr-handle[data-corner="se"] { right: 0; bottom: 0; margin: 0 -6px -6px 0; cursor: nwse-resize; }
#blur-background, #blur-faces, #blur-text-all, #blur-text-sensitive { width: 100%; }
#blur-background:disabled, #blur-background:disabled:hover,
#blur-faces:disabled, #blur-faces:disabled:hover,
#blur-text-all:disabled, #blur-text-all:disabled:hover { opacity: .45; cursor: default; background: var(--accent); }
#blur-text-sensitive:disabled, #blur-text-sensitive:disabled:hover { opacity: .45; cursor: default; }
.auto-progress { display: block; }
.auto-progress[hidden] { display: none; }
.auto-progress-track { height: .45rem; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.auto-progress-bar { width: 0%; height: 100%; background: var(--accent); border-radius: 999px; }
.choice-row-one { grid-template-columns: 1fr; }
button.choice { padding: .55rem .4rem; background: white; color: #334155; border: 1px solid var(--line); }
button.choice:hover { background: #f8fafc; color: #334155; }
button.choice.is-on { background: var(--soft); color: var(--accent); border-color: #93c5fd; }
button.effect-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .2rem;
	min-height: 4.35rem;
	padding: .35rem .2rem .4rem;
	font-size: .78rem;
	line-height: 1.15;
}
button.effect-card svg { width: 52px; height: 30px; display: block; }
button.effect-card.is-on svg { color: var(--accent); }
#motion-group { display: grid; gap: .55rem; }
.focus-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
button.focus-point, button.focus-point:hover {
	position: absolute;
	width: 18px;
	height: 18px;
	min-width: 0;
	min-height: 0;
	margin: -9px 0 0 -9px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #2563eb;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, .35);
	pointer-events: auto;
	cursor: grab;
	touch-action: none;
}
button.focus-point::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 4px;
	height: 4px;
	margin: -2px 0 0 -2px;
	border-radius: 50%;
	background: #fff;
}
.control-group.check label { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

.button, button {
	font: inherit;
	display: inline-block;
	border: 1px solid var(--line);
	background: white;
	color: var(--ink);
	border-radius: 10px;
	padding: .62rem 1rem;
	text-decoration: none;
	cursor: pointer;
	font-weight: 600;
}
.button, button.primary { background: var(--accent); color: white; border-color: transparent; }
.button:hover, button.primary:hover { background: var(--accent-dark); color: white; }
.button-quiet { background: white; color: var(--ink); border-color: var(--line); margin-left: .4rem; }
.button-quiet:hover { background: var(--soft); color: var(--ink); }
.button-row, .history-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.history-bar { margin-top: .55rem; flex-wrap: nowrap; }
.history-bar button:not(.icon-btn) { padding: .5rem .75rem; white-space: nowrap; }
.button-row button:disabled, .history-bar button:disabled { opacity: .45; cursor: default; }
#original {
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	touch-action: none;
}
.history-bar .icon-btn {
	width: 2rem;
	height: 2rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #cbd5e1;
	border-radius: 10px;
}
.history-bar .icon-btn svg { display: block; }
.history-bar .icon-btn:not(:disabled) {
	opacity: 1;
	color: var(--accent);
	background: var(--soft);
	border-color: #93c5fd;
}
.history-bar .icon-btn:not(:disabled):hover { background: #dbeafe; color: var(--accent-dark); }
.history-bar .icon-btn:disabled { opacity: 1; color: #cbd5e1; background: white; }

.steps, .step-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .55rem;
	list-style: none;
	padding: 0;
	margin: .65rem 0 0;
	counter-reset: step;
}
.steps li, .step-cards li {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .4rem;
	padding: .7rem .75rem;
	text-align: left;
}
.steps li:before, .step-cards li:before {
	counter-increment: step;
	content: counter(step);
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 1.4rem;
	height: 1.4rem;
	margin: 0;
	border-radius: 999px;
	background: var(--soft);
	color: var(--accent);
	font-size: .8rem;
	font-weight: 800;
}

.feature-grid, .quick-links, .related {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: .9rem;
	list-style: none;
	padding: 0;
}
.feature, .quick-links a, .related a {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	min-height: 100%;
	padding: 1.05rem 1.05rem 1.1rem;
	text-decoration: none;
	color: var(--ink);
}
.feature p, .quick-links a, .related a { color: #475569; }
.feature h3 { color: var(--ink); }
.feature:hover, .quick-links a:hover, .related a:hover { border-color: #bfdbfe; }
.related a {
	color: var(--accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: .16em;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow);
}
.related a:hover {
	color: var(--accent-dark);
	border-color: #93c5fd;
	background: var(--soft);
}
.kicker { color: var(--accent); font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.feature-go { margin-top: auto; color: var(--accent); font-weight: 700; font-size: 1.05rem; }

.section-intro { max-width: 40rem; color: #475569; margin-top: -.2rem; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .15rem; list-style: none; padding: 0; margin: -1.3rem 0 1rem; font-size: .9rem; }
.crumbs li:not(:last-child):after { content: "/"; margin-left: .3rem; color: #94a3b8; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.demo { margin: 1.2rem 0; padding: .8rem; }
.demo figcaption { color: var(--muted); font-size: .92rem; padding: .35rem .2rem 0; }
.opposite { padding: 1rem 1.15rem; background: var(--soft); }
.opposite p { margin: 0; }
.prose .post-tool-card {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	margin: 1.1rem 0 1.25rem;
	padding: 1.05rem 1.05rem 1.1rem;
	border-radius: 16px;
	box-shadow: var(--shadow);
	text-decoration: none;
	color: var(--ink);
}
.prose .post-tool-card.is-lead {
	margin: .75rem 0 1.35rem;
	padding: 1.15rem 1.2rem;
	border-color: #93c5fd;
	background: var(--soft);
}
.prose .post-tool-card strong { color: var(--ink); font-size: 1.12rem; }
.prose .post-tool-card.is-lead strong { font-size: 1.22rem; }
.prose .post-tool-card > span:not(.kicker):not(.feature-go) { color: #475569; }
.prose .post-tool-card:hover { border-color: #bfdbfe; }
.prose .post-tool-card.is-lead:hover { background: #fff; border-color: var(--accent); }
.prose .post-diagram {
	margin: 1rem 0 1.2rem;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
	background: var(--card);
}
.prose .post-diagram svg { display: block; width: 100%; height: auto; }

.faq-item { background: white; border: 1px solid var(--line); border-radius: 14px; margin: .55rem 0; padding: 0 1rem; }
.faq-item summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding: .9rem 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.faq-item summary:after {
	content: "+";
	flex: 0 0 auto;
	align-self: center;
	color: var(--accent);
	font-weight: 700;
	line-height: 1;
}
.faq-item[open] summary:after { content: "–"; }
.faq-item .prose { padding: 0 0 .9rem; }

.blog-index .dek { max-width: none; }
.blog-cats {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 1rem 0 1.25rem;
}
.blog-cat {
	appearance: none;
	border: 1px solid var(--line);
	background: #fff;
	color: #475569;
	border-radius: 999px;
	padding: .4rem .9rem;
	font: inherit;
	font-size: .92rem;
	font-weight: 600;
	cursor: pointer;
}
.blog-cat:hover { border-color: #bfdbfe; color: var(--accent); }
.blog-cat.is-active {
	border-color: var(--accent);
	background: #eff6ff;
	color: var(--accent-dark);
}
.post-list { display: grid; gap: .9rem; list-style: none; padding: 0; }
.post-list li { padding: 1.1rem 1.2rem; }
.post-list h2 { margin: .15rem 0 .35rem; font-size: 1.4rem; }
.post-list a { color: var(--ink); text-decoration: none; }
.post-list a:hover { color: var(--accent); }
.post-cat { margin: 0 0 .2rem; }
.post-cat .kicker { font-size: .78rem; }
.post-date { margin: 0; font-size: .88rem; }
.blog-empty { color: var(--muted); margin: .5rem 0 0; }

.site-footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.72); padding: 2.2rem 0 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.5rem; }
.site-footer strong { display: block; margin: 0 0 .55rem; font-size: inherit; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #334155; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { color: var(--muted); }
.legal { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: #94a3b8; font-size: .7rem; text-align: center; }
.legal a { color: #64748b; text-decoration: none; }
.legal a:hover { color: var(--accent); }
.legal-sep { display: inline-block; margin: 0 .85em; color: #cbd5e1; }
.prose > .lead { font-size: 1.05rem; color: #334155; margin-bottom: 1.25rem; }
.prose h2 { margin: 1.6rem 0 .55rem; font-size: 1.25rem; color: var(--ink); }

@media (min-width: 901px) {
	body { font-size: 1.375rem; }
	.menu { display: none; }
	button.lang-chip, button.lang-chip:hover { font-size: 1rem; }
	.lang-picker:not(.is-open) .lang-chips {
		max-height: calc(2.4rem * 2 + .4rem);
		overflow: hidden;
	}
	.site-header { container-type: inline-size; container-name: header; }
	.header-bar {
		width: max-content;
		max-width: calc(100% - 2rem);
		flex-wrap: nowrap;
		justify-content: center;
		gap: 3rem;
	}
	.logo { margin-right: 0; }
	.logo-mark { width: 2.7rem; height: 2.7rem; }
	.site-nav { flex: 0 0 auto; flex-wrap: nowrap; justify-content: flex-start; gap: .35rem; }
	.site-nav > a, .menu summary { font-size: 1.3125rem; }
	.site-nav > a {
		padding: .28rem .8rem;
		border-radius: 999px;
	}
	.site-nav > a:hover { background: #f1f5f9; }
	.site-nav > a[aria-current="page"] { background: var(--soft); color: var(--accent); }
	@container header (max-width: 1240px) {
		.site-nav { gap: .2rem; }
		.site-nav > a { padding-inline: .5rem; }
	}
	@container header (max-width: 1060px) {
		.header-bar { width: calc(100% - 2rem); flex-wrap: wrap; }
		.site-nav { flex: 1 1 100%; justify-content: center; }
	}
	.logo-text strong { font-size: 1.5rem; }
	.logo-text small { font-size: .95rem; }
	.logo-text { row-gap: .4rem; }
	.dek { font-size: 1.5rem; }
	.kicker { font-size: 1.05rem; }
	.feature-go { font-size: 1.25rem; }
	.crumbs ol { font-size: 1.25rem; }
	h3 { font-size: 1.55rem; }
	.faq-item summary h3 { font-size: 1.4rem; }
	.site-footer p:not(.legal), .site-footer li, .site-footer strong { font-size: 1.3125rem; }
	.site-footer .legal { font-size: 1rem; }
	button.effect-card { font-size: 1rem; }
	.tool-links-title { font-size: 1.2rem; }
	.tool-links a { font-size: 1.0625rem; }
	.control-group label, .control-label { font-size: 1.15rem; }
	.hint { font-size: 1.05rem; }
	.choice-row.angle-presets .choice { font-size: 1rem; }
	.tune-icon { width: 1.2rem; height: 1.2rem; }
	.steps li:before, .step-cards li:before {
		width: 1.85rem;
		height: 1.85rem;
		font-size: 1.05rem;
	}
	.sheet > .tool-links { display: flex; align-items: center; flex-wrap: nowrap; gap: .75rem; }
	.sheet > .tool-links .tool-links-title { margin: 0; }
	.sheet > .tool-links .tool-links-row { flex-wrap: nowrap; }
}
@media (max-width: 900px) {
	#zoom-fit { display: none; }
	.hero, .editor-layout, .steps, .step-cards, .feature-grid, .feature-grid.pair, .feature-grid.missing-grid, .category-grid, .quick-links, .related, .footer-grid { grid-template-columns: 1fr; }
	.editor-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.editor-stage { display: contents; }
	.editor-layout > .controls { margin-top: .85rem; }
	.sheet > .tool-links {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: .45rem;
		overflow: visible;
	}
	.sheet > .tool-links .tool-links-title { margin: 0; flex: 0 0 auto; }
	.sheet > .tool-links .tool-links-row { display: contents; }
	.editor.is-editing .stage {
		position: sticky;
		top: var(--header-offset, 4.4rem);
		z-index: 6;
		justify-self: stretch;
		background: var(--card);
		border-bottom: 1px solid var(--line);
		touch-action: pan-y;
	}
	.steps, .step-cards { gap: .35rem; margin-top: .4rem; }
	.steps li, .step-cards li {
		display: block;
		padding: .4rem .55rem;
		font-size: .88rem;
		line-height: 1.35;
	}
	.steps li:before, .step-cards li:before {
		display: inline-grid;
		margin: 0 .4rem 0 0;
		vertical-align: middle;
	}
	.nav-wide { display: none; }
	.lang-picker:not(.is-open) button.lang-chip.is-extra:not(.is-on) { display: none; }
	.header-bar { flex-wrap: nowrap; align-items: center; gap: .75rem; padding: .7rem 0; }
	.logo { flex: 0 0 auto; }
	.site-nav {
		position: relative;
		flex: 1 1 auto;
		min-width: 0;
		flex-wrap: nowrap;
		justify-content: flex-end;
		gap: .5rem;
	}
	.site-nav > a, .menu summary {
		font-size: .9rem;
		padding: .14rem .06rem;
		border-radius: 999px;
	}
	.menu summary:hover,
	.site-nav > a:hover { background: #f1f5f9; }
	.site-nav > a[aria-current="page"] { background: var(--soft); color: var(--accent); }
	.menu { position: static; }
	.menu-panel {
		top: calc(100% + .35rem);
		left: auto;
		right: 0;
		z-index: 20;
		max-width: calc(100vw - 2rem);
	}
	h1 { font-size: 1.9rem; }
}
