/* Shared full-screen overlay base */
.mf-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #0a0a0a;
  display: none;
  flex-direction: column;
  font-family: 'VT323', 'Courier New', monospace;
  cursor: var(--cursor-default);
}
.mf-overlay.mf-overlay--visible {
  display: flex;
  animation: crtFlickerSubtle 0.15s ease-in-out infinite;
}
.mf-crt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

@keyframes crtFlickerSubtle {
  0%, 100% { opacity: 1; }
  20% { opacity: 0.93; }
  40% { opacity: 0.98; }
  60% { opacity: 0.92; }
  80% { opacity: 0.97; }
}

/* Shared mainframe chrome — use with MF UI helpers (see AGENTS.MD) */
.mf-topbar,
.cvri-schematic-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.8);
  border-bottom: 1px solid rgba(255, 159, 28, 0.3);
}
.cvri-schematic-title,
.mf-topbar-title {
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}
.mf-toolbar,
.cvri-schematic-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.mf-toolbar-btn,
.cvri-schematic-toolbar button,
.pa-toolbar.mf-toolbar button {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 1.1rem;
  color: #ff9f1c;
  background: transparent;
  border: 1px solid rgba(255, 159, 28, 0.5);
  padding: 0.25rem 0.5rem;
  cursor: var(--cursor-pointer);
}
.mf-toolbar-btn:hover,
.cvri-schematic-toolbar button:hover,
.pa-toolbar.mf-toolbar button:hover {
  background: rgba(255, 159, 28, 0.15);
}
.mf-panel,
.cvri-panel {
  width: 280px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(255, 159, 28, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mf-panel-inner,
.cvri-panel-inner {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}
