:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#ddd;background:#202020;font-size:14px;color-scheme:dark;--border:#171717;--muted:#999;--accent:#e9a477}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer;background:#393939;color:#dedede;border:1px solid #545454;border-radius:4px;padding:7px 11px}button:hover{background:#4c4c4c}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #f3b58c;outline-offset:2px}button:disabled{opacity:.4;cursor:default}.primary{background:#e9a477;border-color:#e9a477;color:#251c15;font-weight:600}.primary:hover{background:#f3b58c}input,select,textarea{background:#242424;border:1px solid #515151;border-radius:3px;padding:6px;color:#eee;max-width:100%}input[type=number]{width:76px}input[type=range]{padding:0;accent-color:var(--accent)}input[type=color]{width:34px;height:30px;padding:2px;cursor:pointer}header{height:43px;background:#292929;display:flex;align-items:center;border-bottom:1px solid #111;padding:0 12px;gap:18px}.brand{font-size:20px;color:#e9a477;background:#171717;border:0;padding:2px 5px;letter-spacing:-1px}nav{display:flex;align-items:center;gap:2px}nav>details{position:relative}nav summary{list-style:none;cursor:pointer;padding:8px}nav summary:hover,nav details[open] summary{background:#454545;border-radius:4px}nav summary::-webkit-details-marker{display:none}.menu{position:absolute;z-index:20;top:34px;min-width:255px;background:#303030;padding:5px;border:1px solid #555;box-shadow:0 12px 35px #0009;border-radius:5px}.menu button{width:100%;display:flex;justify-content:space-between;border:0;background:none;text-align:left;font-size:14px}.menu button:hover{background:#596777}.menu kbd{font:12px inherit;color:#aaa;margin-left:24px}.menu hr{border:0;border-top:1px solid #4b4b4b;margin:5px}.top-right{margin-left:auto;display:flex;align-items:center;gap:15px}.local-label{font-size:12px;color:#aaa}.options{height:47px;display:flex;align-items:center;gap:15px;border-bottom:1px solid #141414;background:#303030;padding:6px 18px;overflow-x:auto;white-space:nowrap}.options label{display:flex;align-items:center;gap:7px;font-size:13px}.options input[type=number]{width:65px}.options input[type=range]{width:80px}.options .tool-label{font-weight:600;min-width:95px;border-right:1px solid #555;margin-right:5px}.hint{color:#aaa;font-size:12px}#editor{height:calc(100dvh - 90px);display:flex}#editor[hidden],#home[hidden]{display:none}.tools{width:45px;background:#303030;flex-shrink:0;border-right:1px solid #111;display:flex;flex-direction:column;align-items:center;overflow-y:auto;padding:5px 0;gap:2px}.tools button{border:1px solid transparent;background:transparent;padding:5px;width:35px;height:32px;flex-shrink:0;border-radius:3px}.tools button.active{background:#181818;border-color:#666}.tools button:hover{background:#454545}.tools svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}.tools .divider{height:1px;width:27px;background:#555;margin:5px}.workspace{min-width:0;flex:1;display:flex;flex-direction:column}.document-tab{height:33px;display:flex;align-items:center;gap:8px;background:#353535;box-shadow:0 1px #111;z-index:1;padding:0 12px;font-size:12px}.document-tab button{margin-left:10px;padding:0 6px;background:none;border:0}.document-tab #document-info{color:#aaa}.viewport{background:#1a1a1a;flex:1;overflow:hidden;position:relative;touch-action:none;background-image:radial-gradient(ellipse at center,#282828,#1b1b1b)}#canvas-wrap{position:absolute;transform-origin:0 0;box-shadow:0 4px 24px #0008;background-color:#fff;background-image:conic-gradient(#ccc 25%,#fff 0 50%,#ccc 0 75%,#fff 0);background-size:20px 20px}#surface{display:block}#overlay{position:absolute;top:0;left:0;touch-action:none}.contextbar{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);display:flex;gap:8px;align-items:center;white-space:nowrap;padding:7px 10px;background:#343434;border:1px solid #666;border-radius:8px;box-shadow:0 5px 15px #0006;font-size:12px}.contextbar[hidden]{display:none}.contextbar button{font-size:12px;padding:5px 9px}footer{height:29px;display:flex;align-items:center;background:#303030;border-top:1px solid #111;gap:5px;font-size:12px;padding:0 8px}footer button{border:0;background:none;font-size:12px;padding:3px 6px}#status{margin-left:10px;color:#bbb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#save-status{margin-left:auto;color:#bcb5ab;white-space:nowrap}.panels{width:280px;flex-shrink:0;background:#303030;border-left:1px solid #111;display:flex;flex-direction:column;overflow:auto}.panel{border-bottom:1px solid #151515}.panel-title{padding:11px 12px;background:#2b2b2b;font-size:13px;font-weight:600;display:flex;justify-content:space-between}.panel-title span{font-weight:400;color:#929292;font-size:12px}.color-row{display:flex;align-items:center;gap:8px;padding:12px}.color-row label{display:flex;gap:5px;align-items:center;font-size:12px}.color-row button{padding:5px;border:0;background:none}#swatches{display:flex;padding:0 12px 12px;gap:5px;flex-wrap:wrap}#swatches button{width:18px;height:18px;padding:0;border:1px solid #ffffff20;border-radius:2px}#properties{padding:12px;display:flex;flex-wrap:wrap;gap:8px;font-size:12px}#properties button{font-size:12px;padding:5px 8px}#properties p{margin:0;color:#aaa;line-height:1.7}.history-panel{max-height:155px;min-height:80px;display:flex;flex-direction:column}#history-list{overflow:auto;padding:4px}#history-list button{display:block;text-align:left;width:100%;font-size:12px;border:0;background:transparent;padding:5px 9px}#history-list button.current{background:#4b4b4b}#history-list button.future{color:#777}.layers-panel{flex:1;display:flex;flex-direction:column;min-height:210px}.layer-controls{padding:9px;display:flex;flex-wrap:wrap;gap:9px;font-size:12px}.layer-controls select{width:110px;padding:4px}.layer-controls input{width:47px;padding:4px}#layers{overflow:auto;flex:1}.layer{display:flex;align-items:center;gap:7px;padding:8px;border-bottom:1px solid #242424;font-size:12px;cursor:pointer}.layer.selected{background:#4a4a4a}.layer .eye,.layer .lock{border:0;background:none;width:20px;padding:0;color:#bbb}.layer img{width:37px;height:29px;object-fit:contain;background:repeating-conic-gradient(#999 0% 25%,#ddd 0% 50%) 50% / 8px 8px;border:1px solid #aaa}.layer img.editing{outline:2px solid #e9a477}.layer .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.layer-actions{display:flex;justify-content:flex-end;border-top:1px solid #222;padding:5px;gap:4px}.layer-actions button{border:0;background:none;padding:4px 7px}#home{height:calc(100dvh - 90px);display:flex;background:#202020}.home-sidebar{width:235px;flex-shrink:0;padding:44px 28px;border-right:1px solid #373737;display:flex;align-items:stretch;flex-direction:column;gap:12px}.home-sidebar h1{font-size:28px;font-weight:600;letter-spacing:-1.5px;margin:0 0 25px}.home-sidebar h1 span{display:block;font-size:16px;font-weight:400;letter-spacing:5px;margin-top:3px;color:#bcbcbc}.home-sidebar p{font-size:13px;color:#aaa;line-height:1.8;margin-top:25px}.home-sidebar small{margin-top:auto;font-size:12px;color:#777;line-height:1.7}.home-content{padding:46px 6%;flex:1;overflow:auto}.eyebrow{font-size:11px;letter-spacing:2px;color:#bba38f}.home-title{display:flex;align-items:center;justify-content:space-between;gap:15px}.home-title h2{font-size:30px;font-weight:500;letter-spacing:-1px;margin:10px 0 30px}.drop-start{border:1px dashed #626262;border-radius:10px;background:#282828;text-align:center;padding:32px 15px}.drop-start svg{width:47px;stroke:#d6ab8c;stroke-width:1.2;fill:none}.drop-start h3{font-size:18px;font-weight:500;margin:13px 0 9px}.drop-start p{color:#999;font-size:12px;margin-bottom:20px}.recent-heading{font-size:16px;font-weight:500;margin-top:35px}.recent-heading span{color:#999;font-size:13px;margin-left:10px}.recent{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px}.project-card{position:relative;min-width:0}.project-card>button{width:100%;padding:0;text-align:left;border:1px solid #424242;background:#2b2b2b;overflow:hidden}.project-card img{display:block;width:100%;height:125px;object-fit:contain;background:#181818}.project-card strong{display:block;font-weight:500;padding:12px 12px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-card small{display:block;color:#999;padding:0 12px 12px;font-size:12px}.project-card .remove-project{position:absolute;right:5px;top:5px;width:25px;height:25px;text-align:center;background:#202020aa;border:0}.empty{color:#888;font-size:14px}dialog{width:min(620px,calc(100vw - 30px));background:#303030;color:#e5e5e5;border:1px solid #626262;padding:24px;border-radius:10px;box-shadow:0 20px 80px #0009;max-height:90dvh}dialog::backdrop{background:#0009}.dialog-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.dialog-header h2{font-size:20px;font-weight:500;margin:0}.dialog-header button{border:0;background:none;font-size:24px;padding:0 4px}#dialog-body{display:flex;flex-direction:column;gap:17px}#dialog-body label{display:flex;align-items:center;gap:12px;justify-content:space-between}#dialog-body label input:not([type=number]):not([type=checkbox]):not([type=color]):not([type=range]),#dialog-body textarea{width:65%}#dialog-body input[type=range]{width:60%}#dialog-body p{line-height:1.7;color:#bbb;margin:0}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:25px}#dialog-error{color:#ffae91;font-size:13px}#toast{position:fixed;bottom:45px;left:50%;transform:translateX(-50%);background:#eee;color:#222;padding:12px 20px;border-radius:7px;box-shadow:0 5px 25px #0007;z-index:100;font-size:14px;max-width:90vw}.shortcut-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:13px}.shortcut-grid kbd{float:right;color:#e9a477}.preset-row{display:flex;flex-wrap:wrap;gap:8px}a{color:#e9a477}@media(max-width:1000px){.panels{width:225px}.local-label{display:none}.home-sidebar{width:190px;padding:35px 20px}.home-content{padding:35px}.options{gap:9px}nav summary{padding:8px 5px}.layer-controls{gap:5px}}@media(max-width:720px){header{gap:6px;padding:0 7px}nav{gap:0;overflow:visible}nav summary{font-size:12px;padding:9px 4px}.top-right button{font-size:12px;padding:6px}.panels{width:180px}.color-panel,.history-panel,.properties{display:none}.home-sidebar{width:145px;padding:25px 15px}.home-sidebar h1{font-size:24px}.home-content{padding:25px 18px}.home-title h2{font-size:23px}.home-title>button{display:none}.home-sidebar button{font-size:12px}.drop-start p{line-height:1.6}.contextbar{left:10px;transform:none;font-size:11px;gap:3px}.contextbar span{display:none}.contextbar button{font-size:11px}.menu{min-width:210px}.menu kbd{margin-left:10px}.layer{gap:4px;padding:7px 4px}.layer img{width:26px;height:25px}#save-status{display:none}.options .hint{display:none}footer{gap:0}#status{display:none}.layer-controls{padding:7px}.layer-controls select{width:100%}}
.menu{max-height:calc(100dvh - 85px);overflow-y:auto}.adjustment-icon{width:37px;height:29px;flex-shrink:0;display:grid;place-items:center;border:1px solid #aaa;background:#292929;font-size:20px}.adjustment-icon.editing{outline:2px solid #e9a477}.layer.clipped .name::before{content:'↳ ';color:#e9a477}.curve-graph{width:min(288px,100%);height:auto;display:block;margin:auto;touch-action:none}.curve-toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center}.curve-toolbar label{font-size:13px}.curve-toolbar input{width:65px}.curve-toolbar select{max-width:180px}#correction-controls{display:flex;flex-direction:column;gap:15px}.correction-note{font-size:13px}.layer-actions button{min-width:24px}.layer-actions{gap:1px}

#transform-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.panels[inert],.tools[inert]{opacity:.65}

.group-row{display:flex;align-items:center;gap:3px;padding:8px 4px;background:#282828;border-bottom:1px solid #171717;font-size:12px;cursor:pointer}.group-row.selected{background:#49443f}.group-row button{border:0;background:none;padding:0 3px;font-size:12px}.group-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-child{padding-left:20px;border-left:2px solid #645548}

.layer-actions{overflow-x:auto;flex-shrink:0}.layer-actions button{flex-shrink:0}

.effect-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.effect-grid section{display:flex;flex-direction:column;gap:12px;border:1px solid #555;padding:13px;border-radius:5px}.effect-heading{font-weight:600;color:#e9a477}.layer-fx{border:0!important;background:none!important;padding:0 3px!important;font-style:italic;font-size:12px!important}@media(max-width:550px){.effect-grid{grid-template-columns:1fr}}
.paths-panel{max-height:190px;display:flex;flex-direction:column}#paths{overflow:auto;min-height:34px}.path-row{display:flex;align-items:center;gap:8px;padding:5px 8px;border-bottom:1px solid #242424;font-size:12px;cursor:pointer}.path-row.selected{background:#4a4a4a}.path-row svg{width:34px;height:26px;flex-shrink:0;background:#e8e8e8;border:1px solid #aaa}.path-row svg path{fill:none;stroke:#1d1d1d;stroke-width:1.3}.path-row .name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.path-row small{color:#999}.empty-note{margin:0;padding:9px 12px;color:#888;font-size:12px}@media(max-width:720px){.paths-panel{display:none}}
.report{margin:0;padding-left:20px;max-height:40dvh;overflow:auto;color:#ccc;font-size:13px;line-height:1.7}
.menu{max-height:calc(100dvh - 60px);overflow-y:auto}
@media(max-width:720px){.menu{position:fixed;left:8px;right:8px;top:44px;min-width:0}.panels{width:150px}.layer-actions{flex-wrap:wrap;justify-content:center}.layer-actions button{padding:4px 5px}.document-tab #document-info{display:none}}
.layer-actions{flex-wrap:wrap}
