.ee-page{max-width:1760px;margin:auto;padding:24px;color:#162747;font-family:'Sarabun',sans-serif}.ee-page button,.ee-dialog button,.cp-shared-dialog button{cursor:pointer;border:1px solid #d6deeb;background:white;border-radius:9px;padding:9px 13px;font:inherit}.ee-page button:hover,.ee-dialog button:hover{background:#edf3fd}.ee-page button:disabled,.ee-dialog button:disabled{opacity:.5;cursor:wait}.ee-page .ee-primary,.ee-dialog .ee-primary,.cp-dialog-primary{background:#1e40af;color:white;border-color:#1e40af}.ee-top,.ee-actions,.ee-tools,.ee-bottom,.ee-dialog header,.ee-dialog footer{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.ee-top{justify-content:space-between}.ee-top h1{font-size:25px;font-weight:700;margin:6px 0}.ee-top a{font-size:13px;color:#1e40af}.ee-top p,.ee-help{font-size:12px;color:#62718b}.ee-actions{font-size:12px}.ee-steps{display:flex;gap:8px;list-style:none;padding:18px 0;margin:0;overflow:auto}.ee-steps li{white-space:nowrap;font-size:12px;padding:8px 13px;border-radius:20px;background:#f0f4fa}.ee-steps li[aria-current=step]{background:#dbeafe;color:#1e40af;font-weight:700}.ee-workspace{display:grid;grid-template-columns:270px minmax(0,1fr) 240px;gap:16px;align-items:start}.ee-panel{border:1px solid #e0e6f0;border-radius:14px;padding:18px;background:white;max-height:75vh;overflow:auto}.ee-panel h2{font-size:15px;font-weight:700;margin-bottom:12px}.ee-field{display:grid;gap:6px;margin:13px 0;font-size:13px}.ee-field input,.ee-field select,.ee-field textarea{width:100%;padding:9px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#182947;font:inherit;box-sizing:border-box}.ee-field textarea{resize:vertical}.ee-field:focus-within{color:#1e40af}.ee-check{display:flex;gap:8px;align-items:center;font-size:13px}.ee-field.is-selected textarea{border-color:#3b82f6;box-shadow:0 0 0 2px #dbeafe}.ee-tools{margin-bottom:10px;gap:5px;font-size:12px}.ee-center{min-width:0}.ee-canvas-stage{height:clamp(300px,49vh,640px);background:#edf1f7;border:1px solid #dce3ed;border-radius:14px;overflow:auto;display:flex;align-items:safe center;justify-content:safe center;padding:22px;box-sizing:border-box}.ee-canvas-stage svg{display:block;flex-shrink:0;background:white;box-shadow:0 5px 20px #152c4922;touch-action:none;outline:none}.ee-canvas-stage svg:focus-visible{outline:2px solid #3b82f6}.ee-selection{fill:transparent;stroke:transparent;vector-effect:non-scaling-stroke;cursor:move}.ee-selection.is-selected{stroke:#2563eb;stroke-width:1.5}.ee-resize{fill:#2563eb;stroke:white;stroke-width:.3;cursor:nwse-resize}.ee-elements{display:flex;flex-wrap:wrap;gap:5px;margin-top:14px}.ee-elements button{font-size:11px;padding:6px 9px}.ee-bottom{justify-content:space-between;margin-top:18px;padding:12px 0}.ee-bottom span{font-size:13px}.ee-loading{display:flex;justify-content:center;align-items:center;gap:10px;min-height:250px;border-radius:16px;background:#f2f5fb}.ee-spinner{width:22px;height:22px;border:3px solid #dbeafe;border-top-color:#1d4ed8;border-radius:50%;animation:ee-spin .8s linear infinite}@keyframes ee-spin{to{transform:rotate(360deg)}}.ee-mobile-tabs{display:none}.ee-dialog,.cp-shared-dialog{border:0;border-radius:18px;padding:22px;max-width:min(94vw,1100px);max-height:94dvh;box-shadow:0 20px 90px #0f172a55;color:#162747}.ee-dialog::backdrop,.cp-shared-dialog::backdrop{background:#0f172a99}.ee-dialog header{justify-content:space-between;margin-bottom:12px}.ee-dialog h2,.cp-shared-dialog h2{font-size:20px;font-weight:700}.ee-dialog footer{justify-content:flex-end;margin-top:16px}.ee-preview{width:95vw;height:92dvh;max-width:1500px}.ee-preview[open]{display:flex;flex-direction:column}.ee-preview-stage{flex:1;min-height:0;overflow:auto;background:#edf1f7;border-radius:12px;display:flex;align-items:safe center;justify-content:safe center;padding:16px}.ee-preview-stage img{max-width:none;flex-shrink:0;background:white;box-shadow:0 4px 20px #152c4922;touch-action:none}.ee-preview-tools{display:flex;gap:6px;align-items:center;font-size:12px;margin-bottom:10px}.ee-details{width:520px}.ee-picker-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;max-height:65dvh;overflow:auto}.ee-picker-grid button{text-align:left;padding:10px}.ee-picker-grid img{width:100%;aspect-ratio:23/11;object-fit:contain;background:#f1f5fa}.ee-picker-grid strong{display:block;font-size:13px;margin-top:8px}.ee-toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:10000;padding:13px 22px;border-radius:12px;max-width:90vw;background:#143858;color:#fff;box-shadow:0 5px 30px #0003;font-size:14px}.ee-toast.is-error{background:#a72332}.cp-shared-dialog{max-width:450px}.cp-shared-dialog p{white-space:pre-line;line-height:1.7;margin:16px 0}.cp-dialog-actions{display:flex;gap:8px;justify-content:flex-end}.cp-alert-icon{font-size:24px;color:#1e40af}.ee-summary{max-width:780px;margin:45px auto;padding:25px}.ee-summary h1{font-size:28px;font-weight:700}.ee-summary dl{display:grid;grid-template-columns:140px 1fr;gap:14px;margin:25px 0}.ee-projects{display:grid;gap:15px;margin:20px 0}.ee-project-card{border:1px solid #dbe3ef;border-radius:12px;padding:18px}.ee-project-card a{color:#1e40af}.ee-project-card p{font-size:13px;margin:8px 0}.ee-page [hidden],.ee-dialog [hidden],.ee-toast[hidden]{display:none!important}
@media(max-width:1100px){.ee-workspace{grid-template-columns:230px minmax(0,1fr)}.ee-options-panel{grid-column:1/-1;display:flex;gap:25px;max-height:none}.ee-options-panel section{flex:1}.ee-canvas-stage{height:440px}}
@media(max-width:700px){.ee-page{padding:14px 12px 95px}.ee-top{gap:8px}.ee-top h1{font-size:21px}.ee-actions{width:100%;justify-content:space-between}.ee-steps{gap:4px}.ee-steps li{font-size:10px;padding:7px 9px}.ee-workspace{display:flex;flex-direction:column;gap:12px}.ee-center{order:0;width:100%}.ee-canvas-stage{height:260px;padding:12px}.ee-tools{font-size:11px}.ee-tools button{padding:7px 9px}.ee-mobile-tabs{order:1;display:flex;gap:7px;width:100%}.ee-mobile-tabs button{flex:1}.ee-mobile-tabs [aria-pressed=true]{background:#dbeafe;color:#1e40af}.ee-text-panel{order:2;width:100%;box-sizing:border-box;max-height:none}.ee-options-panel{order:3;display:contents}.ee-options-panel section{width:100%;padding:16px;border:1px solid #dbe3ef;border-radius:12px;box-sizing:border-box}.ee-page [data-panel].is-mobile-hidden{display:none}.ee-bottom{position:fixed;bottom:0;left:0;right:0;margin:0;background:white;border-top:1px solid #e2e8f0;padding:12px;z-index:40;box-shadow:0 -3px 15px #122c4810}.ee-bottom span{font-size:11px}.ee-bottom button{font-size:12px}.ee-dialog{padding:15px;border-radius:12px;max-width:96vw}.ee-dialog h2{font-size:17px}.ee-picker-grid{grid-template-columns:repeat(2,1fr)}.ee-toast{bottom:85px}.ee-summary{padding:20px;margin:20px auto}.ee-summary dl{grid-template-columns:100px 1fr;font-size:14px}}
.ee-editor-body .nd-live-launcher{bottom:100px}
@media(max-width:700px){.ee-options-panel section{order:2}}
@media(prefers-reduced-motion:reduce){.ee-spinner{animation:none}}
/* Desktop editor stays within the viewport; its two side panels scroll independently. */
.cp-shared-dialog .cp-dialog-primary{background:#1e40af;color:#fff;border-color:#1e40af}.cp-shared-dialog .cp-dialog-primary:hover{background:#1e3a8a;border-color:#1e3a8a}
.ee-summary .ee-project-card h2{font-size:18px;line-height:1.5;overflow-wrap:anywhere}.ee-summary .ee-project-card>img{min-height:80px;object-fit:contain;background:#f1f5fa;border-radius:8px}
.ee-current-thumbnail{display:block;width:100%;max-height:180px;object-fit:contain;background:#f1f5fa;border-radius:8px}.ee-picker{width:88vw;height:86dvh;box-sizing:border-box}.ee-picker[open]{display:flex;flex-direction:column}.ee-picker-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}.ee-picker-filters .ee-field{margin:0}.ee-picker .ee-picker-grid{flex:1;min-height:0;max-height:none;align-content:start}.ee-template-card{border:1px solid #dbe3ef;border-radius:12px;overflow:hidden;background:white}.ee-template-card .ee-template-thumbnail{display:block;width:100%;padding:8px;border:0;border-radius:0;cursor:zoom-in}.ee-template-card .ee-template-thumbnail:hover{background:#e5edf9}.ee-template-card-body{padding:0 12px 12px}.ee-template-card p{font-size:12px;color:#62718b;margin:6px 0}.ee-card-actions{display:flex;gap:6px;flex-wrap:wrap}.ee-card-actions button{font-size:12px;flex:1}.ee-template-card[aria-current=true]{border-color:#2563eb;box-shadow:inset 0 0 0 1px #2563eb}.ee-preview-stage img.is-lowres{filter:blur(2px);opacity:.55}.ee-warning{font-size:12px;color:#92400e;background:#fffbeb;border-radius:7px;padding:7px 10px;margin:5px 0;line-height:1.6}.ee-field textarea.ee-autogrow{resize:vertical;min-height:64px;max-height:300px;overflow-y:auto}.ee-field.has-overflow textarea{border-color:#d97706}.ee-sheet{position:relative;flex-shrink:0}.ee-ruler-x,.ee-ruler-y{position:absolute;overflow:visible;pointer-events:none;color:#61718c;font:9px sans-serif}.ee-ruler-x{left:0;top:-17px;height:14px}.ee-ruler-y{left:-22px;top:0;width:20px}.ee-canvas-stage .ee-ruler-x,.ee-canvas-stage .ee-ruler-y{background:none;box-shadow:none}.ee-review-summary{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;margin:18px 0;font-size:14px}.ee-review-summary dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.ee-ornament-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.ee-ornament-picker button{padding:7px;min-width:0}.ee-ornament-picker img{width:100%;height:30px;object-fit:contain}.ee-project-card{display:grid;grid-template-columns:180px minmax(0,1fr);gap:16px;align-items:center}.ee-project-card>img{width:100%;height:auto}.ee-project-card h2{font-weight:700}.ee-project-card time{font-size:12px;color:#62718b}.ee-project-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.ee-project-card button{border:1px solid #cbd5e1;border-radius:8px;background:white;padding:8px 12px;cursor:pointer}.ee-summary-image{max-width:100%;max-height:320px;object-fit:contain;margin-top:18px}.ee-dialog button:focus-visible,.ee-page button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
@media(max-width:700px){.ee-top .ee-actions{display:grid;grid-template-columns:auto 1fr auto;gap:6px;align-items:center}.ee-actions>span{grid-column:1/-1;order:4}.ee-actions>a{text-align:center}.ee-picker{width:96vw;height:92dvh}.ee-picker-filters{grid-template-columns:1fr 1fr;gap:8px}.ee-picker-filters>.ee-field:first-child{grid-column:1/-1}.ee-steps{counter-reset:step;justify-content:space-between;overflow:visible}.ee-steps li{counter-increment:step;font-size:0;padding:9px;min-width:18px;text-align:center}.ee-steps li::before{content:counter(step);font-size:12px}.ee-steps li[aria-current=step]{font-size:11px}.ee-steps li[aria-current=step]::before{display:none}.ee-page button,.ee-dialog button{min-height:44px}.ee-picker-grid{gap:9px}.ee-card-actions{flex-direction:column}.ee-card-actions button{width:100%}.ee-ruler-y{left:-19px;width:17px}.ee-ruler-x{top:-15px}.ee-bottom{padding-bottom:max(12px,env(safe-area-inset-bottom))}.ee-project-card{grid-template-columns:1fr}.ee-project-card>img{max-height:150px;object-fit:contain}.ee-toast{bottom:165px}.ee-dialog{box-sizing:border-box}.ee-review-summary{grid-template-columns:85px minmax(0,1fr)}}
@media(min-width:1101px){body.ee-editor-active{display:flex;flex-direction:column;height:100dvh;margin:0;overflow:hidden}.ee-editor-active>header{flex-shrink:0}.ee-editor-active #envelopePublicEditor{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;box-sizing:border-box;margin:0 auto;padding:16px 24px 12px;overflow:hidden}.ee-editor-active .ee-top,.ee-editor-active .ee-steps,.ee-editor-active .ee-bottom{flex-shrink:0}.ee-editor-active .ee-workspace{flex:1;min-height:0;align-items:stretch;overflow:hidden}.ee-editor-active .ee-panel{height:100%;max-height:none;min-height:0;box-sizing:border-box;overscroll-behavior:contain}.ee-editor-active .ee-center{display:flex;flex-direction:column;min-height:0}.ee-editor-active .ee-canvas-stage{flex:1;height:auto;min-height:0}.ee-editor-active .ee-center>.ee-help{flex-shrink:0;margin:4px 0 0}.ee-editor-active .ee-bottom{margin-top:10px;padding:8px 0 0}.ee-editor-active .ee-loading{flex:1;min-height:0}}
