:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17243b;background:#f3f5f9;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select,.button{font:inherit}button,.button{border:1px solid #cbd3df;background:white;color:#23364f;border-radius:9px;padding:10px 15px;cursor:pointer;text-decoration:none;white-space:nowrap}button:hover,.button:hover{background:#edf2fa}button:disabled{opacity:.5;cursor:wait}.primary{background:#2859e7;color:white;border-color:#2859e7}.primary:hover{background:#1746cc}.danger{color:#b1293b}input,textarea,select{width:100%;border:1px solid #c6cfdd;border-radius:7px;padding:9px 10px;background:white;color:inherit}textarea{resize:vertical}input[type=color]{height:42px;padding:4px}label{display:block;font-size:14px;font-weight:550;margin:14px 0}label input,label select,label textarea{display:block;margin-top:7px}h1{font-size:28px;letter-spacing:-.6px;margin:0 0 9px}h2{font-size:18px;margin:0 0 12px}p{color:#5b6980;line-height:1.6;margin:8px 0 20px}header{height:88px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;background:white;border-bottom:1px solid #dfe5ef;gap:20px}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font-size:18px;font-weight:700}.brand small{display:block;font-size:13px;color:#69768d;font-weight:400;margin-top:3px}.brand-icon{display:inline-grid;place-items:center;background:#2859e7;color:white;border-radius:12px;width:45px;height:45px;font-size:21px;font-weight:700}.actions{display:flex;align-items:center;gap:10px}.actions form{margin:0}main#library{max-width:1450px;margin:0 auto;padding:38px 32px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:20px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:22px}.card{padding:0;overflow:hidden;text-align:left;border:1px solid #dce2eb;background:white;box-shadow:0 4px 16px #17243b05}.card img{width:100%;height:190px;object-fit:contain;background:#e9edf4;display:block}.card-content{padding:17px}.card strong{display:block;margin-bottom:7px}.card small{color:#69768d}.empty{text-align:center;background:white;border:1px dashed #c5cfdf;padding:80px 25px;border-radius:16px}.empty-icon{display:inline-grid;place-items:center;background:#edf2ff;color:#2859e7;width:78px;height:78px;font-size:32px;border-radius:22px;margin-bottom:22px}.editor-toolbar{background:white;padding:18px 24px;display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #dfe5ef}#picture-name{width:260px;font-weight:650}#save-state{font-size:14px;color:#65738a}.workspace{display:grid;grid-template-columns:235px minmax(300px,1fr) 300px;min-height:calc(100vh - 168px)}aside{background:white;padding:22px 18px}.layers-panel{border-right:1px solid #dfe5ef}.properties{border-left:1px solid #dfe5ef}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.panel-heading h2{margin:0}.panel-heading button{padding:8px 10px}.layer{display:block;width:100%;text-align:left;margin:8px 0;padding:13px;overflow:hidden;text-overflow:ellipsis}.layer.selected{background:#edf2ff;border-color:#2859e7;color:#1949d3}.layer small{display:block;color:#69768d;margin-top:5px}.hint{font-size:13px;color:#637188;line-height:1.6}.canvas-panel{padding:22px;min-width:0}.canvas-info{display:flex;justify-content:space-between;font-size:13px;color:#637188;margin-bottom:20px;gap:12px}.stage-wrap{min-height:430px;display:flex;align-items:center;justify-content:center;background:repeating-conic-gradient(#e5e9f0 0% 25%,#edf0f5 0% 50%) 50%/24px 24px;border-radius:12px;padding:25px;overflow:hidden}#stage{position:relative;width:100%;box-shadow:0 10px 35px #17243b20;touch-action:none}#rendered{display:block;width:100%;height:auto;user-select:none}#boxes{position:absolute;inset:0}.text-box{position:absolute;border:1px dashed #2859e777;cursor:move;touch-action:none;min-height:12px}.text-box.selected{border:2px solid #2859e7;background:#2859e709}.text-box.selected:after{content:"";position:absolute;width:9px;height:9px;background:white;border:2px solid #2859e7;right:-6px;bottom:-6px}.pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check{display:flex;align-items:center;gap:7px;font-weight:400}.check input{width:auto;margin:0}.order{margin-top:14px}.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at top,#e7eeff,#f3f5f9 70%);padding:24px}.login-card{background:white;border:1px solid #dce2eb;box-shadow:0 20px 80px #17243b0c;border-radius:20px;padding:40px;width:min(460px,100%)}.login-card h1{margin-top:24px}.login-card button{width:100%;margin-top:12px}.error{color:#b1293b}dialog{border:1px solid #dce2eb;border-radius:16px;padding:28px;width:min(500px,calc(100% - 32px));box-shadow:0 30px 100px #101a3340;max-height:90vh;overflow:auto}dialog::backdrop{background:#14203b70;backdrop-filter:blur(3px)}.wide-dialog{width:min(740px,calc(100% - 32px))}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;flex-wrap:wrap}#font-list{max-height:200px;overflow:auto;background:#f3f5f9;border-radius:8px;padding:12px;font-size:14px}#font-list div{padding:6px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#17243b;color:white;padding:15px 22px;border-radius:10px;max-width:90vw;z-index:10;box-shadow:0 8px 25px #17243b30}[hidden]{display:none!important}@media(max-width:1100px){.workspace{grid-template-columns:180px minmax(250px,1fr) 260px}.canvas-panel{padding:14px}.stage-wrap{padding:12px}.brand small{display:none}.editor-toolbar{flex-wrap:wrap}}@media(max-width:800px){header{padding:16px;height:auto;flex-wrap:wrap}.brand{font-size:16px}.workspace{grid-template-columns:1fr}.layers-panel{border-bottom:1px solid #dfe5ef}.properties{border-top:1px solid #dfe5ef}.stage-wrap{min-height:250px}#library{padding:25px 16px!important}.section-title{align-items:flex-start;flex-direction:column}.editor-toolbar{padding:14px}.editor-toolbar .actions{flex-wrap:wrap}#picture-name{width:200px}.canvas-info{font-size:12px}}
