.graphics-page.full-editor{grid-template-columns:155px 265px minmax(0,1fr)}.full-editor .editor{padding:20px 15px}.full-editor .preview{padding:0 18px 24px}.editor-shell{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px;padding-top:18px}.preset-strip{grid-column:1/-1;display:flex;gap:8px;overflow:auto;padding:0 0 15px;border-bottom:1px solid var(--line)}.preset-strip button{flex:0 0 auto;padding:10px 12px;font-size:13px;text-align:left;display:flex;gap:9px;align-items:center}.preset-strip button.active{border-color:var(--accent);background:var(--panel)}.preset-strip small{display:block;color:var(--muted);font-size:11px}.editor-canvas-column{min-width:0}.tool-bar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;background:var(--panel);border:1px solid var(--line);padding:7px;border-radius:6px;margin-bottom:18px}.tool-bar button{border:0;padding:7px;background:none;display:grid;place-items:center}.tool-bar button.active{background:var(--bg);color:var(--accent)}.tool-bar .spacer{width:1px;height:25px;background:var(--line);margin:0 6px}.tool-bar svg,.icon-button svg{width:19px;height:19px}.tool-bar input{width:62px!important;padding:4px!important;font-size:13px}.tool-bar label{font-size:12px;font-weight:400}.canvas-caption{text-align:center;font-size:12px;color:var(--muted);margin:0 0 15px}.canvas-viewport{overflow:auto;max-height:70vh;padding:15px 10px;min-height:300px;background:var(--bg)}.canvas-art{margin:auto;min-width:0;box-shadow:0 8px 22px #0001;background-color:#fff;background-image:linear-gradient(45deg,#e5e8e9 25%,transparent 25%),linear-gradient(-45deg,#e5e8e9 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e5e8e9 75%),linear-gradient(-45deg,transparent 75%,#e5e8e9 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0;overflow:hidden}.canvas-art svg{display:block;width:100%;height:auto;touch-action:none;user-select:none}.canvas-art [data-layer]{cursor:move}.canvas-art [data-handle=rotate]{cursor:crosshair}.canvas-art [data-handle=resize]{cursor:nwse-resize}.inspector{background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:18px;align-self:start;min-width:0}.inspector h2{margin-bottom:16px}.inspector .field{margin-bottom:13px}.inspector input,.inspector select{font-size:13px;padding:8px}.inspector label{font-size:13px}.inspector input[type=checkbox]{width:17px;height:17px}.inspector input[type=color]{width:38px;height:32px;padding:0;border:0}.inspector .checkline{display:flex;gap:8px;align-items:center;margin:10px 0 17px;font-size:13px}.inspector details{border-top:1px solid var(--line);padding:13px 0}.inspector summary{cursor:pointer;font-size:14px;margin-bottom:10px}.inspector .palette-dots{margin-bottom:10px}.editor-elements-tabs{display:flex;gap:3px;border-bottom:1px solid var(--line);margin-bottom:16px;padding-bottom:8px}.editor-elements-tabs button{flex:1;font-size:12px;border:0;background:none;padding:8px 3px}.editor-elements-tabs button.active{background:var(--bg);color:var(--accent)}.element-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:420px;overflow:auto;margin:15px 0}.element-library button{background:var(--bg);height:68px;padding:10px;border:0;border-radius:6px}.element-library svg{display:block;width:100%;height:100%;color:var(--accent)}.editor-files{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:15px}.editor-files button{height:90px;padding:7px;overflow:hidden}.editor-files img{display:block;width:100%;height:100%;object-fit:contain}.small-label{font-size:12px;color:var(--muted)}.tool-control{margin-bottom:16px}.tool-control label{display:flex;justify-content:space-between;font-size:13px;margin-bottom:8px}.tool-control input[type=range]{padding:0;width:100%}.brush-tools{display:flex;gap:8px;margin:16px 0}.brush-tools button{flex:1;font-size:12px;padding:8px}.brush-tools button.active{border-color:var(--accent)}.layer-section{border-top:1px solid var(--line);padding-top:15px;margin-top:20px}.layer-section h2{font-size:14px}.layer-section .layer-row{margin-bottom:5px}.layer-row svg{width:15px;height:15px}.preset-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.preset-card{padding:22px;text-align:left;min-height:145px;display:flex;flex-direction:column;justify-content:space-between;gap:10px}.preset-card svg{width:24px;height:24px;color:var(--accent)}.preset-card small{font-size:12px;color:var(--muted)}.preset-card strong{font-size:15px}.format-dialog{width:min(520px,92vw)}.format-dialog .dialog-title{margin-bottom:20px}.kit-badge{font-size:12px;color:var(--accent);margin:10px 0}.kit-card .gallery-preview{height:200px}.kit-card .gallery-content{padding:16px}.kit-card .small-label{display:block;margin:5px 0 12px}.key-actions{display:flex;gap:7px;margin:14px 0}.key-actions button{flex:1;font-size:12px;padding:7px}.mobile-props-button{display:none}.full-editor .preview .preview-note{display:none}.canvas-empty{border:1px dashed var(--line);padding:50px 20px;text-align:center;color:var(--muted)}.editor-footer-actions{display:grid;gap:8px;margin-top:15px}.brush-preview{width:100%;height:35px;display:grid;place-items:center;margin:10px 0}.brush-preview i{border-radius:50%;background:var(--accent)}.icon-button{display:inline-grid;place-items:center;padding:6px}.library-meta{display:flex;justify-content:space-between;align-items:center;gap:5px}.hint-line{font-size:12px;color:var(--muted);margin:10px 0}.selected-item{outline:2px solid var(--accent);outline-offset:-2px}.layout-summary{font-size:14px;color:var(--muted);margin-bottom:20px}@media(max-width:1400px){.graphics-page.full-editor{grid-template-columns:140px 230px minmax(0,1fr)}.editor-shell{grid-template-columns:minmax(0,1fr) 240px;gap:12px}.inspector{padding:14px}.full-editor .preview{padding:0 12px 20px}}@media(max-width:1180px){.editor-shell{grid-template-columns:minmax(0,1fr)}.inspector{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.inspector>h2,.inspector>.editor-footer-actions,.inspector>.help,.inspector>.kit-badge{grid-column:1/-1}.preset-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.canvas-viewport{max-height:65vh}}@media(max-width:760px){.graphics-page.full-editor{display:flex}.full-editor .preview{padding:0 12px 20px}.editor-shell{padding-top:10px}.preset-strip button{padding:8px;font-size:12px}.preset-strip{gap:6px}.inspector{display:block}.canvas-viewport{max-height:65vh;min-height:200px;padding:12px 0}.preset-gallery{grid-template-columns:1fr 1fr}.preset-card{padding:15px;min-height:135px}.tool-bar{gap:2px}.tool-bar button{padding:6px}.element-library{grid-template-columns:repeat(4,minmax(0,1fr))}.editor-files{grid-template-columns:repeat(3,minmax(0,1fr))}.full-editor .editor{padding:18px}.full-editor .mobile-toggle{position:sticky;top:0;background:var(--bg);z-index:4}.graphics-page .canvas-art{min-width:0}.preset-strip{grid-column:auto}}

/* Let each left-hand panel fit its content without overflowing its grid track. */
.graphics-page.full-editor{grid-template-columns:clamp(165px,14vw,190px) clamp(250px,22vw,290px) minmax(0,1fr)}
.full-editor aside,.full-editor nav,.full-editor .editor,.full-editor .field,.full-editor .layer-section{min-width:0;max-width:100%}
.full-editor .projectname,.full-editor .projectmeta,.full-editor .area-heading,.full-editor .editor p,.full-editor .editor h2,.full-editor .editor label{overflow-wrap:anywhere}
.full-editor nav button{display:block;width:100%;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.full-editor .editor input,.full-editor .editor select,.full-editor .editor textarea{min-width:0;max-width:100%;font-size:14px}
.full-editor .editor-elements-tabs button{min-width:0;font-size:14px;white-space:normal;overflow-wrap:anywhere}
.full-editor .library-meta,.full-editor .tool-control label{flex-wrap:wrap;gap:6px}
.full-editor .brush-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.full-editor .brush-tools button{min-width:0;font-size:14px;white-space:normal;overflow-wrap:anywhere}
.full-editor .key-actions{flex-wrap:wrap}
.full-editor .key-actions button{min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:14px}
.full-editor .layer-row{grid-template-columns:minmax(0,1fr) 32px 32px;gap:5px;padding:8px;border:1px solid var(--line);border-radius:6px;margin-bottom:10px}
.full-editor .layer-row>button:first-child{min-width:0;max-width:100%;font-size:14px}
.full-editor .layer-row>button:not(:first-child){display:grid;place-items:center;min-width:0}
.full-editor .layer-order{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px;gap:5px}
.full-editor .layer-order button{min-width:0;padding:6px;font-size:14px}
.full-editor .layer-order .delete-btn{display:grid;place-items:center}
.full-editor .layer-order button:disabled{opacity:.4;cursor:default}
@media(max-width:1050px) and (min-width:761px){.graphics-page.full-editor{grid-template-columns:165px 250px minmax(0,1fr)}}
