/* Field screen layers — NEXUS C2 military · emerald · rose tinge */

.nfs-win--sovereign-exclusive {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  z-index: 9200 !important;
  border-radius: 0 !important;
}
.nfs-win--sovereign-exclusive iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
html[data-field-layer-sovereign="exclusive"] .fsl-fast-switch {
  opacity: 0.35;
  pointer-events: none;
}

.fsl-root {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9050;
  pointer-events: none;
  background: #060806;
}

html[data-nexus-c2-stack="ironclad"] .fsl-root {
  z-index: 9040;
}

html[data-field-layer="-1"] .fsl-root,
html[data-field-screen-layer="-1"] .fsl-root {
  visibility: hidden !important;
  pointer-events: none !important;
}

html[data-nexus-c2="1"] .hd-shell,
html[data-nexus-c2="1"] #hd-desktop {
  position: relative;
  z-index: 2;
}

.hd-shell,
#hd-desktop {
  position: relative;
  z-index: 2;
}

.fsl-root:not([hidden]) {
  pointer-events: auto;
}

html:not(.nfs-taskbar-hidden) .fsl-root {
  bottom: calc(var(--fsb-h, 44px) + env(safe-area-inset-bottom, 0));
}

html.fsl-desktop-hidden #hd-desktop,
html.fsl-desktop-hidden #hd-monitor {
  visibility: hidden !important;
  pointer-events: none !important;
}

.fsl-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #060806;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.fsl-layer--active {
  opacity: 1;
  z-index: 2;
}

.fsl-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  font: 700 11px/1.2 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5ecf7a;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(94, 207, 122, 0.04) 2px, rgba(94, 207, 122, 0.04) 3px),
    linear-gradient(180deg, #141a10 0%, #0a0c08 100%);
  border-bottom: 1px solid rgba(94, 207, 122, 0.28);
  box-shadow: inset 0 -1px 0 rgba(244, 114, 182, 0.12);
}

.fsl-bar .fsl-label {
  color: #5ecf7a;
  text-shadow: 0 0 18px rgba(94, 207, 122, 0.25);
}

.fsl-bar .fsl-z {
  opacity: 0.85;
  font-weight: 600;
  color: #e6efe0;
}

.fsl-bar .fsl-component {
  opacity: 0.65;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #f472b6;
  text-transform: none;
}

.fsl-bar .fsl-lic {
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: none;
  color: #9aaa8c;
}

.fsl-bar .fsl-lic strong {
  color: #f472b6;
}

.fsl-bar .fsl-kbd {
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: rgba(6, 8, 6, 0.65);
  color: #f472b6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.fsl-layer[data-layer="-3"] .fsl-bar {
  border-bottom-color: rgba(94, 207, 122, 0.42);
}

.fsl-layer[data-layer="-2"] .fsl-bar {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(244, 114, 182, 0.05) 2px, rgba(244, 114, 182, 0.05) 3px),
    linear-gradient(180deg, #181410 0%, #0a0808 100%);
  border-bottom-color: rgba(244, 114, 182, 0.32);
}

.fsl-layer[data-layer="-2"] .fsl-label {
  color: #f472b6;
  text-shadow: 0 0 16px rgba(244, 114, 182, 0.28);
}

.fsl-frame {
  flex: 1 1 auto;
  width: 100%;
  border: none;
  background: #060806;
}

.fsl-hud {
  position: fixed;
  top: 6px;
  right: 10px;
  z-index: 9060;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(94, 207, 122, 0.32);
  background: rgba(6, 8, 6, 0.92);
  color: #5ecf7a;
  font: 700 10px/1.3 system-ui, sans-serif;
  letter-spacing: 0.08em;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(244, 114, 182, 0.1);
}

/* IRONCLAD — F-key stack (keyboard only; visual overlay hidden) */
.fsl-fast-switch,
.fsl-hud,
.fsl-bar .fsl-kbd {
  display: none !important;
}

.fsl-fast-switch {
  position: fixed;
  left: 10px;
  bottom: calc(var(--fsb-h, 44px) + 10px + env(safe-area-inset-bottom, 0));
  z-index: 9070;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(94, 207, 122, 0.38);
  background: rgba(6, 8, 6, 0.94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(244, 114, 182, 0.12);
  pointer-events: auto;
}

.fsl-fast-btn {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 8px;
  width: min(240px, 42vw);
  padding: 5px 8px;
  border: 1px solid rgba(94, 207, 122, 0.22);
  border-radius: 7px;
  background: rgba(12, 16, 10, 0.88);
  color: #d8efe0;
  font: 600 10px/1.2 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.fsl-fast-btn:hover {
  border-color: rgba(94, 207, 122, 0.48);
  background: rgba(18, 24, 14, 0.95);
}

.fsl-fast-btn--active {
  border-color: rgba(244, 114, 182, 0.55);
  background: linear-gradient(90deg, rgba(94, 207, 122, 0.18), rgba(244, 114, 182, 0.12));
  box-shadow: 0 0 14px rgba(94, 207, 122, 0.18);
}

.fsl-fast-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: rgba(6, 8, 6, 0.75);
  color: #f472b6;
  font: 700 9px/1 system-ui, sans-serif;
  letter-spacing: 0.06em;
}

.fsl-fast-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fsl-fast-z {
  opacity: 0.55;
  font-size: 9px;
  font-weight: 700;
  color: #5ecf7a;
}

.fsl-layer[data-layer="0"] .fsl-bar {
  border-bottom-color: rgba(96, 165, 250, 0.42);
}

.fsl-layer[data-layer="0"] .fsl-label {
  color: #93c5fd;
  text-shadow: 0 0 16px rgba(96, 165, 250, 0.28);
}