.he-shell{position:fixed;inset:0;z-index:20;background:#282d29;color:#fff;overflow:hidden;isolation:isolate}.he-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.he-header{position:absolute;inset:env(safe-area-inset-top) 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;background:linear-gradient(#171d17ef,#171d1740);pointer-events:none}.he-heading{display:flex;flex-direction:column;gap:5px;min-width:0;max-width:50%;text-shadow:0 2px 2px #000}.he-heading strong{font-size:20px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.he-save-status{font-size:12px;color:#c3d7bb;pointer-events:auto;cursor:pointer;line-height:1.3}.he-save-status.he-error{color:#f2bbb6}.he-header-actions{display:flex;gap:6px;pointer-events:auto}.he-button{min-height:42px;border:1px solid #51644c;border-radius:8px;background:#394b35;color:#f7f9f4;padding:9px 13px;font:inherit;font-size:15px;line-height:1.2;box-shadow:0 2px 4px #0003}.he-button:hover{background:#4a6044}.he-button[aria-pressed=true]{border-color:#f5e9ab;background:#65724a;box-shadow:inset 0 0 0 1px #f5e9ab}.he-button:disabled{opacity:.45}.he-undo,.he-redo{font-size:25px;padding:4px 10px}.he-play{color:#e6efba;font-size:23px;padding:5px 11px}.he-pause{font-size:25px;padding:4px 11px}.he-bottom{position:absolute;inset:auto 0 0;padding-bottom:env(safe-area-inset-bottom);background:#182019ed;border-top:1px solid #677660;max-height:51dvh;display:flex;flex-direction:column}.he-tabs{display:flex;justify-content:center;gap:5px;padding:7px 12px;flex-shrink:0;overflow-x:auto;scrollbar-width:thin}.he-tabs .he-button{flex:0 0 auto;font-size:14px;min-height:39px}.he-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 16px;max-height:38dvh;overflow:auto;justify-content:center}.he-note{font-size:14px;line-height:1.5;color:#c5d1c0;margin:6px 0;flex-basis:100%;text-align:center}.he-field{display:flex;align-items:center;gap:8px;font-size:14px;min-width:0}.he-field>span{white-space:nowrap}.he-field input,.he-field select,.he-row select,.he-library-actions select{min-height:40px;max-width:250px;min-width:0;background:#c8d4c3;color:#111d13;border:1px solid #72886a;border-radius:7px;padding:7px 10px;font:inherit;font-size:16px}.he-check{display:flex;align-items:center;gap:7px;font-size:15px;min-height:40px}.he-check input{width:20px;height:20px;accent-color:#a1c583}.he-palette{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;flex-basis:100%}.he-swatch{width:40px;height:40px;min-height:40px;padding:0;border:2px solid #142414;box-shadow:0 2px 4px #0005;color:#111;font-size:24px}.he-swatch[aria-pressed=true]{border:3px solid #fff;box-shadow:0 0 0 2px #0a1009}.he-object-tool{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:67px;font-size:12px;padding:7px 8px}.he-sprite-icon{width:36px;height:40px;filter:drop-shadow(1px 2px 1px #0008)}.he-tool-erase{display:grid;place-items:center;width:36px;height:40px;font-size:38px}.he-province-label{font-size:15px;color:#e9efcb}.he-danger{background:#673d3d;border-color:#996565}.he-danger:hover{background:#825151}.he-library{position:fixed;inset:0;z-index:30;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;background:#27342a;color:#f2f5ec;padding:0}.he-library::backdrop{background:#161e16}.he-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px 24px 16px;position:sticky;top:0;z-index:1;background:inherit;border-bottom:1px solid #6b7e6033}.he-dialog-heading h1,.he-dialog-heading h2{font-size:25px;font-weight:400;margin:0;line-height:1.3}.he-close{font-size:28px;padding:5px 12px;min-width:46px;background:#a88048;color:#101710;border:0}.he-library-body{max-width:940px;margin:auto;padding:20px 24px 40px}.he-library-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.he-library-body>.he-note{font-size:17px;text-align:left;max-width:550px}.he-map-list{display:flex;flex-direction:column;gap:10px}.he-map-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #566d4e;background:#354731;padding:15px;border-radius:12px}.he-map-info{display:flex;flex-direction:column;gap:5px;min-width:0}.he-map-info strong{font-size:19px;font-weight:400;overflow-wrap:anywhere}.he-map-info small{font-size:13px;color:#bdcdb5}.he-map-actions{display:flex;flex-shrink:0;gap:7px}.he-modal{position:fixed;z-index:40;width:min(680px,94%);max-height:90dvh;margin:auto;border:1px solid #677d5e;border-radius:15px;padding:0;background:#2e3d2b;color:#f1f5e9;overflow:auto;box-shadow:0 10px 50px #0009}.he-modal::backdrop{background:#070f07ac}.he-dialog-content{padding:18px 22px 24px;display:flex;flex-direction:column;gap:12px}.he-dialog-content>.he-button{width:100%;font-size:17px;min-height:46px}.he-dialog-content .he-note{text-align:left;flex-basis:auto;margin:0 0 5px}.he-dialog-content .he-field{justify-content:space-between}.he-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.he-row>span{flex:1;min-width:180px}.he-row>.he-button{flex:1}.he-code,.he-message-row textarea{width:100%;min-width:0;border:1px solid #768b6e;border-radius:8px;background:#d1dccb;color:#102011;padding:12px;font:15px/1.4 monospace;resize:vertical}.he-code{min-height:160px}.he-error{color:#f4afa7;font-size:14px;line-height:1.4}.he-error:empty{display:none}.he-relations-list,.he-messages-list{display:flex;flex-direction:column;gap:12px}.he-message-row{display:flex;align-items:start;gap:8px}.he-message-row textarea{font-family:Arial,sans-serif;flex:1}.he-message-row>span{padding-top:12px}.he-message-row .he-button{font-size:23px;padding:5px 11px}@media(min-width:1000px){.he-header{left:calc(50% - 480px);right:calc(50% - 480px)}.he-bottom{max-width:960px;margin:0 auto;border-radius:14px 14px 0 0}.he-tools{padding:14px 24px}.he-dialog-content .he-row select{flex:1}}@media(max-width:600px){.he-header{padding:9px 8px;gap:5px}.he-heading strong{font-size:16px}.he-heading{max-width:38%}.he-header-actions{gap:4px}.he-header-actions .he-button{padding:7px 8px;font-size:13px}.he-header-actions .he-undo,.he-header-actions .he-redo,.he-header-actions .he-pause{font-size:22px;padding:4px 7px}.he-header-actions .he-play{font-size:20px}.he-tools{padding:10px;gap:8px;justify-content:flex-start}.he-tabs{justify-content:flex-start;padding:7px;gap:4px}.he-tabs .he-button{font-size:13px;padding:8px 10px}.he-field{flex:1 1 45%;flex-direction:column;align-items:stretch;gap:5px}.he-field input,.he-field select{max-width:none;width:100%;font-size:16px}.he-note{font-size:12px}.he-swatch{width:35px;height:35px;min-height:35px}.he-palette{gap:6px}.he-object-tool{min-width:58px;padding:5px;flex:1}.he-object-tool span{font-size:10px}.he-library-body{padding:16px 12px 30px}.he-dialog-heading{padding:18px 16px 14px}.he-map-row{padding:12px;flex-wrap:wrap;gap:10px}.he-map-info{width:100%}.he-map-actions{width:100%;justify-content:flex-end}.he-map-actions .he-button:first-child{flex:1}.he-dialog-content{padding:15px}.he-dialog-content .he-field{flex-direction:column;align-items:stretch}.he-library-actions .he-button{flex:1 1 45%}.he-library-actions select{width:100%;max-width:none}.he-row select{flex:1 1 40%;min-width:100px;max-width:100%}.he-modal .he-dialog-heading h2{font-size:21px}.he-bottom{max-height:55dvh}.he-tools{max-height:43dvh}}@media(max-height:500px){.he-tools{max-height:30dvh}.he-note{display:none}.he-dialog-heading{padding:10px 15px}.he-modal{max-height:94dvh}}
.he-toast{position:fixed;z-index:100;bottom:calc(22px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 30px);padding:12px 16px;border:1px solid #71876a;border-radius:9px;background:#172117f5;color:#edf4e8;font-size:15px;line-height:1.4;text-align:center;box-shadow:0 4px 20px #0006;pointer-events:none}.he-toast-error{background:#713f3bf5;border-color:#b77b71}
