.crt.crt :where(button,input,select,textarea){font:inherit;color:inherit;margin:0;box-sizing:border-box}.crt.crt{position:fixed;inset:0;z-index:1200;background:rgba(10,12,14,.62);display:grid;place-items:center;padding:16px}.crt .crt__panel{width:min(920px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;background:var(--paper,#fff);color:var(--txt,#13161a);border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.35);overflow:hidden;font-family:var(--font-body,"Inter Tight",system-ui,sans-serif)}.crt .crt__hd{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 8px;font-family:var(--font-display,"Archivo",sans-serif);font-size:16px}.crt .crt__x{width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:var(--txt-3,#8b929b);display:grid;place-items:center;cursor:pointer}.crt .crt__x:hover{background:var(--paper-3,#eef0f3);color:var(--txt,#13161a)}.crt .crt__presets{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 10px}.crt .crt__presets button{border:1px solid var(--line-2,#d3d7dd);background:var(--paper,#fff);color:var(--txt,#13161a);border-radius:999px;padding:5px 12px;font-size:12px;font-weight:600;cursor:pointer;font-family:var(--font-mono,"JetBrains Mono",monospace)}.crt .crt__presets button.on{background:var(--txt,#13161a);border-color:var(--txt,#13161a);color:var(--paper,#fff)}.crt .crt__stage{position:relative;flex:1 1 auto;min-height:280px;height:min(62vh,640px);margin:0 16px;display:grid;place-items:center;touch-action:none;user-select:none;background-color:#fff;background-image:conic-gradient(#e6e8eb 25%,transparent 0 50%,#e6e8eb 0 75%,transparent 0);background-size:16px 16px;border-radius:10px;overflow:hidden}.crt .crt__imgwrap{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.crt .crt__imgwrap img{display:block;max-width:calc(100% - 72px);max-height:calc(min(62vh, 640px) - 72px);object-fit:contain;pointer-events:none}.crt .crt__imgwrap.is-fit img{width:100%;height:100%;max-width:none;max-height:none}.crt .crt__rect{position:absolute;box-shadow:0 0 0 9999px rgba(12,14,16,.55);outline:2px solid #fff;cursor:move}.crt .crt__grid{position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(90deg,rgba(255,255,255,.55) 1px,transparent 0),linear-gradient(180deg,rgba(255,255,255,.55) 1px,transparent 0);background-size:33.333% 33.333%;background-position:-1px -1px;opacity:.7}.crt .crt__h{position:absolute;width:16px;height:16px;background:#fff;border:2px solid var(--accent,#18f4af);border-radius:4px;transform:translate(-50%,-50%)}.crt .crt__h--nw{left:0;top:0;cursor:nwse-resize}.crt .crt__h--n{left:50%;top:0;cursor:ns-resize}.crt .crt__h--ne{left:100%;top:0;cursor:nesw-resize}.crt .crt__h--e{left:100%;top:50%;cursor:ew-resize}.crt .crt__h--se{left:100%;top:100%;cursor:nwse-resize}.crt .crt__h--s{left:50%;top:100%;cursor:ns-resize}.crt .crt__h--sw{left:0;top:100%;cursor:nesw-resize}.crt .crt__h--w{left:0;top:50%;cursor:ew-resize}.crt .crt__ft{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 16px 16px}.crt .crt__info{font-family:var(--font-mono,"JetBrains Mono",monospace);font-size:12px;color:var(--txt,#13161a);flex:1;min-width:200px}.crt .crt__info span{color:var(--txt-3,#8b929b)}.crt .crt__err{width:100%;order:3;color:#d63c3c;font-size:12px}.crt .crt__btns{display:flex;gap:8px;margin-left:auto}.crt .crt__btn{border:1px solid var(--line-2,#d3d7dd);background:var(--paper,#fff);color:var(--txt,#13161a);border-radius:9px;padding:9px 14px;font-weight:700;font-size:13px;cursor:pointer;font-family:var(--font-display,"Archivo",sans-serif);display:inline-flex;align-items:center;gap:8px}.crt .crt__btn:disabled{opacity:.45;cursor:not-allowed}.crt .crt__btn--primary{background:var(--txt,#13161a);border-color:var(--txt,#13161a);color:var(--paper,#fff)}.crt .crt__spin{width:12px;height:12px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:crt-spin .8s linear infinite}@keyframes crt-spin{to{transform:rotate(1turn)}}@media (max-width:600px){.crt .crt__stage{height:52vh;margin:0 10px}.crt .crt__btns{width:100%}.crt .crt__btn{flex:1;justify-content:center}}