.wcs-app {
	--wcs-ink: #1d1d1f;
	--wcs-muted: #86868b;
	--wcs-line: #e8e8ed;
	--wcs-blue: #0071e3;
	--wcs-surface: #fbfbfd;
	color: var(--wcs-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	max-width: 1180px;
	margin: 32px auto;
	padding: clamp(18px, 3vw, 36px);
	background: #fff;
	border: 1px solid var(--wcs-line);
	border-radius: 24px;
	box-sizing: border-box;
}
.wcs-app *, .wcs-app *::before, .wcs-app *::after { box-sizing: border-box; }
.wcs-header { text-align: center; margin: 0 auto 32px; }
.wcs-eyebrow { color: var(--wcs-muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; margin-bottom: 12px; }
.wcs-title { color: var(--wcs-ink); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.045em; font-weight: 700; margin: 0 0 10px; }
.wcs-description { color: var(--wcs-muted); font-size: 15px; margin: 0; }
.wcs-layout { display: grid; grid-template-columns: minmax(260px, .82fr) minmax(0, 1.5fr); gap: 18px; align-items: stretch; }
.wcs-panel { min-width: 0; border: 1px solid var(--wcs-line); border-radius: 18px; padding: 22px; background: #fff; }
.wcs-label { display: block; color: #55555a; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 9px; }
.wcs-text { display: block; width: 100%; min-height: 190px; resize: vertical; padding: 14px; border: 1px solid var(--wcs-line); border-radius: 12px; outline: none; color: var(--wcs-ink); background: var(--wcs-surface); font: 14px/1.6 inherit; font-family: inherit; }
.wcs-text:focus, .wcs-select:focus { border-color: #8abdf2; box-shadow: 0 0 0 3px rgba(0,113,227,.10); }
.wcs-text::placeholder { color: #a1a1a6; }
.wcs-meta, .wcs-preview-top, .wcs-preview-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wcs-meta { margin: 9px 0 22px; color: var(--wcs-muted); font-size: 11px; }
.wcs-text-button { appearance: none; border: 0; background: transparent; color: var(--wcs-blue); font: 600 12px inherit; font-family: inherit; cursor: pointer; padding: 5px 0; }
.wcs-text-button:disabled { color: #b5b5ba; cursor: not-allowed; }
.wcs-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 12px; }
.wcs-control { min-width: 0; }
.wcs-select { width: 100%; min-height: 41px; border: 1px solid var(--wcs-line); border-radius: 10px; background: #fff; color: var(--wcs-ink); padding: 0 10px; font: 13px inherit; font-family: inherit; }
.wcs-check { display: flex; align-items: center; gap: 9px; margin: 18px 0; color: #55555a; font-size: 12px; cursor: pointer; }
.wcs-check input { accent-color: var(--wcs-blue); width: 15px; height: 15px; }
.wcs-button { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; background: var(--wcs-blue); color: #fff; font: 600 14px inherit; font-family: inherit; cursor: pointer; transition: background .2s, transform .2s; }
.wcs-button:hover { background: #0077ed; transform: translateY(-1px); }
.wcs-button:focus-visible, .wcs-text-button:focus-visible { outline: 3px solid rgba(0,113,227,.28); outline-offset: 3px; }
.wcs-hint { color: var(--wcs-muted); font-size: 10px; line-height: 1.5; text-align: center; margin: 12px 0 0; }
.wcs-preview-panel { display: flex; flex-direction: column; background: var(--wcs-surface); }
.wcs-preview-top { align-items: flex-start; }
.wcs-preview-caption { color: var(--wcs-ink); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.wcs-preview-top .wcs-label { font-size: 9px; color: var(--wcs-muted); }
.wcs-canvas-wrap { position: relative; flex: 1; min-height: 360px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 16px 0 12px; border-radius: 13px; background: #fff; }
.wcs-canvas { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.wcs-empty { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; color: var(--wcs-muted); text-align: center; pointer-events: none; padding: 20px; }
.wcs-empty[hidden] { display: none; }
.wcs-empty-mark { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 6px; border-radius: 18px; background: #f2f2f7; color: #86868b; font: 600 23px Georgia, serif; }
.wcs-empty strong { color: #424245; font-size: 13px; font-weight: 600; }
.wcs-empty span { font-size: 11px; }
.wcs-preview-bottom { border-top: 1px solid var(--wcs-line); padding-top: 13px; color: var(--wcs-muted); font-size: 10px; }
.wcs-footer { text-align: center; color: #a1a1a6; font-size: 10px; margin: 22px 0 0; }
@media (max-width: 760px) {
	.wcs-app { margin: 16px auto; border-radius: 18px; }
	.wcs-layout { grid-template-columns: 1fr; }
	.wcs-panel { padding: 17px; }
	.wcs-canvas-wrap { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) { .wcs-button { transition: none; } }
