/* Workspace scoped to DEV, borrowing the validated 4.1 typography and palette. */
.pli-editor{position:fixed;inset:0;z-index:140;display:flex;flex-direction:column;background:transparent;color:#e5e9dd;font-family:'Sora',sans-serif;font-size:12px}
.pli-editor[hidden],.editor-testbar[hidden]{display:none}
.pli-editor button,.pli-editor input,.pli-editor select,.pli-editor textarea,.editor-testbar button{font:inherit;color:inherit;box-sizing:border-box}
.pli-editor button,.editor-testbar button{min-height:36px;padding:8px 12px;background:#243e49;border:1px solid #79928a40;border-radius:8px;cursor:pointer;letter-spacing:0;text-transform:none}
.pli-editor button:hover,.editor-testbar button:hover{background:#36505b;border-color:#c4b99180}
.pli-editor button:disabled{opacity:.4;cursor:default}.pli-editor :focus-visible,.editor-testbar :focus-visible{outline:2px solid #ecc88e;outline-offset:2px}
.pli-editor button.primary{background:#e1c494;color:#1b2d35;min-height:36px;font-size:12px}
.pli-editor .editor-toolbar{position:static;height:auto;flex:none;display:flex;gap:16px;align-items:center;justify-content:space-between;padding:12px 18px;background:#142b35f5;border-bottom:1px solid #96b4ab30;pointer-events:auto;z-index:auto}
.editor-identity{display:grid;gap:4px;white-space:nowrap}.editor-identity small{font-size:9px;color:#a7bdb5;letter-spacing:1px}.editor-identity strong{font-weight:500;font-size:18px}.editor-draft-title{color:#b3c7bd;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.editor-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.editor-workspace{display:grid;grid-template-columns:248px minmax(260px,1fr) 300px;flex:1;min-height:0}.editor-library,.editor-inspector{background:#172e38f5;overflow:auto;overscroll-behavior:contain;padding:14px;border-right:1px solid #8fa69d30}.editor-inspector{border-left:1px solid #8fa69d30;border-right:0}
.editor-new-details{margin:0 0 18px;padding-bottom:15px;border-bottom:1px solid #88a59925}.editor-new-details>summary{font-size:12px;color:#dcc39b;cursor:pointer;line-height:1.8}.editor-new-details .editor-section{padding-top:12px;border:0;margin:0;padding-bottom:0}
.editor-section{display:flex;flex-direction:column;gap:7px;border-bottom:1px solid #88a59925;padding-bottom:18px;margin-bottom:18px}.editor-section h3{font-weight:500;font-size:15px;line-height:1.5;margin:0 0 3px}.editor-section h4{font-size:12px;font-weight:500;color:#d1bd99;margin:12px 0 0}.editor-section label{font-size:10px;color:#b7c9c0;margin-top:3px;text-transform:none;letter-spacing:0;display:flex;gap:8px;align-items:center}
.editor-section input:not([type=checkbox]),.editor-section select,.editor-section textarea{min-height:34px;background:#0d232d;border:1px solid #859e963d;border-radius:6px;padding:7px 8px;min-width:0;width:100%}.editor-section input[type=checkbox]{accent-color:#ddc28f;width:16px;height:16px}.editor-note{font-size:10px;line-height:1.7;color:#9db8b0;margin:0;white-space:pre-line}.editor-node-list{max-height:245px;overflow:auto;display:flex;flex-direction:column;gap:3px}.editor-node-list button{font-size:10px;text-align:left;min-height:30px;padding:6px}.editor-node-list [aria-pressed=true]{background:#3a555d;border-color:#dfc18b;color:#ffe6b3}.editor-coordinates{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.editor-coordinates label{grid-row:1}.editor-coordinates input{grid-row:2}.editor-property-actions{display:flex;gap:4px;flex-wrap:wrap}.editor-property-actions button{font-size:10px;padding:7px 8px}.editor-section textarea{min-height:220px;font:10px/1.6 monospace;resize:vertical}.editor-section details{margin-top:10px}.editor-section summary{cursor:pointer;color:#dbc7a5;font-size:10px;line-height:1.7}.editor-section details button{margin-top:7px}.editor-section pre{font:10px/1.6 monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow:auto}
.editor-viewport{position:relative;min-width:0;touch-action:none;cursor:grab;overflow:hidden}.editor-viewport:active{cursor:grabbing}.editor-camera-help{position:absolute;bottom:12px;left:14px;right:14px;margin:0;color:#a4b9b2;line-height:1.7;font-size:10px;pointer-events:none;text-shadow:0 1px 4px #0a1620}.editor-view-tools{position:absolute;top:12px;left:12px;display:flex;gap:4px;z-index:3}.editor-view-tools button{font-size:10px;min-height:30px;padding:5px 9px;background:#1c333de6}.editor-labels{position:absolute;inset:0;pointer-events:none}.editor-labels span{position:absolute;left:0;top:0;color:#f6ddae;font-size:9px;padding:2px 4px;background:#102632aa;border-radius:3px;white-space:nowrap}.editor-labels .unavailable{color:#91a6a9}.editor-footer{background:#102733;padding:9px 18px;border-top:1px solid #8fa69d30;min-height:36px;box-sizing:border-box}.editor-footer output{font-size:11px;line-height:1.6;color:#bed2c6}.editor-footer .error,.editor-warning{color:#efb091}.editor-result{color:#bcdac1;font-size:15px}.editor-metric{line-height:1.8;font-size:11px;margin:4px 0}.editor-section table{border-collapse:collapse;width:100%;font-size:9px;line-height:1.7}.editor-section th,.editor-section td{padding:5px 2px;border-bottom:1px solid #819e9225;text-align:left}.editor-warning{font-size:10px;line-height:1.7;margin:4px 0}
.editor-testbar{position:fixed;z-index:125;left:18px;top:12px;background:#142e3af2;border:1px solid #e0c59060;box-shadow:0 8px 28px #0005;border-radius:10px;padding:9px 12px;display:flex;gap:10px;align-items:center;max-width:70vw;font-size:11px}.editor-testbar span{color:#d6c393}.editor-testbar button{font-size:11px;white-space:nowrap}
body.editing-level>header,body.editing-level #hud,body.editing-level #intro,body.editing-level #dev-badge,body.editing-level #wallet,body.editing-level #save-indicator,body.editing-level .frame,body.editing-level .grain{visibility:hidden;pointer-events:none}
body.testing-level #hint,body.testing-level #map-back,body.testing-level .brand,body.testing-level #revisit-prologue,body.testing-level .pause-actions{visibility:hidden;pointer-events:none}
@media(max-width:1150px){.editor-draft-title{display:none}.editor-workspace{grid-template-columns:210px minmax(200px,1fr) 255px}.pli-editor .editor-toolbar{gap:10px;padding:10px}.editor-actions button{font-size:10px;padding:7px 9px}}
@media(max-width:780px){.pli-editor{font-size:11px}.editor-identity small{display:none}.editor-identity strong{font-size:14px}.editor-workspace{grid-template-columns:150px minmax(150px,1fr) 210px;overflow-x:auto}.editor-library,.editor-inspector{padding:10px}.editor-view-tools{flex-wrap:wrap;right:8px}.editor-camera-help{display:none}.editor-testbar{left:10px;max-width:calc(100vw - 100px);flex-wrap:wrap;width:max-content;gap:5px;padding:7px}.editor-testbar span{width:100%;font-size:9px}.editor-testbar button{font-size:10px;padding:6px 8px;min-height:30px}.editor-actions{gap:4px}}

.official-cms output{display:block;white-space:pre-wrap;margin:.5rem 0;color:#d7c397}.official-cms input,.official-cms select{width:100%;box-sizing:border-box}.official-cms button{margin:.25rem 0;width:100%}.official-cms pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.65rem;max-height:12rem;overflow:auto}#official-publish{border-color:#e7bd6e;color:#ffe2a3}
