.map-editor{margin:0;min-height:100dvh;background:#d8d5c8;color:#213028}
.map-editor *{box-sizing:border-box}
.map-actions{margin-left:auto;display:flex;gap:8px}
.map-editor button,.map-editor select,.map-editor input{font:inherit}
.map-work{display:grid;grid-template-columns:272px minmax(0,1fr);min-height:calc(100dvh - 64px)}
.map-work aside{background:#f3f1e8;border-right:1px solid #bfbdaf;padding:0 20px;color:#26352f}
.tool-section{padding:20px 0;display:grid;gap:10px;border-bottom:1px solid #d0d0c2}
.tool-section h2{margin:0 0 3px;font-size:16px;letter-spacing:-.04em}
.tool-section label{display:grid;gap:5px;font-size:12px;font-weight:600;color:#46544a}
.tool-section select,.tool-section input,.tool-section button,dialog button{min-width:0;min-height:40px;border-radius:6px;border:1px solid #b2b7a9;background:#fcfbf5;color:#223229;padding:7px 10px;width:100%}
.tool-section select,.tool-section input{font-size:14px}
.tool-section button{font-weight:650;font-size:13px;cursor:pointer}
.tool-section button:disabled{opacity:.5;cursor:default}
.tool-section #add{background:#274e42;color:white;border-color:#274e42}.tool-section #add[aria-pressed=true]{background:#e9bb74;color:#242d25}
.tool-section #delete{color:#8c4937}.coords,.buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.map-editor .upload{border:1px dashed #8e9a8b;border-radius:6px;padding:10px 12px;display:flex;justify-content:center;align-items:center;min-height:41px;position:relative;cursor:pointer}
.upload:focus-within{outline:2px solid #47775f;outline-offset:2px}.upload input{opacity:0;position:absolute;inset:0;width:100%;height:100%;cursor:pointer}
.map-board{display:flex;flex-direction:column;min-width:0;padding:clamp(14px,2.5vw,40px);gap:12px}
.board-head,.map-key{display:flex;align-items:center;gap:12px}
.board-head h1{font-size:clamp(22px,2.5vw,34px);letter-spacing:-.06em;line-height:1.1;margin:0}.board-head span{margin-left:auto;font:12px/1.3 system-ui;color:#48594d;white-space:nowrap}
.map-paper{background-color:#ede9d9;background-image:radial-gradient(#bcbba8 1px,transparent 1.1px);background-size:16px 16px;border:1px solid #a9ac99;border-radius:8px;display:flex;flex:1;min-height:0}
#map{width:100%;height:clamp(330px,65vh,860px);display:block;align-self:center;touch-action:manipulation}
.map-key{gap:14px;flex-wrap:wrap;font-size:12px;font-weight:600}.map-key span{display:flex;gap:5px;align-items:center}.map-key i{width:9px;height:9px;border-radius:50%;background:var(--marker);border:1px solid #263b30}
.map-board #status{margin:0;font-size:13px;line-height:1.45;color:#3b4c42;min-height:1.45em}
.map-editor dialog{padding:0;width:min(980px,96vw);border:1px solid #56665c;border-radius:10px;background:#18251f;color:#faf6e8}
.map-editor dialog::backdrop{background:#101912bb}.map-editor dialog>div{display:flex;align-items:center;justify-content:space-between;padding:8px 14px}.map-editor dialog button{width:auto}.map-editor iframe{width:100%;height:72dvh;display:block;border:0}
@media(max-width:740px){.map-work{display:flex;flex-direction:column;min-height:0}.map-board{order:-1;padding:14px;gap:8px}.map-paper{flex:none}#map{height:clamp(215px,40dvh,420px)}.map-work aside{padding:0 14px;border-top:1px solid #b9bdaf;border-right:0}.tool-section{grid-template-columns:1fr 1fr;align-items:end;padding:12px 0;gap:7px 10px}.tool-section h2{grid-column:1/-1;font-size:15px;margin-bottom:1px}.tool-section:last-child>label,.tool-section:last-child .buttons{grid-column:1/-1}.tool-section:last-child .coords{grid-column:1/-1}.tool-section button,.tool-section select,.tool-section input,.map-editor .upload{min-height:44px}.map-board #status{font-size:12px}}

.zone-label{font:600 .52px system-ui,sans-serif;fill:#47573e;paint-order:stroke;stroke:#eeecd8;stroke-width:.13px;pointer-events:none}
#map g[data-id]{cursor:pointer}
