:root{--accent: #6366f1}*{box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.icon-card:hover .icon-actions{opacity:1}.icon-card:hover .icon-img-wrap{transform:scale(1.08)}.icon-img-wrap{transition:transform .15s ease}.icon-actions{opacity:0;pointer-events:none;transition:opacity .15s ease}.card-tray-btn{position:absolute;top:.25rem;left:.25rem;z-index:2;width:20px;height:20px;border-radius:9999px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;line-height:1;border:1px solid #e5e7eb;background:#ffffffe6;color:#6b7280;opacity:.55;transition:opacity .12s,background .12s,color .12s}.dark .card-tray-btn{border-color:#374151;background:#111827e6;color:#9ca3af}.icon-card:hover .card-tray-btn{opacity:1}.card-tray-btn:hover{background:var(--accent);border-color:var(--accent);color:#fff}.icon-card.in-tray .card-tray-btn{opacity:1;background:var(--accent);border-color:var(--accent);color:#fff}@media(hover:none){.card-tray-btn{opacity:1}}.pill.active{background:#6366f1;color:#fff;border-color:#6366f1}.pill{transition:all .1s;cursor:pointer;-webkit-user-select:none;user-select:none}.pill:hover:not(.active){border-color:#6366f1;color:#6366f1}input[type=search]::-webkit-search-cancel-button{display:none}.tag-chip{font-size:10px}#toast{transition:opacity .2s}.pack-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.dark ::-webkit-scrollbar-thumb{background:#374151}.dark img{--icon-filter: invert(1)}.attrib-dot{display:inline-flex;align-items:center;justify-content:center;width:12px;height:12px;border-radius:50%;font-size:9px;font-weight:700;line-height:1;background:#fbbf24;color:#78350f;flex-shrink:0}@media(max-width:767px){#header.search-open #search-toggle{display:none}#header.search-open #search-wrap{position:static}#header.search-open #search-field{display:flex;align-items:center;position:absolute;inset:0;z-index:30;padding:.5rem .75rem;animation:search-reveal .15s ease-out}#header.search-open #search-field input{flex:1;height:100%;font-size:16px}#header.search-open #search-field>svg{left:1.5rem}#header.search-open #search-clear{right:1rem}}@keyframes search-reveal{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}html,body{overflow-x:hidden}.tray-strip{padding:1rem;max-height:42vh;overflow-y:auto;border-radius:0}.tray-item{position:relative;display:flex;flex-direction:column;align-items:center;gap:.25rem;cursor:grab;border-radius:.5rem;outline:none;touch-action:none;user-select:none;-webkit-user-select:none}.tray-item:focus-visible{box-shadow:0 0 0 2px var(--accent)}.tray-slot{height:var(--tray-row, var(--tray-size, 48px));display:flex;align-items:center;justify-content:center;flex-shrink:0}.tray-art{width:var(--tray-size, 48px);height:var(--tray-size, 48px);display:flex;align-items:center;justify-content:center;flex-shrink:0}.tray-art-tall{height:calc(var(--tray-size, 48px) * 1.6)}.tray-img{width:100%;height:100%;object-fit:contain;pointer-events:none}.tray-art-failed:after{content:"?";font-size:.75rem;color:#9ca3af;display:flex;align-items:center;justify-content:center;width:100%;height:100%;border:1px dashed #d1d5db;border-radius:.375rem}.tray-caption{font-size:10px;line-height:1.2;color:#6b7280;max-width:max(var(--tray-size, 48px),4.5rem);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dark .tray-caption{color:#9ca3af}.tray-remove{position:absolute;top:-6px;right:-6px;width:18px;height:18px;border-radius:9999px;display:flex;align-items:center;justify-content:center;background:#ef4444;color:#fff;opacity:0;transition:opacity .12s;cursor:pointer}.tray-item:hover .tray-remove,.tray-item:focus-within .tray-remove{opacity:1}@media(hover:none){.tray-remove{opacity:1}}.tray-item.is-dragging{opacity:.25;cursor:grabbing}.tray-strip.is-reordering{cursor:grabbing}.tray-strip.is-reordering .tray-item{transition:transform .12s ease}.tray-ghost{position:fixed;top:0;left:0;z-index:60;pointer-events:none;opacity:.95;filter:drop-shadow(0 8px 16px rgba(0,0,0,.28))}.tray-bg-light{background:#fff}.tray-bg-dark{background:#0b0f19}.tray-bg-checker{background-color:#fff;background-image:linear-gradient(45deg,#e5e7eb 25%,transparent 25%,transparent 75%,#e5e7eb 75%),linear-gradient(45deg,#e5e7eb 25%,transparent 25%,transparent 75%,#e5e7eb 75%);background-size:16px 16px;background-position:0 0,8px 8px}.tray-bg-light .tray-img,.tray-bg-checker .tray-img,.dark .tray-bg-light .tray-img,.dark .tray-bg-checker .tray-img{--icon-filter: none}.tray-bg-dark .tray-img,.dark .tray-bg-dark .tray-img{--icon-filter: invert(1)}.tray-bg-light .tray-caption,.tray-bg-checker .tray-caption{color:#6b7280}.tray-bg-dark .tray-caption{color:#9ca3af}@media(max-width:640px){.tray-strip{max-height:30vh;padding:.75rem}#tray-actions,#tray-controls{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}#tray-actions{justify-content:flex-start}#tray-actions::-webkit-scrollbar,#tray-controls::-webkit-scrollbar{display:none}#tray-controls>*{flex-shrink:0}.tray-range{width:4.5rem}}.tray-btn{padding:.25rem .625rem;border-radius:9999px;border:1px solid #e5e7eb;font-size:11px;font-weight:600;white-space:nowrap;transition:border-color .1s,background .1s}.dark .tray-btn{border-color:#374151}.tray-btn:hover{border-color:var(--accent);color:var(--accent)}.tray-btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}.tray-btn-primary:hover{background:#4f46e5;border-color:#4f46e5;color:#fff}.tray-btn-danger:hover{border-color:#ef4444;color:#ef4444}.tray-range{width:6rem;accent-color:var(--accent)}.tray-swatch{width:18px;height:18px;border-radius:.25rem;border:1px solid #d1d5db}.dark .tray-swatch{border-color:#4b5563}.tray-swatch.is-active{box-shadow:0 0 0 2px var(--accent);border-color:var(--accent)}.tray-swatch-auto{background:linear-gradient(135deg,#fff 50%,#0b0f19 50%)}.tray-swatch-light{background:#fff}.tray-swatch-dark{background:#0b0f19}.tray-swatch-checker{background-color:#fff;background-image:linear-gradient(45deg,#d1d5db 25%,transparent 25%,transparent 75%,#d1d5db 75%),linear-gradient(45deg,#d1d5db 25%,transparent 25%,transparent 75%,#d1d5db 75%);background-size:8px 8px;background-position:0 0,4px 4px}.icon-card.in-tray{border-color:var(--accent)}.tray-item.is-selected{box-shadow:0 0 0 2px var(--accent);background:#6366f10f}.tray-strip:has(.is-selected) .tray-item:not(.is-selected){opacity:.55}.tray-size-badge{font-size:9px;line-height:1.2;font-variant-numeric:tabular-nums;color:#9ca3af;opacity:0;transition:opacity .12s;white-space:nowrap}.tray-item:hover .tray-size-badge,.tray-item.is-selected .tray-size-badge{opacity:1;color:var(--accent)}.tray-resize{position:absolute;right:-7px;bottom:-7px;width:14px;height:14px;border-radius:3px;background:var(--accent);border:2px solid #fff;cursor:nwse-resize;opacity:0;transition:opacity .12s;touch-action:none}.dark .tray-resize{border-color:#111827}.tray-item:hover .tray-resize,.tray-item.is-selected .tray-resize{opacity:1}@media(hover:none){.tray-resize{opacity:1;width:18px;height:18px;right:-9px;bottom:-9px}}.tray-strip.is-resizing{cursor:nwse-resize}.tray-strip.is-resizing .tray-item{transition:none}.tray-px-input::-webkit-outer-spin-button,.tray-px-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#word-sections{margin-top:1.25rem}.word-head{color:#6b7280;margin:0 0 .75rem}.dark .word-head{color:#9ca3af}#icon-grid:empty+#load-more-wrap+#word-sections .word-head{text-align:center;margin:1.5rem 0 1.25rem}.word-section{margin-bottom:1rem}.word-title{display:flex;align-items:baseline;gap:.5rem;margin:0 0 .4rem}.word-name{font-weight:600;font-size:.875rem}.word-count{font-size:.75rem;color:#9ca3af;font-variant-numeric:tabular-nums}.word-all{margin-left:auto;font-size:.75rem;color:var(--accent)}.word-all:hover{text-decoration:underline}.word-row{display:grid;grid-auto-flow:column;grid-auto-columns:100px;gap:.5rem;overflow-x:auto;padding-bottom:.4rem;overscroll-behavior-x:contain}.layers-canvas{position:relative;width:100%;max-width:420px;aspect-ratio:1 / 1;flex:none;border-radius:.75rem;overflow:visible;border:1px solid #e5e7eb;touch-action:none;user-select:none;-webkit-user-select:none;cursor:default}.dark .layers-canvas{border-color:#374151}.layers-bg-light{background:#fff;color:#111827}.layers-bg-dark{background:#0b0f19;color:#f3f4f6}.layers-bg-checker{color:#111827;background-color:#fff;background-image:linear-gradient(45deg,#e5e7eb 25%,transparent 25%,transparent 75%,#e5e7eb 75%),linear-gradient(45deg,#e5e7eb 25%,transparent 25%,transparent 75%,#e5e7eb 75%);background-size:20px 20px;background-position:0 0,10px 10px}#layers-art,#layers-art>svg{position:absolute;inset:0;width:100%;height:100%;display:block;border-radius:.75rem}#layers-art{pointer-events:none}.layers-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem;color:#9ca3af}.ly-sel{position:absolute;outline:1.5px solid var(--accent);outline-offset:0;pointer-events:none}.ly-handle{position:absolute;right:-8px;bottom:-8px;width:16px;height:16px;border-radius:4px;background:var(--accent);border:2px solid #fff;pointer-events:auto;cursor:nwse-resize;touch-action:none}@media(hover:none){.ly-handle{width:24px;height:24px;right:-12px;bottom:-12px}}.layer-row{display:flex;align-items:center;gap:.5rem;width:100%;text-align:left;padding:.35rem .5rem;border-radius:.5rem;border:1px solid transparent;font-size:.8rem}.layer-row:hover{background:#6366f10f}.layer-row.is-selected{border-color:var(--accent);background:#6366f114}.layer-z{width:1.1rem;text-align:center;color:#9ca3af;font-variant-numeric:tabular-nums;font-size:.7rem}.layer-thumb{width:24px;height:24px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.layer-thumb img{width:100%;height:100%;object-fit:contain}.layer-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-ko{font-size:.65rem;padding:.05rem .35rem;border-radius:9999px;background:#eef2ff;color:#4f46e5}.dark .layer-ko{background:#1e1b4b;color:#a5b4fc}.layer-warn{font-size:.7rem;font-weight:700;color:#b45309}.ly-field{display:flex;flex-direction:column;gap:.2rem;color:#6b7280}.ly-field input{width:100%;padding:.3rem .45rem;border-radius:.4rem;font-family:ui-monospace,monospace;border:1px solid #e5e7eb;background:#f9fafb;color:inherit}.dark .ly-field input{border-color:#374151;background:#1f2937}.ly-ko-row.is-disabled{opacity:.5}.layers-tray{display:flex;flex-wrap:wrap;gap:.35rem;max-height:6.5rem;overflow-y:auto;padding-bottom:.25rem}.layers-tray-item{width:40px;height:40px;flex-shrink:0;border-radius:.5rem;padding:6px;border:1px solid #e5e7eb;background:#fff}.dark .layers-tray-item{border-color:#374151;background:#111827}.layers-tray-item:hover{border-color:var(--accent)}.layers-tray-item img{width:100%;height:100%;object-fit:contain}.layers-panel kbd{font-family:ui-monospace,monospace;font-size:.7rem;padding:0 .3rem;border:1px solid #d1d5db;border-bottom-width:2px;border-radius:.25rem}@media(max-width:767px){#layers{padding:0}#layers .layers-panel{max-height:100dvh;height:100dvh;border-radius:0}.ly-field input{font-size:16px}}.layers-save{padding:.75rem;border-radius:.6rem;border:1px solid var(--accent);background:#6366f10d}.layers-save .ly-field input{font-family:inherit}.tray-project-btn{font-size:.75rem;font-weight:600;padding:.2rem .6rem;border-radius:9999px;border:1px solid var(--accent);color:var(--accent);max-width:16rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tray-project-btn:hover{background:#6366f114}.project-menu{position:absolute;bottom:calc(100% + 6px);left:0;z-index:45;min-width:15rem;max-width:20rem;max-height:60vh;overflow-y:auto;padding:.3rem;border-radius:.75rem;border:1px solid #e5e7eb;background:#fff;box-shadow:0 12px 32px #0000002e}.dark .project-menu{border-color:#374151;background:#111827}.project-item{display:flex;align-items:baseline;gap:.5rem;width:100%;text-align:left;padding:.45rem .6rem;border-radius:.5rem;font-size:.8rem}.project-item:hover{background:#6366f114}.project-item>span:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-item.is-danger:hover{color:#dc2626;background:#dc262614}.project-hint{font-size:.7rem;color:#9ca3af;white-space:nowrap}.project-head{font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#9ca3af;padding:.5rem .6rem .2rem}.tray-empty{font-size:.8rem;color:#9ca3af;padding:.5rem 0}.tray-icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:.3rem .5rem}.tray-btn:disabled{opacity:.35;cursor:default}.tray-btn:disabled:hover{border-color:#e5e7eb;color:inherit}.dark .tray-btn:disabled:hover{border-color:#374151}.layer-hole{background:#0b0f19;color:#fff}.dark .layer-hole{background:#f3f4f6;color:#111827}.ly-lock{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;margin-bottom:1px;border-radius:8px;border:1px solid #e5e7eb;color:#9ca3af;background:transparent;flex:none}.ly-lock.is-active{color:#4f46e5;border-color:#c7d2fe;background:#eef2ff}.dark .ly-lock{border-color:#374151;color:#6b7280}.dark .ly-lock.is-active{color:#a5b4fc;border-color:#4338ca;background:#4f46e526}.up-input{border:1px solid #e5e7eb;border-radius:.5rem;padding:.4rem .6rem;background:#fff;color:inherit;font-size:.85rem}.dark .up-input{border-color:#374151;background:#1f2937}.up-drop{display:flex;flex-direction:column;align-items:center;gap:.2rem;padding:1.4rem 1rem;border:2px dashed #c7d2fe;border-radius:.9rem;cursor:pointer;text-align:center}.up-drop:hover,.up-drop.is-over{border-color:#6366f1;background:#eef2ff}.dark .up-drop{border-color:#3730a3}.dark .up-drop:hover,.dark .up-drop.is-over{background:#4f46e526}.up-row{display:flex;align-items:center;gap:.6rem;padding:.35rem .5rem;border:1px solid #f3f4f6;border-radius:.6rem}.dark .up-row{border-color:#1f2937}.up-row img{width:36px;height:36px;object-fit:contain;flex:none}.up-row input{flex:1;min-width:0}.up-row .up-err{color:#dc2626;font-size:.75rem}.up-row button{color:#9ca3af;padding:0 .3rem}body.is-dropping:after{content:"Drop SVGs to upload";position:fixed;inset:12px;border:3px dashed #6366f1;border-radius:1rem;background:#6366f114;display:flex;align-items:center;justify-content:center;font:600 1.1rem system-ui;color:#4f46e5;z-index:60;pointer-events:none}.card-del-btn{position:absolute;bottom:.25rem;right:.25rem;z-index:2;width:20px;height:20px;border-radius:9999px;display:flex;align-items:center;justify-content:center;border:1px solid #e5e7eb;background:#ffffffe6;color:#9ca3af;opacity:0;transition:opacity .12s,background .12s,color .12s}.dark .card-del-btn{border-color:#374151;background:#111827e6}.icon-card:hover .card-del-btn{opacity:1}.card-del-btn:hover{background:#dc2626;border-color:#dc2626;color:#fff}@media(hover:none){.card-del-btn{opacity:.6}}.layers-panel{height:92vh;max-height:92vh}.layers-body{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column}.layers-left{padding:1rem;display:flex;flex-direction:column;align-items:center;gap:.75rem;min-width:0}.ly-stage{width:100%;display:flex;justify-content:center}.layers-right{padding:1rem;display:flex;flex-direction:column;gap:1rem;min-width:0;border-top:1px solid #f3f4f6}.dark .layers-right{border-color:#1f2937}@media(min-width:768px){.layers-body{display:grid;grid-template-columns:minmax(0,1fr) 340px;overflow:hidden}.layers-left{padding:2rem 1.25rem 1.25rem;min-height:0}.ly-stage{flex:1;min-height:0;container-type:size;align-items:center}.ly-stage .layers-canvas{width:min(100cqw,100cqh);max-width:none}.layers-right{overflow-y:auto;border-top:0;border-left:1px solid #f3f4f6}.dark .layers-right{border-color:#1f2937}}.ly-head{font-size:.7rem;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}.ly-palette{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.3rem}.ly-palette button{display:flex;align-items:center;justify-content:center;aspect-ratio:1;border-radius:.5rem;border:1px solid #e5e7eb;color:#4b5563}.ly-palette button:hover{border-color:var(--accent);color:var(--accent);background:#6366f10f}.dark .ly-palette button{border-color:#374151;color:#d1d5db}.ly-select{border:1px solid #e5e7eb;border-radius:.4rem;padding:.3rem .4rem;background:#fff;color:inherit;font-size:.8rem}.dark .ly-select{border-color:#374151;background:#1f2937}.ly-color{width:2.25rem;height:1.6rem;padding:0;border:1px solid #e5e7eb;border-radius:.35rem;background:none}.ly-color:disabled{opacity:.35}.layer-tag{font-size:.6rem;padding:.05rem .3rem;border-radius:9999px;background:#f3f4f6;color:#6b7280}.dark .layer-tag{background:#1f2937;color:#9ca3af}#ly-shape-sw-row.is-disabled{opacity:.45}.ly-rot{position:absolute;left:50%;top:-26px;width:14px;height:14px;margin-left:-7px;border-radius:9999px;background:#fff;border:2px solid var(--accent);pointer-events:auto;cursor:grab;touch-action:none}.ly-rot:after{content:"";position:absolute;left:50%;top:12px;width:1.5px;height:12px;margin-left:-.75px;background:var(--accent)}.ly-crop-h{display:none;position:absolute;background:#fff;border:2px solid var(--accent);border-radius:3px;pointer-events:auto;touch-action:none}.ly-crop-h[data-edge=n],.ly-crop-h[data-edge=s]{left:50%;width:22px;height:8px;margin-left:-11px;cursor:ns-resize}.ly-crop-h[data-edge=e],.ly-crop-h[data-edge=w]{top:50%;width:8px;height:22px;margin-top:-11px;cursor:ew-resize}.ly-crop-h[data-edge=n]{top:-5px}.ly-crop-h[data-edge=s]{bottom:-5px}.ly-crop-h[data-edge=w]{left:-5px}.ly-crop-h[data-edge=e]{right:-5px}.ly-sel.is-cropping{outline-style:dashed;outline-color:#f59e0b}.ly-sel.is-cropping .ly-crop-h{display:block;border-color:#f59e0b}.ly-sel.is-cropping .ly-rot,.ly-sel.is-cropping .ly-handle{display:none}.ly-crop-full{position:absolute;outline:1px dashed #9ca3af;pointer-events:none}@media(hover:none){.ly-rot{width:22px;height:22px;margin-left:-11px;top:-34px}.ly-rot:after{top:18px;height:14px}.ly-crop-h[data-edge=n],.ly-crop-h[data-edge=s]{width:30px;height:14px;margin-left:-15px}.ly-crop-h[data-edge=e],.ly-crop-h[data-edge=w]{width:14px;height:30px;margin-top:-15px}}.ly-quick{display:flex;flex-wrap:wrap;justify-content:center;gap:.3rem;flex-shrink:0}.ly-quick.hidden{display:none}.ly-quick button{font-size:.75rem;font-weight:600;padding:.25rem .65rem;border-radius:9999px;border:1px solid #e5e7eb}.ly-quick button:hover{border-color:var(--accent);color:var(--accent)}.ly-quick button.is-active{background:#f59e0b;border-color:#f59e0b;color:#fff}.ly-quick button.is-danger:hover{border-color:#dc2626;color:#dc2626}.dark .ly-quick button{border-color:#374151}
