#world-editor{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#111c19;color:#dce2d2;font:12px/1.5 Georgia,serif;overflow:hidden;box-shadow:none}
#world-editor[open]{display:flex;flex-direction:column}#world-editor::backdrop{background:#101914}#world-editor *{box-sizing:border-box}#world-editor button,#world-editor input,#world-editor select,#world-editor textarea{font:12px/1.35 Georgia,serif}#world-editor button{background:#22352b;border:1px solid #526047;padding:8px 11px;color:#dedcc0;border-radius:3px;white-space:nowrap}#world-editor button:hover:not(:disabled){background:#354a34;border-color:#b6aa73}#world-editor button:disabled{opacity:.42;cursor:default}#world-editor button.selected,#world-editor .we-primary{border-color:#c4b278;background:#435139;color:#ffedb7}#world-editor button:focus-visible,#world-editor canvas:focus-visible{outline:2px solid #dbc58a;outline-offset:-3px}#world-editor input,#world-editor select,#world-editor textarea{width:100%;background:#111d18;border:1px solid #43533f;border-radius:3px;color:#e8e4ce;padding:8px;min-width:0}#world-editor textarea{resize:vertical;max-height:180px}#world-editor input[type=checkbox]{width:14px;height:14px;accent-color:#b7b583;padding:0}#world-editor h2,#world-editor h3,#world-editor h4,#world-editor p{margin:0}#world-editor h2{font-size:24px;line-height:1.2;color:#f0dfae}#world-editor h3{font-size:18px;font-weight:normal;color:#e4d2a2}#world-editor h4{font-size:13px;color:#d6c38e;font-weight:normal;margin-top:9px}#world-editor label{display:flex;flex-direction:column;gap:5px;color:#b9c3ad;font-size:11px;min-width:0}.we-header{min-height:78px;display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid #536045;background:linear-gradient(100deg,#263a2c,#16251e)}.we-brand{margin-right:12px;min-width:168px}.we-eyebrow{font:8px/1.8 Arial,sans-serif;letter-spacing:1.8px;color:#b5ba93}.we-header #world-editor-zone{width:210px}.we-revision{margin-left:auto;font:10px/1.7 Arial,sans-serif;color:#afbaa4;white-space:nowrap}.we-unsaved{color:#edcd85}.we-toolbar{min-height:46px;display:flex;align-items:center;gap:7px;padding:7px 18px;border-bottom:1px solid #3c4c3a;background:#18271f}.we-mode-tools{display:flex;gap:4px;margin-right:9px}.we-toolbar button{padding:6px 9px!important}.we-check{display:flex!important;flex-direction:row-reverse!important;align-items:center;justify-content:flex-end;gap:6px!important;white-space:nowrap}.we-toolbar .we-check:first-of-type{margin-left:auto}.we-body{display:grid;grid-template-columns:238px minmax(0,1fr) 272px;min-height:0;flex:1}.we-palette,.we-inspector{min-height:0;background:#19291f;display:flex;flex-direction:column;border-right:1px solid #43533e;overflow:hidden}.we-inspector{border-right:0;border-left:1px solid #43533e;background:#1a2921}.we-palette-head{display:flex;flex-direction:column;gap:8px;padding:15px 13px 10px;border-bottom:1px solid #3c4e38}.we-assets{overflow:auto;padding:9px;display:flex;flex-direction:column;gap:5px;min-height:0;scrollbar-width:thin;scrollbar-color:#56674a transparent}.we-asset{min-height:48px;display:block;text-align:left!important;white-space:normal!important;width:100%;position:relative;padding:8px 10px 8px 15px!important;background:linear-gradient(110deg,#283b2b,#1c2d22)!important;flex-shrink:0}.we-asset::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:#879364;opacity:.6}.we-asset.selected{background:#45503a!important}.we-asset.selected::before{background:#e7d19a;opacity:1}.we-asset small{display:block;font:9px/1.4 Arial,sans-serif;color:#9faa96;margin-top:3px}.we-asset.selected small{color:#ded9b4}.we-more{margin:8px}.we-view{position:relative;overflow:hidden;min-width:0;background:radial-gradient(ellipse at 50% 35%,#425542,#202f27)}#world-editor-canvas{display:block;width:100%;height:100%;outline:none;touch-action:none}.we-preview-badge{position:absolute;left:15px;top:14px;background:#172a20df;border:1px solid #75826775;padding:7px 10px;font:9px/1.5 Arial,sans-serif;letter-spacing:1.3px;color:#d2d0a6;pointer-events:none}.we-view-hint{position:absolute;left:16px;right:16px;bottom:15px;width:fit-content;max-width:calc(100% - 32px);background:#12221bdc;border:1px solid #7180655c;padding:7px 11px;color:#c4ccb4;font:10px/1.6 Arial,sans-serif;pointer-events:none}.we-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;text-align:center;padding:30px;color:#c3cbb5;background:#263b2a55}.we-empty-title{font-size:27px;color:#e8d6a8}.we-walk-note{position:absolute;top:55px;left:15px;right:15px;width:fit-content;background:#17271ee8;border:1px solid #7d895c;padding:9px 13px;color:#e1d9af;font:10px/1.7 Arial,sans-serif;pointer-events:none}.we-inspector-tabs{display:flex;flex-shrink:0;border-bottom:1px solid #4d5b43;padding:9px;gap:5px}.we-inspector-tabs button{flex:1}.we-inspector-content{overflow:auto;padding:15px;display:flex;flex-direction:column;gap:12px;scrollbar-width:thin;scrollbar-color:#596c4b transparent}.we-property-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.we-id{font:9px/1.5 monospace;color:#7f957d;overflow-wrap:anywhere}.we-muted{font:10px/1.7 Arial,sans-serif!important;color:#9faa96}.we-property-preview{font:11px/1.5 Arial,sans-serif;color:#c6ccb7;border-bottom:1px solid #3a4c36;padding-bottom:7px}.we-inline{display:flex;gap:7px}.we-inline>*{flex:1}.we-exit{border:1px solid #46583f;padding:12px;background:#213427;display:flex;flex-direction:column;gap:9px}.we-exit>button{align-self:flex-end;padding:4px 8px!important;font-size:10px!important}.we-exit strong{font-weight:normal;color:#dcca9a}.we-footer{padding:9px 15px;min-height:77px;display:flex;flex-direction:column;gap:7px;border-top:1px solid #526043;background:#15241c}.we-status{font:11px/1.5 Arial,sans-serif;min-height:16px;color:#bdc9b0}.we-status.we-error{color:#f0b99f}.we-file-tools{display:flex;gap:7px;align-items:center}.we-file-tools button{padding:5px 9px!important;font-size:10px!important}.we-file-tools select{width:190px!important;padding:5px!important;font-size:10px!important;margin-left:auto}.we-create{position:absolute;inset:0;background:#08140dc9;z-index:5;display:flex;align-items:center;justify-content:center;padding:22px;backdrop-filter:blur(3px)}.we-create form{width:420px;max-width:100%;padding:26px;border:1px solid #a79866;background:linear-gradient(140deg,#304330,#17291e);box-shadow:0 20px 80px #0009;display:flex;flex-direction:column;gap:18px}.we-create p{color:#bac6ad;font:12px/1.8 Arial,sans-serif}.we-create h3{font-size:24px!important}.we-create .we-inline{margin-top:3px}
@media(min-width:1700px){.we-body{grid-template-columns:280px minmax(0,1fr) 310px}.we-assets{display:grid;grid-template-columns:1fr;align-content:start}.we-header{padding-left:23px;padding-right:23px}.we-inspector-content{padding:19px}}
@media(max-width:1100px){.we-body{grid-template-columns:190px minmax(0,1fr) 235px}.we-header{gap:7px;padding:10px 12px}.we-brand{min-width:145px;margin-right:0}#world-editor h2{font-size:21px}.we-header #world-editor-zone{width:165px}.we-revision{font-size:9px}.we-toolbar{padding:6px 10px;gap:5px}.we-toolbar button{font-size:10px!important;padding:6px!important}.we-mode-tools{margin-right:3px}.we-toolbar label{font-size:9px!important}.we-palette-head{padding:12px 9px 9px}.we-inspector-content{padding:12px}.we-footer{min-height:78px}}
@media(max-width:800px){.we-header{flex-wrap:wrap;min-height:99px}.we-brand{margin-right:auto}.we-header #world-editor-zone{order:5;flex:1}.we-header .we-revision{order:6}.we-header #world-editor-new{order:7}.we-toolbar{flex-wrap:wrap;gap:4px}.we-toolbar .we-check:first-of-type{margin-left:0}.we-body{grid-template-columns:165px minmax(200px,1fr)}.we-inspector{position:absolute;right:8px;top:158px;bottom:110px;width:220px;z-index:2;border:1px solid #7a805d;box-shadow:0 7px 25px #0006;max-height:40vh;opacity:.97}.we-inspector-content{padding:10px}.we-inspector-tabs button{font-size:10px!important;padding:6px!important}.we-footer{min-height:103px}.we-file-tools{flex-wrap:wrap}.we-file-tools select{margin-left:0;width:145px!important}.we-preview-badge{left:9px;top:9px;font-size:8px;letter-spacing:.4px;padding:5px 7px}.we-view-hint{left:8px;right:8px;font-size:9px}.we-empty-title{font-size:21px}.we-palette-head h3{font-size:16px!important}.we-assets{padding:6px}.we-asset{font-size:11px!important}}
#world-editor [hidden]{display:none!important}
.we-publish-review{position:absolute;inset:0;z-index:6;display:flex;align-items:center;justify-content:center;padding:24px;background:#08140de6;backdrop-filter:blur(3px)}.we-publish-body{display:flex;flex-direction:column;gap:15px;width:650px;max-width:100%;max-height:90%;overflow:auto;padding:25px;background:linear-gradient(140deg,#304330,#17291e);border:1px solid #c1aa70;box-shadow:0 20px 80px #0009}.we-publish-body>p{color:#c5ceb8;font:12px/1.7 Arial,sans-serif}.we-publish-zones{display:flex;flex-direction:column;gap:12px;padding:13px;border:1px solid #566349;background:#182a20}.we-publish-feedback{display:flex;flex-direction:column;gap:8px;color:#daca9c;font:11px/1.7 Arial,sans-serif}.we-publication-warning{font:11px/1.6 Arial,sans-serif!important;color:#e5c293}.we-publication-entry{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid #75815b;background:#253b29}.we-publication-entry h4{margin:0!important}#world-editor .we-publish-button{background:#3f4430;border-color:#aa925d;color:#f1dba8}.we-header .we-revision{white-space:normal;max-width:280px}.we-publish-body .we-inline{flex-wrap:wrap}.we-publish-body .we-inline button{white-space:normal!important}

#world-editor .we-publish-zones .we-check{white-space:normal;overflow-wrap:anywhere}#world-editor .we-publish-zones input{flex-shrink:0}

#world-editor .we-reward-card{padding:10px;border:1px solid #46563f;background:#17281f;margin:8px 0;display:block}#world-editor .we-reward-card summary{cursor:pointer;color:#e4d2a2;margin-bottom:8px}#world-editor .we-reward-card>label,#world-editor .we-item-picker{margin:9px 0}#world-editor .we-item-picker{display:grid;gap:6px}#world-editor .we-reward-card>button{margin-top:8px;white-space:normal}#world-editor .we-inspector-tabs{flex-wrap:wrap}
#world-editor .we-create form{max-height:calc(100vh - 44px);overflow:auto}
#world-editor .we-loot-library{display:grid;gap:10px;margin:12px 0;padding:12px;border:1px solid #697052;background:#1b2d24}#world-editor .we-loot-library h4{margin:0;font-size:15px}#world-editor .we-loot-library>button{white-space:normal}#world-editor .we-loot-library .we-inline{flex-wrap:wrap}#world-editor .we-loot-library .we-inline button{white-space:normal;min-width:65px}#world-editor [data-reward-editor]{display:grid;gap:10px}#world-editor [data-reward-editor]>button,#world-editor .we-reward-card>button{white-space:normal}#world-editor .we-loot-preset-preview{display:grid;gap:6px}#world-editor .we-loot-preset-row{display:flex;gap:8px;align-items:center;padding:4px 0;border-bottom:1px solid #344a39}#world-editor .we-loot-preset-row svg{width:30px;height:30px;flex:0 0 30px}#world-editor .we-loot-preset-row>span{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}#world-editor .we-loot-preset-row small{font:11px/1.4 system-ui;color:#bfcaac}#world-editor .we-loot-assignment{white-space:normal;overflow-wrap:anywhere}#world-editor .we-loot-assignment input{flex-shrink:0}
/* Keep filter controls compact while preserving an independently scrolling library. */
.we-palette-head{flex-shrink:0;max-height:66%;overflow-y:auto;scrollbar-width:thin}
.we-assets{flex:1}
.we-level-range,.we-library-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.we-library-summary{display:flex;align-items:center;justify-content:space-between;gap:5px}
.we-library-summary p{margin:0}
#world-editor .we-level-range input{min-width:0}
.we-level-help{font-size:10px;line-height:1.4;margin:0}
#world-editor .we-clear-filters{padding:4px 8px;min-height:26px;font-size:10px;align-self:flex-start}
.we-asset small.we-asset-level{color:#d4c58e}
@media(max-width:1000px){#world-editor .we-inspector:has(#world-editor-research-tab.selected),#world-editor .we-inspector:has(.we-research-source){max-height:65vh;width:min(350px,calc(100% - 185px));bottom:95px}}
.we-zone-picker{display:grid;grid-template-columns:minmax(100px,1fr) 110px;gap:5px;flex:1 1 290px;min-width:210px;max-width:480px}.we-zone-picker #world-editor-zone{grid-column:1/-1;width:100%;max-width:100%;min-width:0}.we-zone-picker small{grid-column:1/-1}.we-zone-picker input,.we-zone-picker select{min-width:0!important;width:100%}#world-editor .we-research-selected{max-height:260px;overflow:auto}#world-editor .we-research-row{display:flex;align-items:center;justify-content:space-between;gap:6px;border-bottom:1px solid #394b3a;padding:5px 0}#world-editor .we-research-row span{overflow-wrap:anywhere}#world-editor .we-research-row button{flex-shrink:0}#world-editor .we-research-source{border-top:1px solid #46563f;margin-top:12px;padding-top:8px}#world-editor .we-reward-card select{width:100%;min-width:0}
