.tg-preview{--hs-ink:var(--text-main);--hs-muted:var(--text-muted);--hs-accent:var(--btn-primary-bg-active);--hs-line:var(--border);--hs-surface:#ecfdf5;width:min(540px,100% - 24px);max-height:calc(100dvh - 24px);color:var(--hs-ink);border:1px solid var(--hs-line);background:#fff;border-radius:20px;margin:auto;padding:0;box-shadow:0 30px 90px #00000060}.tg-preview::backdrop{background:#0009}.tg-preview-header,.tg-preview-footer{justify-content:space-between;align-items:center;gap:14px;padding:12px 17px;display:flex}.tg-preview-header h2{margin:0;font-size:20px;font-weight:760}.tg-preview-footer{color:var(--hs-muted);font-size:14px}.tg-preview-stage{background:#fff;grid-template-columns:44px minmax(0,1fr) 44px;place-items:center;column-gap:6px;padding:12px 15px;display:grid}.tg-preview-stage img{object-fit:contain;width:100%;height:clamp(150px,60dvh,606px);display:block}.tg-icon-button{border:1px solid var(--hs-line);width:42px;height:42px;color:var(--hs-ink);cursor:pointer;background:#fff;border-radius:10px;place-items:center;padding:0;display:grid}.tg-icon-button:hover{color:var(--hs-accent);background:var(--hs-surface)}.tg-icon-button:focus-visible{outline:2px solid var(--hs-accent);outline-offset:2px}@media (max-width:640px){.tg-preview-stage{padding-inline:6px}}
