/* QRCodeBox editor prototype — isolated modern shell */
body:not(.intro-active){overflow:hidden;background:#121416;color:#d9dee1;font-family:'DM Sans',Arial,sans-serif;}
body:not(.intro-active) #topRule,body:not(.intro-active) #topRule2,body:not(.intro-active) #bottomRule,body:not(.intro-active) #editor{box-sizing:border-box;}
.editor-appbar{position:absolute!important;z-index:80!important;inset:0 0 auto!important;width:auto!important;height:60px!important;display:flex;align-items:center;padding:0 22px;background:#111315!important;background-image:none!important;border-bottom:1px solid #303438;box-shadow:0 8px 24px rgba(0,0,0,.24);}
.editor-home{display:flex;align-items:center;width:132px;height:38px;padding:0;border:0;background:transparent;cursor:pointer;}
.editor-home img{display:block;max-width:116px;max-height:36px;object-fit:contain;}
.editor-home .qrbox-vector-logo{width:104px;height:38px;}
.editor-app-title{display:flex;align-items:baseline;gap:13px;padding-left:18px;border-left:1px solid #34393d;color:#e6eaec;letter-spacing:.1em;margin-right:auto;}
.editor-app-title strong{font:650 11px 'Space Grotesk',Arial,sans-serif;}
.editor-app-title span{color:#68747b;font:550 9px 'Space Grotesk',Arial,sans-serif;letter-spacing:.16em;}
.editor-app-state{display:flex;align-items:center;gap:8px;margin-left:auto;color:#89959b;font:550 9px 'Space Grotesk',Arial,sans-serif;letter-spacing:.14em;}
.editor-app-state i{width:6px;height:6px;background:#cbd2d6;box-shadow:0 0 10px rgba(219,227,231,.55);}
.editor-app-state.is-busy i{animation:editorStatusPulse 1s ease-in-out infinite;}
.editor-feedback{margin-left:22px;padding-left:22px;border-left:1px solid #34393d;color:#87939a;text-decoration:none;font:600 9px 'Space Grotesk',Arial,sans-serif;letter-spacing:.14em;}
.editor-feedback:hover{color:#fff;}
.qrcb-auth-action{height:27px;padding:0 12px;border:1px solid rgba(220,227,230,.35);background:transparent;color:#dce3e6;white-space:nowrap;cursor:pointer;font:650 8px 'Space Grotesk',Arial,sans-serif;letter-spacing:.11em;text-transform:uppercase;display:inline-flex;align-items:center;justify-content:center;gap:7px;}
.qrcb-auth-action:hover{border-color:#dce3e6;background:rgba(220,227,230,.08);color:#fff;}
.qrcb-auth-action.is-authenticated{border-color:rgba(115,151,132,.55);color:#b9d6c7;}
.qrcb-auth-icon{width:14px;height:14px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.qrcb-auth-label-compact{display:none;}
.qrcb-logout-action[hidden]{display:none!important;}
.qrcb-logout-action{width:27px;height:27px;margin-left:4px;padding:0;border:1px solid rgba(220,227,230,.25);background:transparent;color:#89969c;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;}
.qrcb-logout-action:hover{border-color:#dce3e6;background:rgba(220,227,230,.08);color:#fff;}
.qrcb-logout-icon,.editor-exit-icon{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.editor-exit-icon{display:none;}
.intro-auth-action{margin-left:12px;z-index:4;}
.editor-auth-action{margin-left:10px;max-width:280px;overflow:hidden;text-overflow:ellipsis;}
.editor-tooldeck{position:absolute!important;z-index:60!important;top:60px!important;right:0!important;left:0!important;width:auto!important;height:174px!important;background:#191c1f!important;background-image:none!important;border-bottom:1px solid #353a3e;box-shadow:0 18px 36px rgba(0,0,0,.24);overflow:visible;}
.editor-tooldeck-bar{height:34px;display:flex;align-items:center;padding:0 18px;border-bottom:1px solid #2d3236;color:#707d84;font:600 8px 'Space Grotesk',Arial,sans-serif;letter-spacing:.16em;}
.editor-module-tabs{display:none;}
.editor-layout-reset{margin-left:auto;border:0;background:transparent;color:#6f7b81;cursor:pointer;font:600 8px 'Space Grotesk',Arial,sans-serif;letter-spacing:.12em;}
.editor-layout-reset:hover{color:#fff;}
.editor-modules{display:block!important;width:100%!important;height:140px!important;margin:0!important;border:0!important;}
.editor-modules>tbody{display:block;height:100%;}
.editor-modules-row{display:flex!important;align-items:stretch;justify-content:center;gap:6px;height:100%;padding:7px 10px;box-sizing:border-box;}
.editor-modules-row>.editor-zoom-legacy{display:none!important;}
.editor-module{position:relative;display:block!important;height:126px;padding:0 10px!important;background:#202428;border:1px solid #343a3f;border-top-color:#434a4f;border-radius:2px;box-sizing:border-box;text-align:left;vertical-align:top;box-shadow:0 5px 15px rgba(0,0,0,.16);}
.editor-module[data-module="content"]{width:226px;}
.editor-module[data-module="modules"]{width:142px;}
.editor-module[data-module="blending"]{width:178px!important;}
.editor-module[data-module="color"]{width:154px;}
.editor-module[data-module="structure"]{width:184px;}
.editor-module[data-module="advanced"]{width:204px;}
.editor-module>h4{height:27px;display:flex;align-items:center;margin:0 -10px 5px!important;padding:0 9px;border-bottom:1px solid #343a3f;color:#cbd2d6!important;cursor:grab;font:650 9px 'Space Grotesk',Arial,sans-serif!important;letter-spacing:.1em;user-select:none;}
.editor-module>h4:active{cursor:grabbing;}
.editor-module>h4>span{margin-right:8px;color:#66747b;font-size:8px;}
.editor-module>h4>small{margin-left:auto;color:#59656b;font-size:11px;letter-spacing:-.2em;}
.editor-module.ui-draggable-dragging{z-index:120!important;box-shadow:0 22px 48px rgba(0,0,0,.55);}
.editor-module .toolsBox{height:88px;}
.editor-module .toolsTable{width:100%!important;color:#aeb8bd;font:500 9px 'DM Sans',Arial,sans-serif!important;}
.editor-module .toolsTable tr{height:20px!important;}
.editor-module .toolsTitleCell{padding-right:7px!important;color:#919da3;text-align:right;white-space:nowrap;}
.editor-module .tools3rdCell{padding-left:7px!important;}
.editor-module input[type=text],.editor-module textarea,.editor-module select{box-sizing:border-box;border:1px solid #42494e!important;border-radius:1px;background:#15181b!important;color:#e2e6e8!important;outline:none;font:500 10px 'DM Sans',Arial,sans-serif!important;}
.editor-module input[type=text]:focus,.editor-module textarea:focus,.editor-module select:focus{border-color:#8f9ba1!important;box-shadow:0 0 0 1px rgba(197,207,212,.18);}
.editor-module input[type=text]{height:20px!important;padding:2px 4px;}
.editor-module textarea#text{width:100%!important;height:52px!important;padding:7px 8px!important;resize:none!important;line-height:1.25;}
.editor-module input[type=button],.editor-module button{min-height:22px;border:1px solid #4b5358;background:#292e32;color:#d8dde0;cursor:pointer;font:600 9px 'DM Sans',Arial,sans-serif;}
.editor-module input[type=button]:hover,.editor-module button:hover{background:#343a3e;}
.editor-module input[type=checkbox]{accent-color:#cbd2d6;}
.editor-module .ui-slider{height:3px!important;border:0!important;border-radius:0!important;background:#454d52!important;}
.editor-module .ui-slider-handle{top:-5px!important;width:12px!important;height:12px!important;border:1px solid #c3cbd0!important;border-radius:50%!important;background:#dfe4e6!important;cursor:ew-resize;}
.editor-module .toolsLabel2{color:#66747b!important;}
.editor-module .sel-box{margin:0!important;}
.editor-module .sel-box-select{box-sizing:border-box;border:1px solid #495157!important;background:#171a1d!important;}
.editor-module .toc-odd{z-index:180!important;background:#1d2124!important;border:1px solid #4c555a!important;color:#cbd2d6!important;box-shadow:0 18px 36px rgba(0,0,0,.5);}
.editor-module .toc-odd li{border-bottom:1px solid #343a3e!important;}
.editor-module .toc-odd li:hover{background:#30363a;}
.editor-module .colorwheel{filter:saturate(.78) brightness(.92);}
.editor-tooldeck.disableClicks{pointer-events:none;}
.editor-tooldeck.disableClicks .editor-module{opacity:.38;filter:saturate(.25);}
body:not(.intro-active) #editor{top:234px!important;bottom:44px!important;overflow:hidden;background:#2a2d30!important;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px)!important;background-size:32px 32px!important;scrollbar-color:#59636a #1b1e21;}
body:not(.intro-active) #editorzoomable{position:relative!important;width:max-content!important;min-width:100%!important;height:max-content!important;min-height:100%!important;margin:0!important;border:0!important;transform:none!important;background-color:#292c2f!important;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px)!important;background-size:32px 32px!important;}
.editor-zoom-controls{position:fixed;z-index:48;right:18px;bottom:58px;display:none;align-items:center;height:32px;border:1px solid #485158;background:rgba(18,21,23,.94);box-shadow:0 9px 24px rgba(0,0,0,.38);font-family:'Space Grotesk',Arial,sans-serif;}
body:not(.intro-active) .editor-zoom-controls{display:flex;}
.editor-zoom-controls button,.editor-zoom-controls output{display:flex;align-items:center;justify-content:center;height:30px;box-sizing:border-box;border:0;border-right:1px solid #3b4247;background:transparent;color:#c9d1d5;font:650 10px 'Space Grotesk',Arial,sans-serif;letter-spacing:.05em;}
.editor-zoom-controls button{min-width:32px;cursor:pointer;font-size:15px;}
.editor-zoom-controls button:hover{background:#30363a;color:#fff;}
.editor-zoom-controls output{min-width:54px;padding:0 8px;font-variant-numeric:tabular-nums;}
.editor-zoom-controls .editor-zoom-fit{min-width:48px;border-right:0;font-size:8px;letter-spacing:.1em;}
.editor-zoom-controls button:disabled{opacity:.32;cursor:default;}
#ImageContainer{background-size:100% 100%;background-repeat:no-repeat;}
body:not(.intro-active) #bottomRule{height:44px!important;background:#111315!important;background-image:none!important;border-top:1px solid #363b3f;}
body:not(.intro-active) #bottomRule>div:first-child{top:0!important;height:43px!important;display:flex;align-items:center;justify-content:center;background:#111315!important;background-image:none!important;}
body:not(.intro-active) #bottomRule>div:first-child img{filter:grayscale(1);opacity:.75;}
body:not(.intro-active) #bottomTable{position:absolute;right:14px;bottom:52px;width:auto!important;padding:10px;background:#16191c;border:1px solid #41484d;box-shadow:0 18px 40px rgba(0,0,0,.5);}
#InitialContainer{width:100%;font-weight:400!important;color:#dbe0e2!important;}
.editor-empty-state{width:min(820px,calc(100vw - 44px));margin:0 auto;padding:22px 24px;text-align:center;box-sizing:border-box;}
.editor-empty-kicker{margin:0 0 13px!important;color:#79868d;font:650 9px 'Space Grotesk',Arial,sans-serif!important;letter-spacing:.18em;}
.editor-empty-state h1{margin:0;color:#f0f3f4;font:600 clamp(31px,3.4vw,48px)/1 'Space Grotesk',Arial,sans-serif;letter-spacing:-.045em;}
.editor-empty-copy{max-width:560px;margin:16px auto 22px!important;color:#9ca8ae;font:500 14px/1.55 'DM Sans',Arial,sans-serif!important;}
.NOwebsocketsOnly.editor-upload-primary{display:none!important;}
.editor-upload-primary{width:min(470px,100%)!important;height:auto!important;min-height:92px;margin:0 auto!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px solid #737f85!important;background:rgba(18,20,22,.76)!important;color:#eef1f2!important;cursor:pointer;box-sizing:border-box;transition:border-color .2s ease,background .2s ease,transform .2s ease;}
.editor-upload-primary:hover{border-color:#dce2e5!important;background:#1d2124!important;transform:translateY(-2px);}
.editor-upload-primary strong{font:650 14px 'DM Sans',Arial,sans-serif;}
.editor-upload-primary span{color:#7e8a90;font:500 10px 'DM Sans',Arial,sans-serif;}
.editor-upload-primary form{display:flex;align-items:center;gap:8px;font-size:11px;}
.editor-classic-frame{display:none;width:0;height:0;border:0;}
.editor-example-heading{display:flex;align-items:center;gap:15px;width:min(690px,100%);margin:26px auto 13px;color:#6f7b81;font:600 8px 'Space Grotesk',Arial,sans-serif;letter-spacing:.16em;}
.editor-example-heading i{height:1px;flex:1;background:#41474b;}
.editor-example-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;width:min(690px,100%);margin:auto;}
.editor-example-grid button{position:relative;min-width:0;padding:5px 5px 26px;border:1px solid #444b50;background:#1b1e21;color:#aeb8bd;cursor:pointer;box-shadow:0 8px 18px rgba(0,0,0,.2);transition:border-color .2s ease,transform .2s ease;}
.editor-example-grid button:hover{border-color:#9aa6ac;transform:translateY(-3px);}
.editor-example-grid img{display:block;width:100%;height:70px;object-fit:cover;filter:saturate(.78) contrast(1.04);}
.editor-example-grid button span{position:absolute;right:6px;bottom:7px;left:6px;text-align:left;font:600 8px 'Space Grotesk',Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;}
#WaitContainer{color:#d9dfe2!important;font:600 18px/1.5 'Space Grotesk',Arial,sans-serif!important;}
#ImageContainer{border:1px solid #596167!important;box-shadow:0 22px 54px rgba(0,0,0,.45)!important;}
#QRcodeCanvas{outline:1px solid rgba(232,237,239,.72);box-shadow:0 0 0 1px rgba(0,0,0,.55),0 0 22px rgba(255,255,255,.08);}
#QRcodeInfo{font-family:'DM Sans',Arial,sans-serif!important;}
@keyframes editorStatusPulse{50%{opacity:.28;box-shadow:0 0 3px rgba(219,227,231,.2)}}
@media(min-width:1180px){#InitialContainer{transform:none;}}

@media(max-width:1179px){
 .editor-appbar{height:56px!important;padding:0 14px;}
 .editor-app-title{padding-left:12px;}
 .editor-feedback{margin-left:14px;padding-left:14px;}
 .editor-tooldeck{top:56px!important;height:50px!important;box-shadow:0 8px 22px rgba(0,0,0,.3);}
 .editor-tooldeck-bar{height:50px;padding:0 10px;}
 .editor-tooldeck-bar>span,.editor-layout-reset{display:none;}
 .editor-module-tabs{display:flex;min-width:0;width:100%;height:100%;overflow-x:auto;scrollbar-width:none;}
 .editor-module-tabs::-webkit-scrollbar{display:none;}
 .editor-module-tabs button{flex:1 0 auto;border:0;border-bottom:2px solid transparent;background:transparent;color:#758188;padding:0 12px;cursor:pointer;font:600 9px 'Space Grotesk',Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;}
 .editor-module-tabs button.is-active{border-bottom-color:#d9dfe2;color:#eef1f2;background:#202428;}
 .editor-modules{position:absolute;top:50px;right:0;left:0;height:0!important;overflow:visible;}
 .editor-modules-row{display:block!important;height:0;padding:0;}
 .editor-module{display:none!important;position:absolute!important;top:8px!important;right:10px!important;left:auto!important;width:340px!important;height:auto!important;min-height:126px;max-height:calc(100vh - 132px);overflow:visible;background:#1d2124;box-shadow:0 22px 50px rgba(0,0,0,.56);}
 .editor-module.is-active{display:block!important;}
 .editor-tooldeck.disableClicks .editor-module{display:none!important;}
 body:not(.intro-active) #editor{top:106px!important;bottom:42px!important;}
 body:not(.intro-active) #bottomRule{height:42px!important;}
 .editor-empty-state{padding-top:34px;}
}

@media(max-width:900px) and (min-width:641px){
 .editor-app-title{display:none;}
}
@media(max-width:640px){
 .editor-home{width:112px;}
 .editor-home img{max-width:104px;}
 .editor-feedback{display:none;}
 .editor-auth-action{max-width:118px;padding:0 8px;}
 .editor-app-title{display:none;}
 .editor-module-tabs button{padding:0 10px;font-size:8px;}
 .editor-module{position:fixed!important;z-index:160!important;right:8px!important;bottom:50px!important;left:8px!important;top:auto!important;width:auto!important;max-height:52vh;overflow:auto;border-color:#4a5257;}
 .editor-module>h4{position:sticky;top:0;z-index:2;background:#202428;}
 .editor-empty-state{width:min(100vw - 26px,560px);padding:24px 5px;}
 .editor-empty-state h1{font-size:32px;}
 .editor-empty-copy{margin:12px auto 17px!important;font-size:12px!important;}
 .editor-upload-primary{min-height:78px;}
 .editor-example-heading{margin-top:19px;}
 .editor-example-grid{grid-template-columns:repeat(2,1fr);gap:8px;}
 .editor-example-grid img{height:68px;}
 body:not(.intro-active) #bottomRule>div:first-child{justify-content:flex-start;padding-left:10px;overflow:hidden;white-space:nowrap;}
 .editor-zoom-controls{right:8px;bottom:50px;}
}
@media(prefers-reduced-motion:reduce){.editor-app-state.is-busy i,.editor-upload-primary,.editor-example-grid button{animation:none;transition:none;}}


/* V2 control internals */
.editor-module{overflow:visible;}
.editor-module.has-open-menu{z-index:260!important;}
.editor-module[data-module="modules"]{width:178px;}
.editor-module[data-module="structure"]{width:202px;}
.editor-module[data-module="advanced"]{width:222px;}
.editor-module .toolsBox{overflow:visible;}
.editor-module .toolsTable td{vertical-align:middle;}
.editor-module .toolsEditCell{min-width:54px;}
.editor-module .tools3rdCell{width:42px!important;min-width:42px;padding-left:6px!important;}
.editor-module input.numInd,.editor-module input.numInf{display:block;width:38px!important;min-width:38px;height:22px!important;padding:2px 5px!important;text-align:center;font-variant-numeric:tabular-nums;}
.editor-module .sel-box{z-index:1;width:122px!important;}
.editor-module .sel-box.is-open{z-index:280!important;}
.editor-module .sel-box-select{position:relative!important;display:flex!important;align-items:center;gap:7px;width:122px!important;height:30px!important;padding:2px 24px 2px 3px!important;overflow:hidden!important;border-radius:3px!important;background:#171a1d!important;color:#d6dde0!important;white-space:nowrap;font:550 9px 'DM Sans',Arial,sans-serif;box-shadow:inset 0 1px rgba(255,255,255,.025);}
.editor-module .sel-box-select:hover,.editor-module .sel-box-select[aria-expanded="true"]{border-color:#7f8b91!important;background:#24292d!important;}
.editor-module .sel-box-select:before{content:'';position:absolute;right:8px;top:11px;width:5px;height:5px;border-right:1px solid #9ba6ab;border-bottom:1px solid #9ba6ab;transform:rotate(45deg);}
.editor-module .sel-box-select:before{z-index:3;background:#171a1d;box-shadow:5px 0 0 5px #171a1d;}
.editor-module .sel-box-select[aria-expanded="true"]:before{top:13px;transform:rotate(225deg);}
.editor-module .sel-box-select img{flex:0 0 auto;width:24px!important;height:24px!important;object-fit:contain;}
.editor-module .sel-box[fieldName="cornersStyle"] .sel-box-select:after{content:'Finder';color:#d6dde0;}
.editor-module .toc-odd{position:absolute!important;left:128px!important;top:-6px!important;z-index:300!important;width:340px!important;max-height:276px!important;margin:0!important;padding:6px!important;overflow:auto!important;border-radius:4px!important;background:#191d20!important;box-shadow:0 24px 60px rgba(0,0,0,.72)!important;box-sizing:border-box;scrollbar-color:#5d676c #202428;}
.editor-module .toc-odd li{display:flex!important;align-items:center;min-height:34px;padding:3px 7px!important;border:0!important;border-radius:2px;color:#b8c2c7!important;box-sizing:border-box;font:500 9px 'DM Sans',Arial,sans-serif;white-space:nowrap;}
.editor-module .toc-odd li:hover,.editor-module .toc-odd li.current{background:#30363a!important;color:#f1f4f5!important;}
.editor-module .toc-odd li img{width:25px!important;height:25px!important;margin-right:7px;object-fit:contain;}
.editor-module .sel-box:is([fieldName="bitsStyle"],[fieldName="finderDotsStyle"]) .toc-odd{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;}
.editor-module .sel-box:is([fieldName="bitsStyle"],[fieldName="finderDotsStyle"]).is-open .toc-odd{display:grid!important;}
.editor-module .sel-box[fieldName="cornersStyle"] .toc-odd{display:none;grid-template-columns:repeat(4,52px);gap:5px;width:244px!important;}
.editor-module .sel-box[fieldName="cornersStyle"].is-open .toc-odd{display:grid!important;}
.editor-module .sel-box[fieldName="cornersStyle"] .toc-odd li{justify-content:center;width:52px;height:52px;padding:1px!important;}
.editor-module .sel-box[fieldName="cornersStyle"] .toc-odd li img{width:48px!important;height:48px!important;margin:0;}
.editor-module .colorwheel{filter:saturate(.82) brightness(.96);isolation:isolate;}
.editor-module #CornersColor{width:66px!important;height:22px!important;text-align:center;font-variant-numeric:tabular-nums;}
@media(max-width:1179px){
 .editor-module[data-module]{width:360px!important;max-width:calc(100vw - 20px);}
 .editor-module .toc-odd{left:auto!important;right:0!important;max-width:calc(100vw - 40px);}
}
@media(max-width:640px){
 .editor-module .sel-box:is([fieldName="bitsStyle"],[fieldName="finderDotsStyle"]) .toc-odd{position:fixed!important;right:8px!important;bottom:102px!important;left:8px!important;top:auto!important;width:auto!important;max-width:none!important;max-height:44vh!important;}
 .editor-module .sel-box[fieldName="cornersStyle"] .toc-odd{position:fixed!important;right:8px!important;bottom:102px!important;left:8px!important;top:auto!important;width:auto!important;max-width:none!important;}
}


/* Containment pass: Modules + Color only */
.editor-module[data-module="modules"] .toolsTable{table-layout:fixed;}
.editor-module[data-module="modules"] .toolsTitleCell{width:42px!important;padding-right:6px!important;}
.editor-module[data-module="modules"] .sel-box{position:relative!important;left:auto!important;top:auto!important;width:104px!important;}
.editor-module[data-module="modules"] .sel-box-select{width:104px!important;}

/* File menu */
.editor-file-menu{position:relative;display:flex;align-items:center;margin-left:14px;z-index:40;}
.editor-file-trigger{height:27px;padding:0 10px;border:1px solid #343b40;background:#15191c;color:#cbd2d6;font:650 9px 'Space Grotesk',Arial,sans-serif;letter-spacing:.13em;cursor:pointer;}
.editor-file-trigger span{margin-left:5px;color:#87939a;}
.editor-file-popover{display:none;position:absolute;left:0;top:31px;width:190px;padding:6px;background:#171b1e;border:1px solid #3b4449;box-shadow:0 10px 26px rgba(0,0,0,.42);}
.editor-file-menu.is-open .editor-file-popover{display:block;}
.editor-upload-action,.editor-restart-action{width:100%;padding:9px 10px;text-align:left;border:0;background:transparent;color:#dce2e5;font:650 9px 'Space Grotesk',Arial,sans-serif;letter-spacing:.08em;cursor:pointer;}
.editor-upload-action:hover,.editor-restart-action:hover{background:#262c30;}
.editor-restart-action{border-top:1px solid #30373b;color:#aeb8bd;}
.editor-advanced-content{height:24px;padding:0 10px;border:1px solid #465057;background:#1a1f22;color:#e2e7e9;font:650 9px 'Space Grotesk',Arial,sans-serif;letter-spacing:.06em;cursor:pointer;}
.editor-advanced-content:hover{border-color:#859199;background:#252b2f;}

/* Structured QR payload dialog */
.advanced-content-dialog{display:none;position:fixed;inset:0;z-index:10000;}
.advanced-content-dialog.is-open{display:block;}
.advanced-content-backdrop{position:absolute;inset:0;background:rgba(5,7,8,.76);backdrop-filter:blur(3px);}
.advanced-content-panel{position:absolute;left:50%;top:50%;width:min(520px,calc(100vw - 28px));max-height:calc(100vh - 36px);overflow:auto;transform:translate(-50%,-50%);box-sizing:border-box;padding:20px;background:#181d20;border:1px solid #465158;color:#dbe1e4;box-shadow:0 28px 80px rgba(0,0,0,.6);font-family:'DM Sans',Arial,sans-serif;}
.advanced-content-panel header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px;padding-bottom:13px;border-bottom:1px solid #31393e;}
.advanced-content-panel header small{color:#7f929c;font:650 8px 'Space Grotesk',Arial,sans-serif;letter-spacing:.18em;}
.advanced-content-panel h2{margin:4px 0 0;color:#f0f3f4;font:600 21px 'Space Grotesk',Arial,sans-serif;}
.advanced-content-panel header button{border:0;background:transparent;color:#aab5ba;font-size:22px;cursor:pointer;}
.advanced-content-panel label{display:block;margin:0 0 12px;color:#9eabb1;font-size:10px;letter-spacing:.04em;}
.advanced-content-panel input,.advanced-content-panel textarea,.advanced-content-panel select{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:9px 10px;border:1px solid #424c52;background:#111517;color:#e5eaec;font:500 12px 'DM Sans',Arial,sans-serif;outline:none;}
.advanced-content-panel input:focus,.advanced-content-panel textarea:focus,.advanced-content-panel select:focus{border-color:#91a0a7;}
.advanced-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.advanced-content-panel footer{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid #31393e;}
.advanced-content-panel footer button{padding:9px 13px;border:1px solid #444e53;background:#1c2225;color:#bac4c8;font:650 9px 'Space Grotesk',Arial,sans-serif;letter-spacing:.08em;cursor:pointer;}
.advanced-content-panel footer .is-primary{background:#dfe5e7;color:#111517;border-color:#dfe5e7;}

/* Continuous language and product navigation */
.editor-languages{display:flex;align-items:center;gap:2px;margin-left:auto;margin-right:12px;}
.editor-languages button,.editor-exit{height:25px;padding:0 7px;border:0;background:transparent;color:#758188;font:650 8px 'Space Grotesk',Arial,sans-serif;letter-spacing:.12em;cursor:pointer;}
.editor-languages button.is-active{color:#eef2f3;background:#252b2f;}
.editor-exit{padding:0 10px;border-left:1px solid #343b40;border-right:1px solid #343b40;color:#aeb9be;}
.editor-feedback{margin-left:10px!important;}
.editor-lc2-credit{position:absolute;z-index:2;right:20px;top:15px;color:#758188;text-decoration:none;font:650 8px 'Space Grotesk',Arial,sans-serif;letter-spacing:.12em;}
.editor-lc2-credit:hover{color:#d8dfe2;}

/* Give the densest module enough breathing room */
.editor-modules{height:152px!important;}
.editor-module{height:138px;}
.editor-module .toolsBox{height:100px;}
.editor-module[data-module="advanced"]{width:220px;}
.editor-module[data-module="modules"] .toc-odd{left:110px!important;}
.editor-module[data-module="color"]{overflow:hidden;}
.editor-module[data-module="color"] .toolsBox,.editor-module[data-module="color"] .toolsTable{overflow:hidden;}
.editor-module[data-module="color"] .colorwheel{left:auto!important;right:7px!important;top:-17px!important;width:64px!important;height:64px!important;}
.editor-module[data-module="color"] #CornersColor{width:58px!important;min-width:58px!important;}


/* Four-channel contextual color editor */
.editor-module[data-module="color"]{overflow:visible;width:176px;}
.editor-module[data-module="color"] .color-module-body{position:relative;height:88px;overflow:visible;}
.color-channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;}
.color-channel{display:flex!important;align-items:center;gap:6px;width:100%;height:38px!important;min-height:38px!important;padding:4px 5px!important;border:1px solid #3d454a!important;border-radius:3px!important;background:#191c1f!important;text-align:left;}
.color-channel:hover,.color-channel.is-active{border-color:#89959b!important;background:#282d31!important;}
.color-channel i{display:block;flex:0 0 22px;width:22px;height:22px;border:1px solid rgba(255,255,255,.28);border-radius:3px;background:var(--swatch);box-shadow:inset 0 0 0 1px rgba(0,0,0,.28);}
.color-channel span{display:flex;min-width:0;flex-direction:column;color:#d8dee1;font:600 8px/1.05 'DM Sans',Arial,sans-serif;text-transform:uppercase;letter-spacing:.03em;}
.color-channel small{margin-top:3px;color:#76838a;font:600 7px/1 'DM Sans',Arial,sans-serif;letter-spacing:.08em;}
.color-picker-popover{position:absolute;z-index:340;top:96px;right:0;display:none;width:152px;padding:8px;border:1px solid #59636a;border-radius:4px;background:#191d20;box-sizing:border-box;box-shadow:0 26px 65px rgba(0,0,0,.72);}
.color-picker-popover.is-open{display:block;}
.color-picker-head{display:flex;align-items:center;justify-content:space-between;height:20px;margin-bottom:5px;color:#dce2e5;font:650 8px 'Space Grotesk',Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;}
.color-picker-head button{width:20px;min-height:20px!important;height:20px;padding:0!important;border:0!important;background:transparent!important;color:#8f9ba1;font-size:16px!important;line-height:18px!important;}
.color-picker-popover .colorwheel{position:relative!important;inset:auto!important;width:96px!important;height:96px!important;margin:0 auto;filter:saturate(.86) brightness(.98);}
.color-hex-field{display:flex;align-items:center;gap:7px;margin-top:7px;color:#77848b;font:650 7px 'Space Grotesk',Arial,sans-serif;letter-spacing:.1em;}
.color-hex-field input{width:92px!important;min-width:92px;height:24px!important;padding:3px 6px!important;text-align:center;font-variant-numeric:tabular-nums;}
.color-picker-popover p{margin:7px 0 0!important;color:#6f7b81;font:500 7px/1.35 'DM Sans',Arial,sans-serif!important;}
.editor-module[data-module="color"].has-color-picker{z-index:330!important;}
@media(max-width:1179px){
 .editor-module[data-module="color"]{width:360px!important;}
 .color-channel-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
 .color-picker-popover{top:52px;right:0;}
}
@media(max-width:640px){
 .color-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
 .color-picker-popover{position:fixed;right:8px;bottom:102px;left:8px;top:auto;width:auto;}
}


/* Color picker finishing controls */
.color-picker-popover{width:160px;}
.color-picker-head{gap:6px;}
.color-picker-head>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.color-picker-actions{display:flex;align-items:center;gap:2px;flex:0 0 auto;}
.color-picker-head .color-picker-actions button{display:grid;place-items:center;width:22px;height:22px;min-height:22px!important;padding:0!important;border:1px solid transparent!important;border-radius:2px!important;background:transparent!important;color:#8f9ba1!important;font:500 15px/1 Arial,sans-serif!important;}
.color-picker-head .color-picker-actions button:hover{border-color:#4d575d!important;background:#2b3034!important;color:#edf1f2!important;}
.color-picker-head .color-picker-actions button:disabled{opacity:.28;cursor:not-allowed;}
.color-picker-actions svg{width:13px;height:13px;fill:currentColor;}
.color-picker-popover .colorwheel{margin:4px auto 12px!important;}
.color-hex-field{margin-top:0!important;}

.editor-module[data-module="color"] .color-picker-popover .colorwheel{position:relative!important;inset:auto!important;width:96px!important;height:96px!important;margin:4px auto 12px!important;}

#ImageContainer.is-color-sampling{cursor:crosshair!important;outline:2px solid rgba(225,232,235,.78)!important;outline-offset:4px;}
#ImageContainer.is-color-sampling *{cursor:crosshair!important;}

/* QR geometry validation */
#QRcodeCanvas.is-out-of-bounds {
  border-color: #e46b6b !important;
  box-shadow: 0 0 0 1px rgba(228, 107, 107, .58), 0 0 28px rgba(228, 107, 107, .18);
}

#QRcodeCanvas.is-out-of-bounds::after {
  content: "OUTSIDE ARTWORK";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  padding: 5px 8px;
  border: 1px solid rgba(228, 107, 107, .72);
  background: rgba(25, 14, 16, .9);
  color: #ffb1b1;
  font: 700 9px/1.1 var(--editor-mono, monospace);
  letter-spacing: .12em;
  white-space: nowrap;
  pointer-events: none;
}

/* Direct QR resize */
#QRcodeCanvas .qr-resize-handle {
  position: absolute;
  z-index: 8;
  width: 13px;
  height: 13px;
  padding: 0;
  border: 1px solid rgba(223, 231, 235, .92);
  border-radius: 2px;
  background: #111619;
  box-shadow: 0 0 0 2px rgba(10, 14, 16, .7);
  opacity: 0;
  transition: opacity .16s ease, background .16s ease, transform .16s ease;
  touch-action: none;
}
#QRcodeCanvas:hover .qr-resize-handle,
#QRcodeCanvas.is-resizing .qr-resize-handle,
#QRcodeCanvas:focus-within .qr-resize-handle { opacity: 1; }
#QRcodeCanvas .qr-resize-handle:hover,
#QRcodeCanvas .qr-resize-handle:focus-visible {
  background: #dfe7eb;
  outline: none;
  transform: scale(1.12);
}
#QRcodeCanvas .qr-resize-nw { top: -7px; left: -7px; cursor: nwse-resize; }
#QRcodeCanvas .qr-resize-ne { top: -7px; right: -7px; cursor: nesw-resize; }
#QRcodeCanvas .qr-resize-sw { bottom: -7px; left: -7px; cursor: nesw-resize; }
#QRcodeCanvas .qr-resize-se { bottom: -7px; right: -7px; cursor: nwse-resize; }
#QRcodeCanvas.is-resizing { user-select: none; }
@media (pointer: coarse) {
  #QRcodeCanvas .qr-resize-handle { width: 20px; height: 20px; opacity: .9; }
  #QRcodeCanvas .qr-resize-nw { top: -10px; left: -10px; }
  #QRcodeCanvas .qr-resize-ne { top: -10px; right: -10px; }
  #QRcodeCanvas .qr-resize-sw { bottom: -10px; left: -10px; }
  #QRcodeCanvas .qr-resize-se { bottom: -10px; right: -10px; }
}

/* Direct QR rotation */
#QRcodeCanvas .qr-rotation-outline {
  position: absolute;
  inset: 0;
  z-index: 6;
  border: 1px solid rgba(223, 231, 235, .72);
  pointer-events: none;
  transform-origin: 50% 50%;
}
#QRcodeCanvas .qr-rotate-handle {
  position: absolute;
  top: -43px;
  left: 50%;
  z-index: 10;
  width: 17px;
  height: 17px;
  padding: 0;
  transform: translateX(-50%);
  border: 1px solid rgba(223, 231, 235, .95);
  border-radius: 50%;
  background: #111619;
  box-shadow: 0 0 0 2px rgba(10, 14, 16, .72);
  cursor: grab;
  opacity: 0;
  transition: opacity .16s ease, background .16s ease;
  touch-action: none;
}
#QRcodeCanvas .qr-rotate-handle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  width: 1px;
  height: 25px;
  background: rgba(223, 231, 235, .62);
}
#QRcodeCanvas .qr-rotate-handle span {
  position: absolute;
  left: 24px;
  top: -3px;
  min-width: 34px;
  padding: 3px 5px;
  border: 1px solid rgba(223, 231, 235, .24);
  background: rgba(14, 18, 20, .92);
  color: #dfe7eb;
  font: 700 9px/1 var(--editor-mono, monospace);
  letter-spacing: .06em;
  pointer-events: none;
}
#QRcodeCanvas:hover .qr-rotate-handle,
#QRcodeCanvas.is-rotating .qr-rotate-handle,
#QRcodeCanvas:focus-within .qr-rotate-handle { opacity: 1; }
#QRcodeCanvas .qr-rotate-handle:hover,
#QRcodeCanvas .qr-rotate-handle:focus-visible { background: #dfe7eb; outline: none; }
#QRcodeCanvas.is-rotating .qr-rotate-handle { cursor: grabbing; }
#QRcodeCanvasImage, #QRcodeInfo, #TrappedLoader { transform-origin: 50% 50%; }
@media (pointer: coarse) {
  #QRcodeCanvas .qr-rotate-handle { top: -52px; width: 24px; height: 24px; opacity: .9; }
  #QRcodeCanvas .qr-rotate-handle::after { top: 23px; height: 28px; }
}

/* Compact advanced rendering controls */
.editor-module[data-module="advanced"] .toolsBox { height: 92px; }
.editor-module[data-module="advanced"] .toolsTable tr { height: 18px!important; }
.editor-module[data-module="advanced"] input[type=text],
.editor-module[data-module="advanced"] select { height: 19px!important; min-height: 19px; }
.editor-module[data-module="advanced"] .ui-slider-handle { top: -4px!important; width: 11px!important; height: 11px!important; }
.editor-module[data-module="advanced"] .toolsBox { height: 104px; padding-top: 3px; }
.editor-module[data-module="advanced"] .toolsTable tr { height: 20px!important; }

/* Desktop tool deck: remove the unused strip and contain every control */
@media (min-width:901px){
  .editor-tooldeck{height:168px!important;}
  .editor-tooldeck-bar{display:none!important;}
  .editor-modules{height:168px!important;}
  .editor-modules-row{height:168px!important;}
  .editor-module{height:154px!important;}
  .editor-module .toolsBox{height:116px;}
  .editor-module[data-module="advanced"] .toolsBox{height:116px;}
  body:not(.intro-active) #editor{top:228px!important;}
}


/* Polished file actions: exports belong to FILE, never below the footer. */
.editor-file-popover .editor-file-exports{margin:5px -1px;padding:5px 1px;border-top:1px solid #30373b;border-bottom:1px solid #30373b;}
.editor-file-popover button,.editor-file-popover a{box-sizing:border-box;display:block;width:100%;padding:8px 9px;border:0;background:transparent;color:#cbd2d6;text-align:left;text-decoration:none;font:650 9px 'Space Grotesk',Arial,sans-serif;letter-spacing:.08em;cursor:pointer;}
.editor-file-popover button:hover,.editor-file-popover a:hover{background:#252b2f;color:#fff;}
.editor-file-popover button:disabled{opacity:.45;cursor:wait;}

/* One reusable central progress surface for upload, server processing and full-size export. */
.editor-busy{position:fixed;z-index:190;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;pointer-events:none;background:rgba(7,9,10,.16);transition:opacity .16s ease,visibility .16s ease;}
.editor-busy.is-visible{opacity:1;visibility:visible;pointer-events:auto;}
.editor-busy-card{width:290px;padding:16px 18px 15px;border:1px solid #4b555b;background:rgba(18,21,23,.97);box-shadow:0 20px 60px rgba(0,0,0,.5);font-family:'Space Grotesk',Arial,sans-serif;}
.editor-busy-card>span{display:block;margin-bottom:6px;color:#71818a;font:650 8px/1.2 'Space Grotesk',Arial,sans-serif;letter-spacing:.16em;}
.editor-busy-card>strong{display:block;color:#e2e8eb;font:600 12px/1.35 'DM Sans',Arial,sans-serif;}
.editor-busy-track{height:2px;margin-top:13px;overflow:hidden;background:#30373b;}
.editor-busy-track i{display:block;height:100%;width:38%;background:#e2e8eb;transform:translateX(-120%);animation:editorBusyIndeterminate 1.15s ease-in-out infinite;}
.editor-busy.is-determinate .editor-busy-track i{transform:none;animation:none;transition:width .08s linear;}
@keyframes editorBusyIndeterminate{0%{transform:translateX(-120%)}50%{transform:translateX(110%)}100%{transform:translateX(280%)}}

/* The workspace should use the available vertical space when the image fits. */
body:not(.intro-active) #editorzoomable{height:100%!important;}
body:not(.intro-active) #editorzoomable>table{min-width:100%;min-height:100%;}


/* Responsive smartphone polish — intentionally isolated from desktop. */
.editor-module-close{display:none;}

@media(max-width:640px){
  .editor-module{
    position:fixed!important;
    z-index:160!important;
    top:auto!important;
    left:50%!important;
    right:auto!important;
    bottom:58px!important;
    box-sizing:border-box!important;
    width:calc(100vw - 28px)!important;
    min-height:210px!important;
    max-height:68vh!important;
    padding:0 18px 18px!important;
    transform:translateX(-50%)!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
  }
  .editor-module>h4{
    height:46px!important;
    margin:0 -18px 16px!important;
    padding:0 16px!important;
  }
  /* On touch layouts the old desktop drag grip becomes the close control. */
  .editor-module>h4>small{
    display:grid!important;
    place-items:center;
    width:38px;
    height:38px;
    margin-left:auto!important;
    color:#aeb9be!important;
    font:400 22px/1 Arial,sans-serif!important;
    letter-spacing:0!important;
    cursor:pointer;
  }
  .editor-module .toolsBox{height:auto!important;min-height:148px!important;padding-top:2px!important;}
  .editor-module .toolsTable{border-collapse:separate!important;border-spacing:0 5px!important;}
  .editor-module .toolsTable tr{height:42px!important;}
  .editor-module .toolsTable td{height:42px!important;}
  .editor-module .toolsTitleCell{padding-right:14px!important;}
  .editor-module .tools3rdCell{padding-left:14px!important;}
  .editor-module .ui-slider{height:6px!important;margin-top:4px!important;margin-bottom:4px!important;}
  .editor-module .ui-slider-handle{top:-9px!important;width:24px!important;height:24px!important;}
  .editor-module input[type=text],
  .editor-module input[type=number],
  .editor-module select,
  .editor-module input[type=button],
  .editor-module button{min-height:38px!important;}
  .editor-module textarea{min-height:92px!important;}
  .editor-module[data-module="structure"] .toolsTable tr,
  .editor-module[data-module="structure"] .toolsTable td{height:48px!important;}
  .editor-module[data-module="advanced"] .toolsBox{height:auto!important;min-height:160px!important;}
  .editor-module[data-module="advanced"] .toolsTable tr,
  .editor-module[data-module="advanced"] .toolsTable td{height:42px!important;}
  .editor-module[data-module="advanced"] input[type=text],
  .editor-module[data-module="advanced"] select{height:38px!important;min-height:38px!important;}
  .editor-module[data-module="advanced"] .ui-slider-handle{top:-9px!important;width:24px!important;height:24px!important;}

  .color-picker-popover{
    position:fixed!important;
    z-index:280!important;
    top:auto!important;
    left:50%!important;
    right:auto!important;
    bottom:74px!important;
    box-sizing:border-box!important;
    width:calc(100vw - 36px)!important;
    max-width:380px!important;
    max-height:70vh!important;
    padding:16px!important;
    transform:translateX(-50%)!important;
    overflow:auto!important;
  }
  .editor-module[data-module="color"] .color-picker-popover .colorwheel{width:180px!important;height:180px!important;}
  .color-picker-head{height:38px!important;margin-bottom:12px!important;}
  .color-picker-head .color-picker-actions button{width:38px!important;height:38px!important;min-height:38px!important;}

  #QRcodeCanvas{touch-action:none;user-select:none;-webkit-user-select:none;}
  #QRcodeInfo{pointer-events:none;}

  /* A real horizontally swipeable footer strip. */
  body:not(.intro-active) #bottomRule{overflow:hidden!important;}
  body:not(.intro-active) #bottomRule>div:first-child{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100vw!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
    gap:12px!important;
    padding:0 12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    white-space:nowrap!important;
    touch-action:pan-x!important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  body:not(.intro-active) #bottomRule>div:first-child::-webkit-scrollbar{display:none!important;}
  #bottomRule .editor-output-info{flex:0 0 auto!important;min-width:max-content!important;gap:12px!important;}
  #bottomRule .editor-output-info>div,
  #bottomRule .editor-output-info>label,
  #bottomRule .footer-separator,
  #bottomRule .footer-position-toggle{flex:0 0 auto!important;}
}

/* Rotation preview on touch layouts: rotate the lightweight manipulation mask, never regenerate mid-gesture. */
@media(max-width:1179px){
  #QRcodeCanvas.is-rotating #QRcodeCanvasImage{visibility:hidden!important;}
  #QRcodeCanvas.is-rotating #QRcodeInfo{z-index:7!important;opacity:1!important;visibility:visible!important;}
}

/* Responsive smartphone V3 — use width, not artificial empty height. */
@media(max-width:640px){
  /* Natural panel height with balanced space above/below its content. */
  .editor-module{
    min-height:0!important;
    padding-bottom:16px!important;
  }
  .editor-module>h4{margin-bottom:14px!important;}
  .editor-module .toolsBox{min-height:0!important;height:auto!important;padding-bottom:0!important;}

  /* MODULES: translation-safe stacked rows, but selectors use the available width. */
  .editor-module[data-module="modules"] .toolsTable{width:100%!important;table-layout:fixed!important;}
  .editor-module[data-module="modules"] .toolsTitleCell{width:72px!important;padding-right:12px!important;}
  .editor-module[data-module="modules"] .toolsTable td:nth-child(2){width:auto!important;}
  .editor-module[data-module="modules"] .toolsTable td:nth-child(2)>div{width:100%!important;}
  .editor-module[data-module="modules"] .sel-box,
  .editor-module[data-module="modules"] .sel-box-select{width:100%!important;max-width:none!important;}

  /* BLENDING: give the working controls the complete remaining row width. */
  .editor-module[data-module="blending"] .toolsTable{width:100%!important;table-layout:fixed!important;}
  .editor-module[data-module="blending"] .toolsTitleCell{width:92px!important;padding-right:12px!important;}
  .editor-module[data-module="blending"] .toolsEditCell{width:auto!important;}
  .editor-module[data-module="blending"] .tools3rdCell{width:54px!important;padding-left:12px!important;}
  .editor-module[data-module="blending"] .ui-slider{width:100%!important;}

  /* COLOR panel itself stays compact; picker is a separate centered mobile surface. */
  .editor-module[data-module="color"] .color-module-body{height:auto!important;min-height:0!important;overflow:visible!important;}
  .editor-module[data-module="color"]{overflow:visible!important;}
  .editor-module[data-module="color"] .toolsBox{overflow:visible!important;}
  .color-picker-popover{
    top:50%!important;
    bottom:auto!important;
    left:50%!important;
    right:auto!important;
    width:calc(100vw - 48px)!important;
    max-width:360px!important;
    max-height:calc(100vh - 150px)!important;
    transform:translate(-50%,-50%)!important;
    overflow:auto!important;
  }
  .editor-module[data-module="color"] .color-picker-popover .colorwheel{
    width:180px!important;
    height:180px!important;
    margin:6px auto 16px!important;
  }
  .color-hex-field{justify-content:center!important;}
  .color-hex-field input{width:150px!important;min-width:150px!important;height:38px!important;}

  /* STRUCTURE deliberately unchanged: its V2 mobile layout is approved. */

  /* ADVANCED: preserve the approved layout, enlarge only the requested controls. */
  .editor-module[data-module="advanced"] #QRPadding{width:100%!important;max-width:none!important;}
  .editor-module[data-module="advanced"] #RenderDotsW,
  .editor-module[data-module="advanced"] #RenderDotsB{
    width:24px!important;
    height:24px!important;
    margin:0 8px 0 0!important;
    vertical-align:middle!important;
  }
  .editor-module[data-module="advanced"] #RenderDotsB{margin-left:18px!important;}

  /* On phones the metrics own the footer. LC2 credit belongs in About/File instead. */
  .editor-lc2-credit{display:none!important;}
}

/* V4 mobile color tools: viewport picker + precision touch loupe. */
.mobile-color-loupe{display:none;}
@media(max-width:640px){
  body>.color-picker-popover{
    position:fixed!important;
    z-index:1200!important;
    top:calc(50% - 70px)!important;
    bottom:auto!important;
    left:50%!important;
    right:auto!important;
    width:calc(100vw - 48px)!important;
    max-width:360px!important;
    max-height:calc(100vh - 170px)!important;
    transform:translate(-50%,-50%)!important;
    overflow:auto!important;
  }
  body>.color-picker-popover .colorwheel{width:180px!important;height:180px!important;margin:6px auto 16px!important;}
  .mobile-color-loupe{
    position:fixed;display:block;width:112px;height:112px;z-index:2000;
    border:3px solid #dce3e6;border-radius:58px;overflow:hidden;
    background:#111;box-shadow:0 8px 28px rgba(0,0,0,.72);
    pointer-events:none;opacity:0;transform:scale(.9);
  }
  .mobile-color-loupe.is-visible{opacity:1;transform:scale(1);}
  .mobile-color-loupe canvas{display:block;width:112px;height:112px;image-rendering:pixelated;}
  .mobile-color-loupe-cross{position:absolute;left:50%;top:50%;width:16px;height:16px;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #111,0 0 5px #000;}
  .mobile-color-loupe-cross:before,.mobile-color-loupe-cross:after{content:'';position:absolute;background:#fff;box-shadow:0 0 1px #000;}
  .mobile-color-loupe-cross:before{left:7px;top:-8px;width:2px;height:28px;}
  .mobile-color-loupe-cross:after{left:-8px;top:7px;width:28px;height:2px;}
  #ImageContainer.is-color-sampling{touch-action:none!important;}
}

/* V6 responsive continuity: one unbroken compact-editor mode from phone to desktop. */
@media(max-width:1179px){
  /* Never leave the 641–1179px range without module navigation. */
  .editor-tooldeck-bar{display:flex!important;}
  .editor-tooldeck-bar>span,.editor-layout-reset{display:none!important;}
  .editor-module-tabs{display:flex!important;visibility:visible!important;opacity:1!important;flex:1 1 auto!important;min-width:0!important;}
  .editor-module-tabs button{display:block!important;visibility:visible!important;}

  /* The footer is a single scrollable strip throughout compact mode, not only on touch phones. */
  body:not(.intro-active) #bottomRule{overflow:hidden!important;}
  body:not(.intro-active) #bottomRule>div:first-child{
    box-sizing:border-box!important;width:100%!important;max-width:100vw!important;
    display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;
    gap:12px!important;padding:0 12px!important;overflow-x:auto!important;overflow-y:hidden!important;
    white-space:nowrap!important;-webkit-overflow-scrolling:touch;scrollbar-width:none;
    cursor:grab;
  }
  body:not(.intro-active) #bottomRule>div:first-child.is-mouse-dragging{cursor:grabbing;user-select:none!important;}
  body:not(.intro-active) #bottomRule>div:first-child::-webkit-scrollbar{display:none!important;}
  #bottomRule .editor-output-info{flex:0 0 auto!important;min-width:max-content!important;gap:12px!important;}
  #bottomRule .editor-output-info>div,#bottomRule .editor-output-info>label,
  #bottomRule .footer-separator,#bottomRule .footer-position-toggle{flex:0 0 auto!important;}

  /* Credit must not float over the compact footer. */
  .editor-lc2-credit{display:none!important;}
}

/* V7 expert diagnostics. */
.expert-parameters-dialog{display:none;position:fixed;inset:0;z-index:10000;font-family:'DM Sans',Arial,sans-serif;}
.expert-parameters-dialog.is-open{display:block;}
.expert-parameters-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);}
.expert-parameters-panel{position:absolute;left:50%;top:50%;width:min(430px,calc(100vw - 32px));box-sizing:border-box;transform:translate(-50%,-50%);padding:0 18px 16px;border:1px solid #485158;background:#1b1f22;color:#cfd6da;box-shadow:0 24px 70px rgba(0,0,0,.65);}
.expert-parameters-panel header{height:64px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #343b40;margin:0 -18px 16px;padding:0 18px;}
.expert-parameters-panel header small{display:block;color:#75828a;font:600 8px 'Space Grotesk',Arial,sans-serif;letter-spacing:.15em;}
.expert-parameters-panel h2{margin:3px 0 0;font:600 16px 'Space Grotesk',Arial,sans-serif;}
.expert-parameters-panel header button{border:0;background:transparent;color:#aeb8bd;font-size:24px;cursor:pointer;}
.expert-parameters-panel label{display:grid;grid-template-columns:130px 1fr;align-items:center;gap:14px;font-size:12px;}
.expert-parameters-panel select{height:34px;background:#262c30;color:#e1e6e8;border:1px solid #4b555b;padding:0 8px;}
.expert-parameters-panel p{margin:15px 0;color:#89969d;font-size:11px;line-height:1.5;}
.expert-parameters-panel footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #343b40;padding-top:14px;}
.expert-parameters-panel footer button{min-height:32px;padding:0 12px;border:1px solid #4b555b;background:#252b2f;color:#cfd6da;font:600 9px 'Space Grotesk',Arial,sans-serif;letter-spacing:.08em;cursor:pointer;}
.expert-parameters-panel footer button.is-primary{background:#dce3e6;color:#171b1e;}
.newHeatmapTable .controlCanvas img{image-rendering:pixelated;min-width:110px;min-height:110px;}

/* V7: 901–1179 must remain the same compact layout as 641–900.
   The older desktop rule at min-width:901 created an empty black tool deck before the real desktop modules appear at 1180. */
@media(min-width:901px) and (max-width:1179px){
  .editor-tooldeck{top:56px!important;height:50px!important;background:#191c1f!important;border-bottom:1px solid #353a3e!important;box-shadow:0 8px 22px rgba(0,0,0,.3)!important;}
  .editor-tooldeck-bar{display:flex!important;height:50px!important;}
  .editor-modules{position:absolute!important;top:50px!important;right:0!important;left:0!important;height:0!important;background:transparent!important;overflow:visible!important;}
  .editor-modules-row{display:block!important;height:0!important;padding:0!important;background:transparent!important;}
  .editor-module{display:none!important;position:absolute!important;top:8px!important;right:10px!important;left:auto!important;width:340px!important;height:auto!important;min-height:126px!important;max-height:calc(100vh - 132px)!important;}
  .editor-module.is-active{display:block!important;}
  body:not(.intro-active) #editor{top:106px!important;bottom:42px!important;}
}

/* V7 expert diagnostics. */
.expert-parameters-dialog{display:none;position:fixed;inset:0;z-index:10000;font-family:'DM Sans',Arial,sans-serif;}
.expert-parameters-dialog.is-open{display:block;}
.expert-parameters-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);}
.expert-parameters-panel{position:absolute;left:50%;top:50%;width:min(430px,calc(100vw - 32px));box-sizing:border-box;transform:translate(-50%,-50%);padding:0 18px 16px;border:1px solid #485158;background:#1b1f22;color:#cfd6da;box-shadow:0 24px 70px rgba(0,0,0,.65);}
.expert-parameters-panel header{height:64px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #343b40;margin:0 -18px 16px;padding:0 18px;}
.expert-parameters-panel header small{display:block;color:#75828a;font:600 8px 'Space Grotesk',Arial,sans-serif;letter-spacing:.15em;}
.expert-parameters-panel h2{margin:3px 0 0;font:600 16px 'Space Grotesk',Arial,sans-serif;}
.expert-parameters-panel header button{border:0;background:transparent;color:#aeb8bd;font-size:24px;cursor:pointer;}
.expert-parameters-panel label{display:grid;grid-template-columns:130px 1fr;align-items:center;gap:14px;font-size:12px;}
.expert-parameters-panel select{height:34px;background:#262c30;color:#e1e6e8;border:1px solid #4b555b;padding:0 8px;}
.expert-parameters-panel p{margin:15px 0;color:#89969d;font-size:11px;line-height:1.5;}
.expert-parameters-panel footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #343b40;padding-top:14px;}
.expert-parameters-panel footer button{min-height:32px;padding:0 12px;border:1px solid #4b555b;background:#252b2f;color:#cfd6da;font:600 9px 'Space Grotesk',Arial,sans-serif;letter-spacing:.08em;cursor:pointer;}
.expert-parameters-panel footer button.is-primary{background:#dce3e6;color:#171b1e;}
.newHeatmapTable .controlCanvas img{image-rendering:pixelated;min-width:110px;min-height:110px;}

/* V7: 901–1179 stays compact. The older min-width:901 rule otherwise creates an empty desktop deck. */
@media(min-width:901px) and (max-width:1179px){
  .editor-tooldeck{top:56px!important;height:50px!important;background:#191c1f!important;border-bottom:1px solid #353a3e!important;box-shadow:0 8px 22px rgba(0,0,0,.3)!important;}
  .editor-tooldeck-bar{display:flex!important;height:50px!important;}
  .editor-modules{position:absolute!important;top:50px!important;right:0!important;left:0!important;height:0!important;background:transparent!important;overflow:visible!important;}
  .editor-modules-row{display:block!important;height:0!important;padding:0!important;background:transparent!important;}
  .editor-module{display:none!important;position:absolute!important;top:8px!important;right:10px!important;left:auto!important;width:340px!important;height:auto!important;min-height:126px!important;max-height:calc(100vh - 132px)!important;}
  .editor-module.is-active{display:block!important;}
  body:not(.intro-active) #editor{top:106px!important;bottom:42px!important;}
}

/* V8: the new diagnostic uses the exact same bottom-right diagnostic card geometry as the legacy heatmaps. */
body:not(.intro-active) #newHeatmapTable{
  position:absolute;
  right:14px;
  bottom:52px;
  width:auto!important;
  padding:10px;
  background:#16191c;
  border:1px solid #41484d;
  box-shadow:0 18px 40px rgba(0,0,0,.5);
}
#newHeatmapTable td{width:auto;padding-left:10px;padding-right:10px;}
#newHeatmapTable .controlCanvas{width:110px;height:110px;overflow:hidden;}
#newHeatmapTable .controlCanvas img{display:block;width:110px;height:110px;min-width:0;min-height:0;image-rendering:pixelated;}
#newHeatmapTable #newHeatmapScore{white-space:nowrap;}


/* V9: keep zoom away from diagnostics by anchoring it at the workspace top-right. */
body:not(.intro-active) .editor-zoom-controls{top:118px!important;right:18px!important;bottom:auto!important;}
@media(max-width:1179px){body:not(.intro-active) .editor-zoom-controls{top:114px!important;right:8px!important;bottom:auto!important;}}

/* V10: manual close is offered only for persistent heatmaps. */
.heatmapClose{display:none;border:0;background:transparent;color:#aeb6ba;font:600 18px/18px Arial,sans-serif;cursor:pointer;padding:0 4px;}
.heatmapClose:hover{color:#fff;}
#newHeatmapTable h4 .heatmapClose{float:right;margin-left:10px;}

/* V11: keep workspace zoom inside the grey editor, top-right. */
body:not(.intro-active) #editor .editor-zoom-controls{position:absolute!important;top:12px!important;right:18px!important;bottom:auto!important;left:auto!important;}
@media(max-width:1179px){body:not(.intro-active) #editor .editor-zoom-controls{top:8px!important;right:8px!important;bottom:auto!important;}}

/* Keep Color auxiliary controls typographically consistent with the editor. */
.color-sync-row{display:flex;align-items:center;gap:4px;margin-top:6px;color:#aeb8bd;font:500 8px/1.2 'DM Sans',Arial,sans-serif;letter-spacing:0;text-transform:none;}
.color-mode-select{height:24px;padding:0 22px 0 7px;border:1px solid #53616a;background:#11181c;color:#eef3f5;font:600 8px/22px 'DM Sans',Arial,sans-serif;text-transform:uppercase;letter-spacing:.04em;}
.color-channel.is-auto{cursor:default;}

/* V24: zoom belongs to the workspace viewport, not to its scrolling content. */
body:not(.intro-active) #editor .editor-zoom-controls{
  position:sticky!important;
  top:12px!important;
  right:18px!important;
  bottom:auto!important;
  left:auto!important;
  float:right!important;
  margin-right:18px!important;
  z-index:80!important;
}
@media(max-width:1179px){body:not(.intro-active) #editor .editor-zoom-controls{top:8px!important;right:8px!important;margin-right:8px!important;}}

/* V31: JavaScript enables scrolling per-axis only when the zoomed image exceeds the workspace. */
@media(max-width:640px){body:not(.intro-active) #editor{overflow:hidden!important;}}


/* V32: zoom controls are viewport-fixed by JS; never part of the scrollable artwork. */
body:not(.intro-active) #editor .editor-zoom-controls{position:fixed!important;float:none!important;margin-right:0!important;left:auto!important;bottom:auto!important;}

/* V33: JS pins the zoom toolbar to the grey workspace viewport.
   It remains a child of #editor semantically, but fixed positioning prevents artwork scrolling from moving it. */
body:not(.intro-active) #editor .editor-zoom-controls{z-index:80!important;}


/* V38: progressively condense the shared LC2 account control without changing either visual environment. */
@media(max-width:1179px){
 .qrcb-auth-label-full{display:none;}
 .qrcb-auth-label-compact{display:inline;}
}
@media(max-width:640px){
 .qrcb-auth-action{width:29px;padding:0;gap:0;}
 .qrcb-auth-label-full,.qrcb-auth-label-compact{display:none;}
 .editor-auth-action{max-width:29px;}
}


/* V39: collapse language and exit controls only where the editor header actually needs the space. */
.editor-languages .qrcb-language-select{display:none;}
@media(max-width:450px){
 .editor-languages{margin-right:6px;}
 .editor-languages button{display:none;}
 .editor-languages .qrcb-language-select{display:block;}
 .qrcb-language-select{height:25px;padding:0 20px 0 6px;border:1px solid #343b40;background:#191d20;color:#dce3e6;font:650 8px 'Space Grotesk',Arial,sans-serif;letter-spacing:.08em;}
 .editor-exit{width:27px;padding:0;display:inline-flex;align-items:center;justify-content:center;}
 .editor-exit-icon{display:block;}
 .editor-exit-label{display:none;}
}


/* V44: desktop modules stay fixed; compact modules float from the left and can be dragged by their full header. */
@media(min-width:1180px){
 .editor-module>h4{cursor:default!important;}
 .editor-module>h4:active{cursor:default!important;}
 .editor-module>h4>small{display:none!important;}
}
@media(min-width:641px) and (max-width:1179px){
 .editor-module{left:10px!important;right:auto!important;}
}
@media(max-width:640px){
 .editor-module{left:14px!important;right:auto!important;transform:none!important;}
}
@media(max-width:1179px){
 .editor-module>h4{cursor:grab!important;touch-action:none;}
 .editor-module>h4:active{cursor:grabbing!important;}
}
.editor-history-actions{display:flex;align-items:center;justify-content:center;gap:5px;margin:3px 0 0;}
.editor-history-actions button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:62px!important;height:22px;padding:0 6px!important;}
.editor-history-actions button:disabled{opacity:.35;cursor:default;}
.editor-history-actions svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
@media(max-width:640px){
 .editor-history-actions{margin-top:8px;}
 .editor-history-actions button{height:34px;min-width:88px!important;}
}

/* V45: native pointer dragging keeps compact panels visible throughout the gesture. */
@media(max-width:1179px){
 .editor-module.is-panel-dragging{transition:none!important;will-change:left,top;box-shadow:0 22px 48px rgba(0,0,0,.62)!important;}
}

/* V47: keep the QR rotation handle at the visual top after a workspace quarter-turn. */
#QRcodeCanvas[data-workspace-rotation="90"] .qr-rotate-handle{
  top:50%;right:auto;bottom:auto;left:-43px;
  transform:translateY(-50%) rotate(-90deg);
}
#QRcodeCanvas[data-workspace-rotation="180"] .qr-rotate-handle{
  top:auto;right:auto;bottom:-43px;left:50%;
  transform:translateX(-50%) rotate(-180deg);
}
#QRcodeCanvas[data-workspace-rotation="270"] .qr-rotate-handle{
  top:50%;right:-43px;bottom:auto;left:auto;
  transform:translateY(-50%) rotate(-270deg);
}
@media(pointer:coarse){
  #QRcodeCanvas[data-workspace-rotation="90"] .qr-rotate-handle{left:-52px;}
  #QRcodeCanvas[data-workspace-rotation="180"] .qr-rotate-handle{bottom:-52px;}
  #QRcodeCanvas[data-workspace-rotation="270"] .qr-rotate-handle{right:-52px;}
}

/* V46: quarter-turn workspace view. Source files and generated exports remain unrotated. */
#ImageContainer{transform-origin:center center!important;transition:transform .18s ease;}
.editor-workspace-rotate svg,.editor-workspace-hand svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.editor-workspace-rotate[data-rotation="90"] svg{transform:rotate(90deg);}
.editor-workspace-rotate[data-rotation="180"] svg{transform:rotate(180deg);}
.editor-workspace-rotate[data-rotation="270"] svg{transform:rotate(270deg);}
@media(prefers-reduced-motion:reduce){#ImageContainer{transition:none;}}

/* V50 durable projects */
.editor-server-actions{padding:5px 0;border-top:1px solid #30373b;border-bottom:1px solid #30373b;}
.editor-server-actions button{display:block;width:100%;padding:9px 10px;border:0;background:transparent;color:#dce2e5;text-align:left;font:650 9px 'Space Grotesk',Arial,sans-serif;letter-spacing:.08em;cursor:pointer;}
.editor-server-actions button:hover,.editor-server-actions button:focus-visible{background:#262c30;outline:1px solid #87939a;outline-offset:-1px;}
.server-projects-dialog{display:none;position:fixed;inset:0;z-index:10020;}
.server-projects-dialog.is-open{display:block;}
.server-projects-backdrop{position:absolute;inset:0;background:rgba(5,7,8,.76);backdrop-filter:blur(3px);}
.server-projects-panel{position:absolute;left:50%;top:50%;width:min(560px,calc(100vw - 28px));max-height:calc(100vh - 36px);overflow:auto;transform:translate(-50%,-50%);box-sizing:border-box;padding:20px;background:#181d20;border:1px solid #465158;color:#dbe1e4;box-shadow:0 28px 80px rgba(0,0,0,.6);font-family:'DM Sans',Arial,sans-serif;}
.server-projects-panel header{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #394147;padding-bottom:13px;}
.server-projects-panel header small{color:#849097;font:650 9px 'Space Grotesk',Arial,sans-serif;letter-spacing:.12em;}
.server-projects-panel h2{margin:4px 0 0;font:600 22px 'Space Grotesk',Arial,sans-serif;}
.server-projects-panel header button,.server-projects-panel footer button{border:1px solid #465158;background:#20262a;color:#dbe1e4;cursor:pointer;}
.server-projects-panel header button{width:30px;height:30px;font-size:20px;}
.server-projects-panel footer{text-align:right;margin-top:14px;}
.server-projects-panel footer button{padding:8px 13px;font:650 9px 'Space Grotesk',Arial,sans-serif;letter-spacing:.08em;}
.commercial-choice-message{margin:18px 0 0;color:#eef2f4;font-size:15px;line-height:1.55;}
.commercial-choice-safety{margin:9px 0 0;color:#94a1a8;font-size:12px;line-height:1.5;}
.server-projects-panel .commercial-choice-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;}
.server-projects-panel .commercial-choice-actions button.is-primary{background:#dce3e6;color:#171b1e;border-color:#dce3e6;}
.server-projects-status{padding:12px 0;color:#89959b;font-size:12px;}
.server-project-row{display:grid;grid-template-columns:minmax(0,1fr) auto 30px;align-items:center;gap:10px;border-top:1px solid #30383d;padding:8px 0;}
.server-project-open{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;border:0;background:transparent;color:#edf1f3;font-weight:600;cursor:pointer;}
.server-project-row time{color:#849097;font-size:11px;}
.server-project-delete{width:28px;height:28px;border:1px solid #465158;background:#20262a;color:#dbe1e4;cursor:pointer;}
.server-projects-empty{color:#9ba6ac;}
@media(max-width:450px){.server-projects-panel{padding:14px}.server-project-row{grid-template-columns:minmax(0,1fr) 30px}.server-project-row time{display:none}.server-projects-panel .commercial-choice-actions{display:grid}.server-projects-panel .commercial-choice-actions button{width:100%;min-height:40px}}


/* V51: source coordinates are independent of the viewport translation. */
body:not(.intro-active) #editorzoomable{overflow:hidden;touch-action:none;cursor:grab;}
body:not(.intro-active) #ImageContainer{position:absolute!important;left:50%!important;top:50%!important;margin:0!important;transition:none!important;}
#editor.is-panning,#editor.is-panning #editorzoomable,#editor.is-panning #ImageContainer{cursor:grabbing!important;user-select:none;}
.color-picker-popover #colorwheel svg{display:block;max-width:100%;}
.color-picker-popover .color-hex-field input{box-sizing:border-box;background:#111517!important;color:#e5eaec!important;border:1px solid #526069!important;border-radius:2px;padding:6px 10px!important;}
@media(max-width:640px){
 .color-picker-popover #colorwheel{margin:6px auto 16px!important;}
 .color-picker-popover .color-hex-field input{font-size:16px!important;}
}

/* V51 presets use the existing editor dialog and menu presentation. */
.editor-presets-menu{border-bottom:1px solid #30373b;margin-bottom:5px;padding-bottom:5px;}
.editor-presets-menu summary{padding:9px 10px;color:#dce2e5;font:650 9px 'Space Grotesk',Arial,sans-serif;letter-spacing:.08em;cursor:pointer;}
.editor-presets-menu summary:focus-visible{outline:1px solid #87939a;outline-offset:-1px;}
.editor-presets-menu button{padding-left:24px!important;}
.presets-dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#dbe1e4;}
.presets-dialog::backdrop{background:rgba(5,7,8,.76);backdrop-filter:blur(3px);}
.presets-dialog .preset-row{grid-template-columns:minmax(0,1fr) auto auto 30px;}
.preset-visibility{color:#89959b;font-size:10px;}
.preset-rename,#presetSubmit{border:1px solid #465158;background:#20262a;color:#dbe1e4;padding:8px;cursor:pointer;}
#presetCreateHint{font-size:12px;line-height:1.6;color:#a8b1b6;}
#presetForm label{display:block;font-size:12px;margin-bottom:6px;}
#presetName{display:block;box-sizing:border-box;width:100%;margin-bottom:12px;padding:10px;border:1px solid #526069;background:#111517;color:#e5eaec;font:16px 'DM Sans',Arial,sans-serif;}
.presets-dialog button:focus-visible,#presetName:focus-visible{outline:2px solid #dbe1e4;outline-offset:2px;}
.presets-dialog button:disabled{opacity:.5;cursor:wait;}
@media(max-width:450px){
 .presets-dialog .preset-row{grid-template-columns:minmax(0,1fr) auto 38px;gap:8px;}
 .presets-dialog .preset-visibility{grid-column:1;grid-row:2;}
 .presets-dialog .preset-rename{grid-column:2;grid-row:1 / span 2;}
 .presets-dialog .server-project-delete{grid-column:3;grid-row:1 / span 2;width:38px;height:38px;}
 .presets-dialog .server-project-open{min-height:38px;white-space:normal;overflow-wrap:anywhere;}
}
