button{color:#fff;background-color:#3f4f68;padding:6px 12px;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:4px;text-transform:none;outline:none;border:none;margin-bottom:2px}h1{color:#098d3b;margin:0;font-size:1.2rem}button:active{background-color:#36384a}p{font-size:12px;opacity:.3}.editor-workspace{display:flex;align-items:stretch;gap:12px}.editor-workspace>.viewport{flex:1;min-width:0;overflow:auto;border:1px solid #d7dce2;border-radius:8px;background:#fff}.editor-workspace>aside{flex:0 0 220px;min-width:0;padding:12px;box-sizing:border-box;background:#fff;border-radius:8px}.editor-workspace h2{font-size:14px;margin:0 0 12px}.editor-workspace dl{margin:0;font-size:12px}.editor-workspace dt{color:#687383;margin-top:12px}.editor-workspace dd{margin:4px 0 0;font-family:ui-monospace,monospace;line-height:1.6;overflow-wrap:anywhere}.element-editor{max-width:1100px;margin:24px auto}.element-editor h1{font-size:24px}.element-editor p{font-size:13px;opacity:1;line-height:1.6}.element-editor .intro,.element-editor .note{color:#687383}.element-editor .toolbar{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;padding:10px 12px;background:#fff}.element-editor .toolbar+.toolbar{border-top:1px solid #edf0f3}.element-editor .tool-group{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.element-editor .tool-group label{display:flex;align-items:center;gap:4px}.element-editor .tool-group:last-child{margin-left:auto}.element-editor .group-name{color:#687383;font-size:12px;margin-right:2px}.element-editor .toolbar a{font-size:12px}.element-editor #element-select{max-width:160px}.element-editor button{cursor:pointer;padding:6px 10px;margin:0;font-size:12px}.element-editor button[aria-pressed=true]{background:#098d3b}.element-editor button:disabled{cursor:default;opacity:.45}.element-editor input,.element-editor select,.element-editor textarea{box-sizing:border-box;max-width:100%;padding:5px;border:1px solid #d7dce2;border-radius:4px;background:#fff;color:inherit;font:inherit}.element-editor label{font-size:12px}.element-editor input[type=file]{width:180px}.element-editor .file-button{display:inline-flex;position:relative;overflow:hidden;align-items:center;justify-content:center;padding:5px 9px;border:1px solid #d7dce2;border-radius:4px;white-space:nowrap;background:#fff}.element-editor .file-button input[type=file]{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.element-editor .file-button:focus-within{outline:2px solid #098d3b;outline-offset:2px}.element-editor input[type=number]{width:56px;flex:0 0 56px;padding:5px 3px;font-variant-numeric:tabular-nums}.element-editor button:focus-visible,.element-editor input:focus-visible,.element-editor select:focus-visible,.element-editor textarea:focus-visible{outline:2px solid #098d3b;outline-offset:2px}.element-editor fieldset{border:0;padding:0;margin:0;min-width:0}.element-editor #file-controls{margin:16px 0 10px;border:1px solid #e1e5e9;border-radius:8px;overflow:hidden}.element-editor .fields{display:grid;gap:8px;font-size:12px}.element-editor .fields label{display:grid;gap:4px}.element-editor .fields .line{display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap}.element-editor .line input,.element-editor .line select{flex:1;min-width:0;width:0}.element-editor .pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 4px}.element-editor .pair label{display:flex;align-items:center;justify-content:flex-end;white-space:nowrap}.element-editor .fields h3{font-size:12px;margin:7px 0 0}.element-editor .directions{display:flex;gap:4px}.element-editor .directions button{flex:1;min-width:0;padding:6px 4px;font-size:12px}.element-editor .field-heading{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf0f3;padding-top:8px}.element-editor .field-heading h3{margin:0}.element-editor .footprint-heading{justify-content:flex-start;gap:8px}.element-editor .footprint-heading h3{flex-shrink:0}.element-editor .field-heading button{padding:3px 6px;font-size:11px}.element-editor .crop-heading{justify-content:flex-start;gap:6px}.element-editor .source-row{display:flex;gap:5px;align-items:center}.element-editor .source-row select{flex:1;width:0;min-width:0}.element-editor summary{cursor:pointer;font-size:12px;color:#687383}.element-editor textarea{width:100%;resize:vertical;font-family:ui-monospace,monospace}.element-editor .editor-workspace{align-items:stretch}.element-editor .editor-workspace>.viewport{position:relative;display:flex;flex-direction:column;overflow:hidden}.element-editor .canvas-controls{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px;border-bottom:1px solid #edf0f3;font-size:12px}.element-editor .canvas-controls label{display:flex;align-items:center;gap:4px}.element-editor .view-controls{display:flex;align-items:center;gap:6px;white-space:nowrap}.element-editor .canvas-controls .grid-control{display:flex;flex-wrap:wrap;flex:1;justify-content:center;gap:6px 12px;padding-inline:12px;white-space:nowrap}.element-editor .canvas-controls .opacity-control{margin-left:auto;white-space:nowrap}.element-editor .canvas-scroll{flex:1 1 0;height:0;min-height:500px;overflow:auto}.element-editor .field-help{color:#687383;font-size:11px;line-height:1.4}.element-editor .canvas-controls input[type=range]{width:80px;padding:0}.element-editor .canvas-controls output{min-width:32px;text-align:right}#editor-canvas{position:relative;width:680px;height:500px;border:0;padding:0;cursor:crosshair;touch-action:none}#editor-canvas.dragging{cursor:grabbing}.element-editor #issues{white-space:pre-wrap;color:#9b3021;background:#fff0ec;padding:12px;border-radius:6px}.element-editor #status{color:#087f5b;margin:8px 0 4px}.element-editor #grid-status{position:absolute;left:10px;bottom:10px;z-index:1;max-width:calc(100% - 40px);margin:0;padding:4px 6px;border-radius:4px;background:#ffffffd9;pointer-events:none}.element-editor .note{font-size:12px}.element-editor dialog{box-sizing:border-box;width:min(720px,90vw);max-height:90vh;padding:16px;border:1px solid #d7dce2;border-radius:8px;color:inherit}.element-editor dialog::backdrop{background:#00000059}.element-editor dialog h2{margin:0;font-size:18px}.element-editor dialog textarea{height:50vh;font-size:12px}.element-editor .dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.element-editor .terrain-context{margin:16px 0;padding:12px;background:#fff;border-radius:8px}.element-editor .context-views{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.element-editor .context-views figure{margin:0;min-width:0}.element-editor .context-views canvas{display:block;width:100%;background:#e8ece8}.element-editor .context-views figcaption{font-size:12px;line-height:1.6;overflow-wrap:anywhere}body.map-editor-page,body.element-editor-page{padding:0;background:#423324;color:#443b2b}.map-demo,.element-editor{--panel: #e4d7b6;--panel-light: #f1e6cd;--edge: #a68d5c;--muted: #796b50;--active: #66502b;max-width:none;margin:0;font-size:12px;accent-color:#886b31}.map-demo h1,.element-editor h1{font-size:16px;font-weight:600;letter-spacing:2px;color:#ecd8a5;margin:0}.map-demo h2,.element-editor h2{font-size:13px;font-weight:600;letter-spacing:1px}.map-demo button,.element-editor button,.element-editor .file-button{border:1px solid var(--edge);border-radius:2px;color:#493e29;background:linear-gradient(var(--panel-light),var(--panel));box-shadow:inset 1px 1px #fff5,0 1px 1px #2c1b221a;min-height:26px;padding:3px 7px;margin:0;font-size:12px}.map-demo button[aria-pressed=true],.element-editor button[aria-pressed=true]{color:#fff0c4;background:var(--active);border-color:#806831;box-shadow:inset 0 1px 3px #241b1455}.map-demo button:hover:not(:disabled),.element-editor button:hover:not(:disabled){filter:brightness(1.06)}.map-demo :is(input,select,textarea),.element-editor :is(input,select,textarea){border-color:var(--edge);border-radius:2px;color:#493e29;background:#f6edd7;font-size:12px}.map-demo select,.element-editor select{padding:3px}.map-demo :is(button,select,input,summary):focus-visible,.element-editor :is(button,select,input,summary):focus-visible{outline:2px solid #c99c42;outline-offset:1px}.map-demo .note,.element-editor .note,.element-editor .field-help{color:var(--muted)}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;clip-path:inset(50%);overflow:hidden!important;white-space:nowrap!important;border:0!important}.help-icon{display:inline-flex;align-items:center;justify-content:center;width:13px;height:13px;margin-left:4px;border:1px solid currentColor;border-radius:50%;color:var(--muted);font:10px sans-serif;vertical-align:middle;cursor:help;flex-shrink:0}.map-demo .workbench-header,.element-editor .editor-header{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:30px;box-sizing:border-box;padding:2px 6px;color:#e4d0a1;background:linear-gradient(#59432d,#403324);border-bottom:1px solid #9b8053}.map-demo .workbench-header h1{margin:0 7px 0 0}.editor-brand{padding-right:7px;margin-right:2px;border-right:1px solid #a68d5c88;font:13px Georgia,serif;letter-spacing:2px;text-decoration:none}.editor-library-link{padding:4px 7px;white-space:nowrap;text-underline-offset:3px}.editor-nav{display:flex;gap:2px;align-items:center;margin-left:auto;font-size:11px}.editor-nav a{padding:4px 8px;border:1px solid transparent;text-decoration:none}.editor-nav a[aria-current=page]{border-color:#a68d5c99;background:#e1cda11a}.map-demo .menu,.element-editor .menu{position:relative}.map-demo .menu>summary,.element-editor .menu>summary{list-style:none;font-size:12px;padding:4px 7px;border-radius:1px;color:#e5d2a6;background:transparent;cursor:pointer}.map-demo .menu>summary:after,.element-editor .menu>summary:after{content:"";display:inline-block;width:6px;height:6px;margin:0 2px 3px 8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}.map-demo .menu>summary::-webkit-details-marker,.element-editor .menu>summary::-webkit-details-marker{display:none}.map-demo .menu[open]>summary,.element-editor .menu[open]>summary{background:#d4b67733}.map-demo .menu-panel,.element-editor .menu-panel{position:absolute;left:0;right:auto;top:calc(100% + 3px);z-index:8;width:min(380px,calc(100vw - 16px));max-height:75vh;overflow:auto;padding:10px;box-sizing:border-box;border:1px solid var(--edge);border-radius:2px;color:#493e29;background:var(--panel-light);box-shadow:0 5px 18px #21180d66}.element-editor .menu-panel{position:fixed;left:8px;right:auto}.map-demo .menu-panel .note{font-size:11px}.map-demo .menu-panel fieldset{gap:9px}.map-demo .control-group+.control-group{border-left-color:#ad986955;padding-left:6px}.map-demo .control-group{gap:3px}.map-demo .canvas-controls,.element-editor .canvas-controls,.element-editor .toolbar{background:linear-gradient(var(--panel-light),var(--panel));border-color:var(--edge);border-radius:0}.map-demo .canvas-controls{padding:3px 5px;margin:0;border:0;border-bottom:1px solid #57391f;color:#f0dab0;background:#87592f url(https://p1.ssl.qhimg.com/t11b673bcd6adbc47e5f9a27588.webp) repeat}.map-demo .canvas-controls button:not(.original-button),.map-demo .canvas-controls select{color:#f0dab0;background:linear-gradient(#e4c08812,#2a170e20),url(https://p1.ssl.qhimg.com/t11b673bcd6adbc47e5f9a27588.webp);border-color:#b18b53}.map-demo .canvas-controls select option{color:#493e29;background:var(--panel-light)}.map-demo .canvas-controls button[aria-pressed=true]{background:#50371f;border-color:#e2bf76}.map-demo .canvas-controls .control-group+.control-group{border-left-color:#e0b57044}.map-demo #controls{gap:5px 7px}.map-demo .icon-button,.element-editor .icon-button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:27px;padding:2px;flex-shrink:0}.icon-button svg,.tool-grid button svg{display:block;width:19px;height:19px}.original-function-icon{width:auto;height:auto;max-width:36px;max-height:25px;display:block;image-rendering:pixelated}.icon-mirrored{transform:scaleX(-1)}.map-demo .original-button{width:36px;height:27px;padding:0;border:0;background:#784c26}.map-demo .icon-toggle{position:relative;display:inline-flex;cursor:pointer}.map-demo .icon-toggle input{position:absolute;width:1px;height:1px;clip-path:inset(50%)}.map-demo .icon-toggle input:checked+span{outline:2px solid #e2c575;outline-offset:-2px}.map-demo .icon-toggle input:focus-visible+span{outline:2px solid #f2c457}.map-demo .icon-toggle input:disabled+span{opacity:.45;cursor:default}.map-demo #zoom-percent{width:82px;margin:0 3px;accent-color:#d5af68;background:transparent}.map-demo #zoom-value{min-width:42px;font-size:11px;font-variant-numeric:tabular-nums}.map-demo #camera-angle{max-width:57px}.map-demo{height:100dvh;min-height:420px;display:flex;flex-direction:column}.map-demo .editor-workspace{flex:1;min-height:0;gap:2px}.map-demo .editor-workspace>.viewport{border:1px solid var(--edge);border-radius:0;background:#d6ba7a}.map-demo .canvas-stage{height:100%}.map-demo #map-canvas{height:100%;min-height:0;border:0;padding:0}.map-demo .editor-workspace>aside{flex:0 0 164px;border:1px solid #927443;border-radius:0;background:#87592f url(https://p1.ssl.qhimg.com/t11b673bcd6adbc47e5f9a27588.webp) repeat;color:#f0d9a7}.map-demo .map-details{padding:0 3px 3px;scrollbar-width:thin;scrollbar-color:#99764b #54391d;scrollbar-gutter:auto}.map-demo .map-details h2{margin:6px 0 5px}.map-demo .map-details .help-icon{color:#dbbb80}.map-demo .map-details dt{color:#ddbf88}.map-demo .map-details dd{font-size:11px}.map-demo #entity-details dl{grid-template-columns:2em minmax(0,1fr);column-gap:6px}.map-demo #entity-details dd{overflow-wrap:anywhere}.map-demo .map-details>details{border-bottom-color:#bd925244;padding:6px 0}.map-demo .map-details>details>summary{color:#eed5a0}.map-demo #source-report{display:none}.map-demo .minimap-panel{position:static;margin:0 0 5px;border:1px solid #a78955;border-radius:0;box-shadow:inset 0 0 0 1px #392917;background:#b2a378;overflow:hidden}.map-demo .map-details>#minimap-panel{padding:0;margin:0 0 3px}.map-demo .minimap-panel>summary{color:#ead7a8!important;padding:3px 6px;background:#533c24;font-size:11px}.map-demo #minimap-angle{color:#d8c08d;margin-left:8px}.map-demo #minimap{width:100%;height:auto;aspect-ratio:1}.map-demo .tool-grid{grid-template-columns:repeat(4,36px);justify-content:start;gap:1px}.map-demo .tool-grid #selection-actions{margin:0}.map-demo .tool-grid #clear-selection{width:36px}.map-demo .tool-grid button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;min-height:30px;height:30px;padding:0;overflow:hidden;border:1px solid transparent;border-radius:0;background:transparent;color:#efdba9;box-shadow:none}.map-demo .tool-grid button[aria-pressed=true]{border-color:#f4d37d;outline:1px solid #4c2d18;outline-offset:-3px;background:#edc66a33;box-shadow:inset 0 1px 4px #29150688}.map-demo .tool-grid button:hover:not(:disabled){background:#edc66a33;border-color:#d4b879}.tool-sprite{display:block;width:36px;height:34px;background-image:url(https://p1.ssl.qhimg.com/t11b673bcd6b59387c1c21dbf37.webp);background-repeat:no-repeat;image-rendering:pixelated;flex-shrink:0}.map-demo .tool-thumbnail{display:block;max-width:34px;max-height:28px;object-fit:contain;image-rendering:pixelated}.map-demo .tool-menu-toggle{position:relative}.map-demo .tool-menu-toggle:after{content:"";position:absolute;bottom:5px;right:3px;width:6px;height:6px;border-right:2px solid #f4d37d;border-bottom:2px solid #f4d37d;filter:drop-shadow(0 1px 1px #392917);transform:rotate(45deg)}.map-demo .tool-menu-toggle[aria-expanded=true]:after{transform:translateY(2px) rotate(225deg)}.map-demo .construction-options{position:fixed;inset:auto;margin:0;width:min(190px,calc(100vw - 12px));max-height:calc(100dvh - 12px);box-sizing:border-box;overflow:auto;padding:4px;border:3px ridge #b69a62;color:#f0d9a7;background:#87592f url(https://p1.ssl.qhimg.com/t11b673bcd6adbc47e5f9a27588.webp) repeat;box-shadow:0 5px 16px #28170d66}.map-demo .construction-options::backdrop{background:transparent}.map-demo .construction-options button{display:block;width:100%;min-height:25px;height:auto;padding:3px 6px;text-align:left;color:#f0d9a7}.map-demo .construction-options button[aria-pressed=true]{outline:none;background:#e7bf5f33;border-color:#c7a15f}.map-demo .tool-group-heading{grid-column:1 / -1;color:#e4c58b;font-size:10px;font-weight:400;margin:4px 0 1px}.map-demo .tool-grid button[data-wall-style="1"]{color:#f19e7e}.map-demo .tool-grid button[data-wall-style="2"]{color:#d5d7d1}.map-demo .tool-grid button[data-wall-style="3"]{color:#e0c16d}.map-demo .tool-grid button[data-wall-style="4"]{color:#c5976b}.map-demo aside h2:not(:first-child){border-top-color:#bd925244;margin-top:6px;padding-top:6px}.map-demo #status,.map-demo #hover-info{border-radius:1px;color:#5d4c31;background:#f0e3c4de;padding:3px 6px;font-size:11px}.map-demo #status{box-sizing:border-box;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.map-demo #hover-info{top:5px;left:5px}.map-demo .issue-panel{left:5px;bottom:5px;max-width:calc(100% - 10px)}.map-demo #cancel-stroke{bottom:5px;right:5px}.map-demo #brush-size-control{position:relative}.map-demo #brush-toggle{display:flex;align-items:center;gap:5px;height:27px;min-width:94px;padding:1px 5px}.map-demo .brush-swatch{grid-template-columns:repeat(9,2px);grid-template-rows:repeat(9,2px);gap:0;padding:2px;margin:0}.map-demo .brush-swatch i{background:transparent}.map-demo .brush-swatch i[data-filled=true]{background:#dfc46e}.map-demo .brush-options{color:#493e29}.map-demo .brush-options{position:absolute;z-index:7;top:calc(100% + 5px);left:0;width:min(350px,calc(100vw - 18px));padding:8px;border:1px solid var(--edge);background:var(--panel-light);box-shadow:0 5px 18px #21180d66}.map-demo .brush-options strong{display:block;font-size:11px;margin-bottom:5px}.map-demo .brush-choice-row{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:2px;margin-top:3px}.map-demo .brush-choice-row button{min-width:0;height:40px;padding:2px 0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;font-size:9px}.map-demo .brush-choice-row svg{width:30px;height:22px;fill:#8d8346;stroke:#5b5436;stroke-width:.15}.map-demo .brush-choice-row button[aria-pressed=true] svg{fill:#e3ce8e;stroke:#fff1bc}.element-editor{height:100dvh;min-height:520px;display:flex;flex-direction:column}.element-editor .editor-header h1{margin-right:6px}.element-editor .editor-header>.help-icon{color:#cdb582}.element-editor .editor-header>.menu{margin-left:3px}.element-editor #file-controls{margin:0;border:0;border-bottom:1px solid var(--edge);border-radius:0;overflow:visible}.element-editor .toolbar{gap:4px 8px;padding:3px 5px}.element-editor .tool-group{gap:4px}.element-editor .toolbar label{font-size:11px}.element-editor .toolbar :is(button,.file-button){box-sizing:border-box;height:26px;font-size:12px;line-height:18px}.element-editor #collection-select{max-width:155px}.element-editor #element-select{max-width:170px}.element-editor .editor-status{display:flex;align-items:center;gap:14px;background:var(--panel);padding:2px 6px;color:var(--muted);min-height:18px}.element-editor #collection-info{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:10px}.element-editor #status{flex-shrink:0;color:#675431;font-size:10px;margin:0}.element-editor #validation{background:var(--panel-light);max-height:130px;overflow:auto}.element-editor .editor-workspace{flex:1;min-height:0;gap:2px}.element-editor .editor-workspace>.viewport{border-radius:0;border-color:var(--edge);background:#c5bd9c}.element-editor .canvas-controls{padding:3px 5px;gap:3px;border-bottom:1px solid var(--edge)}.element-editor .canvas-controls .grid-control{justify-content:flex-start;gap:4px 6px;padding-inline:5px}.element-editor .canvas-controls .opacity-control{font-size:11px}.element-editor .canvas-controls input[type=range]{width:62px}.element-editor .canvas-scroll{min-height:0;flex:1 1 0}.element-editor .editor-workspace>aside{flex:0 0 250px;padding:7px;background:var(--panel);border:1px solid var(--edge);border-radius:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--edge) var(--panel)}.element-editor .fields{gap:6px}.element-editor .fields h3,.element-editor .field-heading{border-top-color:#b4a27677}.element-editor input[type=number]{padding:3px}.element-editor .field-heading{padding-top:6px}.element-editor #grid-status{background:#eee2c5e0;border-radius:1px;left:5px;bottom:5px;font-size:11px}.element-editor .terrain-context{margin:9px 0 0;padding:7px 0;border-top:1px solid var(--edge);border-radius:0;background:transparent}.element-editor .context-views{grid-template-columns:1fr}.element-editor .context-views figcaption{font-size:10px}.element-editor dialog{border-color:var(--edge);border-radius:2px;background:var(--panel-light)}.element-editor .group-name{color:var(--muted)}.element-editor .directions{gap:3px}.element-editor .directions button{padding:4px 2px}.element-editor .editor-header .menu-panel p{font-size:11px}@media (max-width: 759px){.map-demo .editor-workspace{flex-direction:row}.map-demo .editor-workspace>aside{flex-basis:164px}.map-demo .map-details{position:absolute;max-height:none}.map-demo #map-canvas{height:100%;min-height:0}.map-demo .tool-grid{grid-template-columns:repeat(4,36px)}.map-demo .menu-panel{position:fixed;top:31px;left:5px;right:auto}.map-demo #zoom-percent{width:58px}.element-editor .editor-workspace>aside{flex-basis:225px}}@media (max-width: 520px){.map-demo .editor-workspace>aside{flex-basis:148px}.map-demo .tool-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.map-demo h1,.element-editor h1{font-size:14px;letter-spacing:0}.editor-brand{display:none}.map-demo .workbench-header{gap:1px}.editor-nav a{padding:4px}.map-demo .brush-options{position:fixed;top:auto;left:5px}.element-editor .editor-workspace{flex-direction:column;overflow:auto}.element-editor .editor-workspace>.viewport{flex:0 0 55vh}.element-editor .editor-workspace>aside{flex:auto;overflow:visible}.element-editor .editor-status{flex-wrap:wrap;gap:2px}}
