.module-window{position:fixed;z-index:900;top:105px;left:50%;transform:translateX(-50%);width:min(860px,calc(100vw - 24px));max-height:calc(100dvh - 230px);overflow:auto;padding:16px;background:#302115 url('/grod-assets/img/ui/hud/tekstura.png') center/180px;border:2px solid #a88049;border-radius:6px;box-shadow:0 10px 40px #000b;color:#efdab0}.module-window[hidden]{display:none}.module-window header{display:flex;justify-content:space-between;align-items:center}.module-window h2{margin:0;font-size:23px}.module-window button{background:#49301b;color:#ffe4b7;border:1px solid #b18a50;border-radius:4px;padding:7px 10px;cursor:pointer}.module-window button:disabled{opacity:.45;cursor:default}.module-window nav{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.module-item{padding:12px;margin:8px 0;border:1px solid #87673c;border-radius:4px}.module-item h3{margin:0}.module-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:10px 0}.module-row span{flex:1;min-width:180px}.module-row input{width:180px}.module-tools{position:fixed;right:10px;top:56px;z-index:550;display:flex;gap:5px}.module-tools button{width:34px;height:34px;background:#49301b;border:1px solid #b18a50;border-radius:4px;color:#ffe4b7;font-size:20px}.module-window p{font-size:13px;line-height:1.4}#module-feedback{color:#ffdf9c}.module-window output{min-width:40px}@media(max-width:650px){.module-window{top:100px;max-height:calc(100dvh - 216px);padding:10px}.module-window h2{font-size:19px}.module-row span{min-width:130px}.module-row input{width:130px}.module-window nav button{font-size:11px;padding:5px}.module-tools{right:6px}}
.social-form{display:grid;gap:10px;margin:12px 0}.social-form label{display:grid;gap:4px}.social-form input,.social-form textarea,.social-form select,#module-content>select{box-sizing:border-box;width:100%;max-width:100%;background:#241b12;border:1px solid #92703e;border-radius:3px;padding:7px;color:#ffe4b7;font:inherit}.social-form input[type=checkbox]{width:auto;justify-self:start}.module-item{overflow-wrap:anywhere}.module-item button{margin:3px}.module-tools{max-width:calc(100vw - 80px);flex-wrap:wrap;justify-content:flex-end}.module-item summary{cursor:pointer;font-weight:bold}
@media(max-width:650px){.compact-controls button{font-size:0;box-sizing:border-box;width:40px;min-width:40px;height:34px;padding:4px}.compact-controls{gap:6px}#toggle-menu:before{content:"☰";font-size:18px}#toggle-detail:before{content:"⌂";font-size:18px}.module-tools{max-width:calc(100vw - 108px);gap:4px}.module-tools button{width:28px;height:34px;font-size:18px}}
@media(max-width:650px){.live-status{top:92px}.module-window{top:124px;max-height:calc(100dvh - 240px)}}

.world-controls{display:flex;flex-wrap:wrap;gap:8px}.world-controls input{width:72px}
.world-iso{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;padding:20px 8px;margin:12px 0;min-height:200px;background:radial-gradient(ellipse,#64774788,#333c27)}
.world-land{height:64px!important;background:#657d46!important;border:2px solid #a0a567!important;transform:skewY(-18deg);border-radius:8px!important;box-shadow:0 6px 0 #343d29;padding:2px!important}
.world-land span,.world-land small{display:block;transform:skewY(18deg)}.world-land span{font-size:25px}.world-land.occupied{background:#886943!important}.world-land.own{background:#447773!important}.world-land[aria-pressed=true]{outline:3px solid #ebc569;outline-offset:2px}.world-detail button{margin:4px}
@media(max-width:650px){.world-iso{gap:8px;padding:20px 5px}.world-land{height:50px!important}.world-land span{font-size:20px}}

.module-window a{color:#ffe4b7}.module-window pre{white-space:pre-wrap;overflow-wrap:anywhere}
#retry-command{position:fixed;z-index:1300;bottom:110px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 24px);font:inherit;font-size:12px;padding:8px;background:#49301b;color:#ffe4b7;border:1px solid #b18a50;border-radius:4px;cursor:pointer}
