@import url('https://fonts.googleapis.com/css2?family=Anton&family=Barlow+Condensed:wght@500;900&family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Montserrat:wght@700;900&family=Oswald:wght@500;700&display=swap');
@font-face{font-family:"Baliho Script";src:url("./fonts/BalihoScript.ttf") format("truetype");font-display:swap}
@font-face{font-family:"iCiel Bambola";src:url("./fonts/iCielBambola.otf") format("opentype");font-display:swap}
@font-face{font-family:"iCiel BC Cubano";src:url("./fonts/iCielBCCubano-Normal.otf") format("opentype");font-display:swap}
@font-face{font-family:"iCiel BC Downtown";src:url("./fonts/iCielBCDowntown-Regular.otf") format("opentype");font-display:swap}
@font-face{font-family:"iCiel BC Matchbook";src:url("./fonts/iCielBCMatchbookTxture-Regular.ttf") format("truetype");font-display:swap}
@font-face{font-family:"iCiel BC Rostrum";src:url("./fonts/iCielBCRostrum-Regular.otf") format("opentype");font-display:swap}
@font-face{font-family:"iCiel Panton Black";src:url("./fonts/iCielPanton-Black.otf") format("opentype");font-display:swap}
@font-face{font-family:"iCiel Panton Black Italic";src:url("./fonts/iCielPanton-BlackItalic.otf") format("opentype");font-display:swap}
@font-face{font-family:"iCiel Pequena";src:url("./fonts/iCielPequena-English.otf") format("opentype");font-display:swap}
*{box-sizing:border-box}:root{--blue:#1769ff;--ink:#122b57;--line:#dfe7f1;--bg:#eef3f8}
body{margin:0;background:var(--bg);color:#152238;font-family:"Be Vietnam Pro",Arial,sans-serif}
.topbar{height:78px;background:#fff;border-bottom:1px solid #dde5ee;display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:20}
.brand-left{display:flex;align-items:center;gap:14px}
.tenant-logo-edit{height:48px;min-width:48px;max-width:150px;padding:4px 8px;border:1px dashed #cbd7e6;border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;background:#fff}
.tenant-logo-edit img{max-height:38px;max-width:132px;width:auto;height:auto;object-fit:contain}
.tenant-logo-edit span{font-weight:900;color:#fff;background:linear-gradient(135deg,#1769ff,#0d3e94);padding:9px 11px;border-radius:9px}
.tenant-logo-edit input{display:none}.hidden{display:none!important}
.tenant-name{font-weight:800;color:#0d3478;letter-spacing:.2px;padding:2px 4px;border-radius:6px;outline:none;min-width:120px}.tenant-name:hover,.tenant-name:focus{background:#edf4ff}.product-name{font-size:13px;color:#6f7b8a;margin-top:2px}.abis-mark{font-size:13px;color:#6b7380}
.page{max-width:1220px;margin:0 auto;padding:12px 22px 22px}.ratio-tabs{display:flex;gap:7px;margin:0}.compact-ratio-tabs{flex:0 0 auto;align-self:center}.tab{border:1px solid #ccd8e8;background:#fff;padding:8px 12px;border-radius:9px;font-weight:700;color:#405069;cursor:pointer;font-size:13px}.tab.active{background:var(--blue);border-color:var(--blue);color:#fff}
.editor-card,.templates-card{background:#fff;border-radius:18px;box-shadow:0 10px 28px rgba(18,45,75,.08);padding:14px;margin-bottom:18px}
.section-title{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:14px;margin-bottom:8px}.section-title h1,.section-title h2{margin:0;color:#0d2d67}.section-title p{margin:3px 0 0;color:#788597}.templates-card .section-title{display:flex}
.title-actions{display:flex;align-items:center;gap:12px}.save-state{display:flex;align-items:center;gap:8px;color:#657386;font-size:13px}.save-state span:first-child{width:9px;height:9px;border-radius:50%;background:#23a15d}.save-state.dirty span:first-child{background:#ff9b20}
.download-btn{border:0;border-radius:9px;background:#163f8f;color:#fff;padding:10px 16px;font-weight:700;font-family:inherit;cursor:pointer}
.workspace{display:grid;grid-template-columns:440px minmax(0,1fr);gap:18px;align-items:start}.left-col{display:flex;flex-direction:column;align-items:center;position:sticky;top:90px;align-self:start}
.preview-shell{width:420px;padding:12px;background:#fff;border:1px solid #e1e7ef;border-radius:14px;display:flex;justify-content:center}
.canvas-viewport{position:relative;overflow:hidden;background:#111;box-shadow:0 8px 25px rgba(0,0,0,.18)}.ratio-916{width:360px;height:640px}
.canvas{position:absolute;left:0;top:0;width:1080px;height:1920px;transform-origin:top left;transform:scale(.3333333);overflow:hidden;background:#111;touch-action:none;user-select:none}
#bgImage{position:absolute;left:50%;top:50%;transform-origin:center center;pointer-events:none;max-width:none;max-height:none}
.shade{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.16),rgba(0,0,0,0) 70%);pointer-events:none}
.safe-area{position:absolute;left:70px;right:70px;top:100px;bottom:100px;border:3px dashed rgba(255,255,255,.48);pointer-events:none}
.shape,.logo-object{position:absolute;transform:translate(-50%,-50%);transform-origin:center center;box-sizing:border-box;cursor:grab;touch-action:none;user-select:none;display:flex;align-items:center;justify-content:center}.shape{background:transparent!important;border:0!important}.shape::before{content:"";position:absolute;inset:0;background:var(--shape-fill,transparent);border:var(--shape-stroke-w,0px) solid var(--shape-stroke,#fff);transform:skewX(var(--shape-skew,0deg));transform-origin:center center;opacity:var(--shape-opacity,1);z-index:0;pointer-events:none}.shape span{display:flex;width:100%;height:100%;align-items:center;justify-content:center;text-align:center;overflow:hidden;font-family:"Barlow Condensed",sans-serif;font-weight:900;text-transform:none;line-height:.95;white-space:pre-line;overflow-wrap:break-word;padding:8px;position:relative;z-index:2}
.strike-line{position:absolute;left:6%;right:6%;top:50%;height:7px;transform:translateY(-50%);background:#fff;display:none;z-index:3;pointer-events:none;border-radius:3px}
.shape.strike-on .strike-line{display:block}
.shape.selected,.logo-object.selected{outline:6px solid #18a0fb;outline-offset:5px}.shape.multi,.logo-object.multi{outline:6px solid #7c4dff;outline-offset:5px}
.handle{position:absolute;background:#fff;border:4px solid #18a0fb;display:none;z-index:4}.selected .handle,.multi .handle{display:block}
.handle.corner{width:22px;height:22px;border-radius:50%}.handle.edge{background:#fff;border:3px solid #18a0fb;border-radius:5px}
.handle.nw{left:-14px;top:-14px;cursor:nwse-resize}.handle.ne{right:-14px;top:-14px;cursor:nesw-resize}.handle.sw{left:-14px;bottom:-14px;cursor:nesw-resize}.handle.se{right:-14px;bottom:-14px;cursor:nwse-resize}
.handle.n{top:-10px;left:50%;transform:translateX(-50%);width:34px;height:14px;cursor:ns-resize}.handle.s{bottom:-10px;left:50%;transform:translateX(-50%);width:34px;height:14px;cursor:ns-resize}.rotate-handle{position:absolute;top:-58px;left:50%;transform:translateX(-50%);width:24px;height:24px;border-radius:50%;background:#fff;border:4px solid #ff9b20;cursor:grab;display:none;z-index:6}.rotate-handle::after{content:"";position:absolute;left:50%;top:20px;width:3px;height:30px;background:#ff9b20;transform:translateX(-50%)}.selected .rotate-handle{display:block}
.handle.w{left:-10px;top:50%;transform:translateY(-50%);width:14px;height:34px;cursor:ew-resize}.handle.e{right:-10px;top:50%;transform:translateY(-50%);width:14px;height:34px;cursor:ew-resize}
.logo-object img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.guide{position:absolute;background:#00e0ff;box-shadow:0 0 0 1px rgba(0,0,0,.15);pointer-events:none;display:none;z-index:15}.guide-v{width:3px;top:70px;bottom:70px}.guide-h{height:3px;left:70px;right:70px}
.image-tools{width:420px;margin-top:13px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:center}
.btn{border:0;border-radius:9px;padding:10px 13px;background:#e9eef5;font-weight:700;cursor:pointer;color:#27354a;font-family:inherit}.btn.primary{background:var(--blue);color:#fff}.btn input{display:none}.btn.active{background:#ffb21f;color:#111}.zoomline{width:100%;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;font-size:13px}.zoomline input{width:100%}
.right-col{border:1px solid var(--line);border-radius:14px;padding:12px;max-height:calc(100vh - 135px);overflow-y:auto;overscroll-behavior:contain;background:#fff;scrollbar-width:thin;scroll-padding-top:58px}
.tool-tabs{display:flex;gap:6px;margin:-12px -12px 8px;position:sticky;top:-12px;background:#fff;padding:12px 12px 8px;z-index:30;border-bottom:1px solid #e8edf4;box-shadow:0 5px 10px rgba(255,255,255,.96)}.tooltab{border:0;border-radius:9px;background:#edf2f7;padding:8px 11px;font-weight:700;color:#47566d;cursor:pointer;font-family:inherit}.tooltab.active{background:#123f8f;color:#fff}
.panel{display:none}.panel.active{display:block}.multi-hint{padding:12px 14px;border:1px solid #d7dff0;border-radius:10px;background:#f5f8ff;color:#50617a;font-size:13px;margin-bottom:12px}
.field{margin:9px 0}.field label,.triple label{display:block;font-size:12px;font-weight:700;color:#34445c}.field input,.field select{width:100%;margin-top:4px}.field input[type=range]{height:16px}.field input[type=text],.field input:not([type]),.field select,#textInput{padding:8px;border:1px solid #cdd6e2;border-radius:8px;font:inherit}.field textarea#textInput{width:100%;resize:vertical;min-height:60px;max-height:110px}
.style-row{display:grid;grid-template-columns:40px 40px 40px 40px 1fr;gap:6px;align-items:end;margin:7px 0 2px}
.style-btn{height:34px;border:1px solid #ccd6e3;border-radius:7px;background:#fff;font-size:16px;font-weight:800;cursor:pointer}.style-btn.active{background:#163f8f;color:#fff;border-color:#163f8f}.style-btn.italic{font-style:italic}.style-btn.underline{text-decoration:underline}.style-btn.strike{text-decoration:line-through}
.strike-color-wrap{font-size:11px;font-weight:700;color:#546176;display:flex;flex-direction:column;gap:4px}.strike-color-wrap input{width:100%;height:32px;border:0;background:transparent;padding:0}
.triple{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:9px 0}.triple input[type=color]{width:100%;height:42px;margin-top:6px;border:0;background:transparent}.fill-control{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.none-btn{height:42px;margin-top:6px;padding:0 12px;border:1px solid #cbd6e3;border-radius:8px;background:#fff;color:#405069;font-weight:700;font-family:inherit;cursor:pointer}.none-btn.active{background:#163f8f;color:#fff;border-color:#163f8f}.fill-control.is-none input[type=color]{opacity:.55;cursor:pointer}.text-outline-row{display:grid;grid-template-columns:1fr 2fr;gap:8px;align-items:end;margin:9px 0}.text-outline-row label{display:block;font-size:12px;font-weight:700;color:#34445c}.text-outline-row input[type=color]{width:100%;height:42px;margin-top:6px;border:0;background:transparent}.text-outline-row input[type=range]{width:100%;margin-top:10px}.shadow-box{margin:10px 0;padding:10px;border:1px solid #dfe7f1;border-radius:12px;background:#fafcff}.shadow-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.shadow-grid{display:grid;grid-template-columns:1fr 2fr;gap:8px;align-items:end}.shadow-grid label{display:block;font-size:12px;font-weight:700;color:#34445c}.shadow-grid input[type=color]{width:100%;height:42px;margin-top:6px;border:0;background:transparent}.shadow-grid input[type=range]{width:100%;margin-top:10px}.switch{position:relative;width:44px;height:24px}.switch input{display:none}.switch span{position:absolute;inset:0;background:#cbd6e3;border-radius:14px;cursor:pointer}.switch span::after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#fff;transition:.15s}.switch input:checked+span{background:#1769ff}.switch input:checked+span::after{left:23px}
.align-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:9px 0}.align-grid button{font-size:11px;padding:8px 5px!important}.align-grid button{border:0;border-radius:8px;padding:10px;background:#eaf0f6;font-weight:700;cursor:pointer;font-family:inherit}.align-grid button:disabled{opacity:.4;cursor:not-allowed}
.save-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.save-layout{width:100%;background:#163f8f;color:#fff}.export-preset{width:100%;background:#eef3f8;color:#163f8f;border:1px solid #cbd7e6}.small-note{font-size:12px;color:#788597;margin-top:8px}.full{width:100%;margin-bottom:10px}
.template-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.template-card{border:2px solid transparent;border-radius:12px;background:#f6f8fb;padding:8px;cursor:pointer;transition:.15s}.template-card:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(0,0,0,.10)}.template-card.active{border-color:var(--blue)}.template-thumb{aspect-ratio:9/16;position:relative;overflow:hidden;border-radius:8px;background:#111}.template-stage{position:absolute;left:0;top:0;width:1080px;height:1920px;transform-origin:top left;overflow:hidden;background:#111}.template-stage-bg{position:absolute;left:50%;top:50%;transform-origin:center center;max-width:none;max-height:none}.template-stage-shade{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.16),rgba(0,0,0,0) 70%)}.template-shape{position:absolute;transform:translate(-50%,-50%);transform-origin:center center;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.template-shape-bg{position:absolute;inset:0;transform-origin:center center;box-sizing:border-box}.template-shape-text{position:relative;z-index:2;width:100%;height:100%;display:flex;align-items:center;justify-content:center;text-align:center;white-space:pre-line;overflow:hidden;box-sizing:border-box}.template-strike{position:absolute;left:6%;right:6%;top:50%;height:7px;transform:translateY(-50%);z-index:3}.template-name{text-align:center;font-size:12px;font-weight:700;margin-top:7px;color:#38475b}.exporting .safe-area,.exporting .guide,.exporting .handle,.exporting .rotate-handle{display:none!important}.exporting .shape,.exporting .logo-object,.exporting .sticker-object{outline:none!important}
.control-section{border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px;margin:0 0 10px;background:#fff}.control-section h3{margin:0 0 7px;font-size:13px;color:#17396f;text-transform:uppercase;letter-spacing:.4px}.control-section.advanced-section{background:#fbfcfe}.field.compact{margin:7px 0}.two-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}.text-color-row{display:grid;grid-template-columns:86px auto 86px;gap:10px;align-items:end;margin:7px 0}.text-color-row .style-row{margin:0;display:grid;grid-template-columns:repeat(4,38px);gap:6px}.mini-color label,.shape-colors label{display:block;font-size:11px;font-weight:700;color:#34445c;margin-bottom:4px}.mini-color input[type=color]{width:100%;height:34px;border:1px solid #d4dce8;background:#fff;padding:0}.shape-colors{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:7px 0}.color-with-none{position:relative;display:grid;grid-template-columns:1fr 48px;gap:5px}.color-with-none input[type=color]{width:100%;height:34px;border:1px solid #d4dce8;background:#fff;padding:0}.none-mini{height:34px;border:1px solid #ccd6e3;border-radius:7px;background:#f6f8fb;color:#526176;font-size:11px;font-weight:700;cursor:pointer}.none-mini.active{background:#163f8f;color:#fff;border-color:#163f8f}.text-outline-row{margin:7px 0}.text-outline-row input[type=color]{height:34px!important;margin-top:4px!important}.shadow-box{border:0!important;background:transparent!important;margin:0!important;padding:0!important}.shadow-head{padding:3px 0 6px;margin-bottom:5px!important}.shadow-grid input[type=color]{height:34px!important}.tool-tabs{border-bottom:1px solid #edf1f5}.right-col{padding:12px}.editor-card{padding:12px}.page{padding-top:14px}.preview-shell{padding:9px}.image-tools{margin-top:8px}.btn{padding:8px 11px}.save-actions{position:sticky;bottom:-12px;margin:10px -12px -12px;background:#fff;padding:10px 12px 12px;z-index:30;border-top:1px solid #e8edf4;box-shadow:0 -8px 14px rgba(255,255,255,.98)}.save-actions + .small-note{display:none}.small-note{line-height:1.45}.shape::before{border-radius:var(--shape-radius,0px)}.shape span{padding-left:var(--text-safe-x,8px)!important;padding-right:var(--text-safe-x,8px)!important}.sticker-title{font-size:14px;font-weight:800;color:#17396f;margin-bottom:10px}.sticker-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.sticker-grid button{min-height:78px;border:1px solid #dce4ee;border-radius:10px;background:#fff;font-size:31px;color:#17396f;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.sticker-grid button:hover{border-color:#1769ff;background:#f5f9ff}.sticker-grid span{font-family:"Be Vietnam Pro",sans-serif;font-size:10px;font-weight:700;color:#617087}.sticker-controls{margin-top:12px;padding-top:10px;border-top:1px solid #e4eaf2}.danger{background:#fff0f1;color:#c82534;border:1px solid #f2c7cc}.sticker-object{position:absolute;display:flex;align-items:center;justify-content:center;transform:translate(-50%,-50%);transform-origin:center center;cursor:grab;user-select:none;touch-action:none;z-index:8;font-family:Arial,sans-serif;font-weight:900;line-height:1}.sticker-object.selected{outline:6px solid #18a0fb;outline-offset:5px}.sticker-object .sticker-symbol{pointer-events:none;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.sticker-object .handle,.sticker-object .rotate-handle{display:none}.sticker-object.selected .handle,.sticker-object.selected .rotate-handle{display:block}
@media(max-width:1050px){.workspace{grid-template-columns:1fr}.right-col{max-width:520px;margin:auto;width:100%;max-height:none;overflow:visible}.template-grid{grid-template-columns:repeat(3,1fr)}.left-col{position:static}.text-color-row{grid-template-columns:72px auto 72px}}