:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172b46;background:#f6f9fd;font-synthesis:none;--line:#e3eaf3;--muted:#6b7c94;--blue:#2774e6;--blue-dark:#145ed0;--shadow:0 10px 35px rgba(33,65,104,.045)}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}a{color:inherit;text-decoration:none}[role=button]:focus-visible,button:focus-visible,canvas:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #82b5fb;outline-offset:2px}h1,h2,p{margin:0}h1{font-size:22px;letter-spacing:-.7px}h2{font-size:17px;letter-spacing:-.35px}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:800;color:#7c94b4;letter-spacing:1.5px}.skip-link{position:absolute;top:-60px;left:16px;z-index:20;background:#fff;padding:10px}.skip-link:focus{top:10px}.topbar{height:68px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,2.3vw,40px);position:relative;z-index:5}.brand,.brand-group,.editor-actions,.title-row,.top-actions{display:flex;align-items:center;gap:12px}.brand{font-weight:800;letter-spacing:-.5px;font-size:18px}.brand-icon{background:#dbeafe;color:#246dd8;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;font-size:21px}.slash{color:#d1dce9}.brand-group>strong{font-size:14px;white-space:nowrap}.studio-label{font-size:9px;letter-spacing:1px;font-weight:800;color:#4988ed;border:1px solid #d3e6ff;background:#eff6ff;border-radius:5px;padding:4px 6px}.privacy{font-size:12px;font-weight:600;color:#637895}.dot{display:inline-block;width:7px;height:7px;border-radius:100%;background:#4cb7a2;margin-right:5px}.btn{border:1px solid transparent;background:0 0;border-radius:10px;padding:11px 15px;font-weight:700;font-size:12px;white-space:nowrap;transition:background .15s,border-color .15s}.btn.primary{background:var(--blue);color:#fff;box-shadow:0 5px 12px rgba(45,112,229,.16)}.btn.primary:hover:not(:disabled){background:var(--blue-dark)}.btn.outline{border-color:#d9e4f2;background:#fff;color:#415d7b}.btn.outline:hover:not(:disabled),.btn.subtle:hover:not(:disabled){background:#eaf3ff}.btn.subtle{background:#f0f5fb;color:#375878}.btn.small{padding:7px 11px}.icon-button{height:34px;min-width:34px;border-radius:9px;border:1px solid #e0e8f3;background:#fff;color:#49627f;font-size:21px}.shell{display:grid;grid-template-columns:minmax(235px,275px) minmax(380px,1fr) minmax(235px,275px);gap:18px;padding:22px clamp(14px,2vw,32px);max-width:1740px;margin:auto;align-items:start}.card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.library,.settings{min-height:calc(100vh - 125px);padding:19px}.panel-head{display:flex;justify-content:space-between;align-items:start;gap:8px;margin-bottom:20px}.panel-head h1,.panel-head h2{margin-top:7px}.count-pill{border-radius:8px;background:#edf4ff;color:var(--blue);padding:7px 10px;font-weight:800;font-size:12px}.drop-zone{border:1.5px dashed #b9d3f7;background:linear-gradient(140deg,#f3f8ff,#fff);border-radius:15px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:22px 9px;transition:border-color .2s,background .2s}.drop-zone.drag-over{border-color:#2e78e7;background:#deedff}.drop-zone strong{font-size:14px}.drop-zone p{font-size:11px;color:var(--muted)}.drop-icon{width:42px;height:42px;background:#e2efff;color:#3783f0;display:grid;place-items:center;border-radius:13px;font-size:24px}.library-actions{display:flex;justify-content:space-between;margin:14px 0 22px}.text-button{border:0;background:0 0;color:#327bdc;font-size:11px;font-weight:750;padding:5px 2px}.danger-text{color:#a44f65}.list-meta{font-size:10px;font-weight:800;color:#8294ac;letter-spacing:.8px;display:flex;justify-content:space-between;gap:4px}.list-meta span:last-child{letter-spacing:0;text-transform:none;font-weight:500;font-size:10px}.sprite-list{max-height:calc(100vh - 455px);min-height:150px;overflow:auto;margin-top:11px;display:flex;flex-direction:column;gap:7px}.empty-list{color:#8c9eb4;text-align:center;font-size:12px;border-radius:11px;background:#f7f9fc;padding:30px 10px}.sprite-row{display:grid;grid-template-columns:45px minmax(0,1fr) 27px;align-items:center;gap:9px;width:100%;padding:7px;border:1px solid #e7edf5;border-radius:12px;background:#fff;cursor:pointer;text-align:left}.sprite-row.selected{background:#edf5ff;border-color:#9cc8fc}.thumb{width:45px;height:43px;background-color:#f5f6f9;background-image:linear-gradient(45deg,#e8edf3 25%,transparent 25%),linear-gradient(-45deg,#e8edf3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8edf3 75%),linear-gradient(-45deg,transparent 75%,#e8edf3 75%);background-size:14px 14px;background-position:0 0,0 7px,7px -7px,-7px 0;display:grid;place-items:center;border-radius:7px;overflow:hidden}.thumb img{max-height:39px;max-width:41px;object-fit:contain}.sprite-row .name{font-size:12px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.sprite-row .dims{display:block;font-size:10px;color:var(--muted);margin-top:3px}.remove-sprite{font-size:17px;border:0;background:0 0;border-radius:6px;color:#95a4b6;min-height:27px}.remove-sprite:hover{background:#feeaea;color:#bf3b4b}.library-footer{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.library-footer .btn{padding-inline:7px}.center{min-width:0;display:flex;flex-direction:column;gap:16px}.editor-header{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:87px}.title-row{margin-top:7px}#projectName{font-size:20px;letter-spacing:-.5px;font-weight:800;color:#1b3451;border:0;background:0 0;max-width:220px;min-width:90px;padding:2px}#projectName:focus{outline:2px solid #a1c9ff;border-radius:5px}.save-indicator{color:#6d92ab;background:#f1f6fb;border-radius:20px;font-size:10px;white-space:nowrap;padding:5px 8px}.editor-actions{gap:7px}.editor-actions .btn{padding:10px}.notice{border-radius:9px;padding:11px 16px;font-size:12px;font-weight:700}.notice.error{color:#9e3747;background:#fff0f1;border:1px solid #ffcfd6}.canvas-card{overflow:hidden}.atlas-bottom,.preview-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 20px}.preview-top p{color:var(--muted);font-size:11px;margin-top:5px}.preview-actions{display:flex;align-items:center;gap:13px}.inline-check{display:flex;gap:6px;align-items:center;color:#67809a;font-size:11px;white-space:nowrap}.inline-check input,.toggle input{accent-color:var(--blue)}.atlas-stage{min-height:375px;max-height:610px;overflow:auto;background-color:#eaf0f7;background-image:linear-gradient(45deg,#e3eaf3 25%,transparent 25%),linear-gradient(-45deg,#e3eaf3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e3eaf3 75%),linear-gradient(-45deg,transparent 75%,#e3eaf3 75%);background-size:28px 28px;background-position:0 0,0 14px,14px -14px,-14px 0;display:flex;align-items:center;justify-content:center;padding:25px}.preview-empty{text-align:center;max-width:290px;background:#fffdfddd;padding:23px 25px;border-radius:15px;border:1px solid #e6edf6}.preview-symbol{font-size:40px;display:block;color:#8db6f0;margin-bottom:13px}.preview-empty strong{display:block;font-size:17px;letter-spacing:-.4px}.preview-empty p{font-size:12px;line-height:1.6;color:var(--muted);margin-top:6px}#atlasCanvas{max-width:100%;height:auto;box-shadow:0 12px 27px #293b5533;background:0 0;cursor:crosshair;flex-shrink:0}.atlas-bottom{border-top:1px solid var(--line);min-height:55px}.page-tabs{display:flex;gap:5px;overflow-x:auto}.page-tab{border:1px solid #e0e7f2;color:#7488a1;border-radius:7px;background:#fff;font-size:11px;font-weight:700;padding:7px 9px;white-space:nowrap}.page-tab.active{color:#276fdf;background:#eef6ff;border-color:#9fc8ff}.canvas-hint{color:#899ab1;font-size:10px;text-align:right}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stat{background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px;min-width:0}.stat span{display:block;font-size:10px;color:#8395ab;margin-bottom:8px}.stat strong{font-size:19px;letter-spacing:-.5px}.bottom-panel{padding:20px;display:grid;gap:12px}.bottom-panel p{font-size:11px;color:var(--muted);margin-top:5px}.bottom-panel h2{margin-top:6px}.meta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.meta-pair{border:1px solid #ebeff5;padding:10px;border-radius:9px}.meta-pair span{display:block;color:#8193a7;font-size:10px}.meta-pair strong{font-size:12px;display:block;margin-top:4px;overflow-wrap:anywhere}.bottom-actions{display:flex;gap:8px;justify-content:flex-end}.settings .panel-head{margin-bottom:20px}.settings-icon{width:32px;height:32px;border-radius:10px;background:#f1f6fc;display:grid;place-items:center;font-size:17px;color:#7391b5}.settings form{display:flex;flex-direction:column;gap:17px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:750;color:#415b75}.field small{color:#8295ab;font-size:10px;font-weight:500}.field input,.field select{border:1px solid #dfe7f2;border-radius:9px;background:#fafcff;color:#203c5c;width:100%;padding:11px;font-size:12px}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.toggle-stack{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:15px 0;display:grid;gap:19px}.toggle{display:flex;justify-content:space-between;align-items:center;gap:8px}.toggle strong{display:block;font-size:12px}.toggle small{display:block;font-size:10px;color:#879ab0;margin-top:4px;line-height:1.3}.toggle input{width:17px;height:17px}.config-note{color:#748ba2;font-size:11px;line-height:1.6;background:#f4f8fd;padding:12px;border-radius:9px}.setting-footer{margin-top:35px;border-top:1px solid var(--line);padding-top:19px}.setting-footer strong{font-size:12px}.setting-footer p{font-size:11px;color:#7a8da6;line-height:1.7;margin-top:6px}.mobile-settings{display:none}.toast{position:fixed;z-index:30;bottom:22px;left:50%;transform:translateX(-50%);background:#1d324c;color:#fff;font-size:12px;font-weight:700;padding:13px 21px;border-radius:11px;box-shadow:0 10px 30px #1a2e4f44;max-width:90vw;pointer-events:none}.dialog{border:1px solid #dce6f2;border-radius:17px;box-shadow:0 28px 80px #192e4e4d;max-width:470px;width:calc(100% - 30px);padding:23px;color:#203d5c}.dialog::backdrop{background:#192c4977}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.dialog p{font-size:12px;color:#576e87;line-height:1.65;margin:12px 0}.recover-actions{display:grid;gap:9px;margin:20px 0}.seo{padding:24px clamp(20px,5vw,70px) 50px;margin:30px auto 0;max-width:1300px;border-top:1px solid var(--line);color:#63768c}.seo h2{font-size:18px;color:#354f70;margin-bottom:11px}.seo p{line-height:1.7;font-size:12px;margin:9px 0}[hidden]{display:none!important}@media(max-width:1240px){.shell{grid-template-columns:minmax(205px,245px) minmax(350px,1fr);gap:14px}.settings{grid-column:1/-1;min-height:0;display:none}.settings.open{display:block}.settings form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.settings .toggle-stack{grid-column:span 2}.settings .config-note{grid-column:span 2}.mobile-settings{display:flex;position:sticky;bottom:0;z-index:6;padding:11px 15px;background:#ffffffed;border-top:1px solid var(--line);justify-content:center;gap:10px}.editor-actions #exportZipBtn{display:none}.preview-top{flex-wrap:wrap}.sprite-list{max-height:400px}}@media(max-width:850px){.topbar{padding:0 13px}.privacy,.slash,.studio-label{display:none}.brand-group{gap:8px}.brand-group>strong{font-size:12px}.shell{display:flex;flex-direction:column;padding:13px;gap:13px}.center,.library,.settings{width:100%}.library{min-height:0}.sprite-list{max-height:200px}.library-footer{max-width:350px}.center{order:0}.library{order:1}.settings{order:2}.editor-header{padding:15px;flex-wrap:wrap}.editor-actions{flex-wrap:wrap}.settings form{grid-template-columns:repeat(2,minmax(0,1fr))}.settings .config-note,.settings .toggle-stack{grid-column:span 2}.atlas-stage{min-height:310px;max-height:530px}.stat-grid{gap:7px}.stat{padding:12px}.stat strong{font-size:15px}.stat span{font-size:9px}.bottom-panel{padding:16px}.preview-top{padding:14px}.canvas-hint{display:none}}@media(max-width:450px){.brand-group>strong{max-width:154px;overflow:hidden;text-overflow:ellipsis}.topbar{height:58px}.top-actions{gap:4px}.editor-header #projectName{font-size:17px}.save-indicator{font-size:9px}.editor-actions .btn{font-size:10px;padding:8px}.preview-actions{gap:5px}.atlas-stage{padding:12px;min-height:270px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.meta-grid{grid-template-columns:repeat(2,1fr)}.bottom-actions .btn{white-space:normal}.settings form{display:flex;flex-direction:column}.settings .field,.settings .field-pair,.settings .toggle-stack{width:100%}.mobile-settings>.btn{flex:1}.library-footer{max-width:none}}@media(prefers-reduced-motion:reduce){*,::after,::before{scroll-behavior:auto!important;animation:none!important;transition:none!important}}.bottom-actions{flex-wrap:wrap}.bottom-actions .btn{white-space:normal}.meta-pair{min-width:0}@media(max-width:850px){.bottom-actions{justify-content:flex-start}}.atlas-stage{justify-content:safe center;align-items:safe center}.preview-actions{flex-wrap:wrap;justify-content:flex-end}