.etch-preview-dialog{position:fixed;inset:12px;margin:auto;width:calc(100vw - 24px);height:calc(100dvh - 24px);max-width:1400px;max-height:none;padding:0;border:1px solid #b8c9bf;background:#fff;color:#263633;border-radius:12px;overflow:hidden}
.etch-preview-dialog::backdrop{background:rgba(24,63,58,.55)}
.etch-preview-dialog[open]{display:flex;flex-direction:column}
.etch-preview-top{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 18px;border-bottom:1px solid #DCE7E1}
.etch-preview-top strong{font:500 15px/1.4 Manrope,Arial,sans-serif}
.etch-preview-top button{min-height:44px;min-width:64px;border:1px solid #183F3A;border-radius:6px;padding:8px 16px;background:#fff;color:#183F3A;cursor:pointer}
.etch-preview-notice{margin:0;padding:8px 18px;background:#F5F2E9;font:13px/1.45 Manrope,Arial,sans-serif}
.etch-preview-status{padding:16px 24px}
.etch-preview-frame{border:0;flex:1;min-height:0;width:100%;background:#fff}
.etch-preview-frame[hidden]{display:none}
#etch-kept-preview:empty{display:none}
#etch-kept-preview{margin:16px 0;padding:16px;border:1px solid #b8c9bf;border-radius:8px}
#etch-kept-preview p{font-size:13px;line-height:1.5}
#etch-kept-preview img{display:block;width:100%;max-width:300px;height:auto;background:#fff}
#etch-open{margin:16px 0 8px}
#etch-open:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:600px){.etch-preview-dialog{inset:0;border:0;border-radius:0;width:100vw;height:100dvh}.etch-preview-top{padding:8px 12px;gap:8px}.etch-preview-top strong{font-size:12px}.etch-preview-notice{padding:8px 12px;font-size:11px}}

/* The dedicated personalization page mounts the same canonical ETCH editor inline. */
.etch-preview-inline{display:flex;flex-direction:column;min-height:650px;height:74dvh;max-height:900px;border:1px solid var(--line);background:white;color:var(--ink);width:100%;overflow:hidden}
.etch-preview-inline .etch-preview-frame{min-height:420px}
.etch-preview-inline .etch-preview-top{gap:12px;flex-wrap:wrap}
@media(max-width:760px){.etch-preview-inline{height:78dvh;min-height:590px}.etch-preview-inline .etch-preview-top{padding:10px}.etch-preview-inline .etch-preview-notice{padding:10px;font-size:12px}}
