/* Taller V4 preview; controls float inside the right corner. */
.v4-preview-pane .canvaswrap{
 aspect-ratio:4/3!important;
 max-height:none!important;
 min-height:0!important;
 background:#444851;
}
.v4-preview-pane .canvaswrap #canvas{
 width:100%!important;height:auto!important;max-width:100%!important;
 aspect-ratio:4/3;display:block;
}
.v4-preview-pane .v4-preview-background{
 position:absolute;right:10px;bottom:10px;z-index:12;
 display:inline-flex;align-items:center;gap:4px;
 border:1px solid rgba(160,206,244,.31);
 border-radius:12px;padding:4px;
 background:rgba(8,24,45,.88);
 backdrop-filter:blur(10px);
 box-shadow:0 4px 14px rgba(0,0,0,.23);
}
.v4-preview-background button{
 border:1px solid transparent;background:rgba(90,130,170,.15);
 color:#dceeff;border-radius:8px;width:28px;height:28px;
 padding:0;display:grid;place-items:center;cursor:pointer;
 font-size:17px;line-height:1;
}
.v4-preview-background button:hover,.v4-preview-background button[aria-pressed=true]{
 border-color:#87daff;background:rgba(84,169,232,.33);
}
.v4-bg-dot{display:block;width:16px;height:16px;border:1px solid #a8bbcd;border-radius:5px}
.v4-bg-dot.black{background:#000}.v4-bg-dot.grey{background:#444851}
.v4-bg-custom{
 display:flex;align-items:center;gap:4px;
 color:#c9e8fc;font:700 9px/1 Inter,system-ui,sans-serif;
 border:1px solid transparent;border-radius:8px;padding:3px 4px;cursor:pointer;
}
.v4-bg-custom.active{border-color:#87daff;background:rgba(84,169,232,.26)}
.v4-bg-custom input[type=color]{
 width:24px;height:24px;min-width:24px;padding:1px;
 border:1px solid rgba(191,231,255,.55);border-radius:6px;cursor:pointer;
 background:transparent;
}
.v4-preview-pane .canvaswrap canvas{cursor:crosshair}
.v4-preview-pane .canvaswrap .canvas-hint{bottom:48px!important}
@media(max-width:760px){
 .v4-preview-pane .canvaswrap{aspect-ratio:4/3!important;max-height:none!important}
 .v4-preview-pane .v4-preview-background{right:7px;bottom:7px;gap:2px;padding:3px}
 .v4-preview-background button{width:25px;height:25px}
 .v4-bg-custom span{font-size:8px}
 .v4-bg-custom input[type=color]{width:23px;height:23px;min-width:23px}
 .v4-preview-pane .canvas-hint{bottom:44px!important;left:50%!important}
}

/* Browse original Growtopia world weather instead of synthesizing art. */
#v4-preview-background{overflow:visible!important}
#v4-preview-background .v4-weather-toggle{
 width:28px;height:28px;font-size:20px;
 color:#fff0ad;
}
#v4-preview-background .v4-weather-toggle[aria-pressed=true]{
 border-color:#a0e0ff;background:rgba(72,149,217,.45);
}
#v4-preview-background .v4-weather-picker{
 position:absolute;z-index:50;right:0;bottom:calc(100% + 8px);
 width:min(345px,calc(100vw - 28px));max-height:min(410px,62dvh);
 overflow:hidden;border:1px solid rgba(167,227,255,.45);
 border-radius:13px;background:#0b2038f5;
 box-shadow:0 12px 32px #0009;
 padding:9px;backdrop-filter:blur(16px);
}
#v4-preview-background .v4-weather-picker[hidden]{display:none!important}
.v4-weather-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
.v4-weather-top strong{font:750 12px/1.4 Inter,system-ui;color:#eff8ff}
#v4-preview-background .v4-weather-top button{width:27px;height:27px}
.v4-weather-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:350px;overflow:auto;overscroll-behavior:contain}
#v4-preview-background .v4-weather-list button{
 display:flex;flex-direction:column;gap:4px;align-items:stretch;
 width:100%;height:auto;min-height:80px;padding:4px;
 background:#1a3556;border:1px solid #577fa5;border-radius:8px;
 color:#dbe9f6;font:600 10px/1.25 Inter,system-ui;
}
#v4-preview-background .v4-weather-list button[aria-pressed=true]{border-color:#94e1ff;background:#29577c}
.v4-weather-list img{width:100%;height:58px;object-fit:cover;image-rendering:auto;border-radius:4px}
.v4-weather-list span{overflow-wrap:anywhere}
@media(max-width:760px){
 #v4-preview-background .v4-weather-picker{right:-4px;bottom:calc(100% + 9px);width:min(310px,calc(100vw - 24px))}
 #v4-preview-background .v4-weather-toggle{width:25px;height:25px}
}
