.nfm {
  min-width: 0;
  height: fit-content;
  overflow: hidden;
  padding: clamp(14px,2vw,22px);
  border: 1px solid var(--line,#dce3d9);
  border-radius: 12px;
  background: var(--white,#fffef9);
  color: var(--ink,#273c33);
}
.nfm-header {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.nfm-header h3 {display:flex;align-items:center;gap:7px;font-size:16px}
.nfm-header p,.nfm-note {font-size:11px;line-height:1.6;color:#667669}
.nfm-header p {margin:2px 0 0}
.nfm-metric {display:inline-flex;padding:2px;border:1px solid #d6ded5;border-radius:7px;background:#f1f4ed}
.nfm-metric button {border:0;border-radius:5px;padding:4px 8px;background:transparent;color:#526858;font-size:11px;line-height:1.6}
.nfm-metric button[aria-pressed=true] {background:#355e4b;color:#fff}
.nfm-stage {position:relative;isolation:isolate;overflow:hidden;height:clamp(285px,35vw,370px);border:1px solid #d6dfd3;border-radius:8px;background:#edf2e9;touch-action:none;cursor:grab;user-select:none}
.nfm-stage:active {cursor:grabbing}
.nfm-stage:focus-visible {outline:2px solid #355e4b;outline-offset:2px}
.nfm-graticule,.nfm-graticule i {position:absolute;inset:0;pointer-events:none}
.nfm-graticule .nfm-meridian {width:1px;background:#cdd9cd}
.nfm-graticule .nfm-parallel {height:1px;background:#cdd9cd}
.nfm-graticule span {position:absolute;left:3px;top:2px;white-space:nowrap;font:9px/1.3 ui-monospace,monospace;color:#738574}
.nfm-tile {position:absolute;pointer-events:none;width:256px!important;height:256px!important;max-width:none!important;max-height:none!important}
.nfm-marker {position:absolute;display:grid;place-content:center;transform:translate(-50%,-50%);padding:0;border:1.5px solid var(--marker-color);border-radius:50%;background:color-mix(in srgb,var(--marker-color) 70%,transparent);color:#fff;line-height:1;box-shadow:0 0 0 1px #ffffffce;cursor:pointer}
.nfm-marker:after {content:'';position:absolute;inset:-3px;border-radius:50%}
.nfm-marker span {color:#fff;background:#263f36;border-radius:6px;min-width:11px;padding:1px 2px;font-size:8px;font-weight:700;pointer-events:none}
.nfm-marker.nfm-missing {background:#f6f7ede0;border:1.5px dashed var(--marker-color)}
.nfm-marker:hover,.nfm-marker:focus-visible,.nfm-marker.active {z-index:2;outline:2px solid #183e2b;outline-offset:2px;box-shadow:0 0 0 4px #fff9}
.nfm-tools {position:absolute;z-index:3;top:10px;left:10px;display:grid;border:1px solid #b6c7b8;border-radius:6px;overflow:hidden;box-shadow:0 2px 8px #3145381c}
.nfm-tools button {width:33px;height:32px;display:grid;place-items:center;border:0;border-bottom:1px solid #d2dcce;padding:0;background:#fffef8;color:#344c3e}
.nfm-tools button:last-child {border-bottom:0}
.nfm-tools button:hover {background:#e8f0e8}
.nfm-tools button:disabled {opacity:1;color:#a2aea2}
.nfm-tools button:focus-visible {outline-offset:-3px}
.nfm-compass {position:absolute;right:10px;top:8px;display:grid;justify-items:center;font:600 9px/1.5 sans-serif;color:#456052;text-shadow:0 0 3px white;pointer-events:none}
.nfm-compass i {width:0;height:0;border-right:4px solid transparent;border-left:4px solid transparent;border-bottom:10px solid #456052}
.nfm-scale {position:absolute;bottom:8px;left:10px;padding:0 2px 1px;border:solid #3c493d;border-width:0 1px 2px;background:#fffff4dd;text-align:center;font:10px/1.2 sans-serif;pointer-events:none;color:#334434}
.nfm-source {position:absolute;right:0;bottom:0;background:#fffff3e8;padding:1px 5px;color:#38553d;font-size:9px;line-height:1.4;text-decoration:underline}
.nfm-no-results {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);white-space:nowrap;background:#fffdf3;border:1px solid #d5dece;padding:7px 13px;border-radius:6px;color:#687268;font-size:12px}
.nfm-key {display:flex;align-items:center;flex-wrap:wrap;gap:5px 11px;margin:10px 0 4px;color:#4c6051;font-size:10px}
.nfm-key span {display:inline-flex;align-items:center;gap:4px}
.nfm-key i {display:inline-block;width:8px;height:8px;border-radius:50%}
.nfm-key .nfm-size-key {gap:2px}
.nfm-size-key i {border:1px solid #56715f;background:#a1b5a5}
.nfm-size-key i:first-child {width:4px;height:4px}
.nfm-size-key i:nth-child(2) {width:7px;height:7px}
.nfm-size-key i:nth-child(3) {width:11px;height:11px;margin-right:4px}
.nfm-unobserved {background:transparent;border:1px dashed #586956}
.nfm-note {margin:0}
.nfm-note[role=status] {margin-top:4px;color:#875f3e}
.nfm-sr {position:absolute;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.nfm-group {margin-top:8px;border:1px solid #d4ded2;border-radius:7px;overflow:hidden}
.nfm-grouphead,.nfm-group li button {display:flex;align-items:center;gap:8px}
.nfm-grouphead {padding:7px 10px;background:#edf3e9;justify-content:space-between;font-size:12px}
.nfm-grouphead button {display:grid;place-items:center;width:24px;height:24px;background:none;border:0}
.nfm-group ul {max-height:175px;overflow:auto;margin:0;padding:0;list-style:none}
.nfm-group li+li {border-top:1px solid #dde5d8}
.nfm-group li button {width:100%;text-align:left;border:0;background:none;padding:9px 10px;font-size:11px}
.nfm-group li button:hover {background:#f0f5ef}
.nfm-group li span {flex:1;min-width:0;overflow-wrap:anywhere}
.nfm-group li b {font-size:11px;white-space:nowrap}
.nfm-group li small {margin-left:5px;padding:2px 4px;border-radius:3px;background:#e5eddd;font-size:9px}
@media (max-width:600px) {
  .nfm-stage {height:300px}
  .nfm-metric button {min-height:32px}
  .nfm-tools button {height:36px;width:36px}
}

.nfm-skip {position:absolute;z-index:4;left:8px;top:-60px;padding:4px 9px;background:white;border-radius:4px;font-size:11px}
.nfm-skip:focus {top:8px}
