.fm { display: grid; gap: .65rem; min-width: 0; color: #18392f; }
.fm [hidden] { display: none !important; }
.fm .fm-field { display: grid; gap: .3rem; min-width: 0; font-size: .87rem; }
.fm input:not([type=checkbox]), .fm select, .fm textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: .5rem .65rem; border: 1px solid #b7cac0; border-radius: .5rem; background: white; color: #193c2e; font: inherit; }
.fm .fm-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: .6rem; }
.fm .fm-poly, .fm .fm-body { display: grid; gap: .45rem; min-width: 0; }
.fm .fm-toolbar { display: flex; gap: .3rem; flex-wrap: wrap; }
.fm .fm-btn { justify-self: start; min-width: 2.3rem; padding: .4rem .7rem; background: #f4f8f5; color: #175441; border: 1px solid #b2cabc; border-radius: .5rem; font: inherit; cursor: pointer; }
.fm .fm-btn:focus-visible, .fm .fm-canvas:focus-visible { outline: 3px solid #976120; outline-offset: 2px; }
.fm .fm-map { position: relative; overflow: hidden; border: 1px solid #b7cac0; border-radius: .7rem; direction: ltr; }
.fm .fm-canvas { display: block; width: 100%; height: clamp(210px, 28vh, 320px); touch-action: none; cursor: crosshair; }
.fm .fm-attribution { position: absolute; bottom: 0; right: 0; padding: 2px 5px; background: white; font: 11px/1.25 system-ui,sans-serif; color: #224d40; }
.fm .fm-toggle { display: inline-flex; align-items: center; gap: .45rem; width: fit-content; font-size: .87rem; cursor: pointer; }
.fm .fm-toggle input { width: 1rem; height: 1rem; padding: 0; margin: 0; }
.fm .fm-hint, .fm .fm-detail { font-size: .8rem; color: #4a6558; line-height: 1.5; }
.fm .fm-error { font-size: .83rem; color: #8c3928; }
.fm .fm-error:empty,.fm .fm-hint:empty,.fm .fm-detail:empty { display: none; }
.fm .fm-empty { border: 1px dashed #bbd0c3; padding: 1rem; border-radius: .7rem; color: #526c5f; }
