/* NEXUS Clipboard Wire — Ctrl+Alt+Space scheme flyout */
.ncw-flyout {
  position: fixed;
  z-index: 96000;
  min-width: 300px;
  max-width: min(380px, 94vw);
  max-height: min(78vh, 540px);
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(120, 200, 140, 0.35);
  background: linear-gradient(165deg, rgba(8, 14, 11, 0.97), rgba(14, 20, 16, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  color: #e8f4ec;
  font: 13px/1.35 system-ui, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.ncw-flyout.ncw-flyout--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ncw-flyout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ncw-flyout-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.ncw-sovereign-chip {
  flex-shrink: 0;
  font: 10px ui-monospace, monospace;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(120, 200, 140, 0.4);
  background: rgba(0, 0, 0, 0.28);
  color: #9fd4b0;
  cursor: default;
}

.ncw-widget-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px 10px 4px;
}

.ncw-stat {
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ncw-stat strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
  color: #d8f5e0;
}

.ncw-stat span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(232, 244, 236, 0.45);
  margin-top: 2px;
}

.ncw-stat--kbd .ncw-flyout-kbd { display: inline-block; margin-bottom: 2px; }

.ncw-scheme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.ncw-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 52px;
}

.ncw-widget-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.ncw-widget small {
  font-size: 9px;
  color: rgba(232, 244, 236, 0.45);
  line-height: 1.25;
}

.ncw-widget:hover,
.ncw-widget:focus-visible {
  border-color: rgba(120, 200, 140, 0.35);
  background: rgba(120, 200, 140, 0.12);
  outline: none;
}

.ncw-widget--active {
  border-color: rgba(120, 200, 140, 0.55);
  background: rgba(120, 200, 140, 0.18);
}

.ncw-flyout-section--tight {
  padding: 4px 8px 6px;
}

.fd40-picker {
  position: fixed;
  z-index: 95500;
  min-width: 260px;
  max-width: min(340px, 92vw);
  border-radius: 10px;
  border: 1px solid rgba(245, 197, 24, 0.35);
  background: linear-gradient(165deg, rgba(20, 18, 16, 0.98), rgba(28, 25, 22, 0.99));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  color: #e8e0d0;
  font: 12px/1.35 system-ui, sans-serif;
}

.fd40-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fd40-picker-head span {
  font-size: 10px;
  color: #f5c518;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fd40-picker-motto {
  margin: 0;
  padding: 6px 12px;
  font-size: 10px;
  color: rgba(232, 224, 208, 0.55);
}

.fd40-mod {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: calc(100% - 16px);
  margin: 2px 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fd40-mod span { font-weight: 600; font-size: 13px; }
.fd40-mod small { font-size: 10px; opacity: 0.65; margin-top: 2px; }
.fd40-mod:hover { border-color: rgba(245, 197, 24, 0.4); background: rgba(245, 197, 24, 0.1); }
.fd40-mod--soon { opacity: 0.55; }
.fd40-picker .fd40-mod:last-of-type { margin-bottom: 10px; }

.fsb-ctx-div {
  margin: 4px 8px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ncw-flyout-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.ncw-flyout-active {
  font-size: 11px;
  color: #8fd4a8;
  border: 1px solid rgba(120, 200, 140, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.ncw-flyout-motto {
  margin: 0;
  padding: 0 14px 8px;
  font-size: 11px;
  color: rgba(232, 244, 236, 0.55);
}

.ncw-flyout-section {
  padding: 6px 8px 10px;
}

.ncw-flyout-section h3 {
  margin: 0 0 6px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(232, 244, 236, 0.45);
}

.ncw-scheme-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 2px 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ncw-scheme-btn:hover,
.ncw-scheme-btn:focus-visible {
  border-color: rgba(120, 200, 140, 0.35);
  background: rgba(120, 200, 140, 0.12);
  outline: none;
}

.ncw-scheme-btn.ncw-scheme-btn--active {
  border-color: rgba(120, 200, 140, 0.55);
  background: rgba(120, 200, 140, 0.18);
}

.ncw-scheme-btn small {
  font-size: 10px;
  color: rgba(232, 244, 236, 0.45);
}

.ncw-flyout-foot {
  padding: 8px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10px;
  color: rgba(232, 244, 236, 0.4);
}

.ncw-flyout-kbd {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.ncw-paste-toast {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 96500;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(10, 18, 14, 0.95);
  border: 1px solid rgba(120, 200, 140, 0.35);
  color: #d8f0de;
  font: 12px system-ui, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.ncw-paste-toast--show {
  opacity: 1;
}

.ncw-paste-image {
  max-width: min(480px, 90vw);
  max-height: 40vh;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ncw-paste-video {
  max-width: min(640px, 92vw);
  max-height: 50vh;
  border-radius: 6px;
}