:root{--blue:#0078ff;--blue2:#0058ca;--ink:#101827;--muted:#687280;--stroke:#e5eaf0;--bg:#f7faff;--radius:16px}*{box-sizing:border-box}html{font-family:Inter,Arial,Helvetica,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}body{margin:0;background:var(--bg)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.top{background:#fff;border-bottom:1px solid var(--stroke)}.header-inner{max-width:1490px;margin:auto;min-height:92px;padding:12px 28px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px}.brand img{object-fit:contain;width:75px;height:66px}.brand strong{display:block;font-size:23px;letter-spacing:-.6px;font-weight:900}.brand strong span{color:var(--blue);font-weight:750}.brand small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.top-right{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}.on-dot{height:8px;width:8px;background:#13b96d;border-radius:50%}.pill{border:1px solid #dfe7f6;border-radius:20px;background:#f3f7ff;color:#1c68ce;padding:5px 10px;font-weight:800}.wrap{max-width:1490px;margin:0 auto;padding:33px 28px 24px}.intro{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.eyebrow{font-weight:850;font-size:11px;letter-spacing:1.8px;color:var(--blue)}h1{margin:9px 0 9px;font-size:clamp(27px,3vw,39px);letter-spacing:-1.3px}.intro p,.intro-note span{margin:0;color:var(--muted);font-size:14px}.intro-note{background:#ebf5ff;border:1px solid #cfe5ff;border-radius:12px;padding:13px 17px;display:flex;flex-direction:column;gap:5px;max-width:280px}.intro-note b{color:#1357ac;font-size:13px}.intro-note span{font-size:12px;line-height:1.45}.formats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.format{border:1.5px solid var(--stroke);background:white;border-radius:14px;text-align:left;padding:17px;display:flex;align-items:center;gap:12px;min-width:0;transition:.12s}.format:hover{border-color:#8ebfff}.format.chosen{border-color:var(--blue);background:#f3f9ff;box-shadow:inset 0 0 0 1px var(--blue)}.format-icon{display:flex;align-items:center;justify-content:center;border-radius:10px;background:#ebf4ff;width:42px;height:42px;flex-shrink:0;font-size:26px;color:#0078ff}.format b,.format small{display:block}.format b{font-size:14px}.format small{margin-top:4px;color:var(--muted);font-size:12px;white-space:nowrap}.format-tick{margin-left:auto;border-radius:50%;background:var(--blue);color:white;font-size:10px;display:none;width:18px;height:18px;align-items:center;justify-content:center}.format.chosen .format-tick{display:flex}.workspace{display:grid;grid-template-columns:minmax(268px,.88fr) minmax(360px,1.5fr) minmax(260px,.92fr);gap:16px;align-items:start}.panel{background:white;border:1px solid var(--stroke);border-radius:var(--radius);padding:20px;min-width:0;box-shadow:0 3px 18px rgba(18,55,100,.025)}.panel-title{display:flex;align-items:center;gap:10px;margin-bottom:20px}.step{background:#e7f2ff;color:#006de9;font-weight:850;font-size:12px;border-radius:9px;height:29px;width:29px;display:flex;align-items:center;justify-content:center;flex-shrink:0}h2{font-size:16px;letter-spacing:-.3px;margin:0;font-weight:850}.panel-title p{color:var(--muted);margin:4px 0 0;font-size:12px}.count{display:inline-block;min-width:23px;text-align:center;font-size:11px;color:var(--blue);background:#eef6ff;padding:4px 7px;border-radius:30px;vertical-align:middle}.drop{min-height:176px;background:#f7fbff;border:2px dashed #a4cdf9;border-radius:13px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:6px;padding:15px;cursor:pointer;transition:.15s}.drop:hover,.drop.drag{background:#eaf5ff;border-color:var(--blue)}.upload-icon{font-size:31px;line-height:30px;color:var(--blue);font-weight:300}.drop strong{color:#006be0;font-size:14px}.drop span:not(.upload-icon){font-size:12px;color:var(--muted)}.drop em{font-size:11px;font-style:normal;color:#4580c3;margin-top:5px}.checkline{display:flex;align-items:flex-start;gap:8px;color:#38485e;font-size:12px;margin:15px 0 7px;line-height:1.45}.checkline input{accent-color:var(--blue);margin:0;margin-top:2px}.subhint{color:#8290a1;font-size:11px;line-height:1.6;margin:6px 0}.progress{padding:12px;margin:12px 0;border-radius:8px;background:#eff8ff;color:#186ac7;font-size:12px;display:flex;align-items:center;gap:9px}.progress[hidden]{display:none}.loader{width:15px;height:15px;border:2px solid #b1d9ff;border-top-color:#0078ff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.arthead{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin:22px 0 12px}.small-link,.danger-link{color:#0078ff;border:none;background:none;padding:0;font-weight:750;font-size:11px}.danger-link{color:#c53838;margin-top:16px}.art-list{display:flex;flex-direction:column;gap:9px;max-height:740px;overflow-y:auto}.empty,.selection-empty{text-align:center;color:#9da8b6;font-size:13px;padding:28px 6px;line-height:1.8}.empty span{display:block;color:#7ca7d4;font-size:29px}.art-card{display:flex;align-items:center;gap:10px;padding:10px;background:#fff;border:1px solid var(--stroke);border-radius:10px;cursor:pointer;position:relative}.art-card.active{border-color:var(--blue);background:#f4f9ff}.art-card.invalid{border-color:#fa9e9e;background:#fff5f5}.art-card .thumb{width:52px;height:52px;flex-shrink:0;border:1px solid #edf0f4;border-radius:7px;object-fit:contain;background:linear-gradient(45deg,#eee 25%,transparent 25%,transparent 75%,#eee 75%),linear-gradient(45deg,#eee 25%,white 25%,white 75%,#eee 75%);background-size:12px 12px;background-position:0 0,6px 6px}.art-card .txt{min-width:0;flex:1}.art-card strong,.art-card small{display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.art-card strong{font-size:11px}.art-card small{font-size:10px;color:#7b8b9b;margin-top:4px}.art-card .delete{border:0;background:#edf2f9;color:#69809b;font-weight:bold;border-radius:7px;padding:5px 7px}.art-card .bad{color:#d32727;font-weight:800}.canvas-head{margin-bottom:17px}.right-tag{margin-left:auto;border:1px solid #b2dbfa;background:#eaf7ff;color:#1273bc;border-radius:50px;font-size:10px;padding:7px 9px;font-weight:800;white-space:nowrap}.right-tag.bad{border-color:#f7c3c3;background:#fff1f1;color:#d82d2d}.right-tag.good{border-color:#b1efcc;background:#eafff2;color:#178c53}.canvas-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;color:#8d98a7;font-size:10px;margin-bottom:13px}.canvas-tools i{display:inline-block;width:9px;height:9px;margin-right:3px;border-radius:2px}.legend-ok{background:#2aba80}.legend-no{background:#f34e60}.right-help{margin-left:auto}.canvas-shell{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f5f8fc;border-radius:13px;min-height:290px;padding:16px 30px 22px;position:relative}.sheet-ruler{font-size:11px;color:#74829c;font-weight:800;margin-bottom:10px}#sheetCanvas{display:block;max-width:100%;height:auto;border:1px solid #a3b4c9;touch-action:none;cursor:crosshair;background:white;box-shadow:0 5px 16px #142c4915}.ruler-side{position:absolute;right:8px;top:50%;writing-mode:vertical-rl;font-size:11px;color:#74829c;font-weight:800}.sheet-footer{display:flex;justify-content:space-between;margin:15px 0;color:#718095;font-size:11px}.alert{background:#fff1f2;color:#ab3444;border:1px solid #ffc9cd;border-radius:9px;padding:10px;font-size:12px;line-height:1.5;margin:9px 0}.action-row{display:flex;gap:8px;margin-top:13px}.primary{background:var(--blue);border:1px solid var(--blue);color:white;border-radius:10px;font-weight:800;padding:13px 14px;font-size:12px;transition:.15s}.primary:hover{background:var(--blue2)}.secondary{background:#fff;border:1px solid #d9e3ef;color:#273f5d;border-radius:10px;padding:13px 12px;font-weight:750;font-size:12px}.secondary:hover{background:#f6faff}.action-row .primary{flex:1}.selected-preview{display:flex;gap:11px;align-items:center;margin-bottom:21px}.preview-check{height:73px;width:73px;padding:8px;border:1px solid var(--stroke);border-radius:10px;display:grid;place-items:center;background:repeating-conic-gradient(#f2f2f2 0% 25%,#fff 0% 50%) 50%/14px 14px}.preview-check img{max-width:100%;max-height:100%;object-fit:contain}.selected-preview>div:last-child{min-width:0;flex:1}.selected-preview b,.selected-preview small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected-preview b{font-size:12px}.selected-preview small{font-size:11px;color:#8b97a7;margin-top:5px}.field-label{display:block;margin:14px 0 7px;font-size:12px;font-weight:750;color:#445063}.field-wrap{display:flex;border:1px solid #dce5ef;border-radius:9px;overflow:hidden;align-items:center}.field-wrap:focus-within{border-color:var(--blue)}.field-wrap input{width:100%;min-width:0;border:0;padding:11px;outline:none;font-size:14px}.field-wrap span{padding:0 11px;color:#8290a0;font-size:11px}.lock-msg{background:#f5f9ff;border-radius:8px;color:#8a9aaf;font-size:11px;padding:10px;line-height:1.4}.rotation-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.rotation-row button{padding:11px 3px;background:white;border:1px solid #dce5ef;border-radius:8px;color:#576476;font-size:11px;font-weight:bold}.rotation-row button.chosen{border-color:var(--blue);background:#ecf6ff;color:var(--blue)}.editor-actions{margin-top:15px;display:grid;gap:7px}.mini{padding:10px;font-size:11px}.hr{height:1px;background:#e9edf3;margin:25px 0 21px}.export-panel>p{font-size:12px;line-height:1.6;color:#8793a3}.export-panel select,.export-panel input{width:100%;padding:12px;border:1px solid #dce5ef;border-radius:9px;color:#283a51;background:white;outline:none;font-size:12px}.export-panel input:focus,.export-panel select:focus{border-color:var(--blue)}.block{display:block;width:100%;margin-top:11px}.whatsapp{background:#163f32;border:1px solid #163f32;border-radius:10px;color:white;padding:13px;font-size:12px;font-weight:800}.whatsapp:hover{background:#225f4a}.export-note{font-size:10px;color:#97a1ac;line-height:1.5;text-align:center;margin-top:12px}footer{padding:35px 0 7px;text-align:center;color:#8594a6;font-size:10px;letter-spacing:1.3px}footer span{padding:0 9px;color:#acd4ff}@media(max-width:1250px){.workspace{grid-template-columns:minmax(240px,1fr) minmax(320px,1.3fr)}.right{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;column-gap:35px}.right .panel-title,.right .hr{grid-column:1/-1}.export-panel{grid-column:2;grid-row:2/5}.right #noSelection,.right #editor{grid-column:1;grid-row:2/5}}@media(max-width:790px){.top-right{display:none}.wrap{padding:19px 12px}.header-inner{min-height:76px;padding:8px 15px}.brand img{width:56px;height:53px}.intro{display:block}.intro-note{margin-top:15px;max-width:none}.formats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.format{padding:11px;gap:8px}.format-icon{width:32px;height:32px;font-size:20px}.format b{font-size:12px}.format small{font-size:10px}.workspace{grid-template-columns:1fr}.panel{padding:16px}.right{grid-column:auto;display:block}.right #editor,.right #noSelection,.export-panel{display:block}.right #editor[hidden],.right #noSelection[hidden]{display:none}.canvas-shell{padding:16px 29px}.art-list{max-height:280px}.intro-note{display:none}.intro p{font-size:13px}footer{font-size:9px;line-height:1.9}}

.repeat-panel{padding:12px 0}.repeat-panel p{font-size:13px;color:#60738c;line-height:1.55}.repeat-panel button{margin-top:9px}

.upload-guide{margin:12px 0;padding:12px;border-radius:10px;background:#f4f8ff;border:1px solid #d9e8ff;font-size:12px;line-height:1.6;color:#3b5578}.upload-guide p{margin:6px 0 0}.alert p{margin:5px 0;overflow-wrap:anywhere}#uploadDiagnostics[hidden]{display:none}

/* Preview-only color palette and background-removal strength */
.background-picker{margin:0 0 15px;padding:14px;border:1px solid #dce7f3;border-radius:12px;background:#f8fbff}
.background-picker strong{font-size:13px}.background-picker p{font-size:11px;line-height:1.5;color:#53657b;margin:7px 0 11px}
.color-swatches{display:flex;flex-wrap:wrap;gap:8px}.swatch{width:31px;height:31px;border:2px solid #c9d4df;border-radius:9px;background:var(--sw);padding:0;box-shadow:0 1px 3px #0001}.swatch.selected{outline:3px solid #0078ff;outline-offset:2px}.swatch:focus-visible{outline:3px solid #0078ff;outline-offset:2px}
.remove-level{margin-top:14px}.remove-level select{width:100%;padding:11px;border:1px solid #dce5ef;border-radius:9px;background:#fff;color:#283a51;font-size:12px}

.cut-guide{font-size:12px;line-height:1.55;color:#27527e;background:#edf6ff;border:1px solid #cde5ff;border-radius:9px;padding:11px 12px;margin:0 0 12px}.cut-guide strong{color:#095db8}
