.cs{color:#2b2a28;font-family:var(--body,system-ui, sans-serif);-webkit-user-select:none;user-select:none;background:#f4f1ea;flex-direction:column;display:flex;position:fixed;inset:0}.cs button{font:inherit;cursor:pointer;color:inherit;background:#fff;border:1px solid #d9d3c4;border-radius:10px}.cs button:disabled{opacity:.4;cursor:default}.cs button.is-on{color:#1f3f86;background:#e8eefb;border-color:#2f56a6;box-shadow:inset 0 0 0 1px #2f56a6}.cs-top{background:#fffaf0;border-bottom:1px solid #e6dfcf;align-items:center;gap:16px;padding:10px 16px;display:flex}.cs-back{color:#2f56a6;white-space:nowrap;font-size:.9rem;text-decoration:none}.cs-back:hover{text-decoration:underline}.cs-title{text-overflow:ellipsis;white-space:nowrap;flex:1;margin:0;font-size:1.05rem;font-weight:700;overflow:hidden}.cs-actions{align-items:center;gap:8px;display:flex}.cs-actions button{padding:8px 14px;font-weight:600}.cs-danger{color:#b3261e!important}.cs-save{color:#7a7466;text-align:right;min-width:9em;font-size:.8rem}.cs-save--saved:before{content:"✓ ";color:#2e7d32}.cs-notice{background:#fff4d6;border-bottom:1px solid #f0dfa8;margin:0;padding:8px 16px;font-size:.85rem}.cs-body{flex:1;min-height:0;display:flex}.cs-tools{background:#fffaf0;border-right:1px solid #e6dfcf;flex-direction:column;gap:8px;width:104px;padding:12px 10px;display:flex;overflow-y:auto}.cs-tools>button{flex-direction:column;align-items:center;gap:2px;padding:8px 4px;font-size:.78rem;display:flex}.cs-tools>button span[aria-hidden]{font-size:1.35rem;line-height:1.2}.cs-tools hr{border:0;border-top:1px solid #e6dfcf;width:100%;margin:4px 0}.cs-sizes{justify-content:space-between;gap:4px;display:flex}.cs-sizes button{flex:1;justify-content:center;align-items:center;height:34px;padding:0;display:flex}.cs-dot{background:#2b2a28;border-radius:50%;display:block}.cs-sr{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.cs-stage{touch-action:none;background:#e9e4d8;flex:1;position:relative;overflow:hidden}.cs[data-tool=fill] .cs-stage,.cs[data-tool=brush] .cs-stage{cursor:crosshair}.cs[data-tool=eraser] .cs-stage{cursor:cell}.cs-canvas{transform-origin:0 0;image-rendering:auto;background:#fff;position:absolute;top:0;left:0;box-shadow:0 6px 24px #3c321e2e}.cs-msg{background:#fff;border-radius:12px;margin:0;padding:14px 20px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 4px 16px #0000001f}.cs-msg--err{color:#b3261e}.cs-modal{text-align:center;background:#fff;border-radius:16px;width:min(420px,90%);padding:22px 24px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 10px 40px #00000040}.cs-modal h2{margin:0 0 8px;font-size:1.15rem}.cs-modal p{color:#5d584d;margin:0 0 18px}.cs-modal div{justify-content:center;gap:10px;display:flex}.cs-modal button{padding:10px 18px;font-weight:700}.cs-primary{color:#fff!important;background:#2f56a6!important;border-color:#2f56a6!important}.cs-side{background:#fffaf0;border-left:1px solid #e6dfcf;flex-direction:column;gap:14px;width:248px;padding:14px;display:flex;overflow-y:auto}.cs-side h2{color:#5d584d;justify-content:space-between;align-items:center;margin:0 0 8px;font-size:.82rem;font-weight:700;display:flex}.cs-current{border:1px solid #d9d3c4;border-radius:10px;height:34px}.cs-swatches{grid-template-columns:repeat(6,1fr);gap:6px;display:grid}.cs-swatches button{aspect-ratio:1;border:1px solid #00000026;border-radius:8px;padding:0}.cs-custom{color:#5d584d;justify-content:space-between;align-items:center;font-size:.82rem;font-weight:700;display:flex}.cs-custom input{cursor:pointer;background:#fff;border:1px solid #d9d3c4;border-radius:8px;width:48px;height:32px;padding:0}.cs-ref h2 button{padding:3px 8px;font-size:.72rem;font-weight:500}.cs-ref img{border:1px solid #e6dfcf;border-radius:10px;width:100%;display:block}.cs-keys{color:#8a8374;margin:auto 0 0;font-size:.72rem;line-height:1.5}.cs-top{padding:12px 20px}.cs-back{font-size:1rem}.cs-title{font-size:1.3rem}.cs-actions button{border-radius:12px;padding:11px 18px;font-size:1.02rem}.cs-save{font-size:.88rem}.cs-tools{gap:10px;width:128px;padding:14px 12px}.cs-tools>button{border-radius:14px;padding:12px 4px;font-size:.92rem;font-weight:700}.cs-tools>button span[aria-hidden]{font-size:2rem}.cs-sizes button{height:42px}.cs-dot--s{width:6px;height:6px}.cs-dot--m{width:13px;height:13px}.cs-dot--l{width:22px;height:22px}.cs-side{gap:18px;width:300px;padding:18px}.cs-side h2{font-size:.98rem}.cs-current{border-radius:12px;height:48px}.cs-swatches{grid-template-columns:repeat(5,1fr);gap:8px}.cs-swatches button{border-radius:10px}.cs-swatches button.is-on{box-shadow:0 0 0 3px #fff,0 0 0 6px #2f56a6}.cs-custom{font-size:.98rem}.cs-custom input{width:64px;height:40px}.cs-keys{font-size:.8rem}.cs-modal{width:min(480px,90%);padding:28px 30px}.cs-modal h2{font-size:1.4rem}.cs-modal p{font-size:1.05rem}.cs-modal button{padding:13px 22px;font-size:1.05rem}.cs-msg{font-size:1.05rem}@media (max-height:1000px){.cs-tools{gap:6px;padding:10px}.cs-tools>button{padding:6px 4px;font-size:.84rem}.cs-tools>button span[aria-hidden]{font-size:1.55rem}.cs-tools hr{margin:2px 0}.cs-sizes button{height:34px}}@media (max-height:760px){.cs-tools>button{flex-direction:row;justify-content:center;gap:6px;padding:6px 4px}.cs-tools>button span[aria-hidden]{font-size:1.2rem}}.cs{height:100dvh;bottom:auto}.cs-stagewrap{flex:1;min-width:0;min-height:0;display:flex;position:relative}.cs-stagewrap .cs-stage{flex:1}.cs-zoom{z-index:2;background:#fffaf0f2;border:1px solid #e6dfcf;border-radius:14px;align-items:center;gap:4px;padding:4px;display:flex;position:absolute;bottom:12px;right:12px;box-shadow:0 4px 14px #3c321e29}.cs-zoom button{border-radius:10px;min-width:44px;height:44px;padding:0 6px;font-size:1.3rem;font-weight:700}.cs-zoom output{text-align:center;color:#5d584d;min-width:3.6em;font-size:.85rem;font-weight:700}.cs-refbtn{display:none}.cs-reffloat{z-index:3;background:#fff;border-radius:12px;width:min(40%,240px);margin:0;padding:6px;position:absolute;top:10px;left:10px;box-shadow:0 6px 22px #00000038}.cs-reffloat img{border-radius:8px;width:100%;display:block}.cs-reffloat button{border-radius:50%;width:36px;height:36px;font-size:1.2rem;line-height:1;position:absolute;top:-12px;right:-12px}.cs-tip{z-index:3;color:#fff;text-align:center;pointer-events:none;background:#2b2a28e6;border-radius:12px;width:max-content;max-width:92%;margin:0;padding:10px 16px;font-size:.95rem;line-height:1.5;position:absolute;top:12px;left:50%;transform:translate(-50%)}@media (pointer:coarse){.cs-keys{display:none}}@media (max-width:1366px) and (orientation:landscape){.cs-side{gap:12px;width:232px;padding:12px}.cs-side h2{margin-bottom:6px;font-size:.86rem}.cs-current{height:36px}.cs-swatches{grid-template-columns:repeat(5,1fr);gap:6px}.cs-tools{width:104px}}@media (orientation:portrait) and (max-width:1100px){.cs-body{flex-direction:column}.cs-stagewrap{order:1}.cs-tools{border-top:1px solid #e6dfcf;border-right:0;flex-direction:row;flex:none;order:2;justify-content:center;align-items:center;gap:6px;width:auto;padding:8px 10px;overflow:auto hidden}.cs-tools>button{flex-direction:column;flex:none;min-width:64px;padding:6px 8px;font-size:.8rem}.cs-tools>button span[aria-hidden]{font-size:1.5rem}.cs-tools hr{border:0;border-left:1px solid #e6dfcf;flex:none;width:0;height:40px;margin:0 2px}.cs-sizes{flex:none;gap:4px}.cs-sizes button{flex:none;width:42px;height:46px}.cs-side{width:auto;padding:8px 10px calc(8px + env(safe-area-inset-bottom));scrollbar-width:thin;border-top:1px solid #e6dfcf;border-left:0;flex-direction:row;flex:none;order:3;align-items:center;gap:10px;overflow:auto hidden}.cs-side section{flex:none}.cs-side h2,.cs-ref,.cs-keys,.cs-custom .cs-label{display:none}.cs-swatches{grid-template-rows:repeat(2,42px);grid-auto-columns:42px;grid-auto-flow:column;gap:6px;display:grid}.cs-swatches button.is-on{box-shadow:0 0 0 2px #fff,0 0 0 4px #2f56a6}.cs-current{border-radius:50%;flex:none;width:48px;height:48px}.cs-custom{flex:none}.cs-custom input{border-radius:50%;width:48px;height:48px}.cs-refbtn{justify-content:center;align-items:center;display:inline-flex}}@media (orientation:portrait) and (max-width:560px){.cs-top{gap:8px;padding:8px 10px}.cs-title{font-size:.98rem}.cs-top .cs-label,.cs-save{display:none}.cs-actions{gap:6px}.cs-actions button{padding:8px 10px;font-size:1.05rem}.cs-tools{justify-content:flex-start;gap:4px;padding:6px 8px}.cs-tools .cs-label{display:none}.cs-tools>button{justify-content:center;min-width:48px;height:48px;padding:0}.cs-sizes button{width:36px;height:44px}.cs-swatches{grid-template-rows:repeat(2,38px);grid-auto-columns:38px;gap:5px}.cs-current,.cs-custom input{width:42px;height:42px}.cs-zoom{bottom:8px;right:8px}.cs-zoom button{min-width:42px;height:42px}.cs-zoom output{display:none}}@media (orientation:landscape) and (max-height:560px){.cs-top{gap:8px;padding:4px 10px}.cs-title{font-size:.95rem}.cs-top .cs-label,.cs-save{display:none}.cs-actions button{padding:6px 10px;font-size:1rem}.cs-tools{gap:4px;width:66px;padding:6px}.cs-tools .cs-label{display:none}.cs-tools>button{flex-direction:row;justify-content:center;min-height:44px;padding:2px}.cs-tools>button span[aria-hidden]{font-size:1.35rem}.cs-tools>*,.cs-sizes button{flex:none}.cs-sizes{flex-direction:column}.cs-sizes button{height:34px}.cs-side{gap:8px;width:150px;padding:8px}.cs-side h2{margin-bottom:4px;font-size:.74rem}.cs-ref,.cs-keys,.cs-custom .cs-label{display:none}.cs-current{height:28px}.cs-swatches{grid-template-columns:repeat(4,1fr);gap:5px}.cs-custom input{width:100%;height:34px}.cs-refbtn{justify-content:center;align-items:center;display:inline-flex}.cs-zoom{bottom:8px;right:8px}.cs-zoom button{min-width:38px;height:38px}}
