/* Scenario editor TEST2: isolated modal styles. Existing Timeline/Map styling untouched. */
.gnt-edit-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 0 2px;border-top:1px solid #39465d}
.gnt-edit-controls>div{flex:1 1 250px;min-width:0}
.gnt-edit-controls p{margin:5px 0;color:#b9c9e1;font-size:.86em}
.gnt-edit-controls small{color:#d8caa0}
.gnt-edit-controls button{border:1px solid #7097bc;background:#2c4a6e;color:#f2f8ff;border-radius:11px;padding:11px 16px;cursor:pointer;font:inherit}
.gnt-edit-controls button.gnt-editor-link{border-color:#657898;background:#1d3147}
.gnt-edit-controls button:focus-visible{outline:2px solid white;outline-offset:3px}
#gnt-test2-editor[hidden]{display:none!important}
#gnt-test2-editor{position:fixed;inset:0;z-index:99999;display:flex;justify-content:flex-end;align-items:stretch;color:#e4ecf7;font-family:inherit}
.gnt-editor-scrim{position:absolute;inset:0;background:rgba(0,0,0,.68)}
.gnt-editor-panel{position:relative;display:flex;flex-direction:column;width:min(900px,100%);max-height:100%;min-width:0;background:#131d30;border-left:1px solid #536984;box-shadow:-10px 0 40px #0009}
.gnt-editor-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 24px;border-bottom:1px solid #36465f;background:#1b2a40}
.gnt-editor-panel-head small{color:#bfd2e7}.gnt-editor-panel-head h2{margin:4px 0 0;font-size:1.34em}
.gnt-editor-panel-head button{background:#334765;color:#fff;border:1px solid #5b7090;border-radius:9px;padding:7px 13px;cursor:pointer;font-size:1.2em}
.gnt-editor-body{overflow:auto;padding:18px 24px 36px;flex:1;min-height:0}
.gnt-editor-field{display:flex;flex-direction:column;gap:7px;margin:11px 0;color:#d5e5f5;font-size:.9em;min-width:0}
.gnt-editor-field span{font-weight:650}
.gnt-editor-field input,.gnt-editor-field textarea,.gnt-editor-field select{border:1px solid #51647d;border-radius:10px;background:#1b2a40;color:#f0f6ff;padding:11px 12px;font:inherit;width:100%;min-width:0;box-sizing:border-box;font-size:16px}
.gnt-editor-field textarea{resize:vertical;min-height:78px;line-height:1.5}
.gnt-editor-field input:focus,.gnt-editor-field textarea:focus,.gnt-editor-field select:focus{outline:2px solid #a4cbf9;outline-offset:1px}
.gnt-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.gnt-editor-section{margin:14px 0;padding:14px 16px;border:1px solid #3b526c;border-radius:12px;background:#1a283b}
.gnt-editor-section>summary{font-weight:bold;cursor:pointer}
.gnt-editor-section p{color:#b5c6da;font-size:.87em;line-height:1.55}
.gnt-editor-note{padding:12px 15px;background:#243348;border-left:3px solid #93accc;border-radius:8px;line-height:1.65}
.gnt-editor-tags{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 14px}
.gnt-editor-tags span{border:1px solid #61728d;background:#263750;border-radius:20px;font-size:.77em;padding:6px 9px}
.gnt-editor-safe{color:#d6eddc!important;background:#21352c;padding:9px;border-radius:9px}
.gnt-editor-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.gnt-editor-buttons button,.gnt-editor-body>button{border:1px solid #729ab9;border-radius:11px;background:#3d658e;color:white;font:inherit;font-weight:bold;cursor:pointer;padding:12px 17px;min-height:44px}
.gnt-editor-buttons button.subtle{background:#25364d}
.gnt-editor-buttons button:disabled{opacity:.5;cursor:not-allowed;border-color:#545d6f;background:#272e3c}
.gnt-editor-alert{border:1px solid #9c7b5f;background:#3a2d2a;border-radius:11px;padding:14px;margin:20px 0}
.gnt-editor-message{min-height:12px;line-height:1.5;font-size:.87em;margin:9px 0}
.gnt-editor-message.bad{color:#ffbcb9}.gnt-editor-message.ok{color:#b1efc3}
.gnt-editor-check{padding:14px;background:#2e2924;border:1px solid #896d46;border-radius:11px;line-height:1.5;font-size:.87em}
.gnt-editor-check p{margin:8px 0}
.gnt-editor-history{margin-top:23px;border-top:1px solid #596779;padding-top:10px}
.gnt-editor-history h3{font-size:1em}
.gnt-editor-history details{padding:9px 0;border-bottom:1px solid #39465b}
.gnt-editor-history summary{cursor:pointer}
.gnt-editor-json-read{font-size:.78em;white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;background:#101b2c;padding:12px;border-radius:8px}
@media(max-width:680px){.gnt-editor-panel-head{padding:12px 14px}.gnt-editor-body{padding:10px 14px 25px}.gnt-editor-grid{grid-template-columns:1fr}.gnt-editor-panel{border-left:0}}
