@import "https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Carattere&family=Momo+Trust+Display&family=Montserrat:wght@600;700;800&family=Nunito:wght@600;700;800&family=Playfair+Display:wght@700;800&family=Roboto:wght@400;500;700&display=swap&subset=vietnamese";:root{color:#172033;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f5f7fb;font-family:Be Vietnam Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0;overflow:visible}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.58}button:focus-visible,input:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #0ea5e952}#root{height:100%;min-height:100svh}.app-shell{grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;height:100svh;min-height:0;display:grid;overflow:hidden}.editor-panel{background:#fff;border-right:1px solid #d8dee9;flex-direction:column;gap:18px;min-width:0;min-height:0;padding:18px;display:flex;overflow:hidden auto}.sidebar-columns{grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr);align-items:start;gap:14px;display:grid}.sidebar-column{gap:14px;min-width:0;display:grid}.portrait-controls{background:#fff;border:1px solid #cbd5e1;border-radius:8px;gap:6px;padding:8px;display:grid}.portrait-controls .section-heading{margin-bottom:0}.portrait-controls .range-label{grid-template-columns:52px minmax(0,1fr);align-items:center;gap:8px;display:grid}.portrait-controls .range-label span{font-size:11px}.portrait-controls .nudge-grid{display:none}.portrait-controls .button-row{margin-top:0}.portrait-tools{display:block}.portrait-tools .button{min-height:34px;padding:7px 10px;font-size:12px}.portrait-tools .icon-button{width:38px;height:38px}.portrait-controls .control-line{gap:10px}.portrait-controls .button-row{gap:8px}.manual-erase-panel{background:#f8fafc;border:1px solid #cbd5e1;border-radius:8px;gap:7px;padding:10px;display:grid}.manual-erase-panel .section-heading{margin-bottom:2px}.manual-erase-panel .manual-toolbar{gap:7px}.manual-canvas-wrap{background:repeating-conic-gradient(#e5e7eb 0 25%, #fff 0 50%) 50% / 16px 16px;height:auto;min-height:0;position:relative;overflow:hidden}.manual-erase-panel canvas{object-fit:contain;cursor:none;touch-action:none;max-width:none;max-height:none;display:block}.brush-cursor{pointer-events:none;box-sizing:border-box;border:2px solid #ef4444;border-radius:50%;position:absolute;transform:translate(-50%,-50%)}.manual-toolbar{flex-wrap:wrap;align-items:center;gap:5px;display:flex}.manual-save-button{margin-left:auto}.manual-toolbar label{align-items:center;gap:4px;font-size:11px;font-weight:700;display:flex}.brand-strip{align-items:center;gap:14px;padding-bottom:10px;display:flex}.brand-strip img{width:58px;height:58px}.brand-strip h1,.preview-toolbar h2,.section-heading h2{margin:0}.brand-strip h1{color:#111827;font-family:Montserrat,sans-serif;font-size:24px;line-height:1.12}.brand-strip p,.eyebrow,.inline-note,.form-error{margin:0}.brand-strip p,.eyebrow,.inline-note{color:#667085;font-size:13px;font-weight:600}.panel-section{border-top:1px solid #e4e7ec;flex-direction:column;gap:14px;padding-top:18px;display:flex}.compact-panel{gap:10px;padding-top:12px}.section-heading{color:#1f2937;align-items:center;gap:9px;display:flex}.section-heading h2{font-family:Montserrat,sans-serif;font-size:15px;font-weight:800}.section-heading.compact h2{font-size:14px}.portrait-dropzone{cursor:pointer;background:#f7f9fc;border:1px dashed #b8c2d6;border-radius:8px;place-items:center;min-height:112px;transition:border-color .16s,background-color .16s;display:grid;overflow:hidden}.portrait-dropzone:hover,.portrait-dropzone:focus-visible{background:#eef5ff;border-color:#2563eb}.portrait-dropzone img{object-fit:contain;background-color:#0000;background-image:linear-gradient(45deg,#edf1f7 25%,#0000 25%),linear-gradient(-45deg,#edf1f7 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#edf1f7 75%),linear-gradient(-45deg,#0000 75%,#edf1f7 75%);background-position:0 0,0 10px,10px -10px,-10px 0;background-repeat:repeat,repeat,repeat,repeat;background-size:20px 20px;background-attachment:scroll,scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box,border-box;width:100%;height:126px}.empty-upload{color:#667085;justify-items:center;gap:8px;font-size:13px;font-weight:600;display:grid}.button-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.button,.icon-button{color:#172033;background:#fff;border:1px solid #cbd5e1;transition:background-color .16s,border-color .16s,transform .16s}.button:hover,.icon-button:hover{background:#f8fafc;border-color:#94a3b8}.button:active,.icon-button:active{transform:translateY(1px)}.button{border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:9px 13px;font-size:13px;font-weight:800;display:inline-flex}.button.primary{color:#fff;background:#2563eb;border-color:#1d4ed8}.button.primary:hover{background:#1d4ed8;border-color:#1e40af}.icon-button{border-radius:8px;place-items:center;width:40px;height:40px;display:inline-grid}.icon-button.danger{color:#b42318}.loading-icon{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.progress-area{gap:7px;display:grid}.progress-meta{color:#475467;justify-content:space-between;font-size:12px;font-weight:700;display:flex}.progress-track{background:#e4e7ec;border-radius:999px;height:8px;overflow:hidden}.progress-track span{border-radius:inherit;background:#0f766e;height:100%;display:block}.form-error{color:#b42318;font-size:13px;font-weight:700}.form-grid{grid-template-columns:1fr 1fr;gap:13px;display:grid}.form-grid label,.color-custom,.range-label{color:#344054;gap:7px;font-size:12px;font-weight:800;display:grid}.form-grid label:first-child,.form-grid label:nth-child(2){grid-column:1/-1}.form-grid input,.form-grid select,.color-custom input:not([type=color]),.text-editor-field input:not([type=color]),.text-editor-field select,.text-editor-field textarea{color:#172033;background:#fff;border:1px solid #cbd5e1;border-radius:8px;width:100%;min-height:40px;padding:8px 10px}.text-editor-panel{z-index:20;background:#fff;border-bottom:1px solid #cbd5e1;align-items:center;gap:8px;width:50vw;min-height:54px;padding:7px 12px;display:flex;position:fixed;top:0;left:50%;overflow:hidden;box-shadow:0 3px 12px #0f172a1f}.text-editor-panel .section-heading{flex:none;margin-right:4px}.text-editor-panel .section-heading h2{white-space:nowrap;font-size:14px}.text-editor-panel .text-editor-grid{flex:none;gap:6px;display:flex}.text-editor-panel .text-editor-field{white-space:nowrap;align-items:center;gap:5px;display:flex}.text-editor-panel .text-editor-field span{font-size:10px}.text-editor-panel .text-editor-field input:not([type=color]),.text-editor-panel .text-editor-field select{width:auto;min-height:34px}.text-editor-panel .text-editor-grid .text-editor-field:first-child input{width:62px}.font-size-stepper{align-items:center;gap:3px;display:flex}.font-size-stepper .icon-button{width:30px;height:32px;padding:0}.font-size-stepper input{text-align:center;width:48px!important}.text-editor-panel .text-editor-grid .text-editor-field:first-child>span{display:none}.font-size-stepper input[type=number]{appearance:textfield}.font-size-stepper input[type=number]::-webkit-inner-spin-button{appearance:none;margin:0}.font-size-stepper input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}.text-editor-panel .text-editor-grid .text-editor-field:last-child select{width:145px}.text-editor-panel .color-field{flex:none;display:flex}.text-editor-panel .color-field input:not([type=color]){width:88px}.color-menu{flex:none;position:relative}.color-menu summary{cursor:pointer;list-style:none}.color-menu summary::-webkit-details-marker{display:none}.color-letter{color:#344054;border-bottom:4px solid;place-items:center;width:32px;height:34px;font-family:Georgia,serif;font-size:17px;font-weight:700;display:grid}.color-palette-popover{z-index:40;background:#fff;border:1px solid #d0d5dd;border-radius:6px;width:220px;padding:10px;position:absolute;top:42px;left:-4px;box-shadow:0 6px 18px #0f172a33}.color-palette-grid{grid-template-columns:repeat(9,1fr);gap:5px;display:grid}.palette-color{cursor:pointer;border:1px solid #d0d5dd;border-radius:50%;width:18px;height:18px;padding:0}.custom-color-picker{color:#344054;align-items:center;gap:8px;margin-top:9px;font-size:9px;font-weight:800;display:flex}.custom-color-picker input{border:0!important;width:26px!important;min-height:26px!important;padding:0!important}.text-editor-panel .color-menu{display:block}.text-editor-panel .color-field{display:none}.native-color-trigger{z-index:2;opacity:0;cursor:pointer;width:32px;height:34px;position:absolute;inset:0}.color-palette-popover{display:none}.text-editor-panel .text-editor-control-group{flex:none;align-items:center;gap:5px;display:flex}.text-editor-panel .control-label{display:none}.text-editor-panel .text-style-row{flex:none;align-items:center;gap:4px;display:flex}.text-editor-panel .rotation-control,.text-editor-panel .check-field span{display:none}.text-editor-panel .text-editor-field:has(input[type=range]){display:none}.text-editor-grid{grid-template-columns:92px minmax(0,1fr);gap:9px;display:grid}.text-editor-field{color:#344054;gap:5px;font-size:11px;font-weight:800;display:grid}.text-editor-field textarea{resize:vertical;min-height:54px}.color-field{grid-template-columns:auto 38px minmax(0,1fr);align-items:center}.color-field input[type=color],.text-style-row input[type=color]{background:0 0;border:1px solid #cbd5e1;border-radius:6px;width:38px;height:34px;padding:0}.text-editor-control-group,.text-style-row{align-items:center;gap:8px;display:flex}.text-style-row{color:#475467;justify-content:space-between;min-height:32px;font-size:12px;font-weight:700}.check-field{align-items:center;gap:7px;display:inline-flex}.check-field input{accent-color:#2563eb;width:16px;height:16px}.control-label{color:#344054;font-size:11px;font-weight:800}.text-icon-group{gap:6px;display:inline-flex}.text-icon-group .icon-button.active{color:#1d4ed8;background:#dbeafe;border-color:#2563eb}.segmented-field{border:0;gap:7px;margin:0;padding:0;display:grid}.segmented-field legend{color:#344054;margin:0;padding:0;font-size:12px;font-weight:800}.segmented-control{border:1px solid #cbd5e1;border-radius:8px;grid-template-columns:1fr 1fr;min-height:40px;display:grid;overflow:hidden}.segmented-control button{color:#475467;background:#fff;border:0;font-weight:800}.segmented-control button.active{color:#fff;background:#172033}.inline-note{align-items:center;gap:6px;display:inline-flex}.swatch-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;display:grid}.swatch{aspect-ratio:1;border:2px solid #fff;border-radius:8px;min-height:38px;box-shadow:0 0 0 1px #cbd5e1}.swatch.active{box-shadow:0 0 0 2px #111827,0 8px 20px #1118272e}.color-custom{grid-template-columns:auto 42px minmax(0,1fr);align-items:center}.color-custom input[type=color]{background:0 0;border:1px solid #cbd5e1;border-radius:8px;width:42px;height:40px;padding:0}.template-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.template-thumb{color:#344054;background:#fff;border:1px solid #d0d5dd;border-radius:8px;justify-items:center;gap:7px;min-width:0;padding:5px;font-size:11px;font-weight:800;display:grid}.template-thumb.active{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb33}.thumb-canvas{aspect-ratio:1;background:#eef2f6;border-radius:6px;width:100%;position:relative;overflow:hidden}.thumb-canvas img{object-fit:cover;width:100%;height:100%;display:block}.preview-panel{background:linear-gradient(120deg,#0f766e14,#0000 36%),linear-gradient(300deg,#ea580c14,#0000 32%),#f5f7fb;flex-direction:column;gap:18px;min-width:0;min-height:0;padding:28px;display:flex;overflow:hidden auto}.preview-toolbar{justify-content:space-between;align-items:center;gap:18px;display:flex}.preview-toolbar h2{color:#111827;margin-top:4px;font-family:Montserrat,sans-serif;font-size:22px;line-height:1.22}.toolbar-actions{justify-content:flex-end}.canvas-shell{place-items:center;width:100%;min-width:0;display:grid}.canvas-frame{aspect-ratio:1;justify-items:center;width:min(100%,780px);display:grid}.canvas-frame .konvajs-content{background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 28px 70px #0f172a2e,0 0 0 1px #0f172a14}.portrait-controls{background:#ffffffeb;border:1px solid #d8dee9;border-radius:8px;gap:14px;width:min(100%,780px);margin:0 auto;padding:16px;display:grid;box-shadow:0 14px 40px #0f172a14}.control-line{grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:10px;display:grid}input[type=range]{accent-color:#2563eb;width:100%}.nudge-grid{grid-template-columns:repeat(3,40px);justify-content:start;gap:8px;display:grid}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (width<=720px){.app-shell{grid-template-rows:minmax(0,1fr) minmax(0,1fr);grid-template-columns:1fr}.preview-panel{order:1;overflow-y:auto}.editor-panel{border-top:1px solid #d8dee9;border-right:0;order:2}.editor-panel,.preview-panel{padding:18px}.sidebar-columns{grid-template-columns:1fr}.text-editor-panel{width:100vw;left:50%;transform:none}.preview-toolbar{flex-direction:column;align-items:stretch}.toolbar-actions{justify-content:flex-start}.form-grid{grid-template-columns:1fr}.swatch-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.template-grid{grid-template-columns:repeat(3,minmax(72px,1fr))}.brand-strip h1{font-size:21px}.button{flex:auto}}
