#svgz-decor{width:min(1060px,98vw);max-width:98vw;max-height:96dvh;padding:0;border:2px solid #758ca4;border-radius:12px;background:#e9edf0;color:#162d40;box-shadow:0 20px 80px #000b;overflow:auto;font:14px Arial,sans-serif}#svgz-decor::backdrop{background:#000b}#svgz-decor *{box-sizing:border-box}#svgz-decor button,#svgz-decor select,#svgz-decor input{font:inherit;color:inherit}#svgz-decor button{min-height:36px;border:1px solid #91a5b8;border-radius:7px;padding:6px 12px;background:linear-gradient(#fff,#d3e1ec);cursor:pointer;font-weight:bold}#svgz-decor button:disabled{opacity:.45;cursor:default}#svgz-decor button:focus-visible,#svgz-decor input:focus-visible,#svgz-decor select:focus-visible{outline:3px solid #d5ae6b;outline-offset:2px}.decor-header{display:flex;align-items:center;gap:12px;background:linear-gradient(#708cac,#46678a);color:white;padding:8px 14px}.decor-header img{width:46px;height:32px;object-fit:contain}.decor-header h2{font:bold 24px 'Trebuchet MS',Arial;margin:0;flex:1;text-shadow:1px 2px #223d58}.decor-header [data-close]{border-radius:50%!important;background:#bf3e32!important;color:#fff!important;border:2px solid #fff!important;width:34px;padding:0!important;min-height:34px!important;font-size:22px!important}.decor-room-select{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:8px 12px}.decor-room-select label:first-child{flex:1;display:flex;align-items:center;gap:8px;min-width:220px}.decor-room-select select{width:100%;min-width:0;padding:7px;border:1px solid #a3b2c0;border-radius:5px;background:#fff}.decor-check{white-space:nowrap}.decor-stage-wrap{position:relative;background:#17191b;min-height:100px}.decor-stage{position:relative;width:min(100%,760px);aspect-ratio:760/480;margin:auto;overflow:hidden;background:#000}.decor-stage iframe{position:absolute;width:760px;height:480px;left:0;top:0;border:0;transform-origin:0 0}.decor-loading{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:24px;background:#172331ed;color:#fff;font-weight:bold}.decor-loading[hidden]{display:none}.decor-editbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between;padding:8px 12px;background:#d5dfe8;border-bottom:1px solid #aebdca}#decor-selection{overflow:hidden;text-overflow:ellipsis;max-width:360px;font-weight:bold}.decor-item-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.decor-item-actions label{display:flex;align-items:center;gap:4px}.decor-item-actions select{height:35px;border:1px solid #91a5b8;border-radius:5px}.decor-savebar{display:flex;align-items:center;gap:8px;padding:8px 12px}.decor-savebar #decor-status{flex:1;font-size:12px;min-width:0}.decor-savebar .error{color:#a72123}.decor-savebar #decor-save{background:linear-gradient(#70bf3a,#337615);color:white;border-color:#3c7b25}.decor-savebar #decor-clear{background:linear-gradient(#e75e40,#bd2f22);color:white;border-color:#a82b24}.decor-inventory{background:#261b30;padding:10px;color:#fff}.decor-inventory form{display:flex;gap:8px;flex-wrap:wrap}.decor-inventory input{background:#fff;color:#172331!important;border:1px solid #8195aa;border-radius:18px;padding:7px 13px;min-width:170px;flex:1}.decor-inventory select{max-width:230px;background:#fff;color:#172331!important;border:1px solid #8195aa;border-radius:5px;padding:7px}.decor-inventory form button{color:#172331!important}.decor-results-label{font-size:12px;min-height:26px;padding:7px 0}.decor-inventory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;max-height:245px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.decor-inventory-item{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;background:#171b1e!important;color:white!important;border:1px solid #45505b!important;padding:7px!important;min-height:130px!important;text-align:center}.decor-inventory-item img{height:85px;width:100%;object-fit:contain;background:white;border-radius:4px}.decor-inventory-item span{font-size:12px;line-height:16px;max-height:32px;overflow:hidden}.decor-inventory-item:hover{border-color:#d5ae6b!important}.decor-inventory-item.no-image:before{content:'Artwork unavailable';font:11px Arial;display:grid;place-items:center;height:85px;color:#c5c5c5}#decor-more{display:block;margin:9px auto 0;color:#172331!important}#decor-more[hidden]{display:none}@media(max-width:600px){#svgz-decor{width:100vw;max-width:100vw;max-height:100dvh;border-radius:0}.decor-header h2{font-size:21px}.decor-room-select{gap:6px;padding:7px}.decor-editbar,.decor-savebar{padding:7px}.decor-savebar{flex-wrap:wrap}.decor-savebar #decor-status{order:4;flex-basis:100%}.decor-inventory-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:260px}.decor-inventory select{flex:1;max-width:none;min-width:0}.decor-inventory-item{min-height:115px!important}.decor-inventory-item img{height:70px}.decor-header img{width:38px}.decor-item-actions{gap:4px}#decor-selection{max-width:100%;font-size:12px}.decor-room-select label:first-child{flex-basis:100%}}

/* Keep game controls independent of the site's general form and dialog rules. */
#svgz-decor{color-scheme:light}
#svgz-decor label{display:flex;flex-direction:row;align-items:center;gap:6px;color:#162d40;font:13px Arial,sans-serif}
#svgz-decor input[type=checkbox]{appearance:auto;display:inline-block;width:17px;height:17px;min-height:0;flex:none;margin:0;accent-color:#547898}
#svgz-decor .decor-check{flex:none;white-space:nowrap}
#svgz-decor select{background:#fff;color:#162d40}
#svgz-decor .decor-room-select{gap:8px}
#svgz-decor .decor-inventory select{color:#162d40!important}
@media(max-width:600px){
 #svgz-decor[open]{inset:0!important;margin:auto!important;padding:0!important;width:100vw!important;max-width:100vw!important;max-height:100dvh!important;border-radius:0!important}
 #svgz-decor .decor-inventory form select{flex:1 1 100%;width:100%;max-width:100%}
 #svgz-decor .decor-inventory input{min-width:0;flex:1 1 170px}
 #svgz-decor .decor-check{margin-right:auto}
 #svgz-decor .decor-item-actions button,#svgz-decor .decor-savebar button{min-height:40px}
}

#svgz-decor .decor-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#svgz-decor .decor-context{position:absolute;z-index:4;width:190px;padding:5px;border:2px solid #456a80;border-radius:12px;background:linear-gradient(135deg,#6d9ab3,#426d87);box-shadow:2px 3px 5px #0008;color:#fff}
#svgz-decor .decor-context[hidden]{display:none!important}
#svgz-decor .decor-context-name{font:bold 11px/15px Arial;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 3px 3px}
#svgz-decor .decor-context-body{display:grid;grid-template-columns:96px 1fr;gap:4px}
#svgz-decor .decor-context h3{font:bold 15px/20px 'Trebuchet MS',Arial;color:#fff;text-shadow:1px 1px #315470;margin:0 0 3px;text-align:center}
#svgz-decor .decor-layer-controls{display:grid;grid-template-columns:26px 1fr;gap:3px}
#svgz-decor .decor-layer-dots{display:flex;flex-direction:column;align-items:center;justify-content:space-between}
#svgz-decor .decor-layer-dots button{padding:0;border:0;background:transparent;min-height:18px;height:18px;width:26px;border-radius:10px;box-shadow:none}
#svgz-decor .decor-layer-dots button span{display:block;margin:auto;width:13px;height:13px;border:1.5px solid #fff;border-radius:50%;background:#72a7b5}
#svgz-decor .decor-layer-dots button[aria-pressed=true] span{background:#fff;box-shadow:0 0 0 2px #2e526e}
#svgz-decor .decor-layer-arrows{display:flex;flex-direction:column;gap:4px}
#svgz-decor .decor-layer-arrows button{padding:1px;min-height:43px;height:43px;border:3px solid #7896a7;border-radius:9px;background:linear-gradient(#c7e3f3,#9fc4dc)}
#svgz-decor .decor-context svg{display:block;width:100%;height:100%;fill:white;stroke:#27628c;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
#svgz-decor .decor-context-rotate button{width:100%;height:90px;padding:8px 3px;min-height:90px;border:3px solid #7896a7;border-radius:10px;background:linear-gradient(#c7e3f3,#9fc4dc)}
#svgz-decor .decor-context-footer{display:flex;gap:4px;padding-top:5px}
#svgz-decor .decor-context-footer button{flex:1;padding:3px 2px;min-height:28px;font-size:11px;background:#b7d4e7;color:#234b67;border:1px solid #6e90a6}
#svgz-decor .decor-context button:disabled{opacity:.45}
#svgz-decor .decor-inventory-item{touch-action:pan-y;cursor:grab}
#svgz-decor .decor-inventory-item img{touch-action:none;user-select:none;-webkit-user-drag:none}
#svgz-decor.decor-dragging,#svgz-decor.decor-dragging *{cursor:grabbing!important;user-select:none}
#svgz-decor .decor-drag-ghost{position:absolute;pointer-events:none;z-index:20;width:74px;height:74px;padding:4px;border:1px solid #d5ae6b;border-radius:7px;background:#fffd;box-shadow:0 3px 12px #0005}
#svgz-decor .decor-drag-ghost img{width:100%;height:100%;object-fit:contain}
@media(max-width:600px){
 #svgz-decor .decor-layer-dots button{height:22px;min-height:22px}
 #svgz-decor .decor-layer-arrows button{height:53px;min-height:53px}
 #svgz-decor .decor-context-rotate button{height:110px;min-height:110px}
 #svgz-decor .decor-context-footer button{height:34px;min-height:34px}
}

/* Give the room the available screen while keeping its inventory in reach. */
#svgz-decor[open]{display:flex;flex-direction:column;width:min(1440px,98vw);height:98dvh;max-height:98dvh;overflow:hidden}
#svgz-decor .decor-header,#svgz-decor .decor-room-select,#svgz-decor .decor-savebar{flex:none}
#svgz-decor .decor-stage-wrap{flex:1 1 auto;min-height:150px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#080808}
#svgz-decor .decor-stage{flex:none;max-width:100%;margin:auto}
#svgz-decor .decor-inventory{flex:none;transition:box-shadow .12s,background-color .12s}
#svgz-decor .decor-inventory-grid{max-height:160px}
#svgz-decor .decor-inventory.decor-return-target{background:#354626;box-shadow:inset 0 0 0 3px #b6e67a}
#svgz-decor .decor-inventory.decor-return-target .decor-results-label{color:#d6f7b3}
@media(max-width:600px){
 #svgz-decor[open]{height:100dvh;max-height:100dvh}
 #svgz-decor .decor-inventory-grid{max-height:130px}
 #svgz-decor .decor-inventory{padding:7px}
 #svgz-decor .decor-room-select button{padding:5px 7px}
 #svgz-decor .decor-header{padding:5px 10px}
 #svgz-decor .decor-context{width:176px}
}

#svgz-decor .decor-zoom{display:flex;gap:3px;align-items:center}#svgz-decor .decor-zoom button{padding:5px 9px}#svgz-decor .decor-zoom [data-zoom=out],#svgz-decor .decor-zoom [data-zoom=in]{width:34px;font-size:18px}

@media(max-height:500px){
 #svgz-decor[open]{display:block;height:auto;overflow:auto}
 #svgz-decor .decor-stage-wrap{height:max(55dvh,250px)}
 #svgz-decor .decor-inventory-grid{max-height:130px}
}

#svgz-decor .decor-inventory-item{position:relative}
#svgz-decor .decor-inventory-item .decor-apply{position:absolute;top:59px;left:12px;right:12px;max-height:none;padding:5px;border-radius:5px;background:#285e24;color:#fff;font:bold 13px/18px Arial;opacity:0;pointer-events:none;transition:opacity .1s}
#svgz-decor .decor-inventory-item[data-pattern]:hover .decor-apply,#svgz-decor .decor-inventory-item[data-pattern]:focus-visible .decor-apply{opacity:1}
#svgz-decor .decor-inventory-item[data-pattern],#svgz-decor .decor-inventory-item[data-pattern] img{cursor:pointer;touch-action:pan-y}
@media(hover:none){#svgz-decor .decor-inventory-item .decor-apply{opacity:1;top:44px}}

/* Keep the room steady while search results and pattern names change. */
#svgz-decor .decor-inventory-grid{height:160px}
@media(max-width:600px),(max-height:500px){#svgz-decor .decor-inventory-grid{height:130px}}
