.nm-global-header {
  --nm-nav-height: 64px;
  position: relative;
  z-index: 100;
  width: 100%;
  min-height: var(--nm-nav-height);
  background: #1b4f0a;
  color: #fff;
  box-shadow: 0 2px 8px #14210f22;
  font-family: Inter, ui-sans-serif, sans-serif;
}
.nm-global-header * { box-sizing: border-box; }
.nm-global-frame { display: flex; align-items: center; gap: 32px; width: 100%; min-height: 64px; padding: 0 28px; }
.nm-global-header a, .nm-global-header button { font: inherit; text-decoration: none; }
.nm-global-header button { cursor: pointer; }
.nm-global-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; font-size: 26px !important; font-weight: 700; letter-spacing: -1px; white-space: nowrap; }
.nm-global-logo { display: block; width: 38px; height: 38px; flex-shrink: 0; }
.nm-global-navigation { display: flex; align-items: center; gap: 4px; min-width: 0; }
.nm-global-navigation > a, .nm-global-navigation > button, .nm-global-dropdown > button {
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 6px;
  padding: 12px 14px; background: transparent; color: #e4eddf; font-size: 13px;
  line-height: 1.25; white-space: nowrap;
}
.nm-global-navigation > a:hover, .nm-global-dropdown > button:hover { background: #ffffff12; color: #fff; text-decoration: none; }
.nm-global-navigation [aria-current="page"], .nm-global-navigation [data-nm-active="true"] { background: #ffffff18; color: #fff; box-shadow: inset 0 -2px #b0d28b; }
.nm-global-header button:disabled { opacity: .68; cursor: default; }
.nm-global-preview { font-size: 10px; font-weight: 500; color: #c9ddc2; }
.nm-global-dropdown { position: relative; }
.nm-global-actions { display: flex; align-items: center; margin-left: auto; }
.nm-global-settings-trigger { display: grid !important; place-items: center; width: 40px; height: 40px; padding: 8px !important; }
.nm-global-settings-trigger svg { width: 22px; height: 22px; }
.nm-global-panel {
  position: absolute; top: calc(100% + 9px); left: 0; min-width: 220px; padding: 8px;
  border: 1px solid #dfe5d9; border-radius: 10px; background: #fff; color: #293a2c;
  box-shadow: 0 12px 32px #14210f26;
}
.nm-global-panel[hidden] { display: none !important; }
.nm-global-panel a, .nm-global-panel button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 11px 12px; border: 0; border-radius: 5px;
  background: transparent; color: #344a2d; text-align: left; font-size: 13px;
}
.nm-global-panel a:hover, .nm-global-panel a[aria-current="page"] { color: #246a0e; background: #edf4e7; text-decoration: none; }
.nm-global-panel button:disabled { color: #6e7968; }
.nm-global-panel .nm-global-preview { color: #73836e; }
.nm-global-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid #dfe5d9; }
.nm-global-group-label { display: block; padding: 9px 12px 6px; color: #7a8672; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.nm-global-settings .nm-global-panel { left: auto; right: 0; }
.nm-global-users .nm-global-panel { min-width: 280px; }
.nm-global-user-search { display: block; width: 100%; padding: 10px 12px; border: 1px solid #dfe5d9; border-radius: 6px; background: #fff; color: #344a2d; font: inherit; font-size: 13px; }
.nm-global-user-list { max-height: 240px; overflow-y: auto; margin-top: 6px; }
.nm-global-user-list button:hover, .nm-global-user-list button[aria-pressed="true"] { color: #246a0e; background: #edf4e7; }
.nm-global-user-list p { padding: 8px 12px; margin: 0; font-size: 13px; color: #64795e; }
.nm-global-user-error { margin: 10px 12px; color: #a12b20; font-size: 12px; }
.nm-global-user-search:focus-visible { outline: 3px solid #b59a41; outline-offset: 3px; }
.nm-global-header a:focus-visible, .nm-global-header button:focus-visible { outline: 3px solid #b59a41; outline-offset: 3px; }
.nm-recording-nav { display: flex; gap: 8px; margin: 0 0 24px; border-bottom: 1px solid #dfe5d9; }
.nm-recording-nav a { display: inline-block; padding: 10px 16px; border-bottom: 3px solid transparent; color: #5a6c53; text-decoration: none; }
.nm-recording-nav a:hover { color: #246a0e; text-decoration: none; }
.nm-recording-nav a[aria-current="page"] { border-bottom-color: #246a0e; color: #246a0e; font-weight: 600; }
.nm-help-page { max-width: 960px; }
.nm-help-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nm-help-resources a { display: grid; gap: 12px; padding: 24px; border: 1px solid #dfe5d9; border-radius: 10px; background: #fff; color: #293a2c; text-decoration: none; }
.nm-help-resources a:hover { border-color: #86a476; color: #246a0e; text-decoration: none; }
.nm-help-resources span { color: #64795e; font-size: 12px; }
.nm-help-resources strong { font-size: 18px; }
@media (max-width: 1050px) {
  .nm-global-header { --nm-nav-height: 112px; }
  .nm-global-frame { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 64px 48px; gap: 0 16px; padding: 0 18px; }
  .nm-global-brand { grid-column: 1; grid-row: 1; }
  .nm-global-actions { grid-column: 2; grid-row: 1; }
  .nm-global-navigation { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .nm-global-navigation > a, .nm-global-navigation > button, .nm-global-navigation > .nm-global-dropdown > button { padding: 10px 8px; font-size: 12px; }
  .nm-global-navigation .nm-global-panel { left: auto; right: 0; }
}
@media (max-width: 640px) {
  .nm-global-frame { padding: 0 12px; }
  .nm-global-brand { font-size: 23px !important; }
  .nm-global-wordmark { display: none; }
  .nm-global-navigation > a, .nm-global-navigation > button, .nm-global-navigation > .nm-global-dropdown > button { padding: 10px 4px; font-size: 11px; }
  .nm-global-navigation > button .nm-global-preview { display: none; }
  .nm-help-resources { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .nm-global-navigation > a, .nm-global-navigation > button, .nm-global-navigation > .nm-global-dropdown > button { font-size: 10px; }
}
.nm-fieldmap-shell { margin: 0; }
.nm-fieldmap-shell #root { height: calc(100dvh - var(--nm-nav-height, 64px)); }
.nm-fieldmap-shell #root .workspace { height: 100%; min-height: 0; grid-template-rows: minmax(610px, 1fr); }
@media (max-width: 1050px) { .nm-fieldmap-shell { --nm-nav-height: 112px; } }
@media (max-width: 640px) {
  .nm-fieldmap-shell #root { height: auto; min-height: calc(100dvh - var(--nm-nav-height, 112px)); }
  .nm-fieldmap-shell #root .workspace { height: auto; min-height: calc(100dvh - var(--nm-nav-height, 112px)); }
}
