/* V4 isolated Nov 8 UI refinements; visual overrides only.
 * Game assets below are exact unmodified 32px screenshots provided by owner.
 * Keep script-owned native renderer and native item option controls intact.
 */

/* The floating preview actions should consist of actual buttons, not a toolbar box. */
#v4-character .canvaswrap .v4-preview-item-actions{
 left:10px!important;bottom:10px!important;
 max-width:118px!important;max-height:min(78%,460px)!important;
 display:flex;flex-direction:column;align-items:center;gap:7px!important;
 padding:0!important;border:0!important;border-radius:0!important;
 background:transparent!important;backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;box-shadow:none!important;
 overflow-x:hidden;overflow-y:auto;scrollbar-width:none;
}
#v4-character .canvaswrap .v4-preview-item-actions::-webkit-scrollbar{display:none}
#v4-character .canvaswrap .v4-preview-item-action{
 width:114px!important;height:77px!important;padding:2px!important;
 margin:0!important;flex:0 0 auto!important;
 background:transparent!important;border:0!important;
 border-radius:10px!important;box-shadow:none!important;
 transition:transform .16s ease,filter .16s ease!important
}
#v4-character .canvaswrap .v4-preview-item-action .v4-game-action-art.v4-game-action-mini{
 display:block!important;width:110px!important;height:72px!important;
 border-radius:8px!important;
 box-shadow:0 3px 9px #05111d99!important;
}
#v4-character .canvaswrap .v4-preview-item-action:hover{
 transform:scale(1.055);filter:brightness(1.1)
}
#v4-character .canvaswrap .v4-preview-item-action:focus-visible{
 outline:2px solid #c6f5ff!important;outline-offset:-1px!important
}
#v4-character .canvaswrap .v4-preview-item-action[aria-pressed=true]{
 filter:drop-shadow(0 0 5px #72e4f4);
}
#v4-character .canvaswrap .v4-preview-background{
 border:0!important;border-radius:0!important;padding:0!important;
 background:transparent!important;box-shadow:none!important;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 gap:5px!important;
}
#v4-character .canvaswrap .v4-preview-background>button{
 width:37px!important;height:37px!important;border-radius:10px!important;
 border:1px solid #7baaca7a!important;
 background:#10273ac9!important;
 box-shadow:0 2px 6px #0005!important;transition:transform .15s ease,background .15s ease;
}
#v4-character .canvaswrap .v4-preview-background>button:hover{
 transform:translateY(-2px);background:#275879e6!important
}
#v4-character .canvaswrap .v4-preview-background .v4-bg-custom{
 border:0!important;padding:0 2px!important;border-radius:8px!important;
 min-height:36px;justify-content:center;
}
#v4-character .canvaswrap .v4-preview-background .v4-bg-custom input{
 width:31px!important;height:31px!important;
}
#v4-character #step-next{display:none!important}
#v4-character :is(#v4-v2-fx,.v4-particles-toggle,[data-v4-particles]){
 display:inline-grid!important;place-items:center!important;
 line-height:1!important;text-align:center!important;
}
#v4-character :is(#v4-v2-fx,.v4-particles-toggle,[data-v4-particles]) :is(img,svg,span){
 margin:auto!important;vertical-align:middle!important
}

/* Wearing before mods: auto-fill prevents a lone item spanning 1300px. */
#v4-character #v4-equipped .slots{
 display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,294px),1fr))!important;
 align-items:stretch!important;justify-content:start!important;gap:11px!important
}
#v4-character #v4-equipped .slots>.v4-equipped-card{
 max-width:none!important;width:100%!important;min-width:0!important;
 min-height:86px!important;transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease!important;
}
#v4-character #v4-equipped .slots>.v4-equipped-card:hover{
 transform:translateY(-2px);
 box-shadow:0 8px 24px #0004,inset 0 1px #ffffff13!important
}
#v4-character .v4-equipped-mods{
 margin:12px 0 0!important;padding:14px 16px!important;
 background:linear-gradient(145deg,#25476936,#081f38ac)!important;
}
#v4-character .v4-equipped-mods-head{
 justify-content:flex-start!important;align-items:center!important;
 gap:8px 12px!important;margin-bottom:10px!important
}
#v4-character .v4-equipped-mods-count{margin-left:auto;font-size:11px!important}
#v4-character .v4-equipped-mods-toggle{
 border:1px solid #8ebee65e;border-radius:9px;
 background:#234b6f75;color:#e6f7ff;
 padding:7px 10px;font:750 11px/1 Inter,system-ui,sans-serif;
 cursor:pointer;transition:background .17s ease,transform .17s ease;
}
#v4-character .v4-equipped-mods-toggle:hover{background:#397ca16b;transform:translateY(-1px)}
#v4-character .v4-equipped-mods-list{
 display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,214px),1fr));
 gap:9px!important;max-height:1250px;opacity:1;
 transition:max-height .25s ease,opacity .18s ease;
}
#v4-character .v4-equipped-mod-chip{
 flex:none!important;min-width:0!important;max-width:none!important;
 min-height:58px!important;padding:9px 10px!important;border-radius:12px!important;
 transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
#v4-character .v4-equipped-mod-chip:hover{
 transform:translateY(-2px);border-color:#8edfff!important;
 background:linear-gradient(125deg,#39749f55,#102940aa)!important
}
#v4-character .v4-equipped-mod-icon{width:40px!important;height:40px!important;flex-basis:40px!important}
#v4-character .v4-equipped-mod-icon img{width:35px!important;height:35px!important}
#v4-character .v4-equipped-mod-copy strong{font-size:12px!important}
#v4-character .v4-equipped-mod-copy small{font-size:11px!important}
#v4-character .v4-mods-collapsed .v4-equipped-mods-list{
 max-height:0!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important;
}
#v4-character .v4-mods-collapsed .v4-equipped-mods-help{display:none!important}
#v4-character .v4-mods-collapsed .v4-equipped-mods-head{margin-bottom:0!important}

/* Price is a primary, readable total, with explicit priced-item coverage. */
#v4-character #v4-equipped>.panelheader .v4-set-value{
 padding:0!important;min-width:min(100%,305px)!important;
 border-color:#7dc9e991!important;
 background:linear-gradient(130deg,#234b74c9,#10263ee0)!important;
 box-shadow:0 2px 15px #0003,inset 0 1px #e7faff19!important;
}
#v4-character #v4-equipped .v4-set-value-trigger{
 min-height:64px!important;gap:2px 12px!important;
 padding:9px 13px!important;
 grid-template-columns:minmax(0,1fr) auto 14px!important;
 grid-template-areas:"label amount arrow" "note amount arrow"!important;
}
#v4-character #v4-equipped .v4-set-value-label{
 font-size:11px!important;letter-spacing:.055em!important;color:#cfedff!important
}
#v4-character #v4-equipped .v4-set-value-amounts{
 font-size:19px!important;font-weight:850!important;gap:6px!important;
 align-items:center!important;justify-content:flex-end!important;
}
#v4-character #v4-equipped .v4-set-value-lock strong{font-size:20px!important}
#v4-character #v4-equipped .v4-set-value-lock img{width:26px!important;height:26px!important}
#v4-character #v4-equipped .v4-set-value-note{font-size:10px!important;line-height:1.35!important}
#v4-character #v4-equipped .v4-set-value-item-cost .v4-set-value-lock strong{font-size:11px!important}
#v4-character #v4-equipped .v4-set-value-item-cost .v4-set-value-lock img{width:17px!important;height:17px!important}

/* Narrower Growtopia settings; exact owner's checkmark sprites and clear X. */
#v4-character .v4-gt-settings .v4-actions-header{
 padding:7px 36px 7px 9px!important;min-height:53px!important;gap:7px!important
}
#v4-character .v4-gt-settings .v4-gt-settings-item-icon{
 flex:0 0 49px!important;width:49px!important;height:49px!important;
 object-fit:contain!important;image-rendering:pixelated!important
}
#v4-character .v4-gt-settings .v4-actions-heading strong{font-size:17px!important;line-height:1.17!important}
#v4-character .v4-gt-settings .v4-actions-close{
 position:absolute!important;top:8px!important;right:7px!important;
 width:27px!important;height:27px!important;min-width:27px!important;
 border:2px solid #97cbd8!important;border-radius:5px!important;
 background:#195d7f!important;box-shadow:0 2px 4px #06243799!important;
 font-size:0!important;line-height:0!important;text-shadow:none!important;
}
#v4-character .v4-gt-settings .v4-actions-close::before,
#v4-character .v4-gt-settings .v4-actions-close::after{
 content:'';position:absolute;left:5px;top:10px;
 width:13px;height:3px;border-radius:1px;background:#fff;
 box-shadow:0 1px 0 #173f57;
}
#v4-character .v4-gt-settings .v4-actions-close::before{transform:rotate(45deg)}
#v4-character .v4-gt-settings .v4-actions-close::after{transform:rotate(-45deg)}
#v4-character .v4-gt-settings .v4-actions-close:hover{background:#3887a9!important}
#v4-character .v4-gt-settings .v4-actions-content{
 padding:7px 9px 11px!important;gap:9px!important;
 overflow-y:auto!important;overflow-x:hidden!important;
 touch-action:pan-y;overscroll-behavior:contain!important
}
#v4-character .v4-gt-settings .v4-actions-native-settings .item-options label{
 gap:7px!important;padding:6px 0!important;
 font-size:13px!important;line-height:1.25!important;
 justify-content:space-between!important;min-width:0!important;
}
#v4-character .v4-gt-settings .v4-actions-native-settings .item-options :is(select,input[type=number]){
 min-height:30px!important;font-size:13px!important;
 padding:3px 6px!important;max-width:145px!important
}
#v4-character .v4-gt-settings .v4-actions-native-settings .item-options input[type=number]{width:78px!important}
#v4-character .v4-gt-settings .v4-actions-native-settings .item-options input[type=checkbox]{
 -webkit-appearance:none!important;appearance:none!important;
 display:block!important;box-sizing:border-box!important;
 width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;
 flex:0 0 32px!important;padding:0!important;margin:0 0 0 auto!important;
 border:0!important;border-radius:0!important;
 background:transparent url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFnSURBVFhHY2BgYGCYcvKf9uTjfy5PPfn/P23xn8PTj/2TBtkJByDLp5788hlTMW3w5GM/n00++U8Y7gD6+BwVFy1/9UYobiUkJJAlqjbd/2NTf/y/ScUhqmKH5lP/m3d9gdsz+fi//yJx6x7zxq4TRnGAQel+kARNMMgRyHapZO/4LxK3dj2KAyCC6/6LxK47Lhy7zl8kdp09tXD87Dt5mHbN/43VAUIxG8yR0ilVwNRT/+yx2YXVAQJRa+TRDaAUjDpg1AGjDhh1wKgDRh0w6oBRBwwNB8AapTRyQDhBB1Rvfvcf1CwvXv0qDOxi6uHwySd/34fZA22WQxwwEB2T3OXPEA4Adc2mHP38BV0RrXDnhhe/5dK2QB0w/zc4fiae/qfcsP79d3TF1MbFa17+V8jYCvc9uGMCA4Jxq7WVMtZ+Qe9WUQMblR9EsxiMIV0zZCAat05ZKGbNeTSFtMC7xSI2ioPsBADur5VtboQAggAAAABJRU5ErkJggg==") 50% 50% / 100% 100% no-repeat!important;
 box-shadow:none!important;image-rendering:pixelated!important
}
#v4-character .v4-gt-settings .v4-actions-native-settings .item-options input[type=checkbox]:checked{
 background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQU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zQzkNPpdniYQuiCqBrklIlFhApjfH8re1RQHX/oJdh6/F/MMVwkMWn2o10XqIK2Fwl8gba32ihDwWVUwpvNNR0ACaXjLmGGlm31t4Wt6J4wpgCKJxZtlu80XEBiJRKseJyjzL5ImMLdMvsQ7q1ZXPVdI0qQG3ILOrkv7bfgEgp9SDQrbe/keGjki6+77oUW1jpfqAAsiXfnufF5qcW9lAiaOtI+J5fhzBjTZWsSymtDiWPWQA1vr7VzUVQ7Y6U35HQ3KmMf/nrY0y3qsj/1OryqY8sgBqX7WnLpacUvd9uBbR04aB+SjnDgT+UlDPYFmvJCQ8lgErtauulD3KdEi+llNeRQAf2By9Ddm0Aiek/ssl6u1lLrCImAeqjVK31S3Ja12yp6Gb0hOro0dIDp68oF1RS+i9y/NqSjqkpJyZqiVVYPGzVAwV8WXkX9CzPKrm1kiv2sAUfHrm5Mftkp0xh/v32CDm9eGjM0t0+Sjl5hfVimjomgq0yCcErKo/JxTi5Ugdi+DDZVhPgYab/dEPSzfhdE8Omsjv8gZG8r33UmLFsfVHniAD6NDM7ewNaJ63tOj3IXzT0/5AXyHUGMev9Y3j+s/rhuyEW21nWFZz+7tH/BBQG+f7sbWSzv3H4B7TOWjPWj4h4basbiekV2HGqf5RfNMsq7cbMjKrh1SfobY7hQzJZX5I0K8MW0H5aRbJFOa085eZtqB3VF8koSuHE3K7zT7NQTNHbZ8enlHo1juNhtWqx+hdyBuOfbTQXfQAAAABJRU5ErkJggg==")!important;
}
#v4-character .v4-gt-settings .v4-actions-native-settings .item-options input[type=checkbox]::after{
 content:none!important;display:none!important;
}
#v4-appearance .v4-ref-effects{display:none!important}
@media(max-width:760px){
 #v4-character #v4-equipped .slots{grid-template-columns:1fr!important}
 #v4-character .v4-equipped-mods-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,174px),1fr))}
 #v4-character .canvaswrap .v4-preview-item-actions{
  left:7px!important;bottom:54px!important;max-width:91px!important;max-height:65%!important
 }
 #v4-character .canvaswrap .v4-preview-item-action{width:88px!important;height:61px!important}
 #v4-character .canvaswrap .v4-preview-item-action .v4-game-action-art.v4-game-action-mini{
  width:85px!important;height:56px!important
 }
 #v4-character .canvaswrap .v4-preview-background>button{width:31px!important;height:31px!important}
 #v4-character .canvaswrap .v4-preview-background .v4-bg-custom input{width:27px!important;height:27px!important}
 #v4-character .v4-gt-settings .v4-gt-settings-item-icon{
  flex-basis:40px!important;width:40px!important;height:40px!important
 }
}
@media(prefers-reduced-motion:reduce){
 #v4-character .v4-equipped-mod-chip,
 #v4-character #v4-equipped .slots>.v4-equipped-card,
 #v4-character .canvaswrap .v4-preview-item-action,
 #v4-character .v4-equipped-mods-list{transition:none!important}
}

#v4-character .canvaswrap .v4-preview-item-actions[hidden]{display:none!important}
#v4-character .v4-equipped-mods[hidden]{display:none!important}

/* Dedicated effects/particle preview button: game sprite centered in its own target. */
#v4-character #v4-v2-core-actions #v4-v2-particles{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;width:46px!important;min-width:46px!important;
 max-width:46px!important;height:41px!important;min-height:41px!important;
 padding:4px!important;border-radius:10px!important;
 background:rgba(37,92,126,.32)!important;
 border:1px solid rgba(148,210,240,.38)!important;
 box-shadow:inset 0 1px rgba(237,251,255,.12)!important;
 transition:transform .16s ease,background .16s ease,border-color .16s ease!important
}
#v4-character #v4-v2-core-actions #v4-v2-particles:hover{
 transform:translateY(-2px);background:rgba(67,139,174,.45)!important;
 border-color:#9adcf7!important
}
#v4-character #v4-v2-core-actions #v4-v2-particles[aria-pressed=true]{
 border-color:rgba(121,215,253,.7)!important
}
#v4-character #v4-v2-core-actions #v4-v2-particles .v4-v2-particle-icon{
 display:block!important;position:static!important;flex:0 0 29px!important;
 width:29px!important;height:25px!important;max-width:29px!important;
 margin:auto!important;transform:none!important;
 background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAZCAYAAADNAiUZAAABMElEQVR4nO2WMWrDMBSGf4ecoB0MgjcJTz5FBd2yBNIO3X0Ajz2FDtC9kw9gKOgWmown7Z07BNLpuZLaEMWx0iX/8p4s4c+/LJ4e8A8qOGnb9pAbprUuJigDrbXZgHVdT+AVP7TWomkaKKWyQH1Da3+i73s457JAfQXQY8CP95/88eX8+VirUwv8F84Zz4Lm0A16g84SEV0fGisrlIhARKiq6jxoXGFSxrydzjk45zAMQ7BmjQSdKm3xPJdT//LwS+zi28suiQjGGBhjIKUM1iQ5TYXxdnKulPoFXATKzviwxPEvXQzlfxVHljHmOJTbiWtogpZlCSklxnEEgCn34yUSQqDrOgALn97t3RN2m08AwPPDG75291DtK7b7sNEMukF2CyDJnRAi+YPYpda6+AbfDHC7tHs2EAAAAABJRU5ErkJggg==")!important;
 background-size:29px 25px!important;background-position:center center!important;
 background-repeat:no-repeat!important;image-rendering:pixelated!important;
 pointer-events:none
}
@media(prefers-reduced-motion:reduce){
 #v4-character #v4-v2-core-actions #v4-v2-particles{transition:none!important;transform:none!important}
}
