#fwMissionGuardAlarms, #fwMissionGuardMission { display: grid; gap: 6px; margin: 10px 0 0; }
#fwMissionGuardAlarms[hidden], #fwMissionGuardMission[hidden], #missionNoActive[hidden] { display: none; }
button.fw-mg-banner {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  gap: 12px; min-height: 64px; padding: 10px 16px; text-align: left;
  color: white; background: #a51d2d; border: 1px solid #f98d95; border-radius: 4px;
}
button.fw-mg-banner:hover, button.fw-mg-banner:focus-visible { background: #831624; outline: 2px solid #ffe228; }
button.fw-mg-banner.fw-mg-test { background: #17445d; border-color: #a5d1e5; }
button.fw-mg-banner.fw-mg-test:hover, button.fw-mg-banner.fw-mg-test:focus-visible { background: #103249; }
.fw-mg-banner span { color: inherit; }
.fw-mg-banner small, .fw-mg-banner strong, .fw-mg-banner span span { display: block; color: white; }
.fw-mg-banner strong { margin: 3px 0; }
.fw-mg-banner .fw-mg-banner-signal { margin-top: 3px; font-weight: 700; }
.fw-mg-arrival {
  position: fixed; top: max(147px, calc(env(safe-area-inset-top) + 132px));
  left: max(14px, env(safe-area-inset-left)); z-index: 1840;
  box-sizing: border-box; width: min(340px, calc(100% - 28px));
  padding: 10px 14px; border: 1px solid #a5afb6; border-top: 4px solid #f2dd1e;
  border-radius: 4px; color: #1d262b; background: #fff; box-shadow: 0 2px 12px #25323c42;
}
.fw-mg-arrival.fw-mg-test { border-top-color: #17445d; }
.fw-user-locked .fw-mg-arrival { display: none; }
.fw-mg-arrival [data-mg-arrival-heading] { font-weight: 800; letter-spacing: .04em; }
.fw-mg-arrival [data-mg-destination] { display: block; font-size: clamp(18px, 2.7vw, 24px); overflow-wrap: anywhere; }
.fw-mg-arrival [data-mg-signal] {
  margin-top: 4px; padding: 5px 8px; border-radius: 3px;
  font-weight: 800; background: #fff3cd; color: #5b3c00;
}
.fw-mg-arrival [data-mg-signal][data-state="yes"] { background: #13496d; color: #fff; }
.fw-mg-arrival [data-mg-signal][data-state="no"] { background: #e6ebee; color: #223540; }
.fw-mg-arrival-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.fw-mg-arrival-tools button { min-height: 44px; padding: 4px 10px; font-weight: 750; }
.fw-mg-arrival-tools button[aria-pressed="true"] { background: #e7f2fb; color: #124567; }
.fw-mg-arrival [data-mg-position], .fw-mg-arrival [data-mg-screen] { display: block; }
.fw-mg-arrival [data-mg-screen]:empty { display: none; }
@media (max-width: 800px) {
  .fw-mg-arrival { top: max(77px, calc(env(safe-area-inset-top) + 68px)); }
}
.fw-mg-pin b {
  display: grid; place-items: center; width: 38px; height: 38px; border: 3px solid white;
  border-radius: 50% 50% 50% 0; color: white; background: #a51d2d; box-shadow: 0 2px 8px #0007;
}
.fw-mg-dialog {
  border: 0; border-top: 5px solid #f2dd1e; width: min(720px, calc(100% - 24px)); max-height: 90dvh;
  padding: 0; color: #1d262b; background: #eef0f0; box-sizing: border-box;
}
.fw-mg-dialog::backdrop { background: #141d21a6; }
.fw-mg-dialog header {
  position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between;
  background: #1d262b; color: white; padding: 8px 18px; gap: 14px; z-index: 1;
}
.fw-mg-dialog h2 { color: white; margin: 6px 0; }
.fw-mg-dialog-body { padding: 16px; }
.fw-mg-dialog.fw-mg-group-dialog {
  inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; overflow: auto; overscroll-behavior: contain;
}
.fw-mg-group-dialog header button { flex: 0 0 auto; min-width: 44px; min-height: 44px; }
.fw-mg-group-dialog h2 { font-size: clamp(1.1rem, 4vw, 1.5rem); overflow-wrap: anywhere; }
.fw-mg-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%),1fr)); gap: 10px; }
.fw-mg-roster fieldset { padding: 10px; border: 1px solid #a5afb6; min-width: 0; background: white; }
.fw-mg-roster legend, .fw-mg-roster small { overflow-wrap: anywhere; }
.fw-mg-roster legend { font-weight: 700; }
.fw-mg-roster label { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.fw-mg-roster input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; min-height: 0; margin: 0; }
#missionTestResult { white-space: pre-wrap; overflow-wrap: anywhere; }
#userManager, #inventoryModuleModal { padding: 0 !important; }
#userManager > .user-card, #inventoryModuleModal > .modal-card {
  box-sizing: border-box; width: 100% !important; height: 100% !important; height: 100dvh !important;
  max-width: none !important; max-height: none !important; margin: 0 !important; border-radius: 0 !important;
}
.fw-mg-row { display: flex; align-items: stretch; gap: 6px; }
.fw-mg-end { flex: 0 0 auto; min-height: 44px; max-width: 38%; white-space: normal; }

button.fw-mg-map-end, .fw-brand-bar .fw-mg-map-end { background: #a51d2d; color: white; min-height: 44px; border: 1px solid white; padding: 7px 14px; }
button.fw-mg-map-end.fw-mg-test, .fw-mg-pin.fw-mg-test b { background: #17445d; }
