*,:before,:after{box-sizing:border-box}:root{--bg:#fff;--text:#111;--dim:#666;--border:#eee;--accent:#000;--danger:red;--radius:4px}body{background:var(--bg);color:var(--text);margin:0;font-family:Inter,system-ui,sans-serif;line-height:1.5}#app{max-width:600px;margin:0 auto;padding:4rem 2rem}@media (width<=560px),(orientation:portrait){#app{padding:1rem}}.success-view{z-index:2000;background:#fff;flex-direction:column;justify-content:center;align-items:center;gap:2rem;display:flex;position:fixed;inset:0}.success-view a{color:var(--accent);font-size:1.25rem;font-weight:600}.success-view button{border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:4px;padding:.5rem 1.5rem}header{text-align:center;margin-bottom:3rem}@media (width<=560px),(orientation:portrait){header{margin-bottom:1rem}}header .brand{display:inline-block;position:relative}header .brand img{width:1.8rem;height:1.8rem;position:absolute;top:50%;right:calc(100% + .5rem);transform:translateY(-50%)}header h1{letter-spacing:-.02em;margin:0;font-size:1.5rem;line-height:1.1}header p{color:var(--dim);margin:.5rem 0;font-size:.9rem}.upload{border:1px dashed var(--border);text-align:center;margin-bottom:3rem;padding:2rem;transition:border-color .2s;display:block}@media (width<=560px),(orientation:portrait){.upload{margin-bottom:1rem}}.upload:hover{border-color:var(--accent)}.upload input{display:none}.upload .hint{color:var(--dim);cursor:pointer;margin:0;font-size:.9rem}.file-item-container{border-bottom:1px solid var(--border);padding:1rem 0}.file-item{flex-wrap:wrap;align-items:center;gap:1rem;display:flex}@media (width<=560px),(orientation:portrait){.file-item{gap:.5rem}}.file-item .thumb{background:#f5f5f5;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;display:flex;overflow:hidden}.file-item .thumb img{object-fit:cover;width:100%;height:100%}.file-item .thumb .ext-placeholder{color:var(--dim);font-size:.75rem;font-weight:700}.file-item .info{flex:1;min-width:120px}.file-item .info .name-row{align-items:center;gap:.5rem;display:flex;overflow:hidden}.file-item .info .name{color:var(--accent);white-space:nowrap;text-overflow:ellipsis;font-weight:500;text-decoration:none;display:block;overflow:hidden}.file-item .info .name:hover{text-decoration:underline}.file-item .info .copy-btn{cursor:pointer;color:var(--dim);background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;padding:.25rem;transition:all .2s;display:flex}.file-item .info .copy-btn:hover{color:var(--accent);background:#f5f5f5}.file-item .info .copy-btn:active{transform:scale(.9)}.file-item .info .meta{color:var(--dim);font-size:.8rem}.file-item .actions{flex-shrink:0;gap:.5rem;display:flex}@media (width<=560px),(orientation:portrait){.file-item .actions{flex-basis:100%;justify-content:flex-end}}.file-item .actions button{border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:4px;padding:.3rem .6rem;font-size:.8rem}.file-item .actions button:hover{background:#f5f5f5}.file-item .actions button:active{background:#eee}.file-item .actions button.delete{color:var(--danger)}.file-item .actions button.delete:hover{background:snow;border-color:#ffdada}.file-item .actions button.delete.really{background:var(--danger);color:#fff;border-color:var(--danger)}.file-item .actions button.delete.really:hover{opacity:.8}.file-item .actions button.restore{color:var(--accent)}.file-item .actions button.restore.really{background:var(--accent);color:#fff;border-color:var(--accent)}.file-item .actions button.restore.really:hover{opacity:.8}.versions-list{flex-wrap:wrap;gap:.5rem;margin-top:.5rem;display:flex}.versions-list .version-name{color:var(--dim);background:#f5f5f5;border-radius:4px;padding:.1rem .4rem;font-family:monospace;font-size:.75rem}.versions-toggle{cursor:pointer;opacity:.7;font:inherit;color:inherit;background:0 0;border:none;padding:0;text-decoration:underline;display:inline}.editor{z-index:1000;background:#fdfdfd;flex-direction:column;display:flex;position:fixed;inset:0}.toolbar{border-bottom:1px solid var(--border);background:#fff;flex-wrap:wrap;align-items:center;gap:.3rem;padding:.3rem .4rem;display:flex}.toolbar .tool-group{align-items:center;gap:.15rem;display:flex}.toolbar .tool-group.colors{gap:.1rem}.toolbar .tool-group.colors button{border:1px solid #0000001a;border-radius:50%;width:1.25rem;height:1.25rem;padding:0}.toolbar .tool-group.colors button.active{box-shadow:0 0 0 2px #fff, 0 0 0 3px var(--accent)}.toolbar .tool-group.width button{min-width:1.6rem}.toolbar button{border:1px solid var(--border);cursor:pointer;white-space:nowrap;background:0 0;border-radius:4px;padding:.3rem .5rem;font-size:.8rem;transition:all .1s}.toolbar button:hover{background:#f8f8f8;border-color:#ccc}.toolbar button:active{background:#f0f0f0}.toolbar button:disabled{opacity:.2;cursor:not-allowed}.toolbar button.active{background:#f0f0f0;border-color:#666;font-weight:600}.toolbar button.skip{color:var(--dim);margin-left:auto}.toolbar button.save{background:var(--accent);color:#fff;border-color:var(--accent)}.toolbar button.save:hover{opacity:.9}.toolbar button.save{font-weight:600}.canvas-container{touch-action:none;background:#eee;flex:1;position:relative;overflow:hidden}.canvas-container canvas{touch-action:none;width:100%;height:100%;display:block}.canvas-container .trash-button{background:var(--danger);color:#fff;cursor:pointer;z-index:100;border:none;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;transition:transform .1s;display:flex;transform:translate(-50%);box-shadow:0 4px 12px #0003}.canvas-container .trash-button:hover{transform:translate(-50%)scale(1.1)}.canvas-container .trash-button:active{transform:translate(-50%)scale(.95)}
/*$vite$:1*/