@font-face{font-family:Manrope;src:url(/fonts/ui/manrope-latin-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Manrope;src:url(/fonts/ui/manrope-latin-700.woff2) format("woff2");font-weight:600 800;font-display:swap}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;font-family:Manrope,system-ui,sans-serif;color:#1f2328;background:#eef0f3;font-size:14px}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid #1A8CF0;outline-offset:2px}
.es{display:grid;grid-template-rows:56px 1fr;height:100vh;height:100dvh}
/* top bar */
.es-top{display:flex;align-items:center;gap:12px;padding:0 14px;background:#1A8CF0;color:#fff;position:relative;z-index:30}
.es-logo{display:flex;align-items:center;gap:8px;color:#fff;text-decoration:none;font-weight:800;white-space:nowrap}
.es-logo svg{height:26px;width:auto}
.es-logo svg path{fill:#fff!important;stroke:#fff!important}
.es-logo small{font-size:.66rem;background:#fff;color:#1A8CF0;border-radius:6px;padding:2px 6px;letter-spacing:.06em}
.es-name{flex:1;display:flex;justify-content:center}
.es-name input{width:min(420px,100%);height:36px;border-radius:10px;border:1px solid #ffffff55;background:#ffffff26;color:#fff;text-align:center;font-weight:700;padding:0 12px}
.es-name input::placeholder{color:#ffffffc0}
.es-name input:focus{background:#fff;color:#1f2328;outline:none}
.es-topbtn{height:36px;display:inline-flex;align-items:center;gap:8px;padding:0 14px;border-radius:10px;border:1px solid #ffffff66;background:transparent;color:#fff;font-weight:700;white-space:nowrap}
.es-topbtn:hover{background:#ffffff1f}
.es-topbtn.primary{background:#fff;color:#1A8CF0;border-color:#fff}
.es-topbtn.primary:hover{background:#eaf4fe;color:#1A8CF0}
.es-bgdot{width:20px;height:20px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #0002;background:var(--bg,#fff)}
.es-pop{position:absolute;top:50px;right:12px;width:280px;background:#fff;color:#1f2328;border-radius:14px;box-shadow:0 18px 50px #0f172a33;padding:14px;display:grid;gap:10px;z-index:60}
.es-pop[hidden]{display:none}
.es-pop h4{margin:0;font-size:.9rem}
/* body */
.es-body{display:grid;grid-template-columns:76px auto 1fr;min-height:0}
.es-rail{background:#fff;border-right:1px solid #e3e6ea;display:flex;flex-direction:column;padding:6px 0;overflow-y:auto;scrollbar-width:none}
.es-rail button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 2px;border:0;background:none;color:#4b5563;font-size:.7rem;font-weight:700;position:relative}
.es-rail button svg{width:22px;height:22px}
.es-rail button:hover{color:#1A8CF0;background:#f3f8fe}
.es-rail button[aria-pressed=true]{color:#1A8CF0;background:#eaf4fe}
.es-rail button[aria-pressed=true]:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:#1A8CF0}
.es-panel{width:330px;background:#fff;border-right:1px solid #e3e6ea;display:flex;flex-direction:column;min-height:0}
.es-panel[hidden]{display:none}
.es-ph{display:flex;align-items:center;justify-content:space-between;padding:14px 14px 8px}
.es-ph h2{margin:0;font-size:1.1rem}
.es-x{width:30px;height:30px;border-radius:8px;border:0;background:none;color:#6b7280;font-size:20px;line-height:1}
.es-x:hover{background:#f1f3f5;color:#111}
.es-pb{padding:4px 14px 18px;overflow-y:auto;flex:1;display:grid;gap:12px;align-content:start}
.es-search{position:relative}
.es-search input{width:100%;height:40px;border:1px solid #dfe3e8;border-radius:10px;padding:0 38px 0 12px;background:#fff}
.es-search svg{position:absolute;right:11px;top:11px;color:#6b7280}
.es-select{width:100%;height:40px;border:1px solid #dfe3e8;border-radius:10px;padding:0 10px;background:#fff}
.es-btn{height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;border-radius:10px;border:1px solid #dfe3e8;background:#fff;font-weight:700;color:#1f2328}
.es-btn:hover{border-color:#1A8CF0;color:#1A8CF0;background:#f3f8fe}
.es-btn.primary{background:#1A8CF0;border-color:#1A8CF0;color:#fff}
.es-btn.primary:hover{background:#0f7ad8;color:#fff}
.es-btn.block{width:100%}
.es-btn.big{height:52px;flex-direction:column;gap:0;font-size:.95rem}
.es-btn.big small{font-weight:600;font-size:.72rem;opacity:.85}
.es-btn.danger:hover{border-color:#dc2626;color:#dc2626;background:#fef2f2}
.es-lbl{font-size:.78rem;font-weight:700;color:#6b7280;margin:4px 0 -4px}
.es-masonry{columns:2;column-gap:8px}
.es-masonry>*{break-inside:avoid;margin:0 0 8px;display:block;width:100%;border:0;padding:0;border-radius:10px;overflow:hidden;background:#f1f3f5;position:relative;cursor:pointer}
.es-masonry img,.es-masonry canvas{display:block;width:100%;height:auto}
.es-masonry>*:hover{box-shadow:0 0 0 2px #1A8CF0}
.es-masonry .es-cap{position:absolute;left:6px;bottom:6px;right:6px;font-size:.68rem;font-weight:700;color:#fff;background:#000000a6;border-radius:6px;padding:3px 6px;opacity:0;transition:opacity .15s;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.es-masonry>*:hover .es-cap{opacity:1}
.es-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.es-grid3>button{aspect-ratio:1;border:1px solid #e6e8ec;border-radius:10px;background:#fafbfc;padding:8px;display:flex;align-items:center;justify-content:center}
.es-grid3>button:hover{border-color:#1A8CF0;background:#f3f8fe}
.es-grid3 img{width:100%;height:100%;object-fit:contain}
.es-textadd{display:grid;gap:8px}
.es-textadd button{border:1px solid #e3e6ea;background:#f7f8fa;border-radius:10px;text-align:left;padding:10px 14px}
.es-textadd button:hover{border-color:#1A8CF0;background:#f3f8fe}
.es-sizes{display:grid;gap:6px}
.es-sizes button{display:flex;align-items:center;gap:12px;border:1px solid #e6e8ec;background:#fff;border-radius:10px;padding:8px 10px;text-align:left}
.es-sizes button:hover,.es-sizes button[aria-pressed=true]{border-color:#1A8CF0;background:#f3f8fe}
.es-sizes .es-ratio{flex:none;width:40px;height:32px;display:flex;align-items:center;justify-content:center}
.es-sizes .es-ratio i{display:block;border:2px solid #1A8CF0;border-radius:3px;background:#eaf4fe}
.es-sizes b{display:block;font-size:.86rem}
.es-sizes small{color:#6b7280;font-size:.75rem}
.es-row{display:flex;gap:8px;align-items:center}
.es-row input[type=number]{width:100%;height:38px;border:1px solid #dfe3e8;border-radius:10px;padding:0 10px}
.es-check{display:flex;align-items:center;gap:10px;font-weight:700;font-size:.86rem;cursor:pointer}
.es-check input{width:18px;height:18px;accent-color:#1A8CF0}
.es-proj{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.es-proj article{border:1px solid #e6e8ec;border-radius:12px;overflow:hidden;background:#fff;display:grid}
.es-proj article.is-cur{border-color:#1A8CF0;box-shadow:0 0 0 1px #1A8CF0}
.es-proj .th{aspect-ratio:4/3;background:#f1f3f5 center/contain no-repeat;border:0;cursor:pointer}
.es-proj .meta{padding:6px 8px}
.es-proj b{display:block;font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.es-proj small{color:#6b7280;font-size:.68rem}
.es-proj .acts{display:flex;border-top:1px solid #eef0f2}
.es-proj .acts button{flex:1;height:30px;border:0;background:none;color:#4b5563}
.es-proj .acts button:hover{color:#1A8CF0;background:#f3f8fe}
.es-proj .acts button.del:hover{color:#dc2626;background:#fef2f2}
.es-layers{display:grid;gap:6px}
.es-layer{display:flex;align-items:center;gap:6px;border:1px solid #e6e8ec;border-radius:10px;padding:6px;background:#fff}
.es-layer.is-sel{border-color:#1A8CF0;background:#f3f8fe}
.es-layer .lt{width:40px;height:32px;flex:none;border-radius:6px;background:#f1f3f5 center/contain no-repeat}
.es-layer span{flex:1;min-width:0;font-size:.8rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.es-layer button{width:28px;height:28px;border:0;border-radius:7px;background:none;color:#6b7280;display:flex;align-items:center;justify-content:center;flex:none}
.es-layer button:hover{background:#eef1f4;color:#1A8CF0}
.es-layer button[aria-pressed=true]{color:#1A8CF0}
.es-empty{color:#6b7280;font-size:.84rem;text-align:center;padding:16px 6px}
.es-drop{border:2px dashed #c9d3df;border-radius:12px;padding:18px;text-align:center;color:#6b7280;font-size:.82rem}
.es-drop.is-over{border-color:#1A8CF0;background:#f3f8fe;color:#1A8CF0}
/* stage */
.es-main{position:relative;display:grid;grid-template-rows:auto 1fr auto;min-width:0;min-height:0}
.es-tools{min-height:52px;background:#fff;border-bottom:1px solid #e3e6ea;display:flex;align-items:center;gap:6px;padding:6px 12px;overflow-x:auto;scrollbar-width:thin;white-space:nowrap}
.es-tools .hint{color:#6b7280;font-size:.84rem;padding-left:4px}
.es-tools .grp{display:flex;align-items:center;gap:4px;padding-right:8px;margin-right:2px;border-right:1px solid #eceef1}
.es-tools .grp:last-child{border-right:0}
.es-tools select,.es-tools input[type=number],.es-tools input[type=text]{height:34px;border:1px solid #dfe3e8;border-radius:8px;padding:0 8px;background:#fff}
.es-tools input[type=number]{width:64px}
.es-tools input[type=text]{width:180px}
.es-tools input[type=range]{width:80px;accent-color:#1A8CF0}
.es-tb{height:34px;min-width:34px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 8px;border:1px solid transparent;border-radius:8px;background:none;color:#374151;font-weight:700;font-size:.8rem}
.es-tb:hover{background:#f3f8fe;color:#1A8CF0}
.es-tb[aria-pressed=true]{background:#eaf4fe;color:#1A8CF0;border-color:#cfe5fb}
.es-tb svg{width:18px;height:18px}
.es-color{position:relative;width:34px;height:34px;border-radius:8px;border:1px solid #dfe3e8;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}
.es-color i{width:20px;height:20px;border-radius:50%;background:var(--c,#000);box-shadow:inset 0 0 0 1px #0002}
.es-color input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.es-color[title]:hover{border-color:#1A8CF0}
.es-stage{position:relative;overflow:auto;display:grid;place-items:center;padding:40px;min-height:0}
.es-wrap{position:relative;box-shadow:0 4px 24px #0f172a24;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath fill='%23e9ebef' d='M0 0h10v10H0zM10 10h10v10H10z'/%3E%3C/svg%3E")}
.es-ov{position:absolute;inset:0;pointer-events:none}
.es-grid-ov{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 .5H40M.5 0V40' stroke='%231A8CF0' stroke-opacity='.3' fill='none'/%3E%3C/svg%3E");background-size:var(--g,40px) var(--g,40px)}
.es-trim-ov{border:var(--t,20px) solid #ffffff99;outline:1px dashed #1A8CF0;outline-offset:calc(var(--t,20px) * -1)}
.es-bottom{display:flex;align-items:center;justify-content:center;gap:10px;padding:8px 12px 12px;position:relative}
.es-zoom{display:flex;align-items:center;gap:8px;background:#fff;border-radius:12px;padding:6px 10px;box-shadow:0 2px 10px #0f172a14}
.es-zoom input{width:140px;accent-color:#1A8CF0}
.es-zoom output{min-width:46px;text-align:center;font-size:.8rem;font-weight:800;background:#f1f3f5;border-radius:6px;padding:4px 6px}
.es-hist{display:flex;gap:2px;background:#fff;border-radius:12px;padding:6px;box-shadow:0 2px 10px #0f172a14}
.es-short{position:absolute;right:14px;bottom:14px}
.es-toast{position:fixed;left:50%;bottom:70px;transform:translateX(-50%);background:#1f2328;color:#fff;padding:10px 16px;border-radius:10px;font-weight:700;font-size:.86rem;z-index:90;opacity:0;transition:opacity .2s;pointer-events:none}
.es-toast.on{opacity:1}
/* modal */
.es-modal{position:fixed;inset:0;background:#0f172a73;display:grid;place-items:center;z-index:80;padding:20px}
.es-modal[hidden]{display:none}
.es-dlg{background:#fff;border-radius:18px;max-width:880px;width:100%;max-height:90vh;overflow:auto;padding:22px;box-shadow:0 30px 80px #0f172a4d}
.es-dlg h2{margin:0 0 4px;font-size:1.3rem}
.es-dlg p{margin:0 0 16px;color:#6b7280}
.es-newgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.es-newgrid button{border:1px solid #e6e8ec;border-radius:14px;background:#fff;padding:14px 10px;display:grid;justify-items:center;gap:8px;text-align:center}
.es-newgrid button:hover{border-color:#1A8CF0;background:#f3f8fe;box-shadow:0 6px 18px #1a8cf024}
.es-newgrid .es-ratio{height:64px;display:flex;align-items:center;justify-content:center}
.es-newgrid .es-ratio i{display:block;border:2px solid #1A8CF0;border-radius:4px;background:#eaf4fe}
.es-newgrid b{font-size:.84rem}
.es-newgrid small{color:#6b7280;font-size:.72rem}
.es-custom{display:flex;gap:8px;align-items:end;margin-top:16px;flex-wrap:wrap}
.es-custom label{display:grid;gap:4px;font-size:.78rem;font-weight:700;color:#6b7280}
.es-custom input{height:40px;width:120px;border:1px solid #dfe3e8;border-radius:10px;padding:0 10px}
.es-keys{display:grid;grid-template-columns:1fr auto;gap:8px 20px;font-size:.88rem}
.es-keys kbd{background:#f1f3f5;border:1px solid #e3e6ea;border-bottom-width:2px;border-radius:6px;padding:2px 7px;font-family:inherit;font-size:.78rem;font-weight:800}
.es-fontsel{max-width:170px}
@media (max-width:760px){
 .es{grid-template-rows:52px 1fr}
 .es-top{gap:6px;padding:0 8px}.es-logo span{display:none}.es-logo small{display:none}
 .es-name input{height:32px}
 .es-topbtn{padding:0 10px}.es-topbtn .lbl{display:none}
 .es-body{grid-template-columns:1fr;grid-template-rows:1fr auto}
 .es-rail{order:3;flex-direction:row;overflow-x:auto;border-right:0;border-top:1px solid #e3e6ea;padding:0}
 .es-rail button{min-width:68px;padding:8px 2px}
 .es-rail button[aria-pressed=true]:before{left:8px;right:8px;top:0;bottom:auto;width:auto;height:3px}
 .es-panel{position:fixed;left:0;right:0;bottom:62px;width:auto;height:52vh;z-index:40;border-radius:18px 18px 0 0;box-shadow:0 -12px 40px #0f172a2e;border:0}
 .es-main{order:1;grid-row:1}
 .es-stage{padding:16px}
 .es-zoom input{width:80px}
 .es-short{display:none}
}
