.voucher-editor{width:min(1060px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;background:#101b2a;color:#f4f7ff;border:1px solid #43556c;border-radius:20px;font-family:system-ui,sans-serif;box-shadow:0 22px 90px #0009;overflow:auto}
.voucher-editor::backdrop{background:#070e1cce}
.ve-header,.ve-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 22px;background:#17263a}
.ve-header h2{margin:2px 0 0;color:#fff;font-size:clamp(1.25rem,4vw,1.75rem)}
.ve-header span,.ve-hint,.ve-footer span{font-size:.85rem;color:#bdd1ea}
.ve-workspace{display:grid;grid-template-columns:minmax(190px,235px) minmax(0,1fr);gap:18px;padding:18px}
.ve-tools,.ve-inspector{background:#17263a;padding:12px;border-radius:12px}
.ve-tools h3{color:#fff;margin:4px 0 8px;font-size:.92rem}
.ve-themes,.ve-stickers,.ve-fonts{display:grid;gap:6px;margin-bottom:12px}
.ve-themes{grid-template-columns:repeat(2,minmax(0,1fr))}
.ve-stickers,.ve-fonts{grid-template-columns:repeat(3,minmax(0,1fr))}
.voucher-editor button,.voucher-editor input,.voucher-editor select{font:inherit;color:inherit;background:#23364f;border:1px solid #50637d;border-radius:7px;padding:7px;cursor:pointer}
.voucher-editor button:focus-visible,.voucher-editor input:focus-visible,.voucher-editor select:focus-visible{outline:2px solid #ffd174;outline-offset:2px}
.voucher-editor button[aria-pressed=true]{border-color:#ffcf75;background:#354760;box-shadow:0 0 0 1px #ffcf75}
.ve-themes button{overflow:hidden;padding:0;font-size:.68rem;line-height:1.2}
.ve-themes span{display:block;padding:5px 2px}
.ve-themes img{display:block;width:100%;height:auto;aspect-ratio:120/85;object-fit:cover}
 .ve-stickers img{display:block;width:32px;height:32px;margin:auto;color:#ffd174}
.ve-canvas{position:relative;aspect-ratio:1200/846;container-type:inline-size;background:#101725;border-radius:10px;overflow:hidden;isolation:isolate}
.ve-canvas>img{display:block;width:100%;height:100%;pointer-events:none}
.ve-layers{position:absolute;inset:0}
.voucher-editor .ve-item{position:absolute;transform:translate(-50%,-50%);padding:0;border:1px solid transparent;background:none;color:#fff;border-radius:3px;touch-action:none;cursor:grab;line-height:1;white-space:nowrap;user-select:none}
.voucher-editor .ve-item[aria-pressed=true]{outline:1px dashed #fff;border-color:#ffcf75;background:#0c132533;box-shadow:none;z-index:1}
.ve-item img{display:block;width:7.33cqw;height:7.33cqw;color:var(--ve-accent,#ffd174)}
.ve-fonts small{display:block}
.ve-inspector input{display:block;width:100%;box-sizing:border-box;cursor:text;margin:5px 0 8px}
.ve-inspector select{margin:0 0 8px 4px}
.ve-footer button:last-child{background:#ffd174;color:#17263a;font-weight:700}
@media(max-width:690px){.ve-workspace{display:flex;flex-direction:column;gap:12px;padding:10px}.ve-stage{order:-1}.ve-themes{display:flex;overflow-x:auto;padding:2px}.ve-themes button{flex:0 0 76px}.ve-stickers{grid-template-columns:repeat(6,minmax(0,1fr))}.ve-header,.ve-footer{padding:10px 14px}}


.ve-inspector input[type=color]{display:inline-block;width:48px;height:34px;padding:3px;margin:0 12px 8px 4px;vertical-align:middle;cursor:pointer}

.voucher-editor .ve-text{white-space:pre;text-align:center;line-height:1.2}
.ve-inspector textarea{display:block;box-sizing:border-box;width:100%;margin:5px 0 4px;padding:7px;resize:vertical;background:#23364f;color:inherit;border:1px solid #50637d;border-radius:7px;font:inherit}
.ve-inspector textarea:focus-visible{outline:2px solid #ffd174;outline-offset:2px}
#voucher-editor-text-hint{display:block;margin-bottom:8px;color:#bdd1ea}
