/* Match the established component dimensions, spacing, palette and tabs. */
.finished-preview .preview-canvas>svg{max-width:400px;width:100%;height:auto}
.finished-preview .preview-tabs{flex-wrap:wrap}
body[data-local-preview]::after{content:'LOCAL PREVIEW · NOT PUBLISHED';position:fixed;bottom:5px;left:6px;z-index:500;font:10px Arial;color:#596760;background:#fffef0e8;border:1px solid #dce1d3;border-radius:4px;padding:3px 6px;pointer-events:none}
.integrated-colors{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0 16px}.integrated-colors>div{display:flex;gap:8px;flex-wrap:wrap}.integrated-colors button{border:1px solid var(--line);border-radius:50%;padding:4px;background:white;width:32px;height:32px;cursor:pointer}.integrated-colors button i{display:block;background:var(--swatch);width:100%;height:100%;border-radius:50%;border:1px solid #0002}.integrated-colors button[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}.preview-canvas.integrated-multi{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.preview-canvas.integrated-multi:has(figure:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}.preview-canvas figure{margin:0;min-width:0;text-align:center;padding:8px 2px 14px}.angle-zoom{display:block;width:100%;border:0;padding:0;background:transparent;cursor:zoom-in}.angle-zoom svg{display:block;width:100%;height:auto}.preview-canvas:not(.integrated-multi)>figure{width:100%;max-width:400px}.preview-canvas figcaption{font-size:14px;font-weight:650}.integrated-zoom{box-sizing:border-box;width:min(900px,calc(100vw - 24px),calc(100dvh - 24px));height:min(900px,calc(100vw - 24px),calc(100dvh - 24px));max-width:none;max-height:none;padding:44px 20px 20px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.integrated-zoom[open]{display:grid;grid-template-rows:minmax(0,1fr)}.integrated-zoom .zoom-stage{display:grid;place-items:center;min-width:0;min-height:0;width:100%;height:100%}.integrated-zoom .zoom-stage>svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%;min-width:0;min-height:0;stroke:none;fill:none}.integrated-zoom .zoom-close{position:absolute;right:8px;top:6px;width:36px;height:36px;display:grid;place-items:center;padding:0;border:0;background:white;font-size:28px;line-height:1;cursor:pointer}.integrated-zoom::backdrop{background:#11232aaa}
.finished-preview.is-child-preview .preview-warning{color:var(--muted);margin:8px 0 0;font-size:13px;line-height:1.6}

@media(max-width:600px){.integrated-zoom{padding:38px 8px 8px}}

html[lang=zh] body[data-local-preview]::after{content:'本地小样 · 未发布'}
html[lang=es] body[data-local-preview]::after{content:'VISTA LOCAL · SIN PUBLICAR'}
